@stndrds/schema 1.0.0-alpha.228 → 1.0.0-alpha.230

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.
Files changed (53) hide show
  1. package/dist/{attributes-D6PICHuH.d.mts → attributes-C6pCxr5P.d.mts} +1 -1
  2. package/dist/{attributes-c0_kaRr7.d.ts → attributes-DZIol94T.d.ts} +1 -1
  3. package/dist/{helpers-D5Vsw5Ps.d.ts → helpers-B3EPtA8t.d.ts} +2 -2
  4. package/dist/{helpers-8AfBPkSS.d.mts → helpers-Ca3PIt9O.d.mts} +2 -2
  5. package/dist/index.d.mts +4 -4
  6. package/dist/index.d.ts +4 -4
  7. package/dist/index.js +71 -71
  8. package/dist/index.mjs +4 -4
  9. package/dist/{types-D6oD2MXG.d.ts → types-CBV2_ikK.d.ts} +1 -1
  10. package/dist/{types-OTEsO6Ho.d.mts → types-DjGoodOL.d.mts} +1 -1
  11. package/dist/validation/all.d.mts +3 -3
  12. package/dist/validation/all.d.ts +3 -3
  13. package/dist/validation/all.js +10 -10
  14. package/dist/validation/all.mjs +3 -3
  15. package/dist/validation/complex/currency.d.mts +2 -2
  16. package/dist/validation/complex/currency.d.ts +2 -2
  17. package/dist/validation/complex/file.d.mts +2 -2
  18. package/dist/validation/complex/file.d.ts +2 -2
  19. package/dist/validation/complex/location.d.mts +2 -2
  20. package/dist/validation/complex/location.d.ts +2 -2
  21. package/dist/validation/complex/phone.d.mts +2 -2
  22. package/dist/validation/complex/phone.d.ts +2 -2
  23. package/dist/validation/complex/relation.d.mts +2 -2
  24. package/dist/validation/complex/relation.d.ts +2 -2
  25. package/dist/validation/complex/richtext.d.mts +2 -2
  26. package/dist/validation/complex/richtext.d.ts +2 -2
  27. package/dist/validation/complex/select.d.mts +2 -2
  28. package/dist/validation/complex/select.d.ts +2 -2
  29. package/dist/validation/complex/user.d.mts +2 -2
  30. package/dist/validation/complex/user.d.ts +2 -2
  31. package/dist/validation/computed/formula.d.mts +2 -2
  32. package/dist/validation/computed/formula.d.ts +2 -2
  33. package/dist/validation/computed/rollup.d.mts +2 -2
  34. package/dist/validation/computed/rollup.d.ts +2 -2
  35. package/dist/validation/config/index.d.mts +1 -1
  36. package/dist/validation/config/index.d.ts +1 -1
  37. package/dist/validation/core/index.d.mts +3 -3
  38. package/dist/validation/core/index.d.ts +3 -3
  39. package/dist/validation/object/index.d.mts +3 -3
  40. package/dist/validation/object/index.d.ts +3 -3
  41. package/dist/validation/object/index.js +16 -16
  42. package/dist/validation/object/index.mjs +3 -3
  43. package/dist/validation/primitives/checkbox.d.mts +2 -2
  44. package/dist/validation/primitives/checkbox.d.ts +2 -2
  45. package/dist/validation/primitives/date.d.mts +2 -2
  46. package/dist/validation/primitives/date.d.ts +2 -2
  47. package/dist/validation/primitives/number.d.mts +2 -2
  48. package/dist/validation/primitives/number.d.ts +2 -2
  49. package/dist/validation/primitives/text.d.mts +2 -2
  50. package/dist/validation/primitives/text.d.ts +2 -2
  51. package/package.json +2 -2
  52. package/dist/{chunk-PWBKZKLY.mjs → chunk-6CTUPVHH.mjs} +2 -2
  53. package/dist/{chunk-WVYBALNG.js → chunk-MUGKKCY3.js} +2 -2
@@ -963,4 +963,4 @@ declare function isAttributeSortable(attr: {
963
963
  type: AttributeType;
964
964
  }): boolean;
965
965
 
