@stndrds/schema 1.0.0-alpha.218 → 1.0.0-alpha.221
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-C-V9Lr25.d.mts → attributes-C6pCxr5P.d.mts} +6 -0
- package/dist/{attributes-DZj9iuri.d.ts → attributes-DZIol94T.d.ts} +6 -0
- package/dist/{helpers-qyvuR_QS.d.ts → helpers-B3EPtA8t.d.ts} +2 -2
- package/dist/{helpers-YQiY20E2.d.mts → helpers-Ca3PIt9O.d.mts} +2 -2
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +82 -82
- package/dist/index.mjs +5 -5
- package/dist/{types-DyJSoFa8.d.ts → types-CBV2_ikK.d.ts} +1 -1
- package/dist/{types-BwOWmTvQ.d.mts → types-DjGoodOL.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 +14 -14
- package/dist/validation/all.mjs +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/object/index.js +15 -15
- package/dist/validation/object/index.mjs +2 -2
- 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 -2
- package/dist/{chunk-6DHNDVBO.mjs → chunk-5WYDO3ZB.mjs} +1 -1
- package/dist/{chunk-7LIRDMJ7.js → chunk-XTPYL6OM.js} +1 -1
|
@@ -949,6 +949,12 @@ interface DocumentAttribute extends BaseAttribute<string[]> {
|
|
|
949
949
|
*/
|
|
950
950
|
slots?: DocumentSlotConfig[];
|
|
951
951
|
}
|
|
952
|
+
/**
|
|
953
|
+
* Union of every attribute definition supported by Standards objects.
|
|
954
|
+
*
|
|
955
|
+
* Use this type when code needs to inspect or render attributes generically
|
|
956
|
+
* across primitive, relation, computed, file, user, and document fields.
|
|
957
|
+
*/
|
|
952
958
|
type Attribute = TextAttribute | RichtextAttribute | NumberAttribute | CheckboxAttribute | DateAttribute | PhoneAttribute | CurrencyAttribute | StatusAttribute | LocationAttribute | SelectAttribute | MultiselectAttribute | FileAttribute | UserAttribute | RelationAttribute | FormulaAttribute | RollupAttribute | DocumentAttribute;
|
|
953
959
|
/**
|
|
954
960
|
* Check if an attribute supports sorting based on its type.
|
|
@@ -949,6 +949,12 @@ interface DocumentAttribute extends BaseAttribute<string[]> {
|
|
|
949
949
|
*/
|
|
950
950
|
slots?: DocumentSlotConfig[];
|
|
951
951
|
}
|
|
952
|
+
/**
|
|
953
|
+
* Union of every attribute definition supported by Standards objects.
|
|
954
|
+
*
|
|
955
|
+
* Use this type when code needs to inspect or render attributes generically
|
|
956
|
+
* across primitive, relation, computed, file, user, and document fields.
|
|
957
|
+
*/
|
|
952
958
|
type Attribute = TextAttribute | RichtextAttribute | NumberAttribute | CheckboxAttribute | DateAttribute | PhoneAttribute | CurrencyAttribute | StatusAttribute | LocationAttribute | SelectAttribute | MultiselectAttribute | FileAttribute | UserAttribute | RelationAttribute | FormulaAttribute | RollupAttribute | DocumentAttribute;
|
|
953
959
|
/**
|
|
954
960
|
* Check if an attribute supports sorting based on its type.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { A as Attribute, O as ObjectDefinition, h as CompletionStatus } from './attributes-
|
|
3
|
-
import { V as ValidationMessages, a as ValidationResult } from './types-
|
|
2
|
+
import { A as Attribute, O as ObjectDefinition, h as CompletionStatus } from './attributes-DZIol94T.js';
|
|
3
|
+
import { V as ValidationMessages, a as ValidationResult } from './types-CBV2_ikK.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Create a Zod schema for any attribute type.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { A as Attribute, O as ObjectDefinition, h as CompletionStatus } from './attributes-
|
|
3
|
-
import { V as ValidationMessages, a as ValidationResult } from './types-
|
|
2
|
+
import { A as Attribute, O as ObjectDefinition, h as CompletionStatus } from './attributes-C6pCxr5P.mjs';
|
|
3
|
+
import { V as ValidationMessages, a as ValidationResult } from './types-DjGoodOL.mjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Create a Zod schema for any attribute type.
|
package/dist/index.d.mts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { i as ComputedValueType, j as ComputedReturnType, k as AttributeType, l as ComputedOptionsSource, m as ComputedDependency, n as ComputedPlan, f as RollupAttribute, o as ComputedFormulaAstNode, A as Attribute, p as DocumentLayout, h as CompletionStatus, q as Timestamps, r as SchemaOperation, s as LocationGranularity, t as Location, e as FormulaAttribute, u as DocumentAttribute, d as StatusAttribute, c as SelectAttribute, b as MultiselectAttribute, v as Phone, w as Currency, D as DateAttribute, U as UserAttribute, x as DocumentSlotConfig, y as PropertySchema, z as AutofillConfig, g as CheckboxAttribute, C as CurrencyAttribute, T as TextAttribute, N as NumberAttribute, P as PhoneAttribute, B as Option, L as LocationAttribute, F as FileAttribute, E as FormulaReturnType, R as RelationAttribute, G as BilateralConfig, S as SingleRelationAttribute, M as MultiRelationAttribute, H as RelationTarget, a as RichtextAttribute, I as RollupFunction, J as UserReferenceType, K as MigrationDefinition, O as ObjectDefinition } from './attributes-
|
|
2
|
-
export { Q as AUTOFILL_ELIGIBLE_TYPES, V as AttributeGroup, W as AutofillEligibleType, X as BaseAttribute, Y as BuiltInTransform, Z as ComputedAttributeState, _ as ComputedFieldKind, $ as ComputedFormulaBinaryNode, a0 as ComputedFormulaBinaryOperator, a1 as ComputedFormulaCallNode, a2 as ComputedFormulaLiteralNode, a3 as ComputedFormulaParseError, a4 as ComputedFormulaPathNode, a5 as ComputedStateStatus, a6 as CreateDocument, a7 as CreateDocumentLink, a8 as CreateDocumentSlot, a9 as DEFAULT_DOCUMENT_SLOT, aa as DateFormat, ab as DateValue, ac as Document, ad as DocumentKind, ae as DocumentLayoutVariant, af as DocumentListOptions, ag as DocumentSlot, ah as DocumentWithSlots, ai as DocumentWithSubCount, aj as FolderPreset, ak as MAX_PRESET_DEPTH, al as NumberUnit, am as ObjectAttribute, an as ObjectRecord, ao as OptionPropertyAttribute, ap as PresetNode, aq as PropertyAttribute, ar as PropertyType, as as RELATION_TARGET_ANY, at as RESERVED_ATTRIBUTE_NAMES, au as RESERVED_OBJECT_NAMES, av as RecordDocuments, aw as ReservedAttributeName, ax as ReservedObjectName, ay as RichTextAttribute, az as SYSTEM_FIELD_NAMES, aA as SlotStatus, aB as StatusGroup, aC as SystemFieldName, aD as UpdateDocument, aE as UpdateDocumentSlot, aF as hasOptions, aG as inferInverseCardinality, aH as isAttributeSortable, aI as isBilateralRelation, aJ as isUniversalRelation, aK as parseComputedFormula, aL as resolvePropertyDefinitions } from './attributes-
|
|
1
|
+
import { i as ComputedValueType, j as ComputedReturnType, k as AttributeType, l as ComputedOptionsSource, m as ComputedDependency, n as ComputedPlan, f as RollupAttribute, o as ComputedFormulaAstNode, A as Attribute, p as DocumentLayout, h as CompletionStatus, q as Timestamps, r as SchemaOperation, s as LocationGranularity, t as Location, e as FormulaAttribute, u as DocumentAttribute, d as StatusAttribute, c as SelectAttribute, b as MultiselectAttribute, v as Phone, w as Currency, D as DateAttribute, U as UserAttribute, x as DocumentSlotConfig, y as PropertySchema, z as AutofillConfig, g as CheckboxAttribute, C as CurrencyAttribute, T as TextAttribute, N as NumberAttribute, P as PhoneAttribute, B as Option, L as LocationAttribute, F as FileAttribute, E as FormulaReturnType, R as RelationAttribute, G as BilateralConfig, S as SingleRelationAttribute, M as MultiRelationAttribute, H as RelationTarget, a as RichtextAttribute, I as RollupFunction, J as UserReferenceType, K as MigrationDefinition, O as ObjectDefinition } from './attributes-C6pCxr5P.mjs';
|
|
2
|
+
export { Q as AUTOFILL_ELIGIBLE_TYPES, V as AttributeGroup, W as AutofillEligibleType, X as BaseAttribute, Y as BuiltInTransform, Z as ComputedAttributeState, _ as ComputedFieldKind, $ as ComputedFormulaBinaryNode, a0 as ComputedFormulaBinaryOperator, a1 as ComputedFormulaCallNode, a2 as ComputedFormulaLiteralNode, a3 as ComputedFormulaParseError, a4 as ComputedFormulaPathNode, a5 as ComputedStateStatus, a6 as CreateDocument, a7 as CreateDocumentLink, a8 as CreateDocumentSlot, a9 as DEFAULT_DOCUMENT_SLOT, aa as DateFormat, ab as DateValue, ac as Document, ad as DocumentKind, ae as DocumentLayoutVariant, af as DocumentListOptions, ag as DocumentSlot, ah as DocumentWithSlots, ai as DocumentWithSubCount, aj as FolderPreset, ak as MAX_PRESET_DEPTH, al as NumberUnit, am as ObjectAttribute, an as ObjectRecord, ao as OptionPropertyAttribute, ap as PresetNode, aq as PropertyAttribute, ar as PropertyType, as as RELATION_TARGET_ANY, at as RESERVED_ATTRIBUTE_NAMES, au as RESERVED_OBJECT_NAMES, av as RecordDocuments, aw as ReservedAttributeName, ax as ReservedObjectName, ay as RichTextAttribute, az as SYSTEM_FIELD_NAMES, aA as SlotStatus, aB as StatusGroup, aC as SystemFieldName, aD as UpdateDocument, aE as UpdateDocumentSlot, aF as hasOptions, aG as inferInverseCardinality, aH as isAttributeSortable, aI as isBilateralRelation, aJ as isUniversalRelation, aK as parseComputedFormula, aL as resolvePropertyDefinitions } from './attributes-C6pCxr5P.mjs';
|
|
3
3
|
import { IconName, MimeType, ColorId, CountryIso3, CurrencyCode } from '@stndrds/constants';
|
|
4
4
|
import { Uuid, TenantId } from './utils.mjs';
|
|
5
5
|
export { UserId, asTenantId, asUserId, deepEqual, generateId, indexBy } from './utils.mjs';
|
|
6
6
|
import { StandardSchemaV1 } from '@standard-schema/spec';
|
|
7
7
|
export { StandardSchemaV1 } from '@standard-schema/spec';
|
|
8
8
|
import z from 'zod';
|
|
9
|
-
export { V as ValidationMessages } from './types-
|
|
9
|
+
export { V as ValidationMessages } from './types-DjGoodOL.mjs';
|
|
10
10
|
export { DEFAULT_VALIDATION_MESSAGES, formatZodErrors } from './validation/core/index.mjs';
|
|
11
11
|
export { parseAttributeConfig } from './validation/config/index.mjs';
|
|
12
|
-
export { c as computeRecordStatus, a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from './helpers-
|
|
12
|
+
export { c as computeRecordStatus, a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from './helpers-Ca3PIt9O.mjs';
|
|
13
13
|
|
|
14
14
|
declare const COMPUTED_FUNCTION_NAMES: readonly ["if", "concat", "sum", "avg", "count", "min", "max", "earliest", "latest", "unique", "first", "percent_empty", "percent_not_empty", "count_empty", "count_not_empty", "count_unique"];
|
|
15
15
|
type ComputedFunctionName = (typeof COMPUTED_FUNCTION_NAMES)[number];
|
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { i as ComputedValueType, j as ComputedReturnType, k as AttributeType, l as ComputedOptionsSource, m as ComputedDependency, n as ComputedPlan, f as RollupAttribute, o as ComputedFormulaAstNode, A as Attribute, p as DocumentLayout, h as CompletionStatus, q as Timestamps, r as SchemaOperation, s as LocationGranularity, t as Location, e as FormulaAttribute, u as DocumentAttribute, d as StatusAttribute, c as SelectAttribute, b as MultiselectAttribute, v as Phone, w as Currency, D as DateAttribute, U as UserAttribute, x as DocumentSlotConfig, y as PropertySchema, z as AutofillConfig, g as CheckboxAttribute, C as CurrencyAttribute, T as TextAttribute, N as NumberAttribute, P as PhoneAttribute, B as Option, L as LocationAttribute, F as FileAttribute, E as FormulaReturnType, R as RelationAttribute, G as BilateralConfig, S as SingleRelationAttribute, M as MultiRelationAttribute, H as RelationTarget, a as RichtextAttribute, I as RollupFunction, J as UserReferenceType, K as MigrationDefinition, O as ObjectDefinition } from './attributes-
|
|
2
|
-
export { Q as AUTOFILL_ELIGIBLE_TYPES, V as AttributeGroup, W as AutofillEligibleType, X as BaseAttribute, Y as BuiltInTransform, Z as ComputedAttributeState, _ as ComputedFieldKind, $ as ComputedFormulaBinaryNode, a0 as ComputedFormulaBinaryOperator, a1 as ComputedFormulaCallNode, a2 as ComputedFormulaLiteralNode, a3 as ComputedFormulaParseError, a4 as ComputedFormulaPathNode, a5 as ComputedStateStatus, a6 as CreateDocument, a7 as CreateDocumentLink, a8 as CreateDocumentSlot, a9 as DEFAULT_DOCUMENT_SLOT, aa as DateFormat, ab as DateValue, ac as Document, ad as DocumentKind, ae as DocumentLayoutVariant, af as DocumentListOptions, ag as DocumentSlot, ah as DocumentWithSlots, ai as DocumentWithSubCount, aj as FolderPreset, ak as MAX_PRESET_DEPTH, al as NumberUnit, am as ObjectAttribute, an as ObjectRecord, ao as OptionPropertyAttribute, ap as PresetNode, aq as PropertyAttribute, ar as PropertyType, as as RELATION_TARGET_ANY, at as RESERVED_ATTRIBUTE_NAMES, au as RESERVED_OBJECT_NAMES, av as RecordDocuments, aw as ReservedAttributeName, ax as ReservedObjectName, ay as RichTextAttribute, az as SYSTEM_FIELD_NAMES, aA as SlotStatus, aB as StatusGroup, aC as SystemFieldName, aD as UpdateDocument, aE as UpdateDocumentSlot, aF as hasOptions, aG as inferInverseCardinality, aH as isAttributeSortable, aI as isBilateralRelation, aJ as isUniversalRelation, aK as parseComputedFormula, aL as resolvePropertyDefinitions } from './attributes-
|
|
1
|
+
import { i as ComputedValueType, j as ComputedReturnType, k as AttributeType, l as ComputedOptionsSource, m as ComputedDependency, n as ComputedPlan, f as RollupAttribute, o as ComputedFormulaAstNode, A as Attribute, p as DocumentLayout, h as CompletionStatus, q as Timestamps, r as SchemaOperation, s as LocationGranularity, t as Location, e as FormulaAttribute, u as DocumentAttribute, d as StatusAttribute, c as SelectAttribute, b as MultiselectAttribute, v as Phone, w as Currency, D as DateAttribute, U as UserAttribute, x as DocumentSlotConfig, y as PropertySchema, z as AutofillConfig, g as CheckboxAttribute, C as CurrencyAttribute, T as TextAttribute, N as NumberAttribute, P as PhoneAttribute, B as Option, L as LocationAttribute, F as FileAttribute, E as FormulaReturnType, R as RelationAttribute, G as BilateralConfig, S as SingleRelationAttribute, M as MultiRelationAttribute, H as RelationTarget, a as RichtextAttribute, I as RollupFunction, J as UserReferenceType, K as MigrationDefinition, O as ObjectDefinition } from './attributes-DZIol94T.js';
|
|
2
|
+
export { Q as AUTOFILL_ELIGIBLE_TYPES, V as AttributeGroup, W as AutofillEligibleType, X as BaseAttribute, Y as BuiltInTransform, Z as ComputedAttributeState, _ as ComputedFieldKind, $ as ComputedFormulaBinaryNode, a0 as ComputedFormulaBinaryOperator, a1 as ComputedFormulaCallNode, a2 as ComputedFormulaLiteralNode, a3 as ComputedFormulaParseError, a4 as ComputedFormulaPathNode, a5 as ComputedStateStatus, a6 as CreateDocument, a7 as CreateDocumentLink, a8 as CreateDocumentSlot, a9 as DEFAULT_DOCUMENT_SLOT, aa as DateFormat, ab as DateValue, ac as Document, ad as DocumentKind, ae as DocumentLayoutVariant, af as DocumentListOptions, ag as DocumentSlot, ah as DocumentWithSlots, ai as DocumentWithSubCount, aj as FolderPreset, ak as MAX_PRESET_DEPTH, al as NumberUnit, am as ObjectAttribute, an as ObjectRecord, ao as OptionPropertyAttribute, ap as PresetNode, aq as PropertyAttribute, ar as PropertyType, as as RELATION_TARGET_ANY, at as RESERVED_ATTRIBUTE_NAMES, au as RESERVED_OBJECT_NAMES, av as RecordDocuments, aw as ReservedAttributeName, ax as ReservedObjectName, ay as RichTextAttribute, az as SYSTEM_FIELD_NAMES, aA as SlotStatus, aB as StatusGroup, aC as SystemFieldName, aD as UpdateDocument, aE as UpdateDocumentSlot, aF as hasOptions, aG as inferInverseCardinality, aH as isAttributeSortable, aI as isBilateralRelation, aJ as isUniversalRelation, aK as parseComputedFormula, aL as resolvePropertyDefinitions } from './attributes-DZIol94T.js';
|
|
3
3
|
import { IconName, MimeType, ColorId, CountryIso3, CurrencyCode } from '@stndrds/constants';
|
|
4
4
|
import { Uuid, TenantId } from './utils.js';
|
|
5
5
|
export { UserId, asTenantId, asUserId, deepEqual, generateId, indexBy } from './utils.js';
|
|
6
6
|
import { StandardSchemaV1 } from '@standard-schema/spec';
|
|
7
7
|
export { StandardSchemaV1 } from '@standard-schema/spec';
|
|
8
8
|
import z from 'zod';
|
|
9
|
-
export { V as ValidationMessages } from './types-
|
|
9
|
+
export { V as ValidationMessages } from './types-CBV2_ikK.js';
|
|
10
10
|
export { DEFAULT_VALIDATION_MESSAGES, formatZodErrors } from './validation/core/index.js';
|
|
11
11
|
export { parseAttributeConfig } from './validation/config/index.js';
|
|
12
|
-
export { c as computeRecordStatus, a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from './helpers-
|
|
12
|
+
export { c as computeRecordStatus, a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from './helpers-B3EPtA8t.js';
|
|
13
13
|
|
|
14
14
|
declare const COMPUTED_FUNCTION_NAMES: readonly ["if", "concat", "sum", "avg", "count", "min", "max", "earliest", "latest", "unique", "first", "percent_empty", "percent_not_empty", "count_empty", "count_not_empty", "count_unique"];
|
|
15
15
|
type ComputedFunctionName = (typeof COMPUTED_FUNCTION_NAMES)[number];
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
var chunkFRCDMQER_js = require('./chunk-FRCDMQER.js');
|
|
4
4
|
require('./chunk-PGERPYDR.js');
|
|
5
|
-
var
|
|
5
|
+
var chunkNSM2JPC3_js = require('./chunk-NSM2JPC3.js');
|
|
6
|
+
var chunkXTPYL6OM_js = require('./chunk-XTPYL6OM.js');
|
|
7
|
+
require('./chunk-5WATIVCA.js');
|
|
6
8
|
require('./chunk-O44XVGHE.js');
|
|
7
9
|
require('./chunk-YIP5FJ5H.js');
|
|
8
10
|
require('./chunk-SGSGREPG.js');
|
|
@@ -11,8 +13,6 @@ require('./chunk-QWKLQRBX.js');
|
|
|
11
13
|
require('./chunk-KNGWHQLR.js');
|
|
12
14
|
require('./chunk-HTSTPTNZ.js');
|
|
13
15
|
require('./chunk-V2UA2D4E.js');
|
|
14
|
-
var chunkNSM2JPC3_js = require('./chunk-NSM2JPC3.js');
|
|
15
|
-
require('./chunk-5WATIVCA.js');
|
|
16
16
|
require('./chunk-ACKMC6FL.js');
|
|
17
17
|
require('./chunk-Q5DIOYUE.js');
|
|
18
18
|
require('./chunk-E6JUYGJX.js');
|
|
@@ -1294,7 +1294,7 @@ var BaseAttributeBuilder = class {
|
|
|
1294
1294
|
* @see https://standardschema.dev/
|
|
1295
1295
|
*/
|
|
1296
1296
|
get "~standard"() {
|
|
1297
|
-
const zodSchema =
|
|
1297
|
+
const zodSchema = chunkXTPYL6OM_js.createAttributeValidator(this.build());
|
|
1298
1298
|
return createStandardSchemaProps(zodSchema);
|
|
1299
1299
|
}
|
|
1300
1300
|
constructor(type, name, label) {
|
|
@@ -2067,9 +2067,9 @@ var RollupAttributeBuilder = class extends BaseAttributeBuilder {
|
|
|
2067
2067
|
if (fn === "original" && targetType !== void 0 && targetType !== "select" && targetType !== "status" && targetType !== "multiselect") {
|
|
2068
2068
|
const relation2 = this.attr.relationAttribute ?? "relation";
|
|
2069
2069
|
const target = this.attr.targetAttribute ?? "field";
|
|
2070
|
-
throw new
|
|
2070
|
+
throw new chunkXTPYL6OM_js.SchemaError(
|
|
2071
2071
|
`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}").`,
|
|
2072
|
-
|
|
2072
|
+
chunkXTPYL6OM_js.SchemaErrorCode.VALIDATION_FAILED
|
|
2073
2073
|
);
|
|
2074
2074
|
}
|
|
2075
2075
|
return super.build();
|
|
@@ -2565,7 +2565,7 @@ var ObjectBuilder = class {
|
|
|
2565
2565
|
* @see https://standardschema.dev/
|
|
2566
2566
|
*/
|
|
2567
2567
|
get "~standard"() {
|
|
2568
|
-
const zodSchema =
|
|
2568
|
+
const zodSchema = chunkXTPYL6OM_js.createObjectValidator(this.build());
|
|
2569
2569
|
return createStandardSchemaProps(zodSchema);
|
|
2570
2570
|
}
|
|
2571
2571
|
/**
|
|
@@ -2779,26 +2779,26 @@ var ObjectBuilder = class {
|
|
|
2779
2779
|
throw new Error("[ObjectBuilder] Missing required field: label");
|
|
2780
2780
|
}
|
|
2781
2781
|
if (!this._labelExpression) {
|
|
2782
|
-
throw new
|
|
2782
|
+
throw new chunkXTPYL6OM_js.SchemaError(
|
|
2783
2783
|
`Object "${this.obj.name}" must have a labelExpression. The labelExpression defines how records are displayed in lists and relations (e.g. "{{ name }}").`,
|
|
2784
|
-
|
|
2784
|
+
chunkXTPYL6OM_js.SchemaErrorCode.VALIDATION_FAILED
|
|
2785
2785
|
);
|
|
2786
2786
|
}
|
|
2787
2787
|
const labelResult = labelExpressionSchema.safeParse(this._labelExpression);
|
|
2788
2788
|
if (!labelResult.success) {
|
|
2789
2789
|
const errorMsg = labelResult.error.issues[0]?.message ?? "Invalid labelExpression";
|
|
2790
|
-
throw new
|
|
2790
|
+
throw new chunkXTPYL6OM_js.SchemaError(
|
|
2791
2791
|
`Invalid labelExpression for "${this.obj.name}": ${errorMsg}`,
|
|
2792
|
-
|
|
2792
|
+
chunkXTPYL6OM_js.SchemaErrorCode.VALIDATION_FAILED
|
|
2793
2793
|
);
|
|
2794
2794
|
}
|
|
2795
2795
|
if (this._embeddingExpression !== void 0) {
|
|
2796
2796
|
const embeddingResult = labelExpressionSchema.safeParse(this._embeddingExpression);
|
|
2797
2797
|
if (!embeddingResult.success) {
|
|
2798
2798
|
const errorMsg = embeddingResult.error.issues[0]?.message ?? "Invalid embeddingExpression";
|
|
2799
|
-
throw new
|
|
2799
|
+
throw new chunkXTPYL6OM_js.SchemaError(
|
|
2800
2800
|
`Invalid embeddingExpression for "${this.obj.name}": ${errorMsg}`,
|
|
2801
|
-
|
|
2801
|
+
chunkXTPYL6OM_js.SchemaErrorCode.VALIDATION_FAILED
|
|
2802
2802
|
);
|
|
2803
2803
|
}
|
|
2804
2804
|
}
|
|
@@ -2839,7 +2839,7 @@ var ObjectBuilder = class {
|
|
|
2839
2839
|
objectNameSchema.parse(name);
|
|
2840
2840
|
} catch (error) {
|
|
2841
2841
|
if (error instanceof z3__default.default.ZodError) {
|
|
2842
|
-
throw new
|
|
2842
|
+
throw new chunkXTPYL6OM_js.SchemaError(error.issues[0].message, chunkXTPYL6OM_js.SchemaErrorCode.INVALID_OBJECT_NAME);
|
|
2843
2843
|
}
|
|
2844
2844
|
throw error;
|
|
2845
2845
|
}
|
|
@@ -6792,7 +6792,7 @@ function assertOperatorForType(operator, type, context) {
|
|
|
6792
6792
|
if (!ops?.includes(operator)) {
|
|
6793
6793
|
const validList = ops?.length ? ops.join(", ") : "(no operators registered for this type)";
|
|
6794
6794
|
const summary = `Operator "${operator}" is not valid for ${context} type "${type}". Valid operators: ${validList}.`;
|
|
6795
|
-
throw new
|
|
6795
|
+
throw new chunkXTPYL6OM_js.ValidationError(summary, [
|
|
6796
6796
|
{
|
|
6797
6797
|
path: ["operator"],
|
|
6798
6798
|
message: summary
|
|
@@ -6808,7 +6808,7 @@ function assertRelativeDateValue(rule) {
|
|
|
6808
6808
|
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);
|
|
6809
6809
|
if (!valid) {
|
|
6810
6810
|
const m = `Operator "is_within" requires a relative-date value { amount: positive number, unit: days|weeks|months|years, direction: past|future }`;
|
|
6811
|
-
throw new
|
|
6811
|
+
throw new chunkXTPYL6OM_js.ValidationError(m, [{ path: ["value"], message: m }]);
|
|
6812
6812
|
}
|
|
6813
6813
|
}
|
|
6814
6814
|
function assertDynamicValueForAttribute(rule, attrType) {
|
|
@@ -6816,34 +6816,34 @@ function assertDynamicValueForAttribute(rule, attrType) {
|
|
|
6816
6816
|
const v = rule.value;
|
|
6817
6817
|
if (v.dynamic === "actor" && attrType !== "user") {
|
|
6818
6818
|
const m = `actor token (@me) is only valid on user attributes, not "${attrType}"`;
|
|
6819
|
-
throw new
|
|
6819
|
+
throw new chunkXTPYL6OM_js.ValidationError(m, [{ path: ["value"], message: m }]);
|
|
6820
6820
|
}
|
|
6821
6821
|
if (v.dynamic === "date" && attrType !== "date") {
|
|
6822
6822
|
const m = `date token (@today/@now) is only valid on date attributes, not "${attrType}"`;
|
|
6823
|
-
throw new
|
|
6823
|
+
throw new chunkXTPYL6OM_js.ValidationError(m, [{ path: ["value"], message: m }]);
|
|
6824
6824
|
}
|
|
6825
6825
|
}
|
|
6826
6826
|
function validateQualifiedRule(rule, context) {
|
|
6827
6827
|
const rootAttr = context.attributes.find((a) => a.name === rule.attribute);
|
|
6828
6828
|
const systemOps = SYSTEM_FILTER_OPERATORS[rule.attribute];
|
|
6829
6829
|
if (!(rootAttr || systemOps)) {
|
|
6830
|
-
throw new
|
|
6830
|
+
throw new chunkXTPYL6OM_js.ValidationError(`Unknown attribute: ${rule.attribute}`, [
|
|
6831
6831
|
{ path: ["attribute"], message: `Unknown attribute: ${rule.attribute}` }
|
|
6832
6832
|
]);
|
|
6833
6833
|
}
|
|
6834
6834
|
if (rule.quantifier !== void 0 && !rule.property) {
|
|
6835
6835
|
const m = `quantifier is only valid on qualified edge rules (set "property")`;
|
|
6836
|
-
throw new
|
|
6836
|
+
throw new chunkXTPYL6OM_js.ValidationError(m, [{ path: ["quantifier"], message: m }]);
|
|
6837
6837
|
}
|
|
6838
6838
|
if (!rootAttr) {
|
|
6839
6839
|
if (rule.property) {
|
|
6840
|
-
throw new
|
|
6840
|
+
throw new chunkXTPYL6OM_js.ValidationError(`Cannot qualify system attribute "${rule.attribute}"`, [
|
|
6841
6841
|
{ path: ["property"], message: `"${rule.attribute}" is a system column, not a reference` }
|
|
6842
6842
|
]);
|
|
6843
6843
|
}
|
|
6844
6844
|
if (!systemOps.includes(rule.operator)) {
|
|
6845
6845
|
const summary = `Operator "${rule.operator}" is not valid for system attribute "${rule.attribute}". Valid operators: ${systemOps.join(", ")}.`;
|
|
6846
|
-
throw new
|
|
6846
|
+
throw new chunkXTPYL6OM_js.ValidationError(summary, [{ path: ["operator"], message: summary }]);
|
|
6847
6847
|
}
|
|
6848
6848
|
assertRelativeDateValue(rule);
|
|
6849
6849
|
return;
|
|
@@ -6854,25 +6854,25 @@ function validateQualifiedRule(rule, context) {
|
|
|
6854
6854
|
if (!ops.includes(rule.operator)) {
|
|
6855
6855
|
const validList = ops.length ? ops.join(", ") : "(not filterable)";
|
|
6856
6856
|
const summary = `Operator "${rule.operator}" is not valid for attribute "${rootAttr.name}". Valid operators: ${validList}.`;
|
|
6857
|
-
throw new
|
|
6857
|
+
throw new chunkXTPYL6OM_js.ValidationError(summary, [{ path: ["operator"], message: summary }]);
|
|
6858
6858
|
}
|
|
6859
6859
|
assertRelativeDateValue(rule);
|
|
6860
6860
|
return;
|
|
6861
6861
|
}
|
|
6862
6862
|
if (!REFERENCE_TYPES.has(rootAttr.type)) {
|
|
6863
|
-
throw new
|
|
6863
|
+
throw new chunkXTPYL6OM_js.ValidationError(`Cannot qualify ${rootAttr.type} attribute "${rule.attribute}"`, [
|
|
6864
6864
|
{ path: ["property"], message: `Attribute "${rule.attribute}" is not a reference type` }
|
|
6865
6865
|
]);
|
|
6866
6866
|
}
|
|
6867
6867
|
const propSchema = rootAttr.properties;
|
|
6868
6868
|
if (!propSchema) {
|
|
6869
|
-
throw new
|
|
6869
|
+
throw new chunkXTPYL6OM_js.ValidationError(`Attribute "${rule.attribute}" has no qualifyWith schema`, [
|
|
6870
6870
|
{ path: ["property"], message: `"${rule.attribute}" has no qualifyWith` }
|
|
6871
6871
|
]);
|
|
6872
6872
|
}
|
|
6873
6873
|
const propDef = propSchema.definitions.find((p) => p.name === rule.property);
|
|
6874
6874
|
if (!propDef) {
|
|
6875
|
-
throw new
|
|
6875
|
+
throw new chunkXTPYL6OM_js.ValidationError(
|
|
6876
6876
|
`Property "${rule.property}" not defined on "${rule.attribute}".qualifyWith()`,
|
|
6877
6877
|
[{ path: ["property"], message: `Unknown property: ${rule.property}` }]
|
|
6878
6878
|
);
|
|
@@ -6901,193 +6901,193 @@ Object.defineProperty(exports, "indexBy", {
|
|
|
6901
6901
|
enumerable: true,
|
|
6902
6902
|
get: function () { return chunkFRCDMQER_js.indexBy; }
|
|
6903
6903
|
});
|
|
6904
|
+
Object.defineProperty(exports, "ComputedFormulaParseError", {
|
|
6905
|
+
enumerable: true,
|
|
6906
|
+
get: function () { return chunkNSM2JPC3_js.ComputedFormulaParseError; }
|
|
6907
|
+
});
|
|
6908
|
+
Object.defineProperty(exports, "parseAttributeConfig", {
|
|
6909
|
+
enumerable: true,
|
|
6910
|
+
get: function () { return chunkNSM2JPC3_js.parseAttributeConfig; }
|
|
6911
|
+
});
|
|
6912
|
+
Object.defineProperty(exports, "parseComputedFormula", {
|
|
6913
|
+
enumerable: true,
|
|
6914
|
+
get: function () { return chunkNSM2JPC3_js.parseComputedFormula; }
|
|
6915
|
+
});
|
|
6904
6916
|
Object.defineProperty(exports, "AccessDeniedError", {
|
|
6905
6917
|
enumerable: true,
|
|
6906
|
-
get: function () { return
|
|
6918
|
+
get: function () { return chunkXTPYL6OM_js.AccessDeniedError; }
|
|
6907
6919
|
});
|
|
6908
6920
|
Object.defineProperty(exports, "AttributeInUseError", {
|
|
6909
6921
|
enumerable: true,
|
|
6910
|
-
get: function () { return
|
|
6922
|
+
get: function () { return chunkXTPYL6OM_js.AttributeInUseError; }
|
|
6911
6923
|
});
|
|
6912
6924
|
Object.defineProperty(exports, "AttributeNotFoundError", {
|
|
6913
6925
|
enumerable: true,
|
|
6914
|
-
get: function () { return
|
|
6926
|
+
get: function () { return chunkXTPYL6OM_js.AttributeNotFoundError; }
|
|
6915
6927
|
});
|
|
6916
6928
|
Object.defineProperty(exports, "ChangeTypeNotSupportedError", {
|
|
6917
6929
|
enumerable: true,
|
|
6918
|
-
get: function () { return
|
|
6930
|
+
get: function () { return chunkXTPYL6OM_js.ChangeTypeNotSupportedError; }
|
|
6919
6931
|
});
|
|
6920
6932
|
Object.defineProperty(exports, "ConcurrentModificationError", {
|
|
6921
6933
|
enumerable: true,
|
|
6922
|
-
get: function () { return
|
|
6934
|
+
get: function () { return chunkXTPYL6OM_js.ConcurrentModificationError; }
|
|
6923
6935
|
});
|
|
6924
6936
|
Object.defineProperty(exports, "DestructiveSyncNotAllowedError", {
|
|
6925
6937
|
enumerable: true,
|
|
6926
|
-
get: function () { return
|
|
6938
|
+
get: function () { return chunkXTPYL6OM_js.DestructiveSyncNotAllowedError; }
|
|
6927
6939
|
});
|
|
6928
6940
|
Object.defineProperty(exports, "DuplicateError", {
|
|
6929
6941
|
enumerable: true,
|
|
6930
|
-
get: function () { return
|
|
6942
|
+
get: function () { return chunkXTPYL6OM_js.DuplicateError; }
|
|
6931
6943
|
});
|
|
6932
6944
|
Object.defineProperty(exports, "ForbiddenError", {
|
|
6933
6945
|
enumerable: true,
|
|
6934
|
-
get: function () { return
|
|
6946
|
+
get: function () { return chunkXTPYL6OM_js.ForbiddenError; }
|
|
6935
6947
|
});
|
|
6936
6948
|
Object.defineProperty(exports, "MemoryNotFoundError", {
|
|
6937
6949
|
enumerable: true,
|
|
6938
|
-
get: function () { return
|
|
6950
|
+
get: function () { return chunkXTPYL6OM_js.MemoryNotFoundError; }
|
|
6939
6951
|
});
|
|
6940
6952
|
Object.defineProperty(exports, "MigrationTimeoutError", {
|
|
6941
6953
|
enumerable: true,
|
|
6942
|
-
get: function () { return
|
|
6954
|
+
get: function () { return chunkXTPYL6OM_js.MigrationTimeoutError; }
|
|
6943
6955
|
});
|
|
6944
6956
|
Object.defineProperty(exports, "NotFoundError", {
|
|
6945
6957
|
enumerable: true,
|
|
6946
|
-
get: function () { return
|
|
6958
|
+
get: function () { return chunkXTPYL6OM_js.NotFoundError; }
|
|
6947
6959
|
});
|
|
6948
6960
|
Object.defineProperty(exports, "NotImplementedError", {
|
|
6949
6961
|
enumerable: true,
|
|
6950
|
-
get: function () { return
|
|
6962
|
+
get: function () { return chunkXTPYL6OM_js.NotImplementedError; }
|
|
6951
6963
|
});
|
|
6952
6964
|
Object.defineProperty(exports, "ObjectNotFoundError", {
|
|
6953
6965
|
enumerable: true,
|
|
6954
|
-
get: function () { return
|
|
6966
|
+
get: function () { return chunkXTPYL6OM_js.ObjectNotFoundError; }
|
|
6955
6967
|
});
|
|
6956
6968
|
Object.defineProperty(exports, "ObjectReferencedError", {
|
|
6957
6969
|
enumerable: true,
|
|
6958
|
-
get: function () { return
|
|
6970
|
+
get: function () { return chunkXTPYL6OM_js.ObjectReferencedError; }
|
|
6959
6971
|
});
|
|
6960
6972
|
Object.defineProperty(exports, "OrphanSystemAttributeError", {
|
|
6961
6973
|
enumerable: true,
|
|
6962
|
-
get: function () { return
|
|
6974
|
+
get: function () { return chunkXTPYL6OM_js.OrphanSystemAttributeError; }
|
|
6963
6975
|
});
|
|
6964
6976
|
Object.defineProperty(exports, "ProtectedResourceError", {
|
|
6965
6977
|
enumerable: true,
|
|
6966
|
-
get: function () { return
|
|
6978
|
+
get: function () { return chunkXTPYL6OM_js.ProtectedResourceError; }
|
|
6967
6979
|
});
|
|
6968
6980
|
Object.defineProperty(exports, "ProtectedRoleError", {
|
|
6969
6981
|
enumerable: true,
|
|
6970
|
-
get: function () { return
|
|
6982
|
+
get: function () { return chunkXTPYL6OM_js.ProtectedRoleError; }
|
|
6971
6983
|
});
|
|
6972
6984
|
Object.defineProperty(exports, "RecordNotFoundError", {
|
|
6973
6985
|
enumerable: true,
|
|
6974
|
-
get: function () { return
|
|
6986
|
+
get: function () { return chunkXTPYL6OM_js.RecordNotFoundError; }
|
|
6975
6987
|
});
|
|
6976
6988
|
Object.defineProperty(exports, "RecordReferencedError", {
|
|
6977
6989
|
enumerable: true,
|
|
6978
|
-
get: function () { return
|
|
6990
|
+
get: function () { return chunkXTPYL6OM_js.RecordReferencedError; }
|
|
6979
6991
|
});
|
|
6980
6992
|
Object.defineProperty(exports, "RepositoryError", {
|
|
6981
6993
|
enumerable: true,
|
|
6982
|
-
get: function () { return
|
|
6994
|
+
get: function () { return chunkXTPYL6OM_js.RepositoryError; }
|
|
6983
6995
|
});
|
|
6984
6996
|
Object.defineProperty(exports, "RoleNotFoundError", {
|
|
6985
6997
|
enumerable: true,
|
|
6986
|
-
get: function () { return
|
|
6998
|
+
get: function () { return chunkXTPYL6OM_js.RoleNotFoundError; }
|
|
6987
6999
|
});
|
|
6988
7000
|
Object.defineProperty(exports, "SchemaError", {
|
|
6989
7001
|
enumerable: true,
|
|
6990
|
-
get: function () { return
|
|
7002
|
+
get: function () { return chunkXTPYL6OM_js.SchemaError; }
|
|
6991
7003
|
});
|
|
6992
7004
|
Object.defineProperty(exports, "SchemaErrorCode", {
|
|
6993
7005
|
enumerable: true,
|
|
6994
|
-
get: function () { return
|
|
7006
|
+
get: function () { return chunkXTPYL6OM_js.SchemaErrorCode; }
|
|
6995
7007
|
});
|
|
6996
7008
|
Object.defineProperty(exports, "SearchBackendError", {
|
|
6997
7009
|
enumerable: true,
|
|
6998
|
-
get: function () { return
|
|
7010
|
+
get: function () { return chunkXTPYL6OM_js.SearchBackendError; }
|
|
6999
7011
|
});
|
|
7000
7012
|
Object.defineProperty(exports, "StorageError", {
|
|
7001
7013
|
enumerable: true,
|
|
7002
|
-
get: function () { return
|
|
7014
|
+
get: function () { return chunkXTPYL6OM_js.StorageError; }
|
|
7003
7015
|
});
|
|
7004
7016
|
Object.defineProperty(exports, "SyncCascadeError", {
|
|
7005
7017
|
enumerable: true,
|
|
7006
|
-
get: function () { return
|
|
7018
|
+
get: function () { return chunkXTPYL6OM_js.SyncCascadeError; }
|
|
7007
7019
|
});
|
|
7008
7020
|
Object.defineProperty(exports, "SyncConflictError", {
|
|
7009
7021
|
enumerable: true,
|
|
7010
|
-
get: function () { return
|
|
7022
|
+
get: function () { return chunkXTPYL6OM_js.SyncConflictError; }
|
|
7011
7023
|
});
|
|
7012
7024
|
Object.defineProperty(exports, "SyncError", {
|
|
7013
7025
|
enumerable: true,
|
|
7014
|
-
get: function () { return
|
|
7026
|
+
get: function () { return chunkXTPYL6OM_js.SyncError; }
|
|
7015
7027
|
});
|
|
7016
7028
|
Object.defineProperty(exports, "SystemEntityImmutableError", {
|
|
7017
7029
|
enumerable: true,
|
|
7018
|
-
get: function () { return
|
|
7030
|
+
get: function () { return chunkXTPYL6OM_js.SystemEntityImmutableError; }
|
|
7019
7031
|
});
|
|
7020
7032
|
Object.defineProperty(exports, "ValidationError", {
|
|
7021
7033
|
enumerable: true,
|
|
7022
|
-
get: function () { return
|
|
7034
|
+
get: function () { return chunkXTPYL6OM_js.ValidationError; }
|
|
7023
7035
|
});
|
|
7024
7036
|
Object.defineProperty(exports, "computeRecordStatus", {
|
|
7025
7037
|
enumerable: true,
|
|
7026
|
-
get: function () { return
|
|
7038
|
+
get: function () { return chunkXTPYL6OM_js.computeRecordStatus; }
|
|
7027
7039
|
});
|
|
7028
7040
|
Object.defineProperty(exports, "createFormAttributeValidator", {
|
|
7029
7041
|
enumerable: true,
|
|
7030
|
-
get: function () { return
|
|
7042
|
+
get: function () { return chunkXTPYL6OM_js.createFormAttributeValidator; }
|
|
7031
7043
|
});
|
|
7032
7044
|
Object.defineProperty(exports, "isAttributeInUseError", {
|
|
7033
7045
|
enumerable: true,
|
|
7034
|
-
get: function () { return
|
|
7046
|
+
get: function () { return chunkXTPYL6OM_js.isAttributeInUseError; }
|
|
7035
7047
|
});
|
|
7036
7048
|
Object.defineProperty(exports, "isNotFoundError", {
|
|
7037
7049
|
enumerable: true,
|
|
7038
|
-
get: function () { return
|
|
7050
|
+
get: function () { return chunkXTPYL6OM_js.isNotFoundError; }
|
|
7039
7051
|
});
|
|
7040
7052
|
Object.defineProperty(exports, "isObjectReferencedError", {
|
|
7041
7053
|
enumerable: true,
|
|
7042
|
-
get: function () { return
|
|
7054
|
+
get: function () { return chunkXTPYL6OM_js.isObjectReferencedError; }
|
|
7043
7055
|
});
|
|
7044
7056
|
Object.defineProperty(exports, "isProtectedResourceError", {
|
|
7045
7057
|
enumerable: true,
|
|
7046
|
-
get: function () { return
|
|
7058
|
+
get: function () { return chunkXTPYL6OM_js.isProtectedResourceError; }
|
|
7047
7059
|
});
|
|
7048
7060
|
Object.defineProperty(exports, "isRecordReferencedError", {
|
|
7049
7061
|
enumerable: true,
|
|
7050
|
-
get: function () { return
|
|
7062
|
+
get: function () { return chunkXTPYL6OM_js.isRecordReferencedError; }
|
|
7051
7063
|
});
|
|
7052
7064
|
Object.defineProperty(exports, "isSchemaError", {
|
|
7053
7065
|
enumerable: true,
|
|
7054
|
-
get: function () { return
|
|
7066
|
+
get: function () { return chunkXTPYL6OM_js.isSchemaError; }
|
|
7055
7067
|
});
|
|
7056
7068
|
Object.defineProperty(exports, "isValidationError", {
|
|
7057
7069
|
enumerable: true,
|
|
7058
|
-
get: function () { return
|
|
7070
|
+
get: function () { return chunkXTPYL6OM_js.isValidationError; }
|
|
7059
7071
|
});
|
|
7060
7072
|
Object.defineProperty(exports, "rejectUnknownAttributesOrThrow", {
|
|
7061
7073
|
enumerable: true,
|
|
7062
|
-
get: function () { return
|
|
7074
|
+
get: function () { return chunkXTPYL6OM_js.rejectUnknownAttributesOrThrow; }
|
|
7063
7075
|
});
|
|
7064
7076
|
Object.defineProperty(exports, "validateDraft", {
|
|
7065
7077
|
enumerable: true,
|
|
7066
|
-
get: function () { return
|
|
7078
|
+
get: function () { return chunkXTPYL6OM_js.validateDraft; }
|
|
7067
7079
|
});
|
|
7068
7080
|
Object.defineProperty(exports, "validateDraftOrThrow", {
|
|
7069
7081
|
enumerable: true,
|
|
7070
|
-
get: function () { return
|
|
7082
|
+
get: function () { return chunkXTPYL6OM_js.validateDraftOrThrow; }
|
|
7071
7083
|
});
|
|
7072
7084
|
Object.defineProperty(exports, "validateObject", {
|
|
7073
7085
|
enumerable: true,
|
|
7074
|
-
get: function () { return
|
|
7086
|
+
get: function () { return chunkXTPYL6OM_js.validateObject; }
|
|
7075
7087
|
});
|
|
7076
7088
|
Object.defineProperty(exports, "validateObjectOrThrow", {
|
|
7077
7089
|
enumerable: true,
|
|
7078
|
-
get: function () { return
|
|
7079
|
-
});
|
|
7080
|
-
Object.defineProperty(exports, "ComputedFormulaParseError", {
|
|
7081
|
-
enumerable: true,
|
|
7082
|
-
get: function () { return chunkNSM2JPC3_js.ComputedFormulaParseError; }
|
|
7083
|
-
});
|
|
7084
|
-
Object.defineProperty(exports, "parseAttributeConfig", {
|
|
7085
|
-
enumerable: true,
|
|
7086
|
-
get: function () { return chunkNSM2JPC3_js.parseAttributeConfig; }
|
|
7087
|
-
});
|
|
7088
|
-
Object.defineProperty(exports, "parseComputedFormula", {
|
|
7089
|
-
enumerable: true,
|
|
7090
|
-
get: function () { return chunkNSM2JPC3_js.parseComputedFormula; }
|
|
7090
|
+
get: function () { return chunkXTPYL6OM_js.validateObjectOrThrow; }
|
|
7091
7091
|
});
|
|
7092
7092
|
Object.defineProperty(exports, "DEFAULT_VALIDATION_MESSAGES", {
|
|
7093
7093
|
enumerable: true,
|
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { generateId } from './chunk-QY6QFRRV.mjs';
|
|
2
2
|
export { asTenantId, asUserId, deepEqual, generateId, indexBy } from './chunk-QY6QFRRV.mjs';
|
|
3
3
|
import './chunk-SP3PNHYF.mjs';
|
|
4
|
-
import {
|
|
5
|
-
export {
|
|
4
|
+
import { parseComputedFormula } from './chunk-AAXJJNY6.mjs';
|
|
5
|
+
export { ComputedFormulaParseError, parseAttributeConfig, parseComputedFormula } from './chunk-AAXJJNY6.mjs';
|
|
6
|
+
import { createObjectValidator, SchemaError, SchemaErrorCode, createAttributeValidator, ValidationError } from './chunk-5WYDO3ZB.mjs';
|
|
7
|
+
export { AccessDeniedError, AttributeInUseError, AttributeNotFoundError, ChangeTypeNotSupportedError, ConcurrentModificationError, DestructiveSyncNotAllowedError, DuplicateError, ForbiddenError, MemoryNotFoundError, MigrationTimeoutError, NotFoundError, NotImplementedError, ObjectNotFoundError, ObjectReferencedError, OrphanSystemAttributeError, ProtectedResourceError, ProtectedRoleError, RecordNotFoundError, RecordReferencedError, RepositoryError, RoleNotFoundError, SchemaError, SchemaErrorCode, SearchBackendError, StorageError, SyncCascadeError, SyncConflictError, SyncError, SystemEntityImmutableError, ValidationError, computeRecordStatus, createFormAttributeValidator, isAttributeInUseError, isNotFoundError, isObjectReferencedError, isProtectedResourceError, isRecordReferencedError, isSchemaError, isValidationError, rejectUnknownAttributesOrThrow, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow } from './chunk-5WYDO3ZB.mjs';
|
|
8
|
+
import './chunk-OSSGN43B.mjs';
|
|
6
9
|
import './chunk-6I2R22CX.mjs';
|
|
7
10
|
import './chunk-UANQJ2GH.mjs';
|
|
8
11
|
import './chunk-NOMHDOVE.mjs';
|
|
@@ -11,9 +14,6 @@ import './chunk-ZDQ5AP26.mjs';
|
|
|
11
14
|
import './chunk-LV3FEUKU.mjs';
|
|
12
15
|
import './chunk-UXAHLSWC.mjs';
|
|
13
16
|
import './chunk-NS63SPNN.mjs';
|
|
14
|
-
import { parseComputedFormula } from './chunk-AAXJJNY6.mjs';
|
|
15
|
-
export { ComputedFormulaParseError, parseAttributeConfig, parseComputedFormula } from './chunk-AAXJJNY6.mjs';
|
|
16
|
-
import './chunk-OSSGN43B.mjs';
|
|
17
17
|
import './chunk-AYVHMVKQ.mjs';
|
|
18
18
|
import './chunk-CI6EGLL6.mjs';
|
|
19
19
|
import './chunk-YUFTHPOE.mjs';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { V as ValidationMessages } from '../types-
|
|
1
|
+
export { V as ValidationMessages } from '../types-DjGoodOL.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, r as rejectUnknownAttributesOrThrow, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../helpers-
|
|
5
|
-
import '../attributes-
|
|
4
|
+
export { c as computeRecordStatus, a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../helpers-Ca3PIt9O.mjs';
|
|
5
|
+
import '../attributes-C6pCxr5P.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-CBV2_ikK.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, r as rejectUnknownAttributesOrThrow, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../helpers-
|
|
5
|
-
import '../attributes-
|
|
4
|
+
export { c as computeRecordStatus, a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../helpers-B3EPtA8t.js';
|
|
5
|
+
import '../attributes-DZIol94T.js';
|
|
6
6
|
import '@stndrds/constants';
|
|
7
7
|
import '../utils.js';
|
|
8
8
|
import 'zod';
|