twenty-sdk 2.19.0-alpha.1 → 2.20.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-BXLh5-WO.mjs +18 -0
  4. package/dist/{catalog-sync-CzxQqSTp.js → catalog-sync-CrfskDrz.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 +25 -18
  20. package/dist/define/index.mjs +5338 -5304
  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-DSwo3Odm.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-D0JZTucw.mjs → login-BBQP9LPn.mjs} +6702 -6698
  34. package/dist/{login-BJysdHYg.js → login-zBnjqpkc.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-wgNckz1h.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-VtCYmX8G.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';
@@ -1186,7 +1199,7 @@ type ViewManifest = SyncableEntityOptions$1 & {
1186
1199
  sorts?: ViewSortManifest[];
1187
1200
  };
1188
1201
 
1189
- type ApplicationConfig = Omit<ApplicationManifest, 'packageJsonChecksum' | 'yarnLockChecksum' | 'postInstallLogicFunction' | 'preInstallLogicFunction' | 'defaultRoleUniversalIdentifier' | 'aboutDescription'> & {
1202
+ type ApplicationConfig = Omit<ApplicationManifest, 'packageJsonChecksum' | 'yarnLockChecksum' | 'requiredServerVersionRange' | 'postInstallLogicFunction' | 'preInstallLogicFunction' | 'defaultRoleUniversalIdentifier' | 'aboutDescription'> & {
1190
1203
  /**
1191
1204
  * @deprecated Use `defineApplicationRole()` in your role file instead.
1192
1205
  */
@@ -1448,12 +1461,6 @@ declare const defineNavigationMenuItem: DefineEntity<NavigationMenuItemManifest>
1448
1461
 
1449
1462
  declare const defineObject: DefineEntity<ObjectConfig>;
1450
1463
 
1451
- declare const generateDefaultFieldUniversalIdentifier: ({ applicationUniversalIdentifier, objectUniversalIdentifier, fieldName, }: {
1452
- applicationUniversalIdentifier: string;
1453
- objectUniversalIdentifier: string;
1454
- fieldName: string;
1455
- }) => string;
1456
-
1457
1464
  declare const STANDARD_OBJECTS: {
1458
1465
  readonly attachment: {
1459
1466
  readonly universalIdentifier: "20202020-bd3d-4c60-8dca-571c71d4447a";
@@ -5414,5 +5421,5 @@ declare const defineView: DefineEntity<ViewConfig>;
5414
5421
 
5415
5422
  declare const defineViewField: DefineEntity<StandaloneViewFieldManifest>;
5416
5423
 
5417
- 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 };
5424
+ 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, 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 };
5418
5425
  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 };