@stndrds/schema 1.0.0-alpha.94 → 1.0.0-alpha.96

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 (137) hide show
  1. package/dist/attributes-Btn-GLvC.d.ts +674 -0
  2. package/dist/attributes-CeDp1IMp.d.mts +674 -0
  3. package/dist/chunk-2TEWGEUI.js +212 -0
  4. package/dist/chunk-4RGFTMQR.mjs +8 -0
  5. package/dist/chunk-5TLM4QXO.mjs +8 -0
  6. package/dist/chunk-67PQMHQA.mjs +199 -0
  7. package/dist/chunk-6HHSX6LP.js +64 -0
  8. package/dist/chunk-AHPXNPJC.js +105 -0
  9. package/dist/chunk-BEN6TE7Y.js +11 -0
  10. package/dist/chunk-BH3RPSC5.js +22 -0
  11. package/dist/chunk-BIQ35DLC.mjs +78 -0
  12. package/dist/chunk-CKZHFJQT.js +16 -0
  13. package/dist/chunk-E6XO2STS.js +11 -11
  14. package/dist/chunk-EIWGW2ML.mjs +99 -0
  15. package/dist/chunk-EKG35CSO.mjs +1 -0
  16. package/dist/chunk-IMEPIVTR.js +217 -0
  17. package/dist/chunk-J4ORNCAH.js +10 -0
  18. package/dist/chunk-KC4F3HB7.js +32 -0
  19. package/dist/chunk-LHXE7LLD.js +28 -0
  20. package/dist/chunk-MD6XGXTU.mjs +18 -0
  21. package/dist/chunk-N47XKY4R.js +14 -0
  22. package/dist/chunk-NXXSNUDI.mjs +8 -0
  23. package/dist/chunk-PKG3E5MW.mjs +18 -0
  24. package/dist/chunk-PZT3CIHD.mjs +192 -0
  25. package/dist/chunk-QL3UGPUG.mjs +60 -0
  26. package/dist/chunk-QY65ZSBL.js +16 -0
  27. package/dist/chunk-R6JFUC32.js +2 -0
  28. package/dist/chunk-RDXQ4CYT.mjs +9 -0
  29. package/dist/chunk-S5VJ2FZE.js +12 -0
  30. package/dist/chunk-SVII65W7.mjs +14 -0
  31. package/dist/chunk-U7VN3RUE.mjs +25 -0
  32. package/dist/chunk-VCPYYLCS.js +83 -0
  33. package/dist/chunk-VD3P2A6Q.js +10 -0
  34. package/dist/chunk-VPEV3W34.mjs +10 -0
  35. package/dist/chunk-WGFQMQMV.mjs +14 -0
  36. package/dist/chunk-X6VDDXG7.mjs +12 -0
  37. package/dist/chunk-XAORXFAX.mjs +1 -10
  38. package/dist/chunk-XEOG24K6.mjs +8 -0
  39. package/dist/chunk-XK6XC3V4.js +10 -0
  40. package/dist/chunk-XZ5B5MTG.js +20 -0
  41. package/dist/chunk-YKHC2AW6.js +10 -0
  42. package/dist/chunk-Z2T7ONKU.js +20 -0
  43. package/dist/chunk-ZFL7DXAE.mjs +28 -0
  44. package/dist/chunk-ZM7W2ZCF.mjs +20 -0
  45. package/dist/{validators-BCw4Sn01.d.mts → index-CvXnHxD2.d.mts} +12 -1359
  46. package/dist/{validators-5XMwJOlV.d.ts → index-telccAkt.d.ts} +12 -1359
  47. package/dist/index.d.mts +1295 -474
  48. package/dist/index.d.ts +1295 -474
  49. package/dist/index.js +1400 -831
  50. package/dist/index.mjs +583 -571
  51. package/dist/types-B5Zhhoev.d.ts +39 -0
  52. package/dist/types-C6naks1H.d.mts +39 -0
  53. package/dist/utils.js +38 -20
  54. package/dist/utils.mjs +1 -20
  55. package/dist/validation/all.d.mts +23 -0
  56. package/dist/validation/all.d.ts +23 -0
  57. package/dist/validation/all.js +265 -0
  58. package/dist/validation/all.mjs +20 -0
  59. package/dist/validation/complex/currency.d.mts +15 -0
  60. package/dist/validation/complex/currency.d.ts +15 -0
  61. package/dist/validation/complex/currency.js +12 -0
  62. package/dist/validation/complex/currency.mjs +3 -0
  63. package/dist/validation/complex/file.d.mts +13 -0
  64. package/dist/validation/complex/file.d.ts +13 -0
  65. package/dist/validation/complex/file.js +12 -0
  66. package/dist/validation/complex/file.mjs +3 -0
  67. package/dist/validation/complex/location.d.mts +22 -0
  68. package/dist/validation/complex/location.d.ts +22 -0
  69. package/dist/validation/complex/location.js +12 -0
  70. package/dist/validation/complex/location.mjs +3 -0
  71. package/dist/validation/complex/phone.d.mts +22 -0
  72. package/dist/validation/complex/phone.d.ts +22 -0
  73. package/dist/validation/complex/phone.js +12 -0
  74. package/dist/validation/complex/phone.mjs +3 -0
  75. package/dist/validation/complex/relation.d.mts +25 -0
  76. package/dist/validation/complex/relation.d.ts +25 -0
  77. package/dist/validation/complex/relation.js +20 -0
  78. package/dist/validation/complex/relation.mjs +3 -0
  79. package/dist/validation/complex/richtext.d.mts +13 -0
  80. package/dist/validation/complex/richtext.d.ts +13 -0
  81. package/dist/validation/complex/richtext.js +12 -0
  82. package/dist/validation/complex/richtext.mjs +3 -0
  83. package/dist/validation/complex/select.d.mts +20 -0
  84. package/dist/validation/complex/select.d.ts +20 -0
  85. package/dist/validation/complex/select.js +20 -0
  86. package/dist/validation/complex/select.mjs +3 -0
  87. package/dist/validation/complex/user.d.mts +13 -0
  88. package/dist/validation/complex/user.d.ts +13 -0
  89. package/dist/validation/complex/user.js +12 -0
  90. package/dist/validation/complex/user.mjs +3 -0
  91. package/dist/validation/computed/formula.d.mts +14 -0
  92. package/dist/validation/computed/formula.d.ts +14 -0
  93. package/dist/validation/computed/formula.js +12 -0
  94. package/dist/validation/computed/formula.mjs +3 -0
  95. package/dist/validation/computed/rollup.d.mts +14 -0
  96. package/dist/validation/computed/rollup.d.ts +14 -0
  97. package/dist/validation/computed/rollup.js +12 -0
  98. package/dist/validation/computed/rollup.mjs +3 -0
  99. package/dist/validation/config/index.d.mts +421 -0
  100. package/dist/validation/config/index.d.ts +421 -0
  101. package/dist/validation/config/index.js +103 -0
  102. package/dist/validation/config/index.mjs +2 -0
  103. package/dist/validation/core/index.d.mts +85 -0
  104. package/dist/validation/core/index.d.ts +85 -0
  105. package/dist/validation/core/index.js +27 -0
  106. package/dist/validation/core/index.mjs +2 -0
  107. package/dist/validation/object/index.d.mts +6 -0
  108. package/dist/validation/object/index.d.ts +6 -0
  109. package/dist/validation/object/index.js +71 -0
  110. package/dist/validation/object/index.mjs +18 -0
  111. package/dist/validation/primitives/checkbox.d.mts +12 -0
  112. package/dist/validation/primitives/checkbox.d.ts +12 -0
  113. package/dist/validation/primitives/checkbox.js +12 -0
  114. package/dist/validation/primitives/checkbox.mjs +3 -0
  115. package/dist/validation/primitives/date.d.mts +12 -0
  116. package/dist/validation/primitives/date.d.ts +12 -0
  117. package/dist/validation/primitives/date.js +12 -0
  118. package/dist/validation/primitives/date.mjs +3 -0
  119. package/dist/validation/primitives/number.d.mts +12 -0
  120. package/dist/validation/primitives/number.d.ts +12 -0
  121. package/dist/validation/primitives/number.js +12 -0
  122. package/dist/validation/primitives/number.mjs +3 -0
  123. package/dist/validation/primitives/rating.d.mts +12 -0
  124. package/dist/validation/primitives/rating.d.ts +12 -0
  125. package/dist/validation/primitives/rating.js +12 -0
  126. package/dist/validation/primitives/rating.mjs +3 -0
  127. package/dist/validation/primitives/text.d.mts +17 -0
  128. package/dist/validation/primitives/text.d.ts +17 -0
  129. package/dist/validation/primitives/text.js +16 -0
  130. package/dist/validation/primitives/text.mjs +3 -0
  131. package/dist/validation/validators.d.mts +21 -2
  132. package/dist/validation/validators.d.ts +21 -2
  133. package/dist/validation/validators.js +265 -120
  134. package/dist/validation/validators.mjs +20 -120
  135. package/package.json +108 -5
  136. package/dist/chunk-4362R5F2.mjs +0 -780
  137. package/dist/chunk-7QUI6TSO.js +0 -780
