{
  "version": 3,
  "sources": ["twenty-sdk-define-stub:__twenty-sdk-define-stub__", "../../../../src/constants/universal-identifiers.ts", "../../../../src/logic-functions/post-install.function.ts"],
  "sourcesContent": ["\n// Auto-generated stub for twenty-sdk/define injected by the SDK CLI build.\n// Real implementations would pull in zod, twenty-shared and ~1MB of code; at\n// runtime only `default.config.handler` is consumed, so tiny no-ops suffice.\nconst __defineFactoryStub = (config) => ({\n  success: true,\n  config,\n  errors: [],\n});\n\nconst __anyHandler = {\n  get(_target, prop) {\n    if (prop === '__esModule') return true;\n    if (prop === Symbol.toPrimitive) return () => '';\n    if (typeof prop === 'symbol') return undefined;\n    return new Proxy(() => undefined, __anyHandler);\n  },\n  apply() {\n    return new Proxy(() => undefined, __anyHandler);\n  },\n};\nconst __anyStub = new Proxy(() => undefined, __anyHandler);\n\nexport const createValidationResult = __defineFactoryStub;\nexport const defineAgent = __defineFactoryStub;\nexport const defineApplication = __defineFactoryStub;\nexport const defineApplicationRole = __defineFactoryStub;\nexport const defineCommandMenuItem = __defineFactoryStub;\nexport const defineConnectionProvider = __defineFactoryStub;\nexport const defineField = __defineFactoryStub;\nexport const defineFrontComponent = __defineFactoryStub;\nexport const defineIndex = __defineFactoryStub;\nexport const defineLogicFunction = __defineFactoryStub;\nexport const defineNavigationMenuItem = __defineFactoryStub;\nexport const defineObject = __defineFactoryStub;\nexport const definePageLayout = __defineFactoryStub;\nexport const definePageLayoutTab = __defineFactoryStub;\nexport const definePermissionFlag = __defineFactoryStub;\nexport const definePostInstallLogicFunction = __defineFactoryStub;\nexport const definePreInstallLogicFunction = __defineFactoryStub;\nexport const defineRole = __defineFactoryStub;\nexport const defineSettingsFrontComponent = __defineFactoryStub;\nexport const defineSkill = __defineFactoryStub;\nexport const defineUninstallLogicFunction = __defineFactoryStub;\nexport const defineView = __defineFactoryStub;\nexport const defineViewField = __defineFactoryStub;\nexport const AggregateOperations = __anyStub;\nexport const DateDisplayFormat = __anyStub;\nexport const FieldMetadataSettingsOnClickAction = __anyStub;\nexport const FieldType = __anyStub;\nexport const HTTPMethod = __anyStub;\nexport const NavigationMenuItemType = __anyStub;\nexport const NumberDataType = __anyStub;\nexport const ObjectRecordGroupByDateGranularity = __anyStub;\nexport const OnDeleteAction = __anyStub;\nexport const PageLayoutTabLayoutMode = __anyStub;\nexport const PageLayoutType = __anyStub;\nexport const RelationType = __anyStub;\nexport const RowLevelPermissionPredicateGroupLogicalOperator = __anyStub;\nexport const RowLevelPermissionPredicateOperand = __anyStub;\nexport const STANDARD_OBJECT = __anyStub;\nexport const STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS = __anyStub;\nexport const STANDARD_PAGE_LAYOUT = __anyStub;\nexport const STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS = __anyStub;\nexport const SystemPermissionFlag = __anyStub;\nexport const ViewCalendarLayout = __anyStub;\nexport const ViewFilterGroupLogicalOperator = __anyStub;\nexport const ViewFilterOperand = __anyStub;\nexport const ViewKey = __anyStub;\nexport const ViewOpenRecordIn = __anyStub;\nexport const ViewSortDirection = __anyStub;\nexport const ViewType = __anyStub;\nexport const ViewVisibility = __anyStub;\nexport const canAccessFullAdminPanel = __anyStub;\nexport const canImpersonate = __anyStub;\nexport const every = __anyStub;\nexport const everyDefined = __anyStub;\nexport const everyEquals = __anyStub;\nexport const favoriteRecordIds = __anyStub;\nexport const featureFlags = __anyStub;\nexport const getFieldUniversalIdentifier = __anyStub;\nexport const getSystemRelationFieldUniversalIdentifier = __anyStub;\nexport const getSystemViewFieldUniversalIdentifier = __anyStub;\nexport const getSystemViewUniversalIdentifier = __anyStub;\nexport const hasAnySoftDeleteFilterOnView = __anyStub;\nexport const includes = __anyStub;\nexport const includesEvery = __anyStub;\nexport const isDashboardPageLayoutInEditMode = __anyStub;\nexport const isDefined = __anyStub;\nexport const isInSidePanel = __anyStub;\nexport const isLayoutCustomizationModeEnabled = __anyStub;\nexport const isNonEmptyString = __anyStub;\nexport const isSelectAll = __anyStub;\nexport const none = __anyStub;\nexport const noneDefined = __anyStub;\nexport const noneEquals = __anyStub;\nexport const numberOfSelectedRecords = __anyStub;\nexport const objectMetadataItem = __anyStub;\nexport const objectMetadataLabel = __anyStub;\nexport const objectPermissions = __anyStub;\nexport const pageType = __anyStub;\nexport const selectedRecords = __anyStub;\nexport const some = __anyStub;\nexport const someDefined = __anyStub;\nexport const someEquals = __anyStub;\nexport const someNonEmptyString = __anyStub;\nexport const targetObjectReadPermissions = __anyStub;\nexport const targetObjectWritePermissions = __anyStub;\nexport const validateFields = __anyStub;\n", "// Auto-generated by scripts/generate-universal-identifiers.mjs.\n// Every identifier is a freshly generated UUID to avoid collisions with other\n// installed apps. Regenerate with: node scripts/generate-universal-identifiers.mjs\n\nexport const APPLICATION_UNIVERSAL_IDENTIFIER =\n  'e18866a9-afd0-440a-9855-1e7e9e693a74';\n\nexport const DEFAULT_ROLE_UNIVERSAL_IDENTIFIER =\n  '77fda223-b7a9-4f4a-844e-4a475f2adf0c';\n\nexport const GERENTE_SOCIO_ROLE_UNIVERSAL_IDENTIFIER =\n  '4f7a44cc-05c0-40c9-b833-ea335199959c';\n\nexport const APPLICATION_VARIABLE_UNIVERSAL_IDENTIFIERS = {\n  anthropicApiKey: \"2f9824be-df6f-4065-aa4e-a8313d201ef8\",\n  llmModel: \"43bc75b0-ef4c-42ec-848e-35297e90364e\"\n} as const;\n\nexport const OBJECT_UNIVERSAL_IDENTIFIERS = {\n  contract: \"45a32a16-21a5-4142-ad6b-7949cacad591\",\n  approvalDecision: \"6e6de038-df90-4dc3-a1bd-fb9c15b98308\"\n} as const;\n\nexport const CONTRACT_FIELD_UNIVERSAL_IDENTIFIERS = {\n  name: \"08a4f050-7c85-463e-9aa4-009d0213ba05\",\n  paymentTermsCustomer: \"df60b392-c2bf-4460-a3ba-9846a7da98f7\",\n  paymentTermsSupplier: \"94443e7c-c83e-4542-93f7-63dad2207a75\",\n  status: \"128da9a5-ffba-4310-9792-5be2805de9f5\",\n  aiReviewSummary: \"e1b7f3eb-eadf-4644-92d4-ef44954ef179\",\n  aiFindings: \"acb5962d-1072-4791-89e8-2d0158db386b\",\n  aiPaymentMismatch: \"2223a01a-25a1-4c2d-a13e-6044bfc3df62\",\n  aiPaymentTermsSnapshot: \"7b1c9d24-3f68-4a05-9e13-c4d2a86f5b70\",\n  submittedAt: \"324d19ae-98c7-4c1c-ae81-258619222ec7\",\n  decidedAt: \"e330567f-d443-4d21-ad7a-307576da6e19\",\n  opportunity: \"8abe646d-41d4-483d-8f22-09859a1bce26\",\n  approver: \"cd548383-5560-4b90-a8ac-fb88f6483fe2\",\n  submittedBy: \"9288433a-6972-4a3f-b7d2-5bbf655ad0c2\",\n  approvalDecisions: \"f2754979-61fa-45eb-aefb-aa9ede9a73ef\"\n} as const;\n\nexport const CONTRACT_SELECT_OPTION_UNIVERSAL_IDENTIFIERS = {\n  status: {\n    draft: \"fd147573-5cd0-455d-9c1d-5a1f1f3dd5b3\",\n    pendingAiReview: \"3dea697a-77f4-49d4-aa44-f5d8662d260b\",\n    pendingManagerApproval: \"fbc4bab6-17ce-4544-a21d-aeb1d92d83ec\",\n    approved: \"660dce9e-d054-462a-b50f-0335d54446f1\",\n    rejected: \"7292e345-7d05-4564-8a56-8378f1359c96\"\n  },\n  aiPaymentMismatch: {\n    unknown: \"16a115a7-7b44-4073-9715-89203605470b\",\n    match: \"55247810-5361-4a18-b094-84e3f1191a79\",\n    mismatch: \"e783ade0-e7e9-42d4-89d9-68944eacdd61\"\n  }\n} as const;\n\nexport const APPROVAL_DECISION_FIELD_UNIVERSAL_IDENTIFIERS = {\n  name: \"80cd5548-93db-43eb-b3c3-953572e973fe\",\n  decision: \"e8769cd6-4e43-43bd-86c9-18ed19d8e3c2\",\n  comment: \"e8263f3c-29c2-4fb9-b9e8-43e2a68dbdd2\",\n  decidedAt: \"becbc35b-dd19-4ca2-bbc7-801a65118abf\",\n  contract: \"b949d9af-6b11-4ff3-8a76-7862bf90ceae\",\n  decidedBy: \"d554d5c1-48d4-4ee8-879d-bb7fe11fe925\"\n} as const;\n\nexport const APPROVAL_DECISION_SELECT_OPTION_UNIVERSAL_IDENTIFIERS = {\n  decision: {\n    approve: \"35ff0df0-202b-4abd-8264-98834c48c502\",\n    reject: \"cbb44164-7e65-468f-98ab-788315c77db1\"\n  }\n} as const;\n\nexport const STANDARD_REVERSE_FIELD_UNIVERSAL_IDENTIFIERS = {\n  opportunityContracts: \"0a9f9101-7093-4ef8-8087-671964f5b642\",\n  workspaceMemberApprovedContracts: \"7dde2294-c596-4234-8aff-54e28af08a1c\",\n  workspaceMemberSubmittedContracts: \"310b6c4e-22ab-4af5-bfc0-caf059128bf5\",\n  workspaceMemberApprovalDecisions: \"67718dfb-37a1-46a6-961a-ec5d48a36c5f\"\n} as const;\n\nexport const LOGIC_FUNCTION_CONSTANTS = {\n  aiReview: {\n    universalIdentifier: \"7e4b41b4-a567-40d5-ac4f-af230e1fb198\",\n    path: \"/contract-approval/ai-review\"\n  },\n  submitForReview: {\n    universalIdentifier: \"db02d2d0-85e9-4d97-a5cc-282d9ee0ca5f\",\n    path: \"/contract-approval/submit-for-review\"\n  },\n  recordDecision: {\n    universalIdentifier: \"6cf39b95-7065-4158-93b2-d4f954ed69ab\",\n    path: \"/contract-approval/record-decision\"\n  },\n  postInstall: {\n    universalIdentifier: \"65b60977-844a-4230-aacc-0dff6e2eb69d\"\n  }\n} as const;\n\nexport const FRONT_COMPONENT_UNIVERSAL_IDENTIFIERS = {\n  approve: \"146f44e2-164f-4173-8e42-11095c71455a\",\n  reject: \"cd900b9d-6fed-40e8-b725-bfddd9fc350a\",\n  submitForReview: \"0c35bc5e-7a5c-475d-a2c2-9eff530dc0a0\"\n} as const;\n\nexport const COMMAND_MENU_ITEM_UNIVERSAL_IDENTIFIERS = {\n  approve: \"4daf5c53-8a72-44ea-8e1a-0ca5b64ca844\",\n  reject: \"c341b153-c8c2-4226-96b5-4b8c1b2fc84e\",\n  submitForReview: \"af85127b-54be-4812-946f-bca6ce3c9fbd\"\n} as const;\n\nexport const VIEW_UNIVERSAL_IDENTIFIERS = {\n  pendingApprovals: \"a89136c8-e306-4416-b23f-ae8d499ef25e\"\n} as const;\n\n// Added 2026-07-15 for the UI enhancements (nav item, risk-level chip, Opportunity tab).\nexport const NAVIGATION_MENU_ITEM_UNIVERSAL_IDENTIFIERS = {\n  contracts: \"979e246d-fac3-4098-bcad-24f77d065f57\",\n  pendingApprovalsView: \"983b3173-3401-440b-af22-8bee5e31d7a1\"\n} as const;\n\nexport const CONTRACT_RISK_LEVEL_FIELD_UNIVERSAL_IDENTIFIER =\n  \"40bb9271-9f33-4e52-b4b6-91cc58a412dc\";\n\nexport const CONTRACT_RISK_LEVEL_OPTION_UNIVERSAL_IDENTIFIERS = {\n  verde: \"98306cd9-e9cb-43fb-8a35-f2d1c8ce8d51\",\n  amarelo: \"4f64ec67-7b70-43d4-812a-1631964eb1b1\",\n  vermelho: \"029e55fa-61fb-480f-b8f5-a585388da4e9\"\n} as const;\n\n// Adds the reverse Opportunity -> Contracts relation to the Opportunity record\n// page's Relations group.\nexport const OPPORTUNITY_CONTRACTS_VIEW_FIELD_UNIVERSAL_IDENTIFIER =\n  \"6f2d9f81-2bf7-4030-af1e-0fffe3468793\";\n\nexport const CONTRACT_RISK_LEVEL_VIEW_FIELD_UNIVERSAL_IDENTIFIER =\n  \"77b79f8d-d365-4068-a88d-96f1a0a6941e\";\n\n// Added 2026-07-29 for renewal tracking (vig\u00EAncia + est\u00E1gio de renova\u00E7\u00E3o).\n//\n// IMPORTANT: unlike every other identifier in this file, these are NOT freshly\n// generated. They are pinned to the field/option identifiers that already exist\n// in the production workspace, where the fields were first created outside the\n// app (under the workspace's own application). Regenerating them would make the\n// deploy try to create a second `dataInicio`/`dataTermino`/`estagioRenovacao`\n// on Contract, which collides on the (object, name) uniqueness constraint.\n// Do not replace these with new UUIDs \u2014 see README \"Renewal tracking\".\nexport const CONTRACT_RENEWAL_FIELD_UNIVERSAL_IDENTIFIERS = {\n  dataInicio: '18dd3809-2832-484a-87b6-c0a74bf70c56',\n  dataTermino: '28eb43b7-fcfb-4259-a894-cef533ba2292',\n  estagioRenovacao: '83f2704a-bb13-4dd9-9bf2-ec792ba800b3',\n} as const;\n\nexport const CONTRACT_RENEWAL_STAGE_OPTION_UNIVERSAL_IDENTIFIERS = {\n  ativo: 'f3f27751-d3ea-4d1b-b2db-4d36179125f3',\n  renovacaoIniciada: '7517bf3d-b13e-4fa3-b199-b2280fe30267',\n  renovado: '5a7e5049-d115-4bb3-84b0-941b00c85f8d',\n  encerrado: '44755541-0569-418d-997c-8fcdb0025d2c',\n} as const;\n\nexport const VIEW_FIELD_UNIVERSAL_IDENTIFIERS = {\n  pendingApprovals: [\n    \"91bff7b8-d653-4e55-b46a-e1897dd1cc7b\",\n    \"deba2d27-b7e2-43c2-9ae6-f373f963b79f\",\n    \"cafed141-82dc-4bed-a039-4f54786f5f97\",\n    \"229831ac-f972-435a-87ac-ec3fa90cfe7e\",\n    \"f1ab3513-d8e6-4fe3-80af-dec9dcf67447\",\n    \"e342b6e0-9699-43d0-a4ae-b4cd139a6e6c\",\n    \"f91c99ea-0a38-4eed-a5ec-dbe7c3440ca3\",\n    \"ed138b74-a407-4c29-86bd-d8acd69340ef\",\n    \"762f5269-1d9b-4ce3-a417-5b26c257f3ad\"\n  ]\n} as const;\n", "import { definePostInstallLogicFunction } from 'twenty-sdk/define';\n\nimport { LOGIC_FUNCTION_CONSTANTS } from 'src/constants/universal-identifiers';\n\n// The app functions entirely through the front-component actions (Submit for\n// review / Approve / Reject), so no install-time workflow seeding is required.\n// This hook is a no-op placeholder kept for future automation.\nconst handler = async () => {\n  return { seededWorkflows: [] };\n};\n\nexport default definePostInstallLogicFunction({\n  universalIdentifier: LOGIC_FUNCTION_CONSTANTS.postInstall.universalIdentifier,\n  name: 'post-install',\n  description:\n    'Post-install hook for the Contract Approval app (no workflow seeding; the app runs via front-component actions).',\n  timeoutSeconds: 30,\n  handler,\n  shouldRunSynchronously: true,\n});\n"],
  "mappings": ";;;;AAIA,IAAM,sBAAsB,CAAC,YAAY;AAAA,EACvC,SAAS;AAAA,EACT;AAAA,EACA,QAAQ,CAAC;AACX;AAEA,IAAM,eAAe;AAAA,EACnB,IAAI,SAAS,MAAM;AACjB,QAAI,SAAS,aAAc,QAAO;AAClC,QAAI,SAAS,OAAO,YAAa,QAAO,MAAM;AAC9C,QAAI,OAAO,SAAS,SAAU,QAAO;AACrC,WAAO,IAAI,MAAM,MAAM,QAAW,YAAY;AAAA,EAChD;AAAA,EACA,QAAQ;AACN,WAAO,IAAI,MAAM,MAAM,QAAW,YAAY;AAAA,EAChD;AACF;AACA,IAAM,YAAY,IAAI,MAAM,MAAM,QAAW,YAAY;AAiBlD,IAAM,iCAAiC;;;ACwCvC,IAAM,2BAA2B;AAAA,EACtC,UAAU;AAAA,IACR,qBAAqB;AAAA,IACrB,MAAM;AAAA,EACR;AAAA,EACA,iBAAiB;AAAA,IACf,qBAAqB;AAAA,IACrB,MAAM;AAAA,EACR;AAAA,EACA,gBAAgB;AAAA,IACd,qBAAqB;AAAA,IACrB,MAAM;AAAA,EACR;AAAA,EACA,aAAa;AAAA,IACX,qBAAqB;AAAA,EACvB;AACF;;;ACvFA,IAAM,UAAU,YAAY;AAC1B,SAAO,EAAE,iBAAiB,CAAC,EAAE;AAC/B;AAEA,IAAO,gCAAQ,+BAA+B;AAAA,EAC5C,qBAAqB,yBAAyB,YAAY;AAAA,EAC1D,MAAM;AAAA,EACN,aACE;AAAA,EACF,gBAAgB;AAAA,EAChB;AAAA,EACA,wBAAwB;AAC1B,CAAC;",
  "names": []
}
