twenty-sdk 2.2.0 → 2.3.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/README.md +3 -3
- package/dist/billing/index.cjs.map +1 -1
- package/dist/billing/index.mjs +9 -9
- package/dist/billing/index.mjs.map +1 -1
- package/dist/cli/commands/add.d.ts +1 -0
- package/dist/cli/operations/deploy.d.ts +2 -0
- package/dist/cli/types.d.ts +1 -0
- package/dist/cli/utilities/build/manifest/manifest-extract-config.d.ts +6 -2
- package/dist/cli/utilities/entity/entity-command-menu-item-template.d.ts +3 -0
- package/dist/cli/utilities/entity/entity-connection-provider-template.d.ts +4 -0
- package/dist/cli/utilities/file/append-server-variables.util.d.ts +22 -0
- package/dist/cli/utilities/server/docker-container.d.ts +1 -0
- package/dist/cli.cjs +125 -83
- package/dist/cli.mjs +3150 -2979
- package/dist/define/index.cjs +12 -12
- package/dist/define/index.cjs.map +1 -1
- package/dist/define/index.d.ts +72 -20
- package/dist/define/index.mjs +889 -888
- package/dist/define/index.mjs.map +1 -1
- package/dist/front-component/index.cjs +13 -13
- package/dist/front-component/index.cjs.map +1 -1
- package/dist/front-component/index.d.ts +12 -1
- package/dist/front-component/index.mjs +866 -896
- package/dist/front-component/index.mjs.map +1 -1
- package/dist/{get-function-input-schema-BZ7_XyUh-DI4AlRRA.js → get-function-input-schema-BZ7_XyUh-BXB2AcBE.js} +1 -1
- package/dist/{get-function-input-schema-BZ7_XyUh-YHOkHl_i.mjs → get-function-input-schema-BZ7_XyUh-PnCntsct.mjs} +1 -1
- package/dist/logic-function/index.cjs +1 -1
- package/dist/logic-function/index.cjs.map +1 -1
- package/dist/logic-function/index.d.ts +90 -6
- package/dist/logic-function/index.mjs +52 -1
- package/dist/logic-function/index.mjs.map +1 -1
- package/dist/operations.cjs +1 -1
- package/dist/operations.mjs +2 -2
- package/dist/ui/index.cjs +15 -2233
- package/dist/ui/index.mjs +246 -3350
- package/dist/uninstall-BiLmSWhb.js +253 -0
- package/dist/{uninstall-DXr3k3Da.mjs → uninstall-DAf2XiS3.mjs} +1825 -1715
- package/package.json +2 -2
- package/dist/uninstall-D3my_KZK.js +0 -250
package/dist/define/index.d.ts
CHANGED
|
@@ -14,11 +14,16 @@ type AgentManifest = SyncableEntityOptions$1 & {
|
|
|
14
14
|
modelId?: string;
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
-
type
|
|
17
|
+
type SecretApplicationVariable = SyncableEntityOptions$1 & {
|
|
18
|
+
description?: string;
|
|
19
|
+
isSecret: true;
|
|
20
|
+
};
|
|
21
|
+
type NonSecretApplicationVariable = SyncableEntityOptions$1 & {
|
|
18
22
|
value?: string;
|
|
19
23
|
description?: string;
|
|
20
|
-
isSecret?:
|
|
24
|
+
isSecret?: false;
|
|
21
25
|
};
|
|
26
|
+
type ApplicationVariable = SecretApplicationVariable | NonSecretApplicationVariable;
|
|
22
27
|
type ApplicationVariables = Record<string, ApplicationVariable>;
|
|
23
28
|
|
|
24
29
|
type ServerVariableSchema = {
|
|
@@ -59,6 +64,27 @@ type ApplicationManifest = SyncableEntityOptions$1 & {
|
|
|
59
64
|
yarnLockChecksum: string | null;
|
|
60
65
|
};
|
|
61
66
|
|
|
67
|
+
type OAuthProviderTokenRequestContentType = 'json' | 'form-urlencoded';
|
|
68
|
+
|
|
69
|
+
type OAuthConnectionProviderConfig = {
|
|
70
|
+
authorizationEndpoint: string;
|
|
71
|
+
tokenEndpoint: string;
|
|
72
|
+
revokeEndpoint?: string;
|
|
73
|
+
scopes: string[];
|
|
74
|
+
clientIdVariable: string;
|
|
75
|
+
clientSecretVariable: string;
|
|
76
|
+
authorizationParams?: Record<string, string>;
|
|
77
|
+
tokenRequestContentType?: OAuthProviderTokenRequestContentType;
|
|
78
|
+
usePkce?: boolean;
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
type ConnectionProviderManifest = SyncableEntityOptions$1 & {
|
|
82
|
+
name: string;
|
|
83
|
+
displayName: string;
|
|
84
|
+
type: 'oauth';
|
|
85
|
+
oauth: OAuthConnectionProviderConfig;
|
|
86
|
+
};
|
|
87
|
+
|
|
62
88
|
declare const ALLOWED_ADDRESS_SUBFIELDS: readonly ["addressStreet1", "addressStreet2", "addressCity", "addressState", "addressPostcode", "addressCountry", "addressLat", "addressLng"];
|
|
63
89
|
type AllowedAddressSubField = (typeof ALLOWED_ADDRESS_SUBFIELDS)[number];
|
|
64
90
|
|
|
@@ -130,7 +156,8 @@ declare enum ConnectedAccountProvider {
|
|
|
130
156
|
MICROSOFT = "microsoft",
|
|
131
157
|
IMAP_SMTP_CALDAV = "imap_smtp_caldav",
|
|
132
158
|
OIDC = "oidc",
|
|
133
|
-
SAML = "saml"
|
|
159
|
+
SAML = "saml",
|
|
160
|
+
APP = "app"
|
|
134
161
|
}
|
|
135
162
|
|
|
136
163
|
declare enum FieldActorSource {
|
|
@@ -406,6 +433,7 @@ type LogicFunctionEvent<TBody = object> = {
|
|
|
406
433
|
path: string;
|
|
407
434
|
};
|
|
408
435
|
};
|
|
436
|
+
userWorkspaceId: string | null;
|
|
409
437
|
};
|
|
410
438
|
|
|
411
439
|
declare enum NavigationMenuItemType {
|
|
@@ -708,7 +736,6 @@ type CommandMenuItemManifest = SyncableEntityOptions$1 & {
|
|
|
708
736
|
frontComponentUniversalIdentifier: string;
|
|
709
737
|
conditionalAvailabilityExpression?: string;
|
|
710
738
|
};
|
|
711
|
-
type FrontComponentCommandManifest = Omit<CommandMenuItemManifest, 'frontComponentUniversalIdentifier'>;
|
|
712
739
|
type FrontComponentManifest = {
|
|
713
740
|
universalIdentifier: string;
|
|
714
741
|
name?: string;
|
|
@@ -719,7 +746,6 @@ type FrontComponentManifest = {
|
|
|
719
746
|
componentName: string;
|
|
720
747
|
isHeadless?: boolean;
|
|
721
748
|
usesSdkClient?: boolean;
|
|
722
|
-
command?: FrontComponentCommandManifest;
|
|
723
749
|
};
|
|
724
750
|
|
|
725
751
|
type InputJsonSchema = {
|
|
@@ -734,6 +760,32 @@ type InputJsonSchema = {
|
|
|
734
760
|
maximum?: number;
|
|
735
761
|
};
|
|
736
762
|
|
|
763
|
+
type ToolTriggerSettings = {
|
|
764
|
+
inputSchema?: InputJsonSchema;
|
|
765
|
+
};
|
|
766
|
+
|
|
767
|
+
type LeafType = 'string' | 'number' | 'boolean' | 'array' | 'unknown';
|
|
768
|
+
type NodeType = 'object' | 'unknown';
|
|
769
|
+
|
|
770
|
+
type InputSchemaPropertyType = LeafType | NodeType | FieldMetadataType;
|
|
771
|
+
type InputSchemaProperty = {
|
|
772
|
+
type: InputSchemaPropertyType;
|
|
773
|
+
enum?: string[];
|
|
774
|
+
items?: InputSchemaProperty;
|
|
775
|
+
properties?: Properties$1;
|
|
776
|
+
};
|
|
777
|
+
type Properties$1 = {
|
|
778
|
+
[name: string]: InputSchemaProperty;
|
|
779
|
+
};
|
|
780
|
+
type InputSchema = InputSchemaProperty[];
|
|
781
|
+
|
|
782
|
+
type WorkflowActionTriggerSettings = {
|
|
783
|
+
inputSchema?: InputSchema;
|
|
784
|
+
outputSchema?: InputSchema;
|
|
785
|
+
icon?: string;
|
|
786
|
+
label?: string;
|
|
787
|
+
};
|
|
788
|
+
|
|
737
789
|
type LogicFunctionManifest = SyncableEntityOptions$1 & {
|
|
738
790
|
name?: string;
|
|
739
791
|
description?: string;
|
|
@@ -741,12 +793,12 @@ type LogicFunctionManifest = SyncableEntityOptions$1 & {
|
|
|
741
793
|
cronTriggerSettings?: CronTriggerSettings;
|
|
742
794
|
databaseEventTriggerSettings?: DatabaseEventTriggerSettings;
|
|
743
795
|
httpRouteTriggerSettings?: HttpRouteTriggerSettings;
|
|
796
|
+
toolTriggerSettings?: ToolTriggerSettings;
|
|
797
|
+
workflowActionTriggerSettings?: WorkflowActionTriggerSettings;
|
|
744
798
|
sourceHandlerPath: string;
|
|
745
799
|
builtHandlerPath: string;
|
|
746
800
|
builtHandlerChecksum: string;
|
|
747
801
|
handlerName: string;
|
|
748
|
-
toolInputSchema: InputJsonSchema;
|
|
749
|
-
isTool?: boolean;
|
|
750
802
|
};
|
|
751
803
|
type CronTriggerSettings = {
|
|
752
804
|
pattern: string;
|
|
@@ -945,19 +997,18 @@ type ViewManifest = SyncableEntityOptions$1 & {
|
|
|
945
997
|
|
|
946
998
|
type ApplicationConfig = Omit<ApplicationManifest, 'packageJsonChecksum' | 'yarnLockChecksum' | 'postInstallLogicFunction' | 'preInstallLogicFunction'>;
|
|
947
999
|
|
|
948
|
-
type
|
|
949
|
-
type FrontComponentCommandConfig = Omit<FrontComponentCommandManifest, 'conditionalAvailabilityExpression'> & {
|
|
1000
|
+
type CommandMenuItemConfig = Omit<CommandMenuItemManifest, 'conditionalAvailabilityExpression'> & {
|
|
950
1001
|
conditionalAvailabilityExpression?: boolean | string;
|
|
951
1002
|
};
|
|
952
|
-
|
|
1003
|
+
|
|
1004
|
+
type FrontComponentType = React.ComponentType<any>;
|
|
1005
|
+
type FrontComponentConfig = Omit<FrontComponentManifest, 'sourceComponentPath' | 'builtComponentPath' | 'builtComponentChecksum' | 'componentName' | 'usesSdkClient'> & {
|
|
953
1006
|
component: FrontComponentType;
|
|
954
|
-
command?: FrontComponentCommandConfig;
|
|
955
1007
|
};
|
|
956
1008
|
|
|
957
1009
|
type LogicFunctionHandler = (...args: any[]) => any | Promise<any>;
|
|
958
|
-
type LogicFunctionConfig = Omit<LogicFunctionManifest, 'sourceHandlerPath' | 'builtHandlerPath' | 'builtHandlerChecksum' | 'handlerName'
|
|
1010
|
+
type LogicFunctionConfig = Omit<LogicFunctionManifest, 'sourceHandlerPath' | 'builtHandlerPath' | 'builtHandlerChecksum' | 'handlerName'> & {
|
|
959
1011
|
handler: LogicFunctionHandler;
|
|
960
|
-
toolInputSchema?: InputJsonSchema;
|
|
961
1012
|
};
|
|
962
1013
|
|
|
963
1014
|
type ObjectConfig = Omit<ObjectManifest, 'labelIdentifierFieldMetadataUniversalIdentifier'> & {
|
|
@@ -978,7 +1029,7 @@ type InstallPayload = {
|
|
|
978
1029
|
};
|
|
979
1030
|
type InstallHandler = (payload: InstallPayload) => any | Promise<any>;
|
|
980
1031
|
|
|
981
|
-
type PreInstallLogicFunctionConfig = Omit<LogicFunctionConfig, 'cronTriggerSettings' | 'databaseEventTriggerSettings' | 'httpRouteTriggerSettings' | '
|
|
1032
|
+
type PreInstallLogicFunctionConfig = Omit<LogicFunctionConfig, 'cronTriggerSettings' | 'databaseEventTriggerSettings' | 'httpRouteTriggerSettings' | 'toolTriggerSettings' | 'workflowActionTriggerSettings' | 'handler'> & {
|
|
982
1033
|
handler: InstallHandler;
|
|
983
1034
|
shouldRunOnVersionUpgrade?: boolean;
|
|
984
1035
|
};
|
|
@@ -998,7 +1049,7 @@ type ValidationResult<T> = {
|
|
|
998
1049
|
config: T;
|
|
999
1050
|
errors: string[];
|
|
1000
1051
|
};
|
|
1001
|
-
type DefinableEntity = ApplicationConfig | ObjectConfig | FieldManifest | FrontComponentConfig | LogicFunctionConfig | PostInstallLogicFunctionConfig | PreInstallLogicFunctionConfig | AgentManifest | RoleConfig | SkillManifest | ViewConfig | NavigationMenuItemManifest | PageLayoutConfig | PageLayoutTabConfig;
|
|
1052
|
+
type DefinableEntity = ApplicationConfig | ObjectConfig | FieldManifest | FrontComponentConfig | LogicFunctionConfig | PostInstallLogicFunctionConfig | PreInstallLogicFunctionConfig | AgentManifest | ConnectionProviderManifest | RoleConfig | SkillManifest | ViewConfig | NavigationMenuItemManifest | PageLayoutConfig | PageLayoutTabConfig | CommandMenuItemConfig;
|
|
1002
1053
|
type DefineEntity<T extends DefinableEntity = DefinableEntity> = (config: T) => ValidationResult<T>;
|
|
1003
1054
|
|
|
1004
1055
|
declare const defineAgent: DefineEntity<AgentManifest>;
|
|
@@ -1018,6 +1069,8 @@ declare const defineField: DefineEntity<FieldManifest>;
|
|
|
1018
1069
|
|
|
1019
1070
|
declare const validateFields: (fields: ObjectFieldManifest[] | undefined) => string[];
|
|
1020
1071
|
|
|
1072
|
+
declare const defineCommandMenuItem: DefineEntity<CommandMenuItemConfig>;
|
|
1073
|
+
|
|
1021
1074
|
declare const defineFrontComponent: DefineEntity<FrontComponentConfig>;
|
|
1022
1075
|
|
|
1023
1076
|
declare const defineLogicFunction: DefineEntity<LogicFunctionConfig>;
|
|
@@ -1147,6 +1200,8 @@ type WorkspaceEventBatch<WorkspaceEvent> = {
|
|
|
1147
1200
|
};
|
|
1148
1201
|
type DatabaseEventPayload<T = ObjectRecordEvent> = Omit<WorkspaceEventBatch<T>, 'events'> & T;
|
|
1149
1202
|
|
|
1203
|
+
declare const defineConnectionProvider: DefineEntity<ConnectionProviderManifest>;
|
|
1204
|
+
|
|
1150
1205
|
declare const defineNavigationMenuItem: DefineEntity<NavigationMenuItemManifest>;
|
|
1151
1206
|
|
|
1152
1207
|
declare const defineObject: DefineEntity<ObjectConfig>;
|
|
@@ -2862,9 +2917,6 @@ declare const STANDARD_OBJECTS: {
|
|
|
2862
2917
|
readonly messageThread: {
|
|
2863
2918
|
readonly universalIdentifier: "20202020-30f2-4ccd-9f5c-e41bb9d26214";
|
|
2864
2919
|
};
|
|
2865
|
-
readonly direction: {
|
|
2866
|
-
readonly universalIdentifier: "20202020-0203-4118-8e2a-05b9bdae6dab";
|
|
2867
|
-
};
|
|
2868
2920
|
readonly subject: {
|
|
2869
2921
|
readonly universalIdentifier: "20202020-52d1-4036-b9ae-84bd722bb37a";
|
|
2870
2922
|
};
|
|
@@ -4561,5 +4613,5 @@ declare const defineView: DefineEntity<ViewConfig>;
|
|
|
4561
4613
|
|
|
4562
4614
|
declare const getPublicAssetUrl: (path: string) => string;
|
|
4563
4615
|
|
|
4564
|
-
export { AggregateOperations, DateDisplayFormat, FieldMetadataSettingsOnClickAction, FieldMetadataType as FieldType, HTTPMethod, NavigationMenuItemType, NumberDataType, ObjectRecordBaseEvent, ObjectRecordCreateEvent, ObjectRecordDeleteEvent, ObjectRecordDestroyEvent, ObjectRecordGroupByDateGranularity, ObjectRecordRestoreEvent, ObjectRecordUpdateEvent, ObjectRecordUpsertEvent, RelationOnDeleteAction as OnDeleteAction, PageLayoutTabLayoutMode, PermissionFlagType as PermissionFlag, RelationType, STANDARD_OBJECTS as STANDARD_OBJECT, STANDARD_OBJECTS as STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS, ViewCalendarLayout, ViewFilterGroupLogicalOperator, ViewFilterOperand, ViewKey, ViewOpenRecordIn, ViewSortDirection, ViewType, ViewVisibility, createValidationResult, defineAgent, defineApplication, defineField, defineFrontComponent, defineLogicFunction, defineNavigationMenuItem, defineObject, definePageLayout, definePageLayoutTab, definePostInstallLogicFunction, definePreInstallLogicFunction, defineRole, defineSkill, defineView, generateDefaultFieldUniversalIdentifier, getPublicAssetUrl, validateFields };
|
|
4565
|
-
export type { ActorMetadata as ActorField, AddressMetadata as AddressField, ApplicationConfig, CronPayload, CurrencyMetadata as CurrencyField, DatabaseEventPayload, DefinableEntity, DefineEntity, EmailsMetadata as EmailsField,
|
|
4616
|
+
export { AggregateOperations, DateDisplayFormat, FieldMetadataSettingsOnClickAction, FieldMetadataType as FieldType, HTTPMethod, NavigationMenuItemType, NumberDataType, ObjectRecordBaseEvent, ObjectRecordCreateEvent, ObjectRecordDeleteEvent, ObjectRecordDestroyEvent, ObjectRecordGroupByDateGranularity, ObjectRecordRestoreEvent, ObjectRecordUpdateEvent, ObjectRecordUpsertEvent, RelationOnDeleteAction as OnDeleteAction, PageLayoutTabLayoutMode, PermissionFlagType as PermissionFlag, RelationType, STANDARD_OBJECTS as STANDARD_OBJECT, STANDARD_OBJECTS as STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS, ViewCalendarLayout, ViewFilterGroupLogicalOperator, ViewFilterOperand, ViewKey, ViewOpenRecordIn, ViewSortDirection, ViewType, ViewVisibility, createValidationResult, defineAgent, defineApplication, defineCommandMenuItem, defineConnectionProvider, defineField, defineFrontComponent, defineLogicFunction, defineNavigationMenuItem, defineObject, definePageLayout, definePageLayoutTab, definePostInstallLogicFunction, definePreInstallLogicFunction, defineRole, defineSkill, defineView, generateDefaultFieldUniversalIdentifier, getPublicAssetUrl, validateFields };
|
|
4617
|
+
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, InputJsonSchema, InstallHandler, InstallPayload, LinksMetadata as LinksField, LogicFunctionConfig, LogicFunctionHandler, ObjectRecordEvent, PageLayoutConfig, PageLayoutManifest, PageLayoutTabConfig, PageLayoutTabManifest, PageLayoutWidgetConditionalDisplay, PageLayoutWidgetManifest, PageLayoutWidgetUniversalConfiguration, PhonesMetadata as PhonesField, RichTextMetadata as RichTextField, LogicFunctionEvent as RoutePayload, SyncableEntityOptions, ValidationResult, ViewConfig, ViewFieldGroupManifest, ViewFieldManifest, ViewFilterGroupManifest, ViewFilterManifest, ViewGroupManifest, ViewManifestFilterValue, ViewSortManifest };
|