@@ -0,0 +1,39 @@
1
+ import { A as Attribute } from './attributes-Btn-GLvC.js';
2
+
3
+ /**
4
+ * Validation messages for Zod validators.
5
+ * All functions receive the full Attribute to access label, type, etc.
6
+ * Can be customized for i18n support.
7
+ */
8
+ interface ValidationMessages {
9
+ required: (attr: Attribute) => string;
10
+ invalidType: (attr: Attribute, expected: string) => string;
11
+ minLength: (attr: Attribute, min: number) => string;
12
+ maxLength: (attr: Attribute, max: number) => string;
13
+ invalidPattern: (attr: Attribute) => string;
14
+ minValue: (attr: Attribute, min: number) => string;
15
+ maxValue: (attr: Attribute, max: number) => string;
16
+ mustBeInteger: (attr: Attribute) => string;
17
+ invalidDate: (attr: Attribute) => string;
18
+ invalidOption: (attr: Attribute, options: string[]) => string;
19
+ invalidId: (attr: Attribute) => string;
20
+ minItems: (attr: Attribute, min: number) => string;
21
+ maxItems: (attr: Attribute, max: number) => string;
22
+ invalidRichtext: (attr: Attribute) => string;
23
+ invalidPhone: (attr: Attribute) => string;
24
+ invalidCurrency: (attr: Attribute) => string;
25
+ invalidLocation: (attr: Attribute) => string;
26
+ }
27
+ /**
28
+ * Validation result
29
+ */
30
+ interface ValidationResult {
31
+ success: boolean;
32
+ data?: Record<string, unknown>;
33
+ errors?: Array<{
34
+ path: string[];
35
+ message: string;
36
+ }>;
37
+ }
38
+
39
+ export type { ValidationMessages as V, ValidationResult as a };
@@ -0,0 +1,39 @@
1
+ import { A as Attribute } from './attributes-CeDp1IMp.mjs';
2
+
3
+ /**
4
+ * Validation messages for Zod validators.
5
+ * All functions receive the full Attribute to access label, type, etc.
6
+ * Can be customized for i18n support.
7
+ */
8
+ interface ValidationMessages {
9
+ required: (attr: Attribute) => string;
10
+ invalidType: (attr: Attribute, expected: string) => string;
11
+ minLength: (attr: Attribute, min: number) => string;
12
+ maxLength: (attr: Attribute, max: number) => string;
13
+ invalidPattern: (attr: Attribute) => string;
14
+ minValue: (attr: Attribute, min: number) => string;
15
+ maxValue: (attr: Attribute, max: number) => string;
16
+ mustBeInteger: (attr: Attribute) => string;
17
+ invalidDate: (attr: Attribute) => string;
18
+ invalidOption: (attr: Attribute, options: string[]) => string;
19
+ invalidId: (attr: Attribute) => string;
20
+ minItems: (attr: Attribute, min: number) => string;
21
+ maxItems: (attr: Attribute, max: number) => string;
22
+ invalidRichtext: (attr: Attribute) => string;
23
+ invalidPhone: (attr: Attribute) => string;
24
+ invalidCurrency: (attr: Attribute) => string;
25
+ invalidLocation: (attr: Attribute) => string;
26
+ }
27
+ /**
28
+ * Validation result
29
+ */
30
+ interface ValidationResult {
31
+ success: boolean;
32
+ data?: Record<string, unknown>;
33
+ errors?: Array<{
34
+ path: string[];
35
+ message: string;
36
+ }>;
37
+ }
38
+
39
+ export type { ValidationMessages as V, ValidationResult as a };
package/dist/utils.js CHANGED
@@ -1,20 +1,38 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
-
5
-
6
-
7
-
8
-
9
-
10
- var _chunkE6XO2STSjs = require('./chunk-E6XO2STS.js');
11
-
12
-
13
-
14
-
15
-
16
-
17
-
18
-
19
-
20
- exports.asTenantId = _chunkE6XO2STSjs.asTenantId; exports.asUserId = _chunkE6XO2STSjs.asUserId; exports.deepEqual = _chunkE6XO2STSjs.deepEqual; exports.generateId = _chunkE6XO2STSjs.generateId; exports.generatePrefixedId = _chunkE6XO2STSjs.generatePrefixedId; exports.generateTemplateName = _chunkE6XO2STSjs.generateTemplateName; exports.indexBy = _chunkE6XO2STSjs.indexBy; exports.slugify = _chunkE6XO2STSjs.slugify;
1
+ 'use strict';
2
+
3
+ var chunkE6XO2STS_js = require('./chunk-E6XO2STS.js');
4
+
5
+
6
+
7
+ Object.defineProperty(exports, "asTenantId", {
8
+ enumerable: true,
9
+ get: function () { return chunkE6XO2STS_js.asTenantId; }
10
+ });
11
+ Object.defineProperty(exports, "asUserId", {
12
+ enumerable: true,
13
+ get: function () { return chunkE6XO2STS_js.asUserId; }
14
+ });
15
+ Object.defineProperty(exports, "deepEqual", {
16
+ enumerable: true,
17
+ get: function () { return chunkE6XO2STS_js.deepEqual; }
18
+ });
19
+ Object.defineProperty(exports, "generateId", {
20
+ enumerable: true,
21
+ get: function () { return chunkE6XO2STS_js.generateId; }
22
+ });
23
+ Object.defineProperty(exports, "generatePrefixedId", {
24
+ enumerable: true,
25
+ get: function () { return chunkE6XO2STS_js.generatePrefixedId; }
26
+ });
27
+ Object.defineProperty(exports, "generateTemplateName", {
28
+ enumerable: true,
29
+ get: function () { return chunkE6XO2STS_js.generateTemplateName; }
30
+ });
31
+ Object.defineProperty(exports, "indexBy", {
32
+ enumerable: true,
33
+ get: function () { return chunkE6XO2STS_js.indexBy; }
34
+ });
35
+ Object.defineProperty(exports, "slugify", {
36
+ enumerable: true,
37
+ get: function () { return chunkE6XO2STS_js.slugify; }
38
+ });
package/dist/utils.mjs CHANGED
@@ -1,20 +1 @@
1
- import {
2
- asTenantId,
3
- asUserId,
4
- deepEqual,
5
- generateId,
6
- generatePrefixedId,
7
- generateTemplateName,
8
- indexBy,
9
- slugify
10
- } from "./chunk-XAORXFAX.mjs";
11
- export {
12
- asTenantId,
13
- asUserId,
14
- deepEqual,
15
- generateId,
16
- generatePrefixedId,
17
- generateTemplateName,
18
- indexBy,
19
- slugify
20
- };
1
+ export { asTenantId, asUserId, deepEqual, generateId, generatePrefixedId, generateTemplateName, indexBy, slugify } from './chunk-XAORXFAX.mjs';
@@ -0,0 +1,23 @@
1
+ export { V as ValidationMessages, a as ValidationResult } from '../types-C6naks1H.mjs';
2
+ export { DEFAULT_VALIDATION_MESSAGES, createRegexCache, formatZodErrors, getCachedRegex } from './core/index.mjs';
3
+ export { createTextAreaValidator, createTextValidator } from './primitives/text.mjs';
4
+ export { createNumberValidator } from './primitives/number.mjs';
5
+ export { createCheckboxValidator } from './primitives/checkbox.mjs';
6
+ export { createDateValidator } from './primitives/date.mjs';
7
+ export { createRatingValidator } from './primitives/rating.mjs';
8
+ export { createPhoneValidator } from './complex/phone.mjs';
9
+ export { createCurrencyValidator } from './complex/currency.mjs';
10
+ export { createLocationValidator } from './complex/location.mjs';
11
+ export { createRichtextValidator } from './complex/richtext.mjs';
12
+ export { createMultiselectValidator, createSelectValidator, createStatusValidator } from './complex/select.mjs';
13
+ export { createFileValidator } from './complex/file.mjs';
14
+ export { createUserValidator } from './complex/user.mjs';
15
+ export { createMultiRelationValidator, createRelationValidator, createSingleRelationValidator } from './complex/relation.mjs';
16
+ export { createFormulaValidator } from './computed/formula.mjs';
17
+ export { createRollupValidator } from './computed/rollup.mjs';
18
+ export { attributeConfigSchemas, checkboxConfigSchema, currencyConfigSchema, dateConfigSchema, documentConfigSchema, fileConfigSchema, formulaConfigSchema, getAttributeConfigSchema, locationConfigSchema, multiselectConfigSchema, numberConfigSchema, parseAttributeConfig, phoneConfigSchema, ratingConfigSchema, relationConfigSchema, richtextConfigSchema, rollupConfigSchema, safeParseAttributeConfig, selectConfigSchema, statusConfigSchema, textConfigSchema, textareaConfigSchema, userConfigSchema, validateAttributeConfig } from './config/index.mjs';
19
+ export { c as computeRecordStatus, a as createAttributeValidator, b as createDraftValidator, d as createFormAttributeValidator, e as createObjectValidator, g as getMissingRequiredAttributes, i as isRecordComplete, v as validateAttribute, f as validateDraft, h as validateDraftOrThrow, j as validateObject, k as validateObjectOrThrow } from '../index-CvXnHxD2.mjs';
20
+ import '../attributes-CeDp1IMp.mjs';
21
+ import '@stndrds/constants';
22
+ import '../utils.mjs';
23
+ import 'zod';
@@ -0,0 +1,23 @@
1
+ export { V as ValidationMessages, a as ValidationResult } from '../types-B5Zhhoev.js';
2
+ export { DEFAULT_VALIDATION_MESSAGES, createRegexCache, formatZodErrors, getCachedRegex } from './core/index.js';
3
+ export { createTextAreaValidator, createTextValidator } from './primitives/text.js';
4
+ export { createNumberValidator } from './primitives/number.js';
5
+ export { createCheckboxValidator } from './primitives/checkbox.js';
6
+ export { createDateValidator } from './primitives/date.js';
7
+ export { createRatingValidator } from './primitives/rating.js';
8
+ export { createPhoneValidator } from './complex/phone.js';
9
+ export { createCurrencyValidator } from './complex/currency.js';
10
+ export { createLocationValidator } from './complex/location.js';
11
+ export { createRichtextValidator } from './complex/richtext.js';
12
+ export { createMultiselectValidator, createSelectValidator, createStatusValidator } from './complex/select.js';
13
+ export { createFileValidator } from './complex/file.js';
14
+ export { createUserValidator } from './complex/user.js';
15
+ export { createMultiRelationValidator, createRelationValidator, createSingleRelationValidator } from './complex/relation.js';
16
+ export { createFormulaValidator } from './computed/formula.js';
17
+ export { createRollupValidator } from './computed/rollup.js';
18
+ export { attributeConfigSchemas, checkboxConfigSchema, currencyConfigSchema, dateConfigSchema, documentConfigSchema, fileConfigSchema, formulaConfigSchema, getAttributeConfigSchema, locationConfigSchema, multiselectConfigSchema, numberConfigSchema, parseAttributeConfig, phoneConfigSchema, ratingConfigSchema, relationConfigSchema, richtextConfigSchema, rollupConfigSchema, safeParseAttributeConfig, selectConfigSchema, statusConfigSchema, textConfigSchema, textareaConfigSchema, userConfigSchema, validateAttributeConfig } from './config/index.js';
19
+ export { c as computeRecordStatus, a as createAttributeValidator, b as createDraftValidator, d as createFormAttributeValidator, e as createObjectValidator, g as getMissingRequiredAttributes, i as isRecordComplete, v as validateAttribute, f as validateDraft, h as validateDraftOrThrow, j as validateObject, k as validateObjectOrThrow } from '../index-telccAkt.js';
20
+ import '../attributes-Btn-GLvC.js';
21
+ import '@stndrds/constants';
22
+ import '../utils.js';
23
+ import 'zod';
@@ -0,0 +1,265 @@
1
+ 'use strict';
2
+
3
+ require('../chunk-R6JFUC32.js');
4
+ var chunk2TEWGEUI_js = require('../chunk-2TEWGEUI.js');
5
+ var chunkXK6XC3V4_js = require('../chunk-XK6XC3V4.js');
6
+ var chunkVD3P2A6Q_js = require('../chunk-VD3P2A6Q.js');
7
+ var chunkXZ5B5MTG_js = require('../chunk-XZ5B5MTG.js');
8
+ var chunkN47XKY4R_js = require('../chunk-N47XKY4R.js');
9
+ var chunkLHXE7LLD_js = require('../chunk-LHXE7LLD.js');
10
+ var chunk6HHSX6LP_js = require('../chunk-6HHSX6LP.js');
11
+ var chunkS5VJ2FZE_js = require('../chunk-S5VJ2FZE.js');
12
+ var chunkKC4F3HB7_js = require('../chunk-KC4F3HB7.js');
13
+ var chunkCKZHFJQT_js = require('../chunk-CKZHFJQT.js');
14
+ var chunkJ4ORNCAH_js = require('../chunk-J4ORNCAH.js');
15
+ var chunkYKHC2AW6_js = require('../chunk-YKHC2AW6.js');
16
+ var chunkIMEPIVTR_js = require('../chunk-IMEPIVTR.js');
17
+ var chunkQY65ZSBL_js = require('../chunk-QY65ZSBL.js');
18
+ var chunkZ2T7ONKU_js = require('../chunk-Z2T7ONKU.js');
19
+ var chunkBH3RPSC5_js = require('../chunk-BH3RPSC5.js');
20
+ var chunkAHPXNPJC_js = require('../chunk-AHPXNPJC.js');
21
+ var chunkVCPYYLCS_js = require('../chunk-VCPYYLCS.js');
22
+ var chunkBEN6TE7Y_js = require('../chunk-BEN6TE7Y.js');
23
+
24
+
25
+
26
+ Object.defineProperty(exports, "computeRecordStatus", {
27
+ enumerable: true,
28
+ get: function () { return chunk2TEWGEUI_js.computeRecordStatus; }
29
+ });
30
+ Object.defineProperty(exports, "createAttributeValidator", {
31
+ enumerable: true,
32
+ get: function () { return chunk2TEWGEUI_js.createAttributeValidator; }
33
+ });
34
+ Object.defineProperty(exports, "createDraftValidator", {
35
+ enumerable: true,
36
+ get: function () { return chunk2TEWGEUI_js.createDraftValidator; }
37
+ });
38
+ Object.defineProperty(exports, "createFormAttributeValidator", {
39
+ enumerable: true,
40
+ get: function () { return chunk2TEWGEUI_js.createFormAttributeValidator; }
41
+ });
42
+ Object.defineProperty(exports, "createObjectValidator", {
43
+ enumerable: true,
44
+ get: function () { return chunk2TEWGEUI_js.createObjectValidator; }
45
+ });
46
+ Object.defineProperty(exports, "getMissingRequiredAttributes", {
47
+ enumerable: true,
48
+ get: function () { return chunk2TEWGEUI_js.getMissingRequiredAttributes; }
49
+ });
50
+ Object.defineProperty(exports, "isRecordComplete", {
51
+ enumerable: true,
52
+ get: function () { return chunk2TEWGEUI_js.isRecordComplete; }
53
+ });
54
+ Object.defineProperty(exports, "validateAttribute", {
55
+ enumerable: true,
56
+ get: function () { return chunk2TEWGEUI_js.validateAttribute; }
57
+ });
58
+ Object.defineProperty(exports, "validateDraft", {
59
+ enumerable: true,
60
+ get: function () { return chunk2TEWGEUI_js.validateDraft; }
61
+ });
62
+ Object.defineProperty(exports, "validateDraftOrThrow", {
63
+ enumerable: true,
64
+ get: function () { return chunk2TEWGEUI_js.validateDraftOrThrow; }
65
+ });
66
+ Object.defineProperty(exports, "validateObject", {
67
+ enumerable: true,
68
+ get: function () { return chunk2TEWGEUI_js.validateObject; }
69
+ });
70
+ Object.defineProperty(exports, "validateObjectOrThrow", {
71
+ enumerable: true,
72
+ get: function () { return chunk2TEWGEUI_js.validateObjectOrThrow; }
73
+ });
74
+ Object.defineProperty(exports, "createCheckboxValidator", {
75
+ enumerable: true,
76
+ get: function () { return chunkXK6XC3V4_js.createCheckboxValidator; }
77
+ });
78
+ Object.defineProperty(exports, "createDateValidator", {
79
+ enumerable: true,
80
+ get: function () { return chunkVD3P2A6Q_js.createDateValidator; }
81
+ });
82
+ Object.defineProperty(exports, "createNumberValidator", {
83
+ enumerable: true,
84
+ get: function () { return chunkXZ5B5MTG_js.createNumberValidator; }
85
+ });
86
+ Object.defineProperty(exports, "createRatingValidator", {
87
+ enumerable: true,
88
+ get: function () { return chunkN47XKY4R_js.createRatingValidator; }
89
+ });
90
+ Object.defineProperty(exports, "createTextAreaValidator", {
91
+ enumerable: true,
92
+ get: function () { return chunkLHXE7LLD_js.createTextAreaValidator; }
93
+ });
94
+ Object.defineProperty(exports, "createTextValidator", {
95
+ enumerable: true,
96
+ get: function () { return chunkLHXE7LLD_js.createTextValidator; }
97
+ });
98
+ Object.defineProperty(exports, "createMultiRelationValidator", {
99
+ enumerable: true,
100
+ get: function () { return chunk6HHSX6LP_js.createMultiRelationValidator; }
101
+ });
102
+ Object.defineProperty(exports, "createRelationValidator", {
103
+ enumerable: true,
104
+ get: function () { return chunk6HHSX6LP_js.createRelationValidator; }
105
+ });
106
+ Object.defineProperty(exports, "createSingleRelationValidator", {
107
+ enumerable: true,
108
+ get: function () { return chunk6HHSX6LP_js.createSingleRelationValidator; }
109
+ });
110
+ Object.defineProperty(exports, "createRichtextValidator", {
111
+ enumerable: true,
112
+ get: function () { return chunkS5VJ2FZE_js.createRichtextValidator; }
113
+ });
114
+ Object.defineProperty(exports, "createMultiselectValidator", {
115
+ enumerable: true,
116
+ get: function () { return chunkKC4F3HB7_js.createMultiselectValidator; }
117
+ });
118
+ Object.defineProperty(exports, "createSelectValidator", {
119
+ enumerable: true,
120
+ get: function () { return chunkKC4F3HB7_js.createSelectValidator; }
121
+ });
122
+ Object.defineProperty(exports, "createStatusValidator", {
123
+ enumerable: true,
124
+ get: function () { return chunkKC4F3HB7_js.createStatusValidator; }
125
+ });
126
+ Object.defineProperty(exports, "createUserValidator", {
127
+ enumerable: true,
128
+ get: function () { return chunkCKZHFJQT_js.createUserValidator; }
129
+ });
130
+ Object.defineProperty(exports, "createFormulaValidator", {
131
+ enumerable: true,
132
+ get: function () { return chunkJ4ORNCAH_js.createFormulaValidator; }
133
+ });
134
+ Object.defineProperty(exports, "createRollupValidator", {
135
+ enumerable: true,
136
+ get: function () { return chunkYKHC2AW6_js.createRollupValidator; }
137
+ });
138
+ Object.defineProperty(exports, "attributeConfigSchemas", {
139
+ enumerable: true,
140
+ get: function () { return chunkIMEPIVTR_js.attributeConfigSchemas; }
141
+ });
142
+ Object.defineProperty(exports, "checkboxConfigSchema", {
143
+ enumerable: true,
144
+ get: function () { return chunkIMEPIVTR_js.checkboxConfigSchema; }
145
+ });
146
+ Object.defineProperty(exports, "currencyConfigSchema", {
147
+ enumerable: true,
148
+ get: function () { return chunkIMEPIVTR_js.currencyConfigSchema; }
149
+ });
150
+ Object.defineProperty(exports, "dateConfigSchema", {
151
+ enumerable: true,
152
+ get: function () { return chunkIMEPIVTR_js.dateConfigSchema; }
153
+ });
154
+ Object.defineProperty(exports, "documentConfigSchema", {
155
+ enumerable: true,
156
+ get: function () { return chunkIMEPIVTR_js.documentConfigSchema; }
157
+ });
158
+ Object.defineProperty(exports, "fileConfigSchema", {
159
+ enumerable: true,
160
+ get: function () { return chunkIMEPIVTR_js.fileConfigSchema; }
161
+ });
162
+ Object.defineProperty(exports, "formulaConfigSchema", {
163
+ enumerable: true,
164
+ get: function () { return chunkIMEPIVTR_js.formulaConfigSchema; }
165
+ });
166
+ Object.defineProperty(exports, "getAttributeConfigSchema", {
167
+ enumerable: true,
168
+ get: function () { return chunkIMEPIVTR_js.getAttributeConfigSchema; }
169
+ });
170
+ Object.defineProperty(exports, "locationConfigSchema", {
171
+ enumerable: true,
172
+ get: function () { return chunkIMEPIVTR_js.locationConfigSchema; }
173
+ });
174
+ Object.defineProperty(exports, "multiselectConfigSchema", {
175
+ enumerable: true,
176
+ get: function () { return chunkIMEPIVTR_js.multiselectConfigSchema; }
177
+ });
178
+ Object.defineProperty(exports, "numberConfigSchema", {
179
+ enumerable: true,
180
+ get: function () { return chunkIMEPIVTR_js.numberConfigSchema; }
181
+ });
182
+ Object.defineProperty(exports, "parseAttributeConfig", {
183
+ enumerable: true,
184
+ get: function () { return chunkIMEPIVTR_js.parseAttributeConfig; }
185
+ });
186
+ Object.defineProperty(exports, "phoneConfigSchema", {
187
+ enumerable: true,
188
+ get: function () { return chunkIMEPIVTR_js.phoneConfigSchema; }
189
+ });
190
+ Object.defineProperty(exports, "ratingConfigSchema", {
191
+ enumerable: true,
192
+ get: function () { return chunkIMEPIVTR_js.ratingConfigSchema; }
193
+ });
194
+ Object.defineProperty(exports, "relationConfigSchema", {
195
+ enumerable: true,
196
+ get: function () { return chunkIMEPIVTR_js.relationConfigSchema; }
197
+ });
198
+ Object.defineProperty(exports, "richtextConfigSchema", {
199
+ enumerable: true,
200
+ get: function () { return chunkIMEPIVTR_js.richtextConfigSchema; }
201
+ });
202
+ Object.defineProperty(exports, "rollupConfigSchema", {
203
+ enumerable: true,
204
+ get: function () { return chunkIMEPIVTR_js.rollupConfigSchema; }
205
+ });
206
+ Object.defineProperty(exports, "safeParseAttributeConfig", {
207
+ enumerable: true,
208
+ get: function () { return chunkIMEPIVTR_js.safeParseAttributeConfig; }
209
+ });
210
+ Object.defineProperty(exports, "selectConfigSchema", {
211
+ enumerable: true,
212
+ get: function () { return chunkIMEPIVTR_js.selectConfigSchema; }
213
+ });
214
+ Object.defineProperty(exports, "statusConfigSchema", {
215
+ enumerable: true,
216
+ get: function () { return chunkIMEPIVTR_js.statusConfigSchema; }
217
+ });
218
+ Object.defineProperty(exports, "textConfigSchema", {
219
+ enumerable: true,
220
+ get: function () { return chunkIMEPIVTR_js.textConfigSchema; }
221
+ });
222
+ Object.defineProperty(exports, "textareaConfigSchema", {
223
+ enumerable: true,
224
+ get: function () { return chunkIMEPIVTR_js.textareaConfigSchema; }
225
+ });
226
+ Object.defineProperty(exports, "userConfigSchema", {
227
+ enumerable: true,
228
+ get: function () { return chunkIMEPIVTR_js.userConfigSchema; }
229
+ });
230
+ Object.defineProperty(exports, "validateAttributeConfig", {
231
+ enumerable: true,
232
+ get: function () { return chunkIMEPIVTR_js.validateAttributeConfig; }
233
+ });
234
+ Object.defineProperty(exports, "createCurrencyValidator", {
235
+ enumerable: true,
236
+ get: function () { return chunkQY65ZSBL_js.createCurrencyValidator; }
237
+ });
238
+ Object.defineProperty(exports, "createFileValidator", {
239
+ enumerable: true,
240
+ get: function () { return chunkZ2T7ONKU_js.createFileValidator; }
241
+ });
242
+ Object.defineProperty(exports, "createLocationValidator", {
243
+ enumerable: true,
244
+ get: function () { return chunkBH3RPSC5_js.createLocationValidator; }
245
+ });
246
+ Object.defineProperty(exports, "createPhoneValidator", {
247
+ enumerable: true,
248
+ get: function () { return chunkAHPXNPJC_js.createPhoneValidator; }
249
+ });
250
+ Object.defineProperty(exports, "DEFAULT_VALIDATION_MESSAGES", {
251
+ enumerable: true,
252
+ get: function () { return chunkVCPYYLCS_js.DEFAULT_VALIDATION_MESSAGES; }
253
+ });
254
+ Object.defineProperty(exports, "createRegexCache", {
255
+ enumerable: true,
256
+ get: function () { return chunkVCPYYLCS_js.createRegexCache; }
257
+ });
258
+ Object.defineProperty(exports, "getCachedRegex", {
259
+ enumerable: true,
260
+ get: function () { return chunkVCPYYLCS_js.getCachedRegex; }
261
+ });
262
+ Object.defineProperty(exports, "formatZodErrors", {
263
+ enumerable: true,
264
+ get: function () { return chunkBEN6TE7Y_js.formatZodErrors; }
265
+ });
@@ -0,0 +1,20 @@
1
+ import '../chunk-EKG35CSO.mjs';
2
+ export { computeRecordStatus, createAttributeValidator, createDraftValidator, createFormAttributeValidator, createObjectValidator, getMissingRequiredAttributes, isRecordComplete, validateAttribute, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow } from '../chunk-67PQMHQA.mjs';
3
+ export { createCheckboxValidator } from '../chunk-5TLM4QXO.mjs';
4
+ export { createDateValidator } from '../chunk-XEOG24K6.mjs';
5
+ export { createNumberValidator } from '../chunk-PKG3E5MW.mjs';
6
+ export { createRatingValidator } from '../chunk-X6VDDXG7.mjs';
7
+ export { createTextAreaValidator, createTextValidator } from '../chunk-U7VN3RUE.mjs';
8
+ export { createMultiRelationValidator, createRelationValidator, createSingleRelationValidator } from '../chunk-QL3UGPUG.mjs';
9
+ export { createRichtextValidator } from '../chunk-VPEV3W34.mjs';
10
+ export { createMultiselectValidator, createSelectValidator, createStatusValidator } from '../chunk-ZFL7DXAE.mjs';
11
+ export { createUserValidator } from '../chunk-WGFQMQMV.mjs';
12
+ export { createFormulaValidator } from '../chunk-4RGFTMQR.mjs';
13
+ export { createRollupValidator } from '../chunk-NXXSNUDI.mjs';
14
+ export { attributeConfigSchemas, checkboxConfigSchema, currencyConfigSchema, dateConfigSchema, documentConfigSchema, fileConfigSchema, formulaConfigSchema, getAttributeConfigSchema, locationConfigSchema, multiselectConfigSchema, numberConfigSchema, parseAttributeConfig, phoneConfigSchema, ratingConfigSchema, relationConfigSchema, richtextConfigSchema, rollupConfigSchema, safeParseAttributeConfig, selectConfigSchema, statusConfigSchema, textConfigSchema, textareaConfigSchema, userConfigSchema, validateAttributeConfig } from '../chunk-PZT3CIHD.mjs';
15
+ export { createCurrencyValidator } from '../chunk-SVII65W7.mjs';
16
+ export { createFileValidator } from '../chunk-MD6XGXTU.mjs';
17
+ export { createLocationValidator } from '../chunk-ZM7W2ZCF.mjs';
18
+ export { createPhoneValidator } from '../chunk-EIWGW2ML.mjs';
19
+ export { DEFAULT_VALIDATION_MESSAGES, createRegexCache, getCachedRegex } from '../chunk-BIQ35DLC.mjs';
20
+ export { formatZodErrors } from '../chunk-RDXQ4CYT.mjs';
@@ -0,0 +1,15 @@
1
+ import { z } from 'zod';
2
+ import { C as CurrencyAttribute } from '../../attributes-CeDp1IMp.mjs';
3
+ import { V as ValidationMessages } from '../../types-C6naks1H.mjs';
4
+ import '@stndrds/constants';
5
+ import '../../utils.mjs';
6
+
7
+ /**
8
+ * Create a Zod schema for a currency attribute
9
+ */
10
+ declare function createCurrencyValidator(attr: CurrencyAttribute, messages?: ValidationMessages): z.ZodType<{
11
+ code: string;
12
+ value: number;
13
+ }>;
14
+
15
+ export { createCurrencyValidator };
@@ -0,0 +1,15 @@
1
+ import { z } from 'zod';
2
+ import { C as CurrencyAttribute } from '../../attributes-Btn-GLvC.js';
3
+ import { V as ValidationMessages } from '../../types-B5Zhhoev.js';
4
+ import '@stndrds/constants';
5
+ import '../../utils.js';
6
+
7
+ /**
8
+ * Create a Zod schema for a currency attribute
9
+ */
10
+ declare function createCurrencyValidator(attr: CurrencyAttribute, messages?: ValidationMessages): z.ZodType<{
11
+ code: string;
12
+ value: number;
13
+ }>;
14
+
15
+ export { createCurrencyValidator };
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ var chunkQY65ZSBL_js = require('../../chunk-QY65ZSBL.js');
4
+ require('../../chunk-VCPYYLCS.js');
5
+ require('../../chunk-BEN6TE7Y.js');
6
+
7
+
8
+
9
+ Object.defineProperty(exports, "createCurrencyValidator", {
10
+ enumerable: true,
11
+ get: function () { return chunkQY65ZSBL_js.createCurrencyValidator; }
12
+ });
@@ -0,0 +1,3 @@
1
+ export { createCurrencyValidator } from '../../chunk-SVII65W7.mjs';
2
+ import '../../chunk-BIQ35DLC.mjs';
3
+ import '../../chunk-RDXQ4CYT.mjs';
@@ -0,0 +1,13 @@
1
+ import { z } from 'zod';
2
+ import { F as FileAttribute } from '../../attributes-CeDp1IMp.mjs';
3
+ import { V as ValidationMessages } from '../../types-C6naks1H.mjs';
4
+ import '@stndrds/constants';
5
+ import '../../utils.mjs';
6
+
7
+ /**
8
+ * Create a Zod schema for a file attribute
9
+ * Supports both single file (UUID) and multiple files (array of UUIDs)
10
+ */
11
+ declare function createFileValidator(attr: FileAttribute, messages?: ValidationMessages): z.ZodTypeAny;
12
+
13
+ export { createFileValidator };
@@ -0,0 +1,13 @@
1
+ import { z } from 'zod';
2
+ import { F as FileAttribute } from '../../attributes-Btn-GLvC.js';
3
+ import { V as ValidationMessages } from '../../types-B5Zhhoev.js';
4
+ import '@stndrds/constants';
5
+ import '../../utils.js';
6
+
7
+ /**
8
+ * Create a Zod schema for a file attribute
9
+ * Supports both single file (UUID) and multiple files (array of UUIDs)
10
+ */
11
+ declare function createFileValidator(attr: FileAttribute, messages?: ValidationMessages): z.ZodTypeAny;
12
+
13
+ export { createFileValidator };
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ var chunkZ2T7ONKU_js = require('../../chunk-Z2T7ONKU.js');
4
+ require('../../chunk-VCPYYLCS.js');
5
+ require('../../chunk-BEN6TE7Y.js');
6
+
7
+
8
+
9
+ Object.defineProperty(exports, "createFileValidator", {
10
+ enumerable: true,
11
+ get: function () { return chunkZ2T7ONKU_js.createFileValidator; }
12
+ });
@@ -0,0 +1,3 @@
1
+ export { createFileValidator } from '../../chunk-MD6XGXTU.mjs';
2
+ import '../../chunk-BIQ35DLC.mjs';
3
+ import '../../chunk-RDXQ4CYT.mjs';
@@ -0,0 +1,22 @@
1
+ import { z } from 'zod';
2
+ import { L as LocationAttribute } from '../../attributes-CeDp1IMp.mjs';
3
+ import { V as ValidationMessages } from '../../types-C6naks1H.mjs';
4
+ import '@stndrds/constants';
5
+ import '../../utils.mjs';
6
+
7
+ type LocationShape = {
8
+ address?: string;
9
+ address2?: string;
10
+ city?: string;
11
+ state?: string;
12
+ postalCode?: string;
13
+ country?: string;
14
+ latitude?: number;
15
+ longitude?: number;
16
+ };
17
+ /**
18
+ * Create a Zod schema for a location attribute
19
+ */
20
+ declare function createLocationValidator(attr: LocationAttribute, messages?: ValidationMessages): z.ZodType<LocationShape>;
21
+
22
+ export { createLocationValidator };
@@ -0,0 +1,22 @@
1
+ import { z } from 'zod';
2
+ import { L as LocationAttribute } from '../../attributes-Btn-GLvC.js';
3
+ import { V as ValidationMessages } from '../../types-B5Zhhoev.js';
4
+ import '@stndrds/constants';
5
+ import '../../utils.js';
6
+
7
+ type LocationShape = {
8
+ address?: string;
9
+ address2?: string;
10
+ city?: string;
11
+ state?: string;
12
+ postalCode?: string;
13
+ country?: string;
14
+ latitude?: number;
15
+ longitude?: number;
16
+ };
17
+ /**
18
+ * Create a Zod schema for a location attribute
19
+ */
20
+ declare function createLocationValidator(attr: LocationAttribute, messages?: ValidationMessages): z.ZodType<LocationShape>;
21
+
22
+ export { createLocationValidator };
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ var chunkBH3RPSC5_js = require('../../chunk-BH3RPSC5.js');
4
+ require('../../chunk-VCPYYLCS.js');
5
+ require('../../chunk-BEN6TE7Y.js');
6
+
7
+
8
+
9
+ Object.defineProperty(exports, "createLocationValidator", {
10
+ enumerable: true,
11
+ get: function () { return chunkBH3RPSC5_js.createLocationValidator; }
12
+ });
@@ -0,0 +1,3 @@
1
+ export { createLocationValidator } from '../../chunk-ZM7W2ZCF.mjs';
2
+ import '../../chunk-BIQ35DLC.mjs';
3
+ import '../../chunk-RDXQ4CYT.mjs';