966
- export { type ComputedFormulaBinaryNode as $, type Attribute as A, type Option as B, type CurrencyAttribute as C, type DateAttribute as D, type FormulaReturnType as E, type FormulaAttribute as F, type BilateralConfig as G, type RelationTarget as H, type RollupFunction as I, type UserReferenceType as J, type MigrationDefinition as K, type LocationAttribute as L, type MultiRelationAttribute as M, type NumberAttribute as N, type ObjectDefinition as O, type PhoneAttribute as P, AUTOFILL_ELIGIBLE_TYPES as Q, type RollupAttribute as R, type SingleRelationAttribute as S, type TextAttribute as T, type UserAttribute as U, type AttributeGroup as V, type AutofillEligibleType as W, type BaseAttribute as X, type BuiltInTransform as Y, type ComputedAttributeState as Z, type ComputedFieldKind as _, type FileAttribute as a, type ComputedFormulaBinaryOperator as a0, type ComputedFormulaCallNode as a1, type ComputedFormulaLiteralNode as a2, ComputedFormulaParseError as a3, type ComputedFormulaPathNode as a4, type ComputedStateStatus as a5, type CreateDocument as a6, type CreateDocumentLink as a7, type CreateDocumentSlot as a8, DEFAULT_DOCUMENT_SLOT as a9, type SlotStatus as aA, type StatusGroup as aB, type SystemFieldName as aC, type UpdateDocument as aD, type UpdateDocumentSlot as aE, hasOptions as aF, inferInverseCardinality as aG, isAttributeSortable as aH, isBilateralRelation as aI, isUniversalRelation as aJ, parseComputedFormula as aK, resolvePropertyDefinitions as aL, type DateFormat as aa, type DateValue as ab, type Document as ac, type DocumentKind as ad, type DocumentLayoutVariant as ae, type DocumentListOptions as af, type DocumentSlot as ag, type DocumentWithSlots as ah, type DocumentWithSubCount as ai, type FolderPreset as aj, MAX_PRESET_DEPTH as ak, type NumberUnit as al, type ObjectAttribute as am, type ObjectRecord as an, type OptionPropertyAttribute as ao, type PresetNode as ap, type PropertyAttribute as aq, type PropertyType as ar, RELATION_TARGET_ANY as as, RESERVED_ATTRIBUTE_NAMES as at, RESERVED_OBJECT_NAMES as au, type RecordDocuments as av, type ReservedAttributeName as aw, type ReservedObjectName as ax, type RichTextAttribute as ay, SYSTEM_FIELD_NAMES as az, type RelationAttribute as b, type RichtextAttribute as c, type MultiselectAttribute as d, type SelectAttribute as e, type StatusAttribute 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 AutofillConfig as z };
966
+ export { type ComputedFormulaBinaryNode as $, type Attribute as A, type Option as B, type CurrencyAttribute as C, type DateAttribute as D, type FormulaReturnType as E, type FileAttribute as F, type BilateralConfig as G, type RelationTarget as H, type RollupFunction as I, type UserReferenceType as J, type MigrationDefinition as K, type LocationAttribute as L, type MultiRelationAttribute as M, type NumberAttribute as N, type ObjectDefinition as O, type PhoneAttribute as P, AUTOFILL_ELIGIBLE_TYPES as Q, type RelationAttribute as R, type SingleRelationAttribute as S, type TextAttribute as T, type UserAttribute as U, type AttributeGroup as V, type AutofillEligibleType as W, type BaseAttribute as X, type BuiltInTransform as Y, type ComputedAttributeState as Z, type ComputedFieldKind as _, type RichtextAttribute as a, type ComputedFormulaBinaryOperator as a0, type ComputedFormulaCallNode as a1, type ComputedFormulaLiteralNode as a2, ComputedFormulaParseError as a3, type ComputedFormulaPathNode as a4, type ComputedStateStatus as a5, type CreateDocument as a6, type CreateDocumentLink as a7, type CreateDocumentSlot as a8, DEFAULT_DOCUMENT_SLOT as a9, type SlotStatus as aA, type StatusGroup as aB, type SystemFieldName as aC, type UpdateDocument as aD, type UpdateDocumentSlot as aE, hasOptions as aF, inferInverseCardinality as aG, isAttributeSortable as aH, isBilateralRelation as aI, isUniversalRelation as aJ, parseComputedFormula as aK, resolvePropertyDefinitions as aL, type DateFormat as aa, type DateValue as ab, type Document as ac, type DocumentKind as ad, type DocumentLayoutVariant as ae, type DocumentListOptions as af, type DocumentSlot as ag, type DocumentWithSlots as ah, type DocumentWithSubCount as ai, type FolderPreset as aj, MAX_PRESET_DEPTH as ak, type NumberUnit as al, type ObjectAttribute as am, type ObjectRecord as an, type OptionPropertyAttribute as ao, type PresetNode as ap, type PropertyAttribute as aq, type PropertyType as ar, RELATION_TARGET_ANY as as, RESERVED_ATTRIBUTE_NAMES as at, RESERVED_OBJECT_NAMES as au, type RecordDocuments as av, type ReservedAttributeName as aw, type ReservedObjectName as ax, type RichTextAttribute as ay, SYSTEM_FIELD_NAMES 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 AutofillConfig as z };
@@ -963,4 +963,4 @@ declare function isAttributeSortable(attr: {
963
963
  type: AttributeType;
964
964
  }): boolean;
965
965
 
