twenty-sdk 2.15.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 (64) hide show
  1. package/dist/assets/halftone-backdrop.png +0 -0
  2. package/dist/billing/index.cjs +1 -1
  3. package/dist/billing/index.cjs.map +1 -1
  4. package/dist/billing/index.mjs +2 -1
  5. package/dist/billing/index.mjs.map +1 -1
  6. package/dist/{catalog-sync-C5Bb1KSh.js → catalog-sync-CgKswjsE.js} +1 -1
  7. package/dist/{catalog-sync-DcpUieU5.mjs → catalog-sync-YxvEEHz5.mjs} +1 -1
  8. package/dist/cli/commands/dev/i18n-extract.d.ts +7 -0
  9. package/dist/cli/utilities/build/common/build-application.d.ts +2 -0
  10. package/dist/cli/utilities/build/common/front-component-build/css-injection-plugin.d.ts +2 -0
  11. package/dist/cli/utilities/build/cover/apply-generated-cover.d.ts +9 -0
  12. package/dist/cli/utilities/build/cover/assets/twenty-logo-mark-path.d.ts +1 -0
  13. package/dist/cli/utilities/build/cover/generate-cover-image.d.ts +5 -0
  14. package/dist/cli/utilities/build/cover/generated-asset.type.d.ts +4 -0
  15. package/dist/cli/utilities/build/cover/generated-cover-path.d.ts +1 -0
  16. package/dist/cli/utilities/i18n/collect-translatable-strings.d.ts +2 -0
  17. package/dist/cli/utilities/i18n/compile-application-translations.d.ts +1 -0
  18. package/dist/cli/utilities/i18n/constants.d.ts +1 -0
  19. package/dist/cli/utilities/i18n/extract-application-translations.d.ts +10 -0
  20. package/dist/cli/utilities/i18n/generate-message-id.d.ts +1 -0
  21. package/dist/cli.cjs +35 -33
  22. package/dist/cli.mjs +896 -836
  23. package/dist/define/index.cjs +19 -19
  24. package/dist/define/index.cjs.map +1 -1
  25. package/dist/define/index.d.ts +30 -15
  26. package/dist/define/index.mjs +2293 -1036
  27. package/dist/define/index.mjs.map +1 -1
  28. package/dist/front-component/index.cjs +1 -1
  29. package/dist/front-component/index.cjs.map +1 -1
  30. package/dist/front-component/index.d.ts +43 -12
  31. package/dist/front-component/index.mjs +134 -143
  32. package/dist/front-component/index.mjs.map +1 -1
  33. package/dist/front-component-renderer/build.cjs +1 -1
  34. package/dist/front-component-renderer/build.mjs +1 -1
  35. package/dist/front-component-renderer.cjs +1 -1
  36. package/dist/{get-front-component-build-plugins-DBupR4cF.js → get-front-component-build-plugins-Dqpyup2W.js} +9 -5
  37. package/dist/get-front-component-build-plugins-taotEFOp.mjs +126 -0
  38. package/dist/{get-function-input-schema-GNk3NRLJ-oMYSgib9.mjs → get-function-input-schema-GNk3NRLJ-CfeAvjEl.mjs} +1 -1
  39. package/dist/get-function-input-schema-GNk3NRLJ-D8x7FINz.js +1 -0
  40. package/dist/isDefined-Dtu5EYqP-Dp026Ry1.js +1 -0
  41. package/dist/logic-function/index.cjs +1 -1
  42. package/dist/logic-function/index.cjs.map +1 -1
  43. package/dist/logic-function/index.d.ts +15 -9
  44. package/dist/logic-function/index.mjs +1 -0
  45. package/dist/logic-function/index.mjs.map +1 -1
  46. package/dist/login-BOrzi4Z0.js +345 -0
  47. package/dist/{login-Cm5IBGFm.mjs → login-Dg4Ap-uo.mjs} +6932 -5552
  48. package/dist/operations.cjs +1 -1
  49. package/dist/operations.mjs +1 -1
  50. package/dist/utils/index.cjs +1 -1
  51. package/dist/utils/index.cjs.map +1 -1
  52. package/dist/utils/index.mjs +2 -1
  53. package/dist/utils/index.mjs.map +1 -1
  54. package/package.json +4 -12
  55. package/dist/AllIcons-DEGfvqso-DwtvkCyL.js +0 -1
  56. package/dist/AllIcons-DEGfvqso-PUvdkUZm.mjs +0 -66238
  57. package/dist/get-front-component-build-plugins-BuE2QdIr.mjs +0 -113
  58. package/dist/get-function-input-schema-GNk3NRLJ-DMgchWCN.js +0 -1
  59. package/dist/icon-BSeT8K5G-Cuhg-Bz6.js +0 -1
  60. package/dist/icon-BSeT8K5G-WVhoiRKN.mjs +0 -10144
  61. package/dist/login-LjERatsq.js +0 -345
  62. package/dist/ui/index.cjs +0 -34
  63. package/dist/ui/index.d.ts +0 -18
  64. package/dist/ui/index.mjs +0 -20678
