twenty-sdk 2.16.0 → 2.18.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 (39) hide show
  1. package/dist/{catalog-sync-w6yKppKP.js → catalog-sync-CgKswjsE.js} +1 -1
  2. package/dist/{catalog-sync-BYM3GqZl.mjs → catalog-sync-YxvEEHz5.mjs} +1 -1
  3. package/dist/cli/commands/dev/i18n-extract.d.ts +7 -0
  4. package/dist/cli/utilities/build/common/front-component-build/css-injection-plugin.d.ts +2 -0
  5. package/dist/cli/utilities/i18n/collect-translatable-strings.d.ts +2 -0
  6. package/dist/cli/utilities/i18n/compile-application-translations.d.ts +1 -0
  7. package/dist/cli/utilities/i18n/constants.d.ts +1 -0
  8. package/dist/cli/utilities/i18n/extract-application-translations.d.ts +10 -0
  9. package/dist/cli/utilities/i18n/generate-message-id.d.ts +1 -0
  10. package/dist/cli.cjs +17 -15
  11. package/dist/cli.mjs +995 -935
  12. package/dist/define/index.cjs +2 -2
  13. package/dist/define/index.cjs.map +1 -1
  14. package/dist/define/index.d.ts +14 -5
  15. package/dist/define/index.mjs +28 -71
  16. package/dist/define/index.mjs.map +1 -1
  17. package/dist/front-component/index.cjs +1 -1
  18. package/dist/front-component/index.cjs.map +1 -1
  19. package/dist/front-component/index.d.ts +42 -12
  20. package/dist/front-component/index.mjs +134 -143
  21. package/dist/front-component/index.mjs.map +1 -1
  22. package/dist/front-component-renderer/build.cjs +1 -1
  23. package/dist/front-component-renderer/build.mjs +1 -1
  24. package/dist/{get-front-component-build-plugins-DBupR4cF.js → get-front-component-build-plugins-Dqpyup2W.js} +9 -5
  25. package/dist/get-front-component-build-plugins-taotEFOp.mjs +126 -0
  26. package/dist/{get-function-input-schema-GNk3NRLJ-zQkANyT3.mjs → get-function-input-schema-GNk3NRLJ-CfeAvjEl.mjs} +1 -1
  27. package/dist/{login-D7nyXinY.js → login-BOrzi4Z0.js} +50 -50
  28. package/dist/{login-rU5te3B6.mjs → login-Dg4Ap-uo.mjs} +3983 -3993
  29. package/dist/operations.cjs +1 -1
  30. package/dist/operations.mjs +1 -1
  31. package/package.json +3 -12
  32. package/dist/AllIcons-CdbaxNyc-CJcUHQBl.mjs +0 -66238
  33. package/dist/AllIcons-CdbaxNyc-DR-8e_UM.js +0 -1
  34. package/dist/get-front-component-build-plugins-BuE2QdIr.mjs +0 -113
  35. package/dist/icon-DMT-YeKi-C9-AduNa.mjs +0 -10168
  36. package/dist/icon-DMT-YeKi-Cz0W5sJA.js +0 -1
  37. package/dist/ui/index.cjs +0 -26
  38. package/dist/ui/index.d.ts +0 -18
  39. package/dist/ui/index.mjs +0 -15562
@@ -2,16 +2,22 @@ import { PathParam, NavigateOptions as NavigateOptions$1 } from 'react-router-do
2
2
 