966
- export { type ComputedFormulaBinaryNode as $, type Attribute as A, type Option as B, type CurrencyAttribute as C, type DateAttribute as D, type FormulaReturnType as E, type FormulaAttribute as F, type BilateralConfig as G, type RelationTarget as H, type RollupFunction as I, type UserReferenceType as J, type MigrationDefinition as K, type LocationAttribute as L, type MultiRelationAttribute as M, type NumberAttribute as N, type ObjectDefinition as O, type PhoneAttribute as P, AUTOFILL_ELIGIBLE_TYPES as Q, type RollupAttribute as R, type SingleRelationAttribute as S, type TextAttribute as T, type UserAttribute as U, type AttributeGroup as V, type AutofillEligibleType as W, type BaseAttribute as X, type BuiltInTransform as Y, type ComputedAttributeState as Z, type ComputedFieldKind as _, type FileAttribute as a, type ComputedFormulaBinaryOperator as a0, type ComputedFormulaCallNode as a1, type ComputedFormulaLiteralNode as a2, ComputedFormulaParseError as a3, type ComputedFormulaPathNode as a4, type ComputedStateStatus as a5, type CreateDocument as a6, type CreateDocumentLink as a7, type CreateDocumentSlot as a8, DEFAULT_DOCUMENT_SLOT as a9, type SlotStatus as aA, type StatusGroup as aB, type SystemFieldName as aC, type UpdateDocument as aD, type UpdateDocumentSlot as aE, hasOptions as aF, inferInverseCardinality as aG, isAttributeSortable as aH, isBilateralRelation as aI, isUniversalRelation as aJ, parseComputedFormula as aK, resolvePropertyDefinitions as aL, type DateFormat as aa, type DateValue as ab, type Document as ac, type DocumentKind as ad, type DocumentLayoutVariant as ae, type DocumentListOptions as af, type DocumentSlot as ag, type DocumentWithSlots as ah, type DocumentWithSubCount as ai, type FolderPreset as aj, MAX_PRESET_DEPTH as ak, type NumberUnit as al, type ObjectAttribute as am, type ObjectRecord as an, type OptionPropertyAttribute as ao, type PresetNode as ap, type PropertyAttribute as aq, type PropertyType as ar, RELATION_TARGET_ANY as as, RESERVED_ATTRIBUTE_NAMES as at, RESERVED_OBJECT_NAMES as au, type RecordDocuments as av, type ReservedAttributeName as aw, type ReservedObjectName as ax, type RichTextAttribute as ay, SYSTEM_FIELD_NAMES as az, type RelationAttribute as b, type RichtextAttribute as c, type MultiselectAttribute as d, type SelectAttribute as e, type StatusAttribute 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 AutofillConfig as z };
966
+ export { type ComputedFormulaBinaryNode as $, type Attribute as A, type Option as B, type CurrencyAttribute as C, type DateAttribute as D, type FormulaReturnType as E, type FileAttribute as F, type BilateralConfig as G, type RelationTarget as H, type RollupFunction as I, type UserReferenceType as J, type MigrationDefinition as K, type LocationAttribute as L, type MultiRelationAttribute as M, type NumberAttribute as N, type ObjectDefinition as O, type PhoneAttribute as P, AUTOFILL_ELIGIBLE_TYPES as Q, type RelationAttribute as R, type SingleRelationAttribute as S, type TextAttribute as T, type UserAttribute as U, type AttributeGroup as V, type AutofillEligibleType as W, type BaseAttribute as X, type BuiltInTransform as Y, type ComputedAttributeState as Z, type ComputedFieldKind as _, type RichtextAttribute as a, type ComputedFormulaBinaryOperator as a0, type ComputedFormulaCallNode as a1, type ComputedFormulaLiteralNode as a2, ComputedFormulaParseError as a3, type ComputedFormulaPathNode as a4, type ComputedStateStatus as a5, type CreateDocument as a6, type CreateDocumentLink as a7, type CreateDocumentSlot as a8, DEFAULT_DOCUMENT_SLOT as a9, type SlotStatus as aA, type StatusGroup as aB, type SystemFieldName as aC, type UpdateDocument as aD, type UpdateDocumentSlot as aE, hasOptions as aF, inferInverseCardinality as aG, isAttributeSortable as aH, isBilateralRelation as aI, isUniversalRelation as aJ, parseComputedFormula as aK, resolvePropertyDefinitions as aL, type DateFormat as aa, type DateValue as ab, type Document as ac, type DocumentKind as ad, type DocumentLayoutVariant as ae, type DocumentListOptions as af, type DocumentSlot as ag, type DocumentWithSlots as ah, type DocumentWithSubCount as ai, type FolderPreset as aj, MAX_PRESET_DEPTH as ak, type NumberUnit as al, type ObjectAttribute as am, type ObjectRecord as an, type OptionPropertyAttribute as ao, type PresetNode as ap, type PropertyAttribute as aq, type PropertyType as ar, RELATION_TARGET_ANY as as, RESERVED_ATTRIBUTE_NAMES as at, RESERVED_OBJECT_NAMES as au, type RecordDocuments as av, type ReservedAttributeName as aw, type ReservedObjectName as ax, type RichTextAttribute as ay, SYSTEM_FIELD_NAMES 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 AutofillConfig 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-c0_kaRr7.js';
3
- import { V as ValidationMessages, a as ValidationResult } from './types-D6oD2MXG.js';
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-D6PICHuH.mjs';
3
- import { V as ValidationMessages, a as ValidationResult } from './types-OTEsO6Ho.mjs';
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, R 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, F as FormulaAttribute, u as DocumentAttribute, f as StatusAttribute, e as SelectAttribute, d 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, a as FileAttribute, E as FormulaReturnType, b as RelationAttribute, G as BilateralConfig, S as SingleRelationAttribute, M as MultiRelationAttribute, H as RelationTarget, c as RichtextAttribute, I as RollupFunction, J as UserReferenceType, K as MigrationDefinition, O as ObjectDefinition } from './attributes-D6PICHuH.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-D6PICHuH.mjs';
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-OTEsO6Ho.mjs';
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-8AfBPkSS.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-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, R 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, F as FormulaAttribute, u as DocumentAttribute, f as StatusAttribute, e as SelectAttribute, d 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, a as FileAttribute, E as FormulaReturnType, b as RelationAttribute, G as BilateralConfig, S as SingleRelationAttribute, M as MultiRelationAttribute, H as RelationTarget, c as RichtextAttribute, I as RollupFunction, J as UserReferenceType, K as MigrationDefinition, O as ObjectDefinition } from './attributes-c0_kaRr7.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-c0_kaRr7.js';
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-D6oD2MXG.js';
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-D5Vsw5Ps.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-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
@@ -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 chunkWVYBALNG_js = require('./chunk-WVYBALNG.js');
6
+ var chunkMUGKKCY3_js = require('./chunk-MUGKKCY3.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-EEH4XQ7W.js');
13
11
  require('./chunk-EW5XR2X3.js');
14
12
  require('./chunk-QWKLQRBX.js');
15
13
  require('./chunk-KNGWHQLR.js');
@@ -18,6 +16,8 @@ require('./chunk-V2UA2D4E.js');
18
16
  require('./chunk-ACKMC6FL.js');
19
17
  require('./chunk-Q5DIOYUE.js');
20
18
  require('./chunk-E6JUYGJX.js');
19
+ var chunkEBGRZUIH_js = require('./chunk-EBGRZUIH.js');
20
+ require('./chunk-EEH4XQ7W.js');
21
21
  var chunkYKWSHBT5_js = require('./chunk-YKWSHBT5.js');
22
22
  var constants = require('@stndrds/constants');
23
23
  var z3 = require('zod');
