@stndrds/schema 1.0.0-alpha.256 → 1.0.0-alpha.258
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/{attributes-Jji7TfFG.d.mts → attributes-Cmkc7UgJ.d.mts} +14 -367
- package/dist/{attributes-C-iyjLqJ.d.ts → attributes-_6tvjbyl.d.ts} +14 -367
- package/dist/{chunk-RHNSWKMJ.js → chunk-44EVNHSR.js} +5 -8
- package/dist/{chunk-VKJVBXHS.mjs → chunk-7VSOCVN7.mjs} +5 -8
- package/dist/{chunk-NSM2JPC3.js → chunk-L4U5QEQL.js} +4 -17
- package/dist/{chunk-AAXJJNY6.mjs → chunk-UXCJ3NI4.mjs} +4 -17
- package/dist/helpers-BO10yqih.d.mts +316 -0
- package/dist/helpers-BTC6TsKH.d.ts +316 -0
- package/dist/index.d.mts +137 -57
- package/dist/index.d.ts +137 -57
- package/dist/index.js +104 -180
- package/dist/index.mjs +20 -91
- package/dist/{types-D7VH7GrO.d.ts → types-B_UZK_6m.d.ts} +1 -1
- package/dist/{types-DgpsvFnh.d.mts → types-CVswgCx9.d.mts} +1 -1
- package/dist/validation/all.d.mts +3 -3
- package/dist/validation/all.d.ts +3 -3
- package/dist/validation/all.js +11 -12
- package/dist/validation/all.mjs +4 -5
- package/dist/validation/complex/currency.d.mts +2 -2
- package/dist/validation/complex/currency.d.ts +2 -2
- package/dist/validation/complex/location.d.mts +2 -2
- package/dist/validation/complex/location.d.ts +2 -2
- package/dist/validation/complex/phone.d.mts +2 -2
- package/dist/validation/complex/phone.d.ts +2 -2
- package/dist/validation/complex/relation.d.mts +2 -2
- package/dist/validation/complex/relation.d.ts +2 -2
- package/dist/validation/complex/richtext.d.mts +2 -2
- package/dist/validation/complex/richtext.d.ts +2 -2
- package/dist/validation/complex/select.d.mts +2 -2
- package/dist/validation/complex/select.d.ts +2 -2
- package/dist/validation/complex/user.d.mts +2 -2
- package/dist/validation/complex/user.d.ts +2 -2
- package/dist/validation/computed/formula.d.mts +2 -2
- package/dist/validation/computed/formula.d.ts +2 -2
- package/dist/validation/computed/rollup.d.mts +2 -2
- package/dist/validation/computed/rollup.d.ts +2 -2
- package/dist/validation/config/index.d.mts +1 -1
- package/dist/validation/config/index.d.ts +1 -1
- package/dist/validation/config/index.js +4 -4
- package/dist/validation/config/index.mjs +1 -1
- package/dist/validation/core/index.d.mts +3 -3
- package/dist/validation/core/index.d.ts +3 -3
- package/dist/validation/object/index.d.mts +4 -3
- package/dist/validation/object/index.d.ts +4 -3
- package/dist/validation/object/index.js +15 -16
- package/dist/validation/object/index.mjs +3 -4
- package/dist/validation/primitives/checkbox.d.mts +2 -2
- package/dist/validation/primitives/checkbox.d.ts +2 -2
- package/dist/validation/primitives/date.d.mts +2 -2
- package/dist/validation/primitives/date.d.ts +2 -2
- package/dist/validation/primitives/number.d.mts +2 -2
- package/dist/validation/primitives/number.d.ts +2 -2
- package/dist/validation/primitives/text.d.mts +2 -2
- package/dist/validation/primitives/text.d.ts +2 -2
- package/package.json +2 -7
- package/dist/chunk-CI6EGLL6.mjs +0 -18
- package/dist/chunk-Q5DIOYUE.js +0 -20
- package/dist/helpers-CMryP45K.d.mts +0 -75
- package/dist/helpers-Chppkv0E.d.ts +0 -75
- package/dist/validation/complex/file.d.mts +0 -13
- package/dist/validation/complex/file.d.ts +0 -13
- package/dist/validation/complex/file.js +0 -11
- package/dist/validation/complex/file.mjs +0 -2
package/dist/index.js
CHANGED
|
@@ -2,22 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
var chunkFRCDMQER_js = require('./chunk-FRCDMQER.js');
|
|
4
4
|
require('./chunk-PGERPYDR.js');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
require('./chunk-5WATIVCA.js');
|
|
5
|
+
var chunkL4U5QEQL_js = require('./chunk-L4U5QEQL.js');
|
|
6
|
+
var chunk44EVNHSR_js = require('./chunk-44EVNHSR.js');
|
|
8
7
|
require('./chunk-SI34M4IC.js');
|
|
9
8
|
require('./chunk-YIP5FJ5H.js');
|
|
10
9
|
require('./chunk-QAF3HNKQ.js');
|
|
11
|
-
require('./chunk-EW5XR2X3.js');
|
|
12
10
|
require('./chunk-QWKLQRBX.js');
|
|
13
11
|
require('./chunk-KNGWHQLR.js');
|
|
14
12
|
require('./chunk-HTSTPTNZ.js');
|
|
15
13
|
require('./chunk-V2UA2D4E.js');
|
|
14
|
+
require('./chunk-5WATIVCA.js');
|
|
16
15
|
require('./chunk-ACKMC6FL.js');
|
|
17
|
-
require('./chunk-Q5DIOYUE.js');
|
|
18
16
|
require('./chunk-E6JUYGJX.js');
|
|
19
17
|
var chunkEBGRZUIH_js = require('./chunk-EBGRZUIH.js');
|
|
20
18
|
require('./chunk-EEH4XQ7W.js');
|
|
19
|
+
require('./chunk-EW5XR2X3.js');
|
|
21
20
|
var chunkYKWSHBT5_js = require('./chunk-YKWSHBT5.js');
|
|
22
21
|
var constants = require('@stndrds/constants');
|
|
23
22
|
var z3 = require('zod');
|
|
@@ -239,14 +238,13 @@ var ATTRIBUTE_FILTER_OPERATORS = {
|
|
|
239
238
|
select: SELECT_OPERATORS,
|
|
240
239
|
multiselect: MULTISELECT_OPERATORS,
|
|
241
240
|
location: [],
|
|
242
|
-
file: PRESENCE_OPERATORS,
|
|
243
241
|
user: REFERENCE_OPERATORS,
|
|
244
242
|
relation: REFERENCE_OPERATORS,
|
|
245
243
|
formula: FORMULA_OPERATORS,
|
|
246
244
|
document: PRESENCE_OPERATORS
|
|
247
245
|
};
|
|
248
246
|
var COMPUTED_TYPES = /* @__PURE__ */ new Set(["formula", "rollup"]);
|
|
249
|
-
var EDGE_BACKED_TYPES = /* @__PURE__ */ new Set(["
|
|
247
|
+
var EDGE_BACKED_TYPES = /* @__PURE__ */ new Set(["user", "relation", "document"]);
|
|
250
248
|
var STATIC_DEFAULT_TYPES = /* @__PURE__ */ new Set([
|
|
251
249
|
"text",
|
|
252
250
|
"richtext",
|
|
@@ -259,7 +257,6 @@ var STATIC_DEFAULT_TYPES = /* @__PURE__ */ new Set([
|
|
|
259
257
|
"currency",
|
|
260
258
|
"location",
|
|
261
259
|
"user",
|
|
262
|
-
"file",
|
|
263
260
|
"relation",
|
|
264
261
|
"document"
|
|
265
262
|
]);
|
|
@@ -409,7 +406,6 @@ function getRawFilterOperators(attribute) {
|
|
|
409
406
|
}
|
|
410
407
|
function getAttributeCardinality(attribute) {
|
|
411
408
|
if (attribute.type === "multiselect" || attribute.type === "document") return "many";
|
|
412
|
-
if (attribute.type === "file" && attribute.multiple === true) return "many";
|
|
413
409
|
if (attribute.type === "user" && attribute.multiple === true) return "many";
|
|
414
410
|
if (attribute.type === "relation") return attribute.cardinality === "many" ? "many" : "one";
|
|
415
411
|
return "one";
|
|
@@ -424,7 +420,6 @@ function getPolymorphicCapability(attribute) {
|
|
|
424
420
|
function supportsMaxItems(attribute) {
|
|
425
421
|
if (attribute.type === "multiselect") return true;
|
|
426
422
|
if (attribute.type === "relation") return attribute.cardinality === "many";
|
|
427
|
-
if (attribute.type === "file") return attribute.multiple === true;
|
|
428
423
|
return false;
|
|
429
424
|
}
|
|
430
425
|
function supportsQualifiedProperties(type) {
|
|
@@ -443,7 +438,7 @@ function isDefaultColumnType(type) {
|
|
|
443
438
|
return isTableCellType(type);
|
|
444
439
|
}
|
|
445
440
|
function isTableCellType(type) {
|
|
446
|
-
return type !== "richtext" && type !== "
|
|
441
|
+
return type !== "richtext" && type !== "document";
|
|
447
442
|
}
|
|
448
443
|
function isFormFieldType(type) {
|
|
449
444
|
return type !== "richtext";
|
|
@@ -552,9 +547,6 @@ var AUDIT_ACTIONS = [
|
|
|
552
547
|
// src/types/document-layout.ts
|
|
553
548
|
var MAX_PRESET_DEPTH = 5;
|
|
554
549
|
|
|
555
|
-
// src/types/documents.ts
|
|
556
|
-
var DEFAULT_DOCUMENT_SLOT = { name: "file" };
|
|
557
|
-
|
|
558
550
|
// src/types/errors.ts
|
|
559
551
|
function getErrorMessage(error) {
|
|
560
552
|
if (error instanceof Error) return error.message;
|
|
@@ -593,7 +585,6 @@ var FORM_FORBIDDEN_ATTRIBUTE_TYPES = [
|
|
|
593
585
|
"multiRelation",
|
|
594
586
|
"formula",
|
|
595
587
|
"rollup",
|
|
596
|
-
"file",
|
|
597
588
|
"document",
|
|
598
589
|
"richtext",
|
|
599
590
|
"user"
|
|
@@ -740,36 +731,6 @@ function matchesMime(mime, accepted) {
|
|
|
740
731
|
return mime === pattern;
|
|
741
732
|
});
|
|
742
733
|
}
|
|
743
|
-
function normaliseDocumentSlots(slots) {
|
|
744
|
-
if (!slots || slots.length === 0) return [DEFAULT_DOCUMENT_SLOT];
|
|
745
|
-
return slots;
|
|
746
|
-
}
|
|
747
|
-
var DocumentSlotValidationError = class extends Error {
|
|
748
|
-
constructor(code, message, context) {
|
|
749
|
-
super(`${code}: ${message}`);
|
|
750
|
-
this.code = code;
|
|
751
|
-
this.context = context;
|
|
752
|
-
this.name = "DocumentSlotValidationError";
|
|
753
|
-
}
|
|
754
|
-
};
|
|
755
|
-
function validateSlotAgainstConfig(slotName, mimeType, slots) {
|
|
756
|
-
const slot = slots.find((s) => s.name === slotName);
|
|
757
|
-
if (!slot) {
|
|
758
|
-
throw new DocumentSlotValidationError(
|
|
759
|
-
"SLOT_NOT_DECLARED",
|
|
760
|
-
`Slot "${slotName}" is not declared.`,
|
|
761
|
-
{ availableSlots: slots.map((s) => s.name) }
|
|
762
|
-
);
|
|
763
|
-
}
|
|
764
|
-
if (!matchesMime(mimeType, slot.acceptedMimeTypes)) {
|
|
765
|
-
throw new DocumentSlotValidationError(
|
|
766
|
-
"MIME_NOT_ACCEPTED",
|
|
767
|
-
`MIME ${mimeType} not accepted for slot "${slotName}".`,
|
|
768
|
-
{ acceptedMimeTypes: slot.acceptedMimeTypes }
|
|
769
|
-
);
|
|
770
|
-
}
|
|
771
|
-
return slot;
|
|
772
|
-
}
|
|
773
734
|
|
|
774
735
|
// src/lib/qualify-with.ts
|
|
775
736
|
var ALLOWED_PROPERTY_TYPES = Object.freeze([
|
|
@@ -980,7 +941,6 @@ function formatAttributeValue(value, attribute) {
|
|
|
980
941
|
case "multiselect":
|
|
981
942
|
return formatMultiselect(value, attribute);
|
|
982
943
|
// Unsupported types - return value as-is or placeholder
|
|
983
|
-
case "file":
|
|
984
944
|
case "user":
|
|
985
945
|
case "relation":
|
|
986
946
|
if (Array.isArray(value)) {
|
|
@@ -1421,7 +1381,7 @@ var BaseAttributeBuilder = class {
|
|
|
1421
1381
|
* @see https://standardschema.dev/
|
|
1422
1382
|
*/
|
|
1423
1383
|
get "~standard"() {
|
|
1424
|
-
const zodSchema =
|
|
1384
|
+
const zodSchema = chunk44EVNHSR_js.createAttributeValidator(this.build());
|
|
1425
1385
|
return createStandardSchemaProps(zodSchema);
|
|
1426
1386
|
}
|
|
1427
1387
|
constructor(type, name, label) {
|
|
@@ -1892,41 +1852,6 @@ var LocationAttributeBuilder = class extends BaseAttributeBuilder {
|
|
|
1892
1852
|
function location(config) {
|
|
1893
1853
|
return new LocationAttributeBuilder(config.name, config.label);
|
|
1894
1854
|
}
|
|
1895
|
-
var FileAttributeBuilder = class extends BaseAttributeBuilder {
|
|
1896
|
-
constructor(name, label) {
|
|
1897
|
-
super("file", name, label);
|
|
1898
|
-
}
|
|
1899
|
-
maxFiles(value) {
|
|
1900
|
-
this.attr.maxFiles = value;
|
|
1901
|
-
return this;
|
|
1902
|
-
}
|
|
1903
|
-
maxSize(bytes) {
|
|
1904
|
-
this.attr.maxSize = bytes;
|
|
1905
|
-
return this;
|
|
1906
|
-
}
|
|
1907
|
-
allowedTypes(types) {
|
|
1908
|
-
this.attr.allowedTypes = asMutableArray(types);
|
|
1909
|
-
return this;
|
|
1910
|
-
}
|
|
1911
|
-
/**
|
|
1912
|
-
* Allow multiple files to be uploaded
|
|
1913
|
-
*/
|
|
1914
|
-
multiple() {
|
|
1915
|
-
this.attr.multiple = true;
|
|
1916
|
-
return this;
|
|
1917
|
-
}
|
|
1918
|
-
required() {
|
|
1919
|
-
this.setRequired(true);
|
|
1920
|
-
return this.asRequiredState();
|
|
1921
|
-
}
|
|
1922
|
-
optional() {
|
|
1923
|
-
this.setRequired(false);
|
|
1924
|
-
return this.asRequiredState();
|
|
1925
|
-
}
|
|
1926
|
-
};
|
|
1927
|
-
function file(config) {
|
|
1928
|
-
return new FileAttributeBuilder(config.name, config.label);
|
|
1929
|
-
}
|
|
1930
1855
|
var UserAttributeBuilder = class extends BaseAttributeBuilder {
|
|
1931
1856
|
constructor(name, label) {
|
|
1932
1857
|
super("user", name, label);
|
|
@@ -2208,9 +2133,9 @@ var RollupAttributeBuilder = class extends BaseAttributeBuilder {
|
|
|
2208
2133
|
if (fn === "original" && targetType !== void 0 && targetType !== "select" && targetType !== "status" && targetType !== "multiselect") {
|
|
2209
2134
|
const relation2 = this.attr.relationAttribute ?? "relation";
|
|
2210
2135
|
const target = this.attr.targetAttribute ?? "field";
|
|
2211
|
-
throw new
|
|
2136
|
+
throw new chunk44EVNHSR_js.SchemaError(
|
|
2212
2137
|
`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}").`,
|
|
2213
|
-
|
|
2138
|
+
chunk44EVNHSR_js.SchemaErrorCode.VALIDATION_FAILED
|
|
2214
2139
|
);
|
|
2215
2140
|
}
|
|
2216
2141
|
return super.build();
|
|
@@ -2235,11 +2160,18 @@ var DocumentAttributeBuilder = class extends BaseAttributeBuilder {
|
|
|
2235
2160
|
super("document", name, label);
|
|
2236
2161
|
}
|
|
2237
2162
|
/**
|
|
2238
|
-
*
|
|
2239
|
-
*
|
|
2163
|
+
* Restrict every file of the pack to the given MIME prefixes/globs
|
|
2164
|
+
* (e.g. "image/*", "application/pdf").
|
|
2165
|
+
*/
|
|
2166
|
+
accepts(mimeTypes) {
|
|
2167
|
+
this.attr.accepts = mimeTypes;
|
|
2168
|
+
return this;
|
|
2169
|
+
}
|
|
2170
|
+
/**
|
|
2171
|
+
* Cap every file of the pack to `bytes` maximum size.
|
|
2240
2172
|
*/
|
|
2241
|
-
|
|
2242
|
-
this.attr.
|
|
2173
|
+
maxFileSize(bytes) {
|
|
2174
|
+
this.attr.maxFileSize = bytes;
|
|
2243
2175
|
return this;
|
|
2244
2176
|
}
|
|
2245
2177
|
/**
|
|
@@ -2713,7 +2645,7 @@ var ObjectBuilder = class {
|
|
|
2713
2645
|
* @see https://standardschema.dev/
|
|
2714
2646
|
*/
|
|
2715
2647
|
get "~standard"() {
|
|
2716
|
-
const zodSchema =
|
|
2648
|
+
const zodSchema = chunk44EVNHSR_js.createObjectValidator(this.build());
|
|
2717
2649
|
return createStandardSchemaProps(zodSchema);
|
|
2718
2650
|
}
|
|
2719
2651
|
/**
|
|
@@ -2927,26 +2859,26 @@ var ObjectBuilder = class {
|
|
|
2927
2859
|
throw new Error("[ObjectBuilder] Missing required field: label");
|
|
2928
2860
|
}
|
|
2929
2861
|
if (!this._labelExpression) {
|
|
2930
|
-
throw new
|
|
2862
|
+
throw new chunk44EVNHSR_js.SchemaError(
|
|
2931
2863
|
`Object "${this.obj.name}" must have a labelExpression. The labelExpression defines how records are displayed in lists and relations (e.g. "{{ name }}").`,
|
|
2932
|
-
|
|
2864
|
+
chunk44EVNHSR_js.SchemaErrorCode.VALIDATION_FAILED
|
|
2933
2865
|
);
|
|
2934
2866
|
}
|
|
2935
2867
|
const labelResult = labelExpressionSchema.safeParse(this._labelExpression);
|
|
2936
2868
|
if (!labelResult.success) {
|
|
2937
2869
|
const errorMsg = labelResult.error.issues[0]?.message ?? "Invalid labelExpression";
|
|
2938
|
-
throw new
|
|
2870
|
+
throw new chunk44EVNHSR_js.SchemaError(
|
|
2939
2871
|
`Invalid labelExpression for "${this.obj.name}": ${errorMsg}`,
|
|
2940
|
-
|
|
2872
|
+
chunk44EVNHSR_js.SchemaErrorCode.VALIDATION_FAILED
|
|
2941
2873
|
);
|
|
2942
2874
|
}
|
|
2943
2875
|
if (this._embeddingExpression !== void 0) {
|
|
2944
2876
|
const embeddingResult = labelExpressionSchema.safeParse(this._embeddingExpression);
|
|
2945
2877
|
if (!embeddingResult.success) {
|
|
2946
2878
|
const errorMsg = embeddingResult.error.issues[0]?.message ?? "Invalid embeddingExpression";
|
|
2947
|
-
throw new
|
|
2879
|
+
throw new chunk44EVNHSR_js.SchemaError(
|
|
2948
2880
|
`Invalid embeddingExpression for "${this.obj.name}": ${errorMsg}`,
|
|
2949
|
-
|
|
2881
|
+
chunk44EVNHSR_js.SchemaErrorCode.VALIDATION_FAILED
|
|
2950
2882
|
);
|
|
2951
2883
|
}
|
|
2952
2884
|
}
|
|
@@ -2987,7 +2919,7 @@ var ObjectBuilder = class {
|
|
|
2987
2919
|
objectNameSchema.parse(name);
|
|
2988
2920
|
} catch (error) {
|
|
2989
2921
|
if (error instanceof z3__default.default.ZodError) {
|
|
2990
|
-
throw new
|
|
2922
|
+
throw new chunk44EVNHSR_js.SchemaError(error.issues[0].message, chunk44EVNHSR_js.SchemaErrorCode.INVALID_OBJECT_NAME);
|
|
2991
2923
|
}
|
|
2992
2924
|
throw error;
|
|
2993
2925
|
}
|
|
@@ -2998,7 +2930,7 @@ function object(config) {
|
|
|
2998
2930
|
}
|
|
2999
2931
|
function validatePresetStructure(presetId, nodes, depth) {
|
|
3000
2932
|
const fail = (message, detail) => {
|
|
3001
|
-
throw new
|
|
2933
|
+
throw new chunk44EVNHSR_js.ValidationError(message, [
|
|
3002
2934
|
{ path: ["documentLayout", "presets", presetId], message: detail }
|
|
3003
2935
|
]);
|
|
3004
2936
|
};
|
|
@@ -4263,7 +4195,7 @@ function jsonFlag(name, defaultValue) {
|
|
|
4263
4195
|
|
|
4264
4196
|
// src/feature-flags/flag-registry.ts
|
|
4265
4197
|
function duplicateFlagError(name) {
|
|
4266
|
-
return new
|
|
4198
|
+
return new chunk44EVNHSR_js.DuplicateError(
|
|
4267
4199
|
"feature flag",
|
|
4268
4200
|
name,
|
|
4269
4201
|
`Flag "${name}" is already registered. Each flag name must be unique.`
|
|
@@ -4341,7 +4273,7 @@ var FlagRegistry = class {
|
|
|
4341
4273
|
getOrThrow(name) {
|
|
4342
4274
|
const flag = this.get(name);
|
|
4343
4275
|
if (!flag) {
|
|
4344
|
-
throw new
|
|
4276
|
+
throw new chunk44EVNHSR_js.NotFoundError(
|
|
4345
4277
|
"Feature flag",
|
|
4346
4278
|
name,
|
|
4347
4279
|
void 0,
|
|
@@ -4498,19 +4430,19 @@ var FlagService = class {
|
|
|
4498
4430
|
*/
|
|
4499
4431
|
async setOverride(flagName, level, value, options = {}) {
|
|
4500
4432
|
if (!this.repository) {
|
|
4501
|
-
throw new
|
|
4433
|
+
throw new chunk44EVNHSR_js.SchemaError(
|
|
4502
4434
|
"Cannot set override: no FeatureFlagsRepository configured. Add featureFlags to your DatabaseAdapter to enable runtime overrides.",
|
|
4503
|
-
|
|
4435
|
+
chunk44EVNHSR_js.SchemaErrorCode.CONFIGURATION_REQUIRED
|
|
4504
4436
|
);
|
|
4505
4437
|
}
|
|
4506
4438
|
const flag = this.registry.get(flagName);
|
|
4507
4439
|
if (flag && !flag.allowedLevels.includes(level)) {
|
|
4508
4440
|
const message = `Flag "${flagName}" does not allow ${level}-level overrides. Allowed levels: ${flag.allowedLevels.join(", ")}`;
|
|
4509
|
-
throw new
|
|
4441
|
+
throw new chunk44EVNHSR_js.ValidationError(message, [{ path: ["level"], message }]);
|
|
4510
4442
|
}
|
|
4511
4443
|
if (flag?.system) {
|
|
4512
4444
|
const message = `Flag "${flagName}" is a system flag and cannot be overridden via API.`;
|
|
4513
|
-
throw new
|
|
4445
|
+
throw new chunk44EVNHSR_js.ValidationError(message, [{ path: ["flagName"], message }]);
|
|
4514
4446
|
}
|
|
4515
4447
|
await this.repository.setOverride({
|
|
4516
4448
|
flagName,
|
|
@@ -4530,9 +4462,9 @@ var FlagService = class {
|
|
|
4530
4462
|
*/
|
|
4531
4463
|
async deleteOverride(flagName, level, targetId) {
|
|
4532
4464
|
if (!this.repository) {
|
|
4533
|
-
throw new
|
|
4465
|
+
throw new chunk44EVNHSR_js.SchemaError(
|
|
4534
4466
|
"Cannot delete override: no FeatureFlagsRepository configured.",
|
|
4535
|
-
|
|
4467
|
+
chunk44EVNHSR_js.SchemaErrorCode.CONFIGURATION_REQUIRED
|
|
4536
4468
|
);
|
|
4537
4469
|
}
|
|
4538
4470
|
await this.repository.deleteOverride(flagName, level, targetId);
|
|
@@ -4669,7 +4601,7 @@ var NativeObjectRegistryClass = class {
|
|
|
4669
4601
|
if (!object2.system) {
|
|
4670
4602
|
const message = `[NativeObjectRegistry] Cannot register object "${object2.name}" (id: ${object2.id}): missing system flag.
|
|
4671
4603
|
Native objects must have system=true. Did you call .runtime() on the builder? Remove that call \u2014 objects are system:true by default.`;
|
|
4672
|
-
throw new
|
|
4604
|
+
throw new chunk44EVNHSR_js.ValidationError(message, []);
|
|
4673
4605
|
}
|
|
4674
4606
|
if (this.objects.has(object2.name)) {
|
|
4675
4607
|
const existing = this.objects.get(object2.name);
|
|
@@ -4677,7 +4609,7 @@ Native objects must have system=true. Did you call .runtime() on the builder? Re
|
|
|
4677
4609
|
- Existing: "${existing?.label}" (id: ${existing?.id})
|
|
4678
4610
|
- New: "${object2.label}" (id: ${object2.id})
|
|
4679
4611
|
Please use unique names for each native object.`;
|
|
4680
|
-
throw new
|
|
4612
|
+
throw new chunk44EVNHSR_js.DuplicateError("object", object2.name, message);
|
|
4681
4613
|
}
|
|
4682
4614
|
this.objects.set(object2.name, cloneObjectDefinition(object2));
|
|
4683
4615
|
}
|
|
@@ -4709,7 +4641,7 @@ Please use unique names for each native object.`;
|
|
|
4709
4641
|
if (!object2) {
|
|
4710
4642
|
const message = `[NativeObjectRegistry] Native object "${name}" not found.
|
|
4711
4643
|
Available objects: ${this.listNames().join(", ")}`;
|
|
4712
|
-
throw new
|
|
4644
|
+
throw new chunk44EVNHSR_js.NotFoundError("Native object", name, chunk44EVNHSR_js.SchemaErrorCode.OBJECT_NOT_FOUND, message);
|
|
4713
4645
|
}
|
|
4714
4646
|
return object2;
|
|
4715
4647
|
}
|
|
@@ -4814,7 +4746,7 @@ var ViewRegistry = class {
|
|
|
4814
4746
|
const key = this.makeKey(view.object, view.name, view.type);
|
|
4815
4747
|
if (this.views.has(key)) {
|
|
4816
4748
|
const message = `[ViewRegistry] Duplicate view: "${view.name}" (${view.type}) for object "${view.object}"`;
|
|
4817
|
-
throw new
|
|
4749
|
+
throw new chunk44EVNHSR_js.DuplicateError("view", key, message);
|
|
4818
4750
|
}
|
|
4819
4751
|
const storedView = cloneViewDefinition(view);
|
|
4820
4752
|
this.views.set(key, storedView);
|
|
@@ -4859,7 +4791,7 @@ var ViewRegistry = class {
|
|
|
4859
4791
|
const availableNames = available.map((v) => `${v.name} (${v.type})`).join(", ") || "(none)";
|
|
4860
4792
|
const message = `[ViewRegistry] View "${viewName}" not found for object "${objectName}".
|
|
4861
4793
|
Available views: ${availableNames}`;
|
|
4862
|
-
throw new
|
|
4794
|
+
throw new chunk44EVNHSR_js.NotFoundError("View", `${objectName}:${viewName}`, void 0, message);
|
|
4863
4795
|
}
|
|
4864
4796
|
return view;
|
|
4865
4797
|
}
|
|
@@ -5167,7 +5099,7 @@ var FormRegistry = class {
|
|
|
5167
5099
|
const forms = Array.isArray(formOrForms) ? formOrForms : [formOrForms];
|
|
5168
5100
|
for (const f of forms) {
|
|
5169
5101
|
if (this.forms.has(f.name)) {
|
|
5170
|
-
throw new
|
|
5102
|
+
throw new chunk44EVNHSR_js.DuplicateError("form", f.name, `[FormRegistry] Duplicate form: "${f.name}"`);
|
|
5171
5103
|
}
|
|
5172
5104
|
this.forms.set(f.name, cloneFormDefinition(f));
|
|
5173
5105
|
}
|
|
@@ -5703,7 +5635,7 @@ function assertAcyclicComputedDependencies(nodes) {
|
|
|
5703
5635
|
}
|
|
5704
5636
|
function parseCompileFormula(expression) {
|
|
5705
5637
|
try {
|
|
5706
|
-
return
|
|
5638
|
+
return chunkL4U5QEQL_js.parseComputedFormula(expression);
|
|
5707
5639
|
} catch (error) {
|
|
5708
5640
|
if (error instanceof Error) {
|
|
5709
5641
|
throw new ComputedFormulaCompileError(error.message);
|
|
@@ -5873,7 +5805,6 @@ function attributeToValueType(attribute) {
|
|
|
5873
5805
|
case "text":
|
|
5874
5806
|
case "richtext":
|
|
5875
5807
|
case "phone":
|
|
5876
|
-
case "file":
|
|
5877
5808
|
case "user":
|
|
5878
5809
|
case "location":
|
|
5879
5810
|
case "relation":
|
|
@@ -6615,11 +6546,11 @@ function evaluateComputedAst(node, input) {
|
|
|
6615
6546
|
return evaluateAst(node, input);
|
|
6616
6547
|
}
|
|
6617
6548
|
function evaluateComputedFormula(expression, input) {
|
|
6618
|
-
return evaluateAst(
|
|
6549
|
+
return evaluateAst(chunkL4U5QEQL_js.parseComputedFormula(expression), input);
|
|
6619
6550
|
}
|
|
6620
6551
|
function evaluateComputedFormulaWithResult(expression, input, returnType, decimals) {
|
|
6621
6552
|
try {
|
|
6622
|
-
const raw = evaluateAst(
|
|
6553
|
+
const raw = evaluateAst(chunkL4U5QEQL_js.parseComputedFormula(expression), input);
|
|
6623
6554
|
const value = returnType ? formatComputedResult(raw, returnType, decimals) : raw;
|
|
6624
6555
|
return { value };
|
|
6625
6556
|
} catch (error) {
|
|
@@ -6811,7 +6742,6 @@ var OPERATOR_SPECS = {
|
|
|
6811
6742
|
"date",
|
|
6812
6743
|
"multiselect",
|
|
6813
6744
|
"location",
|
|
6814
|
-
"file",
|
|
6815
6745
|
"user",
|
|
6816
6746
|
"relation",
|
|
6817
6747
|
"formula",
|
|
@@ -6831,7 +6761,6 @@ var OPERATOR_SPECS = {
|
|
|
6831
6761
|
"date",
|
|
6832
6762
|
"multiselect",
|
|
6833
6763
|
"location",
|
|
6834
|
-
"file",
|
|
6835
6764
|
"user",
|
|
6836
6765
|
"relation",
|
|
6837
6766
|
"formula",
|
|
@@ -7057,7 +6986,7 @@ function assertOperatorForType(operator, type, context) {
|
|
|
7057
6986
|
if (!ops?.includes(operator)) {
|
|
7058
6987
|
const validList = ops?.length ? ops.join(", ") : "(no operators registered for this type)";
|
|
7059
6988
|
const summary = `Operator "${operator}" is not valid for ${context} type "${type}". Valid operators: ${validList}.`;
|
|
7060
|
-
throw new
|
|
6989
|
+
throw new chunk44EVNHSR_js.ValidationError(summary, [
|
|
7061
6990
|
{
|
|
7062
6991
|
path: ["operator"],
|
|
7063
6992
|
message: summary
|
|
@@ -7073,7 +7002,7 @@ function assertRelativeDateValue(rule) {
|
|
|
7073
7002
|
const valid = typeof v === "object" && v !== null && typeof v.amount === "number" && Number.isFinite(v.amount) && v.amount > 0 && typeof v.unit === "string" && RELATIVE_DATE_UNITS.has(v.unit) && typeof v.direction === "string" && RELATIVE_DATE_DIRECTIONS.has(v.direction);
|
|
7074
7003
|
if (!valid) {
|
|
7075
7004
|
const m = `Operator "is_within" requires a relative-date value { amount: positive number, unit: days|weeks|months|years, direction: past|future }`;
|
|
7076
|
-
throw new
|
|
7005
|
+
throw new chunk44EVNHSR_js.ValidationError(m, [{ path: ["value"], message: m }]);
|
|
7077
7006
|
}
|
|
7078
7007
|
}
|
|
7079
7008
|
function assertDynamicValueForAttribute(rule, attrType) {
|
|
@@ -7081,34 +7010,34 @@ function assertDynamicValueForAttribute(rule, attrType) {
|
|
|
7081
7010
|
const v = rule.value;
|
|
7082
7011
|
if (v.dynamic === "actor" && attrType !== "user") {
|
|
7083
7012
|
const m = `actor token (@me) is only valid on user attributes, not "${attrType}"`;
|
|
7084
|
-
throw new
|
|
7013
|
+
throw new chunk44EVNHSR_js.ValidationError(m, [{ path: ["value"], message: m }]);
|
|
7085
7014
|
}
|
|
7086
7015
|
if (v.dynamic === "date" && attrType !== "date") {
|
|
7087
7016
|
const m = `date token (@today/@now) is only valid on date attributes, not "${attrType}"`;
|
|
7088
|
-
throw new
|
|
7017
|
+
throw new chunk44EVNHSR_js.ValidationError(m, [{ path: ["value"], message: m }]);
|
|
7089
7018
|
}
|
|
7090
7019
|
}
|
|
7091
7020
|
function validateQualifiedRule(rule, context) {
|
|
7092
7021
|
const rootAttr = context.attributes.find((a) => a.name === rule.attribute);
|
|
7093
7022
|
const systemOps = SYSTEM_FILTER_OPERATORS[rule.attribute];
|
|
7094
7023
|
if (!(rootAttr || systemOps)) {
|
|
7095
|
-
throw new
|
|
7024
|
+
throw new chunk44EVNHSR_js.ValidationError(`Unknown attribute: ${rule.attribute}`, [
|
|
7096
7025
|
{ path: ["attribute"], message: `Unknown attribute: ${rule.attribute}` }
|
|
7097
7026
|
]);
|
|
7098
7027
|
}
|
|
7099
7028
|
if (rule.quantifier !== void 0 && !rule.property) {
|
|
7100
7029
|
const m = `quantifier is only valid on qualified edge rules (set "property")`;
|
|
7101
|
-
throw new
|
|
7030
|
+
throw new chunk44EVNHSR_js.ValidationError(m, [{ path: ["quantifier"], message: m }]);
|
|
7102
7031
|
}
|
|
7103
7032
|
if (!rootAttr) {
|
|
7104
7033
|
if (rule.property) {
|
|
7105
|
-
throw new
|
|
7034
|
+
throw new chunk44EVNHSR_js.ValidationError(`Cannot qualify system attribute "${rule.attribute}"`, [
|
|
7106
7035
|
{ path: ["property"], message: `"${rule.attribute}" is a system column, not a reference` }
|
|
7107
7036
|
]);
|
|
7108
7037
|
}
|
|
7109
7038
|
if (!systemOps.includes(rule.operator)) {
|
|
7110
7039
|
const summary = `Operator "${rule.operator}" is not valid for system attribute "${rule.attribute}". Valid operators: ${systemOps.join(", ")}.`;
|
|
7111
|
-
throw new
|
|
7040
|
+
throw new chunk44EVNHSR_js.ValidationError(summary, [{ path: ["operator"], message: summary }]);
|
|
7112
7041
|
}
|
|
7113
7042
|
assertRelativeDateValue(rule);
|
|
7114
7043
|
return;
|
|
@@ -7119,25 +7048,25 @@ function validateQualifiedRule(rule, context) {
|
|
|
7119
7048
|
if (!ops.includes(rule.operator)) {
|
|
7120
7049
|
const validList = ops.length ? ops.join(", ") : "(not filterable)";
|
|
7121
7050
|
const summary = `Operator "${rule.operator}" is not valid for attribute "${rootAttr.name}". Valid operators: ${validList}.`;
|
|
7122
|
-
throw new
|
|
7051
|
+
throw new chunk44EVNHSR_js.ValidationError(summary, [{ path: ["operator"], message: summary }]);
|
|
7123
7052
|
}
|
|
7124
7053
|
assertRelativeDateValue(rule);
|
|
7125
7054
|
return;
|
|
7126
7055
|
}
|
|
7127
7056
|
if (!REFERENCE_TYPES.has(rootAttr.type)) {
|
|
7128
|
-
throw new
|
|
7057
|
+
throw new chunk44EVNHSR_js.ValidationError(`Cannot qualify ${rootAttr.type} attribute "${rule.attribute}"`, [
|
|
7129
7058
|
{ path: ["property"], message: `Attribute "${rule.attribute}" is not a reference type` }
|
|
7130
7059
|
]);
|
|
7131
7060
|
}
|
|
7132
7061
|
const propSchema = rootAttr.properties;
|
|
7133
7062
|
if (!propSchema) {
|
|
7134
|
-
throw new
|
|
7063
|
+
throw new chunk44EVNHSR_js.ValidationError(`Attribute "${rule.attribute}" has no qualifyWith schema`, [
|
|
7135
7064
|
{ path: ["property"], message: `"${rule.attribute}" has no qualifyWith` }
|
|
7136
7065
|
]);
|
|
7137
7066
|
}
|
|
7138
7067
|
const propDef = propSchema.definitions.find((p) => p.name === rule.property);
|
|
7139
7068
|
if (!propDef) {
|
|
7140
|
-
throw new
|
|
7069
|
+
throw new chunk44EVNHSR_js.ValidationError(
|
|
7141
7070
|
`Property "${rule.property}" not defined on "${rule.attribute}".qualifyWith()`,
|
|
7142
7071
|
[{ path: ["property"], message: `Unknown property: ${rule.property}` }]
|
|
7143
7072
|
);
|
|
@@ -7175,187 +7104,187 @@ Object.defineProperty(exports, "indexBy", {
|
|
|
7175
7104
|
});
|
|
7176
7105
|
Object.defineProperty(exports, "ComputedFormulaParseError", {
|
|
7177
7106
|
enumerable: true,
|
|
7178
|
-
get: function () { return
|
|
7107
|
+
get: function () { return chunkL4U5QEQL_js.ComputedFormulaParseError; }
|
|
7179
7108
|
});
|
|
7180
7109
|
Object.defineProperty(exports, "parseAttributeConfig", {
|
|
7181
7110
|
enumerable: true,
|
|
7182
|
-
get: function () { return
|
|
7111
|
+
get: function () { return chunkL4U5QEQL_js.parseAttributeConfig; }
|
|
7183
7112
|
});
|
|
7184
7113
|
Object.defineProperty(exports, "parseComputedFormula", {
|
|
7185
7114
|
enumerable: true,
|
|
7186
|
-
get: function () { return
|
|
7115
|
+
get: function () { return chunkL4U5QEQL_js.parseComputedFormula; }
|
|
7187
7116
|
});
|
|
7188
7117
|
Object.defineProperty(exports, "AccessDeniedError", {
|
|
7189
7118
|
enumerable: true,
|
|
7190
|
-
get: function () { return
|
|
7119
|
+
get: function () { return chunk44EVNHSR_js.AccessDeniedError; }
|
|
7191
7120
|
});
|
|
7192
7121
|
Object.defineProperty(exports, "AttributeInUseError", {
|
|
7193
7122
|
enumerable: true,
|
|
7194
|
-
get: function () { return
|
|
7123
|
+
get: function () { return chunk44EVNHSR_js.AttributeInUseError; }
|
|
7195
7124
|
});
|
|
7196
7125
|
Object.defineProperty(exports, "AttributeNotFoundError", {
|
|
7197
7126
|
enumerable: true,
|
|
7198
|
-
get: function () { return
|
|
7127
|
+
get: function () { return chunk44EVNHSR_js.AttributeNotFoundError; }
|
|
7199
7128
|
});
|
|
7200
7129
|
Object.defineProperty(exports, "ChangeTypeNotSupportedError", {
|
|
7201
7130
|
enumerable: true,
|
|
7202
|
-
get: function () { return
|
|
7131
|
+
get: function () { return chunk44EVNHSR_js.ChangeTypeNotSupportedError; }
|
|
7203
7132
|
});
|
|
7204
7133
|
Object.defineProperty(exports, "ConcurrentModificationError", {
|
|
7205
7134
|
enumerable: true,
|
|
7206
|
-
get: function () { return
|
|
7135
|
+
get: function () { return chunk44EVNHSR_js.ConcurrentModificationError; }
|
|
7207
7136
|
});
|
|
7208
7137
|
Object.defineProperty(exports, "DestructiveSyncNotAllowedError", {
|
|
7209
7138
|
enumerable: true,
|
|
7210
|
-
get: function () { return
|
|
7139
|
+
get: function () { return chunk44EVNHSR_js.DestructiveSyncNotAllowedError; }
|
|
7211
7140
|
});
|
|
7212
7141
|
Object.defineProperty(exports, "DuplicateError", {
|
|
7213
7142
|
enumerable: true,
|
|
7214
|
-
get: function () { return
|
|
7143
|
+
get: function () { return chunk44EVNHSR_js.DuplicateError; }
|
|
7215
7144
|
});
|
|
7216
7145
|
Object.defineProperty(exports, "ForbiddenError", {
|
|
7217
7146
|
enumerable: true,
|
|
7218
|
-
get: function () { return
|
|
7147
|
+
get: function () { return chunk44EVNHSR_js.ForbiddenError; }
|
|
7219
7148
|
});
|
|
7220
7149
|
Object.defineProperty(exports, "MemoryNotFoundError", {
|
|
7221
7150
|
enumerable: true,
|
|
7222
|
-
get: function () { return
|
|
7151
|
+
get: function () { return chunk44EVNHSR_js.MemoryNotFoundError; }
|
|
7223
7152
|
});
|
|
7224
7153
|
Object.defineProperty(exports, "MigrationTimeoutError", {
|
|
7225
7154
|
enumerable: true,
|
|
7226
|
-
get: function () { return
|
|
7155
|
+
get: function () { return chunk44EVNHSR_js.MigrationTimeoutError; }
|
|
7227
7156
|
});
|
|
7228
7157
|
Object.defineProperty(exports, "NotFoundError", {
|
|
7229
7158
|
enumerable: true,
|
|
7230
|
-
get: function () { return
|
|
7159
|
+
get: function () { return chunk44EVNHSR_js.NotFoundError; }
|
|
7231
7160
|
});
|
|
7232
7161
|
Object.defineProperty(exports, "NotImplementedError", {
|
|
7233
7162
|
enumerable: true,
|
|
7234
|
-
get: function () { return
|
|
7163
|
+
get: function () { return chunk44EVNHSR_js.NotImplementedError; }
|
|
7235
7164
|
});
|
|
7236
7165
|
Object.defineProperty(exports, "ObjectNotFoundError", {
|
|
7237
7166
|
enumerable: true,
|
|
7238
|
-
get: function () { return
|
|
7167
|
+
get: function () { return chunk44EVNHSR_js.ObjectNotFoundError; }
|
|
7239
7168
|
});
|
|
7240
7169
|
Object.defineProperty(exports, "ObjectReferencedError", {
|
|
7241
7170
|
enumerable: true,
|
|
7242
|
-
get: function () { return
|
|
7171
|
+
get: function () { return chunk44EVNHSR_js.ObjectReferencedError; }
|
|
7243
7172
|
});
|
|
7244
7173
|
Object.defineProperty(exports, "OrphanSystemAttributeError", {
|
|
7245
7174
|
enumerable: true,
|
|
7246
|
-
get: function () { return
|
|
7175
|
+
get: function () { return chunk44EVNHSR_js.OrphanSystemAttributeError; }
|
|
7247
7176
|
});
|
|
7248
7177
|
Object.defineProperty(exports, "ProtectedResourceError", {
|
|
7249
7178
|
enumerable: true,
|
|
7250
|
-
get: function () { return
|
|
7179
|
+
get: function () { return chunk44EVNHSR_js.ProtectedResourceError; }
|
|
7251
7180
|
});
|
|
7252
7181
|
Object.defineProperty(exports, "ProtectedRoleError", {
|
|
7253
7182
|
enumerable: true,
|
|
7254
|
-
get: function () { return
|
|
7183
|
+
get: function () { return chunk44EVNHSR_js.ProtectedRoleError; }
|
|
7255
7184
|
});
|
|
7256
7185
|
Object.defineProperty(exports, "RecordNotFoundError", {
|
|
7257
7186
|
enumerable: true,
|
|
7258
|
-
get: function () { return
|
|
7187
|
+
get: function () { return chunk44EVNHSR_js.RecordNotFoundError; }
|
|
7259
7188
|
});
|
|
7260
7189
|
Object.defineProperty(exports, "RecordReferencedError", {
|
|
7261
7190
|
enumerable: true,
|
|
7262
|
-
get: function () { return
|
|
7191
|
+
get: function () { return chunk44EVNHSR_js.RecordReferencedError; }
|
|
7263
7192
|
});
|
|
7264
7193
|
Object.defineProperty(exports, "RepositoryError", {
|
|
7265
7194
|
enumerable: true,
|
|
7266
|
-
get: function () { return
|
|
7195
|
+
get: function () { return chunk44EVNHSR_js.RepositoryError; }
|
|
7267
7196
|
});
|
|
7268
7197
|
Object.defineProperty(exports, "RoleNotFoundError", {
|
|
7269
7198
|
enumerable: true,
|
|
7270
|
-
get: function () { return
|
|
7199
|
+
get: function () { return chunk44EVNHSR_js.RoleNotFoundError; }
|
|
7271
7200
|
});
|
|
7272
7201
|
Object.defineProperty(exports, "SchemaError", {
|
|
7273
7202
|
enumerable: true,
|
|
7274
|
-
get: function () { return
|
|
7203
|
+
get: function () { return chunk44EVNHSR_js.SchemaError; }
|
|
7275
7204
|
});
|
|
7276
7205
|
Object.defineProperty(exports, "SchemaErrorCode", {
|
|
7277
7206
|
enumerable: true,
|
|
7278
|
-
get: function () { return
|
|
7207
|
+
get: function () { return chunk44EVNHSR_js.SchemaErrorCode; }
|
|
7279
7208
|
});
|
|
7280
7209
|
Object.defineProperty(exports, "SearchBackendError", {
|
|
7281
7210
|
enumerable: true,
|
|
7282
|
-
get: function () { return
|
|
7211
|
+
get: function () { return chunk44EVNHSR_js.SearchBackendError; }
|
|
7283
7212
|
});
|
|
7284
7213
|
Object.defineProperty(exports, "StorageError", {
|
|
7285
7214
|
enumerable: true,
|
|
7286
|
-
get: function () { return
|
|
7215
|
+
get: function () { return chunk44EVNHSR_js.StorageError; }
|
|
7287
7216
|
});
|
|
7288
7217
|
Object.defineProperty(exports, "SyncCascadeError", {
|
|
7289
7218
|
enumerable: true,
|
|
7290
|
-
get: function () { return
|
|
7219
|
+
get: function () { return chunk44EVNHSR_js.SyncCascadeError; }
|
|
7291
7220
|
});
|
|
7292
7221
|
Object.defineProperty(exports, "SyncConflictError", {
|
|
7293
7222
|
enumerable: true,
|
|
7294
|
-
get: function () { return
|
|
7223
|
+
get: function () { return chunk44EVNHSR_js.SyncConflictError; }
|
|
7295
7224
|
});
|
|
7296
7225
|
Object.defineProperty(exports, "SyncError", {
|
|
7297
7226
|
enumerable: true,
|
|
7298
|
-
get: function () { return
|
|
7227
|
+
get: function () { return chunk44EVNHSR_js.SyncError; }
|
|
7299
7228
|
});
|
|
7300
7229
|
Object.defineProperty(exports, "SystemEntityImmutableError", {
|
|
7301
7230
|
enumerable: true,
|
|
7302
|
-
get: function () { return
|
|
7231
|
+
get: function () { return chunk44EVNHSR_js.SystemEntityImmutableError; }
|
|
7303
7232
|
});
|
|
7304
7233
|
Object.defineProperty(exports, "ValidationError", {
|
|
7305
7234
|
enumerable: true,
|
|
7306
|
-
get: function () { return
|
|
7235
|
+
get: function () { return chunk44EVNHSR_js.ValidationError; }
|
|
7307
7236
|
});
|
|
7308
7237
|
Object.defineProperty(exports, "createFormAttributeValidator", {
|
|
7309
7238
|
enumerable: true,
|
|
7310
|
-
get: function () { return
|
|
7239
|
+
get: function () { return chunk44EVNHSR_js.createFormAttributeValidator; }
|
|
7311
7240
|
});
|
|
7312
7241
|
Object.defineProperty(exports, "isAttributeInUseError", {
|
|
7313
7242
|
enumerable: true,
|
|
7314
|
-
get: function () { return
|
|
7243
|
+
get: function () { return chunk44EVNHSR_js.isAttributeInUseError; }
|
|
7315
7244
|
});
|
|
7316
7245
|
Object.defineProperty(exports, "isNotFoundError", {
|
|
7317
7246
|
enumerable: true,
|
|
7318
|
-
get: function () { return
|
|
7247
|
+
get: function () { return chunk44EVNHSR_js.isNotFoundError; }
|
|
7319
7248
|
});
|
|
7320
7249
|
Object.defineProperty(exports, "isObjectReferencedError", {
|
|
7321
7250
|
enumerable: true,
|
|
7322
|
-
get: function () { return
|
|
7251
|
+
get: function () { return chunk44EVNHSR_js.isObjectReferencedError; }
|
|
7323
7252
|
});
|
|
7324
7253
|
Object.defineProperty(exports, "isProtectedResourceError", {
|
|
7325
7254
|
enumerable: true,
|
|
7326
|
-
get: function () { return
|
|
7255
|
+
get: function () { return chunk44EVNHSR_js.isProtectedResourceError; }
|
|
7327
7256
|
});
|
|
7328
7257
|
Object.defineProperty(exports, "isRecordReferencedError", {
|
|
7329
7258
|
enumerable: true,
|
|
7330
|
-
get: function () { return
|
|
7259
|
+
get: function () { return chunk44EVNHSR_js.isRecordReferencedError; }
|
|
7331
7260
|
});
|
|
7332
7261
|
Object.defineProperty(exports, "isSchemaError", {
|
|
7333
7262
|
enumerable: true,
|
|
7334
|
-
get: function () { return
|
|
7263
|
+
get: function () { return chunk44EVNHSR_js.isSchemaError; }
|
|
7335
7264
|
});
|
|
7336
7265
|
Object.defineProperty(exports, "isValidationError", {
|
|
7337
7266
|
enumerable: true,
|
|
7338
|
-
get: function () { return
|
|
7267
|
+
get: function () { return chunk44EVNHSR_js.isValidationError; }
|
|
7339
7268
|
});
|
|
7340
7269
|
Object.defineProperty(exports, "rejectUnknownAttributesOrThrow", {
|
|
7341
7270
|
enumerable: true,
|
|
7342
|
-
get: function () { return
|
|
7271
|
+
get: function () { return chunk44EVNHSR_js.rejectUnknownAttributesOrThrow; }
|
|
7343
7272
|
});
|
|
7344
7273
|
Object.defineProperty(exports, "validateDraft", {
|
|
7345
7274
|
enumerable: true,
|
|
7346
|
-
get: function () { return
|
|
7275
|
+
get: function () { return chunk44EVNHSR_js.validateDraft; }
|
|
7347
7276
|
});
|
|
7348
7277
|
Object.defineProperty(exports, "validateDraftOrThrow", {
|
|
7349
7278
|
enumerable: true,
|
|
7350
|
-
get: function () { return
|
|
7279
|
+
get: function () { return chunk44EVNHSR_js.validateDraftOrThrow; }
|
|
7351
7280
|
});
|
|
7352
7281
|
Object.defineProperty(exports, "validateObject", {
|
|
7353
7282
|
enumerable: true,
|
|
7354
|
-
get: function () { return
|
|
7283
|
+
get: function () { return chunk44EVNHSR_js.validateObject; }
|
|
7355
7284
|
});
|
|
7356
7285
|
Object.defineProperty(exports, "validateObjectOrThrow", {
|
|
7357
7286
|
enumerable: true,
|
|
7358
|
-
get: function () { return
|
|
7287
|
+
get: function () { return chunk44EVNHSR_js.validateObjectOrThrow; }
|
|
7359
7288
|
});
|
|
7360
7289
|
Object.defineProperty(exports, "DEFAULT_VALIDATION_MESSAGES", {
|
|
7361
7290
|
enumerable: true,
|
|
@@ -7382,14 +7311,12 @@ exports.CONNECTOR_CALLBACK_PARAM = CONNECTOR_CALLBACK_PARAM;
|
|
|
7382
7311
|
exports.ComputedFormulaCompileError = ComputedFormulaCompileError;
|
|
7383
7312
|
exports.CustomTabConfig = CustomTabConfig;
|
|
7384
7313
|
exports.DB_COLUMN_FIELDS = DB_COLUMN_FIELDS;
|
|
7385
|
-
exports.DEFAULT_DOCUMENT_SLOT = DEFAULT_DOCUMENT_SLOT;
|
|
7386
7314
|
exports.DEFAULT_ROLES = DEFAULT_ROLES;
|
|
7387
7315
|
exports.DEFAULT_ROLE_DESCRIPTIONS = DEFAULT_ROLE_DESCRIPTIONS;
|
|
7388
7316
|
exports.DEFAULT_ROLE_LABELS = DEFAULT_ROLE_LABELS;
|
|
7389
7317
|
exports.DEFAULT_ROLE_PERMISSIONS = DEFAULT_ROLE_PERMISSIONS;
|
|
7390
7318
|
exports.DOCUMENT_SYSTEM_ATTRIBUTES = DOCUMENT_SYSTEM_ATTRIBUTES;
|
|
7391
7319
|
exports.DetailViewBuilder = DetailViewBuilder;
|
|
7392
|
-
exports.DocumentSlotValidationError = DocumentSlotValidationError;
|
|
7393
7320
|
exports.DocumentsTabConfig = DocumentsTabConfig;
|
|
7394
7321
|
exports.EMPTY_VALUE_PLACEHOLDER = EMPTY_VALUE_PLACEHOLDER;
|
|
7395
7322
|
exports.EmailsTabConfig = EmailsTabConfig;
|
|
@@ -7474,7 +7401,6 @@ exports.evaluateComputedFormulaWithResult = evaluateComputedFormulaWithResult;
|
|
|
7474
7401
|
exports.evaluateFilterState = evaluateFilterState;
|
|
7475
7402
|
exports.extractAttributeNames = extractAttributeNames;
|
|
7476
7403
|
exports.extractValueRefs = extractValueRefs;
|
|
7477
|
-
exports.file = file;
|
|
7478
7404
|
exports.flagRegistry = flagRegistry;
|
|
7479
7405
|
exports.form = form;
|
|
7480
7406
|
exports.formRegistry = formRegistry;
|
|
@@ -7543,7 +7469,6 @@ exports.liveChannelKey = liveChannelKey;
|
|
|
7543
7469
|
exports.location = location;
|
|
7544
7470
|
exports.matchesMime = matchesMime;
|
|
7545
7471
|
exports.multiselect = multiselect;
|
|
7546
|
-
exports.normaliseDocumentSlots = normaliseDocumentSlots;
|
|
7547
7472
|
exports.normalizeDateValue = normalizeDateValue;
|
|
7548
7473
|
exports.normalizeForEdgeRpc = normalizeForEdgeRpc;
|
|
7549
7474
|
exports.now = now;
|
|
@@ -7574,5 +7499,4 @@ exports.today = today;
|
|
|
7574
7499
|
exports.user = user;
|
|
7575
7500
|
exports.validateAttributeName = validateAttributeName;
|
|
7576
7501
|
exports.validateQualifiedRule = validateQualifiedRule;
|
|
7577
|
-
exports.validateSlotAgainstConfig = validateSlotAgainstConfig;
|
|
7578
7502
|
exports.viewRegistry = viewRegistry;
|