twenty-sdk 2.31.0 → 2.35.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.
- package/CHANGELOG.md +17 -0
- package/dist/billing/index.cjs +1 -1
- package/dist/billing/index.cjs.map +1 -1
- package/dist/billing/index.mjs +2 -2
- package/dist/billing/index.mjs.map +1 -1
- package/dist/{catalog-sync-Ch6nB5uf.mjs → catalog-sync-C0Td21sN.mjs} +1 -1
- package/dist/{catalog-sync-yH3B_al1.js → catalog-sync-Cn-gDxAz.js} +1 -1
- package/dist/cli/utilities/build/manifest/manifest-extract-config.d.ts +4 -2
- package/dist/cli/utilities/build/manifest/utils/manifest-validation-helpers.d.ts +10 -0
- package/dist/cli/utilities/build/manifest/utils/validate-timeline-activity-types.d.ts +2 -0
- package/dist/cli/utilities/dev/orchestrator/dev-mode-orchestrator.d.ts +2 -0
- package/dist/cli/utilities/entity/entity-timeline-activity-type-template.d.ts +3 -0
- package/dist/cli/utilities/translations/collect-translatable-strings.d.ts +2 -1
- package/dist/cli/utilities/translations/compile-application-translations.d.ts +1 -1
- package/dist/cli/utilities/translations/compile-catalog-to-message-ids.d.ts +8 -0
- package/dist/cli/utilities/translations/locale-catalog-format.d.ts +7 -0
- package/dist/cli.cjs +48 -41
- package/dist/cli.mjs +3160 -3136
- package/dist/define/index.cjs +14 -14
- package/dist/define/index.cjs.map +1 -1
- package/dist/define/index.d.ts +65 -5
- package/dist/define/index.mjs +2769 -2734
- package/dist/define/index.mjs.map +1 -1
- package/dist/front-component/index.cjs +22 -3
- package/dist/front-component/index.cjs.map +1 -1
- package/dist/front-component/index.d.ts +53 -5
- package/dist/front-component/index.mjs +2026 -655
- package/dist/front-component/index.mjs.map +1 -1
- package/dist/front-component-renderer/build.cjs +1 -1
- package/dist/front-component-renderer/build.mjs +1 -1
- package/dist/{get-front-component-build-plugins-DA62IZes.mjs → get-front-component-build-plugins-BZ1HBS5Y.mjs} +70 -68
- package/dist/{get-front-component-build-plugins-C-Webbfn.js → get-front-component-build-plugins-CcV3Cown.js} +8 -8
- package/dist/{get-function-input-schema-GNk3NRLJ-C5HXalke.mjs → get-function-input-schema-GNk3NRLJ-BimwLfRN.mjs} +1 -1
- package/dist/{get-function-input-schema-GNk3NRLJ-DwfXUGPz.js → get-function-input-schema-GNk3NRLJ-Byssjp8I.js} +1 -1
- package/dist/logic-function/index.cjs +9 -9
- package/dist/logic-function/index.cjs.map +1 -1
- package/dist/logic-function/index.d.ts +67 -4
- package/dist/logic-function/index.mjs +595 -551
- package/dist/logic-function/index.mjs.map +1 -1
- package/dist/{login-BzHQgxeV.js → login-Cl-mw1L0.js} +68 -49
- package/dist/{login-BHgUJK94.mjs → login-CuJiHYwZ.mjs} +5963 -4476
- package/dist/operations.cjs +1 -1
- package/dist/operations.mjs +3 -3
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.mjs +2 -2
- package/dist/utils/index.mjs.map +1 -1
- package/package.json +2 -2
- package/dist/cli/utilities/client/twenty-client-template.d.ts +0 -42
- package/dist/cli/utilities/translations/generate-message-id.d.ts +0 -1
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { PathParam, NavigateOptions as NavigateOptions$1 } from 'react-router-dom';
|
|
3
3
|
|
|
4
|
-
type TranslationValues = Record<string, string | number>;
|
|
5
|
-
|
|
6
4
|
type MessageDescriptor = {
|
|
7
5
|
message: string;
|
|
8
6
|
context?: string;
|
|
@@ -43,6 +41,8 @@ declare const APP_LOCALES: {
|
|
|
43
41
|
};
|
|
44
42
|
type AppLocale = keyof typeof APP_LOCALES;
|
|
45
43
|
|
|
44
|
+
type TranslationValues = Record<string, string | number>;
|
|
45
|
+
|
|
46
46
|
type TransProps = {
|
|
47
47
|
children?: ReactNode;
|
|
48
48
|
message?: string;
|
|
@@ -67,11 +67,13 @@ declare enum AppPath {
|
|
|
67
67
|
BookCall = "/book-call",
|
|
68
68
|
AiChat = "/chat/:threadId?",
|
|
69
69
|
Index = "/",
|
|
70
|
+
Home = "/home",
|
|
70
71
|
TasksPage = "/objects/tasks",
|
|
71
72
|
OpportunitiesPage = "/objects/opportunities",
|
|
72
73
|
RecordIndexPage = "/objects/:objectNamePlural",
|
|
73
74
|
RecordShowPage = "/object/:objectNameSingular/:objectRecordId",
|
|
74
75
|
PageLayoutPage = "/page/:pageLayoutId",
|
|
76
|
+
WorkflowCoreIndexPage = "/workflow-core",
|
|
75
77
|
Settings = "settings",
|
|
76
78
|
SettingsCatchAll = "/settings/*",
|
|
77
79
|
Developers = "developers",
|
|
@@ -125,12 +127,17 @@ declare enum SidePanelPages {
|
|
|
125
127
|
CommandMenuEdit = "command-menu-edit",
|
|
126
128
|
PageLayoutRecordPageWidgetTypeSelect = "page-layout-record-page-widget-type-select",
|
|
127
129
|
ComposeEmail = "compose-email",
|
|
130
|
+
ComposeCalendarEvent = "compose-calendar-event",
|
|
131
|
+
CreateRelatedRecord = "create-related-record",
|
|
128
132
|
SendCampaignTest = "send-campaign-test",
|
|
129
|
-
EmailBlockSettings = "email-block-settings"
|
|
133
|
+
EmailBlockSettings = "email-block-settings",
|
|
134
|
+
SettingsMetadataTranslations = "settings-metadata-translations"
|
|
130
135
|
}
|
|
131
136
|
|
|
132
137
|
declare const getAppPath: <T extends AppPath>(to: T, params?: { [key in PathParam<T>]: string | null; } | undefined, queryParams?: Record<string, any> | undefined) => string;
|
|
133
138
|
|
|
139
|
+
type FrontComponentStorageType = 'localStorage' | 'sessionStorage';
|
|
140
|
+
|
|
134
141
|
type NavigateFunction = <T extends AppPath>(to: T, params?: Parameters<typeof getAppPath<T>>[1], queryParams?: Record<string, any>, options?: NavigateOptions) => Promise<void>;
|
|
135
142
|
type OpenSidePanelPageParams = {
|
|
136
143
|
page: SidePanelPages.ViewRecord;
|
|
@@ -191,7 +198,39 @@ type CloseSidePanelFunction = () => Promise<void>;
|
|
|
191
198
|
type UpdateProgressFunction = (progress: number) => Promise<void>;
|
|
192
199
|
type RequestAccessTokenRefreshFunction = () => Promise<string>;
|
|
193
200
|
type CopyToClipboardFunction = (text: string) => Promise<void>;
|
|
201
|
+
type UploadedFrontComponentFile = {
|
|
202
|
+
fileId: string;
|
|
203
|
+
path: string;
|
|
204
|
+
url: string;
|
|
205
|
+
size: number;
|
|
206
|
+
mimeType: string;
|
|
207
|
+
};
|
|
208
|
+
type UploadFileParams = {
|
|
209
|
+
fieldMetadataId: string;
|
|
210
|
+
fileName?: string;
|
|
211
|
+
};
|
|
212
|
+
type UploadFileFailureReason = 'invalid-params' | 'upload-failed';
|
|
213
|
+
type UploadFileResult = {
|
|
214
|
+
status: 'uploaded';
|
|
215
|
+
file: UploadedFrontComponentFile;
|
|
216
|
+
} | {
|
|
217
|
+
status: 'failed';
|
|
218
|
+
reason: UploadFileFailureReason;
|
|
219
|
+
};
|
|
220
|
+
type UploadFileFunction = (file: Blob, params: UploadFileParams) => Promise<UploadFileResult>;
|
|
194
221
|
type OpenCommandConfirmationModalHostFunction = (params: Parameters<OpenCommandConfirmationModalFunction>[0]) => Promise<void>;
|
|
222
|
+
type StorageSetFunction = (params: {
|
|
223
|
+
storageType: FrontComponentStorageType;
|
|
224
|
+
key: string;
|
|
225
|
+
serializedValue: string;
|
|
226
|
+
}) => Promise<void>;
|
|
227
|
+
type StorageDeleteFunction = (params: {
|
|
228
|
+
storageType: FrontComponentStorageType;
|
|
229
|
+
key: string;
|
|
230
|
+
}) => Promise<void>;
|
|
231
|
+
type StorageClearFunction = (params: {
|
|
232
|
+
storageType: FrontComponentStorageType;
|
|
233
|
+
}) => Promise<void>;
|
|
195
234
|
type FrontComponentHostCommunicationApiStore = {
|
|
196
235
|
navigate?: NavigateFunction;
|
|
197
236
|
requestAccessTokenRefresh?: RequestAccessTokenRefreshFunction;
|
|
@@ -202,6 +241,10 @@ type FrontComponentHostCommunicationApiStore = {
|
|
|
202
241
|
closeSidePanel?: CloseSidePanelFunction;
|
|
203
242
|
updateProgress?: UpdateProgressFunction;
|
|
204
243
|
copyToClipboard?: CopyToClipboardFunction;
|
|
244
|
+
uploadFile?: UploadFileFunction;
|
|
245
|
+
storageSet?: StorageSetFunction;
|
|
246
|
+
storageDelete?: StorageDeleteFunction;
|
|
247
|
+
storageClear?: StorageClearFunction;
|
|
205
248
|
};
|
|
206
249
|
declare global {
|
|
207
250
|
var frontComponentHostCommunicationApi: FrontComponentHostCommunicationApiStore;
|
|
@@ -225,6 +268,8 @@ declare const unmountFrontComponent: UnmountFrontComponentFunction;
|
|
|
225
268
|
|
|
226
269
|
declare const updateProgress: UpdateProgressFunction;
|
|
227
270
|
|
|
271
|
+
declare const uploadFile: UploadFileFunction;
|
|
272
|
+
|
|
228
273
|
declare const useColorScheme: () => "light" | "dark";
|
|
229
274
|
|
|
230
275
|
type FrontComponentExecutionContext = {
|
|
@@ -236,6 +281,7 @@ type FrontComponentExecutionContext = {
|
|
|
236
281
|
recordId: string | null;
|
|
237
282
|
/** All selected record IDs */
|
|
238
283
|
selectedRecordIds: string[];
|
|
284
|
+
timelineActivityId: string | null;
|
|
239
285
|
/** Resolved color scheme of the host UI ('System' is already resolved) */
|
|
240
286
|
colorScheme: 'light' | 'dark';
|
|
241
287
|
locale?: AppLocale;
|
|
@@ -261,6 +307,8 @@ declare const useRecordId: () => string | null;
|
|
|
261
307
|
|
|
262
308
|
declare const useSelectedRecordIds: () => string[];
|
|
263
309
|
|
|
310
|
+
declare const useTimelineActivityId: () => string | null;
|
|
311
|
+
|
|
264
312
|
declare const useUserId: () => string | null;
|
|
265
313
|
|
|
266
314
|
declare const msg: (descriptor: string | MessageDescriptor) => MessageDescriptor;
|
|
@@ -294,5 +342,5 @@ type CommandModalProps = {
|
|
|
294
342
|
};
|
|
295
343
|
declare const CommandModal: ({ title, subtitle, execute, confirmButtonText, confirmButtonAccent, }: CommandModalProps) => null;
|
|
296
344
|
|
|
297
|
-
export { AppPath, Command, CommandLink, CommandModal, CommandOpenSidePanelPage, SidePanelPages, Trans, closeSidePanel, copyToClipboard, enqueueSnackbar, getApplicationVariable, getFrontComponentCommandErrorDedupeKey, msg, navigate, openCommandConfirmationModal, openSidePanelPage, t, unmountFrontComponent, updateProgress, useColorScheme, useFrontComponentExecutionContext, useFrontComponentId, useLocale, useRecordId, useSelectedRecordIds, useTranslate, useUserId };
|
|
298
|
-
export type { CloseSidePanelFunction, CommandConfirmationModalAccent, CommandConfirmationModalResult, CommandLinkProps, CommandModalProps, CommandOpenSidePanelPageProps, CommandProps, CopyToClipboardFunction, EnqueueSnackbarFunction, EnqueueSnackbarParams, FrontComponentExecutionContext, MessageDescriptor, NavigateFunction, OpenCommandConfirmationModalFunction, OpenCommandConfirmationModalHostFunction, OpenSidePanelPageFunction, OpenSidePanelPageParams, RequestAccessTokenRefreshFunction, SnackBarVariant, TransProps, TranslationValues, UnmountFrontComponentFunction, UpdateProgressFunction, UseTranslateResult };
|
|
345
|
+
export { AppPath, Command, CommandLink, CommandModal, CommandOpenSidePanelPage, SidePanelPages, Trans, closeSidePanel, copyToClipboard, enqueueSnackbar, getApplicationVariable, getFrontComponentCommandErrorDedupeKey, msg, navigate, openCommandConfirmationModal, openSidePanelPage, t, unmountFrontComponent, updateProgress, uploadFile, useColorScheme, useFrontComponentExecutionContext, useFrontComponentId, useLocale, useRecordId, useSelectedRecordIds, useTimelineActivityId, useTranslate, useUserId };
|
|
346
|
+
export type { CloseSidePanelFunction, CommandConfirmationModalAccent, CommandConfirmationModalResult, CommandLinkProps, CommandModalProps, CommandOpenSidePanelPageProps, CommandProps, CopyToClipboardFunction, EnqueueSnackbarFunction, EnqueueSnackbarParams, FrontComponentExecutionContext, FrontComponentStorageType, MessageDescriptor, NavigateFunction, OpenCommandConfirmationModalFunction, OpenCommandConfirmationModalHostFunction, OpenSidePanelPageFunction, OpenSidePanelPageParams, RequestAccessTokenRefreshFunction, SnackBarVariant, StorageClearFunction, StorageDeleteFunction, StorageSetFunction, TransProps, TranslationValues, UnmountFrontComponentFunction, UpdateProgressFunction, UploadFileFailureReason, UploadFileFunction, UploadFileParams, UploadFileResult, UploadedFrontComponentFile, UseTranslateResult };
|