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.
- package/dist/billing/index.cjs.map +1 -1
- package/dist/billing/index.mjs.map +1 -1
- package/dist/catalog-sync-BXLh5-WO.mjs +18 -0
- package/dist/{catalog-sync-CzxQqSTp.js → catalog-sync-CrfskDrz.js} +1 -1
- package/dist/cli/utilities/api/api-service.d.ts +10 -0
- package/dist/cli/utilities/api/application-api.d.ts +10 -0
- package/dist/cli/utilities/auth/build-app-token-pair-fetcher.d.ts +5 -0
- package/dist/cli/utilities/auth/ensure-app-access-token-is-valid-or-refresh.d.ts +11 -4
- package/dist/cli/utilities/auth/ensure-app-registration.d.ts +1 -1
- package/dist/cli/utilities/build/common/esbuild-result-processor.d.ts +2 -2
- package/dist/cli/utilities/dev/orchestrator/dev-mode-orchestrator.d.ts +1 -0
- package/dist/cli/utilities/dev/orchestrator/steps/generate-api-client-orchestrator-step.d.ts +2 -4
- package/dist/cli/utilities/dev/orchestrator/steps/register-app-orchestrator-step.d.ts +1 -1
- package/dist/cli/utilities/version/get-server-version-from-api.d.ts +1 -0
- package/dist/cli.cjs +25 -32
- package/dist/cli.mjs +39604 -39589
- package/dist/define/index.cjs +19 -19
- package/dist/define/index.cjs.map +1 -1
- package/dist/define/index.d.ts +25 -18
- package/dist/define/index.mjs +5338 -5304
- package/dist/define/index.mjs.map +1 -1
- package/dist/front-component/index.cjs.map +1 -1
- package/dist/front-component/index.d.ts +1 -0
- package/dist/front-component/index.mjs +1 -1
- 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 +6 -2
- package/dist/{get-front-component-build-plugins-Dqpyup2W.js → get-front-component-build-plugins-C7h3DVdC.js} +2 -2
- package/dist/{get-front-component-build-plugins-taotEFOp.mjs → get-front-component-build-plugins-klRAsPTE.mjs} +39 -32
- package/dist/get-function-input-schema-GNk3NRLJ-DSwo3Odm.mjs +77 -0
- package/dist/logic-function/index.cjs.map +1 -1
- package/dist/logic-function/index.mjs.map +1 -1
- package/dist/{login-D0JZTucw.mjs → login-BBQP9LPn.mjs} +6702 -6698
- package/dist/{login-BJysdHYg.js → login-zBnjqpkc.js} +60 -47
- package/dist/operations.cjs +1 -1
- package/dist/operations.mjs +8 -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-wgNckz1h.mjs +0 -14
- package/dist/cli/utilities/build/manifest/utils/get-default-object-fields.d.ts +0 -6
- package/dist/get-function-input-schema-GNk3NRLJ-VtCYmX8G.mjs +0 -73
package/dist/define/index.d.ts
CHANGED
|
@@ -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?:
|
|
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,
|
|
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 };
|