twenty-sdk 2.53.0 → 2.54.2

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.
@@ -2477,6 +2477,7 @@ declare enum SidePanelPages {
2477
2477
  ViewRecord = "view-record",
2478
2478
  ViewRecords = "view-records",
2479
2479
  MergeRecords = "merge-records",
2480
+ MergeWithRecord = "merge-with-record",
2480
2481
  UpdateRecords = "update-records",
2481
2482
  EditRichText = "edit-rich-text",
2482
2483
  Copilot = "copilot",
@@ -2795,6 +2796,12 @@ declare const workflowFormFieldSchema: ZodObject<{
2795
2796
  value: ZodOptional<ZodAny>;
2796
2797
  }, $strip>;
2797
2798
 
2799
+ type InboxThreadRecordInput = {
2800
+ threadId: string;
2801
+ objectNameSingular: string;
2802
+ recordId: string;
2803
+ };
2804
+
2798
2805
  type AskQuestionOption = {
2799
2806
  label: string;
2800
2807
  description?: string;
@@ -2872,5 +2879,9 @@ declare const inboxReferenceRecord: ({ objectNameSingular, recordId, }: {
2872
2879
 
2873
2880
  declare const INBOX_ASSISTANT_MENTION: string;
2874
2881
 
2875
- export { AppPath, Command, CommandLink, CommandModal, CommandOpenSidePanelPage, INBOX_ASSISTANT_MENTION, SidePanelPages, Trans, closeSidePanel, copyToClipboard, enqueueSnackbar, getApplicationVariable, getFrontComponentCommandErrorDedupeKey, inboxMention, inboxReferenceRecord, msg, navigate, openCommandConfirmationModal, openSidePanelPage, sendInboxMessage, t, unmountFrontComponent, updateProgress, uploadFile, useColorScheme, useFrontComponentExecutionContext, useFrontComponentId, useLocale, useLocation, useRecordId, useSelectedObjectMetadata, useSelectedRecordIds, useSelectedRecordsFilter, useTimelineActivityId, useToolCall, useTranslate, useUserId };
2876
- export type { CloseSidePanelFunction, CommandConfirmationModalAccent, CommandConfirmationModalResult, CommandLinkProps, CommandModalProps, CommandOpenSidePanelPageProps, CommandProps, CopyToClipboardFunction, EnqueueSnackbarFunction, EnqueueSnackbarParams, FrontComponentExecutionContext, FrontComponentLocation, FrontComponentSelectedObjectMetadata, FrontComponentStorageType, FrontComponentToolCall, FrontComponentToolCallStatus, MessageDescriptor, NavigateFunction, OpenCommandConfirmationModalFunction, OpenCommandConfirmationModalHostFunction, OpenSidePanelPageFunction, OpenSidePanelPageParams, RequestAccessTokenRefreshFunction, SendInboxMessageInput, SendInboxMessageResult, SnackBarVariant, StorageClearFunction, StorageDeleteFunction, StorageSetFunction, TransProps, TranslationValues, UnmountFrontComponentFunction, UpdateProgressFunction, UploadFileFailureReason, UploadFileFunction, UploadFileParams, UploadFileResult, UploadedFrontComponentFile, UseTranslateResult };
2882
+ declare const attachRecordToInboxThread: (input: InboxThreadRecordInput) => Promise<void>;
2883
+
2884
+ declare const detachRecordFromInboxThread: (input: InboxThreadRecordInput) => Promise<void>;
2885
+
2886
+ export { AppPath, Command, CommandLink, CommandModal, CommandOpenSidePanelPage, INBOX_ASSISTANT_MENTION, SidePanelPages, Trans, attachRecordToInboxThread, closeSidePanel, copyToClipboard, detachRecordFromInboxThread, enqueueSnackbar, getApplicationVariable, getFrontComponentCommandErrorDedupeKey, inboxMention, inboxReferenceRecord, msg, navigate, openCommandConfirmationModal, openSidePanelPage, sendInboxMessage, t, unmountFrontComponent, updateProgress, uploadFile, useColorScheme, useFrontComponentExecutionContext, useFrontComponentId, useLocale, useLocation, useRecordId, useSelectedObjectMetadata, useSelectedRecordIds, useSelectedRecordsFilter, useTimelineActivityId, useToolCall, useTranslate, useUserId };
2887
+ export type { CloseSidePanelFunction, CommandConfirmationModalAccent, CommandConfirmationModalResult, CommandLinkProps, CommandModalProps, CommandOpenSidePanelPageProps, CommandProps, CopyToClipboardFunction, EnqueueSnackbarFunction, EnqueueSnackbarParams, FrontComponentExecutionContext, FrontComponentLocation, FrontComponentSelectedObjectMetadata, FrontComponentStorageType, FrontComponentToolCall, FrontComponentToolCallStatus, InboxThreadRecordInput, MessageDescriptor, NavigateFunction, OpenCommandConfirmationModalFunction, OpenCommandConfirmationModalHostFunction, OpenSidePanelPageFunction, OpenSidePanelPageParams, RequestAccessTokenRefreshFunction, SendInboxMessageInput, SendInboxMessageResult, SnackBarVariant, StorageClearFunction, StorageDeleteFunction, StorageSetFunction, TransProps, TranslationValues, UnmountFrontComponentFunction, UpdateProgressFunction, UploadFileFailureReason, UploadFileFunction, UploadFileParams, UploadFileResult, UploadedFrontComponentFile, UseTranslateResult };
@@ -5115,7 +5115,7 @@ function ul(e, t) {
5115
5115
  return /* @__PURE__ */ Uo(e, t);
5116
5116
  }
5117
5117
  //#endregion
5118
- //#region ../twenty-shared/dist/types-DfP37UWi.mjs
5118
+ //#region ../twenty-shared/dist/types-6vHzO5BU.mjs
5119
5119
  var Q = /* @__PURE__ */ function(e) {
5120
5120
  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;
5121
5121
  }({}), dl = /* @__PURE__ */ function(e) {
@@ -5134,7 +5134,7 @@ Q.ACTOR, Q.SELECT, Object.keys(fl).map((e, t) => ({
5134
5134
  blocknote: ic().nullable().optional()
5135
5135
  }), Q.LINKS, Q.CURRENCY, Q.FULL_NAME, Q.ADDRESS, Q.ACTOR, Q.EMAILS, Q.PHONES, Q.RICH_TEXT, Q.RELATION, Q.MORPH_RELATION, Q.FILES, Q.TS_VECTOR;
5136
5136
  var pl = /* @__PURE__ */ function(e) {
5137
- 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.SearchAiChats = "search-ai-chats", 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.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.RecordCreationForm = "record-creation-form", e.RecordCreationFormSettings = "record-creation-form-settings", e.SendCampaign = "send-campaign", e.SendCampaignTest = "send-campaign-test", e.AddToMessageList = "add-to-message-list", e.WorkflowVersions = "workflow-versions", e.WorkflowVersion = "workflow-version", e.EmailBlockSettings = "email-block-settings", e.EmailPageStyle = "email-page-style", e.EmailBlockStyle = "email-block-style", e.SettingsMetadataTranslations = "settings-metadata-translations", e.RoutedPage = "routed-page", e.WorkflowCoreFilters = "workflow-core-filters", e.AgentCoreFilters = "agent-core-filters", e.ShareRecord = "share-record", e.SnoozeAiChat = "snooze-ai-chat", e.AssignAiChat = "assign-ai-chat", e;
5137
+ return e.CommandMenuDisplay = "command-menu-display", e.ViewRecord = "view-record", e.ViewRecords = "view-records", e.MergeRecords = "merge-records", e.MergeWithRecord = "merge-with-record", 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.SearchAiChats = "search-ai-chats", 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.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.RecordCreationForm = "record-creation-form", e.RecordCreationFormSettings = "record-creation-form-settings", e.SendCampaign = "send-campaign", e.SendCampaignTest = "send-campaign-test", e.AddToMessageList = "add-to-message-list", e.WorkflowVersions = "workflow-versions", e.WorkflowVersion = "workflow-version", e.EmailBlockSettings = "email-block-settings", e.EmailPageStyle = "email-page-style", e.EmailBlockStyle = "email-block-style", e.SettingsMetadataTranslations = "settings-metadata-translations", e.RoutedPage = "routed-page", e.WorkflowCoreFilters = "workflow-core-filters", e.AgentCoreFilters = "agent-core-filters", e.ShareRecord = "share-record", e.SnoozeAiChat = "snooze-ai-chat", e.AssignAiChat = "assign-ai-chat", e;
5138
5138
  }({}), ml = "frontComponentHostCommunicationApi";
5139
5139
  //#endregion
5140
5140
  //#region src/sdk/front-component/globals/frontComponentHostCommunicationApi.ts
@@ -5318,8 +5318,12 @@ var $ = globalThis.frontComponentHostCommunicationApi, hl = () => {
5318
5318
  objectNameSingular: Ot,
5319
5319
  recordId: Ot,
5320
5320
  displayName: "Ada"
5321
- });
5321
+ }), fu = async (e) => {
5322
+ await new u().mutation({ attachRecordToInboxThread: { __args: { input: e } } });
5323
+ }, pu = async (e) => {
5324
+ await new u().mutation({ detachRecordFromInboxThread: { __args: { input: e } } });
5325
+ };
5322
5326
  //#endregion
5323
- export { dl as AppPath, Yl as Command, Xl as CommandLink, Ql as CommandModal, Zl as CommandOpenSidePanelPage, du as INBOX_ASSISTANT_MENTION, pl as SidePanelPages, Dt as Trans, hl as closeSidePanel, gl as copyToClipboard, vl as enqueueSnackbar, _l as getApplicationVariable, Jl as getFrontComponentCommandErrorDedupeKey, iu as inboxMention, uu as inboxReferenceRecord, Gl as msg, yl as navigate, bl as openCommandConfirmationModal, xl as openSidePanelPage, $l as sendInboxMessage, ql as t, Sl as unmountFrontComponent, Cl as updateProgress, wl as uploadFile, El as useColorScheme, v as useFrontComponentExecutionContext, Ol as useFrontComponentId, b as useLocale, jl as useLocation, Nl as useRecordId, Vl as useSelectedObjectMetadata, Ll as useSelectedRecordIds, zl as useSelectedRecordsFilter, Hl as useTimelineActivityId, Fl as useToolCall, kl as useTranslate, Wl as useUserId };
5327
+ export { dl as AppPath, Yl as Command, Xl as CommandLink, Ql as CommandModal, Zl as CommandOpenSidePanelPage, du as INBOX_ASSISTANT_MENTION, pl as SidePanelPages, Dt as Trans, fu as attachRecordToInboxThread, hl as closeSidePanel, gl as copyToClipboard, pu as detachRecordFromInboxThread, vl as enqueueSnackbar, _l as getApplicationVariable, Jl as getFrontComponentCommandErrorDedupeKey, iu as inboxMention, uu as inboxReferenceRecord, Gl as msg, yl as navigate, bl as openCommandConfirmationModal, xl as openSidePanelPage, $l as sendInboxMessage, ql as t, Sl as unmountFrontComponent, Cl as updateProgress, wl as uploadFile, El as useColorScheme, v as useFrontComponentExecutionContext, Ol as useFrontComponentId, b as useLocale, jl as useLocation, Nl as useRecordId, Vl as useSelectedObjectMetadata, Ll as useSelectedRecordIds, zl as useSelectedRecordsFilter, Hl as useTimelineActivityId, Fl as useToolCall, kl as useTranslate, Wl as useUserId };
5324
5328
 
5325
5329
  //# sourceMappingURL=index.mjs.map