twenty-sdk 2.37.0 → 2.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/dist/billing/index.cjs +3 -3
  2. package/dist/billing/index.cjs.map +1 -1
  3. package/dist/billing/index.d.ts +25 -4
  4. package/dist/billing/index.mjs +495 -464
  5. package/dist/billing/index.mjs.map +1 -1
  6. package/dist/catalog-sync-DB_oIbry.js +1 -0
  7. package/dist/{catalog-sync-mAO3vmdp.mjs → catalog-sync-TFrxc_Y6.mjs} +4 -4
  8. package/dist/cli/commands/dev/dev-once.d.ts +1 -0
  9. package/dist/cli/commands/dev/dev.d.ts +1 -0
  10. package/dist/cli/operations/dev-once.d.ts +1 -0
  11. package/dist/cli/utilities/api/api-service.d.ts +1 -0
  12. package/dist/cli/utilities/api/application-api.d.ts +1 -0
  13. package/dist/cli/utilities/dev/orchestrator/dev-mode-orchestrator.d.ts +1 -0
  14. package/dist/cli/utilities/dev/orchestrator/steps/format-sync-actions-plan.d.ts +8 -1
  15. package/dist/cli/utilities/dev/orchestrator/steps/sync-application-orchestrator-step.d.ts +3 -1
  16. package/dist/cli/utilities/entity/entity-view-template.d.ts +1 -1
  17. package/dist/cli/utilities/error/parse-server-error.d.ts +1 -0
  18. package/dist/cli.cjs +30 -30
  19. package/dist/cli.mjs +5447 -5427
  20. package/dist/define/index.cjs +14 -14
  21. package/dist/define/index.cjs.map +1 -1
  22. package/dist/define/index.d.ts +82 -14
  23. package/dist/define/index.mjs +5717 -5690
  24. package/dist/define/index.mjs.map +1 -1
  25. package/dist/front-component/index.cjs +1 -1
  26. package/dist/front-component/index.cjs.map +1 -1
  27. package/dist/front-component/index.d.ts +23 -6
  28. package/dist/front-component/index.mjs +2 -2
  29. package/dist/front-component/index.mjs.map +1 -1
  30. package/dist/front-component-renderer/build.cjs +1 -1
  31. package/dist/front-component-renderer/build.mjs +1 -1
  32. package/dist/{get-front-component-build-plugins-WU9ATS3e.mjs → get-front-component-build-plugins-Bed7hCGi.mjs} +46 -38
  33. package/dist/{get-front-component-build-plugins-DZIleilT.js → get-front-component-build-plugins-o8cM1FFZ.js} +8 -8
  34. package/dist/{get-function-input-schema-GNk3NRLJ-DKoJBhuO.js → get-function-input-schema-GNk3NRLJ-A3CmF1qq.js} +1 -1
  35. package/dist/{get-function-input-schema-GNk3NRLJ-H7iWzfXn.mjs → get-function-input-schema-GNk3NRLJ-BPeB4a-_.mjs} +1 -1
  36. package/dist/logic-function/index.cjs +4 -4
  37. package/dist/logic-function/index.cjs.map +1 -1
  38. package/dist/logic-function/index.d.ts +23 -3
  39. package/dist/logic-function/index.mjs +26 -12
  40. package/dist/logic-function/index.mjs.map +1 -1
  41. package/dist/{login-4PI5lTOa.js → login-2yrPIORt.js} +59 -66
  42. package/dist/{login-CNByz3vi.mjs → login-QYv7vAbh.mjs} +5348 -5303
  43. package/dist/operations.cjs +1 -1
  44. package/dist/operations.mjs +4 -4
  45. package/dist/utils/index.cjs.map +1 -1
  46. package/dist/utils/index.mjs.map +1 -1
  47. package/package.json +2 -2
  48. package/dist/catalog-sync-Szx_4267.js +0 -1
