@stndrds/schema 1.0.0-alpha.233 → 1.0.0-alpha.234

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-B4847Nul.d.ts → attributes-C8AjT2x0.d.ts} +1 -1
  2. package/dist/{attributes-BpMes5H_.d.mts → attributes-ej1MUv6H.d.mts} +1 -1
  3. package/dist/{helpers-DsJff5r-.d.ts → helpers-ChTf56gW.d.ts} +2 -2
  4. package/dist/{helpers-ow7sORSi.d.mts → helpers-CihXtV0s.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 +86 -86
  8. package/dist/index.mjs +8 -8
  9. package/dist/{types-CyxVuV_d.d.mts → types-DrT3ZBoK.d.mts} +1 -1
  10. package/dist/{types-C8nztuFF.d.ts → types-DzZex_aX.d.ts} +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 +17 -17
  14. package/dist/validation/all.mjs +6 -6
  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 +18 -18
  42. package/dist/validation/object/index.mjs +5 -5
  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-6SPNZSXS.js → chunk-5YVX5E7Q.js} +4 -4
  53. package/dist/{chunk-FRWPIJDK.mjs → chunk-SSKDQQHI.mjs} +4 -4
@@ -975,4 +975,4 @@ declare function isAttributeSortable(attr: {
975
975
  type: AttributeType;
976
976
  }): boolean;
977
977
 
978
- export { type ComputedAttributeState as $, type Attribute as A, type AutofillConfig as B, type CurrencyAttribute as C, type DateAttribute as D, type TimeFormat as E, type FileAttribute as F, type Option as G, type FormulaReturnType as H, type BilateralConfig as I, type RelationTarget as J, type RollupFunction as K, type LocationAttribute as L, type MultiRelationAttribute as M, type NumberAttribute as N, type ObjectDefinition as O, type PhoneAttribute as P, type UserReferenceType as Q, type RelationAttribute as R, type SingleRelationAttribute as S, type TextAttribute as T, type UserAttribute as U, type MigrationDefinition as V, AUTOFILL_ELIGIBLE_TYPES as W, type AttributeGroup as X, type AutofillEligibleType as Y, type BaseAttribute as Z, type BuiltInTransform as _, type RichtextAttribute as a, type ComputedFieldKind as a0, type ComputedFormulaBinaryNode as a1, type ComputedFormulaBinaryOperator as a2, type ComputedFormulaCallNode as a3, type ComputedFormulaLiteralNode as a4, ComputedFormulaParseError as a5, type ComputedFormulaPathNode as a6, type ComputedStateStatus as a7, type CreateDocument as a8, type CreateDocumentLink as a9, type RichTextAttribute as aA, SYSTEM_FIELD_NAMES as aB, type SlotStatus as aC, type StatusGroup as aD, type SystemFieldName as aE, type UpdateDocument as aF, type UpdateDocumentSlot as aG, hasOptions as aH, inferInverseCardinality as aI, isAttributeSortable as aJ, isBilateralRelation as aK, isUniversalRelation as aL, parseComputedFormula as aM, resolvePropertyDefinitions as aN, type CreateDocumentSlot as aa, DEFAULT_DOCUMENT_SLOT as ab, type DateFormat as ac, type DateValue as ad, type Document as ae, type DocumentKind as af, type DocumentLayoutVariant as ag, type DocumentListOptions as ah, type DocumentSlot as ai, type DocumentWithSlots as aj, type DocumentWithSubCount as ak, type FolderPreset as al, MAX_PRESET_DEPTH as am, type NumberUnit as an, type ObjectAttribute as ao, type ObjectRecord as ap, type OptionPropertyAttribute as aq, type PresetNode as ar, type PropertyAttribute as as, type PropertyType as at, RELATION_TARGET_ANY as au, RESERVED_ATTRIBUTE_NAMES as av, RESERVED_OBJECT_NAMES as aw, type RecordDocuments as ax, type ReservedAttributeName as ay, type ReservedObjectName 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 DateRangeValue as u, type DocumentAttribute as v, type Phone as w, type Currency as x, type DocumentSlotConfig as y, type PropertySchema as z };
978
+ export { type ComputedAttributeState as $, type Attribute as A, type AutofillConfig as B, type CurrencyAttribute as C, type DateAttribute as D, type TimeFormat as E, type FormulaAttribute as F, type Option as G, type FormulaReturnType as H, type BilateralConfig as I, type RelationTarget as J, type RollupFunction as K, type LocationAttribute as L, type MultiRelationAttribute as M, type NumberAttribute as N, type ObjectDefinition as O, type PhoneAttribute as P, type UserReferenceType as Q, type RollupAttribute as R, type SingleRelationAttribute as S, type TextAttribute as T, type UserAttribute as U, type MigrationDefinition as V, AUTOFILL_ELIGIBLE_TYPES as W, type AttributeGroup as X, type AutofillEligibleType as Y, type BaseAttribute as Z, type BuiltInTransform as _, type FileAttribute as a, type ComputedFieldKind as a0, type ComputedFormulaBinaryNode as a1, type ComputedFormulaBinaryOperator as a2, type ComputedFormulaCallNode as a3, type ComputedFormulaLiteralNode as a4, ComputedFormulaParseError as a5, type ComputedFormulaPathNode as a6, type ComputedStateStatus as a7, type CreateDocument as a8, type CreateDocumentLink as a9, type RichTextAttribute as aA, SYSTEM_FIELD_NAMES as aB, type SlotStatus as aC, type StatusGroup as aD, type SystemFieldName as aE, type UpdateDocument as aF, type UpdateDocumentSlot as aG, hasOptions as aH, inferInverseCardinality as aI, isAttributeSortable as aJ, isBilateralRelation as aK, isUniversalRelation as aL, parseComputedFormula as aM, resolvePropertyDefinitions as aN, type CreateDocumentSlot as aa, DEFAULT_DOCUMENT_SLOT as ab, type DateFormat as ac, type DateValue as ad, type Document as ae, type DocumentKind as af, type DocumentLayoutVariant as ag, type DocumentListOptions as ah, type DocumentSlot as ai, type DocumentWithSlots as aj, type DocumentWithSubCount as ak, type FolderPreset as al, MAX_PRESET_DEPTH as am, type NumberUnit as an, type ObjectAttribute as ao, type ObjectRecord as ap, type OptionPropertyAttribute as aq, type PresetNode as ar, type PropertyAttribute as as, type PropertyType as at, RELATION_TARGET_ANY as au, RESERVED_ATTRIBUTE_NAMES as av, RESERVED_OBJECT_NAMES as aw, type RecordDocuments as ax, type ReservedAttributeName as ay, type ReservedObjectName 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 DateRangeValue as u, type DocumentAttribute as v, type Phone as w, type Currency as x, type DocumentSlotConfig as y, type PropertySchema as z };
@@ -975,4 +975,4 @@ declare function isAttributeSortable(attr: {
975
975
  type: AttributeType;
976
976
  }): boolean;
977
977
 
