@stndrds/schema 1.0.0-alpha.169 → 1.0.0-alpha.170
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/{filters-zzsF0GxK.d.ts → filters-B2cCCbDq.d.ts} +7 -4
- package/dist/{filters-DRXk4dLI.d.mts → filters-B9Pjped4.d.mts} +7 -4
- package/dist/{helpers-DOjqrfWE.d.mts → helpers-YWZowk1B.d.mts} +2 -2
- package/dist/{helpers-64gmAyw0.d.ts → helpers-icxxQQJQ.d.ts} +2 -2
- package/dist/index.d.mts +91 -13
- package/dist/index.d.ts +91 -13
- package/dist/index.js +49 -18
- package/dist/index.mjs +48 -19
- package/dist/{types-Bemfgle3.d.ts → types-DGGecyHV.d.ts} +1 -1
- package/dist/{types-DxEobsMy.d.mts → types-DqpxKOcD.d.mts} +1 -1
- package/dist/validation/all.d.mts +3 -3
- package/dist/validation/all.d.ts +3 -3
- package/dist/validation/complex/currency.d.mts +2 -2
- package/dist/validation/complex/currency.d.ts +2 -2
- package/dist/validation/complex/file.d.mts +2 -2
- package/dist/validation/complex/file.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/core/index.d.mts +3 -3
- package/dist/validation/core/index.d.ts +3 -3
- package/dist/validation/object/index.d.mts +3 -3
- package/dist/validation/object/index.d.ts +3 -3
- 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/rating.d.mts +2 -2
- package/dist/validation/primitives/rating.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 -2
package/dist/index.js
CHANGED
|
@@ -748,6 +748,33 @@ function validateSlotAgainstConfig(slotName, mimeType, slots) {
|
|
|
748
748
|
}
|
|
749
749
|
return slot;
|
|
750
750
|
}
|
|
751
|
+
|
|
752
|
+
// src/lib/qualify-with.ts
|
|
753
|
+
var ALLOWED_PROPERTY_TYPES = Object.freeze([
|
|
754
|
+
"text",
|
|
755
|
+
"textarea",
|
|
756
|
+
"number",
|
|
757
|
+
"checkbox",
|
|
758
|
+
"date",
|
|
759
|
+
"phone",
|
|
760
|
+
"currency",
|
|
761
|
+
"status",
|
|
762
|
+
"select",
|
|
763
|
+
"multiselect",
|
|
764
|
+
"rating",
|
|
765
|
+
"location"
|
|
766
|
+
]);
|
|
767
|
+
function buildPropertySchema(builders) {
|
|
768
|
+
const definitions = [];
|
|
769
|
+
for (const builder of builders) {
|
|
770
|
+
const attr = builder.build();
|
|
771
|
+
if (!ALLOWED_PROPERTY_TYPES.includes(attr.type)) {
|
|
772
|
+
throw new Error(`Property type "${attr.type}" is not supported in .qualifyWith()`);
|
|
773
|
+
}
|
|
774
|
+
definitions.push(attr);
|
|
775
|
+
}
|
|
776
|
+
return { definitions };
|
|
777
|
+
}
|
|
751
778
|
var EMPTY_VALUE_PLACEHOLDER = "\u2014";
|
|
752
779
|
function formatText(value) {
|
|
753
780
|
return String(value);
|
|
@@ -1263,15 +1290,6 @@ function validateOptions(options, attributeName) {
|
|
|
1263
1290
|
}
|
|
1264
1291
|
|
|
1265
1292
|
// src/builders/attribute-builders.ts
|
|
1266
|
-
var FORBIDDEN_PROPERTY_TYPES = [
|
|
1267
|
-
"formula",
|
|
1268
|
-
"rollup",
|
|
1269
|
-
"relation",
|
|
1270
|
-
"file",
|
|
1271
|
-
"user",
|
|
1272
|
-
"document",
|
|
1273
|
-
"richtext"
|
|
1274
|
-
];
|
|
1275
1293
|
function asMutableArray(arr) {
|
|
1276
1294
|
return arr;
|
|
1277
1295
|
}
|
|
@@ -1879,14 +1897,7 @@ var BaseRelationAttributeBuilder = class extends BaseAttributeBuilder {
|
|
|
1879
1897
|
'.qualifyWith() must be called AFTER .to(). Example: relation({ name: "companies" }).to("companies").qualifyWith(...)'
|
|
1880
1898
|
);
|
|
1881
1899
|
}
|
|
1882
|
-
|
|
1883
|
-
const attr = builder.build();
|
|
1884
|
-
if (FORBIDDEN_PROPERTY_TYPES.includes(attr.type)) {
|
|
1885
|
-
throw new Error(`Property type "${attr.type}" is not supported in .qualifyWith()`);
|
|
1886
|
-
}
|
|
1887
|
-
return attr;
|
|
1888
|
-
});
|
|
1889
|
-
this.attr.properties = { definitions };
|
|
1900
|
+
this.attr.properties = buildPropertySchema(builders);
|
|
1890
1901
|
return this;
|
|
1891
1902
|
}
|
|
1892
1903
|
/**
|
|
@@ -2140,7 +2151,7 @@ var DocumentAttributeBuilder = class extends BaseAttributeBuilder {
|
|
|
2140
2151
|
}
|
|
2141
2152
|
/**
|
|
2142
2153
|
* Allow multiple documents.
|
|
2143
|
-
* Value becomes string[] instead of string.
|
|
2154
|
+
* Value becomes string[] instead of string (or Array<{ id; props }> when qualified).
|
|
2144
2155
|
*/
|
|
2145
2156
|
multiple() {
|
|
2146
2157
|
this.attr.multiple = true;
|
|
@@ -2184,6 +2195,24 @@ var DocumentAttributeBuilder = class extends BaseAttributeBuilder {
|
|
|
2184
2195
|
this.attr.attributes = [...this.attr.attributes, builder.build()];
|
|
2185
2196
|
return this;
|
|
2186
2197
|
}
|
|
2198
|
+
/**
|
|
2199
|
+
* Add properties to qualify each document using existing attribute builders.
|
|
2200
|
+
* Returns a new builder type that carries the inferred props shape for $infer.
|
|
2201
|
+
*
|
|
2202
|
+
* @example
|
|
2203
|
+
* document({ name: "contracts", label: "Contracts" })
|
|
2204
|
+
* .multiple()
|
|
2205
|
+
* .qualifyWith(
|
|
2206
|
+
* select({ name: "kind", label: "Kind" }).options([...]),
|
|
2207
|
+
* number({ name: "amount", label: "Amount" }).min(0),
|
|
2208
|
+
* )
|
|
2209
|
+
*/
|
|
2210
|
+
qualifyWith(...builders) {
|
|
2211
|
+
this.attr.properties = buildPropertySchema(
|
|
2212
|
+
builders
|
|
2213
|
+
);
|
|
2214
|
+
return this;
|
|
2215
|
+
}
|
|
2187
2216
|
/**
|
|
2188
2217
|
* Mark this attribute as required.
|
|
2189
2218
|
*/
|
|
@@ -5598,6 +5627,7 @@ Object.defineProperty(exports, "formatZodErrors", {
|
|
|
5598
5627
|
enumerable: true,
|
|
5599
5628
|
get: function () { return chunkT225DB55_js.formatZodErrors; }
|
|
5600
5629
|
});
|
|
5630
|
+
exports.ALLOWED_PROPERTY_TYPES = ALLOWED_PROPERTY_TYPES;
|
|
5601
5631
|
exports.ALL_ACTIONS = ALL_ACTIONS;
|
|
5602
5632
|
exports.ALL_SYSTEM_RESOURCES = ALL_SYSTEM_RESOURCES;
|
|
5603
5633
|
exports.AccessDeniedError = AccessDeniedError;
|
|
@@ -5673,6 +5703,7 @@ exports.accessLevelToActions = accessLevelToActions;
|
|
|
5673
5703
|
exports.actionsToAccessLevel = actionsToAccessLevel;
|
|
5674
5704
|
exports.applyPipes = applyPipes;
|
|
5675
5705
|
exports.booleanFlag = booleanFlag;
|
|
5706
|
+
exports.buildPropertySchema = buildPropertySchema;
|
|
5676
5707
|
exports.checkbox = checkbox;
|
|
5677
5708
|
exports.createFlagRegistry = createFlagRegistry;
|
|
5678
5709
|
exports.createFlagService = createFlagService;
|
package/dist/index.mjs
CHANGED
|
@@ -744,6 +744,33 @@ function validateSlotAgainstConfig(slotName, mimeType, slots) {
|
|
|
744
744
|
}
|
|
745
745
|
return slot;
|
|
746
746
|
}
|
|
747
|
+
|
|
748
|
+
// src/lib/qualify-with.ts
|
|
749
|
+
var ALLOWED_PROPERTY_TYPES = Object.freeze([
|
|
750
|
+
"text",
|
|
751
|
+
"textarea",
|
|
752
|
+
"number",
|
|
753
|
+
"checkbox",
|
|
754
|
+
"date",
|
|
755
|
+
"phone",
|
|
756
|
+
"currency",
|
|
757
|
+
"status",
|
|
758
|
+
"select",
|
|
759
|
+
"multiselect",
|
|
760
|
+
"rating",
|
|
761
|
+
"location"
|
|
762
|
+
]);
|
|
763
|
+
function buildPropertySchema(builders) {
|
|
764
|
+
const definitions = [];
|
|
765
|
+
for (const builder of builders) {
|
|
766
|
+
const attr = builder.build();
|
|
767
|
+
if (!ALLOWED_PROPERTY_TYPES.includes(attr.type)) {
|
|
768
|
+
throw new Error(`Property type "${attr.type}" is not supported in .qualifyWith()`);
|
|
769
|
+
}
|
|
770
|
+
definitions.push(attr);
|
|
771
|
+
}
|
|
772
|
+
return { definitions };
|
|
773
|
+
}
|
|
747
774
|
var EMPTY_VALUE_PLACEHOLDER = "\u2014";
|
|
748
775
|
function formatText(value) {
|
|
749
776
|
return String(value);
|
|
@@ -1259,15 +1286,6 @@ function validateOptions(options, attributeName) {
|
|
|
1259
1286
|
}
|
|
1260
1287
|
|
|
1261
1288
|
// src/builders/attribute-builders.ts
|
|
1262
|
-
var FORBIDDEN_PROPERTY_TYPES = [
|
|
1263
|
-
"formula",
|
|
1264
|
-
"rollup",
|
|
1265
|
-
"relation",
|
|
1266
|
-
"file",
|
|
1267
|
-
"user",
|
|
1268
|
-
"document",
|
|
1269
|
-
"richtext"
|
|
1270
|
-
];
|
|
1271
1289
|
function asMutableArray(arr) {
|
|
1272
1290
|
return arr;
|
|
1273
1291
|
}
|
|
@@ -1875,14 +1893,7 @@ var BaseRelationAttributeBuilder = class extends BaseAttributeBuilder {
|
|
|
1875
1893
|
'.qualifyWith() must be called AFTER .to(). Example: relation({ name: "companies" }).to("companies").qualifyWith(...)'
|
|
1876
1894
|
);
|
|
1877
1895
|
}
|
|
1878
|
-
|
|
1879
|
-
const attr = builder.build();
|
|
1880
|
-
if (FORBIDDEN_PROPERTY_TYPES.includes(attr.type)) {
|
|
1881
|
-
throw new Error(`Property type "${attr.type}" is not supported in .qualifyWith()`);
|
|
1882
|
-
}
|
|
1883
|
-
return attr;
|
|
1884
|
-
});
|
|
1885
|
-
this.attr.properties = { definitions };
|
|
1896
|
+
this.attr.properties = buildPropertySchema(builders);
|
|
1886
1897
|
return this;
|
|
1887
1898
|
}
|
|
1888
1899
|
/**
|
|
@@ -2136,7 +2147,7 @@ var DocumentAttributeBuilder = class extends BaseAttributeBuilder {
|
|
|
2136
2147
|
}
|
|
2137
2148
|
/**
|
|
2138
2149
|
* Allow multiple documents.
|
|
2139
|
-
* Value becomes string[] instead of string.
|
|
2150
|
+
* Value becomes string[] instead of string (or Array<{ id; props }> when qualified).
|
|
2140
2151
|
*/
|
|
2141
2152
|
multiple() {
|
|
2142
2153
|
this.attr.multiple = true;
|
|
@@ -2180,6 +2191,24 @@ var DocumentAttributeBuilder = class extends BaseAttributeBuilder {
|
|
|
2180
2191
|
this.attr.attributes = [...this.attr.attributes, builder.build()];
|
|
2181
2192
|
return this;
|
|
2182
2193
|
}
|
|
2194
|
+
/**
|
|
2195
|
+
* Add properties to qualify each document using existing attribute builders.
|
|
2196
|
+
* Returns a new builder type that carries the inferred props shape for $infer.
|
|
2197
|
+
*
|
|
2198
|
+
* @example
|
|
2199
|
+
* document({ name: "contracts", label: "Contracts" })
|
|
2200
|
+
* .multiple()
|
|
2201
|
+
* .qualifyWith(
|
|
2202
|
+
* select({ name: "kind", label: "Kind" }).options([...]),
|
|
2203
|
+
* number({ name: "amount", label: "Amount" }).min(0),
|
|
2204
|
+
* )
|
|
2205
|
+
*/
|
|
2206
|
+
qualifyWith(...builders) {
|
|
2207
|
+
this.attr.properties = buildPropertySchema(
|
|
2208
|
+
builders
|
|
2209
|
+
);
|
|
2210
|
+
return this;
|
|
2211
|
+
}
|
|
2183
2212
|
/**
|
|
2184
2213
|
* Mark this attribute as required.
|
|
2185
2214
|
*/
|
|
@@ -5538,4 +5567,4 @@ function evaluateRule(rule, values, attrByName) {
|
|
|
5538
5567
|
return spec.evaluateInMemory(values[rule.attribute], rule.value, attr);
|
|
5539
5568
|
}
|
|
5540
5569
|
|
|
5541
|
-
export { ALL_ACTIONS, ALL_SYSTEM_RESOURCES, AccessDeniedError, ActivityTabConfig, AttributeInUseError, AttributeNotFoundError, BEHAVIOR_PROPERTIES, ConcurrentModificationError, CustomTabConfig, DB_COLUMN_FIELDS, DEFAULT_DOCUMENT_SLOT, DEFAULT_ROLES, DEFAULT_ROLE_DESCRIPTIONS, DEFAULT_ROLE_LABELS, DEFAULT_ROLE_PERMISSIONS, DOCUMENT_SYSTEM_ATTRIBUTES, DetailViewBuilder, DocumentSlotValidationError, DocumentsTabConfig, DuplicateError, EMPTY_VALUE_PLACEHOLDER, FORM_FORBIDDEN_ATTRIBUTE_TYPES, FlagRegistry, FlagService, ForbiddenError, FormBuilder, FormRegistry, FormRowBuilder, FormStepBuilder, GroupBuilder, IDENTITY_PROPERTIES, InvalidPathError, ListViewBuilder, ListViewTabConfigBuilder, MaxDepthExceededError, MemoryNotFoundError, NO_VALUE_OPERATORS, NoopGeocodingAdapter, NotFoundError, NotImplementedError, OPERATORS_BY_TYPE, OPERATOR_SPECS, ObjectBuilder, ObjectNotFoundError, ObjectReferencedError, PRESENTATION_PROPERTIES, PolicyViolationError, ProtectedResourceError, ProtectedRoleError, RELATION_TARGET_ANY, RESERVED_ATTRIBUTE_NAMES, RecordNotFoundError, RecordReferencedError, RelationGroupBuilder, RepositoryError, RichtextTabConfig, RoleNotFoundError, STANDARD_SCHEMA_VENDOR, SYSTEM_ATTRIBUTES, SYSTEM_ATTRIBUTE_I18N_KEYS, SYSTEM_FIELD_NAMES, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, SchemaError, SchemaErrorCode, StorageError, SyncError, TabBuilder, TableTabConfig, USER_STATUSES, ValidationError, accessLevelToActions, actionsToAccessLevel, applyPipes, booleanFlag, checkbox, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, date, detailView, document, evaluateFilterState, evaluateFormula, evaluateFormulaAttribute, evaluateFormulaWithResult, extractAttributeNames, extractFormulaVariables, extractRelationNames, extractRelationReferences, file, flagRegistry, flattenRelationsForEval, form, formRegistry, formatAttributeValue, formatFormulaResult, formula, generateDefaultDetailView, generateDefaultListView, getActiveTab, getErrorMessage, getPathDepth, getRelationPath, getRollupFilterOperators, getSystemAttributeI18nKey, getSystemAttributeList, getTargetAttributeName, group, hasOptions, hasRelationReferences, inferInverseCardinality, isAttributeInUseError, isAttributeSortable, isBilateralRelation, isDefaultRole, isDetailView, isDocumentAttribute, isEmptyObject, isFieldGroup, isFormDefinition, isFormFieldsRow, isFormFreeFieldRef, isFormHeadingRow, isFormSeparatorRow, isFormSlotFieldRef, isFormTextRow, isLabelExpression, isListView, isNoValueOperator, isNotEmpty, isNotFoundError, isObjectReferencedError, isProtectedResourceError, isRecordReferencedError, isRelationGroup, isSchemaError, isStandardSchema, isUniversalRelation, isValidationError, jsonFlag, listView, location, matchesMime, multiselect, normaliseDocumentSlots, number, numberFlag, object, parsePath, pathHasManyCardinality, phone, rating, registry, relation, relationGroup, renderLabelExpression, resetViewToDefault, richtext, rollup, select, status, stringFlag, text, textarea, toUndefinedIfEmpty, user, validateAttributeName, validateFormulaExpression, validatePath, validateSlotAgainstConfig, viewRegistry };
|
|
5570
|
+
export { ALLOWED_PROPERTY_TYPES, ALL_ACTIONS, ALL_SYSTEM_RESOURCES, AccessDeniedError, ActivityTabConfig, AttributeInUseError, AttributeNotFoundError, BEHAVIOR_PROPERTIES, ConcurrentModificationError, CustomTabConfig, DB_COLUMN_FIELDS, DEFAULT_DOCUMENT_SLOT, DEFAULT_ROLES, DEFAULT_ROLE_DESCRIPTIONS, DEFAULT_ROLE_LABELS, DEFAULT_ROLE_PERMISSIONS, DOCUMENT_SYSTEM_ATTRIBUTES, DetailViewBuilder, DocumentSlotValidationError, DocumentsTabConfig, DuplicateError, EMPTY_VALUE_PLACEHOLDER, FORM_FORBIDDEN_ATTRIBUTE_TYPES, FlagRegistry, FlagService, ForbiddenError, FormBuilder, FormRegistry, FormRowBuilder, FormStepBuilder, GroupBuilder, IDENTITY_PROPERTIES, InvalidPathError, ListViewBuilder, ListViewTabConfigBuilder, MaxDepthExceededError, MemoryNotFoundError, NO_VALUE_OPERATORS, NoopGeocodingAdapter, NotFoundError, NotImplementedError, OPERATORS_BY_TYPE, OPERATOR_SPECS, ObjectBuilder, ObjectNotFoundError, ObjectReferencedError, PRESENTATION_PROPERTIES, PolicyViolationError, ProtectedResourceError, ProtectedRoleError, RELATION_TARGET_ANY, RESERVED_ATTRIBUTE_NAMES, RecordNotFoundError, RecordReferencedError, RelationGroupBuilder, RepositoryError, RichtextTabConfig, RoleNotFoundError, STANDARD_SCHEMA_VENDOR, SYSTEM_ATTRIBUTES, SYSTEM_ATTRIBUTE_I18N_KEYS, SYSTEM_FIELD_NAMES, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, SchemaError, SchemaErrorCode, StorageError, SyncError, TabBuilder, TableTabConfig, USER_STATUSES, ValidationError, accessLevelToActions, actionsToAccessLevel, applyPipes, booleanFlag, buildPropertySchema, checkbox, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, date, detailView, document, evaluateFilterState, evaluateFormula, evaluateFormulaAttribute, evaluateFormulaWithResult, extractAttributeNames, extractFormulaVariables, extractRelationNames, extractRelationReferences, file, flagRegistry, flattenRelationsForEval, form, formRegistry, formatAttributeValue, formatFormulaResult, formula, generateDefaultDetailView, generateDefaultListView, getActiveTab, getErrorMessage, getPathDepth, getRelationPath, getRollupFilterOperators, getSystemAttributeI18nKey, getSystemAttributeList, getTargetAttributeName, group, hasOptions, hasRelationReferences, inferInverseCardinality, isAttributeInUseError, isAttributeSortable, isBilateralRelation, isDefaultRole, isDetailView, isDocumentAttribute, isEmptyObject, isFieldGroup, isFormDefinition, isFormFieldsRow, isFormFreeFieldRef, isFormHeadingRow, isFormSeparatorRow, isFormSlotFieldRef, isFormTextRow, isLabelExpression, isListView, isNoValueOperator, isNotEmpty, isNotFoundError, isObjectReferencedError, isProtectedResourceError, isRecordReferencedError, isRelationGroup, isSchemaError, isStandardSchema, isUniversalRelation, isValidationError, jsonFlag, listView, location, matchesMime, multiselect, normaliseDocumentSlots, number, numberFlag, object, parsePath, pathHasManyCardinality, phone, rating, registry, relation, relationGroup, renderLabelExpression, resetViewToDefault, richtext, rollup, select, status, stringFlag, text, textarea, toUndefinedIfEmpty, user, validateAttributeName, validateFormulaExpression, validatePath, validateSlotAgainstConfig, viewRegistry };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { V as ValidationMessages } from '../types-
|
|
1
|
+
export { V as ValidationMessages } from '../types-DqpxKOcD.mjs';
|
|
2
2
|
export { DEFAULT_VALIDATION_MESSAGES, formatZodErrors } from './core/index.mjs';
|
|
3
3
|
export { parseAttributeConfig } from './config/index.mjs';
|
|
4
|
-
export { c as computeRecordStatus, a as createFormAttributeValidator, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../helpers-
|
|
5
|
-
import '../filters-
|
|
4
|
+
export { c as computeRecordStatus, a as createFormAttributeValidator, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../helpers-YWZowk1B.mjs';
|
|
5
|
+
import '../filters-B9Pjped4.mjs';
|
|
6
6
|
import '@stndrds/constants';
|
|
7
7
|
import '../utils.mjs';
|
|
8
8
|
import 'zod';
|
package/dist/validation/all.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { V as ValidationMessages } from '../types-
|
|
1
|
+
export { V as ValidationMessages } from '../types-DGGecyHV.js';
|
|
2
2
|
export { DEFAULT_VALIDATION_MESSAGES, formatZodErrors } from './core/index.js';
|
|
3
3
|
export { parseAttributeConfig } from './config/index.js';
|
|
4
|
-
export { c as computeRecordStatus, a as createFormAttributeValidator, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../helpers-
|
|
5
|
-
import '../filters-
|
|
4
|
+
export { c as computeRecordStatus, a as createFormAttributeValidator, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../helpers-icxxQQJQ.js';
|
|
5
|
+
import '../filters-B2cCCbDq.js';
|
|
6
6
|
import '@stndrds/constants';
|
|
7
7
|
import '../utils.js';
|
|
8
8
|
import 'zod';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { C as CurrencyAttribute } from '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { C as CurrencyAttribute } from '../../filters-B9Pjped4.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-DqpxKOcD.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { C as CurrencyAttribute } from '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { C as CurrencyAttribute } from '../../filters-B2cCCbDq.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-DGGecyHV.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { F as FileAttribute } from '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { F as FileAttribute } from '../../filters-B9Pjped4.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-DqpxKOcD.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { F as FileAttribute } from '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { F as FileAttribute } from '../../filters-B2cCCbDq.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-DGGecyHV.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { L as LocationAttribute } from '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { L as LocationAttribute } from '../../filters-B9Pjped4.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-DqpxKOcD.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { L as LocationAttribute } from '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { L as LocationAttribute } from '../../filters-B2cCCbDq.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-DGGecyHV.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { P as PhoneAttribute } from '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { P as PhoneAttribute } from '../../filters-B9Pjped4.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-DqpxKOcD.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { P as PhoneAttribute } from '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { P as PhoneAttribute } from '../../filters-B2cCCbDq.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-DGGecyHV.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { M as MultiRelationAttribute, R as RelationAttribute, S as SingleRelationAttribute } from '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { M as MultiRelationAttribute, R as RelationAttribute, S as SingleRelationAttribute } from '../../filters-B9Pjped4.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-DqpxKOcD.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { M as MultiRelationAttribute, R as RelationAttribute, S as SingleRelationAttribute } from '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { M as MultiRelationAttribute, R as RelationAttribute, S as SingleRelationAttribute } from '../../filters-B2cCCbDq.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-DGGecyHV.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { a as RichtextAttribute } from '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { a as RichtextAttribute } from '../../filters-B9Pjped4.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-DqpxKOcD.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { a as RichtextAttribute } from '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { a as RichtextAttribute } from '../../filters-B2cCCbDq.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-DGGecyHV.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { b as MultiselectAttribute, c as SelectAttribute, d as StatusAttribute } from '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { b as MultiselectAttribute, c as SelectAttribute, d as StatusAttribute } from '../../filters-B9Pjped4.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-DqpxKOcD.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { b as MultiselectAttribute, c as SelectAttribute, d as StatusAttribute } from '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { b as MultiselectAttribute, c as SelectAttribute, d as StatusAttribute } from '../../filters-B2cCCbDq.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-DGGecyHV.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { U as UserAttribute } from '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { U as UserAttribute } from '../../filters-B9Pjped4.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-DqpxKOcD.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { U as UserAttribute } from '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { U as UserAttribute } from '../../filters-B2cCCbDq.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-DGGecyHV.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { e as FormulaAttribute } from '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { e as FormulaAttribute } from '../../filters-B9Pjped4.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-DqpxKOcD.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { e as FormulaAttribute } from '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { e as FormulaAttribute } from '../../filters-B2cCCbDq.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-DGGecyHV.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { f as RollupAttribute } from '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { f as RollupAttribute } from '../../filters-B9Pjped4.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-DqpxKOcD.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { f as RollupAttribute } from '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { f as RollupAttribute } from '../../filters-B2cCCbDq.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-DGGecyHV.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
-
export { a as ValidationResult } from '../../types-
|
|
1
|
+
import { V as ValidationMessages } from '../../types-DqpxKOcD.mjs';
|
|
2
|
+
export { a as ValidationResult } from '../../types-DqpxKOcD.mjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import '../../filters-
|
|
4
|
+
import '../../filters-B9Pjped4.mjs';
|
|
5
5
|
import '@stndrds/constants';
|
|
6
6
|
import '../../utils.mjs';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
-
export { a as ValidationResult } from '../../types-
|
|
1
|
+
import { V as ValidationMessages } from '../../types-DGGecyHV.js';
|
|
2
|
+
export { a as ValidationResult } from '../../types-DGGecyHV.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import '../../filters-
|
|
4
|
+
import '../../filters-B2cCCbDq.js';
|
|
5
5
|
import '@stndrds/constants';
|
|
6
6
|
import '../../utils.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { c as computeRecordStatus, f as createAttributeValidator, a as createFormAttributeValidator, g as getMissingRequiredAttributes, i as isRecordComplete, h as validateAttribute, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../../helpers-
|
|
1
|
+
export { c as computeRecordStatus, f as createAttributeValidator, a as createFormAttributeValidator, g as getMissingRequiredAttributes, i as isRecordComplete, h as validateAttribute, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../../helpers-YWZowk1B.mjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { O as ObjectDefinition } from '../../filters-
|
|
4
|
-
import '../../types-
|
|
3
|
+
import { O as ObjectDefinition } from '../../filters-B9Pjped4.mjs';
|
|
4
|
+
import '../../types-DqpxKOcD.mjs';
|
|
5
5
|
import '@stndrds/constants';
|
|
6
6
|
import '../../utils.mjs';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { c as computeRecordStatus, f as createAttributeValidator, a as createFormAttributeValidator, g as getMissingRequiredAttributes, i as isRecordComplete, h as validateAttribute, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../../helpers-
|
|
1
|
+
export { c as computeRecordStatus, f as createAttributeValidator, a as createFormAttributeValidator, g as getMissingRequiredAttributes, i as isRecordComplete, h as validateAttribute, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../../helpers-icxxQQJQ.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { O as ObjectDefinition } from '../../filters-
|
|
4
|
-
import '../../types-
|
|
3
|
+
import { O as ObjectDefinition } from '../../filters-B2cCCbDq.js';
|
|
4
|
+
import '../../types-DGGecyHV.js';
|
|
5
5
|
import '@stndrds/constants';
|
|
6
6
|
import '../../utils.js';
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { g as CheckboxAttribute } from '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { g as CheckboxAttribute } from '../../filters-B9Pjped4.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-DqpxKOcD.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { g as CheckboxAttribute } from '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { g as CheckboxAttribute } from '../../filters-B2cCCbDq.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-DGGecyHV.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { D as DateAttribute } from '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { D as DateAttribute } from '../../filters-B9Pjped4.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-DqpxKOcD.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { D as DateAttribute } from '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { D as DateAttribute } from '../../filters-B2cCCbDq.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-DGGecyHV.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { N as NumberAttribute } from '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { N as NumberAttribute } from '../../filters-B9Pjped4.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-DqpxKOcD.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { N as NumberAttribute } from '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { N as NumberAttribute } from '../../filters-B2cCCbDq.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-DGGecyHV.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { h as RatingAttribute } from '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { h as RatingAttribute } from '../../filters-B9Pjped4.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-DqpxKOcD.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { h as RatingAttribute } from '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { h as RatingAttribute } from '../../filters-B2cCCbDq.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-DGGecyHV.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
|