twenty-sdk 2.13.0 → 2.15.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/README.md +4 -0
- package/dist/AllIcons-DEGfvqso-DwtvkCyL.js +1 -0
- package/dist/{AllIcons-BwIoyggb-DpmEuQAR.mjs → AllIcons-DEGfvqso-PUvdkUZm.mjs} +491 -492
- package/dist/catalog-sync-C5Bb1KSh.js +1 -0
- package/dist/{catalog-sync-BfaTQFam.mjs → catalog-sync-DcpUieU5.mjs} +1 -1
- package/dist/cli/commands/dev/dev.d.ts +1 -0
- package/dist/cli/operations/index.d.ts +2 -0
- package/dist/cli/operations/server-start.d.ts +1 -0
- package/dist/cli/utilities/api/api-client.d.ts +3 -1
- package/dist/cli/utilities/api/api-response-type.d.ts +1 -0
- package/dist/cli/utilities/auth/reauth-helper.d.ts +2 -0
- package/dist/cli/utilities/server/docker-container.d.ts +1 -0
- package/dist/cli/utilities/version/get-engine-version-range.d.ts +1 -0
- package/dist/cli/utilities/version/resolve-highest-engine-version.d.ts +1 -0
- package/dist/cli.cjs +34 -34
- package/dist/cli.mjs +1705 -1700
- package/dist/define/index.cjs +11 -11
- package/dist/define/index.cjs.map +1 -1
- package/dist/define/index.d.ts +127 -7
- package/dist/define/index.mjs +36081 -36039
- package/dist/define/index.mjs.map +1 -1
- package/dist/front-component/index.cjs +1 -1
- package/dist/front-component/index.cjs.map +1 -1
- package/dist/front-component/index.d.ts +6 -3
- package/dist/front-component/index.mjs +8 -8
- package/dist/front-component/index.mjs.map +1 -1
- package/dist/front-component-renderer.cjs +1 -1
- package/dist/get-function-input-schema-GNk3NRLJ-DMgchWCN.js +1 -0
- package/dist/{get-function-input-schema-NI9y_bIk-LH_O2OgF.mjs → get-function-input-schema-GNk3NRLJ-oMYSgib9.mjs} +31 -21
- package/dist/icon-BSeT8K5G-Cuhg-Bz6.js +1 -0
- package/dist/icon-BSeT8K5G-WVhoiRKN.mjs +10144 -0
- package/dist/logic-function/get-function-input-schema-GNk3NRLJ-D8x7FINz.js +2 -0
- package/dist/logic-function/get-function-input-schema-GNk3NRLJ-D8x7FINz.js.map +1 -0
- package/dist/logic-function/get-function-input-schema-GNk3NRLJ-DSc3lI49.mjs +75 -0
- package/dist/logic-function/get-function-input-schema-GNk3NRLJ-DSc3lI49.mjs.map +1 -0
- package/dist/logic-function/index.cjs +4 -4
- package/dist/logic-function/index.cjs.map +1 -1
- package/dist/logic-function/index.d.ts +18 -3
- package/dist/logic-function/index.mjs +143 -28
- package/dist/logic-function/index.mjs.map +1 -1
- package/dist/logic-function/isDefined-Dtu5EYqP-CMNeFg4z.mjs +7 -0
- package/dist/logic-function/isDefined-Dtu5EYqP-CMNeFg4z.mjs.map +1 -0
- package/dist/logic-function/isDefined-Dtu5EYqP-Dp026Ry1.js +2 -0
- package/dist/logic-function/isDefined-Dtu5EYqP-Dp026Ry1.js.map +1 -0
- package/dist/{login-oauth-BMTHndmD.mjs → login-Cm5IBGFm.mjs} +39521 -39320
- package/dist/login-LjERatsq.js +345 -0
- package/dist/operations.cjs +1 -1
- package/dist/operations.mjs +4 -4
- package/dist/ui/index.cjs +33 -6
- package/dist/ui/index.d.ts +18 -12
- package/dist/ui/index.mjs +20408 -1123
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.ts +3 -1
- package/dist/utils/index.mjs +9 -8
- package/dist/utils/index.mjs.map +1 -1
- package/package.json +5 -3
- package/dist/AllIcons-BwIoyggb-Ck9DmOFs.js +0 -1
- package/dist/catalog-sync-MvJJHh7v.js +0 -1
- package/dist/display-Co0K-nTB-CPdyKmin.js +0 -83
- package/dist/display-Co0K-nTB-DIalVNdw.mjs +0 -54655
- package/dist/get-function-input-schema-NI9y_bIk-BZ2G7LIj.js +0 -1
- package/dist/login-oauth-DN2eTP67.js +0 -345
|
@@ -6,7 +6,7 @@ declare enum AppPath {
|
|
|
6
6
|
SignInUp = "/welcome",
|
|
7
7
|
Invite = "/invite/:workspaceInviteHash",
|
|
8
8
|
ResetPassword = "/reset-password/:passwordResetToken",
|
|
9
|
-
|
|
9
|
+
WorkspaceActivation = "/workspace-activation",
|
|
10
10
|
CreateProfile = "/create/profile",
|
|
11
11
|
SyncEmails = "/sync/emails",
|
|
12
12
|
InviteTeam = "/invite-team",
|
|
@@ -48,7 +48,6 @@ declare enum SidePanelPages {
|
|
|
48
48
|
ViewRecord = "view-record",
|
|
49
49
|
MergeRecords = "merge-records",
|
|
50
50
|
UpdateRecords = "update-records",
|
|
51
|
-
ViewCalendarEvent = "view-calendar-event",
|
|
52
51
|
EditRichText = "edit-rich-text",
|
|
53
52
|
Copilot = "copilot",
|
|
54
53
|
WorkflowTriggerSelectType = "workflow-trigger-select-type",
|
|
@@ -133,6 +132,8 @@ declare const unmountFrontComponent: UnmountFrontComponentFunction;
|
|
|
133
132
|
|
|
134
133
|
declare const updateProgress: UpdateProgressFunction;
|
|
135
134
|
|
|
135
|
+
declare const useColorScheme: () => "light" | "dark";
|
|
136
|
+
|
|
136
137
|
type FrontComponentExecutionContext = {
|
|
137
138
|
frontComponentId: string;
|
|
138
139
|
userId: string | null;
|
|
@@ -142,6 +143,8 @@ type FrontComponentExecutionContext = {
|
|
|
142
143
|
recordId: string | null;
|
|
143
144
|
/** All selected record IDs */
|
|
144
145
|
selectedRecordIds: string[];
|
|
146
|
+
/** Resolved color scheme of the host UI ('System' is already resolved) */
|
|
147
|
+
colorScheme: 'light' | 'dark';
|
|
145
148
|
};
|
|
146
149
|
|
|
147
150
|
declare const useFrontComponentExecutionContext: <T>(selector: (context: FrontComponentExecutionContext) => T) => T;
|
|
@@ -191,5 +194,5 @@ type CommandModalProps = {
|
|
|
191
194
|
};
|
|
192
195
|
declare const CommandModal: ({ title, subtitle, execute, confirmButtonText, confirmButtonAccent, }: CommandModalProps) => null;
|
|
193
196
|
|
|
194
|
-
export { AppPath, Command, CommandLink, CommandModal, CommandOpenSidePanelPage, SidePanelPages, closeSidePanel, copyToClipboard, enqueueSnackbar, getApplicationVariable, getFrontComponentCommandErrorDedupeKey, navigate, openCommandConfirmationModal, openSidePanelPage, unmountFrontComponent, updateProgress, useFrontComponentExecutionContext, useFrontComponentId, useRecordId, useSelectedRecordIds, useUserId };
|
|
197
|
+
export { AppPath, Command, CommandLink, CommandModal, CommandOpenSidePanelPage, SidePanelPages, closeSidePanel, copyToClipboard, enqueueSnackbar, getApplicationVariable, getFrontComponentCommandErrorDedupeKey, navigate, openCommandConfirmationModal, openSidePanelPage, unmountFrontComponent, updateProgress, useColorScheme, useFrontComponentExecutionContext, useFrontComponentId, useRecordId, useSelectedRecordIds, useUserId };
|
|
195
198
|
export type { CloseSidePanelFunction, CommandConfirmationModalAccent, CommandConfirmationModalResult, CommandLinkProps, CommandModalProps, CommandOpenSidePanelPageProps, CommandProps, CopyToClipboardFunction, EnqueueSnackbarFunction, EnqueueSnackbarParams, FrontComponentExecutionContext, NavigateFunction, OpenCommandConfirmationModalFunction, OpenCommandConfirmationModalHostFunction, OpenSidePanelPageFunction, RequestAccessTokenRefreshFunction, SnackBarVariant, UnmountFrontComponentFunction, UpdateProgressFunction };
|
|
@@ -2158,7 +2158,7 @@ function Vi(e) {
|
|
|
2158
2158
|
//#endregion
|
|
2159
2159
|
//#region ../twenty-shared/node_modules/class-validator/esm5/metadata/ConstraintMetadata.js
|
|
2160
2160
|
var Hi = /* @__PURE__ */ function(e) {
|
|
2161
|
-
return e.Verify = "/verify", e.VerifyEmail = "/verify-email", e.SignInUp = "/welcome", e.Invite = "/invite/:workspaceInviteHash", e.ResetPassword = "/reset-password/:passwordResetToken", e.
|
|
2161
|
+
return e.Verify = "/verify", e.VerifyEmail = "/verify-email", e.SignInUp = "/welcome", e.Invite = "/invite/:workspaceInviteHash", e.ResetPassword = "/reset-password/:passwordResetToken", e.WorkspaceActivation = "/workspace-activation", e.CreateProfile = "/create/profile", e.SyncEmails = "/sync/emails", e.InviteTeam = "/invite-team", e.PlanRequired = "/plan-required", e.PlanRequiredSuccess = "/plan-required/payment-success", e.BookCallDecision = "/book-call-decision", e.BookCall = "/book-call", e.Index = "/", e.TasksPage = "/objects/tasks", e.OpportunitiesPage = "/objects/opportunities", e.RecordIndexPage = "/objects/:objectNamePlural", e.RecordShowPage = "/object/:objectNameSingular/:objectRecordId", e.PageLayoutPage = "/page/:pageLayoutId", e.Settings = "settings", e.SettingsCatchAll = "/settings/*", e.Developers = "developers", e.DevelopersCatchAll = "/developers/*", e.Authorize = "/authorize", e.NotFoundWildcard = "*", e.NotFound = "/not-found", e;
|
|
2162
2162
|
}({}), Y = /* @__PURE__ */ function(e) {
|
|
2163
2163
|
return e.ACTOR = "ACTOR", e.ADDRESS = "ADDRESS", e.ARRAY = "ARRAY", e.BOOLEAN = "BOOLEAN", e.CURRENCY = "CURRENCY", e.DATE = "DATE", e.DATE_TIME = "DATE_TIME", e.EMAILS = "EMAILS", e.FILES = "FILES", e.FULL_NAME = "FULL_NAME", e.LINKS = "LINKS", e.MORPH_RELATION = "MORPH_RELATION", e.MULTI_SELECT = "MULTI_SELECT", e.NUMBER = "NUMBER", e.NUMERIC = "NUMERIC", e.PHONES = "PHONES", e.POSITION = "POSITION", e.RATING = "RATING", e.RAW_JSON = "RAW_JSON", e.RELATION = "RELATION", e.RICH_TEXT = "RICH_TEXT", e.SELECT = "SELECT", e.TEXT = "TEXT", e.TS_VECTOR = "TS_VECTOR", e.UUID = "UUID", e;
|
|
2164
2164
|
}({}), Ui = /* @__PURE__ */ function(e) {
|
|
@@ -2373,9 +2373,9 @@ oi({
|
|
|
2373
2373
|
[Y.RICH_TEXT, Zi]
|
|
2374
2374
|
]);
|
|
2375
2375
|
//#endregion
|
|
2376
|
-
//#region ../twenty-shared/dist/types-
|
|
2376
|
+
//#region ../twenty-shared/dist/types-B7mVSC6d.mjs
|
|
2377
2377
|
var Qi = /* @__PURE__ */ function(e) {
|
|
2378
|
-
return e.CommandMenuDisplay = "command-menu-display", e.ViewRecord = "view-record", e.MergeRecords = "merge-records", e.UpdateRecords = "update-records", e.
|
|
2378
|
+
return e.CommandMenuDisplay = "command-menu-display", e.ViewRecord = "view-record", 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.ViewPreviousAiChats = "view-previous-ai-chats", e.PageLayoutDashboardWidgetTypeSelect = "page-layout-dashboard-widget-type-select", e.PageLayoutTabSettings = "page-layout-tab-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.ComposeCampaign = "compose-campaign", e;
|
|
2379
2379
|
}({}), $i = "frontComponentHostCommunicationApi";
|
|
2380
2380
|
//#endregion
|
|
2381
2381
|
//#region src/sdk/front-component/globals/frontComponentHostCommunicationApi.ts
|
|
@@ -2428,7 +2428,7 @@ var X = globalThis.frontComponentHostCommunicationApi, ea = () => {
|
|
|
2428
2428
|
};
|
|
2429
2429
|
return fa(t), t(), () => pa(t);
|
|
2430
2430
|
}, [e]), t;
|
|
2431
|
-
}, ma = (e) => e.frontComponentId, $ = () => Q(
|
|
2431
|
+
}, ma = (e) => e.colorScheme, ha = () => Q(ma), ga = (e) => e.frontComponentId, $ = () => Q(ga), _a = (e) => e.selectedRecordIds.length === 1 ? e.selectedRecordIds[0] : null, va = () => Q(_a), ya = (e) => e.selectedRecordIds, ba = () => Q(ya), xa = (e) => e.userId, Sa = () => Q(xa), Ca = (e) => `${e}-command-error`, wa = ({ execute: e }) => {
|
|
2432
2432
|
let [t, n] = a(!1);
|
|
2433
2433
|
return r(() => {
|
|
2434
2434
|
t || (n(!0), (async () => {
|
|
@@ -2439,7 +2439,7 @@ var X = globalThis.frontComponentHostCommunicationApi, ea = () => {
|
|
|
2439
2439
|
t,
|
|
2440
2440
|
$()
|
|
2441
2441
|
]), null;
|
|
2442
|
-
},
|
|
2442
|
+
}, Ta = ({ to: e, params: t, queryParams: n, options: i }) => {
|
|
2443
2443
|
let [o, s] = a(!1);
|
|
2444
2444
|
return r(() => {
|
|
2445
2445
|
o || (s(!0), (async () => {
|
|
@@ -2453,7 +2453,7 @@ var X = globalThis.frontComponentHostCommunicationApi, ea = () => {
|
|
|
2453
2453
|
o,
|
|
2454
2454
|
$()
|
|
2455
2455
|
]), null;
|
|
2456
|
-
},
|
|
2456
|
+
}, Ea = ({ page: e, pageTitle: t, pageIcon: n, onClick: i, shouldResetSearchState: o = !1 }) => {
|
|
2457
2457
|
let [s, c] = a(!1);
|
|
2458
2458
|
return r(() => {
|
|
2459
2459
|
s || (c(!0), (async () => {
|
|
@@ -2473,7 +2473,7 @@ var X = globalThis.frontComponentHostCommunicationApi, ea = () => {
|
|
|
2473
2473
|
s,
|
|
2474
2474
|
$()
|
|
2475
2475
|
]), null;
|
|
2476
|
-
},
|
|
2476
|
+
}, Da = ({ title: e, subtitle: t, execute: n, confirmButtonText: i, confirmButtonAccent: o }) => {
|
|
2477
2477
|
let [s, c] = a(!1);
|
|
2478
2478
|
return r(() => {
|
|
2479
2479
|
s || (c(!0), (async () => {
|
|
@@ -2495,6 +2495,6 @@ var X = globalThis.frontComponentHostCommunicationApi, ea = () => {
|
|
|
2495
2495
|
]), null;
|
|
2496
2496
|
};
|
|
2497
2497
|
//#endregion
|
|
2498
|
-
export { Hi as AppPath,
|
|
2498
|
+
export { Hi as AppPath, wa as Command, Ta as CommandLink, Da as CommandModal, Ea as CommandOpenSidePanelPage, Qi as SidePanelPages, ea as closeSidePanel, ta as copyToClipboard, ra as enqueueSnackbar, na as getApplicationVariable, Ca as getFrontComponentCommandErrorDedupeKey, ia as navigate, aa as openCommandConfirmationModal, oa as openSidePanelPage, Z as unmountFrontComponent, sa as updateProgress, ha as useColorScheme, Q as useFrontComponentExecutionContext, $ as useFrontComponentId, va as useRecordId, ba as useSelectedRecordIds, Sa as useUserId };
|
|
2499
2499
|
|
|
2500
2500
|
//# sourceMappingURL=index.mjs.map
|