twenty-sdk 2.19.0 → 2.21.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 (42) hide show
  1. package/dist/billing/index.cjs.map +1 -1
  2. package/dist/billing/index.mjs.map +1 -1
  3. package/dist/catalog-sync-CjqZ81jv.mjs +18 -0
  4. package/dist/{catalog-sync-DHopgolZ.js → catalog-sync-DoBWDnCd.js} +1 -1
  5. package/dist/cli/utilities/api/api-service.d.ts +10 -0
  6. package/dist/cli/utilities/api/application-api.d.ts +10 -0
  7. package/dist/cli/utilities/auth/build-app-token-pair-fetcher.d.ts +5 -0
  8. package/dist/cli/utilities/auth/ensure-app-access-token-is-valid-or-refresh.d.ts +11 -4
  9. package/dist/cli/utilities/auth/ensure-app-registration.d.ts +1 -1
  10. package/dist/cli/utilities/build/common/esbuild-result-processor.d.ts +2 -2
  11. package/dist/cli/utilities/dev/orchestrator/dev-mode-orchestrator.d.ts +1 -0
  12. package/dist/cli/utilities/dev/orchestrator/steps/generate-api-client-orchestrator-step.d.ts +2 -4
  13. package/dist/cli/utilities/dev/orchestrator/steps/register-app-orchestrator-step.d.ts +1 -1
  14. package/dist/cli/utilities/version/get-server-version-from-api.d.ts +1 -0
  15. package/dist/cli.cjs +25 -32
  16. package/dist/cli.mjs +39604 -39589
  17. package/dist/define/index.cjs +19 -19
  18. package/dist/define/index.cjs.map +1 -1
  19. package/dist/define/index.d.ts +102 -18
  20. package/dist/define/index.mjs +5363 -5306
  21. package/dist/define/index.mjs.map +1 -1
  22. package/dist/front-component/index.cjs.map +1 -1
  23. package/dist/front-component/index.d.ts +1 -0
  24. package/dist/front-component/index.mjs +1 -1
  25. package/dist/front-component/index.mjs.map +1 -1
  26. package/dist/front-component-renderer/build.cjs +1 -1
  27. package/dist/front-component-renderer/build.mjs +6 -2
  28. package/dist/{get-front-component-build-plugins-Dqpyup2W.js → get-front-component-build-plugins-C7h3DVdC.js} +2 -2
  29. package/dist/{get-front-component-build-plugins-taotEFOp.mjs → get-front-component-build-plugins-klRAsPTE.mjs} +39 -32
  30. package/dist/get-function-input-schema-GNk3NRLJ-C4DmUxTK.mjs +77 -0
  31. package/dist/logic-function/index.cjs.map +1 -1
  32. package/dist/logic-function/index.mjs.map +1 -1
  33. package/dist/{login-Dasbw3em.mjs → login-CIXRVsRD.mjs} +6728 -6700
  34. package/dist/{login-eEfUoaiV.js → login-CZP9z64V.js} +60 -47
  35. package/dist/operations.cjs +1 -1
  36. package/dist/operations.mjs +8 -4
  37. package/dist/utils/index.cjs.map +1 -1
  38. package/dist/utils/index.mjs.map +1 -1
  39. package/package.json +2 -2
  40. package/dist/catalog-sync-COKCJ_xf.mjs +0 -14
  41. package/dist/cli/utilities/build/manifest/utils/get-default-object-fields.d.ts +0 -6
  42. package/dist/get-function-input-schema-GNk3NRLJ-BoFRwEYV.mjs +0 -73
@@ -35,6 +35,19 @@ type AgentManifest = SyncableEntityOptions$1 & {
35
35
  responseFormat?: AgentResponseFormat;
36
36
  };
37
37
 