@@ -2,15 +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",
8
+ SignInUpV2 = "/welcome-v2",
7
9
  Invite = "/invite/:workspaceInviteHash",
8
10
  ResetPassword = "/reset-password/:passwordResetToken",
9
11
  WorkspaceActivation = "/workspace-activation",
12
+ WorkspaceActivationV2 = "/workspace-activation-v2",
10
13
  CreateProfile = "/create/profile",
14
+ CreateProfileV2 = "/create/profile-v2",
11
15
  SyncEmails = "/sync/emails",
16
+ SyncEmailsV2 = "/sync/emails-v2",
12
17
  InviteTeam = "/invite-team",
18
+ InviteTeamV2 = "/invite-team-v2",
13
19
  PlanRequired = "/plan-required",
20
+ PlanRequiredV2 = "/plan-required-v2",
14
21
  PlanRequiredSuccess = "/plan-required/payment-success",
15
22
  BookCallDecision = "/book-call-decision",
16
23
  BookCall = "/book-call",
@@ -25,6 +32,7 @@ declare enum AppPath {
25
32
  Developers = "developers",
26
33
  DevelopersCatchAll = "/developers/*",
27
34
  Authorize = "/authorize",
35
+ Dpa = "/dpa",
28
36
  NotFoundWildcard = "*",
29
37
  NotFound = "/not-found"
30
38
  }
@@ -78,12 +86,40 @@ declare enum SidePanelPages {
78
86
  declare const getAppPath: <T extends AppPath>(to: T, params?: { [key in PathParam<T>]: string | null; } | undefined, queryParams?: Record<string, any> | undefined) => string;
79
87
 
80
88
  type NavigateFunction = <T extends AppPath>(to: T, params?: Parameters<typeof getAppPath<T>>[1], queryParams?: Record<string, any>, options?: NavigateOptions) => Promise<void>;
81
- type OpenSidePanelPageFunction = (params: {
82
- 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>;
83
118
  pageTitle: string;
84
119
  pageIcon?: string;
85
120
  shouldResetSearchState?: boolean;
86
- }) => Promise<void>;
121
+ };
122
+ type OpenSidePanelPageFunction = (params: OpenSidePanelPageParams) => Promise<void>;
87
123
  type CommandConfirmationModalResult = 'confirm' | 'cancel';
88
124
  type CommandConfirmationModalAccent = 'default' | 'blue' | 'danger';
89
125
  type OpenCommandConfirmationModalFunction = (params: {
@@ -145,6 +181,7 @@ type FrontComponentExecutionContext = {
145
181
  selectedRecordIds: string[];
146
182
  /** Resolved color scheme of the host UI ('System' is already resolved) */
147
183
  colorScheme: 'light' | 'dark';
184
+ locale?: string;
148
185
  };
149
186
 
150
187
  declare const useFrontComponentExecutionContext: <T>(selector: (context: FrontComponentExecutionContext) => T) => T;
@@ -176,14 +213,8 @@ type CommandLinkProps<T extends AppPath> = {
176
213
  };
177
214
  declare const CommandLink: <T extends AppPath>({ to, params, queryParams, options, }: CommandLinkProps<T>) => null;
178
215
 
179
- type CommandOpenSidePanelPageProps = {
180
- page: SidePanelPages;
181
- pageTitle: string;
182
- pageIcon: string;
183
- onClick?: () => void;
184
- shouldResetSearchState?: boolean;
185
- };
186
- declare const CommandOpenSidePanelPage: ({ page, pageTitle, pageIcon, onClick, shouldResetSearchState, }: CommandOpenSidePanelPageProps) => null;
216
+ type CommandOpenSidePanelPageProps = OpenSidePanelPageParams;
217
+ declare const CommandOpenSidePanelPage: (props: CommandOpenSidePanelPageProps) => null;
187
218
 
188
219
  type CommandModalProps = {
189
220
  title: string;
@@ -195,4 +226,4 @@ type CommandModalProps = {
195
226
  declare const CommandModal: ({ title, subtitle, execute, confirmButtonText, confirmButtonAccent, }: CommandModalProps) => null;
196
227
 
197
228
  export { AppPath, Command, CommandLink, CommandModal, CommandOpenSidePanelPage, SidePanelPages, closeSidePanel, copyToClipboard, enqueueSnackbar, getApplicationVariable, getFrontComponentCommandErrorDedupeKey, navigate, openCommandConfirmationModal, openSidePanelPage, unmountFrontComponent, updateProgress, useColorScheme, useFrontComponentExecutionContext, useFrontComponentId, useRecordId, useSelectedRecordIds, useUserId };
198
- 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 };