@@ -1346,7 +1346,7 @@ var BaseAttributeBuilder = class {
1346
1346
  * @see https://standardschema.dev/
1347
1347
  */
1348
1348
  get "~standard"() {
1349
- const zodSchema = chunkWVYBALNG_js.createAttributeValidator(this.build());
1349
+ const zodSchema = chunkMUGKKCY3_js.createAttributeValidator(this.build());
1350
1350
  return createStandardSchemaProps(zodSchema);
1351
1351
  }
1352
1352
  constructor(type, name, label) {
@@ -2119,9 +2119,9 @@ var RollupAttributeBuilder = class extends BaseAttributeBuilder {
2119
2119
  if (fn === "original" && targetType !== void 0 && targetType !== "select" && targetType !== "status" && targetType !== "multiselect") {
2120
2120
  const relation2 = this.attr.relationAttribute ?? "relation";
2121
2121
  const target = this.attr.targetAttribute ?? "field";
2122
- throw new chunkWVYBALNG_js.SchemaError(
2122
+ throw new chunkMUGKKCY3_js.SchemaError(
2123
2123
  `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}").`,
2124
- chunkWVYBALNG_js.SchemaErrorCode.VALIDATION_FAILED
2124
+ chunkMUGKKCY3_js.SchemaErrorCode.VALIDATION_FAILED
2125
2125
  );
2126
2126
  }
2127
2127
  return super.build();
@@ -2617,7 +2617,7 @@ var ObjectBuilder = class {
2617
2617
  * @see https://standardschema.dev/
2618
2618
  */
2619
2619
  get "~standard"() {
2620
- const zodSchema = chunkWVYBALNG_js.createObjectValidator(this.build());
2620
+ const zodSchema = chunkMUGKKCY3_js.createObjectValidator(this.build());
2621
2621
  return createStandardSchemaProps(zodSchema);
2622
2622
  }
2623
2623
  /**
@@ -2831,26 +2831,26 @@ var ObjectBuilder = class {
2831
2831
  throw new Error("[ObjectBuilder] Missing required field: label");
2832
2832
  }
2833
2833
  if (!this._labelExpression) {
2834
- throw new chunkWVYBALNG_js.SchemaError(
2834
+ throw new chunkMUGKKCY3_js.SchemaError(
2835
2835
  `Object "${this.obj.name}" must have a labelExpression. The labelExpression defines how records are displayed in lists and relations (e.g. "{{ name }}").`,
2836
- chunkWVYBALNG_js.SchemaErrorCode.VALIDATION_FAILED
2836
+ chunkMUGKKCY3_js.SchemaErrorCode.VALIDATION_FAILED
2837
2837
  );
2838
2838
  }
2839
2839
  const labelResult = labelExpressionSchema.safeParse(this._labelExpression);
2840
2840
  if (!labelResult.success) {
2841
2841
  const errorMsg = labelResult.error.issues[0]?.message ?? "Invalid labelExpression";
2842
- throw new chunkWVYBALNG_js.SchemaError(
2842
+ throw new chunkMUGKKCY3_js.SchemaError(
2843
2843
  `Invalid labelExpression for "${this.obj.name}": ${errorMsg}`,
2844
- chunkWVYBALNG_js.SchemaErrorCode.VALIDATION_FAILED
2844
+ chunkMUGKKCY3_js.SchemaErrorCode.VALIDATION_FAILED
2845
2845
  );
2846
2846
  }
2847
2847
  if (this._embeddingExpression !== void 0) {
2848
2848
  const embeddingResult = labelExpressionSchema.safeParse(this._embeddingExpression);
2849
2849
  if (!embeddingResult.success) {
2850
2850
  const errorMsg = embeddingResult.error.issues[0]?.message ?? "Invalid embeddingExpression";
2851
- throw new chunkWVYBALNG_js.SchemaError(
2851
+ throw new chunkMUGKKCY3_js.SchemaError(
2852
2852
  `Invalid embeddingExpression for "${this.obj.name}": ${errorMsg}`,
2853
- chunkWVYBALNG_js.SchemaErrorCode.VALIDATION_FAILED
2853
+ chunkMUGKKCY3_js.SchemaErrorCode.VALIDATION_FAILED
2854
2854
  );
2855
2855
  }
2856
2856
  }
@@ -2891,7 +2891,7 @@ var ObjectBuilder = class {
2891
2891
  objectNameSchema.parse(name);
2892
2892
  } catch (error) {
2893
2893
  if (error instanceof z3__default.default.ZodError) {
2894
- throw new chunkWVYBALNG_js.SchemaError(error.issues[0].message, chunkWVYBALNG_js.SchemaErrorCode.INVALID_OBJECT_NAME);
2894
+ throw new chunkMUGKKCY3_js.SchemaError(error.issues[0].message, chunkMUGKKCY3_js.SchemaErrorCode.INVALID_OBJECT_NAME);
2895
2895
  }
2896
2896
  throw error;
2897
2897
  }
@@ -2902,7 +2902,7 @@ function object(config) {
2902
2902
  }
2903
2903
  function validatePresetStructure(presetId, nodes, depth) {
2904
2904
  const fail = (message, detail) => {
2905
- throw new chunkWVYBALNG_js.ValidationError(message, [
2905
+ throw new chunkMUGKKCY3_js.ValidationError(message, [
2906
2906
  { path: ["documentLayout", "presets", presetId], message: detail }
2907
2907
  ]);
2908
2908
  };
@@ -6901,7 +6901,7 @@ function assertOperatorForType(operator, type, context) {
6901
6901
  if (!ops?.includes(operator)) {
6902
6902
  const validList = ops?.length ? ops.join(", ") : "(no operators registered for this type)";
6903
6903
  const summary = `Operator "${operator}" is not valid for ${context} type "${type}". Valid operators: ${validList}.`;
6904
- throw new chunkWVYBALNG_js.ValidationError(summary, [
6904
+ throw new chunkMUGKKCY3_js.ValidationError(summary, [
6905
6905
  {
6906
6906
  path: ["operator"],
6907
6907
  message: summary
@@ -6917,7 +6917,7 @@ function assertRelativeDateValue(rule) {
6917
6917
  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);
6918
6918
  if (!valid) {
6919
6919
  const m = `Operator "is_within" requires a relative-date value { amount: positive number, unit: days|weeks|months|years, direction: past|future }`;
6920
- throw new chunkWVYBALNG_js.ValidationError(m, [{ path: ["value"], message: m }]);
6920
+ throw new chunkMUGKKCY3_js.ValidationError(m, [{ path: ["value"], message: m }]);
6921
6921
  }
6922
6922
  }
6923
6923
  function assertDynamicValueForAttribute(rule, attrType) {
@@ -6925,34 +6925,34 @@ function assertDynamicValueForAttribute(rule, attrType) {
6925
6925
  const v = rule.value;
6926
6926
  if (v.dynamic === "actor" && attrType !== "user") {
6927
6927
  const m = `actor token (@me) is only valid on user attributes, not "${attrType}"`;
6928
- throw new chunkWVYBALNG_js.ValidationError(m, [{ path: ["value"], message: m }]);
6928
+ throw new chunkMUGKKCY3_js.ValidationError(m, [{ path: ["value"], message: m }]);
6929
6929
  }
6930
6930
  if (v.dynamic === "date" && attrType !== "date") {
6931
6931
  const m = `date token (@today/@now) is only valid on date attributes, not "${attrType}"`;
6932
- throw new chunkWVYBALNG_js.ValidationError(m, [{ path: ["value"], message: m }]);
6932
+ throw new chunkMUGKKCY3_js.ValidationError(m, [{ path: ["value"], message: m }]);
6933
6933
  }
6934
6934
  }
6935
6935
  function validateQualifiedRule(rule, context) {
6936
6936
  const rootAttr = context.attributes.find((a) => a.name === rule.attribute);
6937
6937
  const systemOps = SYSTEM_FILTER_OPERATORS[rule.attribute];
6938
6938
  if (!(rootAttr || systemOps)) {
6939
- throw new chunkWVYBALNG_js.ValidationError(`Unknown attribute: ${rule.attribute}`, [
6939
+ throw new chunkMUGKKCY3_js.ValidationError(`Unknown attribute: ${rule.attribute}`, [
6940
6940
  { path: ["attribute"], message: `Unknown attribute: ${rule.attribute}` }
6941
6941
  ]);
6942
6942
  }
6943
6943
  if (rule.quantifier !== void 0 && !rule.property) {
6944
6944
  const m = `quantifier is only valid on qualified edge rules (set "property")`;
6945
- throw new chunkWVYBALNG_js.ValidationError(m, [{ path: ["quantifier"], message: m }]);
6945
+ throw new chunkMUGKKCY3_js.ValidationError(m, [{ path: ["quantifier"], message: m }]);
6946
6946
  }
6947
6947
  if (!rootAttr) {
6948
6948
  if (rule.property) {
6949
- throw new chunkWVYBALNG_js.ValidationError(`Cannot qualify system attribute "${rule.attribute}"`, [
6949
+ throw new chunkMUGKKCY3_js.ValidationError(`Cannot qualify system attribute "${rule.attribute}"`, [
6950
6950
  { path: ["property"], message: `"${rule.attribute}" is a system column, not a reference` }
6951
6951
  ]);
6952
6952
  }
6953
6953
  if (!systemOps.includes(rule.operator)) {
6954
6954
  const summary = `Operator "${rule.operator}" is not valid for system attribute "${rule.attribute}". Valid operators: ${systemOps.join(", ")}.`;
6955
- throw new chunkWVYBALNG_js.ValidationError(summary, [{ path: ["operator"], message: summary }]);
6955
+ throw new chunkMUGKKCY3_js.ValidationError(summary, [{ path: ["operator"], message: summary }]);
6956
6956
  }
6957
6957
  assertRelativeDateValue(rule);
6958
6958
  return;
@@ -6963,25 +6963,25 @@ function validateQualifiedRule(rule, context) {
6963
6963
  if (!ops.includes(rule.operator)) {
6964
6964
  const validList = ops.length ? ops.join(", ") : "(not filterable)";
6965
6965
  const summary = `Operator "${rule.operator}" is not valid for attribute "${rootAttr.name}". Valid operators: ${validList}.`;
6966
- throw new chunkWVYBALNG_js.ValidationError(summary, [{ path: ["operator"], message: summary }]);
6966
+ throw new chunkMUGKKCY3_js.ValidationError(summary, [{ path: ["operator"], message: summary }]);
6967
6967
  }
6968
6968
  assertRelativeDateValue(rule);
6969
6969
  return;
6970
6970
  }
6971
6971
  if (!REFERENCE_TYPES.has(rootAttr.type)) {
6972
- throw new chunkWVYBALNG_js.ValidationError(`Cannot qualify ${rootAttr.type} attribute "${rule.attribute}"`, [
6972
+ throw new chunkMUGKKCY3_js.ValidationError(`Cannot qualify ${rootAttr.type} attribute "${rule.attribute}"`, [
6973
6973
  { path: ["property"], message: `Attribute "${rule.attribute}" is not a reference type` }
6974
6974
  ]);
6975
6975
  }
6976
6976
  const propSchema = rootAttr.properties;
6977
6977
  if (!propSchema) {
6978
- throw new chunkWVYBALNG_js.ValidationError(`Attribute "${rule.attribute}" has no qualifyWith schema`, [
6978
+ throw new chunkMUGKKCY3_js.ValidationError(`Attribute "${rule.attribute}" has no qualifyWith schema`, [
6979
6979
  { path: ["property"], message: `"${rule.attribute}" has no qualifyWith` }
6980
6980
  ]);
6981
6981
  }
6982
6982
  const propDef = propSchema.definitions.find((p) => p.name === rule.property);
6983
6983
  if (!propDef) {
6984
- throw new chunkWVYBALNG_js.ValidationError(
6984
+ throw new chunkMUGKKCY3_js.ValidationError(
6985
6985
  `Property "${rule.property}" not defined on "${rule.attribute}".qualifyWith()`,
6986
6986
  [{ path: ["property"], message: `Unknown property: ${rule.property}` }]
6987
6987
  );
@@ -7024,179 +7024,179 @@ Object.defineProperty(exports, "parseComputedFormula", {
7024
7024
  });
7025
7025
  Object.defineProperty(exports, "AccessDeniedError", {
7026
7026
  enumerable: true,
7027
- get: function () { return chunkWVYBALNG_js.AccessDeniedError; }
7027
+ get: function () { return chunkMUGKKCY3_js.AccessDeniedError; }
7028
7028
  });
7029
7029
  Object.defineProperty(exports, "AttributeInUseError", {
7030
7030
  enumerable: true,
7031
- get: function () { return chunkWVYBALNG_js.AttributeInUseError; }
7031
+ get: function () { return chunkMUGKKCY3_js.AttributeInUseError; }
7032
7032
  });
7033
7033
  Object.defineProperty(exports, "AttributeNotFoundError", {
7034
7034
  enumerable: true,
7035
- get: function () { return chunkWVYBALNG_js.AttributeNotFoundError; }
7035
+ get: function () { return chunkMUGKKCY3_js.AttributeNotFoundError; }
7036
7036
  });
7037
7037
  Object.defineProperty(exports, "ChangeTypeNotSupportedError", {
7038
7038
  enumerable: true,
7039
- get: function () { return chunkWVYBALNG_js.ChangeTypeNotSupportedError; }
7039
+ get: function () { return chunkMUGKKCY3_js.ChangeTypeNotSupportedError; }
7040
7040
  });
7041
7041
  Object.defineProperty(exports, "ConcurrentModificationError", {
7042
7042
  enumerable: true,
7043
- get: function () { return chunkWVYBALNG_js.ConcurrentModificationError; }
7043
+ get: function () { return chunkMUGKKCY3_js.ConcurrentModificationError; }
7044
7044
  });
7045
7045
  Object.defineProperty(exports, "DestructiveSyncNotAllowedError", {
7046
7046
  enumerable: true,
7047
- get: function () { return chunkWVYBALNG_js.DestructiveSyncNotAllowedError; }
7047
+ get: function () { return chunkMUGKKCY3_js.DestructiveSyncNotAllowedError; }
7048
7048
  });
7049
7049
  Object.defineProperty(exports, "DuplicateError", {
7050
7050
  enumerable: true,
7051
- get: function () { return chunkWVYBALNG_js.DuplicateError; }
7051
+ get: function () { return chunkMUGKKCY3_js.DuplicateError; }
7052
7052
  });
7053
7053
  Object.defineProperty(exports, "ForbiddenError", {
7054
7054
  enumerable: true,
7055
- get: function () { return chunkWVYBALNG_js.ForbiddenError; }
7055
+ get: function () { return chunkMUGKKCY3_js.ForbiddenError; }
7056
7056
  });
7057
7057
  Object.defineProperty(exports, "MemoryNotFoundError", {
7058
7058
  enumerable: true,
7059
- get: function () { return chunkWVYBALNG_js.MemoryNotFoundError; }
7059
+ get: function () { return chunkMUGKKCY3_js.MemoryNotFoundError; }
7060
7060
  });
7061
7061
  Object.defineProperty(exports, "MigrationTimeoutError", {
7062
7062
  enumerable: true,
7063
- get: function () { return chunkWVYBALNG_js.MigrationTimeoutError; }
7063
+ get: function () { return chunkMUGKKCY3_js.MigrationTimeoutError; }
7064
7064
  });
7065
7065
  Object.defineProperty(exports, "NotFoundError", {
7066
7066
  enumerable: true,
7067
- get: function () { return chunkWVYBALNG_js.NotFoundError; }
7067
+ get: function () { return chunkMUGKKCY3_js.NotFoundError; }
7068
7068
  });
7069
7069
  Object.defineProperty(exports, "NotImplementedError", {
7070
7070
  enumerable: true,
7071
- get: function () { return chunkWVYBALNG_js.NotImplementedError; }
7071
+ get: function () { return chunkMUGKKCY3_js.NotImplementedError; }
7072
7072
  });
7073
7073
  Object.defineProperty(exports, "ObjectNotFoundError", {
7074
7074
  enumerable: true,
7075
- get: function () { return chunkWVYBALNG_js.ObjectNotFoundError; }
7075
+ get: function () { return chunkMUGKKCY3_js.ObjectNotFoundError; }
7076
7076
  });
7077
7077
  Object.defineProperty(exports, "ObjectReferencedError", {
7078
7078
  enumerable: true,
7079
- get: function () { return chunkWVYBALNG_js.ObjectReferencedError; }
7079
+ get: function () { return chunkMUGKKCY3_js.ObjectReferencedError; }
7080
7080
  });
7081
7081
  Object.defineProperty(exports, "OrphanSystemAttributeError", {
7082
7082
  enumerable: true,
7083
- get: function () { return chunkWVYBALNG_js.OrphanSystemAttributeError; }
7083
+ get: function () { return chunkMUGKKCY3_js.OrphanSystemAttributeError; }
7084
7084
  });
7085
7085
  Object.defineProperty(exports, "ProtectedResourceError", {
7086
7086
  enumerable: true,
7087
- get: function () { return chunkWVYBALNG_js.ProtectedResourceError; }
7087
+ get: function () { return chunkMUGKKCY3_js.ProtectedResourceError; }
7088
7088
  });
7089
7089
  Object.defineProperty(exports, "ProtectedRoleError", {
7090
7090
  enumerable: true,
7091
- get: function () { return chunkWVYBALNG_js.ProtectedRoleError; }
7091
+ get: function () { return chunkMUGKKCY3_js.ProtectedRoleError; }
7092
7092
  });
7093
7093
  Object.defineProperty(exports, "RecordNotFoundError", {
7094
7094
  enumerable: true,
7095
- get: function () { return chunkWVYBALNG_js.RecordNotFoundError; }
7095
+ get: function () { return chunkMUGKKCY3_js.RecordNotFoundError; }
7096
7096
  });
7097
7097
  Object.defineProperty(exports, "RecordReferencedError", {
7098
7098
  enumerable: true,
7099
- get: function () { return chunkWVYBALNG_js.RecordReferencedError; }
7099
+ get: function () { return chunkMUGKKCY3_js.RecordReferencedError; }
7100
7100
  });
7101
7101
  Object.defineProperty(exports, "RepositoryError", {
7102
7102
  enumerable: true,
7103
- get: function () { return chunkWVYBALNG_js.RepositoryError; }
7103
+ get: function () { return chunkMUGKKCY3_js.RepositoryError; }
7104
7104
  });
7105
7105
  Object.defineProperty(exports, "RoleNotFoundError", {
7106
7106
  enumerable: true,
7107
- get: function () { return chunkWVYBALNG_js.RoleNotFoundError; }
7107
+ get: function () { return chunkMUGKKCY3_js.RoleNotFoundError; }
7108
7108
  });
7109
7109
  Object.defineProperty(exports, "SchemaError", {
7110
7110
  enumerable: true,
7111
- get: function () { return chunkWVYBALNG_js.SchemaError; }
7111
+ get: function () { return chunkMUGKKCY3_js.SchemaError; }
7112
7112
  });
7113
7113
  Object.defineProperty(exports, "SchemaErrorCode", {
7114
7114
  enumerable: true,
7115
- get: function () { return chunkWVYBALNG_js.SchemaErrorCode; }
7115
+ get: function () { return chunkMUGKKCY3_js.SchemaErrorCode; }
7116
7116
  });
7117
7117
  Object.defineProperty(exports, "SearchBackendError", {
7118
7118
  enumerable: true,
7119
- get: function () { return chunkWVYBALNG_js.SearchBackendError; }
7119
+ get: function () { return chunkMUGKKCY3_js.SearchBackendError; }
7120
7120
  });
7121
7121
  Object.defineProperty(exports, "StorageError", {
7122
7122
  enumerable: true,
7123
- get: function () { return chunkWVYBALNG_js.StorageError; }
7123
+ get: function () { return chunkMUGKKCY3_js.StorageError; }
7124
7124
  });
7125
7125
  Object.defineProperty(exports, "SyncCascadeError", {
7126
7126
  enumerable: true,
7127
- get: function () { return chunkWVYBALNG_js.SyncCascadeError; }
7127
+ get: function () { return chunkMUGKKCY3_js.SyncCascadeError; }
7128
7128
  });
7129
7129
  Object.defineProperty(exports, "SyncConflictError", {
7130
7130
  enumerable: true,
7131
- get: function () { return chunkWVYBALNG_js.SyncConflictError; }
7131
+ get: function () { return chunkMUGKKCY3_js.SyncConflictError; }
7132
7132
  });
7133
7133
  Object.defineProperty(exports, "SyncError", {
7134
7134
  enumerable: true,
7135
- get: function () { return chunkWVYBALNG_js.SyncError; }
7135
+ get: function () { return chunkMUGKKCY3_js.SyncError; }
7136
7136
  });
7137
7137
  Object.defineProperty(exports, "SystemEntityImmutableError", {
7138
7138
  enumerable: true,
7139
- get: function () { return chunkWVYBALNG_js.SystemEntityImmutableError; }
7139
+ get: function () { return chunkMUGKKCY3_js.SystemEntityImmutableError; }
7140
7140
  });
7141
7141
  Object.defineProperty(exports, "ValidationError", {
7142
7142
  enumerable: true,
7143
- get: function () { return chunkWVYBALNG_js.ValidationError; }
7143
+ get: function () { return chunkMUGKKCY3_js.ValidationError; }
7144
7144
  });
7145
7145
  Object.defineProperty(exports, "computeRecordStatus", {
7146
7146
  enumerable: true,
7147
- get: function () { return chunkWVYBALNG_js.computeRecordStatus; }
7147
+ get: function () { return chunkMUGKKCY3_js.computeRecordStatus; }
7148
7148
  });
7149
7149
  Object.defineProperty(exports, "createFormAttributeValidator", {
7150
7150
  enumerable: true,
7151
- get: function () { return chunkWVYBALNG_js.createFormAttributeValidator; }
7151
+ get: function () { return chunkMUGKKCY3_js.createFormAttributeValidator; }
7152
7152
  });
7153
7153
  Object.defineProperty(exports, "isAttributeInUseError", {
7154
7154
  enumerable: true,
7155
- get: function () { return chunkWVYBALNG_js.isAttributeInUseError; }
7155
+ get: function () { return chunkMUGKKCY3_js.isAttributeInUseError; }
7156
7156
  });
7157
7157
  Object.defineProperty(exports, "isNotFoundError", {
7158
7158
  enumerable: true,
7159
- get: function () { return chunkWVYBALNG_js.isNotFoundError; }
7159
+ get: function () { return chunkMUGKKCY3_js.isNotFoundError; }
7160
7160
  });
7161
7161
  Object.defineProperty(exports, "isObjectReferencedError", {
7162
7162
  enumerable: true,
7163
- get: function () { return chunkWVYBALNG_js.isObjectReferencedError; }
7163
+ get: function () { return chunkMUGKKCY3_js.isObjectReferencedError; }
7164
7164
  });
7165
7165
  Object.defineProperty(exports, "isProtectedResourceError", {
7166
7166
  enumerable: true,
7167
- get: function () { return chunkWVYBALNG_js.isProtectedResourceError; }
7167
+ get: function () { return chunkMUGKKCY3_js.isProtectedResourceError; }
7168
7168
  });
7169
7169
  Object.defineProperty(exports, "isRecordReferencedError", {
7170
7170
  enumerable: true,
7171
- get: function () { return chunkWVYBALNG_js.isRecordReferencedError; }
7171
+ get: function () { return chunkMUGKKCY3_js.isRecordReferencedError; }
7172
7172
  });
7173
7173
  Object.defineProperty(exports, "isSchemaError", {
7174
7174
  enumerable: true,
7175
- get: function () { return chunkWVYBALNG_js.isSchemaError; }
7175
+ get: function () { return chunkMUGKKCY3_js.isSchemaError; }
7176
7176
  });
7177
7177
  Object.defineProperty(exports, "isValidationError", {
7178
7178
  enumerable: true,
7179
- get: function () { return chunkWVYBALNG_js.isValidationError; }
7179
+ get: function () { return chunkMUGKKCY3_js.isValidationError; }
7180
7180
  });
7181
7181
  Object.defineProperty(exports, "rejectUnknownAttributesOrThrow", {
7182
7182
  enumerable: true,
7183
- get: function () { return chunkWVYBALNG_js.rejectUnknownAttributesOrThrow; }
7183
+ get: function () { return chunkMUGKKCY3_js.rejectUnknownAttributesOrThrow; }
7184
7184
  });
7185
7185
  Object.defineProperty(exports, "validateDraft", {
7186
7186
  enumerable: true,
7187
- get: function () { return chunkWVYBALNG_js.validateDraft; }
7187
+ get: function () { return chunkMUGKKCY3_js.validateDraft; }
7188
7188
  });
7189
7189
  Object.defineProperty(exports, "validateDraftOrThrow", {
7190
7190
  enumerable: true,
7191
- get: function () { return chunkWVYBALNG_js.validateDraftOrThrow; }
7191
+ get: function () { return chunkMUGKKCY3_js.validateDraftOrThrow; }
7192
7192
  });
7193
7193
  Object.defineProperty(exports, "validateObject", {
7194
7194
  enumerable: true,
7195
- get: function () { return chunkWVYBALNG_js.validateObject; }
7195
+ get: function () { return chunkMUGKKCY3_js.validateObject; }
7196
7196
  });
7197
7197
  Object.defineProperty(exports, "validateObjectOrThrow", {
7198
7198
  enumerable: true,
7199
- get: function () { return chunkWVYBALNG_js.validateObjectOrThrow; }
7199
+ get: function () { return chunkMUGKKCY3_js.validateObjectOrThrow; }
7200
7200
  });
7201
7201
  Object.defineProperty(exports, "DEFAULT_VALIDATION_MESSAGES", {
7202
7202
  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, createAttributeValidator, ValidationError } from './chunk-PWBKZKLY.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-PWBKZKLY.mjs';
6
+ import { createObjectValidator, SchemaError, SchemaErrorCode, createAttributeValidator, ValidationError } from './chunk-6CTUPVHH.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-6CTUPVHH.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-GO6LQADH.mjs';
14
12
  import './chunk-QVLQPW3O.mjs';
15
13
  import './chunk-ZDQ5AP26.mjs';
16
14
  import './chunk-LV3FEUKU.mjs';
@@ -19,6 +17,8 @@ import './chunk-NS63SPNN.mjs';
19
17
  import './chunk-AYVHMVKQ.mjs';
20
18
  import './chunk-CI6EGLL6.mjs';
21
19
  import './chunk-YUFTHPOE.mjs';
20
+ import { formatPhoneForDisplay } from './chunk-JUKLL5RJ.mjs';
21
+ import './chunk-GO6LQADH.mjs';
22
22
  export { DEFAULT_VALIDATION_MESSAGES, formatZodErrors } from './chunk-HRQEZUAA.mjs';
23
23
  import { ICONS, SKILL_NAME_MAX_LENGTH, SKILL_DESCRIPTION_MAX_LENGTH, getCountryDisplayNameByIso3 } from '@stndrds/constants';
24
24
  import z3, { z } from 'zod';
@@ -1,4 +1,4 @@
1
- import { A as Attribute } from './attributes-c0_kaRr7.js';
1
+ import { A as Attribute } from './attributes-DZIol94T.js';
2
2
 
3
3
  /**
4
4
  * Validation messages for Zod validators.
@@ -1,4 +1,4 @@
1
- import { A as Attribute } from './attributes-D6PICHuH.mjs';
1
+ import { A as Attribute } from './attributes-C6pCxr5P.mjs';
2
2
 
3
3
  /**
4
4
  * Validation messages for Zod validators.
@@ -1,8 +1,8 @@
1
- export { V as ValidationMessages } from '../types-OTEsO6Ho.mjs';
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-8AfBPkSS.mjs';
5
- import '../attributes-D6PICHuH.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-Ca3PIt9O.mjs';
5
+ import '../attributes-C6pCxr5P.mjs';
6
6
  import '@stndrds/constants';
7
7
  import '../utils.mjs';
8
8
  import 'zod';
@@ -1,8 +1,8 @@
1
- export { V as ValidationMessages } from '../types-D6oD2MXG.js';
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-D5Vsw5Ps.js';
5
- import '../attributes-c0_kaRr7.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-B3EPtA8t.js';
5
+ import '../attributes-DZIol94T.js';
6
6
  import '@stndrds/constants';
7
7
  import '../utils.js';
8
8
  import 'zod';