3
3
  declare enum AppPath {
4
4
  Verify = "/verify",
5
+ VerifyV2 = "/verify-v2",
5
6
  VerifyEmail = "/verify-email",
6
7
  SignInUp = "/welcome",
7
8
  SignInUpV2 = "/welcome-v2",
8
9
  Invite = "/invite/:workspaceInviteHash",
9
10
  ResetPassword = "/reset-password/:passwordResetToken",
10
11
  WorkspaceActivation = "/workspace-activation",
12
+ WorkspaceActivationV2 = "/workspace-activation-v2",
11
13
  CreateProfile = "/create/profile",
14
+ CreateProfileV2 = "/create/profile-v2",
12
15
  SyncEmails = "/sync/emails",
16
+ SyncEmailsV2 = "/sync/emails-v2",
13
17
  InviteTeam = "/invite-team",
18
+ InviteTeamV2 = "/invite-team-v2",
14
19
  PlanRequired = "/plan-required",
20
+ PlanRequiredV2 = "/plan-required-v2",
15
21
  PlanRequiredSuccess = "/plan-required/payment-success",
16
22
  BookCallDecision = "/book-call-decision",
17
23
  BookCall = "/book-call",
@@ -26,6 +32,7 @@ declare enum AppPath {
26
32
  Developers = "developers",
27
33
  DevelopersCatchAll = "/developers/*",
28
34
  Authorize = "/authorize",
35
+ Dpa = "/dpa",
29
36
  NotFoundWildcard = "*",
30
37
  NotFound = "/not-found"
31
38
  }
@@ -79,12 +86,40 @@ declare enum SidePanelPages {
79
86
  declare const getAppPath: <T extends AppPath>(to: T, params?: { [key in PathParam<T>]: string | null; } | undefined, queryParams?: Record<string, any> | undefined) => string;
80
87
 
81
88
  type NavigateFunction = <T extends AppPath>(to: T, params?: Parameters<typeof getAppPath<T>>[1], queryParams?: Record<string, any>, options?: NavigateOptions) => Promise<void>;
82
- type OpenSidePanelPageFunction = (params: {
83
- page: SidePanelPages;
89
+ type OpenSidePanelPageParams = {
90
+ page: SidePanelPages.ViewRecord;
91
+ recordId: string;
92
+ objectNameSingular: string;
93
+ resetNavigationStack?: boolean;
94
+ } | {
95
+ page: SidePanelPages.EditRichText;
96
+ recordId: string;
97
+ objectNameSingular: string;
98
+ fieldName?: string;
99
+ } | {
100
+ page: SidePanelPages.ComposeEmail;
101
+ connectedAccountId: string;
102
+ threadId?: string;
103
+ defaultTo?: string;
104
+ defaultSubject?: string;
105
+ defaultInReplyTo?: string;
106
+ pageTitle?: string;
107
+ pageIcon?: string;
108
+ } | {
109
+ page: SidePanelPages.ViewFrontComponent;
110
+ frontComponentId: string;
111
+ recordId?: string;
112
+ objectNameSingular?: string;
113
+ pageTitle: string;
114
+ pageIcon?: string;
115
+ resetNavigationStack?: boolean;
116
+ } | {
117
+ page: Exclude<SidePanelPages, SidePanelPages.ViewRecord | SidePanelPages.EditRichText | SidePanelPages.ComposeEmail | SidePanelPages.ViewFrontComponent>;
84
118
  pageTitle: string;
85
119
  pageIcon?: string;
86
120
  shouldResetSearchState?: boolean;
87
- }) => Promise<void>;
121
+ };
122
+ type OpenSidePanelPageFunction = (params: OpenSidePanelPageParams) => Promise<void>;
88
123
  type CommandConfirmationModalResult = 'confirm' | 'cancel';
89
124
  type CommandConfirmationModalAccent = 'default' | 'blue' | 'danger';
90
125
  type OpenCommandConfirmationModalFunction = (params: {
@@ -146,6 +181,7 @@ type FrontComponentExecutionContext = {
146
181
  selectedRecordIds: string[];
147
182
  /** Resolved color scheme of the host UI ('System' is already resolved) */
148
183
  colorScheme: 'light' | 'dark';
184
+ locale?: string;
149
185
  };
150
186
 
151
187
  declare const useFrontComponentExecutionContext: <T>(selector: (context: FrontComponentExecutionContext) => T) => T;
@@ -177,14 +213,8 @@ type CommandLinkProps<T extends AppPath> = {
177
213
  };
178
214
  declare const CommandLink: <T extends AppPath>({ to, params, queryParams, options, }: CommandLinkProps<T>) => null;
179
215
 
180
- type CommandOpenSidePanelPageProps = {
181
- page: SidePanelPages;
182
- pageTitle: string;
183
- pageIcon: string;
184
- onClick?: () => void;
185
- shouldResetSearchState?: boolean;
186
- };
187
- declare const CommandOpenSidePanelPage: ({ page, pageTitle, pageIcon, onClick, shouldResetSearchState, }: CommandOpenSidePanelPageProps) => null;
216
+ type CommandOpenSidePanelPageProps = OpenSidePanelPageParams;
217
+ declare const CommandOpenSidePanelPage: (props: CommandOpenSidePanelPageProps) => null;
188
218
 
189
219
  type CommandModalProps = {
190
220
  title: string;
@@ -196,4 +226,4 @@ type CommandModalProps = {
196
226
  declare const CommandModal: ({ title, subtitle, execute, confirmButtonText, confirmButtonAccent, }: CommandModalProps) => null;
197
227
 
198
228
  export { AppPath, Command, CommandLink, CommandModal, CommandOpenSidePanelPage, SidePanelPages, closeSidePanel, copyToClipboard, enqueueSnackbar, getApplicationVariable, getFrontComponentCommandErrorDedupeKey, navigate, openCommandConfirmationModal, openSidePanelPage, unmountFrontComponent, updateProgress, useColorScheme, useFrontComponentExecutionContext, useFrontComponentId, useRecordId, useSelectedRecordIds, useUserId };
199
- export type { CloseSidePanelFunction, CommandConfirmationModalAccent, CommandConfirmationModalResult, CommandLinkProps, CommandModalProps, CommandOpenSidePanelPageProps, CommandProps, CopyToClipboardFunction, EnqueueSnackbarFunction, EnqueueSnackbarParams, FrontComponentExecutionContext, NavigateFunction, OpenCommandConfirmationModalFunction, OpenCommandConfirmationModalHostFunction, OpenSidePanelPageFunction, RequestAccessTokenRefreshFunction, SnackBarVariant, UnmountFrontComponentFunction, UpdateProgressFunction };
229
+ export type { CloseSidePanelFunction, CommandConfirmationModalAccent, CommandConfirmationModalResult, CommandLinkProps, CommandModalProps, CommandOpenSidePanelPageProps, CommandProps, CopyToClipboardFunction, EnqueueSnackbarFunction, EnqueueSnackbarParams, FrontComponentExecutionContext, NavigateFunction, OpenCommandConfirmationModalFunction, OpenCommandConfirmationModalHostFunction, OpenSidePanelPageFunction, OpenSidePanelPageParams, RequestAccessTokenRefreshFunction, SnackBarVariant, UnmountFrontComponentFunction, UpdateProgressFunction };