@stndrds/schema 1.0.0-alpha.293 → 1.0.0-alpha.294
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/{chunk-APRL56F4.mjs → chunk-2WWGHULM.mjs} +1 -1
- package/dist/{chunk-Y3UPKP2B.js → chunk-4KMUATDG.js} +5 -1
- package/dist/{chunk-Z5OPSBMQ.mjs → chunk-CLZORRMS.mjs} +5 -1
- package/dist/{chunk-P4VCAPJT.js → chunk-DVXGSTWJ.js} +3 -3
- package/dist/{chunk-C32UUQ6D.js → chunk-HURC6CW3.js} +4 -4
- package/dist/{chunk-ULM2BA5A.mjs → chunk-JZNR4HKQ.mjs} +2 -2
- package/dist/{chunk-5N7OSHVX.js → chunk-KAWYU7TE.js} +4 -4
- package/dist/{chunk-GRUSTQK3.mjs → chunk-QT35SI3K.mjs} +1 -1
- package/dist/{chunk-VGGGLTYJ.mjs → chunk-R2DAEDRF.mjs} +1 -1
- package/dist/{chunk-OASIPLEB.js → chunk-T5PM73EF.js} +39 -39
- package/dist/exceptions.d.mts +4 -0
- package/dist/exceptions.d.ts +4 -0
- package/dist/exceptions.js +39 -39
- package/dist/exceptions.mjs +1 -1
- package/dist/index.d.mts +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +296 -295
- package/dist/index.mjs +11 -11
- package/dist/utils.js +8 -8
- package/dist/utils.mjs +2 -2
- package/dist/validation/all.js +29 -29
- package/dist/validation/all.mjs +4 -4
- package/dist/validation/config/index.js +12 -12
- package/dist/validation/config/index.mjs +2 -2
- package/dist/validation/object/index.js +14 -14
- package/dist/validation/object/index.mjs +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
var chunkDVXGSTWJ_js = require('./chunk-DVXGSTWJ.js');
|
|
4
|
+
var chunkT5PM73EF_js = require('./chunk-T5PM73EF.js');
|
|
5
|
+
var chunkHURC6CW3_js = require('./chunk-HURC6CW3.js');
|
|
6
6
|
require('./chunk-EEH4XQ7W.js');
|
|
7
7
|
require('./chunk-EW5XR2X3.js');
|
|
8
8
|
require('./chunk-QWKLQRBX.js');
|
|
9
9
|
require('./chunk-KNGWHQLR.js');
|
|
10
10
|
require('./chunk-HTSTPTNZ.js');
|
|
11
11
|
require('./chunk-V2UA2D4E.js');
|
|
12
|
-
var
|
|
12
|
+
var chunkKAWYU7TE_js = require('./chunk-KAWYU7TE.js');
|
|
13
13
|
var chunk5WATIVCA_js = require('./chunk-5WATIVCA.js');
|
|
14
14
|
var chunkSI34M4IC_js = require('./chunk-SI34M4IC.js');
|
|
15
15
|
var chunkYIP5FJ5H_js = require('./chunk-YIP5FJ5H.js');
|
|
16
16
|
var chunkZPFOKBIN_js = require('./chunk-ZPFOKBIN.js');
|
|
17
|
-
var
|
|
17
|
+
var chunk4KMUATDG_js = require('./chunk-4KMUATDG.js');
|
|
18
18
|
require('./chunk-ACKMC6FL.js');
|
|
19
19
|
require('./chunk-E6JUYGJX.js');
|
|
20
20
|
var chunkQ4SZAMJT_js = require('./chunk-Q4SZAMJT.js');
|
|
@@ -93,7 +93,7 @@ function inferInverseCardinality(cardinality) {
|
|
|
93
93
|
return cardinality === "one" ? "many" : "many";
|
|
94
94
|
}
|
|
95
95
|
function isAttributeSortable2(attr) {
|
|
96
|
-
return
|
|
96
|
+
return chunkT5PM73EF_js.isAttributeSortable(attr);
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
// src/types/audit.ts
|
|
@@ -160,14 +160,14 @@ function sessionStateToLegacyStatus(state) {
|
|
|
160
160
|
return "idle";
|
|
161
161
|
case "parked":
|
|
162
162
|
if (state.parkedOn === void 0) {
|
|
163
|
-
throw new
|
|
163
|
+
throw new chunk4KMUATDG_js.SchemaError("parked state without parkedOn", chunk4KMUATDG_js.SchemaErrorCode.INVARIANT_VIOLATION);
|
|
164
164
|
}
|
|
165
165
|
return state.parkedOn === "agents" ? "waiting_agents" : "waiting_human";
|
|
166
166
|
case "terminal":
|
|
167
167
|
if (state.outcome === void 0) {
|
|
168
|
-
throw new
|
|
168
|
+
throw new chunk4KMUATDG_js.SchemaError(
|
|
169
169
|
"terminal state without outcome",
|
|
170
|
-
|
|
170
|
+
chunk4KMUATDG_js.SchemaErrorCode.INVARIANT_VIOLATION
|
|
171
171
|
);
|
|
172
172
|
}
|
|
173
173
|
return state.outcome;
|
|
@@ -271,7 +271,7 @@ var NATIVE_AGENT_UI_PART_IDS_METADATA_KEY = "__stndrdsNativeUiPartIds";
|
|
|
271
271
|
var NATIVE_AGENT_UI_PART_IDS_METADATA_SCHEMA_VERSION = 1;
|
|
272
272
|
var INVALID_NATIVE_PART_IDS = "Native agent UI part IDs metadata is invalid";
|
|
273
273
|
function invalidNativePartIds() {
|
|
274
|
-
throw new
|
|
274
|
+
throw new chunk4KMUATDG_js.ValidationError(INVALID_NATIVE_PART_IDS, []);
|
|
275
275
|
}
|
|
276
276
|
function isPlainRecord(value) {
|
|
277
277
|
if (value === null || typeof value !== "object" || Array.isArray(value)) return false;
|
|
@@ -499,7 +499,7 @@ function parseCountMode(value) {
|
|
|
499
499
|
if (typeof value === "string" && COUNT_MODES.includes(value)) {
|
|
500
500
|
return value;
|
|
501
501
|
}
|
|
502
|
-
throw new
|
|
502
|
+
throw new chunk4KMUATDG_js.ValidationError(
|
|
503
503
|
`countMode must be one of: ${COUNT_MODES.join(", ")} (received: ${String(value)})`,
|
|
504
504
|
[]
|
|
505
505
|
);
|
|
@@ -617,7 +617,7 @@ function isDateRangeValue(value) {
|
|
|
617
617
|
return typeof value === "object" && value !== null && typeof value.start === "string";
|
|
618
618
|
}
|
|
619
619
|
function normalizeDateValue(value, attr) {
|
|
620
|
-
if (
|
|
620
|
+
if (chunkHURC6CW3_js.isNullishOrEmptyString(value)) return null;
|
|
621
621
|
if (isDateRangeValue(value)) {
|
|
622
622
|
return attr.endDate ? { start: value.start, end: value.end ?? null } : value.start;
|
|
623
623
|
}
|
|
@@ -755,7 +755,7 @@ function formatMultiselect(value, attribute) {
|
|
|
755
755
|
return value.join(", ");
|
|
756
756
|
}
|
|
757
757
|
function formatAttributeValue(value, attribute) {
|
|
758
|
-
if (
|
|
758
|
+
if (chunkHURC6CW3_js.isNullishOrEmptyString(value)) {
|
|
759
759
|
return EMPTY_VALUE_PLACEHOLDER;
|
|
760
760
|
}
|
|
761
761
|
switch (attribute.type) {
|
|
@@ -908,7 +908,7 @@ function renderLabelExpression(template, values, fallback = DEFAULT_LABEL_FALLBA
|
|
|
908
908
|
break;
|
|
909
909
|
}
|
|
910
910
|
}
|
|
911
|
-
const isEmpty2 =
|
|
911
|
+
const isEmpty2 = chunkHURC6CW3_js.isNullishOrEmptyString(value);
|
|
912
912
|
if (isEmpty2 && pipes.length === 0) return "";
|
|
913
913
|
for (const pipeExpr of pipes) {
|
|
914
914
|
const { name: pipeName, args } = parsePipeExpression(pipeExpr);
|
|
@@ -968,7 +968,7 @@ function getEditableLabelAttribute(labelExpression, attributes) {
|
|
|
968
968
|
if (name === null) return null;
|
|
969
969
|
const attribute = attributes.find((candidate) => candidate.name === name);
|
|
970
970
|
if (!attribute || attribute.type !== "text") return null;
|
|
971
|
-
if (
|
|
971
|
+
if (chunkT5PM73EF_js.getAttributeCapabilities(attribute).authoring.readOnly) return null;
|
|
972
972
|
return attribute;
|
|
973
973
|
}
|
|
974
974
|
|
|
@@ -1004,7 +1004,7 @@ function qualifiedPropertyDefs(attribute) {
|
|
|
1004
1004
|
return void 0;
|
|
1005
1005
|
}
|
|
1006
1006
|
function extractValueRefs(value) {
|
|
1007
|
-
if (
|
|
1007
|
+
if (chunkHURC6CW3_js.isNullishOrEmptyString(value)) return [];
|
|
1008
1008
|
if (typeof value === "string") return [{ id: value }];
|
|
1009
1009
|
if (Array.isArray(value)) return value.flatMap((item) => extractValueRefs(item));
|
|
1010
1010
|
if (typeof value === "object" && "id" in value) {
|
|
@@ -1208,24 +1208,24 @@ function validateObjectName(name) {
|
|
|
1208
1208
|
OBJECT_NAME_SCHEMA.parse(name);
|
|
1209
1209
|
} catch (error) {
|
|
1210
1210
|
if (error instanceof z2__default.default.ZodError) {
|
|
1211
|
-
throw new
|
|
1211
|
+
throw new chunk4KMUATDG_js.SchemaError(error.issues[0].message, chunk4KMUATDG_js.SchemaErrorCode.INVALID_OBJECT_NAME);
|
|
1212
1212
|
}
|
|
1213
1213
|
throw error;
|
|
1214
1214
|
}
|
|
1215
1215
|
}
|
|
1216
1216
|
function validateViewName(name) {
|
|
1217
1217
|
if (!name || name.length === 0) {
|
|
1218
|
-
throw new
|
|
1218
|
+
throw new chunk4KMUATDG_js.ValidationError("View name cannot be empty", [
|
|
1219
1219
|
{ path: ["name"], message: "View name cannot be empty" }
|
|
1220
1220
|
]);
|
|
1221
1221
|
}
|
|
1222
1222
|
if (name.length > MAX_NAME_LENGTH) {
|
|
1223
|
-
throw new
|
|
1223
|
+
throw new chunk4KMUATDG_js.ValidationError("View name is too long", [
|
|
1224
1224
|
{ path: ["name"], message: `View name is too long (max ${MAX_NAME_LENGTH} characters)` }
|
|
1225
1225
|
]);
|
|
1226
1226
|
}
|
|
1227
1227
|
if (!VIEW_NAME_REGEX.test(name)) {
|
|
1228
|
-
throw new
|
|
1228
|
+
throw new chunk4KMUATDG_js.ValidationError("Invalid view name format", [
|
|
1229
1229
|
{
|
|
1230
1230
|
path: ["name"],
|
|
1231
1231
|
message: "View name must be in kebab-case (e.g., 'detail', 'list-view')"
|
|
@@ -1246,7 +1246,7 @@ function assertUniqueBy(items, getKey, buildError) {
|
|
|
1246
1246
|
var ATTRIBUTE_NAME_SCHEMA = z2__default.default.string().min(1, "Attribute name cannot be empty").max(MAX_NAME_LENGTH, `Attribute name is too long (max ${MAX_NAME_LENGTH} characters)`).regex(ATTRIBUTE_NAME_REGEX, {
|
|
1247
1247
|
message: "Invalid attribute name format.\nName must be a valid variable identifier:\n \u2705 Valid: 'firstName', 'first_name', 'FirstName', 'FIRST_NAME'\n \u274C Invalid: 'first-name', 'first name', '123name', 'first.name'"
|
|
1248
1248
|
}).refine(
|
|
1249
|
-
(name) => !
|
|
1249
|
+
(name) => !chunkT5PM73EF_js.RESERVED_ATTRIBUTE_NAMES.includes(name),
|
|
1250
1250
|
{ message: "This is a reserved attribute name" }
|
|
1251
1251
|
);
|
|
1252
1252
|
function validateAttributeName(name) {
|
|
@@ -1263,10 +1263,10 @@ function validateAttributeName(name) {
|
|
|
1263
1263
|
"[AttributeBuilder] Invalid attribute name format.\nName must be a valid variable identifier:\n \u2705 Valid: 'firstName', 'first_name', 'FirstName', 'FIRST_NAME'\n \u274C Invalid: 'first-name', 'first name', '123name', 'first.name'"
|
|
1264
1264
|
);
|
|
1265
1265
|
}
|
|
1266
|
-
if (
|
|
1266
|
+
if (chunkT5PM73EF_js.RESERVED_ATTRIBUTE_NAMES.includes(name)) {
|
|
1267
1267
|
throw new Error(
|
|
1268
1268
|
`[AttributeBuilder] "${name}" is a reserved name and cannot be used as an attribute name.
|
|
1269
|
-
Reserved names: ${
|
|
1269
|
+
Reserved names: ${chunkT5PM73EF_js.RESERVED_ATTRIBUTE_NAMES.join(", ")}`
|
|
1270
1270
|
);
|
|
1271
1271
|
}
|
|
1272
1272
|
}
|
|
@@ -1333,7 +1333,7 @@ var DEFAULT_AGENT_EXECUTION_CONFIG = {
|
|
|
1333
1333
|
var AgentBuilder = class {
|
|
1334
1334
|
constructor(config) {
|
|
1335
1335
|
if (!config.name || config.name.trim().length === 0) {
|
|
1336
|
-
throw new
|
|
1336
|
+
throw new chunk4KMUATDG_js.ValidationError("Agent name is required", []);
|
|
1337
1337
|
}
|
|
1338
1338
|
this.bp = { name: config.name, system: true, visibility: "workspace", triggers: [] };
|
|
1339
1339
|
}
|
|
@@ -1475,13 +1475,13 @@ var AgentBuilder = class {
|
|
|
1475
1475
|
}
|
|
1476
1476
|
build() {
|
|
1477
1477
|
if (!this.bp.systemPrompt) {
|
|
1478
|
-
throw new
|
|
1478
|
+
throw new chunk4KMUATDG_js.ValidationError(`Agent "${this.bp.name}": systemPrompt is required`, []);
|
|
1479
1479
|
}
|
|
1480
1480
|
if (!this.bp.model) {
|
|
1481
|
-
throw new
|
|
1481
|
+
throw new chunk4KMUATDG_js.ValidationError(`Agent "${this.bp.name}": model is required`, []);
|
|
1482
1482
|
}
|
|
1483
1483
|
if (this.bp.system && this.bp.visibility === "private") {
|
|
1484
|
-
throw new
|
|
1484
|
+
throw new chunk4KMUATDG_js.ValidationError(
|
|
1485
1485
|
`Agent "${this.bp.name}": system agents must use workspace visibility`,
|
|
1486
1486
|
[]
|
|
1487
1487
|
);
|
|
@@ -1489,7 +1489,7 @@ var AgentBuilder = class {
|
|
|
1489
1489
|
assertUniqueBy(
|
|
1490
1490
|
this.bp.triggers,
|
|
1491
1491
|
(t) => t.name,
|
|
1492
|
-
(name) => new
|
|
1492
|
+
(name) => new chunk4KMUATDG_js.ValidationError(`Agent "${this.bp.name}": duplicate trigger name "${name}"`, [])
|
|
1493
1493
|
);
|
|
1494
1494
|
return {
|
|
1495
1495
|
...this.bp,
|
|
@@ -1544,7 +1544,7 @@ var BaseAttributeBuilder = class {
|
|
|
1544
1544
|
* @see https://standardschema.dev/
|
|
1545
1545
|
*/
|
|
1546
1546
|
get "~standard"() {
|
|
1547
|
-
const zodSchema =
|
|
1547
|
+
const zodSchema = chunkHURC6CW3_js.createAttributeValidator(this.build());
|
|
1548
1548
|
return createStandardSchemaProps(zodSchema);
|
|
1549
1549
|
}
|
|
1550
1550
|
constructor(type, name, label) {
|
|
@@ -2301,9 +2301,9 @@ var RollupAttributeBuilder = class extends BaseAttributeBuilder {
|
|
|
2301
2301
|
if (fn === "original" && targetType !== void 0 && targetType !== "select" && targetType !== "status" && targetType !== "multiselect") {
|
|
2302
2302
|
const relation2 = this.attr.relationAttribute ?? "relation";
|
|
2303
2303
|
const target = this.attr.targetAttribute ?? "field";
|
|
2304
|
-
throw new
|
|
2304
|
+
throw new chunk4KMUATDG_js.SchemaError(
|
|
2305
2305
|
`Rollup "${this.attr.name}": .using("original") only supports a "select", "status", or "multiselect" target, but .targetType("${targetType}") was given. To surface a plain ${targetType} value from a related record, use a formula instead \u2014 e.g. formula({ name: "${this.attr.name}", label: "\u2026" }).expression("${relation2}.${target}").`,
|
|
2306
|
-
|
|
2306
|
+
chunk4KMUATDG_js.SchemaErrorCode.VALIDATION_FAILED
|
|
2307
2307
|
);
|
|
2308
2308
|
}
|
|
2309
2309
|
return super.build();
|
|
@@ -2813,7 +2813,7 @@ var ObjectBuilder = class {
|
|
|
2813
2813
|
* @see https://standardschema.dev/
|
|
2814
2814
|
*/
|
|
2815
2815
|
get "~standard"() {
|
|
2816
|
-
const zodSchema =
|
|
2816
|
+
const zodSchema = chunkHURC6CW3_js.createObjectValidator(this.build());
|
|
2817
2817
|
return createStandardSchemaProps(zodSchema);
|
|
2818
2818
|
}
|
|
2819
2819
|
/**
|
|
@@ -2941,7 +2941,7 @@ var ObjectBuilder = class {
|
|
|
2941
2941
|
assertUniqueBy(
|
|
2942
2942
|
[...this.obj.attributes, ...finalAttrs],
|
|
2943
2943
|
(attribute) => attribute.name,
|
|
2944
|
-
(name) => new
|
|
2944
|
+
(name) => new chunk4KMUATDG_js.DuplicateError(
|
|
2945
2945
|
"attribute",
|
|
2946
2946
|
name,
|
|
2947
2947
|
`Object "${this.obj.name}": duplicate attribute name "${name}"`
|
|
@@ -3070,26 +3070,26 @@ var ObjectBuilder = class {
|
|
|
3070
3070
|
throw new Error("[ObjectBuilder] Missing required field: label");
|
|
3071
3071
|
}
|
|
3072
3072
|
if (!this._labelExpression) {
|
|
3073
|
-
throw new
|
|
3073
|
+
throw new chunk4KMUATDG_js.SchemaError(
|
|
3074
3074
|
`Object "${this.obj.name}" must have a labelExpression. The labelExpression defines how records are displayed in lists and relations (e.g. "{{ name }}").`,
|
|
3075
|
-
|
|
3075
|
+
chunk4KMUATDG_js.SchemaErrorCode.VALIDATION_FAILED
|
|
3076
3076
|
);
|
|
3077
3077
|
}
|
|
3078
3078
|
const labelResult = labelExpressionSchema.safeParse(this._labelExpression);
|
|
3079
3079
|
if (!labelResult.success) {
|
|
3080
3080
|
const errorMsg = labelResult.error.issues[0]?.message ?? "Invalid labelExpression";
|
|
3081
|
-
throw new
|
|
3081
|
+
throw new chunk4KMUATDG_js.SchemaError(
|
|
3082
3082
|
`Invalid labelExpression for "${this.obj.name}": ${errorMsg}`,
|
|
3083
|
-
|
|
3083
|
+
chunk4KMUATDG_js.SchemaErrorCode.VALIDATION_FAILED
|
|
3084
3084
|
);
|
|
3085
3085
|
}
|
|
3086
3086
|
if (this._embeddingExpression !== void 0) {
|
|
3087
3087
|
const embeddingResult = labelExpressionSchema.safeParse(this._embeddingExpression);
|
|
3088
3088
|
if (!embeddingResult.success) {
|
|
3089
3089
|
const errorMsg = embeddingResult.error.issues[0]?.message ?? "Invalid embeddingExpression";
|
|
3090
|
-
throw new
|
|
3090
|
+
throw new chunk4KMUATDG_js.SchemaError(
|
|
3091
3091
|
`Invalid embeddingExpression for "${this.obj.name}": ${errorMsg}`,
|
|
3092
|
-
|
|
3092
|
+
chunk4KMUATDG_js.SchemaErrorCode.VALIDATION_FAILED
|
|
3093
3093
|
);
|
|
3094
3094
|
}
|
|
3095
3095
|
}
|
|
@@ -3131,7 +3131,7 @@ function object(config) {
|
|
|
3131
3131
|
}
|
|
3132
3132
|
function validatePresetStructure(presetId, nodes, depth) {
|
|
3133
3133
|
const fail = (message, detail) => {
|
|
3134
|
-
throw new
|
|
3134
|
+
throw new chunk4KMUATDG_js.ValidationError(message, [
|
|
3135
3135
|
{ path: ["documentLayout", "presets", presetId], message: detail }
|
|
3136
3136
|
]);
|
|
3137
3137
|
};
|
|
@@ -3899,27 +3899,27 @@ var ListViewBuilder = class {
|
|
|
3899
3899
|
}
|
|
3900
3900
|
for (const tab of this.data.tabs) {
|
|
3901
3901
|
if (tab.layout === "table" && tab.columns.length === 0) {
|
|
3902
|
-
throw new
|
|
3902
|
+
throw new chunk4KMUATDG_js.ValidationError(
|
|
3903
3903
|
`[ListViewBuilder] Tab "${tab.id}" must have at least one column`,
|
|
3904
3904
|
[]
|
|
3905
3905
|
);
|
|
3906
3906
|
}
|
|
3907
3907
|
if (tab.layout === "kanban" && !tab.groupByAttribute) {
|
|
3908
|
-
throw new
|
|
3908
|
+
throw new chunk4KMUATDG_js.ValidationError(
|
|
3909
3909
|
`[ListViewBuilder] Kanban tab "${tab.id}" requires a groupByAttribute`,
|
|
3910
3910
|
[]
|
|
3911
3911
|
);
|
|
3912
3912
|
}
|
|
3913
3913
|
if (tab.descriptionAttribute !== void 0 && tab.descriptionAttribute.length === 0) {
|
|
3914
|
-
throw new
|
|
3914
|
+
throw new chunk4KMUATDG_js.ValidationError(
|
|
3915
3915
|
`[ListViewBuilder] Tab "${tab.id}" requires a nonempty description attribute name`,
|
|
3916
3916
|
[]
|
|
3917
3917
|
);
|
|
3918
3918
|
}
|
|
3919
3919
|
if (tab.displayAttributes !== void 0) {
|
|
3920
|
-
const parsed =
|
|
3920
|
+
const parsed = chunkT5PM73EF_js.displayAttributesSchema.safeParse(tab.displayAttributes);
|
|
3921
3921
|
if (!parsed.success) {
|
|
3922
|
-
throw new
|
|
3922
|
+
throw new chunk4KMUATDG_js.ValidationError(
|
|
3923
3923
|
`[ListViewBuilder] Tab "${tab.id}" has invalid display attributes`,
|
|
3924
3924
|
parsed.error.issues.map((issue) => ({
|
|
3925
3925
|
path: ["tabs", tab.id, "displayAttributes", ...issue.path.map(String)],
|
|
@@ -3932,7 +3932,7 @@ var ListViewBuilder = class {
|
|
|
3932
3932
|
const config = {
|
|
3933
3933
|
allowPresentationCustomization: this.data.allowPresentationCustomization,
|
|
3934
3934
|
defaultFilters: this.data.defaultFilters ? {
|
|
3935
|
-
id:
|
|
3935
|
+
id: chunkDVXGSTWJ_js.generateId(),
|
|
3936
3936
|
combinator: this.data.defaultFilters.combinator,
|
|
3937
3937
|
rules: this.data.defaultFilters.rules
|
|
3938
3938
|
} : void 0,
|
|
@@ -3949,7 +3949,7 @@ var ListViewBuilder = class {
|
|
|
3949
3949
|
descriptionAttribute: tab.descriptionAttribute,
|
|
3950
3950
|
displayAttributes: tab.displayAttributes,
|
|
3951
3951
|
filters: tab.filters ? {
|
|
3952
|
-
id:
|
|
3952
|
+
id: chunkDVXGSTWJ_js.generateId(),
|
|
3953
3953
|
combinator: tab.filters.combinator,
|
|
3954
3954
|
rules: tab.filters.rules
|
|
3955
3955
|
} : void 0,
|
|
@@ -4132,7 +4132,7 @@ var ListViewTabConfigBuilder = class _ListViewTabConfigBuilder {
|
|
|
4132
4132
|
const protectedAttribute = findProtectedTabFilterAttribute(filters);
|
|
4133
4133
|
if (protectedAttribute) {
|
|
4134
4134
|
const message = `Tab filters cannot target "${protectedAttribute}". Use .visibility("private")`;
|
|
4135
|
-
throw new
|
|
4135
|
+
throw new chunk4KMUATDG_js.ValidationError(message, [{ path: ["filters"], message }]);
|
|
4136
4136
|
}
|
|
4137
4137
|
this.tabData.filters = filters;
|
|
4138
4138
|
return this;
|
|
@@ -4343,7 +4343,7 @@ function jsonFlag(name, defaultValue) {
|
|
|
4343
4343
|
|
|
4344
4344
|
// src/feature-flags/flag-registry.ts
|
|
4345
4345
|
function duplicateFlagError(name) {
|
|
4346
|
-
return new
|
|
4346
|
+
return new chunk4KMUATDG_js.DuplicateError(
|
|
4347
4347
|
"feature flag",
|
|
4348
4348
|
name,
|
|
4349
4349
|
`Flag "${name}" is already registered. Each flag name must be unique.`
|
|
@@ -4421,7 +4421,7 @@ var FlagRegistry = class {
|
|
|
4421
4421
|
getOrThrow(name) {
|
|
4422
4422
|
const flag = this.get(name);
|
|
4423
4423
|
if (!flag) {
|
|
4424
|
-
throw new
|
|
4424
|
+
throw new chunk4KMUATDG_js.NotFoundError(
|
|
4425
4425
|
"Feature flag",
|
|
4426
4426
|
name,
|
|
4427
4427
|
void 0,
|
|
@@ -4598,19 +4598,19 @@ var FlagService = class {
|
|
|
4598
4598
|
*/
|
|
4599
4599
|
async setOverride(flagName, level, value, options = {}) {
|
|
4600
4600
|
if (!this.repository) {
|
|
4601
|
-
throw new
|
|
4601
|
+
throw new chunk4KMUATDG_js.SchemaError(
|
|
4602
4602
|
"Cannot set override: no FeatureFlagsRepository configured. Add featureFlags to your DatabaseAdapter to enable runtime overrides.",
|
|
4603
|
-
|
|
4603
|
+
chunk4KMUATDG_js.SchemaErrorCode.CONFIGURATION_REQUIRED
|
|
4604
4604
|
);
|
|
4605
4605
|
}
|
|
4606
4606
|
const flag = this.registry.get(flagName);
|
|
4607
4607
|
if (flag && !flag.allowedLevels.includes(level)) {
|
|
4608
4608
|
const message = `Flag "${flagName}" does not allow ${level}-level overrides. Allowed levels: ${flag.allowedLevels.join(", ")}`;
|
|
4609
|
-
throw new
|
|
4609
|
+
throw new chunk4KMUATDG_js.ValidationError(message, [{ path: ["level"], message }]);
|
|
4610
4610
|
}
|
|
4611
4611
|
if (flag?.system) {
|
|
4612
4612
|
const message = `Flag "${flagName}" is a system flag and cannot be overridden via API.`;
|
|
4613
|
-
throw new
|
|
4613
|
+
throw new chunk4KMUATDG_js.ValidationError(message, [{ path: ["flagName"], message }]);
|
|
4614
4614
|
}
|
|
4615
4615
|
await this.repository.setOverride({
|
|
4616
4616
|
flagName,
|
|
@@ -4630,9 +4630,9 @@ var FlagService = class {
|
|
|
4630
4630
|
*/
|
|
4631
4631
|
async deleteOverride(flagName, level, targetId) {
|
|
4632
4632
|
if (!this.repository) {
|
|
4633
|
-
throw new
|
|
4633
|
+
throw new chunk4KMUATDG_js.SchemaError(
|
|
4634
4634
|
"Cannot delete override: no FeatureFlagsRepository configured.",
|
|
4635
|
-
|
|
4635
|
+
chunk4KMUATDG_js.SchemaErrorCode.CONFIGURATION_REQUIRED
|
|
4636
4636
|
);
|
|
4637
4637
|
}
|
|
4638
4638
|
await this.repository.deleteOverride(flagName, level, targetId);
|
|
@@ -4769,7 +4769,7 @@ var NativeObjectRegistryClass = class {
|
|
|
4769
4769
|
if (!object2.system) {
|
|
4770
4770
|
const message = `[NativeObjectRegistry] Cannot register object "${object2.name}" (id: ${object2.id}): missing system flag.
|
|
4771
4771
|
Native objects must have system=true. Did you call .runtime() on the builder? Remove that call \u2014 objects are system:true by default.`;
|
|
4772
|
-
throw new
|
|
4772
|
+
throw new chunk4KMUATDG_js.ValidationError(message, []);
|
|
4773
4773
|
}
|
|
4774
4774
|
if (this.objects.has(object2.name)) {
|
|
4775
4775
|
const existing = this.objects.get(object2.name);
|
|
@@ -4777,7 +4777,7 @@ Native objects must have system=true. Did you call .runtime() on the builder? Re
|
|
|
4777
4777
|
- Existing: "${existing?.label}" (id: ${existing?.id})
|
|
4778
4778
|
- New: "${object2.label}" (id: ${object2.id})
|
|
4779
4779
|
Please use unique names for each native object.`;
|
|
4780
|
-
throw new
|
|
4780
|
+
throw new chunk4KMUATDG_js.DuplicateError("object", object2.name, message);
|
|
4781
4781
|
}
|
|
4782
4782
|
this.objects.set(object2.name, cloneObjectDefinition(object2));
|
|
4783
4783
|
}
|
|
@@ -4809,7 +4809,7 @@ Please use unique names for each native object.`;
|
|
|
4809
4809
|
if (!object2) {
|
|
4810
4810
|
const message = `[NativeObjectRegistry] Native object "${name}" not found.
|
|
4811
4811
|
Available objects: ${this.listNames().join(", ")}`;
|
|
4812
|
-
throw new
|
|
4812
|
+
throw new chunk4KMUATDG_js.NotFoundError("Native object", name, chunk4KMUATDG_js.SchemaErrorCode.OBJECT_NOT_FOUND, message);
|
|
4813
4813
|
}
|
|
4814
4814
|
return object2;
|
|
4815
4815
|
}
|
|
@@ -5057,7 +5057,7 @@ var ViewRegistry = class {
|
|
|
5057
5057
|
const key = this.makeKey(view.object, view.name, view.type);
|
|
5058
5058
|
if (this.views.has(key)) {
|
|
5059
5059
|
const message = `[ViewRegistry] Duplicate view: "${view.name}" (${view.type}) for object "${view.object}"`;
|
|
5060
|
-
throw new
|
|
5060
|
+
throw new chunk4KMUATDG_js.DuplicateError("view", key, message);
|
|
5061
5061
|
}
|
|
5062
5062
|
const storedView = cloneViewDefinition(view);
|
|
5063
5063
|
this.views.set(key, storedView);
|
|
@@ -5102,7 +5102,7 @@ var ViewRegistry = class {
|
|
|
5102
5102
|
const availableNames = available.map((v) => `${v.name} (${v.type})`).join(", ") || "(none)";
|
|
5103
5103
|
const message = `[ViewRegistry] View "${viewName}" not found for object "${objectName}".
|
|
5104
5104
|
Available views: ${availableNames}`;
|
|
5105
|
-
throw new
|
|
5105
|
+
throw new chunk4KMUATDG_js.NotFoundError("View", `${objectName}:${viewName}`, void 0, message);
|
|
5106
5106
|
}
|
|
5107
5107
|
return view;
|
|
5108
5108
|
}
|
|
@@ -5190,7 +5190,7 @@ var viewRegistry = new ViewRegistry();
|
|
|
5190
5190
|
// src/views/auto-generator.ts
|
|
5191
5191
|
function getRuntimeAttributes(attributes, excludeNames = []) {
|
|
5192
5192
|
return attributes.filter(
|
|
5193
|
-
(attr) => !(!
|
|
5193
|
+
(attr) => !(!chunkT5PM73EF_js.getAttributeCapabilities(attr).lifecycle.visibleInRuntime || attr.system || excludeNames.includes(attr.name))
|
|
5194
5194
|
);
|
|
5195
5195
|
}
|
|
5196
5196
|
function sortAttributes(attributes) {
|
|
@@ -5223,7 +5223,7 @@ function generateDefaultDetailView(object2, options = {}) {
|
|
|
5223
5223
|
const { includeActivityTab = true, includeDocumentsTab = true, excludeAttributes = [] } = options;
|
|
5224
5224
|
const runtimeAttrs = getRuntimeAttributes(object2.attributes, excludeAttributes);
|
|
5225
5225
|
const sortedAttrs = sortAttributes(
|
|
5226
|
-
runtimeAttrs.filter((attr) =>
|
|
5226
|
+
runtimeAttrs.filter((attr) => chunkT5PM73EF_js.getAttributeCapabilities(attr).presentation.formField)
|
|
5227
5227
|
);
|
|
5228
5228
|
const formTab = {
|
|
5229
5229
|
id: "form",
|
|
@@ -5280,7 +5280,7 @@ function generateDefaultListView(object2, options = {}) {
|
|
|
5280
5280
|
const { excludeAttributes = [], maxListColumns = 5 } = options;
|
|
5281
5281
|
const runtimeAttrs = getRuntimeAttributes(object2.attributes, excludeAttributes);
|
|
5282
5282
|
const sortedAttrs = sortAttributes(
|
|
5283
|
-
runtimeAttrs.filter((attr) =>
|
|
5283
|
+
runtimeAttrs.filter((attr) => chunkT5PM73EF_js.getAttributeCapabilities(attr).presentation.defaultColumn)
|
|
5284
5284
|
);
|
|
5285
5285
|
const columns = sortedAttrs.slice(0, maxListColumns).map((attr) => attr.name);
|
|
5286
5286
|
const config = {
|
|
@@ -5410,7 +5410,7 @@ var FormRegistry = class {
|
|
|
5410
5410
|
const forms = Array.isArray(formOrForms) ? formOrForms : [formOrForms];
|
|
5411
5411
|
for (const f of forms) {
|
|
5412
5412
|
if (this.forms.has(f.name)) {
|
|
5413
|
-
throw new
|
|
5413
|
+
throw new chunk4KMUATDG_js.DuplicateError("form", f.name, `[FormRegistry] Duplicate form: "${f.name}"`);
|
|
5414
5414
|
}
|
|
5415
5415
|
this.forms.set(f.name, cloneFormDefinition(f));
|
|
5416
5416
|
}
|
|
@@ -6026,7 +6026,7 @@ function assertAcyclicComputedDependencies(nodes) {
|
|
|
6026
6026
|
}
|
|
6027
6027
|
function parseCompileFormula(expression) {
|
|
6028
6028
|
try {
|
|
6029
|
-
return
|
|
6029
|
+
return chunkKAWYU7TE_js.parseComputedFormula(expression);
|
|
6030
6030
|
} catch (error) {
|
|
6031
6031
|
if (error instanceof Error) {
|
|
6032
6032
|
throw new ComputedFormulaCompileError(error.message);
|
|
@@ -6795,9 +6795,9 @@ function evaluateCall(functionName, args) {
|
|
|
6795
6795
|
case "percent_not_empty":
|
|
6796
6796
|
return percentByEmptyState(args[0], false);
|
|
6797
6797
|
case "count_empty":
|
|
6798
|
-
return collectionItems(args[0]).filter(
|
|
6798
|
+
return collectionItems(args[0]).filter(chunkHURC6CW3_js.isNullishOrEmptyString).length;
|
|
6799
6799
|
case "count_not_empty":
|
|
6800
|
-
return collectionItems(args[0]).filter((item) => !
|
|
6800
|
+
return collectionItems(args[0]).filter((item) => !chunkHURC6CW3_js.isNullishOrEmptyString(item)).length;
|
|
6801
6801
|
case "count_unique":
|
|
6802
6802
|
return uniqueNonEmpty(collectionItems(args[0])).length;
|
|
6803
6803
|
default:
|
|
@@ -6858,14 +6858,14 @@ function percentByEmptyState(value, countEmpty) {
|
|
|
6858
6858
|
if (items.length === 0) {
|
|
6859
6859
|
return 0;
|
|
6860
6860
|
}
|
|
6861
|
-
const count = items.filter((item) =>
|
|
6861
|
+
const count = items.filter((item) => chunkHURC6CW3_js.isNullishOrEmptyString(item) === countEmpty).length;
|
|
6862
6862
|
return count / items.length;
|
|
6863
6863
|
}
|
|
6864
6864
|
function uniqueNonEmpty(values) {
|
|
6865
6865
|
const seen = /* @__PURE__ */ new Set();
|
|
6866
6866
|
const result = [];
|
|
6867
6867
|
for (const value of values) {
|
|
6868
|
-
if (
|
|
6868
|
+
if (chunkHURC6CW3_js.isNullishOrEmptyString(value)) {
|
|
6869
6869
|
continue;
|
|
6870
6870
|
}
|
|
6871
6871
|
const key = uniqueKey(value);
|
|
@@ -6982,11 +6982,11 @@ function evaluateComputedAst(node, input) {
|
|
|
6982
6982
|
return evaluateAst(node, input);
|
|
6983
6983
|
}
|
|
6984
6984
|
function evaluateComputedFormula(expression, input) {
|
|
6985
|
-
return evaluateAst(
|
|
6985
|
+
return evaluateAst(chunkKAWYU7TE_js.parseComputedFormula(expression), input);
|
|
6986
6986
|
}
|
|
6987
6987
|
function evaluateComputedFormulaWithResult(expression, input, returnType, decimals) {
|
|
6988
6988
|
try {
|
|
6989
|
-
const raw = evaluateAst(
|
|
6989
|
+
const raw = evaluateAst(chunkKAWYU7TE_js.parseComputedFormula(expression), input);
|
|
6990
6990
|
const value = returnType ? formatComputedResult(raw, returnType, decimals) : raw;
|
|
6991
6991
|
return { value };
|
|
6992
6992
|
} catch (error) {
|
|
@@ -7111,10 +7111,10 @@ var COMPUTED_FUNCTION_METADATA = [
|
|
|
7111
7111
|
];
|
|
7112
7112
|
|
|
7113
7113
|
// src/filters/operators.ts
|
|
7114
|
-
var isEmpty = (v) =>
|
|
7114
|
+
var isEmpty = (v) => chunkHURC6CW3_js.isNullishOrEmptyString(v) || Array.isArray(v) && v.length === 0;
|
|
7115
7115
|
var toStr = (v) => v == null ? "" : String(v);
|
|
7116
7116
|
var toNum = (v) => {
|
|
7117
|
-
if (
|
|
7117
|
+
if (chunkHURC6CW3_js.isNullishOrEmptyString(v)) return null;
|
|
7118
7118
|
const n = typeof v === "number" ? v : Number(v);
|
|
7119
7119
|
return Number.isFinite(n) ? n : null;
|
|
7120
7120
|
};
|
|
@@ -7247,7 +7247,7 @@ var OPERATOR_SPECS = {
|
|
|
7247
7247
|
appliesTo: ["date"],
|
|
7248
7248
|
evaluateInMemory: (v, rv) => {
|
|
7249
7249
|
const d = toDate2(v);
|
|
7250
|
-
const bounds =
|
|
7250
|
+
const bounds = chunkT5PM73EF_js.resolveIsWithinBounds(rv);
|
|
7251
7251
|
if (!(d && bounds)) return false;
|
|
7252
7252
|
return d.getTime() >= bounds.startMs && d.getTime() < bounds.endMs;
|
|
7253
7253
|
}
|
|
@@ -7283,7 +7283,7 @@ var OPERATOR_SPECS = {
|
|
|
7283
7283
|
// src/filters/evaluate.ts
|
|
7284
7284
|
var systemAttribute = (name, type) => ({ id: `system:${name}`, name, label: name, type, system: true });
|
|
7285
7285
|
var RECORD_SYSTEM_ATTRIBUTES = [
|
|
7286
|
-
...Object.entries(
|
|
7286
|
+
...Object.entries(chunkT5PM73EF_js.SYSTEM_FILTER_ATTRIBUTE_TYPES).map(
|
|
7287
7287
|
([name, type]) => systemAttribute(name, type)
|
|
7288
7288
|
)
|
|
7289
7289
|
];
|
|
@@ -7320,7 +7320,7 @@ function evaluateRule(rule, values, attrByName) {
|
|
|
7320
7320
|
const attr = attrByName.get(rule.attribute);
|
|
7321
7321
|
if (!attr) return false;
|
|
7322
7322
|
if (rule.property && attr.type === "location") {
|
|
7323
|
-
if (!(
|
|
7323
|
+
if (!(chunkT5PM73EF_js.isLocationFilterProperty(rule.property) && chunkT5PM73EF_js.isLocationPartOperator(rule.operator))) {
|
|
7324
7324
|
return false;
|
|
7325
7325
|
}
|
|
7326
7326
|
const spec2 = OPERATOR_SPECS[rule.operator];
|
|
@@ -7334,7 +7334,7 @@ function evaluateRule(rule, values, attrByName) {
|
|
|
7334
7334
|
(definition) => definition.name === rule.property
|
|
7335
7335
|
);
|
|
7336
7336
|
if (!property) return false;
|
|
7337
|
-
const positiveOperator =
|
|
7337
|
+
const positiveOperator = chunkT5PM73EF_js.normalizeForEdgeRpc(rule.operator);
|
|
7338
7338
|
const propertySpec = OPERATOR_SPECS[positiveOperator];
|
|
7339
7339
|
if (!propertySpec?.appliesTo.includes(property.type)) return false;
|
|
7340
7340
|
const rootValue = values[rule.attribute];
|
|
@@ -7352,7 +7352,7 @@ function evaluateRule(rule, values, attrByName) {
|
|
|
7352
7352
|
property
|
|
7353
7353
|
);
|
|
7354
7354
|
});
|
|
7355
|
-
return (rule.quantifier ??
|
|
7355
|
+
return (rule.quantifier ?? chunkT5PM73EF_js.getOperatorPolarity(rule.operator)) === "none" ? !matches : matches;
|
|
7356
7356
|
}
|
|
7357
7357
|
const spec = OPERATOR_SPECS[rule.operator];
|
|
7358
7358
|
if (!spec) return false;
|
|
@@ -7401,7 +7401,7 @@ function normalizePhoneComparands(stored, rule) {
|
|
|
7401
7401
|
return [normalizeOne(stored), normalizeOne(rule)];
|
|
7402
7402
|
}
|
|
7403
7403
|
function normalizeComparableValue(type, value) {
|
|
7404
|
-
if (type === "currency") return
|
|
7404
|
+
if (type === "currency") return chunkT5PM73EF_js.extractCurrencyFilterValue(value);
|
|
7405
7405
|
if (type === "date") {
|
|
7406
7406
|
if (isDateRangeValue(value)) return dateValueStart(value);
|
|
7407
7407
|
if (value instanceof Date) return Number.isNaN(value.getTime()) ? null : value.toISOString();
|
|
@@ -7448,20 +7448,20 @@ function deriveCreateDefaultsFromFilters(state, attributes, ctx) {
|
|
|
7448
7448
|
if (!attribute) continue;
|
|
7449
7449
|
const value = extractDeterministicValue(rule, ctx);
|
|
7450
7450
|
if (value === void 0) continue;
|
|
7451
|
-
defaults[rule.attribute] =
|
|
7451
|
+
defaults[rule.attribute] = chunkT5PM73EF_js.getAttributeCapabilities(attribute).storage.cardinality === "many" ? [value] : value;
|
|
7452
7452
|
}
|
|
7453
7453
|
return defaults;
|
|
7454
7454
|
}
|
|
7455
7455
|
function extractDeterministicValue(rule, ctx) {
|
|
7456
7456
|
if (rule.operator === "is") {
|
|
7457
|
-
if (
|
|
7457
|
+
if (chunkT5PM73EF_js.isDynamicValue(rule.value)) return resolveDynamicValue(rule.value, ctx);
|
|
7458
7458
|
if (rule.value === null || Array.isArray(rule.value)) return void 0;
|
|
7459
7459
|
return rule.value;
|
|
7460
7460
|
}
|
|
7461
7461
|
if (rule.operator === "any_of") {
|
|
7462
7462
|
if (!Array.isArray(rule.value) || rule.value.length !== 1) return void 0;
|
|
7463
7463
|
const single = rule.value[0];
|
|
7464
|
-
if (
|
|
7464
|
+
if (chunkT5PM73EF_js.isDynamicValue(single)) return resolveDynamicValue(single, ctx);
|
|
7465
7465
|
return single;
|
|
7466
7466
|
}
|
|
7467
7467
|
return void 0;
|
|
@@ -7561,10 +7561,10 @@ var attributeNameSchema = z2.z.string().min(1).superRefine((name, ctx) => {
|
|
|
7561
7561
|
'The attribute\'s machine name \u2014 the record\'s field key, and what `{{ name }}` refers to in a labelExpression. Must be a valid identifier: starts with a letter or underscore, then only letters/digits/underscores ("montantHt", "first_name", "FIRST_NAME" are valid; "first-name", "first name", "123name" are not). Max 63 characters. Cannot be a name reserved by the record shape itself (id, createdAt, updatedAt, createdBy, lastUpdatedBy, objectId, label, embeddingText, values, metadata, deletedAt, deletedBy, schemaVersion).'
|
|
7562
7562
|
);
|
|
7563
7563
|
var objectNameSchema = z2.z.string().min(1).superRefine((name, ctx) => {
|
|
7564
|
-
if (
|
|
7564
|
+
if (chunkT5PM73EF_js.RESERVED_OBJECT_NAMES.includes(name)) {
|
|
7565
7565
|
ctx.addIssue({
|
|
7566
7566
|
code: z2.z.ZodIssueCode.custom,
|
|
7567
|
-
message: `"${name}" is a reserved object name (${
|
|
7567
|
+
message: `"${name}" is a reserved object name (${chunkT5PM73EF_js.RESERVED_OBJECT_NAMES.join(", ")}) and cannot be used for a new object.`
|
|
7568
7568
|
});
|
|
7569
7569
|
}
|
|
7570
7570
|
try {
|
|
@@ -7578,7 +7578,7 @@ var objectNameSchema = z2.z.string().min(1).superRefine((name, ctx) => {
|
|
|
7578
7578
|
function withConfigCheck(schema) {
|
|
7579
7579
|
return schema.superRefine((attribute, ctx) => {
|
|
7580
7580
|
try {
|
|
7581
|
-
const parsedConfig =
|
|
7581
|
+
const parsedConfig = chunkKAWYU7TE_js.parseAttributeConfigForCreate(attribute.type, {
|
|
7582
7582
|
...attribute.config ?? {},
|
|
7583
7583
|
description: attribute.description
|
|
7584
7584
|
});
|
|
@@ -7594,7 +7594,7 @@ function withConfigCheck(schema) {
|
|
|
7594
7594
|
});
|
|
7595
7595
|
}
|
|
7596
7596
|
} catch (error) {
|
|
7597
|
-
if (error instanceof
|
|
7597
|
+
if (error instanceof chunk4KMUATDG_js.ValidationError) {
|
|
7598
7598
|
for (const issue of error.errors) {
|
|
7599
7599
|
ctx.addIssue({
|
|
7600
7600
|
code: z2.z.ZodIssueCode.custom,
|
|
@@ -7641,7 +7641,7 @@ var plannedObjectSchema = z2.z.object({
|
|
|
7641
7641
|
'Human-readable plural display label (e.g. "Devis"/"Invoices"). Defaults from `label` if omitted.'
|
|
7642
7642
|
),
|
|
7643
7643
|
description: z2.z.string().optional().describe("Help text describing what this object represents."),
|
|
7644
|
-
icon:
|
|
7644
|
+
icon: chunkKAWYU7TE_js.iconNameSchema.describe(
|
|
7645
7645
|
"Required icon name for the object. Must be a catalogue value \u2014 call `search_icons` and use a name it returns verbatim. A name that is not in the catalogue is rejected without any hint as to what would have worked, so never guess one."
|
|
7646
7646
|
),
|
|
7647
7647
|
labelExpression: labelExpressionSchema.describe(
|
|
@@ -7699,13 +7699,13 @@ var proposedDefaultViewTargetSchema = z2.z.discriminatedUnion("viewType", [
|
|
|
7699
7699
|
z2.z.object({
|
|
7700
7700
|
objectName: viewTargetObjectNameSchema,
|
|
7701
7701
|
viewType: z2.z.literal("list").describe("Targets the object's default list view (the grid)."),
|
|
7702
|
-
canonicalConfig:
|
|
7702
|
+
canonicalConfig: chunkT5PM73EF_js.listViewConfigSchema.describe(CANONICAL_CONFIG_DESCRIPTION),
|
|
7703
7703
|
baselineToken: z2.z.string().min(1).optional().describe(BASELINE_TOKEN_DESCRIPTION)
|
|
7704
7704
|
}).strict(),
|
|
7705
7705
|
z2.z.object({
|
|
7706
7706
|
objectName: viewTargetObjectNameSchema,
|
|
7707
7707
|
viewType: z2.z.literal("detail").describe("Targets the object's default detail view (the single-record view)."),
|
|
7708
|
-
canonicalConfig:
|
|
7708
|
+
canonicalConfig: chunkT5PM73EF_js.detailViewConfigSchema.describe(CANONICAL_CONFIG_DESCRIPTION),
|
|
7709
7709
|
baselineToken: z2.z.string().min(1).optional().describe(BASELINE_TOKEN_DESCRIPTION)
|
|
7710
7710
|
}).strict()
|
|
7711
7711
|
]);
|
|
@@ -7719,13 +7719,13 @@ var persistedDefaultViewTargetSchema = z2.z.discriminatedUnion("viewType", [
|
|
|
7719
7719
|
z2.z.object({
|
|
7720
7720
|
objectName: z2.z.string().min(1),
|
|
7721
7721
|
viewType: z2.z.literal("list"),
|
|
7722
|
-
canonicalConfig:
|
|
7722
|
+
canonicalConfig: chunkT5PM73EF_js.listViewConfigSchema,
|
|
7723
7723
|
...persistedBaselineFields
|
|
7724
7724
|
}).strict(),
|
|
7725
7725
|
z2.z.object({
|
|
7726
7726
|
objectName: z2.z.string().min(1),
|
|
7727
7727
|
viewType: z2.z.literal("detail"),
|
|
7728
|
-
canonicalConfig:
|
|
7728
|
+
canonicalConfig: chunkT5PM73EF_js.detailViewConfigSchema,
|
|
7729
7729
|
...persistedBaselineFields
|
|
7730
7730
|
}).strict()
|
|
7731
7731
|
]).superRefine((target, ctx) => {
|
|
@@ -7872,7 +7872,7 @@ function boundSerializedPlanInput(input, ctx) {
|
|
|
7872
7872
|
});
|
|
7873
7873
|
return z2.z.NEVER;
|
|
7874
7874
|
}
|
|
7875
|
-
const serializedBytes = new TextEncoder().encode(
|
|
7875
|
+
const serializedBytes = new TextEncoder().encode(chunkDVXGSTWJ_js.canonicalStringify(input)).byteLength;
|
|
7876
7876
|
if (serializedBytes > SCHEMA_PLAN_LIMITS.serializedBytes) {
|
|
7877
7877
|
ctx.addIssue({
|
|
7878
7878
|
code: "too_big",
|
|
@@ -8134,7 +8134,7 @@ function isAgentUIDataName(value) {
|
|
|
8134
8134
|
return value in customDataChunkSchemas;
|
|
8135
8135
|
}
|
|
8136
8136
|
function agentUIValidationError(issues) {
|
|
8137
|
-
return new
|
|
8137
|
+
return new chunk4KMUATDG_js.ValidationError(
|
|
8138
8138
|
"Invalid agent UI message chunk",
|
|
8139
8139
|
issues.map((issue) => ({
|
|
8140
8140
|
path: issue.path.map(String),
|
|
@@ -8145,19 +8145,19 @@ function agentUIValidationError(issues) {
|
|
|
8145
8145
|
}
|
|
8146
8146
|
function assertCustomAgentUIMessageChunk(value) {
|
|
8147
8147
|
if (typeof value !== "object" || value === null || typeof value.type !== "string") {
|
|
8148
|
-
throw new
|
|
8148
|
+
throw new chunk4KMUATDG_js.ValidationError("Invalid agent UI message chunk", [
|
|
8149
8149
|
{ path: ["type"], message: "Expected UI message chunk type", code: "invalid_type" }
|
|
8150
8150
|
]);
|
|
8151
8151
|
}
|
|
8152
8152
|
const type = value.type;
|
|
8153
8153
|
if (!type.startsWith("data-")) {
|
|
8154
|
-
throw new
|
|
8154
|
+
throw new chunk4KMUATDG_js.ValidationError("Invalid agent UI message chunk", [
|
|
8155
8155
|
{ path: ["type"], message: "Expected agent data chunk type", code: "invalid_value" }
|
|
8156
8156
|
]);
|
|
8157
8157
|
}
|
|
8158
8158
|
const name = type.slice("data-".length);
|
|
8159
8159
|
if (!isAgentUIDataName(name)) {
|
|
8160
|
-
throw new
|
|
8160
|
+
throw new chunk4KMUATDG_js.ValidationError("Invalid agent UI message chunk", [
|
|
8161
8161
|
{ path: ["type"], message: `Unknown agent UI data type: ${name}`, code: "invalid_value" }
|
|
8162
8162
|
]);
|
|
8163
8163
|
}
|
|
@@ -8201,7 +8201,7 @@ var operationBase = { id: z2.z.string().min(1) };
|
|
|
8201
8201
|
var viewOperationBase = { ...operationBase, viewId: z2.z.string().min(1) };
|
|
8202
8202
|
function mapView(state, viewId, fn) {
|
|
8203
8203
|
if (!state.views.some((v) => v.id === viewId)) {
|
|
8204
|
-
throw new
|
|
8204
|
+
throw new chunk4KMUATDG_js.ValidationError(`View "${viewId}" is not in the draftable state`, []);
|
|
8205
8205
|
}
|
|
8206
8206
|
return { ...state, views: state.views.map((v) => v.id === viewId ? fn(v) : v) };
|
|
8207
8207
|
}
|
|
@@ -8213,14 +8213,14 @@ function moveWithin(items, from, toIndex) {
|
|
|
8213
8213
|
}
|
|
8214
8214
|
function reorderById(items, order, what) {
|
|
8215
8215
|
if (order.length !== items.length) {
|
|
8216
|
-
throw new
|
|
8216
|
+
throw new chunk4KMUATDG_js.ValidationError(
|
|
8217
8217
|
`${what} order lists ${order.length} ids for ${items.length} items`,
|
|
8218
8218
|
[]
|
|
8219
8219
|
);
|
|
8220
8220
|
}
|
|
8221
8221
|
return order.map((id) => {
|
|
8222
8222
|
const found = items.find((item) => item.id === id);
|
|
8223
|
-
if (!found) throw new
|
|
8223
|
+
if (!found) throw new chunk4KMUATDG_js.ValidationError(`${what} "${id}" is not in this collection`, []);
|
|
8224
8224
|
return found;
|
|
8225
8225
|
});
|
|
8226
8226
|
}
|
|
@@ -8228,15 +8228,15 @@ function reorderById(items, order, what) {
|
|
|
8228
8228
|
// src/architect/operations/detail-view.ts
|
|
8229
8229
|
function mapFormTab(view, tabId, fn) {
|
|
8230
8230
|
const found = view.tabs.find((t) => t.id === tabId);
|
|
8231
|
-
if (!found) throw new
|
|
8231
|
+
if (!found) throw new chunk4KMUATDG_js.ValidationError(`Tab "${tabId}" is not in view "${view.id}"`, []);
|
|
8232
8232
|
if (found.type !== "form") {
|
|
8233
|
-
throw new
|
|
8233
|
+
throw new chunk4KMUATDG_js.ValidationError(`Tab "${tabId}" is not a form tab`, []);
|
|
8234
8234
|
}
|
|
8235
8235
|
return { ...view, tabs: view.tabs.map((t) => t.id === tabId ? fn(found) : t) };
|
|
8236
8236
|
}
|
|
8237
8237
|
function requireGroup(tab, groupId) {
|
|
8238
8238
|
const found = tab.groups.find((g) => g.id === groupId);
|
|
8239
|
-
if (!found) throw new
|
|
8239
|
+
if (!found) throw new chunk4KMUATDG_js.ValidationError(`Group "${groupId}" is not in tab "${tab.id}"`, []);
|
|
8240
8240
|
return found;
|
|
8241
8241
|
}
|
|
8242
8242
|
function locateField(tab, fieldId) {
|
|
@@ -8244,7 +8244,7 @@ function locateField(tab, fieldId) {
|
|
|
8244
8244
|
const field = group2.fields.find((f) => f.id === fieldId);
|
|
8245
8245
|
if (field) return { group: group2, field };
|
|
8246
8246
|
}
|
|
8247
|
-
throw new
|
|
8247
|
+
throw new chunk4KMUATDG_js.ValidationError(`Field slot "${fieldId}" is not in tab "${tab.id}"`, []);
|
|
8248
8248
|
}
|
|
8249
8249
|
function viewFocus(op) {
|
|
8250
8250
|
return { viewId: op.viewId };
|
|
@@ -8284,9 +8284,9 @@ function firstChangedProperty(op) {
|
|
|
8284
8284
|
const keys = Object.keys(op.changes).sort();
|
|
8285
8285
|
return keys.length === 1 ? [keys[0]] : void 0;
|
|
8286
8286
|
}
|
|
8287
|
-
var tabPayload =
|
|
8288
|
-
var groupPayload =
|
|
8289
|
-
var fieldPayload =
|
|
8287
|
+
var tabPayload = chunkT5PM73EF_js.detailTabDraftSchema;
|
|
8288
|
+
var groupPayload = chunkT5PM73EF_js.groupWriteSchema;
|
|
8289
|
+
var fieldPayload = chunkT5PM73EF_js.fieldSlotSchema;
|
|
8290
8290
|
var addTabSchema = z2.z.object({
|
|
8291
8291
|
...viewOperationBase,
|
|
8292
8292
|
type: z2.z.literal("add_tab"),
|
|
@@ -8297,7 +8297,7 @@ var addTab = defineOperation({
|
|
|
8297
8297
|
schema: addTabSchema,
|
|
8298
8298
|
apply: (state, op) => mapView(state, op.viewId, (view) => {
|
|
8299
8299
|
if (view.tabs.some((t) => t.id === op.tab.id)) {
|
|
8300
|
-
throw new
|
|
8300
|
+
throw new chunk4KMUATDG_js.ValidationError(`Tab "${op.tab.id}" already exists in view "${op.viewId}"`, []);
|
|
8301
8301
|
}
|
|
8302
8302
|
return { ...view, tabs: [...view.tabs, op.tab] };
|
|
8303
8303
|
}),
|
|
@@ -8315,7 +8315,7 @@ var removeTab = defineOperation({
|
|
|
8315
8315
|
schema: removeTabSchema,
|
|
8316
8316
|
apply: (state, op) => mapView(state, op.viewId, (view) => {
|
|
8317
8317
|
if (!view.tabs.some((t) => t.id === op.tabId)) {
|
|
8318
|
-
throw new
|
|
8318
|
+
throw new chunk4KMUATDG_js.ValidationError(`Tab "${op.tabId}" is not in view "${op.viewId}"`, []);
|
|
8319
8319
|
}
|
|
8320
8320
|
return { ...view, tabs: view.tabs.filter((t) => t.id !== op.tabId) };
|
|
8321
8321
|
}),
|
|
@@ -8325,7 +8325,7 @@ var removeTab = defineOperation({
|
|
|
8325
8325
|
});
|
|
8326
8326
|
var updateTabChanges = z2.z.object({
|
|
8327
8327
|
label: z2.z.string().min(1).optional(),
|
|
8328
|
-
icon:
|
|
8328
|
+
icon: chunkKAWYU7TE_js.iconNameSchema.optional(),
|
|
8329
8329
|
order: z2.z.number().int().optional()
|
|
8330
8330
|
});
|
|
8331
8331
|
var UPDATE_TAB_CHANGE_KEYS = Object.keys(
|
|
@@ -8349,7 +8349,7 @@ var updateTab = defineOperation({
|
|
|
8349
8349
|
schema: updateTabSchema,
|
|
8350
8350
|
apply: (state, op) => mapView(state, op.viewId, (view) => {
|
|
8351
8351
|
if (!view.tabs.some((t) => t.id === op.tabId)) {
|
|
8352
|
-
throw new
|
|
8352
|
+
throw new chunk4KMUATDG_js.ValidationError(`Tab "${op.tabId}" is not in view "${op.viewId}"`, []);
|
|
8353
8353
|
}
|
|
8354
8354
|
return {
|
|
8355
8355
|
...view,
|
|
@@ -8390,7 +8390,7 @@ var addGroup = defineOperation({
|
|
|
8390
8390
|
op.viewId,
|
|
8391
8391
|
(view) => mapFormTab(view, op.tabId, (tab) => {
|
|
8392
8392
|
if (tab.groups.some((g) => g.id === op.group.id)) {
|
|
8393
|
-
throw new
|
|
8393
|
+
throw new chunk4KMUATDG_js.ValidationError(
|
|
8394
8394
|
`Group "${op.group.id}" already exists in tab "${op.tabId}"`,
|
|
8395
8395
|
[]
|
|
8396
8396
|
);
|
|
@@ -8497,7 +8497,7 @@ var addField = defineOperation({
|
|
|
8497
8497
|
(view) => mapFormTab(view, op.tabId, (tab) => {
|
|
8498
8498
|
requireGroup(tab, op.groupId);
|
|
8499
8499
|
if (tab.groups.some((g) => g.fields.some((f) => f.id === op.field.id))) {
|
|
8500
|
-
throw new
|
|
8500
|
+
throw new chunk4KMUATDG_js.ValidationError(
|
|
8501
8501
|
`Field slot "${op.field.id}" already exists in tab "${op.tabId}"`,
|
|
8502
8502
|
[]
|
|
8503
8503
|
);
|
|
@@ -8643,14 +8643,14 @@ var updateTableTabChanges = z2.z.object({
|
|
|
8643
8643
|
* splitting the pair across two operations would wipe the column list while
|
|
8644
8644
|
* the source change vanished (#2763, #2787).
|
|
8645
8645
|
*/
|
|
8646
|
-
source:
|
|
8647
|
-
columns:
|
|
8646
|
+
source: chunkT5PM73EF_js.tableSourceSchema.optional(),
|
|
8647
|
+
columns: chunkT5PM73EF_js.columnsSchema.optional(),
|
|
8648
8648
|
// Nullable, not merely optional: the panels clear a filter list or a sort
|
|
8649
8649
|
// list by sending `null`, because `undefined` does not survive
|
|
8650
8650
|
// `JSON.stringify` and the operation would arrive with no changes at all
|
|
8651
8651
|
// (#2787). `apply` drops the key rather than storing the null.
|
|
8652
|
-
filters:
|
|
8653
|
-
sorts:
|
|
8652
|
+
filters: chunkT5PM73EF_js.filterStateSchema.nullable().optional(),
|
|
8653
|
+
sorts: chunkT5PM73EF_js.sortsSchema.nullable().optional(),
|
|
8654
8654
|
allowCreate: z2.z.boolean().optional(),
|
|
8655
8655
|
allowEdit: z2.z.boolean().optional(),
|
|
8656
8656
|
allowDelete: z2.z.boolean().optional(),
|
|
@@ -8707,12 +8707,12 @@ var updateTabConfig = defineOperation({
|
|
|
8707
8707
|
apply: (state, op) => mapView(state, op.viewId, (view) => {
|
|
8708
8708
|
const found = view.tabs.find((t) => t.id === op.tabId);
|
|
8709
8709
|
if (!found) {
|
|
8710
|
-
throw new
|
|
8710
|
+
throw new chunk4KMUATDG_js.ValidationError(`Tab "${op.tabId}" is not in view "${view.id}"`, []);
|
|
8711
8711
|
}
|
|
8712
8712
|
for (const key of Object.keys(op.changes)) {
|
|
8713
8713
|
const allowed = TAB_CONFIG_FIELD_OWNERS[key];
|
|
8714
8714
|
if (allowed && !allowed.includes(found.type)) {
|
|
8715
|
-
throw new
|
|
8715
|
+
throw new chunk4KMUATDG_js.ValidationError(`"${key}" is not a setting of a "${found.type}" tab`, []);
|
|
8716
8716
|
}
|
|
8717
8717
|
}
|
|
8718
8718
|
return {
|
|
@@ -8742,9 +8742,9 @@ var updateTableTab = defineOperation({
|
|
|
8742
8742
|
schema: updateTableTabSchema,
|
|
8743
8743
|
apply: (state, op) => mapView(state, op.viewId, (view) => {
|
|
8744
8744
|
const found = view.tabs.find((t) => t.id === op.tabId);
|
|
8745
|
-
if (!found) throw new
|
|
8745
|
+
if (!found) throw new chunk4KMUATDG_js.ValidationError(`Tab "${op.tabId}" is not in view "${view.id}"`, []);
|
|
8746
8746
|
if (found.type !== "table") {
|
|
8747
|
-
throw new
|
|
8747
|
+
throw new chunk4KMUATDG_js.ValidationError(`Tab "${op.tabId}" is not a table tab`, []);
|
|
8748
8748
|
}
|
|
8749
8749
|
const entries = Object.entries(op.changes);
|
|
8750
8750
|
const applied = Object.fromEntries(entries.filter(([, value]) => value !== null));
|
|
@@ -8814,22 +8814,22 @@ function firstChangedProperty2(op) {
|
|
|
8814
8814
|
}
|
|
8815
8815
|
function withoutKanbanKeys(tab) {
|
|
8816
8816
|
const rest = { ...tab };
|
|
8817
|
-
for (const key of
|
|
8817
|
+
for (const key of chunkT5PM73EF_js.LIST_TAB_KANBAN_KEYS) delete rest[key];
|
|
8818
8818
|
return rest;
|
|
8819
8819
|
}
|
|
8820
8820
|
function withoutTableKeys(tab) {
|
|
8821
8821
|
const rest = { ...tab };
|
|
8822
|
-
for (const key of
|
|
8822
|
+
for (const key of chunkT5PM73EF_js.LIST_TAB_TABLE_KEYS) delete rest[key];
|
|
8823
8823
|
return rest;
|
|
8824
8824
|
}
|
|
8825
8825
|
function assertStillPublishableTab(before, after, viewId, tabId) {
|
|
8826
|
-
const parsed =
|
|
8826
|
+
const parsed = chunkT5PM73EF_js.listViewTabSchema.safeParse(after);
|
|
8827
8827
|
if (!parsed.success) {
|
|
8828
|
-
if (!
|
|
8828
|
+
if (!chunkT5PM73EF_js.listViewTabSchema.safeParse(before).success) return after;
|
|
8829
8829
|
const detail = parsed.error.issues.map(
|
|
8830
8830
|
(issue) => issue.path.length ? `${issue.path.join(".")}: ${issue.message}` : issue.message
|
|
8831
8831
|
).join(", ");
|
|
8832
|
-
throw new
|
|
8832
|
+
throw new chunk4KMUATDG_js.ValidationError(
|
|
8833
8833
|
`List tab "${tabId}" in view "${viewId}" would no longer be publishable: ${detail}`,
|
|
8834
8834
|
[]
|
|
8835
8835
|
);
|
|
@@ -8840,7 +8840,7 @@ function mapListTab(state, viewId, tabId, fn) {
|
|
|
8840
8840
|
return mapView(state, viewId, (view) => {
|
|
8841
8841
|
const tabs = view.config.tabs ?? [];
|
|
8842
8842
|
if (!tabs.some((t) => t.id === tabId)) {
|
|
8843
|
-
throw new
|
|
8843
|
+
throw new chunk4KMUATDG_js.ValidationError(`List tab "${tabId}" is not in view "${viewId}"`, []);
|
|
8844
8844
|
}
|
|
8845
8845
|
return {
|
|
8846
8846
|
...view,
|
|
@@ -8853,9 +8853,9 @@ function mapListTab(state, viewId, tabId, fn) {
|
|
|
8853
8853
|
};
|
|
8854
8854
|
});
|
|
8855
8855
|
}
|
|
8856
|
-
var listTabPayload =
|
|
8857
|
-
var filterGroupPayload =
|
|
8858
|
-
var sortRulesPayload =
|
|
8856
|
+
var listTabPayload = chunkT5PM73EF_js.listViewTabSchema;
|
|
8857
|
+
var filterGroupPayload = chunkT5PM73EF_js.filterGroupSchema;
|
|
8858
|
+
var sortRulesPayload = chunkT5PM73EF_js.sortsSchema;
|
|
8859
8859
|
function setOnTab(type, key, valueSchema, describe) {
|
|
8860
8860
|
const schema = z2.z.object({ ...listTabBase, type: z2.z.literal(type), value: valueSchema });
|
|
8861
8861
|
return defineOperation({
|
|
@@ -8884,7 +8884,7 @@ var addListTab = defineOperation({
|
|
|
8884
8884
|
apply: (state, op) => mapView(state, op.viewId, (view) => {
|
|
8885
8885
|
const tabs = view.config.tabs ?? [];
|
|
8886
8886
|
if (tabs.some((t) => t.id === op.tab.id)) {
|
|
8887
|
-
throw new
|
|
8887
|
+
throw new chunk4KMUATDG_js.ValidationError(
|
|
8888
8888
|
`List tab "${op.tab.id}" already exists in view "${op.viewId}"`,
|
|
8889
8889
|
[]
|
|
8890
8890
|
);
|
|
@@ -8905,7 +8905,7 @@ var removeListTab = defineOperation({
|
|
|
8905
8905
|
apply: (state, op) => mapView(state, op.viewId, (view) => {
|
|
8906
8906
|
const tabs = view.config.tabs ?? [];
|
|
8907
8907
|
if (!tabs.some((t) => t.id === op.tabId)) {
|
|
8908
|
-
throw new
|
|
8908
|
+
throw new chunk4KMUATDG_js.ValidationError(`List tab "${op.tabId}" is not in view "${op.viewId}"`, []);
|
|
8909
8909
|
}
|
|
8910
8910
|
return {
|
|
8911
8911
|
...view,
|
|
@@ -8921,9 +8921,9 @@ var updateListTabSchema = z2.z.object({
|
|
|
8921
8921
|
type: z2.z.literal("update_list_tab"),
|
|
8922
8922
|
changes: z2.z.object({
|
|
8923
8923
|
label: z2.z.string().min(1).optional(),
|
|
8924
|
-
icon:
|
|
8924
|
+
icon: chunkKAWYU7TE_js.iconNameSchema.optional(),
|
|
8925
8925
|
default: z2.z.boolean().optional(),
|
|
8926
|
-
visibility: z2.z.enum(
|
|
8926
|
+
visibility: z2.z.enum(chunkT5PM73EF_js.LIST_VIEW_TAB_VISIBILITIES).optional()
|
|
8927
8927
|
}).refine((c) => Object.keys(c).length > 0, "update_list_tab needs at least one change")
|
|
8928
8928
|
});
|
|
8929
8929
|
var updateListTabFocus = (op) => ({
|
|
@@ -8982,7 +8982,7 @@ var setLayout = defineOperation({
|
|
|
8982
8982
|
apply: (state, op) => mapListTab(state, op.viewId, op.tabId, (tab) => {
|
|
8983
8983
|
if (op.value !== "kanban") return { ...withoutKanbanKeys(tab), layout: op.value };
|
|
8984
8984
|
if (tab.groupByAttribute === void 0) {
|
|
8985
|
-
throw new
|
|
8985
|
+
throw new chunk4KMUATDG_js.ValidationError(
|
|
8986
8986
|
`List tab "${op.tabId}" cannot switch to kanban without a group attribute \u2014 use set_group_by, which switches the layout itself`,
|
|
8987
8987
|
[]
|
|
8988
8988
|
);
|
|
@@ -9057,7 +9057,7 @@ var setDescriptionAttribute = setOnTab(
|
|
|
9057
9057
|
var setDisplayAttributes = setOnTab(
|
|
9058
9058
|
"set_display_attributes",
|
|
9059
9059
|
"displayAttributes",
|
|
9060
|
-
|
|
9060
|
+
chunkT5PM73EF_js.displayAttributesSchema.nullable(),
|
|
9061
9061
|
(value) => `Affiche ${Array.isArray(value) ? value.length : 0} attribut(s)`
|
|
9062
9062
|
);
|
|
9063
9063
|
var setDefaultFiltersSchema = z2.z.object({
|
|
@@ -9136,7 +9136,7 @@ function toDraftableAttribute(attribute, objectId) {
|
|
|
9136
9136
|
// src/architect/operations/schema.ts
|
|
9137
9137
|
function requireObject(state, objectId) {
|
|
9138
9138
|
if (!state.objects.some((o) => o.id === objectId)) {
|
|
9139
|
-
throw new
|
|
9139
|
+
throw new chunk4KMUATDG_js.ValidationError(`Object "${objectId}" is not in the draftable state`, []);
|
|
9140
9140
|
}
|
|
9141
9141
|
}
|
|
9142
9142
|
function objectFocus(op) {
|
|
@@ -9168,10 +9168,10 @@ var addObject = defineOperation({
|
|
|
9168
9168
|
schema: addObjectSchema,
|
|
9169
9169
|
apply: (state, op) => {
|
|
9170
9170
|
if (state.objects.some((o) => o.name === op.name)) {
|
|
9171
|
-
throw new
|
|
9171
|
+
throw new chunk4KMUATDG_js.ValidationError(`Object "${op.name}" already exists`, []);
|
|
9172
9172
|
}
|
|
9173
9173
|
if (state.objects.some((o) => o.id === op.objectId)) {
|
|
9174
|
-
throw new
|
|
9174
|
+
throw new chunk4KMUATDG_js.ValidationError(`Object id "${op.objectId}" is already taken`, []);
|
|
9175
9175
|
}
|
|
9176
9176
|
const created = {
|
|
9177
9177
|
id: op.objectId,
|
|
@@ -9246,9 +9246,9 @@ var addAttributeSchema = z2.z.object({
|
|
|
9246
9246
|
config: z2.z.record(z2.z.string(), z2.z.unknown()).optional()
|
|
9247
9247
|
}).superRefine((op, ctx) => {
|
|
9248
9248
|
try {
|
|
9249
|
-
|
|
9249
|
+
chunkKAWYU7TE_js.parseAttributeConfigForCreate(op.attributeType, op.config ?? {});
|
|
9250
9250
|
} catch (error) {
|
|
9251
|
-
if (error instanceof
|
|
9251
|
+
if (error instanceof chunk4KMUATDG_js.ValidationError) {
|
|
9252
9252
|
for (const detail of error.errors) {
|
|
9253
9253
|
ctx.addIssue({
|
|
9254
9254
|
code: "custom",
|
|
@@ -9267,7 +9267,7 @@ var addAttribute = defineOperation({
|
|
|
9267
9267
|
apply: (state, op) => {
|
|
9268
9268
|
requireObject(state, op.objectId);
|
|
9269
9269
|
if (state.attributes.some((a) => a.objectId === op.objectId && a.name === op.name)) {
|
|
9270
|
-
throw new
|
|
9270
|
+
throw new chunk4KMUATDG_js.ValidationError(
|
|
9271
9271
|
`Attribute "${op.name}" already exists on object "${op.objectId}"`,
|
|
9272
9272
|
[]
|
|
9273
9273
|
);
|
|
@@ -9303,7 +9303,7 @@ var updateAttribute = defineOperation({
|
|
|
9303
9303
|
schema: updateAttributeSchema,
|
|
9304
9304
|
apply: (state, op) => {
|
|
9305
9305
|
if (!state.attributes.some((a) => a.id === op.attributeId)) {
|
|
9306
|
-
throw new
|
|
9306
|
+
throw new chunk4KMUATDG_js.ValidationError(`Attribute "${op.attributeId}" is not in the draftable state`, []);
|
|
9307
9307
|
}
|
|
9308
9308
|
return {
|
|
9309
9309
|
...state,
|
|
@@ -9330,13 +9330,13 @@ var removeAttribute = defineOperation({
|
|
|
9330
9330
|
apply: (state, op) => {
|
|
9331
9331
|
const removed = state.attributes.find((a) => a.id === op.attributeId);
|
|
9332
9332
|
if (!removed) {
|
|
9333
|
-
throw new
|
|
9333
|
+
throw new chunk4KMUATDG_js.ValidationError(`Attribute "${op.attributeId}" is not in the draftable state`, []);
|
|
9334
9334
|
}
|
|
9335
9335
|
const user2 = state.sampleRecords.find(
|
|
9336
9336
|
(r) => r.objectId === removed.objectId && removed.name in r.values
|
|
9337
9337
|
);
|
|
9338
9338
|
if (user2) {
|
|
9339
|
-
throw new
|
|
9339
|
+
throw new chunk4KMUATDG_js.ValidationError(
|
|
9340
9340
|
`Attribute "${removed.name}" is still used by sample record "${user2.id}"`,
|
|
9341
9341
|
[]
|
|
9342
9342
|
);
|
|
@@ -9351,15 +9351,15 @@ var removeAttribute = defineOperation({
|
|
|
9351
9351
|
function assertSampleValue(recordId, key, attribute, value) {
|
|
9352
9352
|
const reconstructed = toAttribute(attribute);
|
|
9353
9353
|
try {
|
|
9354
|
-
|
|
9354
|
+
chunkHURC6CW3_js.createAttributeValidator(reconstructed);
|
|
9355
9355
|
} catch {
|
|
9356
9356
|
return;
|
|
9357
9357
|
}
|
|
9358
|
-
const result =
|
|
9358
|
+
const result = chunkHURC6CW3_js.validateAttribute(reconstructed, value);
|
|
9359
9359
|
if (result.success) return;
|
|
9360
9360
|
const errors = result.errors ?? [];
|
|
9361
9361
|
const detail = errors.map((error) => error.message).join(", ");
|
|
9362
|
-
throw new
|
|
9362
|
+
throw new chunk4KMUATDG_js.ValidationError(
|
|
9363
9363
|
`Sample record "${recordId}" has an invalid value for "${key}": ${detail}`,
|
|
9364
9364
|
errors.map((error) => ({ path: error.path, message: error.message }))
|
|
9365
9365
|
);
|
|
@@ -9368,7 +9368,7 @@ function assertRequiredCovered(recordId, attribute, values) {
|
|
|
9368
9368
|
if (attribute.config?.required !== true) return;
|
|
9369
9369
|
if (attribute.config?.defaultValue !== void 0) return;
|
|
9370
9370
|
if (attribute.name in values && values[attribute.name] !== void 0) return;
|
|
9371
|
-
throw new
|
|
9371
|
+
throw new chunk4KMUATDG_js.ValidationError(
|
|
9372
9372
|
`Sample record "${recordId}" is missing a value for required attribute "${attribute.name}"`,
|
|
9373
9373
|
[]
|
|
9374
9374
|
);
|
|
@@ -9386,7 +9386,7 @@ var addSampleRecord = defineOperation({
|
|
|
9386
9386
|
apply: (state, op) => {
|
|
9387
9387
|
requireObject(state, op.objectId);
|
|
9388
9388
|
if (state.sampleRecords.some((r) => r.id === op.recordId)) {
|
|
9389
|
-
throw new
|
|
9389
|
+
throw new chunk4KMUATDG_js.ValidationError(`Sample record "${op.recordId}" already exists`, []);
|
|
9390
9390
|
}
|
|
9391
9391
|
const known = new Map(
|
|
9392
9392
|
state.attributes.filter((a) => a.objectId === op.objectId).map((a) => [a.name, a])
|
|
@@ -9394,7 +9394,7 @@ var addSampleRecord = defineOperation({
|
|
|
9394
9394
|
for (const [key, value] of Object.entries(op.values)) {
|
|
9395
9395
|
const attribute = known.get(key);
|
|
9396
9396
|
if (!attribute) {
|
|
9397
|
-
throw new
|
|
9397
|
+
throw new chunk4KMUATDG_js.ValidationError(
|
|
9398
9398
|
`Sample record "${op.recordId}" uses unknown attribute "${key}"`,
|
|
9399
9399
|
[]
|
|
9400
9400
|
);
|
|
@@ -9428,7 +9428,7 @@ var removeSampleRecord = defineOperation({
|
|
|
9428
9428
|
schema: removeSampleRecordSchema,
|
|
9429
9429
|
apply: (state, op) => {
|
|
9430
9430
|
if (!state.sampleRecords.some((r) => r.id === op.recordId && r.objectId === op.objectId)) {
|
|
9431
|
-
throw new
|
|
9431
|
+
throw new chunk4KMUATDG_js.ValidationError(
|
|
9432
9432
|
`Sample record "${op.recordId}" is not in object "${op.objectId}"`,
|
|
9433
9433
|
[]
|
|
9434
9434
|
);
|
|
@@ -9459,7 +9459,7 @@ function build() {
|
|
|
9459
9459
|
...LIST_VIEW_OPERATIONS
|
|
9460
9460
|
]) {
|
|
9461
9461
|
if (map.has(definition.type)) {
|
|
9462
|
-
throw new
|
|
9462
|
+
throw new chunk4KMUATDG_js.DuplicateError("architect operation", definition.type);
|
|
9463
9463
|
}
|
|
9464
9464
|
map.set(definition.type, definition);
|
|
9465
9465
|
}
|
|
@@ -9472,7 +9472,7 @@ var ALL_OPERATION_TYPES = [...OPERATION_REGISTRY.keys()];
|
|
|
9472
9472
|
function defOf(operation) {
|
|
9473
9473
|
const definition = OPERATION_REGISTRY.get(operation.type);
|
|
9474
9474
|
if (!definition) {
|
|
9475
|
-
throw new
|
|
9475
|
+
throw new chunk4KMUATDG_js.ValidationError(
|
|
9476
9476
|
`Operation "${operation.id}" has unknown type "${operation.type}"`,
|
|
9477
9477
|
[]
|
|
9478
9478
|
);
|
|
@@ -9493,19 +9493,19 @@ function describeOperations(operations, ctx) {
|
|
|
9493
9493
|
}
|
|
9494
9494
|
function parseOperation(candidate) {
|
|
9495
9495
|
if (typeof candidate !== "object" || candidate === null || !("type" in candidate)) {
|
|
9496
|
-
throw new
|
|
9496
|
+
throw new chunk4KMUATDG_js.ValidationError("An operation must be an object carrying a type", []);
|
|
9497
9497
|
}
|
|
9498
9498
|
const type = candidate.type;
|
|
9499
9499
|
if (typeof type !== "string") {
|
|
9500
|
-
throw new
|
|
9500
|
+
throw new chunk4KMUATDG_js.ValidationError("An operation's type must be a string", []);
|
|
9501
9501
|
}
|
|
9502
9502
|
const definition = OPERATION_REGISTRY.get(type);
|
|
9503
9503
|
if (!definition) {
|
|
9504
|
-
throw new
|
|
9504
|
+
throw new chunk4KMUATDG_js.ValidationError(`Unknown operation type "${type}"`, []);
|
|
9505
9505
|
}
|
|
9506
9506
|
const parsed = definition.schema.safeParse(candidate);
|
|
9507
9507
|
if (!parsed.success) {
|
|
9508
|
-
throw new
|
|
9508
|
+
throw new chunk4KMUATDG_js.ValidationError(
|
|
9509
9509
|
`Operation "${type}" is invalid: ${parsed.error.issues.map((i) => `${i.path.join(".")} ${i.message}`).join("; ")}`,
|
|
9510
9510
|
[]
|
|
9511
9511
|
);
|
|
@@ -9518,16 +9518,16 @@ function toJsonSchema(schema) {
|
|
|
9518
9518
|
function describeOperationInput(type) {
|
|
9519
9519
|
const definition = OPERATION_REGISTRY.get(type);
|
|
9520
9520
|
if (!definition) {
|
|
9521
|
-
throw new
|
|
9521
|
+
throw new chunk4KMUATDG_js.ValidationError(`Unknown operation type "${type}"`, []);
|
|
9522
9522
|
}
|
|
9523
9523
|
return toJsonSchema(definition.schema);
|
|
9524
9524
|
}
|
|
9525
9525
|
function describeAttributeConfig(type) {
|
|
9526
9526
|
const draftable = DRAFTABLE_ATTRIBUTE_TYPES.find((candidate) => candidate === type);
|
|
9527
9527
|
if (!draftable) {
|
|
9528
|
-
throw new
|
|
9528
|
+
throw new chunk4KMUATDG_js.ValidationError(`Unknown attribute type "${type}"`, []);
|
|
9529
9529
|
}
|
|
9530
|
-
return toJsonSchema(
|
|
9530
|
+
return toJsonSchema(chunkKAWYU7TE_js.getAttributeConfigWriteSchema(draftable));
|
|
9531
9531
|
}
|
|
9532
9532
|
function listDescribableNames() {
|
|
9533
9533
|
return { operations: [...ALL_OPERATION_TYPES], attributeTypes: [...DRAFTABLE_ATTRIBUTE_TYPES] };
|
|
@@ -9656,387 +9656,387 @@ function fromDraftableView(original, drafted) {
|
|
|
9656
9656
|
|
|
9657
9657
|
Object.defineProperty(exports, "asTenantId", {
|
|
9658
9658
|
enumerable: true,
|
|
9659
|
-
get: function () { return
|
|
9659
|
+
get: function () { return chunkDVXGSTWJ_js.asTenantId; }
|
|
9660
9660
|
});
|
|
9661
9661
|
Object.defineProperty(exports, "asUserId", {
|
|
9662
9662
|
enumerable: true,
|
|
9663
|
-
get: function () { return
|
|
9663
|
+
get: function () { return chunkDVXGSTWJ_js.asUserId; }
|
|
9664
9664
|
});
|
|
9665
9665
|
Object.defineProperty(exports, "canonicalStringify", {
|
|
9666
9666
|
enumerable: true,
|
|
9667
|
-
get: function () { return
|
|
9667
|
+
get: function () { return chunkDVXGSTWJ_js.canonicalStringify; }
|
|
9668
9668
|
});
|
|
9669
9669
|
Object.defineProperty(exports, "deepEqual", {
|
|
9670
9670
|
enumerable: true,
|
|
9671
|
-
get: function () { return
|
|
9671
|
+
get: function () { return chunkDVXGSTWJ_js.deepEqual; }
|
|
9672
9672
|
});
|
|
9673
9673
|
Object.defineProperty(exports, "generateId", {
|
|
9674
9674
|
enumerable: true,
|
|
9675
|
-
get: function () { return
|
|
9675
|
+
get: function () { return chunkDVXGSTWJ_js.generateId; }
|
|
9676
9676
|
});
|
|
9677
9677
|
Object.defineProperty(exports, "indexBy", {
|
|
9678
9678
|
enumerable: true,
|
|
9679
|
-
get: function () { return
|
|
9679
|
+
get: function () { return chunkDVXGSTWJ_js.indexBy; }
|
|
9680
9680
|
});
|
|
9681
9681
|
Object.defineProperty(exports, "ATTRIBUTE_FILTER_OPERATORS", {
|
|
9682
9682
|
enumerable: true,
|
|
9683
|
-
get: function () { return
|
|
9683
|
+
get: function () { return chunkT5PM73EF_js.ATTRIBUTE_FILTER_OPERATORS; }
|
|
9684
9684
|
});
|
|
9685
9685
|
Object.defineProperty(exports, "LIST_TAB_KANBAN_KEYS", {
|
|
9686
9686
|
enumerable: true,
|
|
9687
|
-
get: function () { return
|
|
9687
|
+
get: function () { return chunkT5PM73EF_js.LIST_TAB_KANBAN_KEYS; }
|
|
9688
9688
|
});
|
|
9689
9689
|
Object.defineProperty(exports, "LIST_TAB_TABLE_KEYS", {
|
|
9690
9690
|
enumerable: true,
|
|
9691
|
-
get: function () { return
|
|
9691
|
+
get: function () { return chunkT5PM73EF_js.LIST_TAB_TABLE_KEYS; }
|
|
9692
9692
|
});
|
|
9693
9693
|
Object.defineProperty(exports, "LIST_VIEW_TAB_VISIBILITIES", {
|
|
9694
9694
|
enumerable: true,
|
|
9695
|
-
get: function () { return
|
|
9695
|
+
get: function () { return chunkT5PM73EF_js.LIST_VIEW_TAB_VISIBILITIES; }
|
|
9696
9696
|
});
|
|
9697
9697
|
Object.defineProperty(exports, "LOCATION_FILTER_PROPERTIES", {
|
|
9698
9698
|
enumerable: true,
|
|
9699
|
-
get: function () { return
|
|
9699
|
+
get: function () { return chunkT5PM73EF_js.LOCATION_FILTER_PROPERTIES; }
|
|
9700
9700
|
});
|
|
9701
9701
|
Object.defineProperty(exports, "NO_VALUE_OPERATORS", {
|
|
9702
9702
|
enumerable: true,
|
|
9703
|
-
get: function () { return
|
|
9703
|
+
get: function () { return chunkT5PM73EF_js.NO_VALUE_OPERATORS; }
|
|
9704
9704
|
});
|
|
9705
9705
|
Object.defineProperty(exports, "OPERATORS_BY_TYPE", {
|
|
9706
9706
|
enumerable: true,
|
|
9707
|
-
get: function () { return
|
|
9707
|
+
get: function () { return chunkT5PM73EF_js.OPERATORS_BY_TYPE; }
|
|
9708
9708
|
});
|
|
9709
9709
|
Object.defineProperty(exports, "REMOVED_OPERATOR_REPLACEMENTS", {
|
|
9710
9710
|
enumerable: true,
|
|
9711
|
-
get: function () { return
|
|
9711
|
+
get: function () { return chunkT5PM73EF_js.REMOVED_OPERATOR_REPLACEMENTS; }
|
|
9712
9712
|
});
|
|
9713
9713
|
Object.defineProperty(exports, "RESERVED_ATTRIBUTE_NAMES", {
|
|
9714
9714
|
enumerable: true,
|
|
9715
|
-
get: function () { return
|
|
9715
|
+
get: function () { return chunkT5PM73EF_js.RESERVED_ATTRIBUTE_NAMES; }
|
|
9716
9716
|
});
|
|
9717
9717
|
Object.defineProperty(exports, "RESERVED_OBJECT_NAMES", {
|
|
9718
9718
|
enumerable: true,
|
|
9719
|
-
get: function () { return
|
|
9719
|
+
get: function () { return chunkT5PM73EF_js.RESERVED_OBJECT_NAMES; }
|
|
9720
9720
|
});
|
|
9721
9721
|
Object.defineProperty(exports, "RESOURCE_VISIBILITIES", {
|
|
9722
9722
|
enumerable: true,
|
|
9723
|
-
get: function () { return
|
|
9723
|
+
get: function () { return chunkT5PM73EF_js.RESOURCE_VISIBILITIES; }
|
|
9724
9724
|
});
|
|
9725
9725
|
Object.defineProperty(exports, "SYNONYM_ALIASES", {
|
|
9726
9726
|
enumerable: true,
|
|
9727
|
-
get: function () { return
|
|
9727
|
+
get: function () { return chunkT5PM73EF_js.SYNONYM_ALIASES; }
|
|
9728
9728
|
});
|
|
9729
9729
|
Object.defineProperty(exports, "SYSTEM_ATTRIBUTES", {
|
|
9730
9730
|
enumerable: true,
|
|
9731
|
-
get: function () { return
|
|
9731
|
+
get: function () { return chunkT5PM73EF_js.SYSTEM_ATTRIBUTES; }
|
|
9732
9732
|
});
|
|
9733
9733
|
Object.defineProperty(exports, "SYSTEM_ATTRIBUTE_I18N_KEYS", {
|
|
9734
9734
|
enumerable: true,
|
|
9735
|
-
get: function () { return
|
|
9735
|
+
get: function () { return chunkT5PM73EF_js.SYSTEM_ATTRIBUTE_I18N_KEYS; }
|
|
9736
9736
|
});
|
|
9737
9737
|
Object.defineProperty(exports, "SYSTEM_FIELD_NAMES", {
|
|
9738
9738
|
enumerable: true,
|
|
9739
|
-
get: function () { return
|
|
9739
|
+
get: function () { return chunkT5PM73EF_js.SYSTEM_FIELD_NAMES; }
|
|
9740
9740
|
});
|
|
9741
9741
|
Object.defineProperty(exports, "SYSTEM_FILTER_ATTRIBUTE_TYPES", {
|
|
9742
9742
|
enumerable: true,
|
|
9743
|
-
get: function () { return
|
|
9743
|
+
get: function () { return chunkT5PM73EF_js.SYSTEM_FILTER_ATTRIBUTE_TYPES; }
|
|
9744
9744
|
});
|
|
9745
9745
|
Object.defineProperty(exports, "canonicalizeFilterValue", {
|
|
9746
9746
|
enumerable: true,
|
|
9747
|
-
get: function () { return
|
|
9747
|
+
get: function () { return chunkT5PM73EF_js.canonicalizeFilterValue; }
|
|
9748
9748
|
});
|
|
9749
9749
|
Object.defineProperty(exports, "collectQualifiedRuleIssues", {
|
|
9750
9750
|
enumerable: true,
|
|
9751
|
-
get: function () { return
|
|
9751
|
+
get: function () { return chunkT5PM73EF_js.collectQualifiedRuleIssues; }
|
|
9752
9752
|
});
|
|
9753
9753
|
Object.defineProperty(exports, "columnsSchema", {
|
|
9754
9754
|
enumerable: true,
|
|
9755
|
-
get: function () { return
|
|
9755
|
+
get: function () { return chunkT5PM73EF_js.columnsSchema; }
|
|
9756
9756
|
});
|
|
9757
9757
|
Object.defineProperty(exports, "currentActor", {
|
|
9758
9758
|
enumerable: true,
|
|
9759
|
-
get: function () { return
|
|
9759
|
+
get: function () { return chunkT5PM73EF_js.currentActor; }
|
|
9760
9760
|
});
|
|
9761
9761
|
Object.defineProperty(exports, "detailTabDraftSchema", {
|
|
9762
9762
|
enumerable: true,
|
|
9763
|
-
get: function () { return
|
|
9763
|
+
get: function () { return chunkT5PM73EF_js.detailTabDraftSchema; }
|
|
9764
9764
|
});
|
|
9765
9765
|
Object.defineProperty(exports, "detailTabSchema", {
|
|
9766
9766
|
enumerable: true,
|
|
9767
|
-
get: function () { return
|
|
9767
|
+
get: function () { return chunkT5PM73EF_js.detailTabSchema; }
|
|
9768
9768
|
});
|
|
9769
9769
|
Object.defineProperty(exports, "detailViewConfigSchema", {
|
|
9770
9770
|
enumerable: true,
|
|
9771
|
-
get: function () { return
|
|
9771
|
+
get: function () { return chunkT5PM73EF_js.detailViewConfigSchema; }
|
|
9772
9772
|
});
|
|
9773
9773
|
Object.defineProperty(exports, "displayAttributesSchema", {
|
|
9774
9774
|
enumerable: true,
|
|
9775
|
-
get: function () { return
|
|
9775
|
+
get: function () { return chunkT5PM73EF_js.displayAttributesSchema; }
|
|
9776
9776
|
});
|
|
9777
9777
|
Object.defineProperty(exports, "extractCurrencyFilterValue", {
|
|
9778
9778
|
enumerable: true,
|
|
9779
|
-
get: function () { return
|
|
9779
|
+
get: function () { return chunkT5PM73EF_js.extractCurrencyFilterValue; }
|
|
9780
9780
|
});
|
|
9781
9781
|
Object.defineProperty(exports, "extractFilterValue", {
|
|
9782
9782
|
enumerable: true,
|
|
9783
|
-
get: function () { return
|
|
9783
|
+
get: function () { return chunkT5PM73EF_js.extractFilterValue; }
|
|
9784
9784
|
});
|
|
9785
9785
|
Object.defineProperty(exports, "fieldSchema", {
|
|
9786
9786
|
enumerable: true,
|
|
9787
|
-
get: function () { return
|
|
9787
|
+
get: function () { return chunkT5PM73EF_js.fieldSchema; }
|
|
9788
9788
|
});
|
|
9789
9789
|
Object.defineProperty(exports, "fieldShape", {
|
|
9790
9790
|
enumerable: true,
|
|
9791
|
-
get: function () { return
|
|
9791
|
+
get: function () { return chunkT5PM73EF_js.fieldShape; }
|
|
9792
9792
|
});
|
|
9793
9793
|
Object.defineProperty(exports, "fieldSlotSchema", {
|
|
9794
9794
|
enumerable: true,
|
|
9795
|
-
get: function () { return
|
|
9795
|
+
get: function () { return chunkT5PM73EF_js.fieldSlotSchema; }
|
|
9796
9796
|
});
|
|
9797
9797
|
Object.defineProperty(exports, "filterGroupSchema", {
|
|
9798
9798
|
enumerable: true,
|
|
9799
|
-
get: function () { return
|
|
9799
|
+
get: function () { return chunkT5PM73EF_js.filterGroupSchema; }
|
|
9800
9800
|
});
|
|
9801
9801
|
Object.defineProperty(exports, "filterStateSchema", {
|
|
9802
9802
|
enumerable: true,
|
|
9803
|
-
get: function () { return
|
|
9803
|
+
get: function () { return chunkT5PM73EF_js.filterStateSchema; }
|
|
9804
9804
|
});
|
|
9805
9805
|
Object.defineProperty(exports, "getAttributeCapabilities", {
|
|
9806
9806
|
enumerable: true,
|
|
9807
|
-
get: function () { return
|
|
9807
|
+
get: function () { return chunkT5PM73EF_js.getAttributeCapabilities; }
|
|
9808
9808
|
});
|
|
9809
9809
|
Object.defineProperty(exports, "getAttributeFilterOperators", {
|
|
9810
9810
|
enumerable: true,
|
|
9811
|
-
get: function () { return
|
|
9811
|
+
get: function () { return chunkT5PM73EF_js.getAttributeFilterOperators; }
|
|
9812
9812
|
});
|
|
9813
9813
|
Object.defineProperty(exports, "getOperatorPolarity", {
|
|
9814
9814
|
enumerable: true,
|
|
9815
|
-
get: function () { return
|
|
9815
|
+
get: function () { return chunkT5PM73EF_js.getOperatorPolarity; }
|
|
9816
9816
|
});
|
|
9817
9817
|
Object.defineProperty(exports, "getRollupFilterOperators", {
|
|
9818
9818
|
enumerable: true,
|
|
9819
|
-
get: function () { return
|
|
9819
|
+
get: function () { return chunkT5PM73EF_js.getRollupFilterOperators; }
|
|
9820
9820
|
});
|
|
9821
9821
|
Object.defineProperty(exports, "getSystemAttributeI18nKey", {
|
|
9822
9822
|
enumerable: true,
|
|
9823
|
-
get: function () { return
|
|
9823
|
+
get: function () { return chunkT5PM73EF_js.getSystemAttributeI18nKey; }
|
|
9824
9824
|
});
|
|
9825
9825
|
Object.defineProperty(exports, "getSystemAttributeList", {
|
|
9826
9826
|
enumerable: true,
|
|
9827
|
-
get: function () { return
|
|
9827
|
+
get: function () { return chunkT5PM73EF_js.getSystemAttributeList; }
|
|
9828
9828
|
});
|
|
9829
9829
|
Object.defineProperty(exports, "groupWriteSchema", {
|
|
9830
9830
|
enumerable: true,
|
|
9831
|
-
get: function () { return
|
|
9831
|
+
get: function () { return chunkT5PM73EF_js.groupWriteSchema; }
|
|
9832
9832
|
});
|
|
9833
9833
|
Object.defineProperty(exports, "inverseSourceSchema", {
|
|
9834
9834
|
enumerable: true,
|
|
9835
|
-
get: function () { return
|
|
9835
|
+
get: function () { return chunkT5PM73EF_js.inverseSourceSchema; }
|
|
9836
9836
|
});
|
|
9837
9837
|
Object.defineProperty(exports, "isAttributeFilterable", {
|
|
9838
9838
|
enumerable: true,
|
|
9839
|
-
get: function () { return
|
|
9839
|
+
get: function () { return chunkT5PM73EF_js.isAttributeFilterable; }
|
|
9840
9840
|
});
|
|
9841
9841
|
Object.defineProperty(exports, "isAttributeGroupable", {
|
|
9842
9842
|
enumerable: true,
|
|
9843
|
-
get: function () { return
|
|
9843
|
+
get: function () { return chunkT5PM73EF_js.isAttributeGroupable; }
|
|
9844
9844
|
});
|
|
9845
9845
|
Object.defineProperty(exports, "isAttributeKanbanGroupable", {
|
|
9846
9846
|
enumerable: true,
|
|
9847
|
-
get: function () { return
|
|
9847
|
+
get: function () { return chunkT5PM73EF_js.isAttributeKanbanGroupable; }
|
|
9848
9848
|
});
|
|
9849
9849
|
Object.defineProperty(exports, "isAttributeSearchable", {
|
|
9850
9850
|
enumerable: true,
|
|
9851
|
-
get: function () { return
|
|
9851
|
+
get: function () { return chunkT5PM73EF_js.isAttributeSearchable; }
|
|
9852
9852
|
});
|
|
9853
9853
|
Object.defineProperty(exports, "isDynamicValue", {
|
|
9854
9854
|
enumerable: true,
|
|
9855
|
-
get: function () { return
|
|
9855
|
+
get: function () { return chunkT5PM73EF_js.isDynamicValue; }
|
|
9856
9856
|
});
|
|
9857
9857
|
Object.defineProperty(exports, "isLocationFilterProperty", {
|
|
9858
9858
|
enumerable: true,
|
|
9859
|
-
get: function () { return
|
|
9859
|
+
get: function () { return chunkT5PM73EF_js.isLocationFilterProperty; }
|
|
9860
9860
|
});
|
|
9861
9861
|
Object.defineProperty(exports, "isLocationPartOperator", {
|
|
9862
9862
|
enumerable: true,
|
|
9863
|
-
get: function () { return
|
|
9863
|
+
get: function () { return chunkT5PM73EF_js.isLocationPartOperator; }
|
|
9864
9864
|
});
|
|
9865
9865
|
Object.defineProperty(exports, "isManagedSystemAttribute", {
|
|
9866
9866
|
enumerable: true,
|
|
9867
|
-
get: function () { return
|
|
9867
|
+
get: function () { return chunkT5PM73EF_js.isManagedSystemAttribute; }
|
|
9868
9868
|
});
|
|
9869
9869
|
Object.defineProperty(exports, "isNoValueOperator", {
|
|
9870
9870
|
enumerable: true,
|
|
9871
|
-
get: function () { return
|
|
9871
|
+
get: function () { return chunkT5PM73EF_js.isNoValueOperator; }
|
|
9872
9872
|
});
|
|
9873
9873
|
Object.defineProperty(exports, "isRelativeDateValue", {
|
|
9874
9874
|
enumerable: true,
|
|
9875
|
-
get: function () { return
|
|
9875
|
+
get: function () { return chunkT5PM73EF_js.isRelativeDateValue; }
|
|
9876
9876
|
});
|
|
9877
9877
|
Object.defineProperty(exports, "isSetMembershipOperator", {
|
|
9878
9878
|
enumerable: true,
|
|
9879
|
-
get: function () { return
|
|
9879
|
+
get: function () { return chunkT5PM73EF_js.isSetMembershipOperator; }
|
|
9880
9880
|
});
|
|
9881
9881
|
Object.defineProperty(exports, "listViewConfigSchema", {
|
|
9882
9882
|
enumerable: true,
|
|
9883
|
-
get: function () { return
|
|
9883
|
+
get: function () { return chunkT5PM73EF_js.listViewConfigSchema; }
|
|
9884
9884
|
});
|
|
9885
9885
|
Object.defineProperty(exports, "listViewTabSchema", {
|
|
9886
9886
|
enumerable: true,
|
|
9887
|
-
get: function () { return
|
|
9887
|
+
get: function () { return chunkT5PM73EF_js.listViewTabSchema; }
|
|
9888
9888
|
});
|
|
9889
9889
|
Object.defineProperty(exports, "normalizeFilterRule", {
|
|
9890
9890
|
enumerable: true,
|
|
9891
|
-
get: function () { return
|
|
9891
|
+
get: function () { return chunkT5PM73EF_js.normalizeFilterRule; }
|
|
9892
9892
|
});
|
|
9893
9893
|
Object.defineProperty(exports, "normalizeForEdgeRpc", {
|
|
9894
9894
|
enumerable: true,
|
|
9895
|
-
get: function () { return
|
|
9895
|
+
get: function () { return chunkT5PM73EF_js.normalizeForEdgeRpc; }
|
|
9896
9896
|
});
|
|
9897
9897
|
Object.defineProperty(exports, "normalizeOperator", {
|
|
9898
9898
|
enumerable: true,
|
|
9899
|
-
get: function () { return
|
|
9899
|
+
get: function () { return chunkT5PM73EF_js.normalizeOperator; }
|
|
9900
9900
|
});
|
|
9901
9901
|
Object.defineProperty(exports, "now", {
|
|
9902
9902
|
enumerable: true,
|
|
9903
|
-
get: function () { return
|
|
9903
|
+
get: function () { return chunkT5PM73EF_js.now; }
|
|
9904
9904
|
});
|
|
9905
9905
|
Object.defineProperty(exports, "parseResourceVisibility", {
|
|
9906
9906
|
enumerable: true,
|
|
9907
|
-
get: function () { return
|
|
9907
|
+
get: function () { return chunkT5PM73EF_js.parseResourceVisibility; }
|
|
9908
9908
|
});
|
|
9909
9909
|
Object.defineProperty(exports, "parseViewConfig", {
|
|
9910
9910
|
enumerable: true,
|
|
9911
|
-
get: function () { return
|
|
9911
|
+
get: function () { return chunkT5PM73EF_js.parseViewConfig; }
|
|
9912
9912
|
});
|
|
9913
9913
|
Object.defineProperty(exports, "relationSourceSchema", {
|
|
9914
9914
|
enumerable: true,
|
|
9915
|
-
get: function () { return
|
|
9915
|
+
get: function () { return chunkT5PM73EF_js.relationSourceSchema; }
|
|
9916
9916
|
});
|
|
9917
9917
|
Object.defineProperty(exports, "resolveEffectiveFilterType", {
|
|
9918
9918
|
enumerable: true,
|
|
9919
|
-
get: function () { return
|
|
9919
|
+
get: function () { return chunkT5PM73EF_js.resolveEffectiveFilterType; }
|
|
9920
9920
|
});
|
|
9921
9921
|
Object.defineProperty(exports, "resolveIsWithinBounds", {
|
|
9922
9922
|
enumerable: true,
|
|
9923
|
-
get: function () { return
|
|
9923
|
+
get: function () { return chunkT5PM73EF_js.resolveIsWithinBounds; }
|
|
9924
9924
|
});
|
|
9925
9925
|
Object.defineProperty(exports, "resolveUtcDayBounds", {
|
|
9926
9926
|
enumerable: true,
|
|
9927
|
-
get: function () { return
|
|
9927
|
+
get: function () { return chunkT5PM73EF_js.resolveUtcDayBounds; }
|
|
9928
9928
|
});
|
|
9929
9929
|
Object.defineProperty(exports, "sortsSchema", {
|
|
9930
9930
|
enumerable: true,
|
|
9931
|
-
get: function () { return
|
|
9931
|
+
get: function () { return chunkT5PM73EF_js.sortsSchema; }
|
|
9932
9932
|
});
|
|
9933
9933
|
Object.defineProperty(exports, "tableSourceSchema", {
|
|
9934
9934
|
enumerable: true,
|
|
9935
|
-
get: function () { return
|
|
9935
|
+
get: function () { return chunkT5PM73EF_js.tableSourceSchema; }
|
|
9936
9936
|
});
|
|
9937
9937
|
Object.defineProperty(exports, "toMultiValueOperator", {
|
|
9938
9938
|
enumerable: true,
|
|
9939
|
-
get: function () { return
|
|
9939
|
+
get: function () { return chunkT5PM73EF_js.toMultiValueOperator; }
|
|
9940
9940
|
});
|
|
9941
9941
|
Object.defineProperty(exports, "toUtcDayString", {
|
|
9942
9942
|
enumerable: true,
|
|
9943
|
-
get: function () { return
|
|
9943
|
+
get: function () { return chunkT5PM73EF_js.toUtcDayString; }
|
|
9944
9944
|
});
|
|
9945
9945
|
Object.defineProperty(exports, "today", {
|
|
9946
9946
|
enumerable: true,
|
|
9947
|
-
get: function () { return
|
|
9947
|
+
get: function () { return chunkT5PM73EF_js.today; }
|
|
9948
9948
|
});
|
|
9949
9949
|
Object.defineProperty(exports, "validateQualifiedRule", {
|
|
9950
9950
|
enumerable: true,
|
|
9951
|
-
get: function () { return
|
|
9951
|
+
get: function () { return chunkT5PM73EF_js.validateQualifiedRule; }
|
|
9952
9952
|
});
|
|
9953
9953
|
Object.defineProperty(exports, "viewConfigByTypeSchema", {
|
|
9954
9954
|
enumerable: true,
|
|
9955
|
-
get: function () { return
|
|
9955
|
+
get: function () { return chunkT5PM73EF_js.viewConfigByTypeSchema; }
|
|
9956
9956
|
});
|
|
9957
9957
|
Object.defineProperty(exports, "viewTypeSchema", {
|
|
9958
9958
|
enumerable: true,
|
|
9959
|
-
get: function () { return
|
|
9959
|
+
get: function () { return chunkT5PM73EF_js.viewTypeSchema; }
|
|
9960
9960
|
});
|
|
9961
9961
|
Object.defineProperty(exports, "createFormAttributeValidator", {
|
|
9962
9962
|
enumerable: true,
|
|
9963
|
-
get: function () { return
|
|
9963
|
+
get: function () { return chunkHURC6CW3_js.createFormAttributeValidator; }
|
|
9964
9964
|
});
|
|
9965
9965
|
Object.defineProperty(exports, "isNullishOrEmptyString", {
|
|
9966
9966
|
enumerable: true,
|
|
9967
|
-
get: function () { return
|
|
9967
|
+
get: function () { return chunkHURC6CW3_js.isNullishOrEmptyString; }
|
|
9968
9968
|
});
|
|
9969
9969
|
Object.defineProperty(exports, "isValuePresent", {
|
|
9970
9970
|
enumerable: true,
|
|
9971
|
-
get: function () { return
|
|
9971
|
+
get: function () { return chunkHURC6CW3_js.isValuePresent; }
|
|
9972
9972
|
});
|
|
9973
9973
|
Object.defineProperty(exports, "rejectUnknownAttributesOrThrow", {
|
|
9974
9974
|
enumerable: true,
|
|
9975
|
-
get: function () { return
|
|
9975
|
+
get: function () { return chunkHURC6CW3_js.rejectUnknownAttributesOrThrow; }
|
|
9976
9976
|
});
|
|
9977
9977
|
Object.defineProperty(exports, "validateDraft", {
|
|
9978
9978
|
enumerable: true,
|
|
9979
|
-
get: function () { return
|
|
9979
|
+
get: function () { return chunkHURC6CW3_js.validateDraft; }
|
|
9980
9980
|
});
|
|
9981
9981
|
Object.defineProperty(exports, "validateDraftOrThrow", {
|
|
9982
9982
|
enumerable: true,
|
|
9983
|
-
get: function () { return
|
|
9983
|
+
get: function () { return chunkHURC6CW3_js.validateDraftOrThrow; }
|
|
9984
9984
|
});
|
|
9985
9985
|
Object.defineProperty(exports, "validateObject", {
|
|
9986
9986
|
enumerable: true,
|
|
9987
|
-
get: function () { return
|
|
9987
|
+
get: function () { return chunkHURC6CW3_js.validateObject; }
|
|
9988
9988
|
});
|
|
9989
9989
|
Object.defineProperty(exports, "validateObjectOrThrow", {
|
|
9990
9990
|
enumerable: true,
|
|
9991
|
-
get: function () { return
|
|
9991
|
+
get: function () { return chunkHURC6CW3_js.validateObjectOrThrow; }
|
|
9992
9992
|
});
|
|
9993
9993
|
Object.defineProperty(exports, "ComputedFormulaParseError", {
|
|
9994
9994
|
enumerable: true,
|
|
9995
|
-
get: function () { return
|
|
9995
|
+
get: function () { return chunkKAWYU7TE_js.ComputedFormulaParseError; }
|
|
9996
9996
|
});
|
|
9997
9997
|
Object.defineProperty(exports, "SCHEMA_LIMITS", {
|
|
9998
9998
|
enumerable: true,
|
|
9999
|
-
get: function () { return
|
|
9999
|
+
get: function () { return chunkKAWYU7TE_js.SCHEMA_LIMITS; }
|
|
10000
10000
|
});
|
|
10001
10001
|
Object.defineProperty(exports, "colorIdSchema", {
|
|
10002
10002
|
enumerable: true,
|
|
10003
|
-
get: function () { return
|
|
10003
|
+
get: function () { return chunkKAWYU7TE_js.colorIdSchema; }
|
|
10004
10004
|
});
|
|
10005
10005
|
Object.defineProperty(exports, "iconNameSchema", {
|
|
10006
10006
|
enumerable: true,
|
|
10007
|
-
get: function () { return
|
|
10007
|
+
get: function () { return chunkKAWYU7TE_js.iconNameSchema; }
|
|
10008
10008
|
});
|
|
10009
10009
|
Object.defineProperty(exports, "multiselectOptionWriteSchema", {
|
|
10010
10010
|
enumerable: true,
|
|
10011
|
-
get: function () { return
|
|
10011
|
+
get: function () { return chunkKAWYU7TE_js.multiselectOptionWriteSchema; }
|
|
10012
10012
|
});
|
|
10013
10013
|
Object.defineProperty(exports, "parseAttributeConfig", {
|
|
10014
10014
|
enumerable: true,
|
|
10015
|
-
get: function () { return
|
|
10015
|
+
get: function () { return chunkKAWYU7TE_js.parseAttributeConfig; }
|
|
10016
10016
|
});
|
|
10017
10017
|
Object.defineProperty(exports, "parseAttributeConfigForCreate", {
|
|
10018
10018
|
enumerable: true,
|
|
10019
|
-
get: function () { return
|
|
10019
|
+
get: function () { return chunkKAWYU7TE_js.parseAttributeConfigForCreate; }
|
|
10020
10020
|
});
|
|
10021
10021
|
Object.defineProperty(exports, "parseAttributeConfigForUpdate", {
|
|
10022
10022
|
enumerable: true,
|
|
10023
|
-
get: function () { return
|
|
10023
|
+
get: function () { return chunkKAWYU7TE_js.parseAttributeConfigForUpdate; }
|
|
10024
10024
|
});
|
|
10025
10025
|
Object.defineProperty(exports, "parseComputedFormula", {
|
|
10026
10026
|
enumerable: true,
|
|
10027
|
-
get: function () { return
|
|
10027
|
+
get: function () { return chunkKAWYU7TE_js.parseComputedFormula; }
|
|
10028
10028
|
});
|
|
10029
10029
|
Object.defineProperty(exports, "selectOptionWriteSchema", {
|
|
10030
10030
|
enumerable: true,
|
|
10031
|
-
get: function () { return
|
|
10031
|
+
get: function () { return chunkKAWYU7TE_js.selectOptionWriteSchema; }
|
|
10032
10032
|
});
|
|
10033
10033
|
Object.defineProperty(exports, "statusGroupSchema", {
|
|
10034
10034
|
enumerable: true,
|
|
10035
|
-
get: function () { return
|
|
10035
|
+
get: function () { return chunkKAWYU7TE_js.statusGroupSchema; }
|
|
10036
10036
|
});
|
|
10037
10037
|
Object.defineProperty(exports, "statusOptionWriteSchema", {
|
|
10038
10038
|
enumerable: true,
|
|
10039
|
-
get: function () { return
|
|
10039
|
+
get: function () { return chunkKAWYU7TE_js.statusOptionWriteSchema; }
|
|
10040
10040
|
});
|
|
10041
10041
|
Object.defineProperty(exports, "createCheckboxValidator", {
|
|
10042
10042
|
enumerable: true,
|
|
@@ -10064,155 +10064,155 @@ Object.defineProperty(exports, "resolveTextPattern", {
|
|
|
10064
10064
|
});
|
|
10065
10065
|
Object.defineProperty(exports, "AccessDeniedError", {
|
|
10066
10066
|
enumerable: true,
|
|
10067
|
-
get: function () { return
|
|
10067
|
+
get: function () { return chunk4KMUATDG_js.AccessDeniedError; }
|
|
10068
10068
|
});
|
|
10069
10069
|
Object.defineProperty(exports, "AttributeInUseError", {
|
|
10070
10070
|
enumerable: true,
|
|
10071
|
-
get: function () { return
|
|
10071
|
+
get: function () { return chunk4KMUATDG_js.AttributeInUseError; }
|
|
10072
10072
|
});
|
|
10073
10073
|
Object.defineProperty(exports, "AttributeNotFoundError", {
|
|
10074
10074
|
enumerable: true,
|
|
10075
|
-
get: function () { return
|
|
10075
|
+
get: function () { return chunk4KMUATDG_js.AttributeNotFoundError; }
|
|
10076
10076
|
});
|
|
10077
10077
|
Object.defineProperty(exports, "ChangeTypeNotSupportedError", {
|
|
10078
10078
|
enumerable: true,
|
|
10079
|
-
get: function () { return
|
|
10079
|
+
get: function () { return chunk4KMUATDG_js.ChangeTypeNotSupportedError; }
|
|
10080
10080
|
});
|
|
10081
10081
|
Object.defineProperty(exports, "ConcurrentModificationError", {
|
|
10082
10082
|
enumerable: true,
|
|
10083
|
-
get: function () { return
|
|
10083
|
+
get: function () { return chunk4KMUATDG_js.ConcurrentModificationError; }
|
|
10084
10084
|
});
|
|
10085
10085
|
Object.defineProperty(exports, "DestructiveSyncNotAllowedError", {
|
|
10086
10086
|
enumerable: true,
|
|
10087
|
-
get: function () { return
|
|
10087
|
+
get: function () { return chunk4KMUATDG_js.DestructiveSyncNotAllowedError; }
|
|
10088
10088
|
});
|
|
10089
10089
|
Object.defineProperty(exports, "DuplicateError", {
|
|
10090
10090
|
enumerable: true,
|
|
10091
|
-
get: function () { return
|
|
10091
|
+
get: function () { return chunk4KMUATDG_js.DuplicateError; }
|
|
10092
10092
|
});
|
|
10093
10093
|
Object.defineProperty(exports, "ForbiddenError", {
|
|
10094
10094
|
enumerable: true,
|
|
10095
|
-
get: function () { return
|
|
10095
|
+
get: function () { return chunk4KMUATDG_js.ForbiddenError; }
|
|
10096
10096
|
});
|
|
10097
10097
|
Object.defineProperty(exports, "MemoryNotFoundError", {
|
|
10098
10098
|
enumerable: true,
|
|
10099
|
-
get: function () { return
|
|
10099
|
+
get: function () { return chunk4KMUATDG_js.MemoryNotFoundError; }
|
|
10100
10100
|
});
|
|
10101
10101
|
Object.defineProperty(exports, "MigrationTimeoutError", {
|
|
10102
10102
|
enumerable: true,
|
|
10103
|
-
get: function () { return
|
|
10103
|
+
get: function () { return chunk4KMUATDG_js.MigrationTimeoutError; }
|
|
10104
10104
|
});
|
|
10105
10105
|
Object.defineProperty(exports, "NotFoundError", {
|
|
10106
10106
|
enumerable: true,
|
|
10107
|
-
get: function () { return
|
|
10107
|
+
get: function () { return chunk4KMUATDG_js.NotFoundError; }
|
|
10108
10108
|
});
|
|
10109
10109
|
Object.defineProperty(exports, "NotImplementedError", {
|
|
10110
10110
|
enumerable: true,
|
|
10111
|
-
get: function () { return
|
|
10111
|
+
get: function () { return chunk4KMUATDG_js.NotImplementedError; }
|
|
10112
10112
|
});
|
|
10113
10113
|
Object.defineProperty(exports, "ObjectNotFoundError", {
|
|
10114
10114
|
enumerable: true,
|
|
10115
|
-
get: function () { return
|
|
10115
|
+
get: function () { return chunk4KMUATDG_js.ObjectNotFoundError; }
|
|
10116
10116
|
});
|
|
10117
10117
|
Object.defineProperty(exports, "ObjectReferencedError", {
|
|
10118
10118
|
enumerable: true,
|
|
10119
|
-
get: function () { return
|
|
10119
|
+
get: function () { return chunk4KMUATDG_js.ObjectReferencedError; }
|
|
10120
10120
|
});
|
|
10121
10121
|
Object.defineProperty(exports, "OrphanSystemAttributeError", {
|
|
10122
10122
|
enumerable: true,
|
|
10123
|
-
get: function () { return
|
|
10123
|
+
get: function () { return chunk4KMUATDG_js.OrphanSystemAttributeError; }
|
|
10124
10124
|
});
|
|
10125
10125
|
Object.defineProperty(exports, "ProtectedResourceError", {
|
|
10126
10126
|
enumerable: true,
|
|
10127
|
-
get: function () { return
|
|
10127
|
+
get: function () { return chunk4KMUATDG_js.ProtectedResourceError; }
|
|
10128
10128
|
});
|
|
10129
10129
|
Object.defineProperty(exports, "ProtectedRoleError", {
|
|
10130
10130
|
enumerable: true,
|
|
10131
|
-
get: function () { return
|
|
10131
|
+
get: function () { return chunk4KMUATDG_js.ProtectedRoleError; }
|
|
10132
10132
|
});
|
|
10133
10133
|
Object.defineProperty(exports, "RecordNotFoundError", {
|
|
10134
10134
|
enumerable: true,
|
|
10135
|
-
get: function () { return
|
|
10135
|
+
get: function () { return chunk4KMUATDG_js.RecordNotFoundError; }
|
|
10136
10136
|
});
|
|
10137
10137
|
Object.defineProperty(exports, "RecordReferencedError", {
|
|
10138
10138
|
enumerable: true,
|
|
10139
|
-
get: function () { return
|
|
10139
|
+
get: function () { return chunk4KMUATDG_js.RecordReferencedError; }
|
|
10140
10140
|
});
|
|
10141
10141
|
Object.defineProperty(exports, "RepositoryError", {
|
|
10142
10142
|
enumerable: true,
|
|
10143
|
-
get: function () { return
|
|
10143
|
+
get: function () { return chunk4KMUATDG_js.RepositoryError; }
|
|
10144
10144
|
});
|
|
10145
10145
|
Object.defineProperty(exports, "RoleNotFoundError", {
|
|
10146
10146
|
enumerable: true,
|
|
10147
|
-
get: function () { return
|
|
10147
|
+
get: function () { return chunk4KMUATDG_js.RoleNotFoundError; }
|
|
10148
10148
|
});
|
|
10149
10149
|
Object.defineProperty(exports, "SchemaError", {
|
|
10150
10150
|
enumerable: true,
|
|
10151
|
-
get: function () { return
|
|
10151
|
+
get: function () { return chunk4KMUATDG_js.SchemaError; }
|
|
10152
10152
|
});
|
|
10153
10153
|
Object.defineProperty(exports, "SchemaErrorCode", {
|
|
10154
10154
|
enumerable: true,
|
|
10155
|
-
get: function () { return
|
|
10155
|
+
get: function () { return chunk4KMUATDG_js.SchemaErrorCode; }
|
|
10156
10156
|
});
|
|
10157
10157
|
Object.defineProperty(exports, "SchemaPlanNotFoundError", {
|
|
10158
10158
|
enumerable: true,
|
|
10159
|
-
get: function () { return
|
|
10159
|
+
get: function () { return chunk4KMUATDG_js.SchemaPlanNotFoundError; }
|
|
10160
10160
|
});
|
|
10161
10161
|
Object.defineProperty(exports, "SearchBackendError", {
|
|
10162
10162
|
enumerable: true,
|
|
10163
|
-
get: function () { return
|
|
10163
|
+
get: function () { return chunk4KMUATDG_js.SearchBackendError; }
|
|
10164
10164
|
});
|
|
10165
10165
|
Object.defineProperty(exports, "StorageError", {
|
|
10166
10166
|
enumerable: true,
|
|
10167
|
-
get: function () { return
|
|
10167
|
+
get: function () { return chunk4KMUATDG_js.StorageError; }
|
|
10168
10168
|
});
|
|
10169
10169
|
Object.defineProperty(exports, "SyncCascadeError", {
|
|
10170
10170
|
enumerable: true,
|
|
10171
|
-
get: function () { return
|
|
10171
|
+
get: function () { return chunk4KMUATDG_js.SyncCascadeError; }
|
|
10172
10172
|
});
|
|
10173
10173
|
Object.defineProperty(exports, "SyncConflictError", {
|
|
10174
10174
|
enumerable: true,
|
|
10175
|
-
get: function () { return
|
|
10175
|
+
get: function () { return chunk4KMUATDG_js.SyncConflictError; }
|
|
10176
10176
|
});
|
|
10177
10177
|
Object.defineProperty(exports, "SyncError", {
|
|
10178
10178
|
enumerable: true,
|
|
10179
|
-
get: function () { return
|
|
10179
|
+
get: function () { return chunk4KMUATDG_js.SyncError; }
|
|
10180
10180
|
});
|
|
10181
10181
|
Object.defineProperty(exports, "SystemEntityImmutableError", {
|
|
10182
10182
|
enumerable: true,
|
|
10183
|
-
get: function () { return
|
|
10183
|
+
get: function () { return chunk4KMUATDG_js.SystemEntityImmutableError; }
|
|
10184
10184
|
});
|
|
10185
10185
|
Object.defineProperty(exports, "ValidationError", {
|
|
10186
10186
|
enumerable: true,
|
|
10187
|
-
get: function () { return
|
|
10187
|
+
get: function () { return chunk4KMUATDG_js.ValidationError; }
|
|
10188
10188
|
});
|
|
10189
10189
|
Object.defineProperty(exports, "isAttributeInUseError", {
|
|
10190
10190
|
enumerable: true,
|
|
10191
|
-
get: function () { return
|
|
10191
|
+
get: function () { return chunk4KMUATDG_js.isAttributeInUseError; }
|
|
10192
10192
|
});
|
|
10193
10193
|
Object.defineProperty(exports, "isNotFoundError", {
|
|
10194
10194
|
enumerable: true,
|
|
10195
|
-
get: function () { return
|
|
10195
|
+
get: function () { return chunk4KMUATDG_js.isNotFoundError; }
|
|
10196
10196
|
});
|
|
10197
10197
|
Object.defineProperty(exports, "isObjectReferencedError", {
|
|
10198
10198
|
enumerable: true,
|
|
10199
|
-
get: function () { return
|
|
10199
|
+
get: function () { return chunk4KMUATDG_js.isObjectReferencedError; }
|
|
10200
10200
|
});
|
|
10201
10201
|
Object.defineProperty(exports, "isProtectedResourceError", {
|
|
10202
10202
|
enumerable: true,
|
|
10203
|
-
get: function () { return
|
|
10203
|
+
get: function () { return chunk4KMUATDG_js.isProtectedResourceError; }
|
|
10204
10204
|
});
|
|
10205
10205
|
Object.defineProperty(exports, "isRecordReferencedError", {
|
|
10206
10206
|
enumerable: true,
|
|
10207
|
-
get: function () { return
|
|
10207
|
+
get: function () { return chunk4KMUATDG_js.isRecordReferencedError; }
|
|
10208
10208
|
});
|
|
10209
10209
|
Object.defineProperty(exports, "isSchemaError", {
|
|
10210
10210
|
enumerable: true,
|
|
10211
|
-
get: function () { return
|
|
10211
|
+
get: function () { return chunk4KMUATDG_js.isSchemaError; }
|
|
10212
10212
|
});
|
|
10213
10213
|
Object.defineProperty(exports, "isValidationError", {
|
|
10214
10214
|
enumerable: true,
|
|
10215
|
-
get: function () { return
|
|
10215
|
+
get: function () { return chunk4KMUATDG_js.isValidationError; }
|
|
10216
10216
|
});
|
|
10217
10217
|
Object.defineProperty(exports, "DEFAULT_VALIDATION_MESSAGES", {
|
|
10218
10218
|
enumerable: true,
|
|
@@ -10333,6 +10333,7 @@ exports.RichtextTabConfig = RichtextTabConfig;
|
|
|
10333
10333
|
exports.SCHEMA_PLAN_LIMITS = SCHEMA_PLAN_LIMITS;
|
|
10334
10334
|
exports.SESSION_STATE_STREAM_ID = SESSION_STATE_STREAM_ID;
|
|
10335
10335
|
exports.SESSION_TERMINAL_STATUSES = SESSION_TERMINAL_STATUSES;
|
|
10336
|
+
exports.SKILL_CONTENT_TEMPLATE = SKILL_CONTENT_TEMPLATE;
|
|
10336
10337
|
exports.SKILL_LIST_VIEW = SKILL_LIST_VIEW;
|
|
10337
10338
|
exports.SKILL_OBJECT = SKILL_OBJECT;
|
|
10338
10339
|
exports.SKILL_VIEW = SKILL_VIEW;
|