@stndrds/schema 1.0.0-alpha.205 → 1.0.0-alpha.206
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-BykLtzP-.d.mts → attributes-CiTjeDGq.d.mts} +1 -1
- package/dist/{attributes-BpvQ7YKV.d.ts → attributes-Cz3tNPJA.d.ts} +1 -1
- package/dist/{helpers-xalb2T4E.d.mts → helpers-ElxN0li2.d.mts} +2 -2
- package/dist/{helpers-Bd-m3ygv.d.ts → helpers-Vyq-QKxr.d.ts} +2 -2
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +63 -63
- package/dist/index.mjs +4 -4
- package/dist/{types-DeFxYTDc.d.ts → types-Bks5XpQW.d.ts} +1 -1
- package/dist/{types-BmgBJGpl.d.mts → types-D3Kg3X94.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 +10 -10
- 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 +16 -16
- package/dist/validation/object/index.mjs +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/text.d.mts +2 -2
- package/dist/validation/primitives/text.d.ts +2 -2
- package/package.json +2 -2
- package/dist/{chunk-7SSN7BXS.mjs → chunk-NWB6IKLM.mjs} +2 -2
- package/dist/{chunk-SJCEXYFG.js → chunk-PLUTE7FU.js} +2 -2
|
@@ -911,4 +911,4 @@ declare function isAttributeSortable(attr: {
|
|
|
911
911
|
type: AttributeType;
|
|
912
912
|
}): boolean;
|
|
913
913
|
|
|
914
|
-
export { type ComputedFormulaLiteralNode as $, type Attribute as A, type FormulaReturnType as B, type CurrencyAttribute as C, type DateAttribute as D, type BilateralConfig as E, type
|
|
914
|
+
export { type ComputedFormulaLiteralNode as $, type Attribute as A, type FormulaReturnType as B, type CurrencyAttribute as C, type DateAttribute as D, type BilateralConfig as E, type FileAttribute as F, type RelationTarget as G, type RollupFunction as H, type UserReferenceType as I, type MigrationDefinition as J, type AttributeGroup as K, type LocationAttribute as L, type MultiRelationAttribute as M, type NumberAttribute as N, type ObjectDefinition as O, type PhoneAttribute as P, type BaseAttribute as Q, type RelationAttribute as R, type SingleRelationAttribute as S, type TextAttribute as T, type UserAttribute as U, type BuiltInTransform as V, type ComputedAttributeState as W, type ComputedFieldKind as X, type ComputedFormulaBinaryNode as Y, type ComputedFormulaBinaryOperator as Z, type ComputedFormulaCallNode as _, type RichtextAttribute as a, ComputedFormulaParseError as a0, type ComputedFormulaPathNode as a1, type ComputedStateStatus as a2, type CreateDocument as a3, type CreateDocumentLink as a4, type CreateDocumentSlot as a5, DEFAULT_DOCUMENT_SLOT as a6, type DateFormat as a7, type DateValue as a8, type Document as a9, hasOptions as aA, inferInverseCardinality as aB, isAttributeSortable as aC, isBilateralRelation as aD, isUniversalRelation as aE, parseComputedFormula as aF, type DocumentKind as aa, type DocumentLayoutVariant as ab, type DocumentListOptions as ac, type DocumentSlot as ad, type DocumentWithSlots as ae, type DocumentWithSubCount as af, type FolderPreset as ag, MAX_PRESET_DEPTH as ah, type NumberUnit as ai, type ObjectAttribute as aj, type ObjectRecord as ak, type OptionPropertyAttribute as al, type PresetNode as am, type PropertyAttribute as an, type PropertyType as ao, RELATION_TARGET_ANY as ap, RESERVED_ATTRIBUTE_NAMES as aq, type RecordDocuments as ar, type ReservedAttributeName as as, type RichTextAttribute as at, SYSTEM_FIELD_NAMES as au, type SlotStatus as av, type StatusGroup as aw, type SystemFieldName as ax, type UpdateDocument as ay, type UpdateDocumentSlot as az, type MultiselectAttribute as b, type SelectAttribute as c, type StatusAttribute as d, type FormulaAttribute as e, type RollupAttribute as f, type CheckboxAttribute as g, type CompletionStatus as h, type ComputedValueType as i, type ComputedReturnType as j, type AttributeType as k, type ComputedOptionsSource as l, type ComputedDependency as m, type ComputedPlan as n, type ComputedFormulaAstNode as o, type DocumentLayout as p, type Timestamps as q, type SchemaOperation as r, type LocationGranularity as s, type Location as t, type DocumentAttribute as u, type Phone as v, type Currency as w, type DocumentSlotConfig as x, type PropertySchema as y, type Option as z };
|
|
@@ -911,4 +911,4 @@ declare function isAttributeSortable(attr: {
|
|
|
911
911
|
type: AttributeType;
|
|
912
912
|
}): boolean;
|
|
913
913
|
|
|
914
|
-
export { type ComputedFormulaLiteralNode as $, type Attribute as A, type FormulaReturnType as B, type CurrencyAttribute as C, type DateAttribute as D, type BilateralConfig as E, type
|
|
914
|
+
export { type ComputedFormulaLiteralNode as $, type Attribute as A, type FormulaReturnType as B, type CurrencyAttribute as C, type DateAttribute as D, type BilateralConfig as E, type FileAttribute as F, type RelationTarget as G, type RollupFunction as H, type UserReferenceType as I, type MigrationDefinition as J, type AttributeGroup as K, type LocationAttribute as L, type MultiRelationAttribute as M, type NumberAttribute as N, type ObjectDefinition as O, type PhoneAttribute as P, type BaseAttribute as Q, type RelationAttribute as R, type SingleRelationAttribute as S, type TextAttribute as T, type UserAttribute as U, type BuiltInTransform as V, type ComputedAttributeState as W, type ComputedFieldKind as X, type ComputedFormulaBinaryNode as Y, type ComputedFormulaBinaryOperator as Z, type ComputedFormulaCallNode as _, type RichtextAttribute as a, ComputedFormulaParseError as a0, type ComputedFormulaPathNode as a1, type ComputedStateStatus as a2, type CreateDocument as a3, type CreateDocumentLink as a4, type CreateDocumentSlot as a5, DEFAULT_DOCUMENT_SLOT as a6, type DateFormat as a7, type DateValue as a8, type Document as a9, hasOptions as aA, inferInverseCardinality as aB, isAttributeSortable as aC, isBilateralRelation as aD, isUniversalRelation as aE, parseComputedFormula as aF, type DocumentKind as aa, type DocumentLayoutVariant as ab, type DocumentListOptions as ac, type DocumentSlot as ad, type DocumentWithSlots as ae, type DocumentWithSubCount as af, type FolderPreset as ag, MAX_PRESET_DEPTH as ah, type NumberUnit as ai, type ObjectAttribute as aj, type ObjectRecord as ak, type OptionPropertyAttribute as al, type PresetNode as am, type PropertyAttribute as an, type PropertyType as ao, RELATION_TARGET_ANY as ap, RESERVED_ATTRIBUTE_NAMES as aq, type RecordDocuments as ar, type ReservedAttributeName as as, type RichTextAttribute as at, SYSTEM_FIELD_NAMES as au, type SlotStatus as av, type StatusGroup as aw, type SystemFieldName as ax, type UpdateDocument as ay, type UpdateDocumentSlot as az, type MultiselectAttribute as b, type SelectAttribute as c, type StatusAttribute as d, type FormulaAttribute as e, type RollupAttribute as f, type CheckboxAttribute as g, type CompletionStatus as h, type ComputedValueType as i, type ComputedReturnType as j, type AttributeType as k, type ComputedOptionsSource as l, type ComputedDependency as m, type ComputedPlan as n, type ComputedFormulaAstNode as o, type DocumentLayout as p, type Timestamps as q, type SchemaOperation as r, type LocationGranularity as s, type Location as t, type DocumentAttribute as u, type Phone as v, type Currency as w, type DocumentSlotConfig as x, type PropertySchema as y, type Option as z };
|
|
@@ -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-CiTjeDGq.mjs';
|
|
3
|
+
import { V as ValidationMessages, a as ValidationResult } from './types-D3Kg3X94.mjs';
|
|
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-Cz3tNPJA.js';
|
|
3
|
+
import { V as ValidationMessages, a as ValidationResult } from './types-Bks5XpQW.js';
|
|
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,
|
|
2
|
-
export { K as AttributeGroup, Q as BaseAttribute, V as BuiltInTransform, W as ComputedAttributeState, X as ComputedFieldKind, Y as ComputedFormulaBinaryNode, Z as ComputedFormulaBinaryOperator, _ as ComputedFormulaCallNode, $ as ComputedFormulaLiteralNode, a0 as ComputedFormulaParseError, a1 as ComputedFormulaPathNode, a2 as ComputedStateStatus, a3 as CreateDocument, a4 as CreateDocumentLink, a5 as CreateDocumentSlot, a6 as DEFAULT_DOCUMENT_SLOT, a7 as DateFormat, a8 as DateValue, a9 as Document, aa as DocumentKind, ab as DocumentLayoutVariant, ac as DocumentListOptions, ad as DocumentSlot, ae as DocumentWithSlots, af as DocumentWithSubCount, ag as FolderPreset, ah as MAX_PRESET_DEPTH, ai as NumberUnit, aj as ObjectAttribute, ak as ObjectRecord, al as OptionPropertyAttribute, am as PresetNode, an as PropertyAttribute, ao as PropertyType, ap as RELATION_TARGET_ANY, aq as RESERVED_ATTRIBUTE_NAMES, ar as RecordDocuments, as as ReservedAttributeName, at as RichTextAttribute, au as SYSTEM_FIELD_NAMES, av as SlotStatus, aw as StatusGroup, ax as SystemFieldName, ay as UpdateDocument, az as UpdateDocumentSlot, aA as hasOptions, aB as inferInverseCardinality, aC as isAttributeSortable, aD as isBilateralRelation, aE as isUniversalRelation, aF as parseComputedFormula } 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, g as CheckboxAttribute, C as CurrencyAttribute, T as TextAttribute, N as NumberAttribute, P as PhoneAttribute, z as Option, L as LocationAttribute, F as FileAttribute, B as FormulaReturnType, R as RelationAttribute, E as BilateralConfig, S as SingleRelationAttribute, M as MultiRelationAttribute, G as RelationTarget, a as RichtextAttribute, H as RollupFunction, I as UserReferenceType, J as MigrationDefinition, O as ObjectDefinition } from './attributes-CiTjeDGq.mjs';
|
|
2
|
+
export { K as AttributeGroup, Q as BaseAttribute, V as BuiltInTransform, W as ComputedAttributeState, X as ComputedFieldKind, Y as ComputedFormulaBinaryNode, Z as ComputedFormulaBinaryOperator, _ as ComputedFormulaCallNode, $ as ComputedFormulaLiteralNode, a0 as ComputedFormulaParseError, a1 as ComputedFormulaPathNode, a2 as ComputedStateStatus, a3 as CreateDocument, a4 as CreateDocumentLink, a5 as CreateDocumentSlot, a6 as DEFAULT_DOCUMENT_SLOT, a7 as DateFormat, a8 as DateValue, a9 as Document, aa as DocumentKind, ab as DocumentLayoutVariant, ac as DocumentListOptions, ad as DocumentSlot, ae as DocumentWithSlots, af as DocumentWithSubCount, ag as FolderPreset, ah as MAX_PRESET_DEPTH, ai as NumberUnit, aj as ObjectAttribute, ak as ObjectRecord, al as OptionPropertyAttribute, am as PresetNode, an as PropertyAttribute, ao as PropertyType, ap as RELATION_TARGET_ANY, aq as RESERVED_ATTRIBUTE_NAMES, ar as RecordDocuments, as as ReservedAttributeName, at as RichTextAttribute, au as SYSTEM_FIELD_NAMES, av as SlotStatus, aw as StatusGroup, ax as SystemFieldName, ay as UpdateDocument, az as UpdateDocumentSlot, aA as hasOptions, aB as inferInverseCardinality, aC as isAttributeSortable, aD as isBilateralRelation, aE as isUniversalRelation, aF as parseComputedFormula } from './attributes-CiTjeDGq.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-D3Kg3X94.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-ElxN0li2.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,
|
|
2
|
-
export { K as AttributeGroup, Q as BaseAttribute, V as BuiltInTransform, W as ComputedAttributeState, X as ComputedFieldKind, Y as ComputedFormulaBinaryNode, Z as ComputedFormulaBinaryOperator, _ as ComputedFormulaCallNode, $ as ComputedFormulaLiteralNode, a0 as ComputedFormulaParseError, a1 as ComputedFormulaPathNode, a2 as ComputedStateStatus, a3 as CreateDocument, a4 as CreateDocumentLink, a5 as CreateDocumentSlot, a6 as DEFAULT_DOCUMENT_SLOT, a7 as DateFormat, a8 as DateValue, a9 as Document, aa as DocumentKind, ab as DocumentLayoutVariant, ac as DocumentListOptions, ad as DocumentSlot, ae as DocumentWithSlots, af as DocumentWithSubCount, ag as FolderPreset, ah as MAX_PRESET_DEPTH, ai as NumberUnit, aj as ObjectAttribute, ak as ObjectRecord, al as OptionPropertyAttribute, am as PresetNode, an as PropertyAttribute, ao as PropertyType, ap as RELATION_TARGET_ANY, aq as RESERVED_ATTRIBUTE_NAMES, ar as RecordDocuments, as as ReservedAttributeName, at as RichTextAttribute, au as SYSTEM_FIELD_NAMES, av as SlotStatus, aw as StatusGroup, ax as SystemFieldName, ay as UpdateDocument, az as UpdateDocumentSlot, aA as hasOptions, aB as inferInverseCardinality, aC as isAttributeSortable, aD as isBilateralRelation, aE as isUniversalRelation, aF as parseComputedFormula } 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, g as CheckboxAttribute, C as CurrencyAttribute, T as TextAttribute, N as NumberAttribute, P as PhoneAttribute, z as Option, L as LocationAttribute, F as FileAttribute, B as FormulaReturnType, R as RelationAttribute, E as BilateralConfig, S as SingleRelationAttribute, M as MultiRelationAttribute, G as RelationTarget, a as RichtextAttribute, H as RollupFunction, I as UserReferenceType, J as MigrationDefinition, O as ObjectDefinition } from './attributes-Cz3tNPJA.js';
|
|
2
|
+
export { K as AttributeGroup, Q as BaseAttribute, V as BuiltInTransform, W as ComputedAttributeState, X as ComputedFieldKind, Y as ComputedFormulaBinaryNode, Z as ComputedFormulaBinaryOperator, _ as ComputedFormulaCallNode, $ as ComputedFormulaLiteralNode, a0 as ComputedFormulaParseError, a1 as ComputedFormulaPathNode, a2 as ComputedStateStatus, a3 as CreateDocument, a4 as CreateDocumentLink, a5 as CreateDocumentSlot, a6 as DEFAULT_DOCUMENT_SLOT, a7 as DateFormat, a8 as DateValue, a9 as Document, aa as DocumentKind, ab as DocumentLayoutVariant, ac as DocumentListOptions, ad as DocumentSlot, ae as DocumentWithSlots, af as DocumentWithSubCount, ag as FolderPreset, ah as MAX_PRESET_DEPTH, ai as NumberUnit, aj as ObjectAttribute, ak as ObjectRecord, al as OptionPropertyAttribute, am as PresetNode, an as PropertyAttribute, ao as PropertyType, ap as RELATION_TARGET_ANY, aq as RESERVED_ATTRIBUTE_NAMES, ar as RecordDocuments, as as ReservedAttributeName, at as RichTextAttribute, au as SYSTEM_FIELD_NAMES, av as SlotStatus, aw as StatusGroup, ax as SystemFieldName, ay as UpdateDocument, az as UpdateDocumentSlot, aA as hasOptions, aB as inferInverseCardinality, aC as isAttributeSortable, aD as isBilateralRelation, aE as isUniversalRelation, aF as parseComputedFormula } from './attributes-Cz3tNPJA.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-Bks5XpQW.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-Vyq-QKxr.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
|
@@ -3,13 +3,11 @@
|
|
|
3
3
|
var chunkFRCDMQER_js = require('./chunk-FRCDMQER.js');
|
|
4
4
|
require('./chunk-PGERPYDR.js');
|
|
5
5
|
var chunkNSM2JPC3_js = require('./chunk-NSM2JPC3.js');
|
|
6
|
-
var
|
|
6
|
+
var chunkPLUTE7FU_js = require('./chunk-PLUTE7FU.js');
|
|
7
7
|
require('./chunk-5WATIVCA.js');
|
|
8
8
|
require('./chunk-O44XVGHE.js');
|
|
9
9
|
require('./chunk-YIP5FJ5H.js');
|
|
10
10
|
require('./chunk-SGSGREPG.js');
|
|
11
|
-
var chunkEBGRZUIH_js = require('./chunk-EBGRZUIH.js');
|
|
12
|
-
require('./chunk-BV3IUMMW.js');
|
|
13
11
|
require('./chunk-EW5XR2X3.js');
|
|
14
12
|
require('./chunk-QWKLQRBX.js');
|
|
15
13
|
require('./chunk-T6L2MUG2.js');
|
|
@@ -18,6 +16,8 @@ require('./chunk-V2UA2D4E.js');
|
|
|
18
16
|
require('./chunk-ACKMC6FL.js');
|
|
19
17
|
require('./chunk-ROLWVTU3.js');
|
|
20
18
|
require('./chunk-E6JUYGJX.js');
|
|
19
|
+
var chunkEBGRZUIH_js = require('./chunk-EBGRZUIH.js');
|
|
20
|
+
require('./chunk-BV3IUMMW.js');
|
|
21
21
|
var chunkYKWSHBT5_js = require('./chunk-YKWSHBT5.js');
|
|
22
22
|
var constants = require('@stndrds/constants');
|
|
23
23
|
var z3 = require('zod');
|
|
@@ -1268,7 +1268,7 @@ var BaseAttributeBuilder = class {
|
|
|
1268
1268
|
* @see https://standardschema.dev/
|
|
1269
1269
|
*/
|
|
1270
1270
|
get "~standard"() {
|
|
1271
|
-
const zodSchema =
|
|
1271
|
+
const zodSchema = chunkPLUTE7FU_js.createAttributeValidator(this.build());
|
|
1272
1272
|
return createStandardSchemaProps(zodSchema);
|
|
1273
1273
|
}
|
|
1274
1274
|
constructor(type, name, label) {
|
|
@@ -2032,9 +2032,9 @@ var RollupAttributeBuilder = class extends BaseAttributeBuilder {
|
|
|
2032
2032
|
if (fn === "original" && targetType !== void 0 && targetType !== "select" && targetType !== "status" && targetType !== "multiselect") {
|
|
2033
2033
|
const relation2 = this.attr.relationAttribute ?? "relation";
|
|
2034
2034
|
const target = this.attr.targetAttribute ?? "field";
|
|
2035
|
-
throw new
|
|
2035
|
+
throw new chunkPLUTE7FU_js.SchemaError(
|
|
2036
2036
|
`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}").`,
|
|
2037
|
-
|
|
2037
|
+
chunkPLUTE7FU_js.SchemaErrorCode.VALIDATION_FAILED
|
|
2038
2038
|
);
|
|
2039
2039
|
}
|
|
2040
2040
|
return super.build();
|
|
@@ -2530,7 +2530,7 @@ var ObjectBuilder = class {
|
|
|
2530
2530
|
* @see https://standardschema.dev/
|
|
2531
2531
|
*/
|
|
2532
2532
|
get "~standard"() {
|
|
2533
|
-
const zodSchema =
|
|
2533
|
+
const zodSchema = chunkPLUTE7FU_js.createObjectValidator(this.build());
|
|
2534
2534
|
return createStandardSchemaProps(zodSchema);
|
|
2535
2535
|
}
|
|
2536
2536
|
/**
|
|
@@ -2734,17 +2734,17 @@ var ObjectBuilder = class {
|
|
|
2734
2734
|
throw new Error("[ObjectBuilder] Missing required field: label");
|
|
2735
2735
|
}
|
|
2736
2736
|
if (!this._labelExpression) {
|
|
2737
|
-
throw new
|
|
2737
|
+
throw new chunkPLUTE7FU_js.SchemaError(
|
|
2738
2738
|
`Object "${this.obj.name}" must have a labelExpression. The labelExpression defines how records are displayed in lists and relations (e.g. "{{ name }}").`,
|
|
2739
|
-
|
|
2739
|
+
chunkPLUTE7FU_js.SchemaErrorCode.VALIDATION_FAILED
|
|
2740
2740
|
);
|
|
2741
2741
|
}
|
|
2742
2742
|
const labelResult = labelExpressionSchema.safeParse(this._labelExpression);
|
|
2743
2743
|
if (!labelResult.success) {
|
|
2744
2744
|
const errorMsg = labelResult.error.issues[0]?.message ?? "Invalid labelExpression";
|
|
2745
|
-
throw new
|
|
2745
|
+
throw new chunkPLUTE7FU_js.SchemaError(
|
|
2746
2746
|
`Invalid labelExpression for "${this.obj.name}": ${errorMsg}`,
|
|
2747
|
-
|
|
2747
|
+
chunkPLUTE7FU_js.SchemaErrorCode.VALIDATION_FAILED
|
|
2748
2748
|
);
|
|
2749
2749
|
}
|
|
2750
2750
|
const sortedVersions = [...this._migrations].sort((a, b) => a.version - b.version);
|
|
@@ -2783,7 +2783,7 @@ var ObjectBuilder = class {
|
|
|
2783
2783
|
objectNameSchema.parse(name);
|
|
2784
2784
|
} catch (error) {
|
|
2785
2785
|
if (error instanceof z3__default.default.ZodError) {
|
|
2786
|
-
throw new
|
|
2786
|
+
throw new chunkPLUTE7FU_js.SchemaError(error.issues[0].message, chunkPLUTE7FU_js.SchemaErrorCode.INVALID_OBJECT_NAME);
|
|
2787
2787
|
}
|
|
2788
2788
|
throw error;
|
|
2789
2789
|
}
|
|
@@ -6717,7 +6717,7 @@ function assertOperatorForType(operator, type, context) {
|
|
|
6717
6717
|
if (!ops?.includes(operator)) {
|
|
6718
6718
|
const validList = ops?.length ? ops.join(", ") : "(no operators registered for this type)";
|
|
6719
6719
|
const summary = `Operator "${operator}" is not valid for ${context} type "${type}". Valid operators: ${validList}.`;
|
|
6720
|
-
throw new
|
|
6720
|
+
throw new chunkPLUTE7FU_js.ValidationError(summary, [
|
|
6721
6721
|
{
|
|
6722
6722
|
path: ["operator"],
|
|
6723
6723
|
message: summary
|
|
@@ -6729,19 +6729,19 @@ function validateQualifiedRule(rule, context) {
|
|
|
6729
6729
|
const rootAttr = context.attributes.find((a) => a.name === rule.attribute);
|
|
6730
6730
|
const systemOps = SYSTEM_FILTER_OPERATORS[rule.attribute];
|
|
6731
6731
|
if (!(rootAttr || systemOps)) {
|
|
6732
|
-
throw new
|
|
6732
|
+
throw new chunkPLUTE7FU_js.ValidationError(`Unknown attribute: ${rule.attribute}`, [
|
|
6733
6733
|
{ path: ["attribute"], message: `Unknown attribute: ${rule.attribute}` }
|
|
6734
6734
|
]);
|
|
6735
6735
|
}
|
|
6736
6736
|
if (!rootAttr) {
|
|
6737
6737
|
if (rule.property) {
|
|
6738
|
-
throw new
|
|
6738
|
+
throw new chunkPLUTE7FU_js.ValidationError(`Cannot qualify system attribute "${rule.attribute}"`, [
|
|
6739
6739
|
{ path: ["property"], message: `"${rule.attribute}" is a system column, not a reference` }
|
|
6740
6740
|
]);
|
|
6741
6741
|
}
|
|
6742
6742
|
if (!systemOps.includes(rule.operator)) {
|
|
6743
6743
|
const summary = `Operator "${rule.operator}" is not valid for system attribute "${rule.attribute}". Valid operators: ${systemOps.join(", ")}.`;
|
|
6744
|
-
throw new
|
|
6744
|
+
throw new chunkPLUTE7FU_js.ValidationError(summary, [{ path: ["operator"], message: summary }]);
|
|
6745
6745
|
}
|
|
6746
6746
|
return;
|
|
6747
6747
|
}
|
|
@@ -6750,24 +6750,24 @@ function validateQualifiedRule(rule, context) {
|
|
|
6750
6750
|
if (!ops.includes(rule.operator)) {
|
|
6751
6751
|
const validList = ops.length ? ops.join(", ") : "(not filterable)";
|
|
6752
6752
|
const summary = `Operator "${rule.operator}" is not valid for attribute "${rootAttr.name}". Valid operators: ${validList}.`;
|
|
6753
|
-
throw new
|
|
6753
|
+
throw new chunkPLUTE7FU_js.ValidationError(summary, [{ path: ["operator"], message: summary }]);
|
|
6754
6754
|
}
|
|
6755
6755
|
return;
|
|
6756
6756
|
}
|
|
6757
6757
|
if (!REFERENCE_TYPES.has(rootAttr.type)) {
|
|
6758
|
-
throw new
|
|
6758
|
+
throw new chunkPLUTE7FU_js.ValidationError(`Cannot qualify ${rootAttr.type} attribute "${rule.attribute}"`, [
|
|
6759
6759
|
{ path: ["property"], message: `Attribute "${rule.attribute}" is not a reference type` }
|
|
6760
6760
|
]);
|
|
6761
6761
|
}
|
|
6762
6762
|
const propSchema = rootAttr.properties;
|
|
6763
6763
|
if (!propSchema) {
|
|
6764
|
-
throw new
|
|
6764
|
+
throw new chunkPLUTE7FU_js.ValidationError(`Attribute "${rule.attribute}" has no qualifyWith schema`, [
|
|
6765
6765
|
{ path: ["property"], message: `"${rule.attribute}" has no qualifyWith` }
|
|
6766
6766
|
]);
|
|
6767
6767
|
}
|
|
6768
6768
|
const propDef = propSchema.definitions.find((p) => p.name === rule.property);
|
|
6769
6769
|
if (!propDef) {
|
|
6770
|
-
throw new
|
|
6770
|
+
throw new chunkPLUTE7FU_js.ValidationError(
|
|
6771
6771
|
`Property "${rule.property}" not defined on "${rule.attribute}".qualifyWith()`,
|
|
6772
6772
|
[{ path: ["property"], message: `Unknown property: ${rule.property}` }]
|
|
6773
6773
|
);
|
|
@@ -6809,175 +6809,175 @@ Object.defineProperty(exports, "parseComputedFormula", {
|
|
|
6809
6809
|
});
|
|
6810
6810
|
Object.defineProperty(exports, "AccessDeniedError", {
|
|
6811
6811
|
enumerable: true,
|
|
6812
|
-
get: function () { return
|
|
6812
|
+
get: function () { return chunkPLUTE7FU_js.AccessDeniedError; }
|
|
6813
6813
|
});
|
|
6814
6814
|
Object.defineProperty(exports, "AttributeInUseError", {
|
|
6815
6815
|
enumerable: true,
|
|
6816
|
-
get: function () { return
|
|
6816
|
+
get: function () { return chunkPLUTE7FU_js.AttributeInUseError; }
|
|
6817
6817
|
});
|
|
6818
6818
|
Object.defineProperty(exports, "AttributeNotFoundError", {
|
|
6819
6819
|
enumerable: true,
|
|
6820
|
-
get: function () { return
|
|
6820
|
+
get: function () { return chunkPLUTE7FU_js.AttributeNotFoundError; }
|
|
6821
6821
|
});
|
|
6822
6822
|
Object.defineProperty(exports, "ChangeTypeNotSupportedError", {
|
|
6823
6823
|
enumerable: true,
|
|
6824
|
-
get: function () { return
|
|
6824
|
+
get: function () { return chunkPLUTE7FU_js.ChangeTypeNotSupportedError; }
|
|
6825
6825
|
});
|
|
6826
6826
|
Object.defineProperty(exports, "ConcurrentModificationError", {
|
|
6827
6827
|
enumerable: true,
|
|
6828
|
-
get: function () { return
|
|
6828
|
+
get: function () { return chunkPLUTE7FU_js.ConcurrentModificationError; }
|
|
6829
6829
|
});
|
|
6830
6830
|
Object.defineProperty(exports, "DestructiveSyncNotAllowedError", {
|
|
6831
6831
|
enumerable: true,
|
|
6832
|
-
get: function () { return
|
|
6832
|
+
get: function () { return chunkPLUTE7FU_js.DestructiveSyncNotAllowedError; }
|
|
6833
6833
|
});
|
|
6834
6834
|
Object.defineProperty(exports, "DuplicateError", {
|
|
6835
6835
|
enumerable: true,
|
|
6836
|
-
get: function () { return
|
|
6836
|
+
get: function () { return chunkPLUTE7FU_js.DuplicateError; }
|
|
6837
6837
|
});
|
|
6838
6838
|
Object.defineProperty(exports, "ForbiddenError", {
|
|
6839
6839
|
enumerable: true,
|
|
6840
|
-
get: function () { return
|
|
6840
|
+
get: function () { return chunkPLUTE7FU_js.ForbiddenError; }
|
|
6841
6841
|
});
|
|
6842
6842
|
Object.defineProperty(exports, "MemoryNotFoundError", {
|
|
6843
6843
|
enumerable: true,
|
|
6844
|
-
get: function () { return
|
|
6844
|
+
get: function () { return chunkPLUTE7FU_js.MemoryNotFoundError; }
|
|
6845
6845
|
});
|
|
6846
6846
|
Object.defineProperty(exports, "MigrationTimeoutError", {
|
|
6847
6847
|
enumerable: true,
|
|
6848
|
-
get: function () { return
|
|
6848
|
+
get: function () { return chunkPLUTE7FU_js.MigrationTimeoutError; }
|
|
6849
6849
|
});
|
|
6850
6850
|
Object.defineProperty(exports, "NotFoundError", {
|
|
6851
6851
|
enumerable: true,
|
|
6852
|
-
get: function () { return
|
|
6852
|
+
get: function () { return chunkPLUTE7FU_js.NotFoundError; }
|
|
6853
6853
|
});
|
|
6854
6854
|
Object.defineProperty(exports, "NotImplementedError", {
|
|
6855
6855
|
enumerable: true,
|
|
6856
|
-
get: function () { return
|
|
6856
|
+
get: function () { return chunkPLUTE7FU_js.NotImplementedError; }
|
|
6857
6857
|
});
|
|
6858
6858
|
Object.defineProperty(exports, "ObjectNotFoundError", {
|
|
6859
6859
|
enumerable: true,
|
|
6860
|
-
get: function () { return
|
|
6860
|
+
get: function () { return chunkPLUTE7FU_js.ObjectNotFoundError; }
|
|
6861
6861
|
});
|
|
6862
6862
|
Object.defineProperty(exports, "ObjectReferencedError", {
|
|
6863
6863
|
enumerable: true,
|
|
6864
|
-
get: function () { return
|
|
6864
|
+
get: function () { return chunkPLUTE7FU_js.ObjectReferencedError; }
|
|
6865
6865
|
});
|
|
6866
6866
|
Object.defineProperty(exports, "OrphanSystemAttributeError", {
|
|
6867
6867
|
enumerable: true,
|
|
6868
|
-
get: function () { return
|
|
6868
|
+
get: function () { return chunkPLUTE7FU_js.OrphanSystemAttributeError; }
|
|
6869
6869
|
});
|
|
6870
6870
|
Object.defineProperty(exports, "ProtectedResourceError", {
|
|
6871
6871
|
enumerable: true,
|
|
6872
|
-
get: function () { return
|
|
6872
|
+
get: function () { return chunkPLUTE7FU_js.ProtectedResourceError; }
|
|
6873
6873
|
});
|
|
6874
6874
|
Object.defineProperty(exports, "ProtectedRoleError", {
|
|
6875
6875
|
enumerable: true,
|
|
6876
|
-
get: function () { return
|
|
6876
|
+
get: function () { return chunkPLUTE7FU_js.ProtectedRoleError; }
|
|
6877
6877
|
});
|
|
6878
6878
|
Object.defineProperty(exports, "RecordNotFoundError", {
|
|
6879
6879
|
enumerable: true,
|
|
6880
|
-
get: function () { return
|
|
6880
|
+
get: function () { return chunkPLUTE7FU_js.RecordNotFoundError; }
|
|
6881
6881
|
});
|
|
6882
6882
|
Object.defineProperty(exports, "RecordReferencedError", {
|
|
6883
6883
|
enumerable: true,
|
|
6884
|
-
get: function () { return
|
|
6884
|
+
get: function () { return chunkPLUTE7FU_js.RecordReferencedError; }
|
|
6885
6885
|
});
|
|
6886
6886
|
Object.defineProperty(exports, "RepositoryError", {
|
|
6887
6887
|
enumerable: true,
|
|
6888
|
-
get: function () { return
|
|
6888
|
+
get: function () { return chunkPLUTE7FU_js.RepositoryError; }
|
|
6889
6889
|
});
|
|
6890
6890
|
Object.defineProperty(exports, "RoleNotFoundError", {
|
|
6891
6891
|
enumerable: true,
|
|
6892
|
-
get: function () { return
|
|
6892
|
+
get: function () { return chunkPLUTE7FU_js.RoleNotFoundError; }
|
|
6893
6893
|
});
|
|
6894
6894
|
Object.defineProperty(exports, "SchemaError", {
|
|
6895
6895
|
enumerable: true,
|
|
6896
|
-
get: function () { return
|
|
6896
|
+
get: function () { return chunkPLUTE7FU_js.SchemaError; }
|
|
6897
6897
|
});
|
|
6898
6898
|
Object.defineProperty(exports, "SchemaErrorCode", {
|
|
6899
6899
|
enumerable: true,
|
|
6900
|
-
get: function () { return
|
|
6900
|
+
get: function () { return chunkPLUTE7FU_js.SchemaErrorCode; }
|
|
6901
6901
|
});
|
|
6902
6902
|
Object.defineProperty(exports, "StorageError", {
|
|
6903
6903
|
enumerable: true,
|
|
6904
|
-
get: function () { return
|
|
6904
|
+
get: function () { return chunkPLUTE7FU_js.StorageError; }
|
|
6905
6905
|
});
|
|
6906
6906
|
Object.defineProperty(exports, "SyncCascadeError", {
|
|
6907
6907
|
enumerable: true,
|
|
6908
|
-
get: function () { return
|
|
6908
|
+
get: function () { return chunkPLUTE7FU_js.SyncCascadeError; }
|
|
6909
6909
|
});
|
|
6910
6910
|
Object.defineProperty(exports, "SyncConflictError", {
|
|
6911
6911
|
enumerable: true,
|
|
6912
|
-
get: function () { return
|
|
6912
|
+
get: function () { return chunkPLUTE7FU_js.SyncConflictError; }
|
|
6913
6913
|
});
|
|
6914
6914
|
Object.defineProperty(exports, "SyncError", {
|
|
6915
6915
|
enumerable: true,
|
|
6916
|
-
get: function () { return
|
|
6916
|
+
get: function () { return chunkPLUTE7FU_js.SyncError; }
|
|
6917
6917
|
});
|
|
6918
6918
|
Object.defineProperty(exports, "SystemEntityImmutableError", {
|
|
6919
6919
|
enumerable: true,
|
|
6920
|
-
get: function () { return
|
|
6920
|
+
get: function () { return chunkPLUTE7FU_js.SystemEntityImmutableError; }
|
|
6921
6921
|
});
|
|
6922
6922
|
Object.defineProperty(exports, "ValidationError", {
|
|
6923
6923
|
enumerable: true,
|
|
6924
|
-
get: function () { return
|
|
6924
|
+
get: function () { return chunkPLUTE7FU_js.ValidationError; }
|
|
6925
6925
|
});
|
|
6926
6926
|
Object.defineProperty(exports, "computeRecordStatus", {
|
|
6927
6927
|
enumerable: true,
|
|
6928
|
-
get: function () { return
|
|
6928
|
+
get: function () { return chunkPLUTE7FU_js.computeRecordStatus; }
|
|
6929
6929
|
});
|
|
6930
6930
|
Object.defineProperty(exports, "createFormAttributeValidator", {
|
|
6931
6931
|
enumerable: true,
|
|
6932
|
-
get: function () { return
|
|
6932
|
+
get: function () { return chunkPLUTE7FU_js.createFormAttributeValidator; }
|
|
6933
6933
|
});
|
|
6934
6934
|
Object.defineProperty(exports, "isAttributeInUseError", {
|
|
6935
6935
|
enumerable: true,
|
|
6936
|
-
get: function () { return
|
|
6936
|
+
get: function () { return chunkPLUTE7FU_js.isAttributeInUseError; }
|
|
6937
6937
|
});
|
|
6938
6938
|
Object.defineProperty(exports, "isNotFoundError", {
|
|
6939
6939
|
enumerable: true,
|
|
6940
|
-
get: function () { return
|
|
6940
|
+
get: function () { return chunkPLUTE7FU_js.isNotFoundError; }
|
|
6941
6941
|
});
|
|
6942
6942
|
Object.defineProperty(exports, "isObjectReferencedError", {
|
|
6943
6943
|
enumerable: true,
|
|
6944
|
-
get: function () { return
|
|
6944
|
+
get: function () { return chunkPLUTE7FU_js.isObjectReferencedError; }
|
|
6945
6945
|
});
|
|
6946
6946
|
Object.defineProperty(exports, "isProtectedResourceError", {
|
|
6947
6947
|
enumerable: true,
|
|
6948
|
-
get: function () { return
|
|
6948
|
+
get: function () { return chunkPLUTE7FU_js.isProtectedResourceError; }
|
|
6949
6949
|
});
|
|
6950
6950
|
Object.defineProperty(exports, "isRecordReferencedError", {
|
|
6951
6951
|
enumerable: true,
|
|
6952
|
-
get: function () { return
|
|
6952
|
+
get: function () { return chunkPLUTE7FU_js.isRecordReferencedError; }
|
|
6953
6953
|
});
|
|
6954
6954
|
Object.defineProperty(exports, "isSchemaError", {
|
|
6955
6955
|
enumerable: true,
|
|
6956
|
-
get: function () { return
|
|
6956
|
+
get: function () { return chunkPLUTE7FU_js.isSchemaError; }
|
|
6957
6957
|
});
|
|
6958
6958
|
Object.defineProperty(exports, "isValidationError", {
|
|
6959
6959
|
enumerable: true,
|
|
6960
|
-
get: function () { return
|
|
6960
|
+
get: function () { return chunkPLUTE7FU_js.isValidationError; }
|
|
6961
6961
|
});
|
|
6962
6962
|
Object.defineProperty(exports, "rejectUnknownAttributesOrThrow", {
|
|
6963
6963
|
enumerable: true,
|
|
6964
|
-
get: function () { return
|
|
6964
|
+
get: function () { return chunkPLUTE7FU_js.rejectUnknownAttributesOrThrow; }
|
|
6965
6965
|
});
|
|
6966
6966
|
Object.defineProperty(exports, "validateDraft", {
|
|
6967
6967
|
enumerable: true,
|
|
6968
|
-
get: function () { return
|
|
6968
|
+
get: function () { return chunkPLUTE7FU_js.validateDraft; }
|
|
6969
6969
|
});
|
|
6970
6970
|
Object.defineProperty(exports, "validateDraftOrThrow", {
|
|
6971
6971
|
enumerable: true,
|
|
6972
|
-
get: function () { return
|
|
6972
|
+
get: function () { return chunkPLUTE7FU_js.validateDraftOrThrow; }
|
|
6973
6973
|
});
|
|
6974
6974
|
Object.defineProperty(exports, "validateObject", {
|
|
6975
6975
|
enumerable: true,
|
|
6976
|
-
get: function () { return
|
|
6976
|
+
get: function () { return chunkPLUTE7FU_js.validateObject; }
|
|
6977
6977
|
});
|
|
6978
6978
|
Object.defineProperty(exports, "validateObjectOrThrow", {
|
|
6979
6979
|
enumerable: true,
|
|
6980
|
-
get: function () { return
|
|
6980
|
+
get: function () { return chunkPLUTE7FU_js.validateObjectOrThrow; }
|
|
6981
6981
|
});
|
|
6982
6982
|
Object.defineProperty(exports, "DEFAULT_VALIDATION_MESSAGES", {
|
|
6983
6983
|
enumerable: true,
|
package/dist/index.mjs
CHANGED
|
@@ -3,14 +3,12 @@ export { asTenantId, asUserId, deepEqual, generateId, indexBy } from './chunk-QY
|
|
|
3
3
|
import './chunk-SP3PNHYF.mjs';
|
|
4
4
|
import { parseComputedFormula } from './chunk-AAXJJNY6.mjs';
|
|
5
5
|
export { ComputedFormulaParseError, parseAttributeConfig, parseComputedFormula } from './chunk-AAXJJNY6.mjs';
|
|
6
|
-
import { createObjectValidator, SchemaError, SchemaErrorCode, ValidationError, createAttributeValidator } from './chunk-
|
|
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, StorageError, SyncCascadeError, SyncConflictError, SyncError, SystemEntityImmutableError, ValidationError, computeRecordStatus, createFormAttributeValidator, isAttributeInUseError, isNotFoundError, isObjectReferencedError, isProtectedResourceError, isRecordReferencedError, isSchemaError, isValidationError, rejectUnknownAttributesOrThrow, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow } from './chunk-
|
|
6
|
+
import { createObjectValidator, SchemaError, SchemaErrorCode, ValidationError, createAttributeValidator } from './chunk-NWB6IKLM.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, StorageError, SyncCascadeError, SyncConflictError, SyncError, SystemEntityImmutableError, ValidationError, computeRecordStatus, createFormAttributeValidator, isAttributeInUseError, isNotFoundError, isObjectReferencedError, isProtectedResourceError, isRecordReferencedError, isSchemaError, isValidationError, rejectUnknownAttributesOrThrow, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow } from './chunk-NWB6IKLM.mjs';
|
|
8
8
|
import './chunk-OSSGN43B.mjs';
|
|
9
9
|
import './chunk-6I2R22CX.mjs';
|
|
10
10
|
import './chunk-UANQJ2GH.mjs';
|
|
11
11
|
import './chunk-NOMHDOVE.mjs';
|
|
12
|
-
import { formatPhoneForDisplay } from './chunk-JUKLL5RJ.mjs';
|
|
13
|
-
import './chunk-XZ5RG2OG.mjs';
|
|
14
12
|
import './chunk-QVLQPW3O.mjs';
|
|
15
13
|
import './chunk-ZDQ5AP26.mjs';
|
|
16
14
|
import './chunk-ZDMOXF3U.mjs';
|
|
@@ -19,6 +17,8 @@ import './chunk-NS63SPNN.mjs';
|
|
|
19
17
|
import './chunk-AYVHMVKQ.mjs';
|
|
20
18
|
import './chunk-QEZUDVTN.mjs';
|
|
21
19
|
import './chunk-YUFTHPOE.mjs';
|
|
20
|
+
import { formatPhoneForDisplay } from './chunk-JUKLL5RJ.mjs';
|
|
21
|
+
import './chunk-XZ5RG2OG.mjs';
|
|
22
22
|
export { DEFAULT_VALIDATION_MESSAGES, formatZodErrors } from './chunk-HRQEZUAA.mjs';
|
|
23
23
|
import { ICONS, getCountryDisplayNameByIso3 } from '@stndrds/constants';
|
|
24
24
|
import z3, { z } from 'zod';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { V as ValidationMessages } from '../types-
|
|
1
|
+
export { V as ValidationMessages } from '../types-D3Kg3X94.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-ElxN0li2.mjs';
|
|
5
|
+
import '../attributes-CiTjeDGq.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-Bks5XpQW.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-Vyq-QKxr.js';
|
|
5
|
+
import '../attributes-Cz3tNPJA.js';
|
|
6
6
|
import '@stndrds/constants';
|
|
7
7
|
import '../utils.js';
|
|
8
8
|
import 'zod';
|
package/dist/validation/all.js
CHANGED
|
@@ -2,13 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
require('../chunk-PGERPYDR.js');
|
|
4
4
|
var chunkNSM2JPC3_js = require('../chunk-NSM2JPC3.js');
|
|
5
|
-
var
|
|
5
|
+
var chunkPLUTE7FU_js = require('../chunk-PLUTE7FU.js');
|
|
6
6
|
require('../chunk-5WATIVCA.js');
|
|
7
7
|
require('../chunk-O44XVGHE.js');
|
|
8
8
|
require('../chunk-YIP5FJ5H.js');
|
|
9
9
|
require('../chunk-SGSGREPG.js');
|
|
10
|
-
require('../chunk-EBGRZUIH.js');
|
|
11
|
-
require('../chunk-BV3IUMMW.js');
|
|
12
10
|
require('../chunk-EW5XR2X3.js');
|
|
13
11
|
require('../chunk-QWKLQRBX.js');
|
|
14
12
|
require('../chunk-T6L2MUG2.js');
|
|
@@ -17,6 +15,8 @@ require('../chunk-V2UA2D4E.js');
|
|
|
17
15
|
require('../chunk-ACKMC6FL.js');
|
|
18
16
|
require('../chunk-ROLWVTU3.js');
|
|
19
17
|
require('../chunk-E6JUYGJX.js');
|
|
18
|
+
require('../chunk-EBGRZUIH.js');
|
|
19
|
+
require('../chunk-BV3IUMMW.js');
|
|
20
20
|
var chunkYKWSHBT5_js = require('../chunk-YKWSHBT5.js');
|
|
21
21
|
|
|
22
22
|
|
|
@@ -27,31 +27,31 @@ Object.defineProperty(exports, "parseAttributeConfig", {
|
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "computeRecordStatus", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkPLUTE7FU_js.computeRecordStatus; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "createFormAttributeValidator", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkPLUTE7FU_js.createFormAttributeValidator; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "rejectUnknownAttributesOrThrow", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkPLUTE7FU_js.rejectUnknownAttributesOrThrow; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "validateDraft", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkPLUTE7FU_js.validateDraft; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "validateDraftOrThrow", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkPLUTE7FU_js.validateDraftOrThrow; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "validateObject", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkPLUTE7FU_js.validateObject; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "validateObjectOrThrow", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkPLUTE7FU_js.validateObjectOrThrow; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "DEFAULT_VALIDATION_MESSAGES", {
|
|
57
57
|
enumerable: true,
|
package/dist/validation/all.mjs
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import '../chunk-SP3PNHYF.mjs';
|
|
2
2
|
export { parseAttributeConfig } from '../chunk-AAXJJNY6.mjs';
|
|
3
|
-
export { computeRecordStatus, createFormAttributeValidator, rejectUnknownAttributesOrThrow, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow } from '../chunk-
|
|
3
|
+
export { computeRecordStatus, createFormAttributeValidator, rejectUnknownAttributesOrThrow, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow } from '../chunk-NWB6IKLM.mjs';
|
|
4
4
|
import '../chunk-OSSGN43B.mjs';
|
|
5
5
|
import '../chunk-6I2R22CX.mjs';
|
|
6
6
|
import '../chunk-UANQJ2GH.mjs';
|
|
7
7
|
import '../chunk-NOMHDOVE.mjs';
|
|
8
|
-
import '../chunk-JUKLL5RJ.mjs';
|
|
9
|
-
import '../chunk-XZ5RG2OG.mjs';
|
|
10
8
|
import '../chunk-QVLQPW3O.mjs';
|
|
11
9
|
import '../chunk-ZDQ5AP26.mjs';
|
|
12
10
|
import '../chunk-ZDMOXF3U.mjs';
|
|
@@ -15,4 +13,6 @@ import '../chunk-NS63SPNN.mjs';
|
|
|
15
13
|
import '../chunk-AYVHMVKQ.mjs';
|
|
16
14
|
import '../chunk-QEZUDVTN.mjs';
|
|
17
15
|
import '../chunk-YUFTHPOE.mjs';
|
|
16
|
+
import '../chunk-JUKLL5RJ.mjs';
|
|
17
|
+
import '../chunk-XZ5RG2OG.mjs';
|
|
18
18
|
export { DEFAULT_VALIDATION_MESSAGES, formatZodErrors } from '../chunk-HRQEZUAA.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { C as CurrencyAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { C as CurrencyAttribute } from '../../attributes-CiTjeDGq.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-D3Kg3X94.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 '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { C as CurrencyAttribute } from '../../attributes-Cz3tNPJA.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-Bks5XpQW.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 {
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { F as FileAttribute } from '../../attributes-CiTjeDGq.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-D3Kg3X94.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 {
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { F as FileAttribute } from '../../attributes-Cz3tNPJA.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-Bks5XpQW.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 '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { L as LocationAttribute } from '../../attributes-CiTjeDGq.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-D3Kg3X94.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 '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { L as LocationAttribute } from '../../attributes-Cz3tNPJA.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-Bks5XpQW.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 '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { P as PhoneAttribute } from '../../attributes-CiTjeDGq.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-D3Kg3X94.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 '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { P as PhoneAttribute } from '../../attributes-Cz3tNPJA.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-Bks5XpQW.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,
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { M as MultiRelationAttribute, R as RelationAttribute, S as SingleRelationAttribute } from '../../attributes-CiTjeDGq.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-D3Kg3X94.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,
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { M as MultiRelationAttribute, R as RelationAttribute, S as SingleRelationAttribute } from '../../attributes-Cz3tNPJA.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-Bks5XpQW.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 {
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { a as RichtextAttribute } from '../../attributes-CiTjeDGq.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-D3Kg3X94.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 {
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { a as RichtextAttribute } from '../../attributes-Cz3tNPJA.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-Bks5XpQW.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 {
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { b as MultiselectAttribute, c as SelectAttribute, d as StatusAttribute } from '../../attributes-CiTjeDGq.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-D3Kg3X94.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 {
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { b as MultiselectAttribute, c as SelectAttribute, d as StatusAttribute } from '../../attributes-Cz3tNPJA.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-Bks5XpQW.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 '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { U as UserAttribute } from '../../attributes-CiTjeDGq.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-D3Kg3X94.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 '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { U as UserAttribute } from '../../attributes-Cz3tNPJA.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-Bks5XpQW.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 {
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { e as FormulaAttribute } from '../../attributes-CiTjeDGq.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-D3Kg3X94.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 {
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { e as FormulaAttribute } from '../../attributes-Cz3tNPJA.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-Bks5XpQW.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 {
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { f as RollupAttribute } from '../../attributes-CiTjeDGq.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-D3Kg3X94.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 {
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { f as RollupAttribute } from '../../attributes-Cz3tNPJA.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-Bks5XpQW.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-D3Kg3X94.mjs';
|
|
2
|
+
export { a as ValidationResult } from '../../types-D3Kg3X94.mjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import '../../attributes-
|
|
4
|
+
import '../../attributes-CiTjeDGq.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-Bks5XpQW.js';
|
|
2
|
+
export { a as ValidationResult } from '../../types-Bks5XpQW.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import '../../attributes-
|
|
4
|
+
import '../../attributes-Cz3tNPJA.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, r as rejectUnknownAttributesOrThrow, 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, r as rejectUnknownAttributesOrThrow, h as validateAttribute, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../../helpers-ElxN0li2.mjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { O as ObjectDefinition } from '../../attributes-
|
|
4
|
-
import '../../types-
|
|
3
|
+
import { O as ObjectDefinition } from '../../attributes-CiTjeDGq.mjs';
|
|
4
|
+
import '../../types-D3Kg3X94.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, r as rejectUnknownAttributesOrThrow, 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, r as rejectUnknownAttributesOrThrow, h as validateAttribute, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../../helpers-Vyq-QKxr.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { O as ObjectDefinition } from '../../attributes-
|
|
4
|
-
import '../../types-
|
|
3
|
+
import { O as ObjectDefinition } from '../../attributes-Cz3tNPJA.js';
|
|
4
|
+
import '../../types-Bks5XpQW.js';
|
|
5
5
|
import '@stndrds/constants';
|
|
6
6
|
import '../../utils.js';
|
|
7
7
|
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkPLUTE7FU_js = require('../../chunk-PLUTE7FU.js');
|
|
4
4
|
require('../../chunk-5WATIVCA.js');
|
|
5
5
|
require('../../chunk-O44XVGHE.js');
|
|
6
6
|
require('../../chunk-YIP5FJ5H.js');
|
|
7
7
|
require('../../chunk-SGSGREPG.js');
|
|
8
|
-
require('../../chunk-EBGRZUIH.js');
|
|
9
|
-
require('../../chunk-BV3IUMMW.js');
|
|
10
8
|
require('../../chunk-EW5XR2X3.js');
|
|
11
9
|
require('../../chunk-QWKLQRBX.js');
|
|
12
10
|
require('../../chunk-T6L2MUG2.js');
|
|
@@ -15,59 +13,61 @@ require('../../chunk-V2UA2D4E.js');
|
|
|
15
13
|
require('../../chunk-ACKMC6FL.js');
|
|
16
14
|
require('../../chunk-ROLWVTU3.js');
|
|
17
15
|
require('../../chunk-E6JUYGJX.js');
|
|
16
|
+
require('../../chunk-EBGRZUIH.js');
|
|
17
|
+
require('../../chunk-BV3IUMMW.js');
|
|
18
18
|
require('../../chunk-YKWSHBT5.js');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
Object.defineProperty(exports, "computeRecordStatus", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkPLUTE7FU_js.computeRecordStatus; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "createAttributeValidator", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkPLUTE7FU_js.createAttributeValidator; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "createDraftValidator", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkPLUTE7FU_js.createDraftValidator; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "createFormAttributeValidator", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkPLUTE7FU_js.createFormAttributeValidator; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "createObjectValidator", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkPLUTE7FU_js.createObjectValidator; }
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "getMissingRequiredAttributes", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkPLUTE7FU_js.getMissingRequiredAttributes; }
|
|
45
45
|
});
|
|
46
46
|
Object.defineProperty(exports, "isRecordComplete", {
|
|
47
47
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkPLUTE7FU_js.isRecordComplete; }
|
|
49
49
|
});
|
|
50
50
|
Object.defineProperty(exports, "rejectUnknownAttributesOrThrow", {
|
|
51
51
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunkPLUTE7FU_js.rejectUnknownAttributesOrThrow; }
|
|
53
53
|
});
|
|
54
54
|
Object.defineProperty(exports, "validateAttribute", {
|
|
55
55
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunkPLUTE7FU_js.validateAttribute; }
|
|
57
57
|
});
|
|
58
58
|
Object.defineProperty(exports, "validateDraft", {
|
|
59
59
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
60
|
+
get: function () { return chunkPLUTE7FU_js.validateDraft; }
|
|
61
61
|
});
|
|
62
62
|
Object.defineProperty(exports, "validateDraftOrThrow", {
|
|
63
63
|
enumerable: true,
|
|
64
|
-
get: function () { return
|
|
64
|
+
get: function () { return chunkPLUTE7FU_js.validateDraftOrThrow; }
|
|
65
65
|
});
|
|
66
66
|
Object.defineProperty(exports, "validateObject", {
|
|
67
67
|
enumerable: true,
|
|
68
|
-
get: function () { return
|
|
68
|
+
get: function () { return chunkPLUTE7FU_js.validateObject; }
|
|
69
69
|
});
|
|
70
70
|
Object.defineProperty(exports, "validateObjectOrThrow", {
|
|
71
71
|
enumerable: true,
|
|
72
|
-
get: function () { return
|
|
72
|
+
get: function () { return chunkPLUTE7FU_js.validateObjectOrThrow; }
|
|
73
73
|
});
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
export { computeRecordStatus, createAttributeValidator, createDraftValidator, createFormAttributeValidator, createObjectValidator, getMissingRequiredAttributes, isRecordComplete, rejectUnknownAttributesOrThrow, validateAttribute, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow } from '../../chunk-
|
|
1
|
+
export { computeRecordStatus, createAttributeValidator, createDraftValidator, createFormAttributeValidator, createObjectValidator, getMissingRequiredAttributes, isRecordComplete, rejectUnknownAttributesOrThrow, validateAttribute, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow } from '../../chunk-NWB6IKLM.mjs';
|
|
2
2
|
import '../../chunk-OSSGN43B.mjs';
|
|
3
3
|
import '../../chunk-6I2R22CX.mjs';
|
|
4
4
|
import '../../chunk-UANQJ2GH.mjs';
|
|
5
5
|
import '../../chunk-NOMHDOVE.mjs';
|
|
6
|
-
import '../../chunk-JUKLL5RJ.mjs';
|
|
7
|
-
import '../../chunk-XZ5RG2OG.mjs';
|
|
8
6
|
import '../../chunk-QVLQPW3O.mjs';
|
|
9
7
|
import '../../chunk-ZDQ5AP26.mjs';
|
|
10
8
|
import '../../chunk-ZDMOXF3U.mjs';
|
|
@@ -13,4 +11,6 @@ import '../../chunk-NS63SPNN.mjs';
|
|
|
13
11
|
import '../../chunk-AYVHMVKQ.mjs';
|
|
14
12
|
import '../../chunk-QEZUDVTN.mjs';
|
|
15
13
|
import '../../chunk-YUFTHPOE.mjs';
|
|
14
|
+
import '../../chunk-JUKLL5RJ.mjs';
|
|
15
|
+
import '../../chunk-XZ5RG2OG.mjs';
|
|
16
16
|
import '../../chunk-HRQEZUAA.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { g as CheckboxAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { g as CheckboxAttribute } from '../../attributes-CiTjeDGq.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-D3Kg3X94.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 '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { g as CheckboxAttribute } from '../../attributes-Cz3tNPJA.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-Bks5XpQW.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 '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { D as DateAttribute } from '../../attributes-CiTjeDGq.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-D3Kg3X94.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 '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { D as DateAttribute } from '../../attributes-Cz3tNPJA.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-Bks5XpQW.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 '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { N as NumberAttribute } from '../../attributes-CiTjeDGq.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-D3Kg3X94.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 '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { N as NumberAttribute } from '../../attributes-Cz3tNPJA.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-Bks5XpQW.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 { T as TextAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { T as TextAttribute } from '../../attributes-CiTjeDGq.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-D3Kg3X94.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 { T as TextAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { T as TextAttribute } from '../../attributes-Cz3tNPJA.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-Bks5XpQW.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stndrds/schema",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.206",
|
|
4
4
|
"description": "Standard schema definitions and utilities",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
"@standard-schema/spec": "^1.1.0",
|
|
121
121
|
"libphonenumber-js": "^1.12.31",
|
|
122
122
|
"zod": "^4.2.1",
|
|
123
|
-
"@stndrds/constants": "1.0.0-alpha.
|
|
123
|
+
"@stndrds/constants": "1.0.0-alpha.206"
|
|
124
124
|
},
|
|
125
125
|
"devDependencies": {
|
|
126
126
|
"@types/node": "^25.0.3",
|
|
@@ -2,8 +2,6 @@ import { createCheckboxValidator } from './chunk-OSSGN43B.mjs';
|
|
|
2
2
|
import { createDateValidator } from './chunk-6I2R22CX.mjs';
|
|
3
3
|
import { createNumberValidator } from './chunk-UANQJ2GH.mjs';
|
|
4
4
|
import { createTextValidator } from './chunk-NOMHDOVE.mjs';
|
|
5
|
-
import { createPhoneValidator } from './chunk-JUKLL5RJ.mjs';
|
|
6
|
-
import { createRelationValidator } from './chunk-XZ5RG2OG.mjs';
|
|
7
5
|
import { createRichtextValidator } from './chunk-QVLQPW3O.mjs';
|
|
8
6
|
import { createMultiselectValidator, createSelectValidator, createStatusValidator } from './chunk-ZDQ5AP26.mjs';
|
|
9
7
|
import { createUserValidator } from './chunk-ZDMOXF3U.mjs';
|
|
@@ -12,6 +10,8 @@ import { createRollupValidator } from './chunk-NS63SPNN.mjs';
|
|
|
12
10
|
import { createCurrencyValidator } from './chunk-AYVHMVKQ.mjs';
|
|
13
11
|
import { createFileValidator } from './chunk-QEZUDVTN.mjs';
|
|
14
12
|
import { createLocationValidator } from './chunk-YUFTHPOE.mjs';
|
|
13
|
+
import { createPhoneValidator } from './chunk-JUKLL5RJ.mjs';
|
|
14
|
+
import { createRelationValidator } from './chunk-XZ5RG2OG.mjs';
|
|
15
15
|
import { DEFAULT_VALIDATION_MESSAGES, formatZodErrors } from './chunk-HRQEZUAA.mjs';
|
|
16
16
|
import { z } from 'zod';
|
|
17
17
|
|
|
@@ -4,8 +4,6 @@ var chunk5WATIVCA_js = require('./chunk-5WATIVCA.js');
|
|
|
4
4
|
var chunkO44XVGHE_js = require('./chunk-O44XVGHE.js');
|
|
5
5
|
var chunkYIP5FJ5H_js = require('./chunk-YIP5FJ5H.js');
|
|
6
6
|
var chunkSGSGREPG_js = require('./chunk-SGSGREPG.js');
|
|
7
|
-
var chunkEBGRZUIH_js = require('./chunk-EBGRZUIH.js');
|
|
8
|
-
var chunkBV3IUMMW_js = require('./chunk-BV3IUMMW.js');
|
|
9
7
|
var chunkEW5XR2X3_js = require('./chunk-EW5XR2X3.js');
|
|
10
8
|
var chunkQWKLQRBX_js = require('./chunk-QWKLQRBX.js');
|
|
11
9
|
var chunkT6L2MUG2_js = require('./chunk-T6L2MUG2.js');
|
|
@@ -14,6 +12,8 @@ var chunkV2UA2D4E_js = require('./chunk-V2UA2D4E.js');
|
|
|
14
12
|
var chunkACKMC6FL_js = require('./chunk-ACKMC6FL.js');
|
|
15
13
|
var chunkROLWVTU3_js = require('./chunk-ROLWVTU3.js');
|
|
16
14
|
var chunkE6JUYGJX_js = require('./chunk-E6JUYGJX.js');
|
|
15
|
+
var chunkEBGRZUIH_js = require('./chunk-EBGRZUIH.js');
|
|
16
|
+
var chunkBV3IUMMW_js = require('./chunk-BV3IUMMW.js');
|
|
17
17
|
var chunkYKWSHBT5_js = require('./chunk-YKWSHBT5.js');
|
|
18
18
|
var zod = require('zod');
|
|
19
19
|
|