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

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-C6pCxr5P.d.mts → attributes-D6PICHuH.d.mts} +1 -1
  2. package/dist/{attributes-DZIol94T.d.ts → attributes-c0_kaRr7.d.ts} +1 -1
  3. package/dist/{helpers-Ca3PIt9O.d.mts → helpers-8AfBPkSS.d.mts} +2 -2
  4. package/dist/{helpers-B3EPtA8t.d.ts → helpers-D5Vsw5Ps.d.ts} +2 -2
  5. package/dist/index.d.mts +9 -7
  6. package/dist/index.d.ts +9 -7
  7. package/dist/index.js +141 -76
  8. package/dist/index.mjs +74 -11
  9. package/dist/{types-CBV2_ikK.d.ts → types-D6oD2MXG.d.ts} +1 -1
  10. package/dist/{types-DjGoodOL.d.mts → types-OTEsO6Ho.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-6CTUPVHH.mjs → chunk-PWBKZKLY.mjs} +2 -2
  53. package/dist/{chunk-MUGKKCY3.js → chunk-WVYBALNG.js} +2 -2
package/dist/index.mjs CHANGED
@@ -3,12 +3,14 @@ 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-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';
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';
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';
12
14
  import './chunk-QVLQPW3O.mjs';
13
15
  import './chunk-ZDQ5AP26.mjs';
14
16
  import './chunk-LV3FEUKU.mjs';
@@ -17,8 +19,6 @@ import './chunk-NS63SPNN.mjs';
17
19
  import './chunk-AYVHMVKQ.mjs';
18
20
  import './chunk-CI6EGLL6.mjs';
19
21
  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';
@@ -420,6 +420,52 @@ var AUTOFILL_ELIGIBLE_TYPES = [
420
420
  "multiselect"
421
421
  ];
422
422
 
423
+ // src/types/audit.ts
424
+ var AUDIT_RESOURCE_TYPES = [
425
+ "record",
426
+ "object",
427
+ "attribute",
428
+ "user",
429
+ "role",
430
+ "settings",
431
+ "file"
432
+ ];
433
+ var AUDIT_ACTIONS = [
434
+ // Records
435
+ "record.created",
436
+ "record.updated",
437
+ "record.deleted",
438
+ "record.restored",
439
+ "record.purged",
440
+ // Schema - Objects
441
+ "object.created",
442
+ "object.updated",
443
+ "object.deleted",
444
+ // Schema - Attributes
445
+ "attribute.created",
446
+ "attribute.updated",
447
+ "attribute.deleted",
448
+ // Users
449
+ "user.created",
450
+ "user.invited",
451
+ "user.updated",
452
+ "user.deleted",
453
+ "user.login",
454
+ "user.logout",
455
+ // Roles
456
+ "role.created",
457
+ "role.updated",
458
+ "role.deleted",
459
+ "role.assigned",
460
+ "role.revoked",
461
+ // Settings
462
+ "settings.updated",
463
+ // Files
464
+ "file.uploaded",
465
+ "file.updated",
466
+ "file.deleted"
467
+ ];
468
+
423
469
  // src/types/document-layout.ts
424
470
  var MAX_PRESET_DEPTH = 5;
425
471
 
