twenty-sdk 2.56.0 → 2.57.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 +6 -0
- package/dist/define/index.cjs +11 -11
- package/dist/define/index.cjs.map +1 -1
- package/dist/define/index.d.ts +47 -31
- package/dist/define/index.mjs +1081 -1067
- package/dist/define/index.mjs.map +1 -1
- package/dist/front-component/index.cjs +34 -24
- package/dist/front-component/index.cjs.map +1 -1
- package/dist/front-component/index.mjs +49781 -4869
- package/dist/front-component/index.mjs.map +1 -1
- package/dist/logic-function/index.cjs +22 -21
- package/dist/logic-function/index.cjs.map +1 -1
- package/dist/logic-function/index.d.ts +20 -2
- package/dist/logic-function/index.mjs +143 -114
- package/dist/logic-function/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/define/index.d.ts
CHANGED
|
@@ -2400,13 +2400,6 @@ declare enum ContextStorePageType {
|
|
|
2400
2400
|
Settings = "SETTINGS_PAGE"
|
|
2401
2401
|
}
|
|
2402
2402
|
|
|
2403
|
-
type RestrictedFieldPermissions = {
|
|
2404
|
-
canRead?: boolean | null;
|
|
2405
|
-
canUpdate?: boolean | null;
|
|
2406
|
-
};
|
|
2407
|
-
|
|
2408
|
-
type RestrictedFieldsPermissions = Record<string, RestrictedFieldPermissions>;
|
|
2409
|
-
|
|
2410
2403
|
declare enum RowLevelPermissionPredicateOperand {
|
|
2411
2404
|
IS = "IS",
|
|
2412
2405
|
IS_NOT_NULL = "IS_NOT_NULL",
|
|
@@ -2464,11 +2457,13 @@ type RowLevelPermissionPredicateGroup = {
|
|
|
2464
2457
|
};
|
|
2465
2458
|
|
|
2466
2459
|
type ObjectPermissions = {
|
|
2460
|
+
canCreateObjectRecords: boolean;
|
|
2467
2461
|
canReadObjectRecords: boolean;
|
|
2468
2462
|
canUpdateObjectRecords: boolean;
|
|
2469
2463
|
canSoftDeleteObjectRecords: boolean;
|
|
2470
2464
|
canDestroyObjectRecords: boolean;
|
|
2471
|
-
|
|
2465
|
+
unreadableFields: string[];
|
|
2466
|
+
uneditableFields: string[];
|
|
2472
2467
|
rowLevelPermissionPredicates: RowLevelPermissionPredicate[];
|
|
2473
2468
|
rowLevelPermissionPredicateGroups: RowLevelPermissionPredicateGroup[];
|
|
2474
2469
|
};
|
|
@@ -2478,6 +2473,10 @@ interface ObjectRecord {
|
|
|
2478
2473
|
[key: string]: any;
|
|
2479
2474
|
}
|
|
2480
2475
|
|
|
2476
|
+
type CommandMenuCurrentView = {
|
|
2477
|
+
id: string;
|
|
2478
|
+
universalIdentifier: string | null;
|
|
2479
|
+
};
|
|
2481
2480
|
type CommandMenuContextApi = {
|
|
2482
2481
|
pageType: ContextStorePageType;
|
|
2483
2482
|
isInSidePanel: boolean;
|
|
@@ -2500,6 +2499,7 @@ type CommandMenuContextApi = {
|
|
|
2500
2499
|
objectMetadataItem: Record<string, unknown>;
|
|
2501
2500
|
objectMetadataLabel: string;
|
|
2502
2501
|
coreObjectName: CommandMenuCoreObjectName | null;
|
|
2502
|
+
currentView: CommandMenuCurrentView | null;
|
|
2503
2503
|
};
|
|
2504
2504
|
|
|
2505
2505
|
declare enum CommandMenuItemAvailabilityType {
|
|
@@ -3180,6 +3180,25 @@ declare enum RecordFilterGroupLogicalOperator {
|
|
|
3180
3180
|
OR = "OR"
|
|
3181
3181
|
}
|
|
3182
3182
|
|
|
3183
|
+
declare enum ViewFilterOperand {
|
|
3184
|
+
IS = "IS",
|
|
3185
|
+
IS_NOT_NULL = "IS_NOT_NULL",
|
|
3186
|
+
IS_NOT = "IS_NOT",
|
|
3187
|
+
LESS_THAN_OR_EQUAL = "LESS_THAN_OR_EQUAL",
|
|
3188
|
+
GREATER_THAN_OR_EQUAL = "GREATER_THAN_OR_EQUAL",
|
|
3189
|
+
IS_BEFORE = "IS_BEFORE",
|
|
3190
|
+
IS_AFTER = "IS_AFTER",
|
|
3191
|
+
CONTAINS = "CONTAINS",
|
|
3192
|
+
DOES_NOT_CONTAIN = "DOES_NOT_CONTAIN",
|
|
3193
|
+
IS_EMPTY = "IS_EMPTY",
|
|
3194
|
+
IS_NOT_EMPTY = "IS_NOT_EMPTY",
|
|
3195
|
+
IS_RELATIVE = "IS_RELATIVE",
|
|
3196
|
+
IS_IN_PAST = "IS_IN_PAST",
|
|
3197
|
+
IS_IN_FUTURE = "IS_IN_FUTURE",
|
|
3198
|
+
IS_TODAY = "IS_TODAY",
|
|
3199
|
+
VECTOR_SEARCH = "VECTOR_SEARCH"
|
|
3200
|
+
}
|
|
3201
|
+
|
|
3183
3202
|
type RelationAndMorphRelationFieldMetadataType = FieldMetadataType.RELATION | FieldMetadataType.MORPH_RELATION;
|
|
3184
3203
|
|
|
3185
3204
|
declare enum ViewFilterOperandDeprecated {
|
|
@@ -3200,25 +3219,6 @@ declare enum ViewFilterOperandDeprecated {
|
|
|
3200
3219
|
IsToday = "isToday"
|
|
3201
3220
|
}
|
|
3202
3221
|
|
|
3203
|
-
declare enum ViewFilterOperand {
|
|
3204
|
-
IS = "IS",
|
|
3205
|
-
IS_NOT_NULL = "IS_NOT_NULL",
|
|
3206
|
-
IS_NOT = "IS_NOT",
|
|
3207
|
-
LESS_THAN_OR_EQUAL = "LESS_THAN_OR_EQUAL",
|
|
3208
|
-
GREATER_THAN_OR_EQUAL = "GREATER_THAN_OR_EQUAL",
|
|
3209
|
-
IS_BEFORE = "IS_BEFORE",
|
|
3210
|
-
IS_AFTER = "IS_AFTER",
|
|
3211
|
-
CONTAINS = "CONTAINS",
|
|
3212
|
-
DOES_NOT_CONTAIN = "DOES_NOT_CONTAIN",
|
|
3213
|
-
IS_EMPTY = "IS_EMPTY",
|
|
3214
|
-
IS_NOT_EMPTY = "IS_NOT_EMPTY",
|
|
3215
|
-
IS_RELATIVE = "IS_RELATIVE",
|
|
3216
|
-
IS_IN_PAST = "IS_IN_PAST",
|
|
3217
|
-
IS_IN_FUTURE = "IS_IN_FUTURE",
|
|
3218
|
-
IS_TODAY = "IS_TODAY",
|
|
3219
|
-
VECTOR_SEARCH = "VECTOR_SEARCH"
|
|
3220
|
-
}
|
|
3221
|
-
|
|
3222
3222
|
declare enum StepLogicalOperator {
|
|
3223
3223
|
AND = "AND",
|
|
3224
3224
|
OR = "OR"
|
|
@@ -4609,8 +4609,8 @@ type NavigationMenuItemManifest = SyncableEntityOptions$1 & {
|
|
|
4609
4609
|
pageLayoutUniversalIdentifier?: string;
|
|
4610
4610
|
};
|
|
4611
4611
|
|
|
4612
|
-
declare const
|
|
4613
|
-
type
|
|
4612
|
+
declare const DISABLEABLE_OBJECT_PERMISSION_ACTIONS: readonly ["canReadObjectRecords", "canUpdateObjectRecords", "canSoftDeleteObjectRecords", "canDestroyObjectRecords", "canCreateObjectRecords"];
|
|
4613
|
+
type DisableableObjectPermissionAction = (typeof DISABLEABLE_OBJECT_PERMISSION_ACTIONS)[number];
|
|
4614
4614
|
|
|
4615
4615
|
type DistributiveOmit<T, K extends PropertyKey> = T extends unknown ? Omit<T, K> : never;
|
|
4616
4616
|
type ObjectFieldManifest$1<T extends FieldMetadataType = FieldMetadataType> = DistributiveOmit<FieldManifest<T>, 'objectUniversalIdentifier'>;
|
|
@@ -4627,7 +4627,7 @@ type ObjectManifest = SyncableEntityOptions$1 & {
|
|
|
4627
4627
|
isSearchable?: boolean;
|
|
4628
4628
|
isUICreatable?: boolean;
|
|
4629
4629
|
isUIEditable?: boolean;
|
|
4630
|
-
disabledObjectPermissionActions?:
|
|
4630
|
+
disabledObjectPermissionActions?: DisableableObjectPermissionAction[];
|
|
4631
4631
|
openRecordIn?: ObjectOpenRecordIn;
|
|
4632
4632
|
fields: ObjectFieldManifest$1[];
|
|
4633
4633
|
labelIdentifierFieldMetadataUniversalIdentifier: string;
|
|
@@ -5106,6 +5106,7 @@ declare const canImpersonate: CommandMenuContextApi["canImpersonate"];
|
|
|
5106
5106
|
declare const canAccessFullAdminPanel: CommandMenuContextApi["canAccessFullAdminPanel"];
|
|
5107
5107
|
declare const objectMetadataItem: CommandMenuContextApi["objectMetadataItem"];
|
|
5108
5108
|
declare const objectMetadataLabel: CommandMenuContextApi["objectMetadataLabel"];
|
|
5109
|
+
declare const currentView: CommandMenuContextApi["currentView"];
|
|
5109
5110
|
declare const isDefined: (value: unknown) => boolean;
|
|
5110
5111
|
declare const isNonEmptyString: (value: unknown) => boolean;
|
|
5111
5112
|
declare const includes: (array: unknown, value: unknown) => boolean;
|
|
@@ -5312,6 +5313,9 @@ declare const STANDARD_OBJECTS: {
|
|
|
5312
5313
|
targetAgentChatThread: {
|
|
5313
5314
|
universalIdentifier: string;
|
|
5314
5315
|
};
|
|
5316
|
+
targetMessage: {
|
|
5317
|
+
universalIdentifier: string;
|
|
5318
|
+
};
|
|
5315
5319
|
createdAt: {
|
|
5316
5320
|
universalIdentifier: string;
|
|
5317
5321
|
};
|
|
@@ -5367,6 +5371,9 @@ declare const STANDARD_OBJECTS: {
|
|
|
5367
5371
|
readonly agentChatThreadIdIndex: {
|
|
5368
5372
|
readonly universalIdentifier: "69857371-6ff9-48fa-a9de-db4f71593431";
|
|
5369
5373
|
};
|
|
5374
|
+
readonly messageIdIndex: {
|
|
5375
|
+
readonly universalIdentifier: "83c77988-2dc4-4575-bac5-f0f50c05568e";
|
|
5376
|
+
};
|
|
5370
5377
|
};
|
|
5371
5378
|
readonly views: {
|
|
5372
5379
|
readonly allAttachments: {
|
|
@@ -6661,6 +6668,9 @@ declare const STANDARD_OBJECTS: {
|
|
|
6661
6668
|
isDraft: {
|
|
6662
6669
|
universalIdentifier: string;
|
|
6663
6670
|
};
|
|
6671
|
+
attachments: {
|
|
6672
|
+
universalIdentifier: string;
|
|
6673
|
+
};
|
|
6664
6674
|
createdAt: {
|
|
6665
6675
|
universalIdentifier: string;
|
|
6666
6676
|
};
|
|
@@ -7139,6 +7149,9 @@ declare const STANDARD_OBJECTS: {
|
|
|
7139
7149
|
readonly accessGroup: {
|
|
7140
7150
|
readonly universalIdentifier: "47f4ed44-4312-467f-b6f5-787f91037a1d";
|
|
7141
7151
|
readonly fields: {
|
|
7152
|
+
objectMetadataId: {
|
|
7153
|
+
universalIdentifier: string;
|
|
7154
|
+
};
|
|
7142
7155
|
roleId: {
|
|
7143
7156
|
universalIdentifier: string;
|
|
7144
7157
|
};
|
|
@@ -7183,6 +7196,9 @@ declare const STANDARD_OBJECTS: {
|
|
|
7183
7196
|
readonly groupHashUniqueIndex: {
|
|
7184
7197
|
readonly universalIdentifier: "dcb0d254-43ae-442e-9223-8ac052eddb28";
|
|
7185
7198
|
};
|
|
7199
|
+
readonly objectMetadataIdIndex: {
|
|
7200
|
+
readonly universalIdentifier: "60e48c2a-a3db-4f11-b25b-49c7e8a385bc";
|
|
7201
|
+
};
|
|
7186
7202
|
};
|
|
7187
7203
|
readonly views: {};
|
|
7188
7204
|
};
|
|
@@ -9535,5 +9551,5 @@ declare const defineViewField: DefineEntity<StandaloneViewFieldManifest$1>;
|
|
|
9535
9551
|
|
|
9536
9552
|
declare const defineWorkflow: DefineEntity<WorkflowManifest$1>;
|
|
9537
9553
|
|
|
9538
|
-
export { AggregateOperations, ApplicationHealthStatus, CommandMenuItemAvailabilityType, DateDisplayFormat, FieldMetadataSettingsOnClickAction, FieldMetadataType as FieldType, HTTPMethod, IndexType, NavigationMenuItemType, NumberDataType, ObjectOpenRecordIn, ObjectRecordBaseEvent, ObjectRecordCreateEvent, ObjectRecordDeleteEvent, ObjectRecordDestroyEvent, ObjectRecordGroupByDateGranularity, ObjectRecordRestoreEvent, ObjectRecordUpdateEvent, ObjectRecordUpsertEvent, RelationOnDeleteAction as OnDeleteAction, PageLayoutTabLayoutMode, PageLayoutType, PageLayoutWidgetVerticalListHeightBehavior, 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, SYSTEM_VIEW_KEYS, SystemPermissionFlag, ViewCalendarLayout, ViewFilterGroupLogicalOperator, ViewFilterOperand, ViewKey, ViewOpenRecordIn, ViewSortDirection, ViewType, ViewVisibility, WidgetType, canAccessFullAdminPanel, canImpersonate, createValidationResult, defineAgent, defineApplication, defineApplicationRole, defineCommandMenuItem, defineConnectionProvider, defineField, defineFrontComponent, defineHealthCheck, defineIndex, defineLogicFunction, defineMcpServer, defineMessagingProvider, defineNavigationMenuItem, defineObject, definePageLayout, definePageLayoutTab, definePageLayoutWidget, definePermissionFlag, definePostInstallLogicFunction, definePreInstallLogicFunction, defineRelatedRecordPath, defineRole, defineSettingsFrontComponent, defineSettingsMenuItem, defineSkill, defineTimelineActivityType, defineUninstallLogicFunction, defineValidationRule, defineView, defineViewField, defineWorkflow, every, everyDefined, everyEquals, favoriteRecordIds, featureFlags, getFieldUniversalIdentifier, getSystemPageLayoutTabUniversalIdentifier, getSystemRecordPageLayoutUniversalIdentifier, getSystemRelationFieldUniversalIdentifier, getSystemViewFieldUniversalIdentifier, getSystemViewUniversalIdentifier, hasAnySoftDeleteFilterOnView, includes, includesEvery, isDashboardPageLayoutInEditMode, isDefined, isInSidePanel, isLayoutCustomizationModeEnabled, isNonEmptyString, isSelectAll, none, noneDefined, noneEquals, numberOfSelectedRecords, objectMetadataItem, objectMetadataLabel, objectPermissions, pageType, ruleExpression, selectedRecords, some, someDefined, someEquals, someNonEmptyString, targetObjectReadPermissions, targetObjectWritePermissions, validateFields };
|
|
9554
|
+
export { AggregateOperations, ApplicationHealthStatus, CommandMenuItemAvailabilityType, DateDisplayFormat, FieldMetadataSettingsOnClickAction, FieldMetadataType as FieldType, HTTPMethod, IndexType, NavigationMenuItemType, NumberDataType, ObjectOpenRecordIn, ObjectRecordBaseEvent, ObjectRecordCreateEvent, ObjectRecordDeleteEvent, ObjectRecordDestroyEvent, ObjectRecordGroupByDateGranularity, ObjectRecordRestoreEvent, ObjectRecordUpdateEvent, ObjectRecordUpsertEvent, RelationOnDeleteAction as OnDeleteAction, PageLayoutTabLayoutMode, PageLayoutType, PageLayoutWidgetVerticalListHeightBehavior, 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, SYSTEM_VIEW_KEYS, SystemPermissionFlag, ViewCalendarLayout, ViewFilterGroupLogicalOperator, ViewFilterOperand, ViewKey, ViewOpenRecordIn, ViewSortDirection, ViewType, ViewVisibility, WidgetType, canAccessFullAdminPanel, canImpersonate, createValidationResult, currentView, defineAgent, defineApplication, defineApplicationRole, defineCommandMenuItem, defineConnectionProvider, defineField, defineFrontComponent, defineHealthCheck, defineIndex, defineLogicFunction, defineMcpServer, defineMessagingProvider, defineNavigationMenuItem, defineObject, definePageLayout, definePageLayoutTab, definePageLayoutWidget, definePermissionFlag, definePostInstallLogicFunction, definePreInstallLogicFunction, defineRelatedRecordPath, defineRole, defineSettingsFrontComponent, defineSettingsMenuItem, defineSkill, defineTimelineActivityType, defineUninstallLogicFunction, defineValidationRule, defineView, defineViewField, defineWorkflow, every, everyDefined, everyEquals, favoriteRecordIds, featureFlags, getFieldUniversalIdentifier, getSystemPageLayoutTabUniversalIdentifier, getSystemRecordPageLayoutUniversalIdentifier, getSystemRelationFieldUniversalIdentifier, getSystemViewFieldUniversalIdentifier, getSystemViewUniversalIdentifier, hasAnySoftDeleteFilterOnView, includes, includesEvery, isDashboardPageLayoutInEditMode, isDefined, isInSidePanel, isLayoutCustomizationModeEnabled, isNonEmptyString, isSelectAll, none, noneDefined, noneEquals, numberOfSelectedRecords, objectMetadataItem, objectMetadataLabel, objectPermissions, pageType, ruleExpression, selectedRecords, some, someDefined, someEquals, someNonEmptyString, targetObjectReadPermissions, targetObjectWritePermissions, validateFields };
|
|
9539
9555
|
export type { ActorMetadata as ActorField, AddressMetadata as AddressField, ApplicationConfig, ApplicationHealthCheckAction, ApplicationHealthCheckResult, CommandMenuItemConfig, CommandMenuItemManifest, ConnectionProviderScope, CronPayload, CurrencyMetadata as CurrencyField, DatabaseEventBatchPayload, DatabaseEventPayload, DefinableEntity, DefineEntity, EmailsMetadata as EmailsField, FrontComponentConfig, FrontComponentType, FullNameMetadata as FullNameField, HealthCheckHandler, HealthCheckLogicFunctionConfig, IndexConfig, IndexFieldManifest, IndexManifest, InputJsonSchema, InstallHandler, InstallPayload, LinksMetadata as LinksField, LogicFunctionConfig, LogicFunctionHandler, ObjectRecordEvent, PageLayoutConfig, PageLayoutManifest, PageLayoutTabConfig, PageLayoutTabManifest, PageLayoutWidgetCanvasPosition, PageLayoutWidgetConditionalDisplay, PageLayoutWidgetGridPosition, PageLayoutWidgetManifest, PageLayoutWidgetPosition, PageLayoutWidgetUniversalConfiguration, PageLayoutWidgetVerticalListPosition, PermissionFlagConfig, PermissionFlagManifest, PermissionFlagPermissionType, PhonesMetadata as PhonesField, RichTextMetadata as RichTextField, LogicFunctionEvent as RoutePayload, RowLevelPermissionPredicateGroupManifest, RowLevelPermissionPredicateManifest, RuleExpression, RuleExpressionOperand, ServerRouteDispatchResult, ServerRouteResolverResult, SettingsFrontComponentConfig, SettingsMenuItemConfig, SettingsMenuItemManifest, SettingsMenuItemScope, StandalonePageLayoutWidgetManifest, StandaloneViewFieldManifest, SyncableEntityOptions, SystemViewKey, TimelineActivityTypeConfig, TimelineActivityTypeManifest, TwentyRecord, UninstallHandler, UninstallPayload, UserHealthCheckHandler, ValidationResult, ValidationRuleConfig, ValidationRuleManifest, ViewConfig, ViewFieldGroupManifest, ViewFieldManifest, ViewFilterGroupManifest, ViewFilterManifest, ViewGroupManifest, ViewManifestFilterValue, ViewSortManifest, WorkflowManifest };
|