38
+ declare const APPLICATION_CATEGORIES: readonly ["Communication", "Productivity", "Product management", "Sales", "Marketing", "Enrichment", "Data", "Search", "Other"];
39
+ type KnownApplicationCategory = (typeof APPLICATION_CATEGORIES)[number];
40
+ type ApplicationCategory = KnownApplicationCategory | (string & {});
41
+
42
+ type PreInstallLogicFunctionApplicationManifest = SyncableEntityOptions$1 & {
43
+ universalIdentifier: string;
44
+ shouldRunOnVersionUpgrade?: boolean;
45
+ };
46
+
47
+ type PostInstallLogicFunctionApplicationManifest = PreInstallLogicFunctionApplicationManifest & {
48
+ shouldRunSynchronously?: boolean;
49
+ };
50
+
38
51
  declare enum FieldMetadataType {
39
52
  ACTOR = "ACTOR",
40
53
  ADDRESS = "ADDRESS",
@@ -95,15 +108,6 @@ type ServerVariableSchema = {
95
108
  };
96
109
  type ServerVariables = Record<string, ServerVariableSchema>;
97
110
 
98
- type PreInstallLogicFunctionApplicationManifest = SyncableEntityOptions$1 & {
99
- universalIdentifier: string;
100
- shouldRunOnVersionUpgrade?: boolean;
101
- };
102
-
103
- type PostInstallLogicFunctionApplicationManifest = PreInstallLogicFunctionApplicationManifest & {
104
- shouldRunSynchronously?: boolean;
105
- };
106
-
107
111
  type ApplicationManifest = SyncableEntityOptions$1 & {
108
112
  defaultRoleUniversalIdentifier: string;
109
113
  displayName: string;
@@ -111,9 +115,17 @@ type ApplicationManifest = SyncableEntityOptions$1 & {
111
115
  applicationVariables?: ApplicationVariables;
112
116
  serverVariables?: ServerVariables;
113
117
  author?: string;
114
- category?: string;
118
+ category?: ApplicationCategory;
119
+ /**
120
+ * @deprecated Use `logo` instead.
121
+ */
115
122
  logoUrl?: string;
123
+ logo?: string;
124
+ /**
125
+ * @deprecated Use `galleryImages` instead.
126
+ */
116
127
  screenshots?: string[];
128
+ galleryImages?: string[];
117
129
  aboutDescription?: string;
118
130
  websiteUrl?: string;
119
131
  termsUrl?: string;
@@ -129,6 +141,7 @@ type ApplicationManifest = SyncableEntityOptions$1 & {
129
141
  settingsCustomTabFrontComponentUniversalIdentifier?: string;
130
142
  packageJsonChecksum: string | null;
131
143
  yarnLockChecksum: string | null;
144
+ requiredServerVersionRange?: string | null;
132
145
  };
133
146
 
134
147
  type OAuthProviderTokenRequestContentType = 'json' | 'form-urlencoded';
@@ -152,6 +165,12 @@ type ConnectionProviderManifest = SyncableEntityOptions$1 & {
152
165
  oauth: OAuthConnectionProviderConfig;
153
166
  };
154
167
 
168
+ declare const getFieldUniversalIdentifier: ({ applicationUniversalIdentifier, objectUniversalIdentifier, name, }: {
169
+ applicationUniversalIdentifier: string;
170
+ objectUniversalIdentifier: string;
171
+ name: string;
172
+ }) => string;
173
+
155
174
  declare const ALLOWED_ADDRESS_SUBFIELDS: readonly ["addressStreet1", "addressStreet2", "addressCity", "addressState", "addressPostcode", "addressCountry", "addressLat", "addressLng"];
156
175
  type AllowedAddressSubField = (typeof ALLOWED_ADDRESS_SUBFIELDS)[number];
157
176
 
@@ -1186,7 +1205,7 @@ type ViewManifest = SyncableEntityOptions$1 & {
1186
1205
  sorts?: ViewSortManifest[];
1187
1206
  };
1188
1207
 
1189
- type ApplicationConfig = Omit<ApplicationManifest, 'packageJsonChecksum' | 'yarnLockChecksum' | 'postInstallLogicFunction' | 'preInstallLogicFunction' | 'defaultRoleUniversalIdentifier' | 'aboutDescription'> & {
1208
+ type ApplicationConfig = Omit<ApplicationManifest, 'packageJsonChecksum' | 'yarnLockChecksum' | 'requiredServerVersionRange' | 'postInstallLogicFunction' | 'preInstallLogicFunction' | 'defaultRoleUniversalIdentifier' | 'aboutDescription'> & {
1190
1209
  /**
1191
1210
  * @deprecated Use `defineApplicationRole()` in your role file instead.
1192
1211
  */
@@ -1448,12 +1467,6 @@ declare const defineNavigationMenuItem: DefineEntity<NavigationMenuItemManifest>
1448
1467
 
1449
1468
  declare const defineObject: DefineEntity<ObjectConfig>;
1450
1469
 
1451
- declare const generateDefaultFieldUniversalIdentifier: ({ applicationUniversalIdentifier, objectUniversalIdentifier, fieldName, }: {
1452
- applicationUniversalIdentifier: string;
1453
- objectUniversalIdentifier: string;
1454
- fieldName: string;
1455
- }) => string;
1456
-
1457
1470
  declare const STANDARD_OBJECTS: {
1458
1471
  readonly attachment: {
1459
1472
  readonly universalIdentifier: "20202020-bd3d-4c60-8dca-571c71d4447a";
@@ -2426,6 +2439,18 @@ declare const STANDARD_OBJECTS: {
2426
2439
  readonly sentAt: {
2427
2440
  readonly universalIdentifier: "e2315b4f-9edf-4df2-96b9-961e76368671";
2428
2441
  };
2442
+ readonly sentCount: {
2443
+ readonly universalIdentifier: "2f333d2b-37b8-4ddc-ad0d-c07c6ce066ad";
2444
+ };
2445
+ readonly failedCount: {
2446
+ readonly universalIdentifier: "d373fcd7-b1ce-4c77-8031-a5785c475028";
2447
+ };
2448
+ readonly bouncedCount: {
2449
+ readonly universalIdentifier: "20d884a9-34dd-4667-8ecb-ceec224258e2";
2450
+ };
2451
+ readonly complainedCount: {
2452
+ readonly universalIdentifier: "82842cfa-f12a-4bab-bbde-b2cf587d0406";
2453
+ };
2429
2454
  readonly unsubscribeTopicId: {
2430
2455
  readonly universalIdentifier: "0648e7ad-1769-4ff6-a4d5-72da79ef169c";
2431
2456
  };
@@ -2477,6 +2502,46 @@ declare const STANDARD_OBJECTS: {
2477
2502
  readonly universalIdentifier: "975823ad-9b97-4f39-b2c7-fbd7d77f4bd1";
2478
2503
  };
2479
2504
  };
2505
+ readonly views: {
2506
+ readonly allMessageCampaigns: {
2507
+ readonly universalIdentifier: "ffedb368-33f0-43a7-b84e-e622b4e97be9";
2508
+ readonly viewFields: {
2509
+ readonly subject: {
2510
+ readonly universalIdentifier: "b017c851-e38d-4a81-ab38-0fb10e9f239e";
2511
+ };
2512
+ readonly status: {
2513
+ readonly universalIdentifier: "ef35df97-b1a5-4f16-8b85-5751e5019f63";
2514
+ };
2515
+ readonly list: {
2516
+ readonly universalIdentifier: "c0bf6a48-8695-4520-81e6-7462d35033b5";
2517
+ };
2518
+ readonly fromAddress: {
2519
+ readonly universalIdentifier: "553a0ea6-1f55-4143-a2d0-8c1ad0cf3dd1";
2520
+ };
2521
+ readonly sentAt: {
2522
+ readonly universalIdentifier: "7f4a9d81-afac-4d27-98de-0a2da65114f7";
2523
+ };
2524
+ readonly sentCount: {
2525
+ readonly universalIdentifier: "0be62e57-3955-49bd-a9ef-8f82f7a6e9aa";
2526
+ };
2527
+ readonly failedCount: {
2528
+ readonly universalIdentifier: "ad346c8e-f462-499e-89c8-da01d5460dc6";
2529
+ };
2530
+ readonly bouncedCount: {
2531
+ readonly universalIdentifier: "135d3fb9-bc45-4426-980b-9836ed792e3a";
2532
+ };
2533
+ readonly complainedCount: {
2534
+ readonly universalIdentifier: "9957dc6d-05ae-4829-ae7d-7cdf9239cdd0";
2535
+ };
2536
+ readonly recipients: {
2537
+ readonly universalIdentifier: "2f99f444-4af3-44fd-b08d-46955c4ac2a2";
2538
+ };
2539
+ readonly createdAt: {
2540
+ readonly universalIdentifier: "6dffa47d-3128-4d54-924a-4f67676116c2";
2541
+ };
2542
+ };
2543
+ };
2544
+ };
2480
2545
  };
2481
2546
  readonly messageList: {
2482
2547
  readonly universalIdentifier: "826561ea-4816-411c-baa0-eec5e6ca8866";
@@ -2523,6 +2588,25 @@ declare const STANDARD_OBJECTS: {
2523
2588
  readonly universalIdentifier: "8e205171-ed74-4620-b7d2-674aab85033a";
2524
2589
  };
2525
2590
  };
2591
+ readonly views: {
2592
+ readonly allMessageLists: {
2593
+ readonly universalIdentifier: "c72bae18-75e9-4cb0-baeb-379d3529b98f";
2594
+ readonly viewFields: {
2595
+ readonly name: {
2596
+ readonly universalIdentifier: "c9767580-34e6-420b-923d-b4abd8c13d96";
2597
+ };
2598
+ readonly members: {
2599
+ readonly universalIdentifier: "6d314c4b-215a-4094-963a-ff9dd8221aea";
2600
+ };
2601
+ readonly campaigns: {
2602
+ readonly universalIdentifier: "037030a2-9dad-4bfd-957a-313b362172b4";
2603
+ };
2604
+ readonly createdAt: {
2605
+ readonly universalIdentifier: "29f3e7de-c40b-4597-8568-7318c146e4da";
2606
+ };
2607
+ };
2608
+ };
2609
+ };
2526
2610
  };
2527
2611
  readonly messageListMember: {
2528
2612
  readonly universalIdentifier: "27773d24-8ce3-40f8-aa6c-1f590f2c08d2";
@@ -5343,5 +5427,5 @@ declare const defineView: DefineEntity<ViewConfig>;
5343
5427
 
5344
5428
  declare const defineViewField: DefineEntity<StandaloneViewFieldManifest>;
5345
5429
 
5346
- export { AggregateOperations, DateDisplayFormat, FieldMetadataSettingsOnClickAction, FieldMetadataType as FieldType, HTTPMethod, NavigationMenuItemType, NumberDataType, ObjectRecordBaseEvent, ObjectRecordCreateEvent, ObjectRecordDeleteEvent, ObjectRecordDestroyEvent, ObjectRecordGroupByDateGranularity, ObjectRecordRestoreEvent, ObjectRecordUpdateEvent, ObjectRecordUpsertEvent, RelationOnDeleteAction as OnDeleteAction, PageLayoutTabLayoutMode, PageLayoutType, RelationType, RowLevelPermissionPredicateGroupLogicalOperator, RowLevelPermissionPredicateOperand, STANDARD_OBJECTS as STANDARD_OBJECT, STANDARD_OBJECTS as STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS, STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS as STANDARD_PAGE_LAYOUT, STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS, SystemPermissionFlag, ViewCalendarLayout, ViewFilterGroupLogicalOperator, ViewFilterOperand, ViewKey, ViewOpenRecordIn, ViewSortDirection, ViewType, ViewVisibility, canAccessFullAdminPanel, canImpersonate, createValidationResult, defineAgent, defineApplication, defineApplicationRole, defineCommandMenuItem, defineConnectionProvider, defineField, defineFrontComponent, defineIndex, defineLogicFunction, defineNavigationMenuItem, defineObject, definePageLayout, definePageLayoutTab, definePermissionFlag, definePostInstallLogicFunction, definePreInstallLogicFunction, defineRole, defineSkill, defineView, defineViewField, every, everyDefined, everyEquals, favoriteRecordIds, featureFlags, generateDefaultFieldUniversalIdentifier, hasAnySoftDeleteFilterOnView, includes, includesEvery, isDashboardPageLayoutInEditMode, isDefined, isInSidePanel, isLayoutCustomizationModeEnabled, isNonEmptyString, isSelectAll, none, noneDefined, noneEquals, numberOfSelectedRecords, objectMetadataItem, objectMetadataLabel, objectPermissions, pageType, selectedRecords, some, someDefined, someEquals, someNonEmptyString, targetObjectReadPermissions, targetObjectWritePermissions, validateFields };
5430
+ export { AggregateOperations, DateDisplayFormat, FieldMetadataSettingsOnClickAction, FieldMetadataType as FieldType, HTTPMethod, NavigationMenuItemType, NumberDataType, ObjectRecordBaseEvent, ObjectRecordCreateEvent, ObjectRecordDeleteEvent, ObjectRecordDestroyEvent, ObjectRecordGroupByDateGranularity, ObjectRecordRestoreEvent, ObjectRecordUpdateEvent, ObjectRecordUpsertEvent, RelationOnDeleteAction as OnDeleteAction, PageLayoutTabLayoutMode, PageLayoutType, RelationType, RowLevelPermissionPredicateGroupLogicalOperator, RowLevelPermissionPredicateOperand, STANDARD_OBJECTS as STANDARD_OBJECT, STANDARD_OBJECTS as STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS, STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS as STANDARD_PAGE_LAYOUT, STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS, SystemPermissionFlag, ViewCalendarLayout, ViewFilterGroupLogicalOperator, ViewFilterOperand, ViewKey, ViewOpenRecordIn, ViewSortDirection, ViewType, ViewVisibility, canAccessFullAdminPanel, canImpersonate, createValidationResult, defineAgent, defineApplication, defineApplicationRole, defineCommandMenuItem, defineConnectionProvider, defineField, defineFrontComponent, defineIndex, defineLogicFunction, defineNavigationMenuItem, defineObject, definePageLayout, definePageLayoutTab, definePermissionFlag, definePostInstallLogicFunction, definePreInstallLogicFunction, defineRole, defineSkill, defineView, defineViewField, every, everyDefined, everyEquals, favoriteRecordIds, featureFlags, getFieldUniversalIdentifier, hasAnySoftDeleteFilterOnView, includes, includesEvery, isDashboardPageLayoutInEditMode, isDefined, isInSidePanel, isLayoutCustomizationModeEnabled, isNonEmptyString, isSelectAll, none, noneDefined, noneEquals, numberOfSelectedRecords, objectMetadataItem, objectMetadataLabel, objectPermissions, pageType, selectedRecords, some, someDefined, someEquals, someNonEmptyString, targetObjectReadPermissions, targetObjectWritePermissions, validateFields };
5347
5431
  export type { ActorMetadata as ActorField, AddressMetadata as AddressField, ApplicationConfig, CommandMenuItemConfig, CommandMenuItemManifest, CronPayload, CurrencyMetadata as CurrencyField, DatabaseEventPayload, DefinableEntity, DefineEntity, EmailsMetadata as EmailsField, FrontComponentConfig, FrontComponentType, FullNameMetadata as FullNameField, GridPosition, IndexConfig, IndexFieldManifest, IndexManifest, InputJsonSchema, InstallHandler, InstallPayload, LinksMetadata as LinksField, LogicFunctionConfig, LogicFunctionHandler, ObjectRecordEvent, PageLayoutConfig, PageLayoutManifest, PageLayoutTabConfig, PageLayoutTabManifest, PageLayoutWidgetConditionalDisplay, PageLayoutWidgetManifest, PageLayoutWidgetUniversalConfiguration, PermissionFlagConfig, PermissionFlagManifest, PermissionFlagPermissionType, PhonesMetadata as PhonesField, RichTextMetadata as RichTextField, LogicFunctionEvent as RoutePayload, RowLevelPermissionPredicateGroupManifest, RowLevelPermissionPredicateManifest, StandaloneViewFieldManifest, SyncableEntityOptions, TwentyRecord, ValidationResult, ViewConfig, ViewFieldGroupManifest, ViewFieldManifest, ViewFilterGroupManifest, ViewFilterManifest, ViewGroupManifest, ViewManifestFilterValue, ViewSortManifest };