@@ -96,6 +96,7 @@ type EnqueueSnackbarParams = {
96
96
  type NavigateOptions = {
97
97
  replace?: boolean;
98
98
  state?: unknown;
99
+ surface?: 'main';
99
100
  };
100
101
 
101
102
  declare enum SidePanelPages {
@@ -131,8 +132,12 @@ declare enum SidePanelPages {
131
132
  ComposeCalendarEvent = "compose-calendar-event",
132
133
  CreateRelatedRecord = "create-related-record",
133
134
  SendCampaignTest = "send-campaign-test",
135
+ WorkflowVersions = "workflow-versions",
136
+ WorkflowVersion = "workflow-version",
134
137
  EmailBlockSettings = "email-block-settings",
135
- SettingsMetadataTranslations = "settings-metadata-translations"
138
+ SettingsMetadataTranslations = "settings-metadata-translations",
139
+ RoutedPage = "routed-page",
140
+ WorkflowCoreFilters = "workflow-core-filters"
136
141
  }
137
142
 
138
143
  declare const getAppPath: <T extends AppPath>(to: T, params?: { [key in PathParam<T>]: string | null; } | undefined, queryParams?: Record<string, any> | undefined) => string;
@@ -140,7 +145,18 @@ declare const getAppPath: <T extends AppPath>(to: T, params?: { [key in PathPara
140
145
  type FrontComponentStorageType = 'localStorage' | 'sessionStorage';
141
146
 
142
147
  type NavigateFunction = <T extends AppPath>(to: T, params?: Parameters<typeof getAppPath<T>>[1], queryParams?: Record<string, any>, options?: NavigateOptions) => Promise<void>;
143
- type OpenSidePanelPageParams = {
148
+ type OpenRoutedSidePanelPageParams<T extends AppPath> = {
149
+ to: T;
150
+ queryParams?: Record<string, any>;
151
+ hash?: string;
152
+ pageTitle?: string;
153
+ resetNavigationStack?: boolean;
154
+ } & (T extends `${string}:${string}` ? {
155
+ params: NonNullable<Parameters<typeof getAppPath<T>>[1]>;
156
+ } : {
157
+ params?: Parameters<typeof getAppPath<T>>[1];
158
+ });
159
+ type OpenPurposeBuiltSidePanelPageParams = {
144
160
  page: SidePanelPages.ViewRecord;
145
161
  recordId: string;
146
162
  objectNameSingular: string;
@@ -179,12 +195,13 @@ type OpenSidePanelPageParams = {
179
195
  model?: 'FAST' | 'SMART';
180
196
  };
181
197
  } | {
182
- page: Exclude<SidePanelPages, SidePanelPages.ViewRecord | SidePanelPages.EditRichText | SidePanelPages.ComposeEmail | SidePanelPages.ViewFrontComponent | SidePanelPages.AskAI>;
198
+ page: Exclude<SidePanelPages, SidePanelPages.RoutedPage | SidePanelPages.ViewRecord | SidePanelPages.EditRichText | SidePanelPages.ComposeEmail | SidePanelPages.ViewFrontComponent | SidePanelPages.AskAI | SidePanelPages.ViewRecords | SidePanelPages.Copilot>;
183
199
  pageTitle: string;
184
200
  pageIcon?: string;
185
201
  shouldResetSearchState?: boolean;
186
202
  };
187
- type OpenSidePanelPageFunction = (params: OpenSidePanelPageParams) => Promise<void>;
203
+ type OpenSidePanelPageParams<T extends AppPath = AppPath> = OpenRoutedSidePanelPageParams<T> | OpenPurposeBuiltSidePanelPageParams;
204
+ type OpenSidePanelPageFunction = <T extends AppPath>(params: OpenSidePanelPageParams<T>) => Promise<void>;
188
205
  type CommandConfirmationModalResult = 'confirm' | 'cancel';
189
206
  type CommandConfirmationModalAccent = 'default' | 'blue' | 'danger';
190
207
  type OpenCommandConfirmationModalFunction = (params: {
@@ -331,8 +348,8 @@ type CommandLinkProps<T extends AppPath> = {
331
348
  };
332
349
  declare const CommandLink: <T extends AppPath>({ to, params, queryParams, options, }: CommandLinkProps<T>) => null;
333
350
 
334
- type CommandOpenSidePanelPageProps = OpenSidePanelPageParams;
335
- declare const CommandOpenSidePanelPage: (props: CommandOpenSidePanelPageProps) => null;
351
+ type CommandOpenSidePanelPageProps<T extends AppPath = AppPath> = OpenSidePanelPageParams<T>;
352
+ declare const CommandOpenSidePanelPage: <T extends AppPath>(props: CommandOpenSidePanelPageProps<T>) => null;
336
353
 
337
354
  type CommandModalProps = {
338
355
  title: string;
@@ -3765,9 +3765,9 @@ Ka({
3765
3765
  [X.RICH_TEXT, zo]
3766
3766
  ]), X.RELATION, X.MORPH_RELATION, X.FILES, X.TS_VECTOR;
3767
3767
  //#endregion
3768
- //#region ../twenty-shared/dist/types-BBcIjWv6.mjs
3768
+ //#region ../twenty-shared/dist/types-BPwZbSNY.mjs
3769
3769
  var Bo = /* @__PURE__ */ function(e) {
3770
- return e.CommandMenuDisplay = "command-menu-display", e.ViewRecord = "view-record", e.ViewRecords = "view-records", e.MergeRecords = "merge-records", e.UpdateRecords = "update-records", e.EditRichText = "edit-rich-text", e.Copilot = "copilot", e.WorkflowTriggerSelectType = "workflow-trigger-select-type", e.WorkflowStepCreate = "workflow-step-create", e.WorkflowStepEditType = "workflow-step-edit-type", e.WorkflowStepView = "workflow-step-view", e.WorkflowStepEdit = "workflow-step-edit", e.WorkflowRunStepView = "workflow-run-step-view", e.SearchRecords = "search-records", e.AskAI = "ask-ai", e.PageLayoutDashboardWidgetTypeSelect = "page-layout-dashboard-widget-type-select", e.PageLayoutTabSettings = "page-layout-tab-settings", e.PageLayoutWidgetSettings = "page-layout-widget-settings", e.DashboardChartSettings = "dashboard-chart-settings", e.DashboardIframeSettings = "dashboard-iframe-settings", e.DashboardRecordTableSettings = "dashboard-record-table-settings", e.RecordPageFieldsSettings = "record-page-fields-settings", e.RecordPageFieldSettings = "record-page-field-settings", e.ViewFrontComponent = "view-front-component", e.NavigationMenuItemEdit = "navigation-menu-item-edit", e.NavigationMenuAddItem = "navigation-menu-add-item", e.CommandMenuEdit = "command-menu-edit", e.PageLayoutRecordPageWidgetTypeSelect = "page-layout-record-page-widget-type-select", e.ComposeEmail = "compose-email", e.ComposeCalendarEvent = "compose-calendar-event", e.CreateRelatedRecord = "create-related-record", e.SendCampaignTest = "send-campaign-test", e.EmailBlockSettings = "email-block-settings", e.SettingsMetadataTranslations = "settings-metadata-translations", e;
3770
+ return e.CommandMenuDisplay = "command-menu-display", e.ViewRecord = "view-record", e.ViewRecords = "view-records", e.MergeRecords = "merge-records", e.UpdateRecords = "update-records", e.EditRichText = "edit-rich-text", e.Copilot = "copilot", e.WorkflowTriggerSelectType = "workflow-trigger-select-type", e.WorkflowStepCreate = "workflow-step-create", e.WorkflowStepEditType = "workflow-step-edit-type", e.WorkflowStepView = "workflow-step-view", e.WorkflowStepEdit = "workflow-step-edit", e.WorkflowRunStepView = "workflow-run-step-view", e.SearchRecords = "search-records", e.AskAI = "ask-ai", e.PageLayoutDashboardWidgetTypeSelect = "page-layout-dashboard-widget-type-select", e.PageLayoutTabSettings = "page-layout-tab-settings", e.PageLayoutWidgetSettings = "page-layout-widget-settings", e.DashboardChartSettings = "dashboard-chart-settings", e.DashboardIframeSettings = "dashboard-iframe-settings", e.DashboardRecordTableSettings = "dashboard-record-table-settings", e.RecordPageFieldsSettings = "record-page-fields-settings", e.RecordPageFieldSettings = "record-page-field-settings", e.ViewFrontComponent = "view-front-component", e.NavigationMenuItemEdit = "navigation-menu-item-edit", e.NavigationMenuAddItem = "navigation-menu-add-item", e.CommandMenuEdit = "command-menu-edit", e.PageLayoutRecordPageWidgetTypeSelect = "page-layout-record-page-widget-type-select", e.ComposeEmail = "compose-email", e.ComposeCalendarEvent = "compose-calendar-event", e.CreateRelatedRecord = "create-related-record", e.SendCampaignTest = "send-campaign-test", e.WorkflowVersions = "workflow-versions", e.WorkflowVersion = "workflow-version", e.EmailBlockSettings = "email-block-settings", e.SettingsMetadataTranslations = "settings-metadata-translations", e.RoutedPage = "routed-page", e.WorkflowCoreFilters = "workflow-core-filters", e;
3771
3771
  }({}), Vo = "frontComponentHostCommunicationApi";
3772
3772
  //#endregion
3773
3773
  //#region src/sdk/front-component/globals/frontComponentHostCommunicationApi.ts