978
- export { type ComputedAttributeState as $, type Attribute as A, type AutofillConfig as B, type CurrencyAttribute as C, type DateAttribute as D, type TimeFormat as E, type FileAttribute as F, type Option as G, type FormulaReturnType as H, type BilateralConfig as I, type RelationTarget as J, type RollupFunction as K, type LocationAttribute as L, type MultiRelationAttribute as M, type NumberAttribute as N, type ObjectDefinition as O, type PhoneAttribute as P, type UserReferenceType as Q, type RelationAttribute as R, type SingleRelationAttribute as S, type TextAttribute as T, type UserAttribute as U, type MigrationDefinition as V, AUTOFILL_ELIGIBLE_TYPES as W, type AttributeGroup as X, type AutofillEligibleType as Y, type BaseAttribute as Z, type BuiltInTransform as _, type RichtextAttribute as a, type ComputedFieldKind as a0, type ComputedFormulaBinaryNode as a1, type ComputedFormulaBinaryOperator as a2, type ComputedFormulaCallNode as a3, type ComputedFormulaLiteralNode as a4, ComputedFormulaParseError as a5, type ComputedFormulaPathNode as a6, type ComputedStateStatus as a7, type CreateDocument as a8, type CreateDocumentLink as a9, type RichTextAttribute as aA, SYSTEM_FIELD_NAMES as aB, type SlotStatus as aC, type StatusGroup as aD, type SystemFieldName as aE, type UpdateDocument as aF, type UpdateDocumentSlot as aG, hasOptions as aH, inferInverseCardinality as aI, isAttributeSortable as aJ, isBilateralRelation as aK, isUniversalRelation as aL, parseComputedFormula as aM, resolvePropertyDefinitions as aN, type CreateDocumentSlot as aa, DEFAULT_DOCUMENT_SLOT as ab, type DateFormat as ac, type DateValue as ad, type Document as ae, type DocumentKind as af, type DocumentLayoutVariant as ag, type DocumentListOptions as ah, type DocumentSlot as ai, type DocumentWithSlots as aj, type DocumentWithSubCount as ak, type FolderPreset as al, MAX_PRESET_DEPTH as am, type NumberUnit as an, type ObjectAttribute as ao, type ObjectRecord as ap, type OptionPropertyAttribute as aq, type PresetNode as ar, type PropertyAttribute as as, type PropertyType as at, RELATION_TARGET_ANY as au, RESERVED_ATTRIBUTE_NAMES as av, RESERVED_OBJECT_NAMES as aw, type RecordDocuments as ax, type ReservedAttributeName as ay, type ReservedObjectName 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 DateRangeValue as u, type DocumentAttribute as v, type Phone as w, type Currency as x, type DocumentSlotConfig as y, type PropertySchema as z };
978
+ export { type ComputedAttributeState as $, type Attribute as A, type AutofillConfig as B, type CurrencyAttribute as C, type DateAttribute as D, type TimeFormat as E, type FormulaAttribute as F, type Option as G, type FormulaReturnType as H, type BilateralConfig as I, type RelationTarget as J, type RollupFunction as K, type LocationAttribute as L, type MultiRelationAttribute as M, type NumberAttribute as N, type ObjectDefinition as O, type PhoneAttribute as P, type UserReferenceType as Q, type RollupAttribute as R, type SingleRelationAttribute as S, type TextAttribute as T, type UserAttribute as U, type MigrationDefinition as V, AUTOFILL_ELIGIBLE_TYPES as W, type AttributeGroup as X, type AutofillEligibleType as Y, type BaseAttribute as Z, type BuiltInTransform as _, type FileAttribute as a, type ComputedFieldKind as a0, type ComputedFormulaBinaryNode as a1, type ComputedFormulaBinaryOperator as a2, type ComputedFormulaCallNode as a3, type ComputedFormulaLiteralNode as a4, ComputedFormulaParseError as a5, type ComputedFormulaPathNode as a6, type ComputedStateStatus as a7, type CreateDocument as a8, type CreateDocumentLink as a9, type RichTextAttribute as aA, SYSTEM_FIELD_NAMES as aB, type SlotStatus as aC, type StatusGroup as aD, type SystemFieldName as aE, type UpdateDocument as aF, type UpdateDocumentSlot as aG, hasOptions as aH, inferInverseCardinality as aI, isAttributeSortable as aJ, isBilateralRelation as aK, isUniversalRelation as aL, parseComputedFormula as aM, resolvePropertyDefinitions as aN, type CreateDocumentSlot as aa, DEFAULT_DOCUMENT_SLOT as ab, type DateFormat as ac, type DateValue as ad, type Document as ae, type DocumentKind as af, type DocumentLayoutVariant as ag, type DocumentListOptions as ah, type DocumentSlot as ai, type DocumentWithSlots as aj, type DocumentWithSubCount as ak, type FolderPreset as al, MAX_PRESET_DEPTH as am, type NumberUnit as an, type ObjectAttribute as ao, type ObjectRecord as ap, type OptionPropertyAttribute as aq, type PresetNode as ar, type PropertyAttribute as as, type PropertyType as at, RELATION_TARGET_ANY as au, RESERVED_ATTRIBUTE_NAMES as av, RESERVED_OBJECT_NAMES as aw, type RecordDocuments as ax, type ReservedAttributeName as ay, type ReservedObjectName 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 DateRangeValue as u, type DocumentAttribute as v, type Phone as w, type Currency as x, type DocumentSlotConfig as y, type PropertySchema 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-B4847Nul.js';
3
- import { V as ValidationMessages, a as ValidationResult } from './types-C8nztuFF.js';
2
+ import { A as Attribute, O as ObjectDefinition, h as CompletionStatus } from './attributes-C8AjT2x0.js';
3
+ import { V as ValidationMessages, a as ValidationResult } from './types-DzZex_aX.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-BpMes5H_.mjs';
3
- import { V as ValidationMessages, a as ValidationResult } from './types-CyxVuV_d.mjs';
2
+ import { A as Attribute, O as ObjectDefinition, h as CompletionStatus } from './attributes-ej1MUv6H.mjs';
3
+ import { V as ValidationMessages, a as ValidationResult } from './types-DrT3ZBoK.mjs';
4
4
 
5
5
  /**
6
6
  * Create a Zod schema for any attribute type.
package/dist/index.d.mts CHANGED
@@ -1,15 +1,15 @@
1
- import { i as ComputedValueType, j as ComputedReturnType, k as AttributeType, l as ComputedOptionsSource, m as ComputedDependency, n as ComputedPlan, f as RollupAttribute, o as ComputedFormulaAstNode, A as Attribute, p as DocumentLayout, h as CompletionStatus, q as Timestamps, r as SchemaOperation, s as LocationGranularity, t as Location, e as FormulaAttribute, D as DateAttribute, u as DateRangeValue, v as DocumentAttribute, d as StatusAttribute, c as SelectAttribute, b as MultiselectAttribute, w as Phone, x as Currency, U as UserAttribute, y as DocumentSlotConfig, z as PropertySchema, B as AutofillConfig, g as CheckboxAttribute, C as CurrencyAttribute, E as TimeFormat, T as TextAttribute, N as NumberAttribute, P as PhoneAttribute, G as Option, L as LocationAttribute, F as FileAttribute, H as FormulaReturnType, R as RelationAttribute, I as BilateralConfig, S as SingleRelationAttribute, M as MultiRelationAttribute, J as RelationTarget, a as RichtextAttribute, K as RollupFunction, Q as UserReferenceType, V as MigrationDefinition, O as ObjectDefinition } from './attributes-BpMes5H_.mjs';
2
- export { W as AUTOFILL_ELIGIBLE_TYPES, X as AttributeGroup, Y as AutofillEligibleType, Z as BaseAttribute, _ as BuiltInTransform, $ as ComputedAttributeState, a0 as ComputedFieldKind, a1 as ComputedFormulaBinaryNode, a2 as ComputedFormulaBinaryOperator, a3 as ComputedFormulaCallNode, a4 as ComputedFormulaLiteralNode, a5 as ComputedFormulaParseError, a6 as ComputedFormulaPathNode, a7 as ComputedStateStatus, a8 as CreateDocument, a9 as CreateDocumentLink, aa as CreateDocumentSlot, ab as DEFAULT_DOCUMENT_SLOT, ac as DateFormat, ad as DateValue, ae as Document, af as DocumentKind, ag as DocumentLayoutVariant, ah as DocumentListOptions, ai as DocumentSlot, aj as DocumentWithSlots, ak as DocumentWithSubCount, al as FolderPreset, am as MAX_PRESET_DEPTH, an as NumberUnit, ao as ObjectAttribute, ap as ObjectRecord, aq as OptionPropertyAttribute, ar as PresetNode, as as PropertyAttribute, at as PropertyType, au as RELATION_TARGET_ANY, av as RESERVED_ATTRIBUTE_NAMES, aw as RESERVED_OBJECT_NAMES, ax as RecordDocuments, ay as ReservedAttributeName, az as ReservedObjectName, aA as RichTextAttribute, aB as SYSTEM_FIELD_NAMES, aC as SlotStatus, aD as StatusGroup, aE as SystemFieldName, aF as UpdateDocument, aG as UpdateDocumentSlot, aH as hasOptions, aI as inferInverseCardinality, aJ as isAttributeSortable, aK as isBilateralRelation, aL as isUniversalRelation, aM as parseComputedFormula, aN as resolvePropertyDefinitions } from './attributes-BpMes5H_.mjs';
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, D as DateAttribute, u as DateRangeValue, v as DocumentAttribute, f as StatusAttribute, e as SelectAttribute, d as MultiselectAttribute, w as Phone, x as Currency, U as UserAttribute, y as DocumentSlotConfig, z as PropertySchema, B as AutofillConfig, g as CheckboxAttribute, C as CurrencyAttribute, E as TimeFormat, T as TextAttribute, N as NumberAttribute, P as PhoneAttribute, G as Option, L as LocationAttribute, a as FileAttribute, H as FormulaReturnType, b as RelationAttribute, I as BilateralConfig, S as SingleRelationAttribute, M as MultiRelationAttribute, J as RelationTarget, c as RichtextAttribute, K as RollupFunction, Q as UserReferenceType, V as MigrationDefinition, O as ObjectDefinition } from './attributes-ej1MUv6H.mjs';
2
+ export { W as AUTOFILL_ELIGIBLE_TYPES, X as AttributeGroup, Y as AutofillEligibleType, Z as BaseAttribute, _ as BuiltInTransform, $ as ComputedAttributeState, a0 as ComputedFieldKind, a1 as ComputedFormulaBinaryNode, a2 as ComputedFormulaBinaryOperator, a3 as ComputedFormulaCallNode, a4 as ComputedFormulaLiteralNode, a5 as ComputedFormulaParseError, a6 as ComputedFormulaPathNode, a7 as ComputedStateStatus, a8 as CreateDocument, a9 as CreateDocumentLink, aa as CreateDocumentSlot, ab as DEFAULT_DOCUMENT_SLOT, ac as DateFormat, ad as DateValue, ae as Document, af as DocumentKind, ag as DocumentLayoutVariant, ah as DocumentListOptions, ai as DocumentSlot, aj as DocumentWithSlots, ak as DocumentWithSubCount, al as FolderPreset, am as MAX_PRESET_DEPTH, an as NumberUnit, ao as ObjectAttribute, ap as ObjectRecord, aq as OptionPropertyAttribute, ar as PresetNode, as as PropertyAttribute, at as PropertyType, au as RELATION_TARGET_ANY, av as RESERVED_ATTRIBUTE_NAMES, aw as RESERVED_OBJECT_NAMES, ax as RecordDocuments, ay as ReservedAttributeName, az as ReservedObjectName, aA as RichTextAttribute, aB as SYSTEM_FIELD_NAMES, aC as SlotStatus, aD as StatusGroup, aE as SystemFieldName, aF as UpdateDocument, aG as UpdateDocumentSlot, aH as hasOptions, aI as inferInverseCardinality, aJ as isAttributeSortable, aK as isBilateralRelation, aL as isUniversalRelation, aM as parseComputedFormula, aN as resolvePropertyDefinitions } from './attributes-ej1MUv6H.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-CyxVuV_d.mjs';
9
+ export { V as ValidationMessages } from './types-DrT3ZBoK.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-ow7sORSi.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-CihXtV0s.mjs';
13
13
 
14
14
  declare const COMPUTED_FUNCTION_NAMES: readonly ["if", "concat", "sum", "avg", "count", "min", "max", "earliest", "latest", "unique", "first", "percent_empty", "percent_not_empty", "count_empty", "count_not_empty", "count_unique"];
15
15
  type ComputedFunctionName = (typeof COMPUTED_FUNCTION_NAMES)[number];
package/dist/index.d.ts CHANGED
@@ -1,15 +1,15 @@
1
- import { i as ComputedValueType, j as ComputedReturnType, k as AttributeType, l as ComputedOptionsSource, m as ComputedDependency, n as ComputedPlan, f as RollupAttribute, o as ComputedFormulaAstNode, A as Attribute, p as DocumentLayout, h as CompletionStatus, q as Timestamps, r as SchemaOperation, s as LocationGranularity, t as Location, e as FormulaAttribute, D as DateAttribute, u as DateRangeValue, v as DocumentAttribute, d as StatusAttribute, c as SelectAttribute, b as MultiselectAttribute, w as Phone, x as Currency, U as UserAttribute, y as DocumentSlotConfig, z as PropertySchema, B as AutofillConfig, g as CheckboxAttribute, C as CurrencyAttribute, E as TimeFormat, T as TextAttribute, N as NumberAttribute, P as PhoneAttribute, G as Option, L as LocationAttribute, F as FileAttribute, H as FormulaReturnType, R as RelationAttribute, I as BilateralConfig, S as SingleRelationAttribute, M as MultiRelationAttribute, J as RelationTarget, a as RichtextAttribute, K as RollupFunction, Q as UserReferenceType, V as MigrationDefinition, O as ObjectDefinition } from './attributes-B4847Nul.js';
2
- export { W as AUTOFILL_ELIGIBLE_TYPES, X as AttributeGroup, Y as AutofillEligibleType, Z as BaseAttribute, _ as BuiltInTransform, $ as ComputedAttributeState, a0 as ComputedFieldKind, a1 as ComputedFormulaBinaryNode, a2 as ComputedFormulaBinaryOperator, a3 as ComputedFormulaCallNode, a4 as ComputedFormulaLiteralNode, a5 as ComputedFormulaParseError, a6 as ComputedFormulaPathNode, a7 as ComputedStateStatus, a8 as CreateDocument, a9 as CreateDocumentLink, aa as CreateDocumentSlot, ab as DEFAULT_DOCUMENT_SLOT, ac as DateFormat, ad as DateValue, ae as Document, af as DocumentKind, ag as DocumentLayoutVariant, ah as DocumentListOptions, ai as DocumentSlot, aj as DocumentWithSlots, ak as DocumentWithSubCount, al as FolderPreset, am as MAX_PRESET_DEPTH, an as NumberUnit, ao as ObjectAttribute, ap as ObjectRecord, aq as OptionPropertyAttribute, ar as PresetNode, as as PropertyAttribute, at as PropertyType, au as RELATION_TARGET_ANY, av as RESERVED_ATTRIBUTE_NAMES, aw as RESERVED_OBJECT_NAMES, ax as RecordDocuments, ay as ReservedAttributeName, az as ReservedObjectName, aA as RichTextAttribute, aB as SYSTEM_FIELD_NAMES, aC as SlotStatus, aD as StatusGroup, aE as SystemFieldName, aF as UpdateDocument, aG as UpdateDocumentSlot, aH as hasOptions, aI as inferInverseCardinality, aJ as isAttributeSortable, aK as isBilateralRelation, aL as isUniversalRelation, aM as parseComputedFormula, aN as resolvePropertyDefinitions } from './attributes-B4847Nul.js';
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, D as DateAttribute, u as DateRangeValue, v as DocumentAttribute, f as StatusAttribute, e as SelectAttribute, d as MultiselectAttribute, w as Phone, x as Currency, U as UserAttribute, y as DocumentSlotConfig, z as PropertySchema, B as AutofillConfig, g as CheckboxAttribute, C as CurrencyAttribute, E as TimeFormat, T as TextAttribute, N as NumberAttribute, P as PhoneAttribute, G as Option, L as LocationAttribute, a as FileAttribute, H as FormulaReturnType, b as RelationAttribute, I as BilateralConfig, S as SingleRelationAttribute, M as MultiRelationAttribute, J as RelationTarget, c as RichtextAttribute, K as RollupFunction, Q as UserReferenceType, V as MigrationDefinition, O as ObjectDefinition } from './attributes-C8AjT2x0.js';
2
+ export { W as AUTOFILL_ELIGIBLE_TYPES, X as AttributeGroup, Y as AutofillEligibleType, Z as BaseAttribute, _ as BuiltInTransform, $ as ComputedAttributeState, a0 as ComputedFieldKind, a1 as ComputedFormulaBinaryNode, a2 as ComputedFormulaBinaryOperator, a3 as ComputedFormulaCallNode, a4 as ComputedFormulaLiteralNode, a5 as ComputedFormulaParseError, a6 as ComputedFormulaPathNode, a7 as ComputedStateStatus, a8 as CreateDocument, a9 as CreateDocumentLink, aa as CreateDocumentSlot, ab as DEFAULT_DOCUMENT_SLOT, ac as DateFormat, ad as DateValue, ae as Document, af as DocumentKind, ag as DocumentLayoutVariant, ah as DocumentListOptions, ai as DocumentSlot, aj as DocumentWithSlots, ak as DocumentWithSubCount, al as FolderPreset, am as MAX_PRESET_DEPTH, an as NumberUnit, ao as ObjectAttribute, ap as ObjectRecord, aq as OptionPropertyAttribute, ar as PresetNode, as as PropertyAttribute, at as PropertyType, au as RELATION_TARGET_ANY, av as RESERVED_ATTRIBUTE_NAMES, aw as RESERVED_OBJECT_NAMES, ax as RecordDocuments, ay as ReservedAttributeName, az as ReservedObjectName, aA as RichTextAttribute, aB as SYSTEM_FIELD_NAMES, aC as SlotStatus, aD as StatusGroup, aE as SystemFieldName, aF as UpdateDocument, aG as UpdateDocumentSlot, aH as hasOptions, aI as inferInverseCardinality, aJ as isAttributeSortable, aK as isBilateralRelation, aL as isUniversalRelation, aM as parseComputedFormula, aN as resolvePropertyDefinitions } from './attributes-C8AjT2x0.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-C8nztuFF.js';
9
+ export { V as ValidationMessages } from './types-DzZex_aX.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-DsJff5r-.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-ChTf56gW.js';
13
13
 
14
14
  declare const COMPUTED_FUNCTION_NAMES: readonly ["if", "concat", "sum", "avg", "count", "min", "max", "earliest", "latest", "unique", "first", "percent_empty", "percent_not_empty", "count_empty", "count_not_empty", "count_unique"];
15
15
  type ComputedFunctionName = (typeof COMPUTED_FUNCTION_NAMES)[number];
package/dist/index.js CHANGED
@@ -2,22 +2,22 @@
2
2
 
3
3
  var chunkFRCDMQER_js = require('./chunk-FRCDMQER.js');
4
4
  require('./chunk-PGERPYDR.js');
5
- var chunkNSM2JPC3_js = require('./chunk-NSM2JPC3.js');
6
- var chunk6SPNZSXS_js = require('./chunk-6SPNZSXS.js');
5
+ var chunk5YVX5E7Q_js = require('./chunk-5YVX5E7Q.js');
7
6
  require('./chunk-5WATIVCA.js');
8
7
  require('./chunk-SI34M4IC.js');
9
8
  require('./chunk-YIP5FJ5H.js');
10
9
  require('./chunk-SGSGREPG.js');
10
+ require('./chunk-Q5DIOYUE.js');
11
+ require('./chunk-E6JUYGJX.js');
12
+ var chunkEBGRZUIH_js = require('./chunk-EBGRZUIH.js');
13
+ require('./chunk-EEH4XQ7W.js');
11
14
  require('./chunk-EW5XR2X3.js');
12
15
  require('./chunk-QWKLQRBX.js');
13
16
  require('./chunk-KNGWHQLR.js');
14
17
  require('./chunk-HTSTPTNZ.js');
15
18
  require('./chunk-V2UA2D4E.js');
19
+ var chunkNSM2JPC3_js = require('./chunk-NSM2JPC3.js');
16
20
  require('./chunk-ACKMC6FL.js');
17
- require('./chunk-Q5DIOYUE.js');
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');
@@ -1418,7 +1418,7 @@ var BaseAttributeBuilder = class {
1418
1418
  * @see https://standardschema.dev/
1419
1419
  */
1420
1420
  get "~standard"() {
1421
- const zodSchema = chunk6SPNZSXS_js.createAttributeValidator(this.build());
1421
+ const zodSchema = chunk5YVX5E7Q_js.createAttributeValidator(this.build());
1422
1422
  return createStandardSchemaProps(zodSchema);
1423
1423
  }
1424
1424
  constructor(type, name, label) {
@@ -2205,9 +2205,9 @@ var RollupAttributeBuilder = class extends BaseAttributeBuilder {
2205
2205
  if (fn === "original" && targetType !== void 0 && targetType !== "select" && targetType !== "status" && targetType !== "multiselect") {
2206
2206
  const relation2 = this.attr.relationAttribute ?? "relation";
2207
2207
  const target = this.attr.targetAttribute ?? "field";
2208
- throw new chunk6SPNZSXS_js.SchemaError(
2208
+ throw new chunk5YVX5E7Q_js.SchemaError(
2209
2209
  `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}").`,
2210
- chunk6SPNZSXS_js.SchemaErrorCode.VALIDATION_FAILED
2210
+ chunk5YVX5E7Q_js.SchemaErrorCode.VALIDATION_FAILED
2211
2211
  );
2212
2212
  }
2213
2213
  return super.build();
@@ -2710,7 +2710,7 @@ var ObjectBuilder = class {
2710
2710
  * @see https://standardschema.dev/
2711
2711
  */
2712
2712
  get "~standard"() {
2713
- const zodSchema = chunk6SPNZSXS_js.createObjectValidator(this.build());
2713
+ const zodSchema = chunk5YVX5E7Q_js.createObjectValidator(this.build());
2714
2714
  return createStandardSchemaProps(zodSchema);
2715
2715
  }
2716
2716
  /**
@@ -2924,26 +2924,26 @@ var ObjectBuilder = class {
2924
2924
  throw new Error("[ObjectBuilder] Missing required field: label");
2925
2925
  }
2926
2926
  if (!this._labelExpression) {
2927
- throw new chunk6SPNZSXS_js.SchemaError(
2927
+ throw new chunk5YVX5E7Q_js.SchemaError(
2928
2928
  `Object "${this.obj.name}" must have a labelExpression. The labelExpression defines how records are displayed in lists and relations (e.g. "{{ name }}").`,
2929
- chunk6SPNZSXS_js.SchemaErrorCode.VALIDATION_FAILED
2929
+ chunk5YVX5E7Q_js.SchemaErrorCode.VALIDATION_FAILED
2930
2930
  );
2931
2931
  }
2932
2932
  const labelResult = labelExpressionSchema.safeParse(this._labelExpression);
2933
2933
  if (!labelResult.success) {
2934
2934
  const errorMsg = labelResult.error.issues[0]?.message ?? "Invalid labelExpression";
2935
- throw new chunk6SPNZSXS_js.SchemaError(
2935
+ throw new chunk5YVX5E7Q_js.SchemaError(
2936
2936
  `Invalid labelExpression for "${this.obj.name}": ${errorMsg}`,
2937
- chunk6SPNZSXS_js.SchemaErrorCode.VALIDATION_FAILED
2937
+ chunk5YVX5E7Q_js.SchemaErrorCode.VALIDATION_FAILED
2938
2938
  );
2939
2939
  }
2940
2940
  if (this._embeddingExpression !== void 0) {
2941
2941
  const embeddingResult = labelExpressionSchema.safeParse(this._embeddingExpression);
2942
2942
  if (!embeddingResult.success) {
2943
2943
  const errorMsg = embeddingResult.error.issues[0]?.message ?? "Invalid embeddingExpression";
2944
- throw new chunk6SPNZSXS_js.SchemaError(
2944
+ throw new chunk5YVX5E7Q_js.SchemaError(
2945
2945
  `Invalid embeddingExpression for "${this.obj.name}": ${errorMsg}`,
2946
- chunk6SPNZSXS_js.SchemaErrorCode.VALIDATION_FAILED
2946
+ chunk5YVX5E7Q_js.SchemaErrorCode.VALIDATION_FAILED
2947
2947
  );
2948
2948
  }
2949
2949
  }
@@ -2984,7 +2984,7 @@ var ObjectBuilder = class {
2984
2984
  objectNameSchema.parse(name);
2985
2985
  } catch (error) {
2986
2986
  if (error instanceof z3__default.default.ZodError) {
2987
- throw new chunk6SPNZSXS_js.SchemaError(error.issues[0].message, chunk6SPNZSXS_js.SchemaErrorCode.INVALID_OBJECT_NAME);
2987
+ throw new chunk5YVX5E7Q_js.SchemaError(error.issues[0].message, chunk5YVX5E7Q_js.SchemaErrorCode.INVALID_OBJECT_NAME);
2988
2988
  }
2989
2989
  throw error;
2990
2990
  }
@@ -2995,7 +2995,7 @@ function object(config) {
2995
2995
  }
2996
2996
  function validatePresetStructure(presetId, nodes, depth) {
2997
2997
  const fail = (message, detail) => {
2998
- throw new chunk6SPNZSXS_js.ValidationError(message, [
2998
+ throw new chunk5YVX5E7Q_js.ValidationError(message, [
2999
2999
  { path: ["documentLayout", "presets", presetId], message: detail }
3000
3000
  ]);
3001
3001
  };
@@ -6994,7 +6994,7 @@ function assertOperatorForType(operator, type, context) {
6994
6994
  if (!ops?.includes(operator)) {
6995
6995
  const validList = ops?.length ? ops.join(", ") : "(no operators registered for this type)";
6996
6996
  const summary = `Operator "${operator}" is not valid for ${context} type "${type}". Valid operators: ${validList}.`;
6997
- throw new chunk6SPNZSXS_js.ValidationError(summary, [
6997
+ throw new chunk5YVX5E7Q_js.ValidationError(summary, [
6998
6998
  {
6999
6999
  path: ["operator"],
7000
7000
  message: summary
@@ -7010,7 +7010,7 @@ function assertRelativeDateValue(rule) {
7010
7010
  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);
7011
7011
  if (!valid) {
7012
7012
  const m = `Operator "is_within" requires a relative-date value { amount: positive number, unit: days|weeks|months|years, direction: past|future }`;
7013
- throw new chunk6SPNZSXS_js.ValidationError(m, [{ path: ["value"], message: m }]);
7013
+ throw new chunk5YVX5E7Q_js.ValidationError(m, [{ path: ["value"], message: m }]);
7014
7014
  }
7015
7015
  }
7016
7016
  function assertDynamicValueForAttribute(rule, attrType) {
@@ -7018,34 +7018,34 @@ function assertDynamicValueForAttribute(rule, attrType) {
7018
7018
  const v = rule.value;
7019
7019
  if (v.dynamic === "actor" && attrType !== "user") {
7020
7020
  const m = `actor token (@me) is only valid on user attributes, not "${attrType}"`;
7021
- throw new chunk6SPNZSXS_js.ValidationError(m, [{ path: ["value"], message: m }]);
7021
+ throw new chunk5YVX5E7Q_js.ValidationError(m, [{ path: ["value"], message: m }]);
7022
7022
  }
7023
7023
  if (v.dynamic === "date" && attrType !== "date") {
7024
7024
  const m = `date token (@today/@now) is only valid on date attributes, not "${attrType}"`;
7025
- throw new chunk6SPNZSXS_js.ValidationError(m, [{ path: ["value"], message: m }]);
7025
+ throw new chunk5YVX5E7Q_js.ValidationError(m, [{ path: ["value"], message: m }]);
7026
7026
  }
7027
7027
  }
7028
7028
  function validateQualifiedRule(rule, context) {
7029
7029
  const rootAttr = context.attributes.find((a) => a.name === rule.attribute);
7030
7030
  const systemOps = SYSTEM_FILTER_OPERATORS[rule.attribute];
7031
7031
  if (!(rootAttr || systemOps)) {
7032
- throw new chunk6SPNZSXS_js.ValidationError(`Unknown attribute: ${rule.attribute}`, [
7032
+ throw new chunk5YVX5E7Q_js.ValidationError(`Unknown attribute: ${rule.attribute}`, [
7033
7033
  { path: ["attribute"], message: `Unknown attribute: ${rule.attribute}` }
7034
7034
  ]);
7035
7035
  }
7036
7036
  if (rule.quantifier !== void 0 && !rule.property) {
7037
7037
  const m = `quantifier is only valid on qualified edge rules (set "property")`;
7038
- throw new chunk6SPNZSXS_js.ValidationError(m, [{ path: ["quantifier"], message: m }]);
7038
+ throw new chunk5YVX5E7Q_js.ValidationError(m, [{ path: ["quantifier"], message: m }]);
7039
7039
  }
7040
7040
  if (!rootAttr) {
7041
7041
  if (rule.property) {
7042
- throw new chunk6SPNZSXS_js.ValidationError(`Cannot qualify system attribute "${rule.attribute}"`, [
7042
+ throw new chunk5YVX5E7Q_js.ValidationError(`Cannot qualify system attribute "${rule.attribute}"`, [
7043
7043
  { path: ["property"], message: `"${rule.attribute}" is a system column, not a reference` }
7044
7044
  ]);
7045
7045
  }
7046
7046
  if (!systemOps.includes(rule.operator)) {
7047
7047
  const summary = `Operator "${rule.operator}" is not valid for system attribute "${rule.attribute}". Valid operators: ${systemOps.join(", ")}.`;
7048
- throw new chunk6SPNZSXS_js.ValidationError(summary, [{ path: ["operator"], message: summary }]);
7048
+ throw new chunk5YVX5E7Q_js.ValidationError(summary, [{ path: ["operator"], message: summary }]);
7049
7049
  }
7050
7050
  assertRelativeDateValue(rule);
7051
7051
  return;
@@ -7056,25 +7056,25 @@ function validateQualifiedRule(rule, context) {
7056
7056
  if (!ops.includes(rule.operator)) {
7057
7057
  const validList = ops.length ? ops.join(", ") : "(not filterable)";
7058
7058
  const summary = `Operator "${rule.operator}" is not valid for attribute "${rootAttr.name}". Valid operators: ${validList}.`;
7059
- throw new chunk6SPNZSXS_js.ValidationError(summary, [{ path: ["operator"], message: summary }]);
7059
+ throw new chunk5YVX5E7Q_js.ValidationError(summary, [{ path: ["operator"], message: summary }]);
7060
7060
  }
7061
7061
  assertRelativeDateValue(rule);
7062
7062
  return;
7063
7063
  }
7064
7064
  if (!REFERENCE_TYPES.has(rootAttr.type)) {
7065
- throw new chunk6SPNZSXS_js.ValidationError(`Cannot qualify ${rootAttr.type} attribute "${rule.attribute}"`, [
7065
+ throw new chunk5YVX5E7Q_js.ValidationError(`Cannot qualify ${rootAttr.type} attribute "${rule.attribute}"`, [
7066
7066
  { path: ["property"], message: `Attribute "${rule.attribute}" is not a reference type` }
7067
7067
  ]);
7068
7068
  }
7069
7069
  const propSchema = rootAttr.properties;
7070
7070
  if (!propSchema) {
7071
- throw new chunk6SPNZSXS_js.ValidationError(`Attribute "${rule.attribute}" has no qualifyWith schema`, [
7071
+ throw new chunk5YVX5E7Q_js.ValidationError(`Attribute "${rule.attribute}" has no qualifyWith schema`, [
7072
7072
  { path: ["property"], message: `"${rule.attribute}" has no qualifyWith` }
7073
7073
  ]);
7074
7074
  }
7075
7075
  const propDef = propSchema.definitions.find((p) => p.name === rule.property);
7076
7076
  if (!propDef) {
7077
- throw new chunk6SPNZSXS_js.ValidationError(
7077
+ throw new chunk5YVX5E7Q_js.ValidationError(
7078
7078
  `Property "${rule.property}" not defined on "${rule.attribute}".qualifyWith()`,
7079
7079
  [{ path: ["property"], message: `Unknown property: ${rule.property}` }]
7080
7080
  );
@@ -7110,193 +7110,193 @@ Object.defineProperty(exports, "indexBy", {
7110
7110
  enumerable: true,
7111
7111
  get: function () { return chunkFRCDMQER_js.indexBy; }
7112
7112
  });
7113
- Object.defineProperty(exports, "ComputedFormulaParseError", {
7114
- enumerable: true,
7115
- get: function () { return chunkNSM2JPC3_js.ComputedFormulaParseError; }
7116
- });
7117
- Object.defineProperty(exports, "parseAttributeConfig", {
7118
- enumerable: true,
7119
- get: function () { return chunkNSM2JPC3_js.parseAttributeConfig; }
7120
- });
7121
- Object.defineProperty(exports, "parseComputedFormula", {
7122
- enumerable: true,
7123
- get: function () { return chunkNSM2JPC3_js.parseComputedFormula; }
7124
- });
7125
7113
  Object.defineProperty(exports, "AccessDeniedError", {
7126
7114
  enumerable: true,
7127
- get: function () { return chunk6SPNZSXS_js.AccessDeniedError; }
7115
+ get: function () { return chunk5YVX5E7Q_js.AccessDeniedError; }
7128
7116
  });
7129
7117
  Object.defineProperty(exports, "AttributeInUseError", {
7130
7118
  enumerable: true,
7131
- get: function () { return chunk6SPNZSXS_js.AttributeInUseError; }
7119
+ get: function () { return chunk5YVX5E7Q_js.AttributeInUseError; }
7132
7120
  });
7133
7121
  Object.defineProperty(exports, "AttributeNotFoundError", {
7134
7122
  enumerable: true,
7135
- get: function () { return chunk6SPNZSXS_js.AttributeNotFoundError; }
7123
+ get: function () { return chunk5YVX5E7Q_js.AttributeNotFoundError; }
7136
7124
  });
7137
7125
  Object.defineProperty(exports, "ChangeTypeNotSupportedError", {
7138
7126
  enumerable: true,
7139
- get: function () { return chunk6SPNZSXS_js.ChangeTypeNotSupportedError; }
7127
+ get: function () { return chunk5YVX5E7Q_js.ChangeTypeNotSupportedError; }
7140
7128
  });
7141
7129
  Object.defineProperty(exports, "ConcurrentModificationError", {
7142
7130
  enumerable: true,
7143
- get: function () { return chunk6SPNZSXS_js.ConcurrentModificationError; }
7131
+ get: function () { return chunk5YVX5E7Q_js.ConcurrentModificationError; }
7144
7132
  });
7145
7133
  Object.defineProperty(exports, "DestructiveSyncNotAllowedError", {
7146
7134
  enumerable: true,
7147
- get: function () { return chunk6SPNZSXS_js.DestructiveSyncNotAllowedError; }
7135
+ get: function () { return chunk5YVX5E7Q_js.DestructiveSyncNotAllowedError; }
7148
7136
  });
7149
7137
  Object.defineProperty(exports, "DuplicateError", {
7150
7138
  enumerable: true,
7151
- get: function () { return chunk6SPNZSXS_js.DuplicateError; }
7139
+ get: function () { return chunk5YVX5E7Q_js.DuplicateError; }
7152
7140
  });
7153
7141
  Object.defineProperty(exports, "ForbiddenError", {
7154
7142
  enumerable: true,
7155
- get: function () { return chunk6SPNZSXS_js.ForbiddenError; }
7143
+ get: function () { return chunk5YVX5E7Q_js.ForbiddenError; }
7156
7144
  });
7157
7145
  Object.defineProperty(exports, "MemoryNotFoundError", {
7158
7146
  enumerable: true,
7159
- get: function () { return chunk6SPNZSXS_js.MemoryNotFoundError; }
7147
+ get: function () { return chunk5YVX5E7Q_js.MemoryNotFoundError; }
7160
7148
  });
7161
7149
  Object.defineProperty(exports, "MigrationTimeoutError", {
7162
7150
  enumerable: true,
7163
- get: function () { return chunk6SPNZSXS_js.MigrationTimeoutError; }
7151
+ get: function () { return chunk5YVX5E7Q_js.MigrationTimeoutError; }
7164
7152
  });
7165
7153
  Object.defineProperty(exports, "NotFoundError", {
7166
7154
  enumerable: true,
7167
- get: function () { return chunk6SPNZSXS_js.NotFoundError; }
7155
+ get: function () { return chunk5YVX5E7Q_js.NotFoundError; }
7168
7156
  });
7169
7157
  Object.defineProperty(exports, "NotImplementedError", {
7170
7158
  enumerable: true,
7171
- get: function () { return chunk6SPNZSXS_js.NotImplementedError; }
7159
+ get: function () { return chunk5YVX5E7Q_js.NotImplementedError; }
7172
7160
  });
7173
7161
  Object.defineProperty(exports, "ObjectNotFoundError", {
7174
7162
  enumerable: true,
7175
- get: function () { return chunk6SPNZSXS_js.ObjectNotFoundError; }
7163
+ get: function () { return chunk5YVX5E7Q_js.ObjectNotFoundError; }
7176
7164
  });
7177
7165
  Object.defineProperty(exports, "ObjectReferencedError", {
7178
7166
  enumerable: true,
7179
- get: function () { return chunk6SPNZSXS_js.ObjectReferencedError; }
7167
+ get: function () { return chunk5YVX5E7Q_js.ObjectReferencedError; }
7180
7168
  });
7181
7169
  Object.defineProperty(exports, "OrphanSystemAttributeError", {
7182
7170
  enumerable: true,
7183
- get: function () { return chunk6SPNZSXS_js.OrphanSystemAttributeError; }
7171
+ get: function () { return chunk5YVX5E7Q_js.OrphanSystemAttributeError; }
7184
7172
  });
7185
7173
  Object.defineProperty(exports, "ProtectedResourceError", {
7186
7174
  enumerable: true,
7187
- get: function () { return chunk6SPNZSXS_js.ProtectedResourceError; }
7175
+ get: function () { return chunk5YVX5E7Q_js.ProtectedResourceError; }
7188
7176
  });
7189
7177
  Object.defineProperty(exports, "ProtectedRoleError", {
7190
7178
  enumerable: true,
7191
- get: function () { return chunk6SPNZSXS_js.ProtectedRoleError; }
7179
+ get: function () { return chunk5YVX5E7Q_js.ProtectedRoleError; }
7192
7180
  });
7193
7181
  Object.defineProperty(exports, "RecordNotFoundError", {
7194
7182
  enumerable: true,
7195
- get: function () { return chunk6SPNZSXS_js.RecordNotFoundError; }
7183
+ get: function () { return chunk5YVX5E7Q_js.RecordNotFoundError; }
7196
7184
  });
7197
7185
  Object.defineProperty(exports, "RecordReferencedError", {
7198
7186
  enumerable: true,
7199
- get: function () { return chunk6SPNZSXS_js.RecordReferencedError; }
7187
+ get: function () { return chunk5YVX5E7Q_js.RecordReferencedError; }
7200
7188
  });
7201
7189
  Object.defineProperty(exports, "RepositoryError", {
7202
7190
  enumerable: true,
7203
- get: function () { return chunk6SPNZSXS_js.RepositoryError; }
7191
+ get: function () { return chunk5YVX5E7Q_js.RepositoryError; }
7204
7192
  });
7205
7193
  Object.defineProperty(exports, "RoleNotFoundError", {
7206
7194
  enumerable: true,
7207
- get: function () { return chunk6SPNZSXS_js.RoleNotFoundError; }
7195
+ get: function () { return chunk5YVX5E7Q_js.RoleNotFoundError; }
7208
7196
  });
7209
7197
  Object.defineProperty(exports, "SchemaError", {
7210
7198
  enumerable: true,
7211
- get: function () { return chunk6SPNZSXS_js.SchemaError; }
7199
+ get: function () { return chunk5YVX5E7Q_js.SchemaError; }
7212
7200
  });
7213
7201
  Object.defineProperty(exports, "SchemaErrorCode", {
7214
7202
  enumerable: true,
7215
- get: function () { return chunk6SPNZSXS_js.SchemaErrorCode; }
7203
+ get: function () { return chunk5YVX5E7Q_js.SchemaErrorCode; }
7216
7204
  });
7217
7205
  Object.defineProperty(exports, "SearchBackendError", {
7218
7206
  enumerable: true,
7219
- get: function () { return chunk6SPNZSXS_js.SearchBackendError; }
7207
+ get: function () { return chunk5YVX5E7Q_js.SearchBackendError; }
7220
7208
  });
7221
7209
  Object.defineProperty(exports, "StorageError", {
7222
7210
  enumerable: true,
7223
- get: function () { return chunk6SPNZSXS_js.StorageError; }
7211
+ get: function () { return chunk5YVX5E7Q_js.StorageError; }
7224
7212
  });
7225
7213
  Object.defineProperty(exports, "SyncCascadeError", {
7226
7214
  enumerable: true,
7227
- get: function () { return chunk6SPNZSXS_js.SyncCascadeError; }
7215
+ get: function () { return chunk5YVX5E7Q_js.SyncCascadeError; }
7228
7216
  });
7229
7217
  Object.defineProperty(exports, "SyncConflictError", {
7230
7218
  enumerable: true,
7231
- get: function () { return chunk6SPNZSXS_js.SyncConflictError; }
7219
+ get: function () { return chunk5YVX5E7Q_js.SyncConflictError; }
7232
7220
  });
7233
7221
  Object.defineProperty(exports, "SyncError", {
7234
7222
  enumerable: true,
7235
- get: function () { return chunk6SPNZSXS_js.SyncError; }
7223
+ get: function () { return chunk5YVX5E7Q_js.SyncError; }
7236
7224
  });
7237
7225
  Object.defineProperty(exports, "SystemEntityImmutableError", {
7238
7226
  enumerable: true,
7239
- get: function () { return chunk6SPNZSXS_js.SystemEntityImmutableError; }
7227
+ get: function () { return chunk5YVX5E7Q_js.SystemEntityImmutableError; }
7240
7228
  });
7241
7229
  Object.defineProperty(exports, "ValidationError", {
7242
7230
  enumerable: true,
7243
- get: function () { return chunk6SPNZSXS_js.ValidationError; }
7231
+ get: function () { return chunk5YVX5E7Q_js.ValidationError; }
7244
7232
  });
7245
7233
  Object.defineProperty(exports, "computeRecordStatus", {
7246
7234
  enumerable: true,
7247
- get: function () { return chunk6SPNZSXS_js.computeRecordStatus; }
7235
+ get: function () { return chunk5YVX5E7Q_js.computeRecordStatus; }
7248
7236
  });
7249
7237
  Object.defineProperty(exports, "createFormAttributeValidator", {
7250
7238
  enumerable: true,
7251
- get: function () { return chunk6SPNZSXS_js.createFormAttributeValidator; }
7239
+ get: function () { return chunk5YVX5E7Q_js.createFormAttributeValidator; }
7252
7240
  });
7253
7241
  Object.defineProperty(exports, "isAttributeInUseError", {
7254
7242
  enumerable: true,
7255
- get: function () { return chunk6SPNZSXS_js.isAttributeInUseError; }
7243
+ get: function () { return chunk5YVX5E7Q_js.isAttributeInUseError; }
7256
7244
  });
7257
7245
  Object.defineProperty(exports, "isNotFoundError", {
7258
7246
  enumerable: true,
7259
- get: function () { return chunk6SPNZSXS_js.isNotFoundError; }
7247
+ get: function () { return chunk5YVX5E7Q_js.isNotFoundError; }
7260
7248
  });
7261
7249
  Object.defineProperty(exports, "isObjectReferencedError", {
7262
7250
  enumerable: true,
7263
- get: function () { return chunk6SPNZSXS_js.isObjectReferencedError; }
7251
+ get: function () { return chunk5YVX5E7Q_js.isObjectReferencedError; }
7264
7252
  });
7265
7253
  Object.defineProperty(exports, "isProtectedResourceError", {
7266
7254
  enumerable: true,
7267
- get: function () { return chunk6SPNZSXS_js.isProtectedResourceError; }
7255
+ get: function () { return chunk5YVX5E7Q_js.isProtectedResourceError; }
7268
7256
  });
7269
7257
  Object.defineProperty(exports, "isRecordReferencedError", {
7270
7258
  enumerable: true,
7271
- get: function () { return chunk6SPNZSXS_js.isRecordReferencedError; }
7259
+ get: function () { return chunk5YVX5E7Q_js.isRecordReferencedError; }
7272
7260
  });
7273
7261
  Object.defineProperty(exports, "isSchemaError", {
7274
7262
  enumerable: true,
7275
- get: function () { return chunk6SPNZSXS_js.isSchemaError; }
7263
+ get: function () { return chunk5YVX5E7Q_js.isSchemaError; }
7276
7264
  });
7277
7265
  Object.defineProperty(exports, "isValidationError", {
7278
7266
  enumerable: true,
7279
- get: function () { return chunk6SPNZSXS_js.isValidationError; }
7267
+ get: function () { return chunk5YVX5E7Q_js.isValidationError; }
7280
7268
  });
7281
7269
  Object.defineProperty(exports, "rejectUnknownAttributesOrThrow", {
7282
7270
  enumerable: true,
7283
- get: function () { return chunk6SPNZSXS_js.rejectUnknownAttributesOrThrow; }
7271
+ get: function () { return chunk5YVX5E7Q_js.rejectUnknownAttributesOrThrow; }
7284
7272
  });
7285
7273
  Object.defineProperty(exports, "validateDraft", {
7286
7274
  enumerable: true,
7287
- get: function () { return chunk6SPNZSXS_js.validateDraft; }
7275
+ get: function () { return chunk5YVX5E7Q_js.validateDraft; }
7288
7276
  });
7289
7277
  Object.defineProperty(exports, "validateDraftOrThrow", {
7290
7278
  enumerable: true,
7291
- get: function () { return chunk6SPNZSXS_js.validateDraftOrThrow; }
7279
+ get: function () { return chunk5YVX5E7Q_js.validateDraftOrThrow; }
7292
7280
  });
7293
7281
  Object.defineProperty(exports, "validateObject", {
7294
7282
  enumerable: true,
7295
- get: function () { return chunk6SPNZSXS_js.validateObject; }
7283
+ get: function () { return chunk5YVX5E7Q_js.validateObject; }
7296
7284
  });
7297
7285
  Object.defineProperty(exports, "validateObjectOrThrow", {
7298
7286
  enumerable: true,
7299
- get: function () { return chunk6SPNZSXS_js.validateObjectOrThrow; }
7287
+ get: function () { return chunk5YVX5E7Q_js.validateObjectOrThrow; }
7288
+ });
7289
+ Object.defineProperty(exports, "ComputedFormulaParseError", {
7290
+ enumerable: true,
7291
+ get: function () { return chunkNSM2JPC3_js.ComputedFormulaParseError; }
7292
+ });
7293
+ Object.defineProperty(exports, "parseAttributeConfig", {
7294
+ enumerable: true,
7295
+ get: function () { return chunkNSM2JPC3_js.parseAttributeConfig; }
7296
+ });
7297
+ Object.defineProperty(exports, "parseComputedFormula", {
7298
+ enumerable: true,
7299
+ get: function () { return chunkNSM2JPC3_js.parseComputedFormula; }
7300
7300
  });
7301
7301
  Object.defineProperty(exports, "DEFAULT_VALIDATION_MESSAGES", {
7302
7302
  enumerable: true,
package/dist/index.mjs CHANGED
@@ -1,24 +1,24 @@
1
1
  import { generateId } from './chunk-QY6QFRRV.mjs';
2
2
  export { asTenantId, asUserId, deepEqual, generateId, indexBy } from './chunk-QY6QFRRV.mjs';
3
3
  import './chunk-SP3PNHYF.mjs';
4
- import { parseComputedFormula } from './chunk-AAXJJNY6.mjs';
5
- export { ComputedFormulaParseError, parseAttributeConfig, parseComputedFormula } from './chunk-AAXJJNY6.mjs';
6
- import { createObjectValidator, SchemaError, SchemaErrorCode, createAttributeValidator, ValidationError } from './chunk-FRWPIJDK.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-FRWPIJDK.mjs';
4
+ import { createObjectValidator, SchemaError, SchemaErrorCode, createAttributeValidator, ValidationError } from './chunk-SSKDQQHI.mjs';
5
+ 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-SSKDQQHI.mjs';
8
6
  import './chunk-OSSGN43B.mjs';
9
7
  import './chunk-Q44QKLN4.mjs';
10
8
  import './chunk-UANQJ2GH.mjs';
11
9
  import './chunk-NOMHDOVE.mjs';
10
+ import './chunk-CI6EGLL6.mjs';
11
+ import './chunk-YUFTHPOE.mjs';
12
+ import { formatPhoneForDisplay } from './chunk-JUKLL5RJ.mjs';
13
+ import './chunk-GO6LQADH.mjs';
12
14
  import './chunk-QVLQPW3O.mjs';
13
15
  import './chunk-ZDQ5AP26.mjs';
14
16
  import './chunk-LV3FEUKU.mjs';
15
17
  import './chunk-UXAHLSWC.mjs';
16
18
  import './chunk-NS63SPNN.mjs';
19
+ import { parseComputedFormula } from './chunk-AAXJJNY6.mjs';
20
+ export { ComputedFormulaParseError, parseAttributeConfig, parseComputedFormula } from './chunk-AAXJJNY6.mjs';
17
21
  import './chunk-AYVHMVKQ.mjs';
18
- import './chunk-CI6EGLL6.mjs';
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-BpMes5H_.mjs';
1
+ import { A as Attribute } from './attributes-ej1MUv6H.mjs';
2
2
 
3
3
  /**
4
4
  * Validation messages for Zod validators.
@@ -1,4 +1,4 @@
1
- import { A as Attribute } from './attributes-B4847Nul.js';
1
+ import { A as Attribute } from './attributes-C8AjT2x0.js';
2
2
 
3
3
  /**
4
4
  * Validation messages for Zod validators.
@@ -1,8 +1,8 @@
1
- export { V as ValidationMessages } from '../types-CyxVuV_d.mjs';
1
+ export { V as ValidationMessages } from '../types-DrT3ZBoK.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-ow7sORSi.mjs';
5
- import '../attributes-BpMes5H_.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-CihXtV0s.mjs';
5
+ import '../attributes-ej1MUv6H.mjs';
6
6
  import '@stndrds/constants';
7
7
  import '../utils.mjs';
8
8
  import 'zod';