twenty-sdk 2.9.0 → 2.10.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/CHANGELOG.md +25 -0
- package/dist/billing/index.cjs.map +1 -1
- package/dist/billing/index.mjs.map +1 -1
- package/dist/catalog-sync-BHD2q_KA.mjs +18 -0
- package/dist/catalog-sync-Dp2RKu2c.js +1 -0
- package/dist/cli/utilities/build/manifest/manifest-extract-config.d.ts +2 -0
- package/dist/cli/utilities/build/manifest/utils/validate-conditional-availability-usage.d.ts +1 -0
- package/dist/cli/utilities/build/manifest/utils/validate-package-json-dependencies.d.ts +1 -0
- package/dist/cli/utilities/entity/entity-view-field-template.d.ts +3 -0
- package/dist/cli.cjs +93 -77
- package/dist/cli.mjs +1868 -1830
- package/dist/define/index.cjs +38 -16
- package/dist/define/index.cjs.map +1 -1
- package/dist/define/index.d.ts +871 -52
- package/dist/define/index.mjs +13655 -3526
- package/dist/define/index.mjs.map +1 -1
- package/dist/front-component/index.cjs +37 -15
- package/dist/front-component/index.cjs.map +1 -1
- package/dist/front-component/index.d.ts +1 -135
- package/dist/front-component/index.mjs +12833 -3490
- package/dist/front-component/index.mjs.map +1 -1
- package/dist/get-function-input-schema-DTlcRJz3-BweFaTLz.mjs +73 -0
- package/dist/get-function-input-schema-DTlcRJz3-DWdkAlue.js +1 -0
- package/dist/logic-function/index.cjs +37 -1
- package/dist/logic-function/index.cjs.map +1 -1
- package/dist/logic-function/index.d.ts +33 -2
- package/dist/logic-function/index.mjs +97 -28
- package/dist/logic-function/index.mjs.map +1 -1
- package/dist/{login-oauth-DSC3zo9c.mjs → login-oauth-BPSmh2dn.mjs} +15214 -4936
- package/dist/login-oauth-DnF6U1Ak.js +340 -0
- package/dist/operations.cjs +1 -1
- package/dist/operations.mjs +2 -2
- package/dist/ui/index.cjs +48 -26
- package/dist/ui/index.mjs +20941 -11460
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.mjs.map +1 -1
- package/package.json +11 -9
- package/dist/catalog-sync-CanLpG9v.js +0 -1
- package/dist/catalog-sync-DyCidT5d.mjs +0 -16
- package/dist/get-function-input-schema-BZ7_XyUh-COeGJwHh.js +0 -1
- package/dist/get-function-input-schema-BZ7_XyUh-Dql7-b-j.mjs +0 -62
- package/dist/login-oauth-BESuSxoP.js +0 -298
|
@@ -29,109 +29,6 @@ declare enum AppPath {
|
|
|
29
29
|
NotFound = "/not-found"
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
declare enum ContextStorePageType {
|
|
33
|
-
Index = "INDEX_PAGE",
|
|
34
|
-
Record = "RECORD_PAGE",
|
|
35
|
-
Standalone = "STANDALONE_PAGE",
|
|
36
|
-
Settings = "SETTINGS_PAGE"
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
type RestrictedFieldPermissions = {
|
|
40
|
-
canRead?: boolean | null;
|
|
41
|
-
canUpdate?: boolean | null;
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
type RestrictedFieldsPermissions = Record<string, RestrictedFieldPermissions>;
|
|
45
|
-
|
|
46
|
-
declare enum RowLevelPermissionPredicateOperand {
|
|
47
|
-
IS = "IS",
|
|
48
|
-
IS_NOT_NULL = "IS_NOT_NULL",
|
|
49
|
-
IS_NOT = "IS_NOT",
|
|
50
|
-
LESS_THAN_OR_EQUAL = "LESS_THAN_OR_EQUAL",
|
|
51
|
-
GREATER_THAN_OR_EQUAL = "GREATER_THAN_OR_EQUAL",
|
|
52
|
-
IS_BEFORE = "IS_BEFORE",
|
|
53
|
-
IS_AFTER = "IS_AFTER",
|
|
54
|
-
CONTAINS = "CONTAINS",
|
|
55
|
-
DOES_NOT_CONTAIN = "DOES_NOT_CONTAIN",
|
|
56
|
-
IS_EMPTY = "IS_EMPTY",
|
|
57
|
-
IS_NOT_EMPTY = "IS_NOT_EMPTY",
|
|
58
|
-
IS_RELATIVE = "IS_RELATIVE",
|
|
59
|
-
IS_IN_PAST = "IS_IN_PAST",
|
|
60
|
-
IS_IN_FUTURE = "IS_IN_FUTURE",
|
|
61
|
-
IS_TODAY = "IS_TODAY",
|
|
62
|
-
VECTOR_SEARCH = "VECTOR_SEARCH"
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
type RelationPredicateValue = {
|
|
66
|
-
isCurrentWorkspaceMemberSelected?: boolean;
|
|
67
|
-
selectedRecordIds: string[];
|
|
68
|
-
};
|
|
69
|
-
type RowLevelPermissionPredicateValue = string | string[] | boolean | number | RelationPredicateValue | Record<string, unknown> | null;
|
|
70
|
-
|
|
71
|
-
type RowLevelPermissionPredicate = {
|
|
72
|
-
id: string;
|
|
73
|
-
fieldMetadataId: string;
|
|
74
|
-
objectMetadataId: string;
|
|
75
|
-
operand: RowLevelPermissionPredicateOperand;
|
|
76
|
-
value: RowLevelPermissionPredicateValue;
|
|
77
|
-
subFieldName: string | null;
|
|
78
|
-
workspaceMemberFieldMetadataId: string | null;
|
|
79
|
-
workspaceMemberSubFieldName: string | null;
|
|
80
|
-
roleId: string;
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
declare enum RowLevelPermissionPredicateGroupLogicalOperator {
|
|
84
|
-
AND = "AND",
|
|
85
|
-
OR = "OR"
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
type RowLevelPermissionPredicateGroup = {
|
|
89
|
-
id: string;
|
|
90
|
-
logicalOperator: RowLevelPermissionPredicateGroupLogicalOperator;
|
|
91
|
-
objectMetadataId: string;
|
|
92
|
-
parentRowLevelPermissionPredicateGroupId: string | null;
|
|
93
|
-
positionInRowLevelPermissionPredicateGroup: number | null;
|
|
94
|
-
roleId: string;
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
type ObjectPermissions = {
|
|
98
|
-
canReadObjectRecords: boolean;
|
|
99
|
-
canUpdateObjectRecords: boolean;
|
|
100
|
-
canSoftDeleteObjectRecords: boolean;
|
|
101
|
-
canDestroyObjectRecords: boolean;
|
|
102
|
-
restrictedFields: RestrictedFieldsPermissions;
|
|
103
|
-
rowLevelPermissionPredicates: RowLevelPermissionPredicate[];
|
|
104
|
-
rowLevelPermissionPredicateGroups: RowLevelPermissionPredicateGroup[];
|
|
105
|
-
};
|
|
106
|
-
|
|
107
|
-
interface ObjectRecord {
|
|
108
|
-
id: string;
|
|
109
|
-
[key: string]: any;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
type CommandMenuContextApi = {
|
|
113
|
-
pageType: ContextStorePageType;
|
|
114
|
-
isInSidePanel: boolean;
|
|
115
|
-
isDashboardPageLayoutInEditMode: boolean;
|
|
116
|
-
isLayoutCustomizationModeEnabled: boolean;
|
|
117
|
-
favoriteRecordIds: string[];
|
|
118
|
-
isSelectAll: boolean;
|
|
119
|
-
hasAnySoftDeleteFilterOnView: boolean;
|
|
120
|
-
numberOfSelectedRecords: number;
|
|
121
|
-
objectPermissions: ObjectPermissions & {
|
|
122
|
-
objectMetadataId: string;
|
|
123
|
-
};
|
|
124
|
-
selectedRecords: ObjectRecord[];
|
|
125
|
-
featureFlags: Record<string, boolean>;
|
|
126
|
-
permissionFlags: Record<string, boolean>;
|
|
127
|
-
targetObjectReadPermissions: Record<string, boolean>;
|
|
128
|
-
targetObjectWritePermissions: Record<string, boolean>;
|
|
129
|
-
canImpersonate: boolean;
|
|
130
|
-
canAccessFullAdminPanel: boolean;
|
|
131
|
-
objectMetadataItem: Record<string, unknown>;
|
|
132
|
-
objectMetadataLabel: string;
|
|
133
|
-
};
|
|
134
|
-
|
|
135
32
|
type SnackBarVariant = 'error' | 'success' | 'info' | 'warning';
|
|
136
33
|
type EnqueueSnackbarParams = {
|
|
137
34
|
message: string;
|
|
@@ -178,37 +75,6 @@ declare enum SidePanelPages {
|
|
|
178
75
|
ComposeEmail = "compose-email"
|
|
179
76
|
}
|
|
180
77
|
|
|
181
|
-
declare const pageType: CommandMenuContextApi["pageType"];
|
|
182
|
-
declare const isInSidePanel: CommandMenuContextApi["isInSidePanel"];
|
|
183
|
-
declare const isDashboardPageLayoutInEditMode: CommandMenuContextApi["isDashboardPageLayoutInEditMode"];
|
|
184
|
-
declare const isLayoutCustomizationModeEnabled: CommandMenuContextApi["isLayoutCustomizationModeEnabled"];
|
|
185
|
-
declare const favoriteRecordIds: CommandMenuContextApi["favoriteRecordIds"];
|
|
186
|
-
declare const isSelectAll: CommandMenuContextApi["isSelectAll"];
|
|
187
|
-
declare const hasAnySoftDeleteFilterOnView: CommandMenuContextApi["hasAnySoftDeleteFilterOnView"];
|
|
188
|
-
declare const numberOfSelectedRecords: CommandMenuContextApi["numberOfSelectedRecords"];
|
|
189
|
-
declare const objectPermissions: CommandMenuContextApi["objectPermissions"];
|
|
190
|
-
declare const selectedRecords: CommandMenuContextApi["selectedRecords"];
|
|
191
|
-
declare const featureFlags: CommandMenuContextApi["featureFlags"];
|
|
192
|
-
declare const targetObjectReadPermissions: CommandMenuContextApi["targetObjectReadPermissions"];
|
|
193
|
-
declare const targetObjectWritePermissions: CommandMenuContextApi["targetObjectWritePermissions"];
|
|
194
|
-
declare const canImpersonate: CommandMenuContextApi["canImpersonate"];
|
|
195
|
-
declare const canAccessFullAdminPanel: CommandMenuContextApi["canAccessFullAdminPanel"];
|
|
196
|
-
declare const objectMetadataItem: CommandMenuContextApi["objectMetadataItem"];
|
|
197
|
-
declare const isDefined: (value: unknown) => boolean;
|
|
198
|
-
declare const isNonEmptyString: (value: unknown) => boolean;
|
|
199
|
-
declare const includes: (array: unknown, value: unknown) => boolean;
|
|
200
|
-
declare const every: (array: unknown, prop: string) => boolean;
|
|
201
|
-
declare const everyDefined: (array: unknown, prop: string) => boolean;
|
|
202
|
-
declare const everyEquals: (array: unknown, prop: string, value: unknown) => boolean;
|
|
203
|
-
declare const some: (array: unknown, prop: string) => boolean;
|
|
204
|
-
declare const someDefined: (array: unknown, prop: string) => boolean;
|
|
205
|
-
declare const someEquals: (array: unknown, prop: string, value: unknown) => boolean;
|
|
206
|
-
declare const none: (array: unknown, prop: string) => boolean;
|
|
207
|
-
declare const noneDefined: (array: unknown, prop: string) => boolean;
|
|
208
|
-
declare const noneEquals: (array: unknown, prop: string, value: unknown) => boolean;
|
|
209
|
-
declare const someNonEmptyString: (array: unknown, prop: string) => boolean;
|
|
210
|
-
declare const includesEvery: (array: unknown, prop: string, value: unknown) => boolean;
|
|
211
|
-
|
|
212
78
|
declare const getAppPath: <T extends AppPath>(to: T, params?: { [key in PathParam<T>]: string | null; } | undefined, queryParams?: Record<string, any> | undefined) => string;
|
|
213
79
|
|
|
214
80
|
type NavigateFunction = <T extends AppPath>(to: T, params?: Parameters<typeof getAppPath<T>>[1], queryParams?: Record<string, any>, options?: NavigateOptions) => Promise<void>;
|
|
@@ -324,5 +190,5 @@ type CommandModalProps = {
|
|
|
324
190
|
};
|
|
325
191
|
declare const CommandModal: ({ title, subtitle, execute, confirmButtonText, confirmButtonAccent, }: CommandModalProps) => null;
|
|
326
192
|
|
|
327
|
-
export { AppPath, Command, CommandLink, CommandModal, CommandOpenSidePanelPage, SidePanelPages,
|
|
193
|
+
export { AppPath, Command, CommandLink, CommandModal, CommandOpenSidePanelPage, SidePanelPages, closeSidePanel, copyToClipboard, enqueueSnackbar, getApplicationVariable, getFrontComponentCommandErrorDedupeKey, navigate, openCommandConfirmationModal, openSidePanelPage, unmountFrontComponent, updateProgress, useFrontComponentExecutionContext, useFrontComponentId, useRecordId, useSelectedRecordIds, useUserId };
|
|
328
194
|
export type { CloseSidePanelFunction, CommandConfirmationModalAccent, CommandConfirmationModalResult, CommandLinkProps, CommandModalProps, CommandOpenSidePanelPageProps, CommandProps, CopyToClipboardFunction, EnqueueSnackbarFunction, EnqueueSnackbarParams, FrontComponentExecutionContext, NavigateFunction, OpenCommandConfirmationModalFunction, OpenCommandConfirmationModalHostFunction, OpenSidePanelPageFunction, RequestAccessTokenRefreshFunction, SnackBarVariant, UnmountFrontComponentFunction, UpdateProgressFunction };
|