twenty-sdk 2.37.0 → 2.39.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 (61) 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-DjzVoO-K.js +1 -0
  7. package/dist/{catalog-sync-mAO3vmdp.mjs → catalog-sync-PfHIDnN1.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/commands/dev/pull.d.ts +8 -0
  11. package/dist/cli/operations/dev-once.d.ts +1 -0
  12. package/dist/cli/operations/index.d.ts +2 -0
  13. package/dist/cli/operations/pull.d.ts +22 -0
  14. package/dist/cli/types.d.ts +1 -0
  15. package/dist/cli/utilities/api/api-service.d.ts +3 -0
  16. package/dist/cli/utilities/api/application-api.d.ts +3 -0
  17. package/dist/cli/utilities/dev/orchestrator/dev-mode-orchestrator.d.ts +1 -0
  18. package/dist/cli/utilities/dev/orchestrator/steps/format-sync-actions-plan.d.ts +8 -1
  19. package/dist/cli/utilities/dev/orchestrator/steps/sync-application-orchestrator-step.d.ts +3 -1
  20. package/dist/cli/utilities/entity/entity-view-template.d.ts +1 -1
  21. package/dist/cli/utilities/error/parse-server-error.d.ts +1 -0
  22. package/dist/cli/utilities/pull/application-export-type.d.ts +24 -0
  23. package/dist/cli/utilities/pull/apply-pull-writes.d.ts +6 -0
  24. package/dist/cli/utilities/pull/build-pull-entities.d.ts +24 -0
  25. package/dist/cli/utilities/pull/format-pull-report.d.ts +13 -0
  26. package/dist/cli/utilities/pull/plan-pull-writes.d.ts +27 -0
  27. package/dist/cli/utilities/pull/print-typescript-value.d.ts +10 -0
  28. package/dist/cli/utilities/pull/pull-base-file.d.ts +10 -0
  29. package/dist/cli/utilities/pull/scan-project-define-files.d.ts +8 -0
  30. package/dist/cli/utilities/pull/write-define-file.d.ts +13 -0
  31. package/dist/cli.cjs +82 -78
  32. package/dist/cli.mjs +8007 -7902
  33. package/dist/define/index.cjs +14 -14
  34. package/dist/define/index.cjs.map +1 -1
  35. package/dist/define/index.d.ts +138 -16
  36. package/dist/define/index.mjs +5784 -5723
  37. package/dist/define/index.mjs.map +1 -1
  38. package/dist/front-component/index.cjs +1 -1
  39. package/dist/front-component/index.cjs.map +1 -1
  40. package/dist/front-component/index.d.ts +25 -6
  41. package/dist/front-component/index.mjs +2 -2
  42. package/dist/front-component/index.mjs.map +1 -1
  43. package/dist/front-component-renderer/build.cjs +1 -1
  44. package/dist/front-component-renderer/build.mjs +1 -1
  45. package/dist/{get-front-component-build-plugins-DZIleilT.js → get-front-component-build-plugins-BR8EOlIe.js} +8 -8
  46. package/dist/{get-front-component-build-plugins-WU9ATS3e.mjs → get-front-component-build-plugins-BvcwEryG.mjs} +78 -68
  47. package/dist/{get-function-input-schema-GNk3NRLJ-H7iWzfXn.mjs → get-function-input-schema-GNk3NRLJ-BzSsW_zF.mjs} +1 -1
  48. package/dist/{get-function-input-schema-GNk3NRLJ-DKoJBhuO.js → get-function-input-schema-GNk3NRLJ-PouV48BW.js} +1 -1
  49. package/dist/logic-function/index.cjs +4 -4
  50. package/dist/logic-function/index.cjs.map +1 -1
  51. package/dist/logic-function/index.d.ts +23 -3
  52. package/dist/logic-function/index.mjs +26 -12
  53. package/dist/logic-function/index.mjs.map +1 -1
  54. package/dist/{login-CNByz3vi.mjs → login-CWJ1uQtK.mjs} +6043 -5432
  55. package/dist/{login-4PI5lTOa.js → login-CXs7z3of.js} +99 -68
  56. package/dist/operations.cjs +1 -1
  57. package/dist/operations.mjs +4 -4
  58. package/dist/utils/index.cjs.map +1 -1
  59. package/dist/utils/index.mjs.map +1 -1
  60. package/package.json +2 -2
  61. 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 {
@@ -112,6 +113,7 @@ declare enum SidePanelPages {
112
113
  WorkflowStepView = "workflow-step-view",
113
114
  WorkflowStepEdit = "workflow-step-edit",
114
115
  WorkflowRunStepView = "workflow-run-step-view",
116
+ WorkflowStepSettings = "workflow-step-settings",
115
117
  SearchRecords = "search-records",
116
118
  AskAI = "ask-ai",
117
119
  PageLayoutDashboardWidgetTypeSelect = "page-layout-dashboard-widget-type-select",
@@ -130,9 +132,14 @@ declare enum SidePanelPages {
130
132
  ComposeEmail = "compose-email",
131
133
  ComposeCalendarEvent = "compose-calendar-event",
132
134
  CreateRelatedRecord = "create-related-record",
135
+ SendCampaign = "send-campaign",
133
136
  SendCampaignTest = "send-campaign-test",
137
+ WorkflowVersions = "workflow-versions",
138
+ WorkflowVersion = "workflow-version",
134
139
  EmailBlockSettings = "email-block-settings",
135
- SettingsMetadataTranslations = "settings-metadata-translations"
140
+ SettingsMetadataTranslations = "settings-metadata-translations",
141
+ RoutedPage = "routed-page",
142
+ WorkflowCoreFilters = "workflow-core-filters"
136
143
  }
137
144
 
138
145
  declare const getAppPath: <T extends AppPath>(to: T, params?: { [key in PathParam<T>]: string | null; } | undefined, queryParams?: Record<string, any> | undefined) => string;
@@ -140,7 +147,18 @@ declare const getAppPath: <T extends AppPath>(to: T, params?: { [key in PathPara
140
147
  type FrontComponentStorageType = 'localStorage' | 'sessionStorage';
141
148
 
142
149
  type NavigateFunction = <T extends AppPath>(to: T, params?: Parameters<typeof getAppPath<T>>[1], queryParams?: Record<string, any>, options?: NavigateOptions) => Promise<void>;
143
- type OpenSidePanelPageParams = {
150
+ type OpenRoutedSidePanelPageParams<T extends AppPath> = {
151
+ to: T;
152
+ queryParams?: Record<string, any>;
153
+ hash?: string;
154
+ pageTitle?: string;
155
+ resetNavigationStack?: boolean;
156
+ } & (T extends `${string}:${string}` ? {
157
+ params: NonNullable<Parameters<typeof getAppPath<T>>[1]>;
158
+ } : {
159
+ params?: Parameters<typeof getAppPath<T>>[1];
160
+ });
161
+ type OpenPurposeBuiltSidePanelPageParams = {
144
162
  page: SidePanelPages.ViewRecord;
145
163
  recordId: string;
146
164
  objectNameSingular: string;
@@ -179,12 +197,13 @@ type OpenSidePanelPageParams = {
179
197
  model?: 'FAST' | 'SMART';
180
198
  };
181
199
  } | {
182
- page: Exclude<SidePanelPages, SidePanelPages.ViewRecord | SidePanelPages.EditRichText | SidePanelPages.ComposeEmail | SidePanelPages.ViewFrontComponent | SidePanelPages.AskAI>;
200
+ page: Exclude<SidePanelPages, SidePanelPages.RoutedPage | SidePanelPages.ViewRecord | SidePanelPages.EditRichText | SidePanelPages.ComposeEmail | SidePanelPages.ViewFrontComponent | SidePanelPages.AskAI | SidePanelPages.ViewRecords | SidePanelPages.Copilot>;
183
201
  pageTitle: string;
184
202
  pageIcon?: string;
185
203
  shouldResetSearchState?: boolean;
186
204
  };
187
- type OpenSidePanelPageFunction = (params: OpenSidePanelPageParams) => Promise<void>;
205
+ type OpenSidePanelPageParams<T extends AppPath = AppPath> = OpenRoutedSidePanelPageParams<T> | OpenPurposeBuiltSidePanelPageParams;
206
+ type OpenSidePanelPageFunction = <T extends AppPath>(params: OpenSidePanelPageParams<T>) => Promise<void>;
188
207
  type CommandConfirmationModalResult = 'confirm' | 'cancel';
189
208
  type CommandConfirmationModalAccent = 'default' | 'blue' | 'danger';
190
209
  type OpenCommandConfirmationModalFunction = (params: {
@@ -331,8 +350,8 @@ type CommandLinkProps<T extends AppPath> = {
331
350
  };
332
351
  declare const CommandLink: <T extends AppPath>({ to, params, queryParams, options, }: CommandLinkProps<T>) => null;
333
352
 
334
- type CommandOpenSidePanelPageProps = OpenSidePanelPageParams;
335
- declare const CommandOpenSidePanelPage: (props: CommandOpenSidePanelPageProps) => null;
353
+ type CommandOpenSidePanelPageProps<T extends AppPath = AppPath> = OpenSidePanelPageParams<T>;
354
+ declare const CommandOpenSidePanelPage: <T extends AppPath>(props: CommandOpenSidePanelPageProps<T>) => null;
336
355
 
337
356
  type CommandModalProps = {
338
357
  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-BkKEyuCp.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.WorkflowStepSettings = "workflow-step-settings", 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.SendCampaign = "send-campaign", 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