twenty-sdk 2.37.0 → 2.38.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/dist/billing/index.cjs +3 -3
- package/dist/billing/index.cjs.map +1 -1
- package/dist/billing/index.d.ts +25 -4
- package/dist/billing/index.mjs +495 -464
- package/dist/billing/index.mjs.map +1 -1
- package/dist/catalog-sync-DB_oIbry.js +1 -0
- package/dist/{catalog-sync-mAO3vmdp.mjs → catalog-sync-TFrxc_Y6.mjs} +4 -4
- package/dist/cli/commands/dev/dev-once.d.ts +1 -0
- package/dist/cli/commands/dev/dev.d.ts +1 -0
- package/dist/cli/operations/dev-once.d.ts +1 -0
- package/dist/cli/utilities/api/api-service.d.ts +1 -0
- package/dist/cli/utilities/api/application-api.d.ts +1 -0
- package/dist/cli/utilities/dev/orchestrator/dev-mode-orchestrator.d.ts +1 -0
- package/dist/cli/utilities/dev/orchestrator/steps/format-sync-actions-plan.d.ts +8 -1
- package/dist/cli/utilities/dev/orchestrator/steps/sync-application-orchestrator-step.d.ts +3 -1
- package/dist/cli/utilities/entity/entity-view-template.d.ts +1 -1
- package/dist/cli/utilities/error/parse-server-error.d.ts +1 -0
- package/dist/cli.cjs +30 -30
- package/dist/cli.mjs +5447 -5427
- package/dist/define/index.cjs +14 -14
- package/dist/define/index.cjs.map +1 -1
- package/dist/define/index.d.ts +82 -14
- package/dist/define/index.mjs +5717 -5690
- 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 +23 -6
- package/dist/front-component/index.mjs +2 -2
- 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-WU9ATS3e.mjs → get-front-component-build-plugins-Bed7hCGi.mjs} +46 -38
- package/dist/{get-front-component-build-plugins-DZIleilT.js → get-front-component-build-plugins-o8cM1FFZ.js} +8 -8
- package/dist/{get-function-input-schema-GNk3NRLJ-DKoJBhuO.js → get-function-input-schema-GNk3NRLJ-A3CmF1qq.js} +1 -1
- package/dist/{get-function-input-schema-GNk3NRLJ-H7iWzfXn.mjs → get-function-input-schema-GNk3NRLJ-BPeB4a-_.mjs} +1 -1
- package/dist/logic-function/index.cjs +4 -4
- package/dist/logic-function/index.cjs.map +1 -1
- package/dist/logic-function/index.d.ts +23 -3
- package/dist/logic-function/index.mjs +26 -12
- package/dist/logic-function/index.mjs.map +1 -1
- package/dist/{login-4PI5lTOa.js → login-2yrPIORt.js} +59 -66
- package/dist/{login-CNByz3vi.mjs → login-QYv7vAbh.mjs} +5348 -5303
- package/dist/operations.cjs +1 -1
- package/dist/operations.mjs +4 -4
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.mjs.map +1 -1
- package/package.json +2 -2
- package/dist/catalog-sync-Szx_4267.js +0 -1
package/dist/define/index.d.ts
CHANGED
|
@@ -36,6 +36,32 @@ type AgentManifest = SyncableEntityOptions$1 & {
|
|
|
36
36
|
roleUniversalIdentifier?: string;
|
|
37
37
|
};
|
|
38
38
|
|
|
39
|
+
declare const USAGE_OPERATION_TYPES: readonly ["AI_CHAT_TOKEN", "AI_WORKFLOW_TOKEN", "WORKFLOW_EXECUTION", "CODE_EXECUTION", "WEB_SEARCH", "CALL_RECORDING", "EMAIL_SEND"];
|
|
40
|
+
type UsageOperationTypeValue = (typeof USAGE_OPERATION_TYPES)[number];
|
|
41
|
+
|
|
42
|
+
type BillableOperationManifest = {
|
|
43
|
+
operationType: UsageOperationTypeValue;
|
|
44
|
+
label: string;
|
|
45
|
+
};
|
|
46
|
+
type BillableOperations = Partial<Record<string, BillableOperationManifest>>;
|
|
47
|
+
|
|
48
|
+
declare const RECURRING_CHARGE_PERIODS: readonly ["MONTH"];
|
|
49
|
+
type RecurringChargePeriod = (typeof RECURRING_CHARGE_PERIODS)[number];
|
|
50
|
+
declare const RECURRING_CHARGE_UNITS: readonly ["WORKSPACE_MEMBER"];
|
|
51
|
+
type RecurringChargeUnit = (typeof RECURRING_CHARGE_UNITS)[number];
|
|
52
|
+
type RecurringCharge = {
|
|
53
|
+
period: RecurringChargePeriod;
|
|
54
|
+
amountMicroCredits: number;
|
|
55
|
+
per?: RecurringChargeUnit;
|
|
56
|
+
label: string;
|
|
57
|
+
};
|
|
58
|
+
type RecurringCharges = Partial<Record<string, RecurringCharge>>;
|
|
59
|
+
type ApplicationBilling = {
|
|
60
|
+
description?: string;
|
|
61
|
+
recurring?: RecurringCharges;
|
|
62
|
+
operations?: BillableOperations;
|
|
63
|
+
};
|
|
64
|
+
|
|
39
65
|
declare const APPLICATION_CATEGORIES: readonly ["Communication", "Productivity", "Product management", "Sales", "Marketing", "Enrichment", "Data", "Search", "Other"];
|
|
40
66
|
type KnownApplicationCategory = (typeof APPLICATION_CATEGORIES)[number];
|
|
41
67
|
type ApplicationCategory = KnownApplicationCategory | (string & {});
|
|
@@ -129,6 +155,7 @@ type ApplicationManifest = SyncableEntityOptions$1 & {
|
|
|
129
155
|
displayName: string;
|
|
130
156
|
description: string;
|
|
131
157
|
applicationVariables?: ApplicationVariables;
|
|
158
|
+
billing?: ApplicationBilling;
|
|
132
159
|
serverVariables?: ServerVariables;
|
|
133
160
|
author?: string;
|
|
134
161
|
category?: ApplicationCategory;
|
|
@@ -566,6 +593,8 @@ declare enum DateDisplayFormat {
|
|
|
566
593
|
}
|
|
567
594
|
type FieldNumberVariant = 'number' | 'percentage';
|
|
568
595
|
type FieldCurrencyFormat = 'short' | 'full';
|
|
596
|
+
declare const FIELD_LINKS_VARIANTS: readonly ["url", "domain"];
|
|
597
|
+
type FieldLinksVariant = (typeof FIELD_LINKS_VARIANTS)[number];
|
|
569
598
|
type FieldMetadataNumberSettings = {
|
|
570
599
|
dataType?: NumberDataType;
|
|
571
600
|
decimals?: number;
|
|
@@ -593,6 +622,9 @@ type FieldMetadataRelationSettings = {
|
|
|
593
622
|
type FieldMetadataAddressSettings = {
|
|
594
623
|
subFields?: AllowedAddressSubField[];
|
|
595
624
|
};
|
|
625
|
+
type FieldMetadataLinksSettings = FieldMetadataMultiItemSettings & {
|
|
626
|
+
type?: FieldLinksVariant;
|
|
627
|
+
};
|
|
596
628
|
type FieldMetadataFilesSettings = {
|
|
597
629
|
maxNumberOfValues: number;
|
|
598
630
|
};
|
|
@@ -608,7 +640,7 @@ type FieldMetadataSettingsMapping = {
|
|
|
608
640
|
[FieldMetadataType.TS_VECTOR]: null;
|
|
609
641
|
[FieldMetadataType.PHONES]: FieldMetadataMultiItemSettings | null;
|
|
610
642
|
[FieldMetadataType.EMAILS]: FieldMetadataMultiItemSettings | null;
|
|
611
|
-
[FieldMetadataType.LINKS]:
|
|
643
|
+
[FieldMetadataType.LINKS]: FieldMetadataLinksSettings | null;
|
|
612
644
|
[FieldMetadataType.ARRAY]: FieldMetadataMultiItemSettings | null;
|
|
613
645
|
[FieldMetadataType.FILES]: FieldMetadataFilesSettings;
|
|
614
646
|
};
|
|
@@ -802,6 +834,7 @@ type RecordTableConfiguration = {
|
|
|
802
834
|
configurationType: 'RECORD_TABLE';
|
|
803
835
|
viewId?: SerializedRelation | null;
|
|
804
836
|
recordLimit?: number;
|
|
837
|
+
isUIEditable?: boolean;
|
|
805
838
|
};
|
|
806
839
|
type FieldConfiguration = {
|
|
807
840
|
configurationType: 'FIELD';
|
|
@@ -809,6 +842,11 @@ type FieldConfiguration = {
|
|
|
809
842
|
fieldDisplayMode: 'CARD' | 'EDITOR' | 'FIELD' | 'VIEW' | 'TABLE';
|
|
810
843
|
viewId?: string;
|
|
811
844
|
nestedRelationFieldMetadataId?: string | null;
|
|
845
|
+
isUIEditable?: boolean;
|
|
846
|
+
};
|
|
847
|
+
type FormFieldConfiguration = {
|
|
848
|
+
configurationType: 'FORM_FIELD';
|
|
849
|
+
fieldMetadataId: string;
|
|
812
850
|
};
|
|
813
851
|
type FieldsConfiguration = {
|
|
814
852
|
configurationType: 'FIELDS';
|
|
@@ -877,7 +915,7 @@ type WorkflowVersionConfiguration = {
|
|
|
877
915
|
type WorkflowRunConfiguration = {
|
|
878
916
|
configurationType: 'WORKFLOW_RUN';
|
|
879
917
|
};
|
|
880
|
-
type PageLayoutWidgetConfiguration = AggregateChartConfiguration | PieChartConfiguration | BarChartConfiguration | LineChartConfiguration | ViewConfiguration | RecordTableConfiguration | FieldConfiguration | FieldsConfiguration | FieldRichTextConfiguration | StandaloneRichTextConfiguration | IframeConfiguration | FrontComponentConfiguration | TimelineConfiguration | TasksConfiguration | NotesConfiguration | FilesConfiguration | EmailsConfiguration | CalendarConfiguration | WorkflowConfiguration | WorkflowVersionConfiguration | WorkflowRunConfiguration | EmailThreadConfiguration | MessageCampaignBodyConfiguration | MessageCampaignDetailsConfiguration | CallRecordingSummaryConfiguration | CallRecordingTranscriptConfiguration;
|
|
918
|
+
type PageLayoutWidgetConfiguration = AggregateChartConfiguration | PieChartConfiguration | BarChartConfiguration | LineChartConfiguration | ViewConfiguration | RecordTableConfiguration | FieldConfiguration | FieldsConfiguration | FormFieldConfiguration | FieldRichTextConfiguration | StandaloneRichTextConfiguration | IframeConfiguration | FrontComponentConfiguration | TimelineConfiguration | TasksConfiguration | NotesConfiguration | FilesConfiguration | EmailsConfiguration | CalendarConfiguration | WorkflowConfiguration | WorkflowVersionConfiguration | WorkflowRunConfiguration | EmailThreadConfiguration | MessageCampaignBodyConfiguration | MessageCampaignDetailsConfiguration | CallRecordingSummaryConfiguration | CallRecordingTranscriptConfiguration;
|
|
881
919
|
|
|
882
920
|
declare enum PageLayoutTabLayoutMode {
|
|
883
921
|
GRID = "GRID",
|
|
@@ -907,7 +945,8 @@ declare enum PageLayoutType {
|
|
|
907
945
|
RECORD_INDEX = "RECORD_INDEX",
|
|
908
946
|
RECORD_PAGE = "RECORD_PAGE",
|
|
909
947
|
DASHBOARD = "DASHBOARD",
|
|
910
|
-
STANDALONE_PAGE = "STANDALONE_PAGE"
|
|
948
|
+
STANDALONE_PAGE = "STANDALONE_PAGE",
|
|
949
|
+
RECORD_FORM = "RECORD_FORM"
|
|
911
950
|
}
|
|
912
951
|
|
|
913
952
|
type PageLayoutWidgetConditionalDisplay = object;
|
|
@@ -935,7 +974,8 @@ declare enum WidgetType {
|
|
|
935
974
|
CALL_RECORDING_SUMMARY = "CALL_RECORDING_SUMMARY",
|
|
936
975
|
CALL_RECORDING_TRANSCRIPT = "CALL_RECORDING_TRANSCRIPT",
|
|
937
976
|
MESSAGE_CAMPAIGN_BODY = "MESSAGE_CAMPAIGN_BODY",
|
|
938
|
-
MESSAGE_CAMPAIGN_DETAILS = "MESSAGE_CAMPAIGN_DETAILS"
|
|
977
|
+
MESSAGE_CAMPAIGN_DETAILS = "MESSAGE_CAMPAIGN_DETAILS",
|
|
978
|
+
FORM_FIELD = "FORM_FIELD"
|
|
939
979
|
}
|
|
940
980
|
|
|
941
981
|
type RelationAndMorphRelationFieldMetadataType = FieldMetadataType.RELATION | FieldMetadataType.MORPH_RELATION;
|
|
@@ -1287,6 +1327,7 @@ type TimelineActivityAction = (typeof TIMELINE_ACTIVITY_ACTIONS)[number];
|
|
|
1287
1327
|
type TimelineActivityTypeEmitThroughManifest = {
|
|
1288
1328
|
relationFieldUniversalIdentifier: string;
|
|
1289
1329
|
triggerFieldUniversalIdentifiers?: string[];
|
|
1330
|
+
happensAtFieldUniversalIdentifier?: string;
|
|
1290
1331
|
};
|
|
1291
1332
|
type TimelineActivityTypeEmitManifest = {
|
|
1292
1333
|
on: TimelineActivityAction;
|
|
@@ -1763,6 +1804,9 @@ declare const STANDARD_OBJECTS: {
|
|
|
1763
1804
|
handle: {
|
|
1764
1805
|
universalIdentifier: string;
|
|
1765
1806
|
};
|
|
1807
|
+
scope: {
|
|
1808
|
+
universalIdentifier: string;
|
|
1809
|
+
};
|
|
1766
1810
|
workspaceMember: {
|
|
1767
1811
|
universalIdentifier: string;
|
|
1768
1812
|
};
|
|
@@ -2044,7 +2088,7 @@ declare const STANDARD_OBJECTS: {
|
|
|
2044
2088
|
};
|
|
2045
2089
|
readonly calendarEventRecordPageFields: {
|
|
2046
2090
|
universalIdentifier: string;
|
|
2047
|
-
viewFields: Record<"conferenceLink" | "conferenceSolution" | "description" | "endsAt" | "externalCreatedAt" | "externalUpdatedAt" | "iCalUid" | "isCanceled" | "isFullDay" | "location" | "startsAt" | "title", {
|
|
2091
|
+
viewFields: Record<"calendarEventTargets" | "conferenceLink" | "conferenceSolution" | "description" | "endsAt" | "externalCreatedAt" | "externalUpdatedAt" | "iCalUid" | "isCanceled" | "isFullDay" | "location" | "startsAt" | "title", {
|
|
2048
2092
|
universalIdentifier: string;
|
|
2049
2093
|
}>;
|
|
2050
2094
|
viewFieldGroups: Record<"general" | "system", {
|
|
@@ -2396,6 +2440,9 @@ declare const STANDARD_OBJECTS: {
|
|
|
2396
2440
|
sentCount: {
|
|
2397
2441
|
universalIdentifier: string;
|
|
2398
2442
|
};
|
|
2443
|
+
deliveredCount: {
|
|
2444
|
+
universalIdentifier: string;
|
|
2445
|
+
};
|
|
2399
2446
|
failedCount: {
|
|
2400
2447
|
universalIdentifier: string;
|
|
2401
2448
|
};
|
|
@@ -2405,6 +2452,9 @@ declare const STANDARD_OBJECTS: {
|
|
|
2405
2452
|
complainedCount: {
|
|
2406
2453
|
universalIdentifier: string;
|
|
2407
2454
|
};
|
|
2455
|
+
skippedCount: {
|
|
2456
|
+
universalIdentifier: string;
|
|
2457
|
+
};
|
|
2408
2458
|
unsubscribeTopicId: {
|
|
2409
2459
|
universalIdentifier: string;
|
|
2410
2460
|
};
|
|
@@ -2459,13 +2509,13 @@ declare const STANDARD_OBJECTS: {
|
|
|
2459
2509
|
readonly views: {
|
|
2460
2510
|
readonly allMessageCampaigns: {
|
|
2461
2511
|
universalIdentifier: string;
|
|
2462
|
-
viewFields: Record<"bouncedCount" | "complainedCount" | "createdAt" | "failedCount" | "fromAddress" | "list" | "name" | "recipients" | "sentAt" | "sentCount" | "status" | "subject", {
|
|
2512
|
+
viewFields: Record<"bouncedCount" | "complainedCount" | "createdAt" | "deliveredCount" | "failedCount" | "fromAddress" | "list" | "name" | "recipients" | "sentAt" | "sentCount" | "skippedCount" | "status" | "subject", {
|
|
2463
2513
|
universalIdentifier: string;
|
|
2464
2514
|
}>;
|
|
2465
2515
|
};
|
|
2466
2516
|
readonly messageCampaignRecordPageFields: {
|
|
2467
2517
|
universalIdentifier: string;
|
|
2468
|
-
viewFields: Record<"bouncedCount" | "complainedCount" | "failedCount" | "sentAt" | "sentCount" | "status", {
|
|
2518
|
+
viewFields: Record<"bouncedCount" | "complainedCount" | "deliveredCount" | "failedCount" | "sentAt" | "sentCount" | "skippedCount" | "status", {
|
|
2469
2519
|
universalIdentifier: string;
|
|
2470
2520
|
}>;
|
|
2471
2521
|
viewFieldGroups: Record<"stats", {
|
|
@@ -2946,9 +2996,6 @@ declare const STANDARD_OBJECTS: {
|
|
|
2946
2996
|
messageCampaign: {
|
|
2947
2997
|
universalIdentifier: string;
|
|
2948
2998
|
};
|
|
2949
|
-
deliveryStatus: {
|
|
2950
|
-
universalIdentifier: string;
|
|
2951
|
-
};
|
|
2952
2999
|
isDraft: {
|
|
2953
3000
|
universalIdentifier: string;
|
|
2954
3001
|
};
|
|
@@ -2984,6 +3031,9 @@ declare const STANDARD_OBJECTS: {
|
|
|
2984
3031
|
readonly messageCampaignIdIndex: {
|
|
2985
3032
|
readonly universalIdentifier: "79e777ca-7008-46c5-b3a6-3108b7c7dfb6";
|
|
2986
3033
|
};
|
|
3034
|
+
readonly headerMessageIdIndex: {
|
|
3035
|
+
readonly universalIdentifier: "0904b3e4-6052-4a8d-bf41-f12a27c7e34a";
|
|
3036
|
+
};
|
|
2987
3037
|
};
|
|
2988
3038
|
readonly views: {
|
|
2989
3039
|
readonly allMessages: {
|
|
@@ -3051,10 +3101,10 @@ declare const STANDARD_OBJECTS: {
|
|
|
3051
3101
|
};
|
|
3052
3102
|
readonly noteRecordPageFields: {
|
|
3053
3103
|
universalIdentifier: string;
|
|
3054
|
-
viewFields: Record<"attachments" | "
|
|
3104
|
+
viewFields: Record<"attachments" | "noteTargets" | "timelineActivities", {
|
|
3055
3105
|
universalIdentifier: string;
|
|
3056
3106
|
}>;
|
|
3057
|
-
viewFieldGroups: Record<"general"
|
|
3107
|
+
viewFieldGroups: Record<"general", {
|
|
3058
3108
|
universalIdentifier: string;
|
|
3059
3109
|
}>;
|
|
3060
3110
|
};
|
|
@@ -3118,6 +3168,15 @@ declare const STANDARD_OBJECTS: {
|
|
|
3118
3168
|
readonly opportunityIdIndex: {
|
|
3119
3169
|
readonly universalIdentifier: "0d1a59b4-cc87-4b7d-804a-656e8504f371";
|
|
3120
3170
|
};
|
|
3171
|
+
readonly notePersonUniqueIndex: {
|
|
3172
|
+
readonly universalIdentifier: "29be76d1-ff4f-4f0f-b05c-f679a234e90a";
|
|
3173
|
+
};
|
|
3174
|
+
readonly noteCompanyUniqueIndex: {
|
|
3175
|
+
readonly universalIdentifier: "e3b92659-04cf-4496-8fd4-4f32c747c26a";
|
|
3176
|
+
};
|
|
3177
|
+
readonly noteOpportunityUniqueIndex: {
|
|
3178
|
+
readonly universalIdentifier: "58002741-8aa7-4812-b7af-f4cf98dd2433";
|
|
3179
|
+
};
|
|
3121
3180
|
};
|
|
3122
3181
|
readonly views: {
|
|
3123
3182
|
readonly allNoteTargets: {
|
|
@@ -3523,10 +3582,10 @@ declare const STANDARD_OBJECTS: {
|
|
|
3523
3582
|
};
|
|
3524
3583
|
readonly taskRecordPageFields: {
|
|
3525
3584
|
universalIdentifier: string;
|
|
3526
|
-
viewFields: Record<"assignee" | "attachments" | "
|
|
3585
|
+
viewFields: Record<"assignee" | "attachments" | "dueAt" | "status" | "taskTargets" | "timelineActivities", {
|
|
3527
3586
|
universalIdentifier: string;
|
|
3528
3587
|
}>;
|
|
3529
|
-
viewFieldGroups: Record<"general"
|
|
3588
|
+
viewFieldGroups: Record<"general", {
|
|
3530
3589
|
universalIdentifier: string;
|
|
3531
3590
|
}>;
|
|
3532
3591
|
};
|
|
@@ -3590,6 +3649,15 @@ declare const STANDARD_OBJECTS: {
|
|
|
3590
3649
|
readonly opportunityIdIndex: {
|
|
3591
3650
|
readonly universalIdentifier: "6942e0ba-90f6-4c33-bf40-7f00b1ec35ab";
|
|
3592
3651
|
};
|
|
3652
|
+
readonly taskPersonUniqueIndex: {
|
|
3653
|
+
readonly universalIdentifier: "4adf4d5a-ad69-4c5c-bc62-2807816b3aa8";
|
|
3654
|
+
};
|
|
3655
|
+
readonly taskCompanyUniqueIndex: {
|
|
3656
|
+
readonly universalIdentifier: "637dce5e-f609-49f4-89e3-c0ef9e330d3a";
|
|
3657
|
+
};
|
|
3658
|
+
readonly taskOpportunityUniqueIndex: {
|
|
3659
|
+
readonly universalIdentifier: "eb5422ff-7a41-48d2-a2df-3de1cbf7bced";
|
|
3660
|
+
};
|
|
3593
3661
|
};
|
|
3594
3662
|
readonly views: {
|
|
3595
3663
|
readonly allTaskTargets: {
|