@stndrds/schema 1.0.0-alpha.276 → 1.0.0-alpha.277
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/{all-D5zeUllO.d.mts → all-D-E8v5yo.d.mts} +1 -1
- package/dist/{all--B2_3ksI.d.ts → all-D5SkjRst.d.ts} +1 -1
- package/dist/{chunk-EDOEX3O7.js → chunk-F32XOFSP.js} +156 -54
- package/dist/{chunk-RAF6K6VG.js → chunk-FMLZHHWB.js} +19 -5
- package/dist/{chunk-QLU5QR7M.mjs → chunk-K4UER3DU.mjs} +2 -6
- package/dist/{chunk-T7BST4JS.js → chunk-KKR6I3YV.js} +3 -3
- package/dist/{chunk-RBG2YMF2.mjs → chunk-PSCSTHUB.mjs} +16 -3
- package/dist/{chunk-F3YPU2N6.js → chunk-RYAQOR7M.js} +2 -6
- package/dist/{chunk-U7QUIEFF.mjs → chunk-VVYIFBFQ.mjs} +1 -1
- package/dist/{chunk-4USPA67J.mjs → chunk-XQEDMB6B.mjs} +118 -25
- package/dist/exceptions.d.mts +1 -6
- package/dist/exceptions.d.ts +1 -6
- package/dist/exceptions.js +39 -39
- package/dist/exceptions.mjs +1 -1
- package/dist/{index-Bq1KrQkR.d.ts → index-AJeEKoy6.d.ts} +24 -234
- package/dist/{index-DtxtOBYT.d.mts → index-ApHE8c1J.d.mts} +24 -234
- package/dist/index.d.mts +404 -10
- package/dist/index.d.ts +404 -10
- package/dist/index.js +257 -248
- package/dist/index.mjs +63 -90
- package/dist/validation/all.d.mts +2 -2
- package/dist/validation/all.d.ts +2 -2
- package/dist/validation/all.js +29 -29
- package/dist/validation/all.mjs +4 -4
- package/dist/validation/config/index.d.mts +1 -1
- package/dist/validation/config/index.d.ts +1 -1
- package/dist/validation/config/index.js +11 -11
- 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.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { generateId } from './chunk-QY6QFRRV.mjs';
|
|
2
2
|
export { asTenantId, asUserId, deepEqual, generateId, indexBy } from './chunk-QY6QFRRV.mjs';
|
|
3
|
-
import { SYSTEM_FILTER_ATTRIBUTE_TYPES, RESERVED_OBJECT_NAMES, listViewConfigSchema, detailViewConfigSchema, RESERVED_ATTRIBUTE_NAMES, isAttributeSortable, getAttributeCapabilities, resolveIsWithinBounds } from './chunk-
|
|
4
|
-
export { ATTRIBUTE_FILTER_OPERATORS, LIST_VIEW_TAB_VISIBILITIES, NO_VALUE_OPERATORS, OPERATORS_BY_TYPE, REMOVED_OPERATOR_REPLACEMENTS, RESERVED_ATTRIBUTE_NAMES, RESERVED_OBJECT_NAMES, RESOURCE_VISIBILITIES, SYNONYM_ALIASES, SYSTEM_ATTRIBUTES, SYSTEM_ATTRIBUTE_I18N_KEYS, SYSTEM_FIELD_NAMES, SYSTEM_FILTER_ATTRIBUTE_TYPES, collectQualifiedRuleIssues, currentActor, detailTabSchema, detailViewConfigSchema, getAttributeCapabilities, getAttributeFilterOperators, getRollupFilterOperators, getSystemAttributeI18nKey, getSystemAttributeList, inverseSourceSchema, isAttributeFilterable, isAttributeGroupable, isAttributeKanbanGroupable, isAttributeSearchable, isDynamicValue, isManagedSystemAttribute, isNoValueOperator, isRelativeDateValue, listViewConfigSchema, listViewTabSchema, normalizeFilterRule, normalizeOperator, now, parseViewConfig, relationSourceSchema, resolveIsWithinBounds, tableSourceSchema, toUtcDayString, today, validateQualifiedRule, viewConfigByTypeSchema, viewTypeSchema } from './chunk-
|
|
5
|
-
import { iconNameSchema, parseAttributeConfigForCreate, parseComputedFormula } from './chunk-
|
|
6
|
-
export { ComputedFormulaParseError, SCHEMA_LIMITS, colorIdSchema, iconNameSchema, multiselectOptionWriteSchema, parseAttributeConfig, parseAttributeConfigForCreate, parseAttributeConfigForUpdate, parseComputedFormula, selectOptionWriteSchema, statusGroupSchema, statusOptionWriteSchema } from './chunk-
|
|
7
|
-
import { createObjectValidator, createAttributeValidator } from './chunk-
|
|
8
|
-
export { createFormAttributeValidator, rejectUnknownAttributesOrThrow, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow } from './chunk-
|
|
3
|
+
import { SYSTEM_FILTER_ATTRIBUTE_TYPES, RESERVED_OBJECT_NAMES, listViewConfigSchema, detailViewConfigSchema, RESERVED_ATTRIBUTE_NAMES, isAttributeSortable, getAttributeCapabilities, resolveIsWithinBounds, normalizeForEdgeRpc, getOperatorPolarity, extractCurrencyFilterValue } from './chunk-XQEDMB6B.mjs';
|
|
4
|
+
export { ATTRIBUTE_FILTER_OPERATORS, LIST_VIEW_TAB_VISIBILITIES, NO_VALUE_OPERATORS, OPERATORS_BY_TYPE, REMOVED_OPERATOR_REPLACEMENTS, RESERVED_ATTRIBUTE_NAMES, RESERVED_OBJECT_NAMES, RESOURCE_VISIBILITIES, SYNONYM_ALIASES, SYSTEM_ATTRIBUTES, SYSTEM_ATTRIBUTE_I18N_KEYS, SYSTEM_FIELD_NAMES, SYSTEM_FILTER_ATTRIBUTE_TYPES, canonicalizeFilterValue, collectQualifiedRuleIssues, currentActor, detailTabSchema, detailViewConfigSchema, extractCurrencyFilterValue, extractFilterValue, getAttributeCapabilities, getAttributeFilterOperators, getOperatorPolarity, getRollupFilterOperators, getSystemAttributeI18nKey, getSystemAttributeList, inverseSourceSchema, isAttributeFilterable, isAttributeGroupable, isAttributeKanbanGroupable, isAttributeSearchable, isDynamicValue, isManagedSystemAttribute, isNoValueOperator, isRelativeDateValue, isSetMembershipOperator, listViewConfigSchema, listViewTabSchema, normalizeFilterRule, normalizeForEdgeRpc, normalizeOperator, now, parseViewConfig, relationSourceSchema, resolveEffectiveFilterType, resolveIsWithinBounds, resolveUtcDayBounds, tableSourceSchema, toMultiValueOperator, toUtcDayString, today, validateQualifiedRule, viewConfigByTypeSchema, viewTypeSchema } from './chunk-XQEDMB6B.mjs';
|
|
5
|
+
import { iconNameSchema, parseAttributeConfigForCreate, parseComputedFormula } from './chunk-VVYIFBFQ.mjs';
|
|
6
|
+
export { ComputedFormulaParseError, SCHEMA_LIMITS, colorIdSchema, iconNameSchema, multiselectOptionWriteSchema, parseAttributeConfig, parseAttributeConfigForCreate, parseAttributeConfigForUpdate, parseComputedFormula, selectOptionWriteSchema, statusGroupSchema, statusOptionWriteSchema } from './chunk-VVYIFBFQ.mjs';
|
|
7
|
+
import { createObjectValidator, createAttributeValidator, isNullishOrEmptyString } from './chunk-PSCSTHUB.mjs';
|
|
8
|
+
export { createFormAttributeValidator, isNullishOrEmptyString, rejectUnknownAttributesOrThrow, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow } from './chunk-PSCSTHUB.mjs';
|
|
9
9
|
import './chunk-QVLQPW3O.mjs';
|
|
10
10
|
import './chunk-ZDQ5AP26.mjs';
|
|
11
11
|
import './chunk-LV3FEUKU.mjs';
|
|
@@ -15,8 +15,8 @@ export { createCheckboxValidator } from './chunk-OSSGN43B.mjs';
|
|
|
15
15
|
export { createDateValidator } from './chunk-Q44QKLN4.mjs';
|
|
16
16
|
export { createNumberValidator } from './chunk-UANQJ2GH.mjs';
|
|
17
17
|
export { TEXT_FORMAT_PATTERNS, createTextValidator, resolveTextPattern } from './chunk-O73ROMWQ.mjs';
|
|
18
|
-
import { SchemaError, SchemaErrorCode, ValidationError, NotFoundError, DuplicateError } from './chunk-
|
|
19
|
-
export { AccessDeniedError, AttributeInUseError, AttributeNotFoundError, ChangeTypeNotSupportedError, ConcurrentModificationError, DestructiveSyncNotAllowedError, DuplicateError, ForbiddenError, MemoryNotFoundError, MigrationTimeoutError, NotFoundError, NotImplementedError, ObjectNotFoundError, ObjectReferencedError, OrphanSystemAttributeError, ProtectedResourceError, ProtectedRoleError, RecordNotFoundError, RecordReferencedError, RepositoryError, RoleNotFoundError, SchemaError, SchemaErrorCode, SchemaPlanNotFoundError, SearchBackendError, StorageError, SyncCascadeError, SyncConflictError, SyncError, SystemEntityImmutableError, ValidationError, isAttributeInUseError, isNotFoundError, isObjectReferencedError, isProtectedResourceError, isRecordReferencedError, isSchemaError, isValidationError } from './chunk-
|
|
18
|
+
import { SchemaError, SchemaErrorCode, ValidationError, NotFoundError, DuplicateError } from './chunk-K4UER3DU.mjs';
|
|
19
|
+
export { AccessDeniedError, AttributeInUseError, AttributeNotFoundError, ChangeTypeNotSupportedError, ConcurrentModificationError, DestructiveSyncNotAllowedError, DuplicateError, ForbiddenError, MemoryNotFoundError, MigrationTimeoutError, NotFoundError, NotImplementedError, ObjectNotFoundError, ObjectReferencedError, OrphanSystemAttributeError, ProtectedResourceError, ProtectedRoleError, RecordNotFoundError, RecordReferencedError, RepositoryError, RoleNotFoundError, SchemaError, SchemaErrorCode, SchemaPlanNotFoundError, SearchBackendError, StorageError, SyncCascadeError, SyncConflictError, SyncError, SystemEntityImmutableError, ValidationError, isAttributeInUseError, isNotFoundError, isObjectReferencedError, isProtectedResourceError, isRecordReferencedError, isSchemaError, isValidationError } from './chunk-K4UER3DU.mjs';
|
|
20
20
|
import './chunk-AYVHMVKQ.mjs';
|
|
21
21
|
import './chunk-YUFTHPOE.mjs';
|
|
22
22
|
import { formatPhoneForDisplay, normalizeCountrylessPhoneNumber, normalizePhoneNumber } from './chunk-R5LAJCBU.mjs';
|
|
@@ -381,7 +381,7 @@ function isDateRangeValue(value) {
|
|
|
381
381
|
return typeof value === "object" && value !== null && typeof value.start === "string";
|
|
382
382
|
}
|
|
383
383
|
function normalizeDateValue(value, attr) {
|
|
384
|
-
if (value
|
|
384
|
+
if (isNullishOrEmptyString(value)) return null;
|
|
385
385
|
if (isDateRangeValue(value)) {
|
|
386
386
|
return attr.endDate ? { start: value.start, end: value.end ?? null } : value.start;
|
|
387
387
|
}
|
|
@@ -519,7 +519,7 @@ function formatMultiselect(value, attribute) {
|
|
|
519
519
|
return value.join(", ");
|
|
520
520
|
}
|
|
521
521
|
function formatAttributeValue(value, attribute) {
|
|
522
|
-
if (value
|
|
522
|
+
if (isNullishOrEmptyString(value)) {
|
|
523
523
|
return EMPTY_VALUE_PLACEHOLDER;
|
|
524
524
|
}
|
|
525
525
|
switch (attribute.type) {
|
|
@@ -672,7 +672,7 @@ function renderLabelExpression(template, values, fallback = DEFAULT_LABEL_FALLBA
|
|
|
672
672
|
break;
|
|
673
673
|
}
|
|
674
674
|
}
|
|
675
|
-
const isEmpty2 = value
|
|
675
|
+
const isEmpty2 = isNullishOrEmptyString(value);
|
|
676
676
|
if (isEmpty2 && pipes.length === 0) return "";
|
|
677
677
|
for (const pipeExpr of pipes) {
|
|
678
678
|
const { name: pipeName, args } = parsePipeExpression(pipeExpr);
|
|
@@ -741,7 +741,7 @@ function relationPropertyDefs(attribute) {
|
|
|
741
741
|
return attribute.properties?.definitions;
|
|
742
742
|
}
|
|
743
743
|
function extractValueRefs(value) {
|
|
744
|
-
if (value
|
|
744
|
+
if (isNullishOrEmptyString(value)) return [];
|
|
745
745
|
if (typeof value === "string") return [{ id: value }];
|
|
746
746
|
if (Array.isArray(value)) return value.flatMap((item) => extractValueRefs(item));
|
|
747
747
|
if (typeof value === "object" && "id" in value) {
|
|
@@ -905,6 +905,7 @@ function isDefaultRole(roleName) {
|
|
|
905
905
|
}
|
|
906
906
|
var VALID_ICONS = new Set(ICONS);
|
|
907
907
|
var ATTRIBUTE_NAME_REGEX = /^[a-zA-Z_][a-zA-Z0-9_]*$/;
|
|
908
|
+
var VIEW_NAME_REGEX = /^[a-z][a-z0-9-]*$/;
|
|
908
909
|
var MAX_NAME_LENGTH = 63;
|
|
909
910
|
var MAX_LABEL_LENGTH = 128;
|
|
910
911
|
var OBJECT_NAME_SCHEMA = z2.string().min(1, "Object name cannot be empty").max(63, "Object name is too long (max 63 characters)").regex(/^[a-z][a-z0-9-]*$/, {
|
|
@@ -920,6 +921,26 @@ function validateObjectName(name) {
|
|
|
920
921
|
throw error;
|
|
921
922
|
}
|
|
922
923
|
}
|
|
924
|
+
function validateViewName(name) {
|
|
925
|
+
if (!name || name.length === 0) {
|
|
926
|
+
throw new ValidationError("View name cannot be empty", [
|
|
927
|
+
{ path: ["name"], message: "View name cannot be empty" }
|
|
928
|
+
]);
|
|
929
|
+
}
|
|
930
|
+
if (name.length > MAX_NAME_LENGTH) {
|
|
931
|
+
throw new ValidationError("View name is too long", [
|
|
932
|
+
{ path: ["name"], message: `View name is too long (max ${MAX_NAME_LENGTH} characters)` }
|
|
933
|
+
]);
|
|
934
|
+
}
|
|
935
|
+
if (!VIEW_NAME_REGEX.test(name)) {
|
|
936
|
+
throw new ValidationError("Invalid view name format", [
|
|
937
|
+
{
|
|
938
|
+
path: ["name"],
|
|
939
|
+
message: "View name must be in kebab-case (e.g., 'detail', 'list-view')"
|
|
940
|
+
}
|
|
941
|
+
]);
|
|
942
|
+
}
|
|
943
|
+
}
|
|
923
944
|
function assertUniqueBy(items, getKey, buildError) {
|
|
924
945
|
const seen = /* @__PURE__ */ new Set();
|
|
925
946
|
for (const item of items) {
|
|
@@ -1076,6 +1097,25 @@ var AgentBuilder = class {
|
|
|
1076
1097
|
Object.assign(this.bp, value);
|
|
1077
1098
|
return this;
|
|
1078
1099
|
}
|
|
1100
|
+
/**
|
|
1101
|
+
* Opt this agent into MCP servers: an array of server ids, or `"all"` to
|
|
1102
|
+
* mount every server the viewer can see. Absent by default — an agent that
|
|
1103
|
+
* never calls this stays tool-identical to one that predates the feature.
|
|
1104
|
+
* The opt-in only narrows; visibility is still enforced below it at
|
|
1105
|
+
* resolution time (`buildMcpToolset`), so naming an id the viewer cannot
|
|
1106
|
+
* see yields no tools from it, not an error.
|
|
1107
|
+
*
|
|
1108
|
+
* @example
|
|
1109
|
+
* ```typescript
|
|
1110
|
+
* agent({ name: "research-assistant" })
|
|
1111
|
+
* .mcpServers(["notion-workspace"])
|
|
1112
|
+
* // ...
|
|
1113
|
+
* ```
|
|
1114
|
+
*/
|
|
1115
|
+
mcpServers(value) {
|
|
1116
|
+
this.bp.mcpServers = Array.isArray(value) ? [...value] : value;
|
|
1117
|
+
return this;
|
|
1118
|
+
}
|
|
1079
1119
|
approval(value) {
|
|
1080
1120
|
this.bp.approval = { ...DEFAULT_APPROVAL_POLICY, ...this.bp.approval, ...value };
|
|
1081
1121
|
return this;
|
|
@@ -2757,6 +2797,8 @@ function validatePresetStructure(presetId, nodes, depth) {
|
|
|
2757
2797
|
}
|
|
2758
2798
|
}
|
|
2759
2799
|
}
|
|
2800
|
+
|
|
2801
|
+
// src/builders/view-builder.ts
|
|
2760
2802
|
var GroupBuilder = class {
|
|
2761
2803
|
constructor(id, label) {
|
|
2762
2804
|
this.data = { type: "fields", fields: [] };
|
|
@@ -2897,22 +2939,6 @@ var RelationGroupBuilder = class {
|
|
|
2897
2939
|
return this.data;
|
|
2898
2940
|
}
|
|
2899
2941
|
};
|
|
2900
|
-
function validateViewName(name, builderName, examples) {
|
|
2901
|
-
const viewNameSchema = z.string().min(1, "View name cannot be empty").max(63, "View name is too long (max 63 characters)").regex(/^[a-z][a-z0-9-]*$/, {
|
|
2902
|
-
message: `Invalid view name format.
|
|
2903
|
-
Name must be in kebab-case:
|
|
2904
|
-
\u2705 Valid: ${examples.valid}
|
|
2905
|
-
\u274C Invalid: ${examples.invalid}`
|
|
2906
|
-
});
|
|
2907
|
-
try {
|
|
2908
|
-
viewNameSchema.parse(name);
|
|
2909
|
-
} catch (error) {
|
|
2910
|
-
if (error instanceof z.ZodError) {
|
|
2911
|
-
throw new Error(`[${builderName}] ${error.issues[0].message}`);
|
|
2912
|
-
}
|
|
2913
|
-
throw error;
|
|
2914
|
-
}
|
|
2915
|
-
}
|
|
2916
2942
|
var TableTabConfig = class {
|
|
2917
2943
|
/** @internal */
|
|
2918
2944
|
constructor(view, tabData) {
|
|
@@ -3348,10 +3374,7 @@ var TabBuilder = class {
|
|
|
3348
3374
|
};
|
|
3349
3375
|
var DetailViewBuilder = class {
|
|
3350
3376
|
constructor(name, label) {
|
|
3351
|
-
validateViewName(name
|
|
3352
|
-
valid: "'detail', 'list-view', 'company-detail'",
|
|
3353
|
-
invalid: "'Detail', 'listView', 'list_view'"
|
|
3354
|
-
});
|
|
3377
|
+
validateViewName(name);
|
|
3355
3378
|
this.data = {
|
|
3356
3379
|
name,
|
|
3357
3380
|
label,
|
|
@@ -3471,10 +3494,7 @@ function findProtectedTabFilterAttribute(node) {
|
|
|
3471
3494
|
}
|
|
3472
3495
|
var ListViewBuilder = class {
|
|
3473
3496
|
constructor(name, label) {
|
|
3474
|
-
validateViewName(name
|
|
3475
|
-
valid: "'default', 'list-view', 'active-contacts'",
|
|
3476
|
-
invalid: "'Default', 'listView', 'list_view'"
|
|
3477
|
-
});
|
|
3497
|
+
validateViewName(name);
|
|
3478
3498
|
this.data = {
|
|
3479
3499
|
name,
|
|
3480
3500
|
label,
|
|
@@ -6236,9 +6256,9 @@ function evaluateCall(functionName, args) {
|
|
|
6236
6256
|
case "percent_not_empty":
|
|
6237
6257
|
return percentByEmptyState(args[0], false);
|
|
6238
6258
|
case "count_empty":
|
|
6239
|
-
return collectionItems(args[0]).filter(
|
|
6259
|
+
return collectionItems(args[0]).filter(isNullishOrEmptyString).length;
|
|
6240
6260
|
case "count_not_empty":
|
|
6241
|
-
return collectionItems(args[0]).filter((item) => !
|
|
6261
|
+
return collectionItems(args[0]).filter((item) => !isNullishOrEmptyString(item)).length;
|
|
6242
6262
|
case "count_unique":
|
|
6243
6263
|
return uniqueNonEmpty(collectionItems(args[0])).length;
|
|
6244
6264
|
default:
|
|
@@ -6281,14 +6301,14 @@ function percentByEmptyState(value, countEmpty) {
|
|
|
6281
6301
|
if (items.length === 0) {
|
|
6282
6302
|
return 0;
|
|
6283
6303
|
}
|
|
6284
|
-
const count = items.filter((item) =>
|
|
6304
|
+
const count = items.filter((item) => isNullishOrEmptyString(item) === countEmpty).length;
|
|
6285
6305
|
return count / items.length;
|
|
6286
6306
|
}
|
|
6287
6307
|
function uniqueNonEmpty(values) {
|
|
6288
6308
|
const seen = /* @__PURE__ */ new Set();
|
|
6289
6309
|
const result = [];
|
|
6290
6310
|
for (const value of values) {
|
|
6291
|
-
if (
|
|
6311
|
+
if (isNullishOrEmptyString(value)) {
|
|
6292
6312
|
continue;
|
|
6293
6313
|
}
|
|
6294
6314
|
const key = uniqueKey(value);
|
|
@@ -6309,9 +6329,6 @@ function collectionItems(value) {
|
|
|
6309
6329
|
function flatten(values) {
|
|
6310
6330
|
return values.flat(Number.POSITIVE_INFINITY);
|
|
6311
6331
|
}
|
|
6312
|
-
function isEmptyValue(value) {
|
|
6313
|
-
return value === null || value === void 0 || value === "";
|
|
6314
|
-
}
|
|
6315
6332
|
function toFiniteNumber(value) {
|
|
6316
6333
|
if (typeof value === "number") {
|
|
6317
6334
|
return Number.isFinite(value) ? value : null;
|
|
@@ -6525,10 +6542,10 @@ var COMPUTED_FUNCTION_METADATA = [
|
|
|
6525
6542
|
];
|
|
6526
6543
|
|
|
6527
6544
|
// src/filters/operators.ts
|
|
6528
|
-
var isEmpty = (v) => v
|
|
6545
|
+
var isEmpty = (v) => isNullishOrEmptyString(v) || Array.isArray(v) && v.length === 0;
|
|
6529
6546
|
var toStr = (v) => v == null ? "" : String(v);
|
|
6530
6547
|
var toNum = (v) => {
|
|
6531
|
-
if (v
|
|
6548
|
+
if (isNullishOrEmptyString(v)) return null;
|
|
6532
6549
|
const n = typeof v === "number" ? v : Number(v);
|
|
6533
6550
|
return Number.isFinite(n) ? n : null;
|
|
6534
6551
|
};
|
|
@@ -6694,50 +6711,6 @@ var OPERATOR_SPECS = {
|
|
|
6694
6711
|
}
|
|
6695
6712
|
};
|
|
6696
6713
|
|
|
6697
|
-
// src/filters/extract-filter-value.ts
|
|
6698
|
-
function extractCurrencyFilterValue(value) {
|
|
6699
|
-
if (typeof value === "number") return value;
|
|
6700
|
-
if (value !== null && typeof value === "object" && "value" in value) {
|
|
6701
|
-
const inner = value.value;
|
|
6702
|
-
return typeof inner === "number" ? inner : null;
|
|
6703
|
-
}
|
|
6704
|
-
return null;
|
|
6705
|
-
}
|
|
6706
|
-
function extractFilterValue(value) {
|
|
6707
|
-
if (value === null || value === void 0) return null;
|
|
6708
|
-
if (typeof value === "object" && "value" in value) {
|
|
6709
|
-
return value.value ?? null;
|
|
6710
|
-
}
|
|
6711
|
-
return value;
|
|
6712
|
-
}
|
|
6713
|
-
|
|
6714
|
-
// src/filters/polarity.ts
|
|
6715
|
-
var NEGATIVE_OPERATORS = /* @__PURE__ */ new Set([
|
|
6716
|
-
"is_not",
|
|
6717
|
-
"not_contains",
|
|
6718
|
-
"none_of",
|
|
6719
|
-
"is_empty"
|
|
6720
|
-
]);
|
|
6721
|
-
var NEGATIVE_TO_POSITIVE = {
|
|
6722
|
-
is_not: "is",
|
|
6723
|
-
not_contains: "contains",
|
|
6724
|
-
none_of: "any_of",
|
|
6725
|
-
is_empty: "is_not_empty"
|
|
6726
|
-
};
|
|
6727
|
-
function getOperatorPolarity(op) {
|
|
6728
|
-
return NEGATIVE_OPERATORS.has(op) ? "none" : "any";
|
|
6729
|
-
}
|
|
6730
|
-
function normalizeForEdgeRpc(op) {
|
|
6731
|
-
return NEGATIVE_TO_POSITIVE[op] ?? op;
|
|
6732
|
-
}
|
|
6733
|
-
var SINGLE_TO_MULTI = {
|
|
6734
|
-
is: "any_of",
|
|
6735
|
-
is_not: "none_of"
|
|
6736
|
-
};
|
|
6737
|
-
function toMultiValueOperator(op) {
|
|
6738
|
-
return SINGLE_TO_MULTI[op] ?? op;
|
|
6739
|
-
}
|
|
6740
|
-
|
|
6741
6714
|
// src/filters/evaluate.ts
|
|
6742
6715
|
var systemAttribute = (name, type) => ({ id: `system:${name}`, name, label: name, type, system: true });
|
|
6743
6716
|
var RECORD_SYSTEM_ATTRIBUTES = [
|
|
@@ -7344,4 +7317,4 @@ var persistedSchemaPlanSchema = z.preprocess(
|
|
|
7344
7317
|
structuralPersistedSchemaPlanSchema
|
|
7345
7318
|
);
|
|
7346
7319
|
|
|
7347
|
-
export { ALLOWED_PROPERTY_TYPES, ALL_ACTIONS, ALL_SYSTEM_RESOURCES, AUDIT_ACTIONS, AUDIT_RESOURCE_TYPES, ActivityTabConfig, AgentBuilder, BEHAVIOR_PROPERTIES, BROWSER_PREVIEW_STATUSES, BYTE_UNIT_LABELS, COMPUTED_FUNCTIONS, COMPUTED_FUNCTION_METADATA, COMPUTED_FUNCTION_NAMES, CONNECTOR_CALLBACK_PARAM, ComputedFormulaCompileError, CustomTabConfig, DB_COLUMN_FIELDS, DEFAULT_AGENT_EXECUTION_CONFIG, DEFAULT_APPROVAL_POLICY, DEFAULT_ROLES, DEFAULT_ROLE_DESCRIPTIONS, DEFAULT_ROLE_LABELS, DEFAULT_ROLE_PERMISSIONS, DOCUMENT_SYSTEM_ATTRIBUTES, DetailViewBuilder, DocumentsTabConfig, EMPTY_VALUE_PLACEHOLDER, ESTIMATED_COUNT_CAP, EmailsTabConfig, FORM_FORBIDDEN_ATTRIBUTE_TYPES, FlagRegistry, FlagService, FormBuilder, FormRegistry, FormRowBuilder, FormStepBuilder, GroupBuilder, IDENTITY_PROPERTIES, LIVE_EVENT_TYPES, LIVE_STREAM_START_CURSOR, ListViewBuilder, ListViewTabConfigBuilder, MAX_PRESET_DEPTH, MAX_TODOS, MAX_TODO_DESCRIPTION_CHARS, MAX_TODO_ID_CHARS, MAX_TODO_RESULT_CHARS, MEMORY_LIST_VIEW, MEMORY_OBJECT, MEMORY_VIEW, NOTIFICATION_INBOX_STATES, NOTIFICATION_KINDS, NOTIFICATION_PRIORITIES, NOTIFICATION_SENSITIVITIES, NOTIFICATION_TYPES_V1, NOTIFICATION_TYPE_AGENT_QUESTION_REQUESTED, NOTIFICATION_TYPE_AGENT_SESSION_COMPLETED, NOTIFICATION_TYPE_AGENT_SESSION_FAILED, NOTIFICATION_TYPE_AGENT_SESSION_TIMEOUT, NOTIFICATION_TYPE_AGENT_SESSION_WAITING_HUMAN, NOTIFICATION_TYPE_AGENT_TASK_ASSIGNED, NOTIFICATION_WORK_STATES, NoopGeocodingAdapter, OPERATOR_SPECS, ObjectBuilder, PRESENTATION_PROPERTIES, QUALIFIED_SEPARATOR, RECORD_CREATOR_ROOT_ACTOR_METADATA_KEY, RELATION_TARGET_ANY, RelationGroupBuilder, RichtextTabConfig, SCHEMA_PLAN_LIMITS, SESSION_TERMINAL_STATUSES, SKILL_LIST_VIEW, SKILL_OBJECT, SKILL_VIEW, STANDARD_SCHEMA_VENDOR, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, TODAY_DEFAULT, TODO_PLAN_STATUSES, TODO_STATUSES, TabBuilder, TableTabConfig, USER_STATUSES, accessLevelToActions, actionsToAccessLevel, agent, agentDisplayName, applyPipes, applyRelationProps, assertAcyclicComputedDependencies, assertLiveStreamCursor, booleanFlag, buildPropertySchema, buildQualifiedAttribute, canonicalStringify, checkbox, compareLiveStreamCursors, compileComputedFormula, compileRollupAttribute, computeByteMagnitude, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, date, dateInTimezone, dateValueStart, destructiveSchema, detailView, document, evaluateComputedAst, evaluateComputedFormula, evaluateComputedFormulaWithResult, evaluateFilterState, evaluateRecordFilterState, extractAttributeNames,
|
|
7320
|
+
export { ALLOWED_PROPERTY_TYPES, ALL_ACTIONS, ALL_SYSTEM_RESOURCES, AUDIT_ACTIONS, AUDIT_RESOURCE_TYPES, ActivityTabConfig, AgentBuilder, BEHAVIOR_PROPERTIES, BROWSER_PREVIEW_STATUSES, BYTE_UNIT_LABELS, COMPUTED_FUNCTIONS, COMPUTED_FUNCTION_METADATA, COMPUTED_FUNCTION_NAMES, CONNECTOR_CALLBACK_PARAM, ComputedFormulaCompileError, CustomTabConfig, DB_COLUMN_FIELDS, DEFAULT_AGENT_EXECUTION_CONFIG, DEFAULT_APPROVAL_POLICY, DEFAULT_ROLES, DEFAULT_ROLE_DESCRIPTIONS, DEFAULT_ROLE_LABELS, DEFAULT_ROLE_PERMISSIONS, DOCUMENT_SYSTEM_ATTRIBUTES, DetailViewBuilder, DocumentsTabConfig, EMPTY_VALUE_PLACEHOLDER, ESTIMATED_COUNT_CAP, EmailsTabConfig, FORM_FORBIDDEN_ATTRIBUTE_TYPES, FlagRegistry, FlagService, FormBuilder, FormRegistry, FormRowBuilder, FormStepBuilder, GroupBuilder, IDENTITY_PROPERTIES, LIVE_EVENT_TYPES, LIVE_STREAM_START_CURSOR, ListViewBuilder, ListViewTabConfigBuilder, MAX_PRESET_DEPTH, MAX_TODOS, MAX_TODO_DESCRIPTION_CHARS, MAX_TODO_ID_CHARS, MAX_TODO_RESULT_CHARS, MEMORY_LIST_VIEW, MEMORY_OBJECT, MEMORY_VIEW, NOTIFICATION_INBOX_STATES, NOTIFICATION_KINDS, NOTIFICATION_PRIORITIES, NOTIFICATION_SENSITIVITIES, NOTIFICATION_TYPES_V1, NOTIFICATION_TYPE_AGENT_QUESTION_REQUESTED, NOTIFICATION_TYPE_AGENT_SESSION_COMPLETED, NOTIFICATION_TYPE_AGENT_SESSION_FAILED, NOTIFICATION_TYPE_AGENT_SESSION_TIMEOUT, NOTIFICATION_TYPE_AGENT_SESSION_WAITING_HUMAN, NOTIFICATION_TYPE_AGENT_TASK_ASSIGNED, NOTIFICATION_WORK_STATES, NoopGeocodingAdapter, OPERATOR_SPECS, ObjectBuilder, PRESENTATION_PROPERTIES, QUALIFIED_SEPARATOR, RECORD_CREATOR_ROOT_ACTOR_METADATA_KEY, RELATION_TARGET_ANY, RelationGroupBuilder, RichtextTabConfig, SCHEMA_PLAN_LIMITS, SESSION_TERMINAL_STATUSES, SKILL_LIST_VIEW, SKILL_OBJECT, SKILL_VIEW, STANDARD_SCHEMA_VENDOR, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, TODAY_DEFAULT, TODO_PLAN_STATUSES, TODO_STATUSES, TabBuilder, TableTabConfig, USER_STATUSES, accessLevelToActions, actionsToAccessLevel, agent, agentDisplayName, applyPipes, applyRelationProps, assertAcyclicComputedDependencies, assertLiveStreamCursor, booleanFlag, buildPropertySchema, buildQualifiedAttribute, canonicalStringify, checkbox, compareLiveStreamCursors, compileComputedFormula, compileRollupAttribute, computeByteMagnitude, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, date, dateInTimezone, dateValueStart, destructiveSchema, detailView, document, evaluateComputedAst, evaluateComputedFormula, evaluateComputedFormulaWithResult, evaluateFilterState, evaluateRecordFilterState, extractAttributeNames, extractValueRefs, flagRegistry, form, formRegistry, formatAttributeValue, formatByteSize, formatComputedResult, formatLocationValue, formula, generateDefaultDetailView, generateDefaultListView, getActiveTab, getErrorMessage, getLiveProtocolPayloadChannel, getRecordCreatorPrincipalId, getSlotFieldTargets, getUserDisplayName, group, hasDestructiveEntries, hasOptions, inferInverseCardinality, inferRollupReturnType, isAttributeSortable2 as isAttributeSortable, isBilateralRelation, isCheckboxEquality, isComputedFunctionName, isDateRangeValue, isDefaultRole, isDetailView, isDocumentAttribute, isEmptyObject, isFieldGroup, isFormDefinition, isFormFieldsRow, isFormFreeFieldRef, isFormHeadingRow, isFormSeparatorRow, isFormSlotFieldRef, isFormTextRow, isLabelExpression, isListView, isLiveErrorPayload, isLiveEventEnvelope, isLiveEventPayload, isLiveEventPayloadForType, isLiveEventType, isLiveGapPayload, isLiveReplayCompletePayload, isLiveStreamCursor, isNotEmpty, isPlainRecord, isRelationGroup, isStandardSchema, isTerminalSessionStatus, isUniversalRelation, jsonFlag, listView, liveChannelKey, location, matchesAccepts, multiselect, normalizeDateValue, number, numberFlag, object, parseLiveChannelKey, parseLiveSubscribePayload, parseLiveUnsubscribePayload, parseQualifiedAttribute, persistedDefaultViewTargetSchema, persistedSchemaPlanSchema, phone, plannedAttributeSchema, plannedInlineAttributeSchema, plannedObjectSchema, proposedDefaultViewTargetSchema, registry, relation, relationGroup, relationPropertyDefs, renderLabelExpression, resetViewToDefault, resolveAttributeDefaultValue, resolvePropertyDefinitions, richtext, rollup, rollupToFormulaExpression, schemaPlanSchema, select, status, stringFlag, text, toUndefinedIfEmpty, user, validateAttributeName, validateLabelExpression, validateObjectName, validateViewName, viewRegistry, viewStateKey, viewSyncPayload };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { V as ValidationMessages } from '../types-DNz3ITS-.mjs';
|
|
2
2
|
export { DEFAULT_VALIDATION_MESSAGES, formatZodErrors } from './core/index.mjs';
|
|
3
|
-
export {
|
|
4
|
-
export { S as SCHEMA_LIMITS, c as colorIdSchema, d as detailTabSchema, a as detailViewConfigSchema, i as iconNameSchema, b as inverseSourceSchema, l as listViewConfigSchema, e as listViewTabSchema, p as parseViewConfig, r as relationSourceSchema, t as tableSourceSchema, v as viewConfigByTypeSchema } from '../all-
|
|
3
|
+
export { b$ as multiselectOptionWriteSchema, c0 as parseAttributeConfig, c1 as parseAttributeConfigForCreate, c2 as parseAttributeConfigForUpdate, c3 as selectOptionWriteSchema, c4 as statusGroupSchema, c5 as statusOptionWriteSchema } from '../index-ApHE8c1J.mjs';
|
|
4
|
+
export { S as SCHEMA_LIMITS, c as colorIdSchema, d as detailTabSchema, a as detailViewConfigSchema, i as iconNameSchema, b as inverseSourceSchema, l as listViewConfigSchema, e as listViewTabSchema, p as parseViewConfig, r as relationSourceSchema, t as tableSourceSchema, v as viewConfigByTypeSchema } from '../all-D-E8v5yo.mjs';
|
|
5
5
|
export { a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, b as validateDraft, d as validateDraftOrThrow, e as validateObject, f as validateObjectOrThrow } from '../helpers-C1VVEAOO.mjs';
|
|
6
6
|
import '../attributes-lBLiOIY3.mjs';
|
|
7
7
|
import '@stndrds/constants';
|
package/dist/validation/all.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { V as ValidationMessages } from '../types-DqLi1tx1.js';
|
|
2
2
|
export { DEFAULT_VALIDATION_MESSAGES, formatZodErrors } from './core/index.js';
|
|
3
|
-
export {
|
|
4
|
-
export { S as SCHEMA_LIMITS, c as colorIdSchema, d as detailTabSchema, a as detailViewConfigSchema, i as iconNameSchema, b as inverseSourceSchema, l as listViewConfigSchema, e as listViewTabSchema, p as parseViewConfig, r as relationSourceSchema, t as tableSourceSchema, v as viewConfigByTypeSchema } from '../all
|
|
3
|
+
export { b$ as multiselectOptionWriteSchema, c0 as parseAttributeConfig, c1 as parseAttributeConfigForCreate, c2 as parseAttributeConfigForUpdate, c3 as selectOptionWriteSchema, c4 as statusGroupSchema, c5 as statusOptionWriteSchema } from '../index-AJeEKoy6.js';
|
|
4
|
+
export { S as SCHEMA_LIMITS, c as colorIdSchema, d as detailTabSchema, a as detailViewConfigSchema, i as iconNameSchema, b as inverseSourceSchema, l as listViewConfigSchema, e as listViewTabSchema, p as parseViewConfig, r as relationSourceSchema, t as tableSourceSchema, v as viewConfigByTypeSchema } from '../all-D5SkjRst.js';
|
|
5
5
|
export { a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, b as validateDraft, d as validateDraftOrThrow, e as validateObject, f as validateObjectOrThrow } from '../helpers-vQ6kp8ET.js';
|
|
6
6
|
import '../attributes-_b3Db8vT.js';
|
|
7
7
|
import '@stndrds/constants';
|
package/dist/validation/all.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
var chunkF32XOFSP_js = require('../chunk-F32XOFSP.js');
|
|
4
|
+
var chunkKKR6I3YV_js = require('../chunk-KKR6I3YV.js');
|
|
5
|
+
var chunkFMLZHHWB_js = require('../chunk-FMLZHHWB.js');
|
|
6
6
|
require('../chunk-EW5XR2X3.js');
|
|
7
7
|
require('../chunk-QWKLQRBX.js');
|
|
8
8
|
require('../chunk-KNGWHQLR.js');
|
|
@@ -12,7 +12,7 @@ require('../chunk-5WATIVCA.js');
|
|
|
12
12
|
require('../chunk-SI34M4IC.js');
|
|
13
13
|
require('../chunk-YIP5FJ5H.js');
|
|
14
14
|
require('../chunk-ZPFOKBIN.js');
|
|
15
|
-
require('../chunk-
|
|
15
|
+
require('../chunk-RYAQOR7M.js');
|
|
16
16
|
require('../chunk-ACKMC6FL.js');
|
|
17
17
|
require('../chunk-E6JUYGJX.js');
|
|
18
18
|
require('../chunk-Q4SZAMJT.js');
|
|
@@ -23,103 +23,103 @@ var chunkYKWSHBT5_js = require('../chunk-YKWSHBT5.js');
|
|
|
23
23
|
|
|
24
24
|
Object.defineProperty(exports, "detailTabSchema", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkF32XOFSP_js.detailTabSchema; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "detailViewConfigSchema", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkF32XOFSP_js.detailViewConfigSchema; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "inverseSourceSchema", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkF32XOFSP_js.inverseSourceSchema; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "listViewConfigSchema", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkF32XOFSP_js.listViewConfigSchema; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "listViewTabSchema", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkF32XOFSP_js.listViewTabSchema; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "parseViewConfig", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkF32XOFSP_js.parseViewConfig; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "relationSourceSchema", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkF32XOFSP_js.relationSourceSchema; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "tableSourceSchema", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkF32XOFSP_js.tableSourceSchema; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "viewConfigByTypeSchema", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkF32XOFSP_js.viewConfigByTypeSchema; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "SCHEMA_LIMITS", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkKKR6I3YV_js.SCHEMA_LIMITS; }
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(exports, "colorIdSchema", {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkKKR6I3YV_js.colorIdSchema; }
|
|
67
67
|
});
|
|
68
68
|
Object.defineProperty(exports, "iconNameSchema", {
|
|
69
69
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkKKR6I3YV_js.iconNameSchema; }
|
|
71
71
|
});
|
|
72
72
|
Object.defineProperty(exports, "multiselectOptionWriteSchema", {
|
|
73
73
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkKKR6I3YV_js.multiselectOptionWriteSchema; }
|
|
75
75
|
});
|
|
76
76
|
Object.defineProperty(exports, "parseAttributeConfig", {
|
|
77
77
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkKKR6I3YV_js.parseAttributeConfig; }
|
|
79
79
|
});
|
|
80
80
|
Object.defineProperty(exports, "parseAttributeConfigForCreate", {
|
|
81
81
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkKKR6I3YV_js.parseAttributeConfigForCreate; }
|
|
83
83
|
});
|
|
84
84
|
Object.defineProperty(exports, "parseAttributeConfigForUpdate", {
|
|
85
85
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkKKR6I3YV_js.parseAttributeConfigForUpdate; }
|
|
87
87
|
});
|
|
88
88
|
Object.defineProperty(exports, "selectOptionWriteSchema", {
|
|
89
89
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkKKR6I3YV_js.selectOptionWriteSchema; }
|
|
91
91
|
});
|
|
92
92
|
Object.defineProperty(exports, "statusGroupSchema", {
|
|
93
93
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunkKKR6I3YV_js.statusGroupSchema; }
|
|
95
95
|
});
|
|
96
96
|
Object.defineProperty(exports, "statusOptionWriteSchema", {
|
|
97
97
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunkKKR6I3YV_js.statusOptionWriteSchema; }
|
|
99
99
|
});
|
|
100
100
|
Object.defineProperty(exports, "createFormAttributeValidator", {
|
|
101
101
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunkFMLZHHWB_js.createFormAttributeValidator; }
|
|
103
103
|
});
|
|
104
104
|
Object.defineProperty(exports, "rejectUnknownAttributesOrThrow", {
|
|
105
105
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunkFMLZHHWB_js.rejectUnknownAttributesOrThrow; }
|
|
107
107
|
});
|
|
108
108
|
Object.defineProperty(exports, "validateDraft", {
|
|
109
109
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunkFMLZHHWB_js.validateDraft; }
|
|
111
111
|
});
|
|
112
112
|
Object.defineProperty(exports, "validateDraftOrThrow", {
|
|
113
113
|
enumerable: true,
|
|
114
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunkFMLZHHWB_js.validateDraftOrThrow; }
|
|
115
115
|
});
|
|
116
116
|
Object.defineProperty(exports, "validateObject", {
|
|
117
117
|
enumerable: true,
|
|
118
|
-
get: function () { return
|
|
118
|
+
get: function () { return chunkFMLZHHWB_js.validateObject; }
|
|
119
119
|
});
|
|
120
120
|
Object.defineProperty(exports, "validateObjectOrThrow", {
|
|
121
121
|
enumerable: true,
|
|
122
|
-
get: function () { return
|
|
122
|
+
get: function () { return chunkFMLZHHWB_js.validateObjectOrThrow; }
|
|
123
123
|
});
|
|
124
124
|
Object.defineProperty(exports, "DEFAULT_VALIDATION_MESSAGES", {
|
|
125
125
|
enumerable: true,
|
package/dist/validation/all.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { detailTabSchema, detailViewConfigSchema, inverseSourceSchema, listViewConfigSchema, listViewTabSchema, parseViewConfig, relationSourceSchema, tableSourceSchema, viewConfigByTypeSchema } from '../chunk-
|
|
2
|
-
export { SCHEMA_LIMITS, colorIdSchema, iconNameSchema, multiselectOptionWriteSchema, parseAttributeConfig, parseAttributeConfigForCreate, parseAttributeConfigForUpdate, selectOptionWriteSchema, statusGroupSchema, statusOptionWriteSchema } from '../chunk-
|
|
3
|
-
export { createFormAttributeValidator, rejectUnknownAttributesOrThrow, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow } from '../chunk-
|
|
1
|
+
export { detailTabSchema, detailViewConfigSchema, inverseSourceSchema, listViewConfigSchema, listViewTabSchema, parseViewConfig, relationSourceSchema, tableSourceSchema, viewConfigByTypeSchema } from '../chunk-XQEDMB6B.mjs';
|
|
2
|
+
export { SCHEMA_LIMITS, colorIdSchema, iconNameSchema, multiselectOptionWriteSchema, parseAttributeConfig, parseAttributeConfigForCreate, parseAttributeConfigForUpdate, selectOptionWriteSchema, statusGroupSchema, statusOptionWriteSchema } from '../chunk-VVYIFBFQ.mjs';
|
|
3
|
+
export { createFormAttributeValidator, rejectUnknownAttributesOrThrow, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow } from '../chunk-PSCSTHUB.mjs';
|
|
4
4
|
import '../chunk-QVLQPW3O.mjs';
|
|
5
5
|
import '../chunk-ZDQ5AP26.mjs';
|
|
6
6
|
import '../chunk-LV3FEUKU.mjs';
|
|
@@ -10,7 +10,7 @@ import '../chunk-OSSGN43B.mjs';
|
|
|
10
10
|
import '../chunk-Q44QKLN4.mjs';
|
|
11
11
|
import '../chunk-UANQJ2GH.mjs';
|
|
12
12
|
import '../chunk-O73ROMWQ.mjs';
|
|
13
|
-
import '../chunk-
|
|
13
|
+
import '../chunk-K4UER3DU.mjs';
|
|
14
14
|
import '../chunk-AYVHMVKQ.mjs';
|
|
15
15
|
import '../chunk-YUFTHPOE.mjs';
|
|
16
16
|
import '../chunk-R5LAJCBU.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { c6 as attributeConfigSchemas, c7 as getAttributeConfigSchema, b$ as multiselectOptionWriteSchema, c0 as parseAttributeConfig, c1 as parseAttributeConfigForCreate, c2 as parseAttributeConfigForUpdate, c3 as selectOptionWriteSchema, c4 as statusGroupSchema, c5 as statusOptionWriteSchema } from '../../index-ApHE8c1J.mjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import '../../attributes-lBLiOIY3.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { c6 as attributeConfigSchemas, c7 as getAttributeConfigSchema, b$ as multiselectOptionWriteSchema, c0 as parseAttributeConfig, c1 as parseAttributeConfigForCreate, c2 as parseAttributeConfigForUpdate, c3 as selectOptionWriteSchema, c4 as statusGroupSchema, c5 as statusOptionWriteSchema } from '../../index-AJeEKoy6.js';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import '../../attributes-_b3Db8vT.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkKKR6I3YV_js = require('../../chunk-KKR6I3YV.js');
|
|
4
4
|
require('../../chunk-5WATIVCA.js');
|
|
5
5
|
require('../../chunk-SI34M4IC.js');
|
|
6
6
|
require('../../chunk-YIP5FJ5H.js');
|
|
7
7
|
require('../../chunk-ZPFOKBIN.js');
|
|
8
|
-
require('../../chunk-
|
|
8
|
+
require('../../chunk-RYAQOR7M.js');
|
|
9
9
|
require('../../chunk-YKWSHBT5.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
Object.defineProperty(exports, "attributeConfigSchemas", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkKKR6I3YV_js.attributeConfigSchemas; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "getAttributeConfigSchema", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkKKR6I3YV_js.getAttributeConfigSchema; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "multiselectOptionWriteSchema", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkKKR6I3YV_js.multiselectOptionWriteSchema; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "parseAttributeConfig", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkKKR6I3YV_js.parseAttributeConfig; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "parseAttributeConfigForCreate", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkKKR6I3YV_js.parseAttributeConfigForCreate; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "parseAttributeConfigForUpdate", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkKKR6I3YV_js.parseAttributeConfigForUpdate; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "selectOptionWriteSchema", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkKKR6I3YV_js.selectOptionWriteSchema; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "statusGroupSchema", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkKKR6I3YV_js.statusGroupSchema; }
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(exports, "statusOptionWriteSchema", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkKKR6I3YV_js.statusOptionWriteSchema; }
|
|
48
48
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { attributeConfigSchemas, getAttributeConfigSchema, multiselectOptionWriteSchema, parseAttributeConfig, parseAttributeConfigForCreate, parseAttributeConfigForUpdate, selectOptionWriteSchema, statusGroupSchema, statusOptionWriteSchema } from '../../chunk-
|
|
1
|
+
export { attributeConfigSchemas, getAttributeConfigSchema, multiselectOptionWriteSchema, parseAttributeConfig, parseAttributeConfigForCreate, parseAttributeConfigForUpdate, selectOptionWriteSchema, statusGroupSchema, statusOptionWriteSchema } from '../../chunk-VVYIFBFQ.mjs';
|
|
2
2
|
import '../../chunk-OSSGN43B.mjs';
|
|
3
3
|
import '../../chunk-Q44QKLN4.mjs';
|
|
4
4
|
import '../../chunk-UANQJ2GH.mjs';
|
|
5
5
|
import '../../chunk-O73ROMWQ.mjs';
|
|
6
|
-
import '../../chunk-
|
|
6
|
+
import '../../chunk-K4UER3DU.mjs';
|
|
7
7
|
import '../../chunk-HRQEZUAA.mjs';
|