twenty-sdk 2.3.0 → 2.4.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/cli/utilities/build/manifest/manifest-build.d.ts +1 -0
- package/dist/cli/utilities/build/manifest/manifest-extract-config.d.ts +1 -0
- package/dist/cli/utilities/dev/orchestrator/dev-mode-orchestrator-state.d.ts +3 -0
- package/dist/cli/utilities/dev/ui/components/dev-ui-version-row.d.ts +5 -0
- package/dist/cli/utilities/version/check-server-version-compatibility.d.ts +1 -0
- package/dist/cli/utilities/version/compare-semver.d.ts +2 -0
- package/dist/cli/utilities/version/get-local-server-version.d.ts +1 -0
- package/dist/cli/utilities/version/get-published-server-versions.d.ts +2 -0
- package/dist/cli/utilities/version/get-version-info.d.ts +2 -0
- package/dist/cli/utilities/version/parse-semver.d.ts +2 -0
- package/dist/cli/utilities/version/published-server-version.d.ts +4 -0
- package/dist/cli/utilities/version/semver-tuple.d.ts +1 -0
- package/dist/cli/utilities/version/version-info.d.ts +7 -0
- package/dist/cli.cjs +68 -68
- package/dist/cli.mjs +1682 -1638
- package/dist/define/index.cjs +10 -10
- package/dist/define/index.cjs.map +1 -1
- package/dist/define/index.d.ts +17 -3
- package/dist/define/index.mjs +56 -50
- package/dist/define/index.mjs.map +1 -1
- package/dist/front-component/index.cjs.map +1 -1
- package/dist/front-component/index.mjs.map +1 -1
- package/dist/{get-function-input-schema-BZ7_XyUh-BXB2AcBE.js → get-function-input-schema-BZ7_XyUh-DT3stfoz.js} +1 -1
- package/dist/{get-function-input-schema-BZ7_XyUh-PnCntsct.mjs → get-function-input-schema-BZ7_XyUh-OrMskPPC.mjs} +1 -1
- package/dist/logic-function/index.d.ts +4 -0
- package/dist/operations.cjs +1 -1
- package/dist/operations.mjs +2 -2
- package/dist/{uninstall-BiLmSWhb.js → uninstall-BIllVz44.js} +53 -53
- package/dist/{uninstall-DAf2XiS3.mjs → uninstall-XLw7db6v.mjs} +3162 -3027
- package/package.json +2 -2
package/dist/define/index.d.ts
CHANGED
|
@@ -157,6 +157,7 @@ declare enum ConnectedAccountProvider {
|
|
|
157
157
|
IMAP_SMTP_CALDAV = "imap_smtp_caldav",
|
|
158
158
|
OIDC = "oidc",
|
|
159
159
|
SAML = "saml",
|
|
160
|
+
EMAIL_GROUP = "email_group",
|
|
160
161
|
APP = "app"
|
|
161
162
|
}
|
|
162
163
|
|
|
@@ -758,6 +759,8 @@ type InputJsonSchema = {
|
|
|
758
759
|
additionalProperties?: boolean | InputJsonSchema;
|
|
759
760
|
minimum?: number;
|
|
760
761
|
maximum?: number;
|
|
762
|
+
multiline?: boolean;
|
|
763
|
+
label?: string;
|
|
761
764
|
};
|
|
762
765
|
|
|
763
766
|
type ToolTriggerSettings = {
|
|
@@ -773,6 +776,8 @@ type InputSchemaProperty = {
|
|
|
773
776
|
enum?: string[];
|
|
774
777
|
items?: InputSchemaProperty;
|
|
775
778
|
properties?: Properties$1;
|
|
779
|
+
multiline?: boolean;
|
|
780
|
+
label?: string;
|
|
776
781
|
};
|
|
777
782
|
type Properties$1 = {
|
|
778
783
|
[name: string]: InputSchemaProperty;
|
|
@@ -995,7 +1000,12 @@ type ViewManifest = SyncableEntityOptions$1 & {
|
|
|
995
1000
|
sorts?: ViewSortManifest[];
|
|
996
1001
|
};
|
|
997
1002
|
|
|
998
|
-
type ApplicationConfig = Omit<ApplicationManifest, 'packageJsonChecksum' | 'yarnLockChecksum' | 'postInstallLogicFunction' | 'preInstallLogicFunction'
|
|
1003
|
+
type ApplicationConfig = Omit<ApplicationManifest, 'packageJsonChecksum' | 'yarnLockChecksum' | 'postInstallLogicFunction' | 'preInstallLogicFunction' | 'defaultRoleUniversalIdentifier'> & {
|
|
1004
|
+
/**
|
|
1005
|
+
* @deprecated Use `defineApplicationRole()` in your role file instead.
|
|
1006
|
+
*/
|
|
1007
|
+
defaultRoleUniversalIdentifier?: string;
|
|
1008
|
+
};
|
|
999
1009
|
|
|
1000
1010
|
type CommandMenuItemConfig = Omit<CommandMenuItemManifest, 'conditionalAvailabilityExpression'> & {
|
|
1001
1011
|
conditionalAvailabilityExpression?: boolean | string;
|
|
@@ -1048,6 +1058,7 @@ type ValidationResult<T> = {
|
|
|
1048
1058
|
success: boolean;
|
|
1049
1059
|
config: T;
|
|
1050
1060
|
errors: string[];
|
|
1061
|
+
warnings?: string[];
|
|
1051
1062
|
};
|
|
1052
1063
|
type DefinableEntity = ApplicationConfig | ObjectConfig | FieldManifest | FrontComponentConfig | LogicFunctionConfig | PostInstallLogicFunctionConfig | PreInstallLogicFunctionConfig | AgentManifest | ConnectionProviderManifest | RoleConfig | SkillManifest | ViewConfig | NavigationMenuItemManifest | PageLayoutConfig | PageLayoutTabConfig | CommandMenuItemConfig;
|
|
1053
1064
|
type DefineEntity<T extends DefinableEntity = DefinableEntity> = (config: T) => ValidationResult<T>;
|
|
@@ -1060,9 +1071,10 @@ type SyncableEntityOptions = {
|
|
|
1060
1071
|
universalIdentifier: string;
|
|
1061
1072
|
};
|
|
1062
1073
|
|
|
1063
|
-
declare const createValidationResult: <T>({ config, errors, }: {
|
|
1074
|
+
declare const createValidationResult: <T>({ config, errors, warnings, }: {
|
|
1064
1075
|
config: T;
|
|
1065
1076
|
errors: string[];
|
|
1077
|
+
warnings?: string[];
|
|
1066
1078
|
}) => ValidationResult<T>;
|
|
1067
1079
|
|
|
1068
1080
|
declare const defineField: DefineEntity<FieldManifest>;
|
|
@@ -4605,6 +4617,8 @@ declare const definePageLayout: DefineEntity<PageLayoutConfig>;
|
|
|
4605
4617
|
|
|
4606
4618
|
declare const definePageLayoutTab: DefineEntity<PageLayoutTabConfig>;
|
|
4607
4619
|
|
|
4620
|
+
declare const defineApplicationRole: DefineEntity<RoleConfig>;
|
|
4621
|
+
|
|
4608
4622
|
declare const defineRole: DefineEntity<RoleConfig>;
|
|
4609
4623
|
|
|
4610
4624
|
declare const defineSkill: DefineEntity<SkillManifest>;
|
|
@@ -4613,5 +4627,5 @@ declare const defineView: DefineEntity<ViewConfig>;
|
|
|
4613
4627
|
|
|
4614
4628
|
declare const getPublicAssetUrl: (path: string) => string;
|
|
4615
4629
|
|
|
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 };
|
|
4630
|
+
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, defineApplicationRole, defineCommandMenuItem, defineConnectionProvider, defineField, defineFrontComponent, defineLogicFunction, defineNavigationMenuItem, defineObject, definePageLayout, definePageLayoutTab, definePostInstallLogicFunction, definePreInstallLogicFunction, defineRole, defineSkill, defineView, generateDefaultFieldUniversalIdentifier, getPublicAssetUrl, validateFields };
|
|
4617
4631
|
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 };
|
package/dist/define/index.mjs
CHANGED
|
@@ -3,19 +3,24 @@ import ne, { z as x } from "zod";
|
|
|
3
3
|
import { isNonEmptyString as Xe, isUndefined as bu, isNull as yu, isNonEmptyArray as Ea, isString as pu, isObject as wu } from "@sniptt/guards";
|
|
4
4
|
const _ = ({
|
|
5
5
|
config: e,
|
|
6
|
-
errors: a = []
|
|
6
|
+
errors: a = [],
|
|
7
|
+
warnings: o = []
|
|
7
8
|
}) => ({
|
|
8
9
|
success: a.length === 0,
|
|
9
10
|
config: e,
|
|
10
|
-
errors: a
|
|
11
|
-
|
|
11
|
+
errors: a,
|
|
12
|
+
warnings: o
|
|
13
|
+
}), es = (e) => {
|
|
12
14
|
const a = [];
|
|
13
15
|
return e.universalIdentifier || a.push("Agent must have a universalIdentifier"), e.name || a.push("Agent must have a name"), e.label || a.push("Agent must have a label"), e.prompt || a.push("Agent must have a prompt"), _({ config: e, errors: a });
|
|
14
|
-
},
|
|
15
|
-
const a = [];
|
|
16
|
-
return e.universalIdentifier || a.push("Application must have a universalIdentifier"),
|
|
16
|
+
}, as = (e) => {
|
|
17
|
+
const a = [], o = [];
|
|
18
|
+
return e.universalIdentifier || a.push("Application must have a universalIdentifier"), (!e.displayName || e.displayName.length === 0) && a.push("Application must have a non empty display name"), e.defaultRoleUniversalIdentifier && o.push(
|
|
19
|
+
"`defaultRoleUniversalIdentifier` on defineApplication() is deprecated. Use defineApplicationRole() in your role file instead."
|
|
20
|
+
), _({
|
|
17
21
|
config: e,
|
|
18
|
-
errors: a
|
|
22
|
+
errors: a,
|
|
23
|
+
warnings: o
|
|
19
24
|
});
|
|
20
25
|
};
|
|
21
26
|
var L = /* @__PURE__ */ ((e) => (e.ACTOR = "ACTOR", e.ADDRESS = "ADDRESS", e.ARRAY = "ARRAY", e.BOOLEAN = "BOOLEAN", e.CURRENCY = "CURRENCY", e.DATE = "DATE", e.DATE_TIME = "DATE_TIME", e.EMAILS = "EMAILS", e.FILES = "FILES", e.FULL_NAME = "FULL_NAME", e.LINKS = "LINKS", e.MORPH_RELATION = "MORPH_RELATION", e.MULTI_SELECT = "MULTI_SELECT", e.NUMBER = "NUMBER", e.NUMERIC = "NUMERIC", e.PHONES = "PHONES", e.POSITION = "POSITION", e.RATING = "RATING", e.RAW_JSON = "RAW_JSON", e.RELATION = "RELATION", e.RICH_TEXT = "RICH_TEXT", e.SELECT = "SELECT", e.TEXT = "TEXT", e.TS_VECTOR = "TS_VECTOR", e.UUID = "UUID", e))(L || {}), Ma = /* @__PURE__ */ ((e) => (e.EMAIL = "EMAIL", e.CALENDAR = "CALENDAR", e.WORKFLOW = "WORKFLOW", e.AGENT = "AGENT", e.API = "API", e.IMPORT = "IMPORT", e.MANUAL = "MANUAL", e.SYSTEM = "SYSTEM", e.WEBHOOK = "WEBHOOK", e.APPLICATION = "APPLICATION", e))(Ma || {});
|
|
@@ -247,7 +252,7 @@ const rn = (e) => {
|
|
|
247
252
|
`Field "${o.label}" of type ${o.type} cannot be unique`
|
|
248
253
|
);
|
|
249
254
|
return a;
|
|
250
|
-
},
|
|
255
|
+
}, is = (e) => {
|
|
251
256
|
const a = [];
|
|
252
257
|
e.objectUniversalIdentifier || a.push("Field must have an objectUniversalIdentifier");
|
|
253
258
|
const o = rn([e]);
|
|
@@ -255,36 +260,36 @@ const rn = (e) => {
|
|
|
255
260
|
config: e,
|
|
256
261
|
errors: a
|
|
257
262
|
});
|
|
258
|
-
},
|
|
263
|
+
}, ns = (e) => {
|
|
259
264
|
const a = [];
|
|
260
265
|
return e.universalIdentifier || a.push("CommandMenuItem must have a universalIdentifier"), e.label || a.push("CommandMenuItem must have a label"), e.frontComponentUniversalIdentifier || a.push(
|
|
261
266
|
"CommandMenuItem must have a frontComponentUniversalIdentifier (the universalIdentifier of the front component this command opens)"
|
|
262
267
|
), _({ config: e, errors: a });
|
|
263
|
-
},
|
|
268
|
+
}, us = (e) => {
|
|
264
269
|
const a = [];
|
|
265
270
|
return e.universalIdentifier || a.push("Front component must have a universalIdentifier"), e.component || a.push("Front component must have a component"), typeof e.component != "function" && a.push("Front component component must be a React component"), _({
|
|
266
271
|
config: e,
|
|
267
272
|
errors: a
|
|
268
273
|
});
|
|
269
|
-
},
|
|
274
|
+
}, os = (e) => {
|
|
270
275
|
const a = [];
|
|
271
276
|
return e.universalIdentifier || a.push("Logic function must have a universalIdentifier"), e.handler || a.push("Logic function must have a handler"), typeof e.handler != "function" && a.push("Logic function handler must be a function"), e.httpRouteTriggerSettings && (e.httpRouteTriggerSettings.path || a.push("Route trigger must have a path"), e.httpRouteTriggerSettings.httpMethod || a.push("Route trigger must have an httpMethod")), e.cronTriggerSettings && (e.cronTriggerSettings.pattern || a.push("Cron trigger must have a pattern")), e.databaseEventTriggerSettings && (e.databaseEventTriggerSettings.eventName || a.push("Database event trigger must have an eventName")), _({
|
|
272
277
|
config: e,
|
|
273
278
|
errors: a
|
|
274
279
|
});
|
|
275
|
-
},
|
|
280
|
+
}, ts = (e) => {
|
|
276
281
|
const a = [];
|
|
277
282
|
return e.universalIdentifier || a.push("Post install logic function must have a universalIdentifier"), e.handler || a.push("Post install logic function must have a handler"), typeof e.handler != "function" && a.push("Post install logic function handler must be a function"), _({
|
|
278
283
|
config: e,
|
|
279
284
|
errors: a
|
|
280
285
|
});
|
|
281
|
-
},
|
|
286
|
+
}, ss = (e) => {
|
|
282
287
|
const a = [];
|
|
283
288
|
return e.universalIdentifier || a.push("Pre install logic function must have a universalIdentifier"), e.handler || a.push("Pre install logic function must have a handler"), typeof e.handler != "function" && a.push("Pre install logic function handler must be a function"), _({
|
|
284
289
|
config: e,
|
|
285
290
|
errors: a
|
|
286
291
|
});
|
|
287
|
-
}, ai = /^[a-z][a-z0-9-]*$/, xu = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i, ii = ["oauth"],
|
|
292
|
+
}, ai = /^[a-z][a-z0-9-]*$/, xu = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i, ii = ["oauth"], rs = (e) => {
|
|
288
293
|
const a = [];
|
|
289
294
|
if (e.universalIdentifier ? xu.test(e.universalIdentifier) || a.push(
|
|
290
295
|
`Connection provider universalIdentifier "${e.universalIdentifier}" must be a UUID. Generate one with \`uuidgen\` or any UUID v4 tool.`
|
|
@@ -305,7 +310,7 @@ const rn = (e) => {
|
|
|
305
310
|
);
|
|
306
311
|
}
|
|
307
312
|
return _({ config: e, errors: a });
|
|
308
|
-
},
|
|
313
|
+
}, ds = (e) => {
|
|
309
314
|
const a = [];
|
|
310
315
|
return e.universalIdentifier || a.push("NavigationMenuItem must have a universalIdentifier"), typeof e.position != "number" && a.push("NavigationMenuItem must have a position"), _({ config: e, errors: a });
|
|
311
316
|
}, Ye = (e) => !bu(e) && !yu(e);
|
|
@@ -5986,7 +5991,7 @@ for (const e of kn()) {
|
|
|
5986
5991
|
o ? o.push(e) : un.set(a, [e]);
|
|
5987
5992
|
}
|
|
5988
5993
|
new Set(kn());
|
|
5989
|
-
const
|
|
5994
|
+
const ls = (e) => {
|
|
5990
5995
|
const a = [];
|
|
5991
5996
|
e.universalIdentifier || a.push("Object must have a universalIdentifier"), e.nameSingular || a.push("Object must have a nameSingular"), e.namePlural || a.push("Object must have a namePlural"), e.labelSingular || a.push("Object must have a labelSingular"), e.labelPlural || a.push("Object must have a labelPlural");
|
|
5992
5997
|
const o = rn(e.fields);
|
|
@@ -5998,7 +6003,7 @@ const ds = (e) => {
|
|
|
5998
6003
|
config: e,
|
|
5999
6004
|
errors: a
|
|
6000
6005
|
});
|
|
6001
|
-
}, Rt = "142046f0-4d80-48b5-ad56-26ad410e895c",
|
|
6006
|
+
}, Rt = "142046f0-4d80-48b5-ad56-26ad410e895c", gs = ({
|
|
6002
6007
|
objectUniversalIdentifier: e,
|
|
6003
6008
|
fieldName: a
|
|
6004
6009
|
}) => {
|
|
@@ -6188,7 +6193,7 @@ const Se = new class extends Tn {
|
|
|
6188
6193
|
}
|
|
6189
6194
|
}(), sn = Se.slugify.bind(Se);
|
|
6190
6195
|
sn.config = Se.config.bind(Se), sn.setData = Se.setData.bind(Se);
|
|
6191
|
-
const
|
|
6196
|
+
const hs = {
|
|
6192
6197
|
attachment: {
|
|
6193
6198
|
universalIdentifier: "20202020-bd3d-4c60-8dca-571c71d4447a",
|
|
6194
6199
|
fields: {
|
|
@@ -9409,7 +9414,7 @@ const gs = {
|
|
|
9409
9414
|
}
|
|
9410
9415
|
}
|
|
9411
9416
|
}
|
|
9412
|
-
},
|
|
9417
|
+
}, cs = (e) => {
|
|
9413
9418
|
const a = [];
|
|
9414
9419
|
if (e.universalIdentifier || a.push("PageLayout must have a universalIdentifier"), e.name || a.push("PageLayout must have a name"), e.tabs) {
|
|
9415
9420
|
for (const o of e.tabs)
|
|
@@ -9418,7 +9423,7 @@ const gs = {
|
|
|
9418
9423
|
t.universalIdentifier || a.push("PageLayoutWidget must have a universalIdentifier"), t.title || a.push("PageLayoutWidget must have a title"), t.type || a.push("PageLayoutWidget must have a type");
|
|
9419
9424
|
}
|
|
9420
9425
|
return _({ config: e, errors: a });
|
|
9421
|
-
},
|
|
9426
|
+
}, fs = (e) => {
|
|
9422
9427
|
const a = [];
|
|
9423
9428
|
if (e.universalIdentifier || a.push("PageLayoutTab must have a universalIdentifier"), e.title || a.push("PageLayoutTab must have a title"), e.pageLayoutUniversalIdentifier || a.push(
|
|
9424
9429
|
"PageLayoutTab must have a pageLayoutUniversalIdentifier when defined standalone (use the parent page layout universalIdentifier)"
|
|
@@ -9426,7 +9431,7 @@ const gs = {
|
|
|
9426
9431
|
for (const o of e.widgets)
|
|
9427
9432
|
o.universalIdentifier || a.push("PageLayoutWidget must have a universalIdentifier"), o.title || a.push("PageLayoutWidget must have a title"), o.type || a.push("PageLayoutWidget must have a type");
|
|
9428
9433
|
return _({ config: e, errors: a });
|
|
9429
|
-
},
|
|
9434
|
+
}, Qt = (e) => {
|
|
9430
9435
|
const a = [];
|
|
9431
9436
|
if (e.universalIdentifier || a.push("Role must have a universalIdentifier"), e.label || a.push("Role must have a label"), e.objectPermissions)
|
|
9432
9437
|
for (const o of e.objectPermissions)
|
|
@@ -9435,13 +9440,13 @@ const gs = {
|
|
|
9435
9440
|
for (const o of e.fieldPermissions)
|
|
9436
9441
|
o.objectUniversalIdentifier || a.push("Field permission must have an objectUniversalIdentifier"), o.fieldUniversalIdentifier || a.push("Field permission must have a fieldUniversalIdentifier");
|
|
9437
9442
|
return _({ config: e, errors: a });
|
|
9438
|
-
};
|
|
9443
|
+
}, bs = (e) => Qt(e);
|
|
9439
9444
|
me.DAY, me.WEEK, me.MONTH, me.QUARTER, me.YEAR;
|
|
9440
|
-
var
|
|
9441
|
-
const
|
|
9445
|
+
var Ot = /* @__PURE__ */ ((e) => (e.API_KEYS_AND_WEBHOOKS = "API_KEYS_AND_WEBHOOKS", e.WORKSPACE = "WORKSPACE", e.WORKSPACE_MEMBERS = "WORKSPACE_MEMBERS", e.ROLES = "ROLES", e.DATA_MODEL = "DATA_MODEL", e.SECURITY = "SECURITY", e.WORKFLOWS = "WORKFLOWS", e.IMPERSONATE = "IMPERSONATE", e.SSO_BYPASS = "SSO_BYPASS", e.APPLICATIONS = "APPLICATIONS", e.MARKETPLACE_APPS = "MARKETPLACE_APPS", e.LAYOUTS = "LAYOUTS", e.BILLING = "BILLING", e.AI_SETTINGS = "AI_SETTINGS", e.AI = "AI", e.VIEWS = "VIEWS", e.UPLOAD_FILE = "UPLOAD_FILE", e.DOWNLOAD_FILE = "DOWNLOAD_FILE", e.SEND_EMAIL_TOOL = "SEND_EMAIL_TOOL", e.HTTP_REQUEST_TOOL = "HTTP_REQUEST_TOOL", e.CODE_INTERPRETER_TOOL = "CODE_INTERPRETER_TOOL", e.IMPORT_CSV = "IMPORT_CSV", e.EXPORT_CSV = "EXPORT_CSV", e.CONNECTED_ACCOUNTS = "CONNECTED_ACCOUNTS", e.PROFILE_INFORMATION = "PROFILE_INFORMATION", e))(Ot || {});
|
|
9446
|
+
const ys = (e) => {
|
|
9442
9447
|
const a = [];
|
|
9443
9448
|
return e.universalIdentifier || a.push("Skill must have a universalIdentifier"), e.name || a.push("Skill must have a name"), e.label || a.push("Skill must have a label"), e.content || a.push("Skill must have content"), _({ config: e, errors: a });
|
|
9444
|
-
},
|
|
9449
|
+
}, ps = (e) => {
|
|
9445
9450
|
const a = [];
|
|
9446
9451
|
if (e.universalIdentifier || a.push("View must have a universalIdentifier"), e.name || a.push("View must have a name"), e.objectUniversalIdentifier || a.push("View must have an objectUniversalIdentifier"), e.fields)
|
|
9447
9452
|
for (const o of e.fields)
|
|
@@ -9464,19 +9469,19 @@ const bs = (e) => {
|
|
|
9464
9469
|
`ViewSort direction must be '${Ae.ASC}' or '${Ae.DESC}'`
|
|
9465
9470
|
);
|
|
9466
9471
|
return _({ config: e, errors: a });
|
|
9467
|
-
},
|
|
9472
|
+
}, Wt = "TWENTY_API_URL", Kt = "TWENTY_APP_ACCESS_TOKEN", Ut = (e) => {
|
|
9468
9473
|
const a = JSON.parse(atob(e.split(".")[1]));
|
|
9469
9474
|
return {
|
|
9470
9475
|
workspaceId: a.workspaceId,
|
|
9471
9476
|
applicationId: a.applicationId
|
|
9472
9477
|
};
|
|
9473
|
-
},
|
|
9474
|
-
const a = process.env[
|
|
9478
|
+
}, ws = (e) => {
|
|
9479
|
+
const a = process.env[Wt], o = process.env[Kt];
|
|
9475
9480
|
if (!a || !o)
|
|
9476
9481
|
throw new Error(
|
|
9477
9482
|
"getPublicAssetUrl can only be called from within a logic function or front component"
|
|
9478
9483
|
);
|
|
9479
|
-
const { workspaceId: t, applicationId: h } =
|
|
9484
|
+
const { workspaceId: t, applicationId: h } = Ut(o), l = e.startsWith("/") ? e.slice(1) : e, c = (l.startsWith("public/") ? l : `public/${l}`).split("/").map(encodeURIComponent).join("/");
|
|
9480
9485
|
return `${a}/public-assets/${t}/${h}/${c}`;
|
|
9481
9486
|
};
|
|
9482
9487
|
export {
|
|
@@ -9490,10 +9495,10 @@ export {
|
|
|
9490
9495
|
me as ObjectRecordGroupByDateGranularity,
|
|
9491
9496
|
Pu as OnDeleteAction,
|
|
9492
9497
|
Mu as PageLayoutTabLayoutMode,
|
|
9493
|
-
|
|
9498
|
+
Ot as PermissionFlag,
|
|
9494
9499
|
Au as RelationType,
|
|
9495
|
-
|
|
9496
|
-
|
|
9500
|
+
hs as STANDARD_OBJECT,
|
|
9501
|
+
hs as STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS,
|
|
9497
9502
|
Xu as ViewCalendarLayout,
|
|
9498
9503
|
Nu as ViewFilterGroupLogicalOperator,
|
|
9499
9504
|
D as ViewFilterOperand,
|
|
@@ -9503,24 +9508,25 @@ export {
|
|
|
9503
9508
|
Bu as ViewType,
|
|
9504
9509
|
Fu as ViewVisibility,
|
|
9505
9510
|
_ as createValidationResult,
|
|
9506
|
-
|
|
9507
|
-
|
|
9508
|
-
|
|
9509
|
-
|
|
9510
|
-
|
|
9511
|
-
|
|
9512
|
-
us as
|
|
9513
|
-
|
|
9514
|
-
ds as
|
|
9515
|
-
|
|
9516
|
-
cs as
|
|
9517
|
-
|
|
9518
|
-
ts as
|
|
9519
|
-
|
|
9520
|
-
|
|
9521
|
-
ys as
|
|
9522
|
-
|
|
9523
|
-
|
|
9511
|
+
es as defineAgent,
|
|
9512
|
+
as as defineApplication,
|
|
9513
|
+
bs as defineApplicationRole,
|
|
9514
|
+
ns as defineCommandMenuItem,
|
|
9515
|
+
rs as defineConnectionProvider,
|
|
9516
|
+
is as defineField,
|
|
9517
|
+
us as defineFrontComponent,
|
|
9518
|
+
os as defineLogicFunction,
|
|
9519
|
+
ds as defineNavigationMenuItem,
|
|
9520
|
+
ls as defineObject,
|
|
9521
|
+
cs as definePageLayout,
|
|
9522
|
+
fs as definePageLayoutTab,
|
|
9523
|
+
ts as definePostInstallLogicFunction,
|
|
9524
|
+
ss as definePreInstallLogicFunction,
|
|
9525
|
+
Qt as defineRole,
|
|
9526
|
+
ys as defineSkill,
|
|
9527
|
+
ps as defineView,
|
|
9528
|
+
gs as generateDefaultFieldUniversalIdentifier,
|
|
9529
|
+
ws as getPublicAssetUrl,
|
|
9524
9530
|
rn as validateFields
|
|
9525
9531
|
};
|
|
9526
9532
|
//# sourceMappingURL=index.mjs.map
|