@@ -2733,7 +2779,7 @@ var ObjectBuilder = class {
2733
2779
  documentLayout(layout) {
2734
2780
  if (layout.presets) {
2735
2781
  for (const preset of layout.presets) {
2736
- validatePresetDepth(preset.structure, 1);
2782
+ validatePresetStructure(preset.id, preset.structure, 1);
2737
2783
  }
2738
2784
  }
2739
2785
  this.obj.documentLayout = layout;
@@ -2851,13 +2897,30 @@ var ObjectBuilder = class {
2851
2897
  function object(config) {
2852
2898
  return new ObjectBuilder(config);
2853
2899
  }
2854
- function validatePresetDepth(nodes, depth) {
2900
+ function validatePresetStructure(presetId, nodes, depth) {
2901
+ const fail = (message, detail) => {
2902
+ throw new ValidationError(message, [
2903
+ { path: ["documentLayout", "presets", presetId], message: detail }
2904
+ ]);
2905
+ };
2855
2906
  if (depth > MAX_PRESET_DEPTH) {
2856
- throw new Error(`Preset structure exceeds max depth of ${MAX_PRESET_DEPTH}`);
2907
+ fail(`Preset structure exceeds max depth of ${MAX_PRESET_DEPTH}`, "Preset structure too deep");
2857
2908
  }
2909
+ const seenSiblingTitles = /* @__PURE__ */ new Set();
2858
2910
  for (const node of nodes) {
2911
+ const title = node.title.trim();
2912
+ if (title.length === 0) {
2913
+ fail("Folder preset node title is required", "Empty folder title");
2914
+ }
2915
+ if (title.includes("/")) {
2916
+ fail("Folder preset node title cannot contain /", `Folder title contains /: "${title}"`);
2917
+ }
2918
+ if (seenSiblingTitles.has(title)) {
2919
+ fail("Folder preset sibling titles must be unique", `Duplicate folder title: "${title}"`);
2920
+ }
2921
+ seenSiblingTitles.add(title);
2859
2922
  if (node.children && node.children.length > 0) {
2860
- validatePresetDepth(node.children, depth + 1);
2923
+ validatePresetStructure(presetId, node.children, depth + 1);
2861
2924
  }
2862
2925
  }
2863
2926
  }
@@ -4602,8 +4665,8 @@ var registry = new NativeObjectRegistryClass();
4602
4665
  var SKILL_OBJECT = object({ name: "skill", label: "Skill" }).sealed().icon("sparkles").order(Number.MAX_SAFE_INTEGER).pluralLabel("Skills").labelExpression("{{ name }}").embeddingExpression("{{ name }}\n{{ description }}\n{{ content }}").attribute(text({ name: "name", label: "Name" }).maxLength(SKILL_NAME_MAX_LENGTH).required()).attribute(
4603
4666
  text({ name: "description", label: "Description" }).multiline().maxLength(SKILL_DESCRIPTION_MAX_LENGTH).required()
4604
4667
  ).attribute(richtext({ name: "content", label: "Content" })).build();
4605
- var SKILL_VIEW = detailView("skill-detail", "Skill").for("skill").default().sidePanel({ attributes: ["name", "description"] }).tab("content", "Content").richtext("content").titleAttribute("name").done().build();
4606
- var SKILL_LIST_VIEW = listView("skill-list", "Skills").for("skill").default().tab("all", "All").table().columns("name", "description").sort("name", "asc").build();
4668
+ var SKILL_VIEW = detailView("skill-detail", "Skill").for("skill").version(2).default().sidePanel({ attributes: ["name", "description"] }).tab("content", "Content").richtext("content").titleAttribute("name").done().build();
4669
+ var SKILL_LIST_VIEW = listView("skill-list", "Skills").for("skill").version(2).default().tab("all", "All").table().columns("name", "description").sort("name", "asc").build();
4607
4670
 
4608
4671
  // src/views/registry.ts
4609
4672
  var ViewRegistry = class {
@@ -6924,4 +6987,4 @@ function validateQualifiedRule(rule, context) {
6924
6987
  assertRelativeDateValue(rule);
6925
6988
  }
6926
6989
 
6927
- export { ALLOWED_PROPERTY_TYPES, ALL_ACTIONS, ALL_SYSTEM_RESOURCES, ATTRIBUTE_FILTER_OPERATORS, AUTOFILL_ELIGIBLE_TYPES, ActivityTabConfig, BEHAVIOR_PROPERTIES, COMPUTED_FUNCTIONS, COMPUTED_FUNCTION_METADATA, COMPUTED_FUNCTION_NAMES, ComputedFormulaCompileError, CustomTabConfig, DB_COLUMN_FIELDS, DEFAULT_DOCUMENT_SLOT, DEFAULT_ROLES, DEFAULT_ROLE_DESCRIPTIONS, DEFAULT_ROLE_LABELS, DEFAULT_ROLE_PERMISSIONS, DOCUMENT_SYSTEM_ATTRIBUTES, DetailViewBuilder, DocumentSlotValidationError, DocumentsTabConfig, EMPTY_VALUE_PLACEHOLDER, EmailsTabConfig, FORM_FORBIDDEN_ATTRIBUTE_TYPES, FlagRegistry, FlagService, FormBuilder, FormRegistry, FormRowBuilder, FormStepBuilder, GroupBuilder, IDENTITY_PROPERTIES, LIVE_EVENT_TYPES, LIVE_STREAM_START_CURSOR, ListViewBuilder, ListViewTabConfigBuilder, MAX_PRESET_DEPTH, NOTIFICATION_INBOX_STATES, NOTIFICATION_KINDS, NOTIFICATION_PRIORITIES, NOTIFICATION_SENSITIVITIES, NOTIFICATION_TYPES_V1, NOTIFICATION_TYPE_AGENT_QUESTION_REQUESTED, NOTIFICATION_TYPE_AGENT_SESSION_COMPLETED, NOTIFICATION_TYPE_AGENT_SESSION_FAILED, NOTIFICATION_TYPE_AGENT_SESSION_TIMEOUT, NOTIFICATION_TYPE_AGENT_SESSION_WAITING_HUMAN, NOTIFICATION_TYPE_AGENT_TASK_ASSIGNED, NOTIFICATION_WORK_STATES, NO_VALUE_OPERATORS, NoopGeocodingAdapter, OPERATORS_BY_TYPE, OPERATOR_SPECS, ObjectBuilder, PRESENTATION_PROPERTIES, QUALIFIED_SEPARATOR, RELATION_TARGET_ANY, RESERVED_ATTRIBUTE_NAMES, RESERVED_OBJECT_NAMES, RelationGroupBuilder, RichtextTabConfig, SKILL_LIST_VIEW, SKILL_OBJECT, SKILL_VIEW, STANDARD_SCHEMA_VENDOR, SYSTEM_ATTRIBUTES, SYSTEM_ATTRIBUTE_I18N_KEYS, SYSTEM_FIELD_NAMES, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, TabBuilder, TableTabConfig, USER_STATUSES, accessLevelToActions, actionsToAccessLevel, applyPipes, assertAcyclicComputedDependencies, assertLiveStreamCursor, booleanFlag, buildPropertySchema, buildQualifiedAttribute, checkbox, compareLiveStreamCursors, compileComputedFormula, compileRollupAttribute, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, currentActor, date, detailView, document, evaluateComputedAst, evaluateComputedFormula, evaluateComputedFormulaWithResult, evaluateFilterState, extractAttributeNames, file, flagRegistry, form, formRegistry, formatAttributeValue, formatComputedResult, formatLocationValue, formula, generateDefaultDetailView, generateDefaultListView, getActiveTab, getAttributeCapabilities, getAttributeFilterOperators, getErrorMessage, getLiveProtocolPayloadChannel, getOperatorPolarity, getRollupFilterOperators2 as getRollupFilterOperators, getSystemAttributeI18nKey, getSystemAttributeList, group, hasOptions, inferInverseCardinality, inferRollupReturnType, isAttributeFilterable, isAttributeGroupable, isAttributeKanbanGroupable, isAttributeSearchable, isAttributeSortable2 as isAttributeSortable, isBilateralRelation, isComputedFunctionName, isDefaultRole, isDetailView, isDocumentAttribute, isDynamicValue, isEmptyObject, isFieldGroup, isFormDefinition, isFormFieldsRow, isFormFreeFieldRef, isFormHeadingRow, isFormSeparatorRow, isFormSlotFieldRef, isFormTextRow, isLabelExpression, isListView, isLiveErrorPayload, isLiveEventEnvelope, isLiveEventPayload, isLiveEventPayloadForType, isLiveEventType, isLiveGapPayload, isLiveReplayCompletePayload, isLiveStreamCursor, isNoValueOperator, isNotEmpty, isPlainRecord, isRelationGroup, isStandardSchema, isUniversalRelation, jsonFlag, listView, liveChannelKey, location, matchesMime, multiselect, normaliseDocumentSlots, normalizeForEdgeRpc, now, number, numberFlag, object, parseLiveChannelKey, parseLiveSubscribePayload, parseLiveUnsubscribePayload, parseQualifiedAttribute, phone, registry, relation, relationGroup, renderLabelExpression, resetViewToDefault, resolvePropertyDefinitions, richtext, rollup, rollupToFormulaExpression, select, status, stringFlag, text, toUndefinedIfEmpty, today, user, validateAttributeName, validateQualifiedRule, validateSlotAgainstConfig, viewRegistry };
6990
+ export { ALLOWED_PROPERTY_TYPES, ALL_ACTIONS, ALL_SYSTEM_RESOURCES, ATTRIBUTE_FILTER_OPERATORS, AUDIT_ACTIONS, AUDIT_RESOURCE_TYPES, AUTOFILL_ELIGIBLE_TYPES, ActivityTabConfig, BEHAVIOR_PROPERTIES, COMPUTED_FUNCTIONS, COMPUTED_FUNCTION_METADATA, COMPUTED_FUNCTION_NAMES, ComputedFormulaCompileError, CustomTabConfig, DB_COLUMN_FIELDS, DEFAULT_DOCUMENT_SLOT, DEFAULT_ROLES, DEFAULT_ROLE_DESCRIPTIONS, DEFAULT_ROLE_LABELS, DEFAULT_ROLE_PERMISSIONS, DOCUMENT_SYSTEM_ATTRIBUTES, DetailViewBuilder, DocumentSlotValidationError, DocumentsTabConfig, EMPTY_VALUE_PLACEHOLDER, EmailsTabConfig, FORM_FORBIDDEN_ATTRIBUTE_TYPES, FlagRegistry, FlagService, FormBuilder, FormRegistry, FormRowBuilder, FormStepBuilder, GroupBuilder, IDENTITY_PROPERTIES, LIVE_EVENT_TYPES, LIVE_STREAM_START_CURSOR, ListViewBuilder, ListViewTabConfigBuilder, MAX_PRESET_DEPTH, NOTIFICATION_INBOX_STATES, NOTIFICATION_KINDS, NOTIFICATION_PRIORITIES, NOTIFICATION_SENSITIVITIES, NOTIFICATION_TYPES_V1, NOTIFICATION_TYPE_AGENT_QUESTION_REQUESTED, NOTIFICATION_TYPE_AGENT_SESSION_COMPLETED, NOTIFICATION_TYPE_AGENT_SESSION_FAILED, NOTIFICATION_TYPE_AGENT_SESSION_TIMEOUT, NOTIFICATION_TYPE_AGENT_SESSION_WAITING_HUMAN, NOTIFICATION_TYPE_AGENT_TASK_ASSIGNED, NOTIFICATION_WORK_STATES, NO_VALUE_OPERATORS, NoopGeocodingAdapter, OPERATORS_BY_TYPE, OPERATOR_SPECS, ObjectBuilder, PRESENTATION_PROPERTIES, QUALIFIED_SEPARATOR, RELATION_TARGET_ANY, RESERVED_ATTRIBUTE_NAMES, RESERVED_OBJECT_NAMES, RelationGroupBuilder, RichtextTabConfig, SKILL_LIST_VIEW, SKILL_OBJECT, SKILL_VIEW, STANDARD_SCHEMA_VENDOR, SYSTEM_ATTRIBUTES, SYSTEM_ATTRIBUTE_I18N_KEYS, SYSTEM_FIELD_NAMES, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, TabBuilder, TableTabConfig, USER_STATUSES, accessLevelToActions, actionsToAccessLevel, applyPipes, assertAcyclicComputedDependencies, assertLiveStreamCursor, booleanFlag, buildPropertySchema, buildQualifiedAttribute, checkbox, compareLiveStreamCursors, compileComputedFormula, compileRollupAttribute, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, currentActor, date, detailView, document, evaluateComputedAst, evaluateComputedFormula, evaluateComputedFormulaWithResult, evaluateFilterState, extractAttributeNames, file, flagRegistry, form, formRegistry, formatAttributeValue, formatComputedResult, formatLocationValue, formula, generateDefaultDetailView, generateDefaultListView, getActiveTab, getAttributeCapabilities, getAttributeFilterOperators, getErrorMessage, getLiveProtocolPayloadChannel, getOperatorPolarity, getRollupFilterOperators2 as getRollupFilterOperators, getSystemAttributeI18nKey, getSystemAttributeList, group, hasOptions, inferInverseCardinality, inferRollupReturnType, isAttributeFilterable, isAttributeGroupable, isAttributeKanbanGroupable, isAttributeSearchable, isAttributeSortable2 as isAttributeSortable, isBilateralRelation, isComputedFunctionName, isDefaultRole, isDetailView, isDocumentAttribute, isDynamicValue, isEmptyObject, isFieldGroup, isFormDefinition, isFormFieldsRow, isFormFreeFieldRef, isFormHeadingRow, isFormSeparatorRow, isFormSlotFieldRef, isFormTextRow, isLabelExpression, isListView, isLiveErrorPayload, isLiveEventEnvelope, isLiveEventPayload, isLiveEventPayloadForType, isLiveEventType, isLiveGapPayload, isLiveReplayCompletePayload, isLiveStreamCursor, isNoValueOperator, isNotEmpty, isPlainRecord, isRelationGroup, isStandardSchema, isUniversalRelation, jsonFlag, listView, liveChannelKey, location, matchesMime, multiselect, normaliseDocumentSlots, normalizeForEdgeRpc, now, number, numberFlag, object, parseLiveChannelKey, parseLiveSubscribePayload, parseLiveUnsubscribePayload, parseQualifiedAttribute, phone, registry, relation, relationGroup, renderLabelExpression, resetViewToDefault, resolvePropertyDefinitions, richtext, rollup, rollupToFormulaExpression, select, status, stringFlag, text, toUndefinedIfEmpty, today, user, validateAttributeName, validateQualifiedRule, validateSlotAgainstConfig, viewRegistry };
@@ -1,4 +1,4 @@
1
- import { A as Attribute } from './attributes-DZIol94T.js';
1
+ import { A as Attribute } from './attributes-c0_kaRr7.js';
2
2
 
3
3
  /**
4
4
  * Validation messages for Zod validators.
@@ -1,4 +1,4 @@
1
- import { A as Attribute } from './attributes-C6pCxr5P.mjs';
1
+ import { A as Attribute } from './attributes-D6PICHuH.mjs';
2
2
 
3
3
  /**
4
4
  * Validation messages for Zod validators.
@@ -1,8 +1,8 @@
1
- export { V as ValidationMessages } from '../types-DjGoodOL.mjs';
1
+ export { V as ValidationMessages } from '../types-OTEsO6Ho.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-Ca3PIt9O.mjs';
5
- import '../attributes-C6pCxr5P.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';
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-CBV2_ikK.js';
1
+ export { V as ValidationMessages } from '../types-D6oD2MXG.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-B3EPtA8t.js';
5
- import '../attributes-DZIol94T.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';
6
6
  import '@stndrds/constants';
7
7
  import '../utils.js';
8
8
  import 'zod';
@@ -2,11 +2,13 @@
2
2
 
3
3
  require('../chunk-PGERPYDR.js');
4
4
  var chunkNSM2JPC3_js = require('../chunk-NSM2JPC3.js');
5
- var chunkMUGKKCY3_js = require('../chunk-MUGKKCY3.js');
5
+ var chunkWVYBALNG_js = require('../chunk-WVYBALNG.js');
6
6
  require('../chunk-5WATIVCA.js');
7
7
  require('../chunk-O44XVGHE.js');
8
8
  require('../chunk-YIP5FJ5H.js');
9
9
  require('../chunk-SGSGREPG.js');
10
+ require('../chunk-EBGRZUIH.js');
11
+ require('../chunk-EEH4XQ7W.js');
10
12
  require('../chunk-EW5XR2X3.js');
11
13
  require('../chunk-QWKLQRBX.js');
12
14
  require('../chunk-KNGWHQLR.js');
@@ -15,8 +17,6 @@ require('../chunk-V2UA2D4E.js');
15
17
  require('../chunk-ACKMC6FL.js');
16
18
  require('../chunk-Q5DIOYUE.js');
17
19
  require('../chunk-E6JUYGJX.js');
18
- require('../chunk-EBGRZUIH.js');
19
- require('../chunk-EEH4XQ7W.js');
20
20
  var chunkYKWSHBT5_js = require('../chunk-YKWSHBT5.js');
21
21
 
22
22
 
@@ -27,31 +27,31 @@ Object.defineProperty(exports, "parseAttributeConfig", {
27
27
  });
28
28
  Object.defineProperty(exports, "computeRecordStatus", {
29
29
  enumerable: true,
30
- get: function () { return chunkMUGKKCY3_js.computeRecordStatus; }
30
+ get: function () { return chunkWVYBALNG_js.computeRecordStatus; }
31
31
  });
32
32
  Object.defineProperty(exports, "createFormAttributeValidator", {
33
33
  enumerable: true,
34
- get: function () { return chunkMUGKKCY3_js.createFormAttributeValidator; }
34
+ get: function () { return chunkWVYBALNG_js.createFormAttributeValidator; }
35
35
  });
36
36
  Object.defineProperty(exports, "rejectUnknownAttributesOrThrow", {
37
37
  enumerable: true,
38
- get: function () { return chunkMUGKKCY3_js.rejectUnknownAttributesOrThrow; }
38
+ get: function () { return chunkWVYBALNG_js.rejectUnknownAttributesOrThrow; }
39
39
  });
40
40
  Object.defineProperty(exports, "validateDraft", {
41
41
  enumerable: true,
42
- get: function () { return chunkMUGKKCY3_js.validateDraft; }
42
+ get: function () { return chunkWVYBALNG_js.validateDraft; }
43
43
  });
44
44
  Object.defineProperty(exports, "validateDraftOrThrow", {
45
45
  enumerable: true,
46
- get: function () { return chunkMUGKKCY3_js.validateDraftOrThrow; }
46
+ get: function () { return chunkWVYBALNG_js.validateDraftOrThrow; }
47
47
  });
48
48
  Object.defineProperty(exports, "validateObject", {
49
49
  enumerable: true,
50
- get: function () { return chunkMUGKKCY3_js.validateObject; }
50
+ get: function () { return chunkWVYBALNG_js.validateObject; }
51
51
  });
52
52
  Object.defineProperty(exports, "validateObjectOrThrow", {
53
53
  enumerable: true,
54
- get: function () { return chunkMUGKKCY3_js.validateObjectOrThrow; }
54
+ get: function () { return chunkWVYBALNG_js.validateObjectOrThrow; }
55
55
  });
56
56
  Object.defineProperty(exports, "DEFAULT_VALIDATION_MESSAGES", {
57
57
  enumerable: true,
@@ -1,10 +1,12 @@
1
1
  import '../chunk-SP3PNHYF.mjs';
2
2
  export { parseAttributeConfig } from '../chunk-AAXJJNY6.mjs';
3
- export { computeRecordStatus, createFormAttributeValidator, rejectUnknownAttributesOrThrow, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow } from '../chunk-6CTUPVHH.mjs';
3
+ export { computeRecordStatus, createFormAttributeValidator, rejectUnknownAttributesOrThrow, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow } from '../chunk-PWBKZKLY.mjs';
4
4
  import '../chunk-OSSGN43B.mjs';
5
5
  import '../chunk-6I2R22CX.mjs';
6
6
  import '../chunk-UANQJ2GH.mjs';
7
7
  import '../chunk-NOMHDOVE.mjs';
8
+ import '../chunk-JUKLL5RJ.mjs';
9
+ import '../chunk-GO6LQADH.mjs';
8
10
  import '../chunk-QVLQPW3O.mjs';
9
11
  import '../chunk-ZDQ5AP26.mjs';
10
12
  import '../chunk-LV3FEUKU.mjs';
@@ -13,6 +15,4 @@ import '../chunk-NS63SPNN.mjs';
13
15
  import '../chunk-AYVHMVKQ.mjs';
14
16
  import '../chunk-CI6EGLL6.mjs';
15
17
  import '../chunk-YUFTHPOE.mjs';
16
- import '../chunk-JUKLL5RJ.mjs';
17
- import '../chunk-GO6LQADH.mjs';
18
18
  export { DEFAULT_VALIDATION_MESSAGES, formatZodErrors } from '../chunk-HRQEZUAA.mjs';
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { C as CurrencyAttribute } from '../../attributes-C6pCxr5P.mjs';
3
- import { V as ValidationMessages } from '../../types-DjGoodOL.mjs';
2
+ import { C as CurrencyAttribute } from '../../attributes-D6PICHuH.mjs';
3
+ import { V as ValidationMessages } from '../../types-OTEsO6Ho.mjs';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.mjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { C as CurrencyAttribute } from '../../attributes-DZIol94T.js';
3
- import { V as ValidationMessages } from '../../types-CBV2_ikK.js';
2
+ import { C as CurrencyAttribute } from '../../attributes-c0_kaRr7.js';
3
+ import { V as ValidationMessages } from '../../types-D6oD2MXG.js';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { F as FileAttribute } from '../../attributes-C6pCxr5P.mjs';
3
- import { V as ValidationMessages } from '../../types-DjGoodOL.mjs';
2
+ import { a as FileAttribute } from '../../attributes-D6PICHuH.mjs';
3
+ import { V as ValidationMessages } from '../../types-OTEsO6Ho.mjs';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.mjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { F as FileAttribute } from '../../attributes-DZIol94T.js';
3
- import { V as ValidationMessages } from '../../types-CBV2_ikK.js';
2
+ import { a as FileAttribute } from '../../attributes-c0_kaRr7.js';
3
+ import { V as ValidationMessages } from '../../types-D6oD2MXG.js';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { L as LocationAttribute } from '../../attributes-C6pCxr5P.mjs';
3
- import { V as ValidationMessages } from '../../types-DjGoodOL.mjs';
2
+ import { L as LocationAttribute } from '../../attributes-D6PICHuH.mjs';
3
+ import { V as ValidationMessages } from '../../types-OTEsO6Ho.mjs';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.mjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { L as LocationAttribute } from '../../attributes-DZIol94T.js';
3
- import { V as ValidationMessages } from '../../types-CBV2_ikK.js';
2
+ import { L as LocationAttribute } from '../../attributes-c0_kaRr7.js';
3
+ import { V as ValidationMessages } from '../../types-D6oD2MXG.js';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { P as PhoneAttribute } from '../../attributes-C6pCxr5P.mjs';
3
- import { V as ValidationMessages } from '../../types-DjGoodOL.mjs';
2
+ import { P as PhoneAttribute } from '../../attributes-D6PICHuH.mjs';
3
+ import { V as ValidationMessages } from '../../types-OTEsO6Ho.mjs';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.mjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { P as PhoneAttribute } from '../../attributes-DZIol94T.js';
3
- import { V as ValidationMessages } from '../../types-CBV2_ikK.js';
2
+ import { P as PhoneAttribute } from '../../attributes-c0_kaRr7.js';
3
+ import { V as ValidationMessages } from '../../types-D6oD2MXG.js';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { M as MultiRelationAttribute, R as RelationAttribute, S as SingleRelationAttribute } from '../../attributes-C6pCxr5P.mjs';
3
- import { V as ValidationMessages } from '../../types-DjGoodOL.mjs';
2
+ import { M as MultiRelationAttribute, b as RelationAttribute, S as SingleRelationAttribute } from '../../attributes-D6PICHuH.mjs';
3
+ import { V as ValidationMessages } from '../../types-OTEsO6Ho.mjs';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.mjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { M as MultiRelationAttribute, R as RelationAttribute, S as SingleRelationAttribute } from '../../attributes-DZIol94T.js';
3
- import { V as ValidationMessages } from '../../types-CBV2_ikK.js';
2
+ import { M as MultiRelationAttribute, b as RelationAttribute, S as SingleRelationAttribute } from '../../attributes-c0_kaRr7.js';
3
+ import { V as ValidationMessages } from '../../types-D6oD2MXG.js';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { a as RichtextAttribute } from '../../attributes-C6pCxr5P.mjs';
3
- import { V as ValidationMessages } from '../../types-DjGoodOL.mjs';
2
+ import { c as RichtextAttribute } from '../../attributes-D6PICHuH.mjs';
3
+ import { V as ValidationMessages } from '../../types-OTEsO6Ho.mjs';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.mjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { a as RichtextAttribute } from '../../attributes-DZIol94T.js';
3
- import { V as ValidationMessages } from '../../types-CBV2_ikK.js';
2
+ import { c as RichtextAttribute } from '../../attributes-c0_kaRr7.js';
3
+ import { V as ValidationMessages } from '../../types-D6oD2MXG.js';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { b as MultiselectAttribute, c as SelectAttribute, d as StatusAttribute } from '../../attributes-C6pCxr5P.mjs';
3
- import { V as ValidationMessages } from '../../types-DjGoodOL.mjs';
2
+ import { d as MultiselectAttribute, e as SelectAttribute, f as StatusAttribute } from '../../attributes-D6PICHuH.mjs';
3
+ import { V as ValidationMessages } from '../../types-OTEsO6Ho.mjs';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.mjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { b as MultiselectAttribute, c as SelectAttribute, d as StatusAttribute } from '../../attributes-DZIol94T.js';
3
- import { V as ValidationMessages } from '../../types-CBV2_ikK.js';
2
+ import { d as MultiselectAttribute, e as SelectAttribute, f as StatusAttribute } from '../../attributes-c0_kaRr7.js';
3
+ import { V as ValidationMessages } from '../../types-D6oD2MXG.js';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { U as UserAttribute } from '../../attributes-C6pCxr5P.mjs';
3
- import { V as ValidationMessages } from '../../types-DjGoodOL.mjs';
2
+ import { U as UserAttribute } from '../../attributes-D6PICHuH.mjs';
3
+ import { V as ValidationMessages } from '../../types-OTEsO6Ho.mjs';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.mjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { U as UserAttribute } from '../../attributes-DZIol94T.js';
3
- import { V as ValidationMessages } from '../../types-CBV2_ikK.js';
2
+ import { U as UserAttribute } from '../../attributes-c0_kaRr7.js';
3
+ import { V as ValidationMessages } from '../../types-D6oD2MXG.js';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { e as FormulaAttribute } from '../../attributes-C6pCxr5P.mjs';
3
- import { V as ValidationMessages } from '../../types-DjGoodOL.mjs';
2
+ import { F as FormulaAttribute } from '../../attributes-D6PICHuH.mjs';
3
+ import { V as ValidationMessages } from '../../types-OTEsO6Ho.mjs';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.mjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { e as FormulaAttribute } from '../../attributes-DZIol94T.js';
3
- import { V as ValidationMessages } from '../../types-CBV2_ikK.js';
2
+ import { F as FormulaAttribute } from '../../attributes-c0_kaRr7.js';
3
+ import { V as ValidationMessages } from '../../types-D6oD2MXG.js';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { f as RollupAttribute } from '../../attributes-C6pCxr5P.mjs';
3
- import { V as ValidationMessages } from '../../types-DjGoodOL.mjs';
2
+ import { R as RollupAttribute } from '../../attributes-D6PICHuH.mjs';
3
+ import { V as ValidationMessages } from '../../types-OTEsO6Ho.mjs';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.mjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { f as RollupAttribute } from '../../attributes-DZIol94T.js';
3
- import { V as ValidationMessages } from '../../types-CBV2_ikK.js';
2
+ import { R as RollupAttribute } from '../../attributes-c0_kaRr7.js';
3
+ import { V as ValidationMessages } from '../../types-D6oD2MXG.js';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.js';
6
6
 
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { k as AttributeType } from '../../attributes-C6pCxr5P.mjs';
2
+ import { k as AttributeType } from '../../attributes-D6PICHuH.mjs';
3
3
  import '@stndrds/constants';
4
4
  import '../../utils.mjs';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { k as AttributeType } from '../../attributes-DZIol94T.js';
2
+ import { k as AttributeType } from '../../attributes-c0_kaRr7.js';
3
3
  import '@stndrds/constants';
4
4
  import '../../utils.js';
5
5
 
@@ -1,7 +1,7 @@
1
- import { V as ValidationMessages } from '../../types-DjGoodOL.mjs';
2
- export { a as ValidationResult } from '../../types-DjGoodOL.mjs';
1
+ import { V as ValidationMessages } from '../../types-OTEsO6Ho.mjs';
2
+ export { a as ValidationResult } from '../../types-OTEsO6Ho.mjs';
3
3
  import { z } from 'zod';
4
- import '../../attributes-C6pCxr5P.mjs';
4
+ import '../../attributes-D6PICHuH.mjs';
5
5
  import '@stndrds/constants';
6
6
  import '../../utils.mjs';
7
7
 
@@ -1,7 +1,7 @@
1
- import { V as ValidationMessages } from '../../types-CBV2_ikK.js';
2
- export { a as ValidationResult } from '../../types-CBV2_ikK.js';
1
+ import { V as ValidationMessages } from '../../types-D6oD2MXG.js';
2
+ export { a as ValidationResult } from '../../types-D6oD2MXG.js';
3
3
  import { z } from 'zod';
4
- import '../../attributes-DZIol94T.js';
4
+ import '../../attributes-c0_kaRr7.js';
5
5
  import '@stndrds/constants';
6
6
  import '../../utils.js';
7
7
 
@@ -1,7 +1,7 @@
1
- export { c as computeRecordStatus, f as createAttributeValidator, a as createFormAttributeValidator, g as getMissingRequiredAttributes, i as isRecordComplete, r as rejectUnknownAttributesOrThrow, h as validateAttribute, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../../helpers-Ca3PIt9O.mjs';
1
+ export { c as computeRecordStatus, f as createAttributeValidator, a as createFormAttributeValidator, g as getMissingRequiredAttributes, i as isRecordComplete, r as rejectUnknownAttributesOrThrow, h as validateAttribute, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../../helpers-8AfBPkSS.mjs';
2
2
  import { z } from 'zod';
3
- import { O as ObjectDefinition } from '../../attributes-C6pCxr5P.mjs';
4
- import '../../types-DjGoodOL.mjs';
3
+ import { O as ObjectDefinition } from '../../attributes-D6PICHuH.mjs';
4
+ import '../../types-OTEsO6Ho.mjs';
5
5
  import '@stndrds/constants';
6
6
  import '../../utils.mjs';
7
7
 
@@ -1,7 +1,7 @@
1
- export { c as computeRecordStatus, f as createAttributeValidator, a as createFormAttributeValidator, g as getMissingRequiredAttributes, i as isRecordComplete, r as rejectUnknownAttributesOrThrow, h as validateAttribute, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../../helpers-B3EPtA8t.js';
1
+ export { c as computeRecordStatus, f as createAttributeValidator, a as createFormAttributeValidator, g as getMissingRequiredAttributes, i as isRecordComplete, r as rejectUnknownAttributesOrThrow, h as validateAttribute, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../../helpers-D5Vsw5Ps.js';
2
2
  import { z } from 'zod';
3
- import { O as ObjectDefinition } from '../../attributes-DZIol94T.js';
4
- import '../../types-CBV2_ikK.js';
3
+ import { O as ObjectDefinition } from '../../attributes-c0_kaRr7.js';
4
+ import '../../types-D6oD2MXG.js';
5
5
  import '@stndrds/constants';
6
6
  import '../../utils.js';
7
7