@stndrds/schema 0.1.0-alpha.67 → 1.0.0-alpha.100

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 (156) hide show
  1. package/dist/attributes-CH89Z_J-.d.mts +675 -0
  2. package/dist/attributes-dw-jLtYS.d.ts +675 -0
  3. package/dist/chunk-2LUHLHLE.mjs +8 -0
  4. package/dist/chunk-3RFFA4EV.mjs +14 -0
  5. package/dist/chunk-4DMDOSFN.js +10 -0
  6. package/dist/chunk-4IVCBFJA.mjs +12 -0
  7. package/dist/chunk-5CBTJS7J.js +22 -0
  8. package/dist/chunk-5SQEKHPW.js +78 -0
  9. package/dist/chunk-6IFD5732.js +10 -0
  10. package/dist/chunk-6MXQAQBB.mjs +18 -0
  11. package/dist/chunk-7FSIBNRH.mjs +25 -0
  12. package/dist/chunk-ALV6GETG.mjs +10 -0
  13. package/dist/chunk-ANP6HGMJ.js +64 -0
  14. package/dist/chunk-ATA4XHB4.js +20 -0
  15. package/dist/chunk-BEN6TE7Y.js +11 -0
  16. package/dist/chunk-BZTLI773.mjs +8 -0
  17. package/dist/chunk-C7KW4NAD.js +20 -0
  18. package/dist/chunk-CE25ADK5.js +212 -0
  19. package/dist/chunk-E6XO2STS.js +61 -0
  20. package/dist/chunk-EKG35CSO.mjs +1 -0
  21. package/dist/chunk-ERG77ADK.mjs +18 -0
  22. package/dist/chunk-FKETRWAF.js +10 -0
  23. package/dist/chunk-FKPYFM6G.mjs +14 -0
  24. package/dist/chunk-H3VBSMVW.js +105 -0
  25. package/dist/chunk-HJNLL34O.js +12 -0
  26. package/dist/chunk-IMEPIVTR.js +217 -0
  27. package/dist/chunk-JEDANRCG.mjs +74 -0
  28. package/dist/chunk-KC2FFNL4.js +16 -0
  29. package/dist/chunk-OO2LJ6GP.js +32 -0
  30. package/dist/chunk-P4NGPF5L.mjs +99 -0
  31. package/dist/chunk-PGHTIMRD.mjs +199 -0
  32. package/dist/chunk-PZT3CIHD.mjs +192 -0
  33. package/dist/chunk-QPDXDX7A.js +16 -0
  34. package/dist/chunk-R6JFUC32.js +2 -0
  35. package/dist/chunk-RDGBQM3N.mjs +20 -0
  36. package/dist/chunk-RDXQ4CYT.mjs +9 -0
  37. package/dist/chunk-STKN6A5M.js +14 -0
  38. package/dist/chunk-TV4G2KMD.mjs +8 -0
  39. package/dist/chunk-UPEQEX2D.js +10 -0
  40. package/dist/chunk-VC4E3OSZ.mjs +8 -0
  41. package/dist/{chunk-V2RPPE2Y.mjs → chunk-XAORXFAX.mjs} +20 -9
  42. package/dist/chunk-XPFWKISJ.mjs +60 -0
  43. package/dist/chunk-ZJNX6UXB.mjs +28 -0
  44. package/dist/chunk-ZWMMEQI7.js +28 -0
  45. package/dist/index-CftmKoRP.d.mts +2053 -0
  46. package/dist/index-Dh_XiNFt.d.ts +2053 -0
  47. package/dist/index.d.mts +4406 -490
  48. package/dist/index.d.ts +4406 -490
  49. package/dist/index.js +6598 -1729
  50. package/dist/index.mjs +5260 -938
  51. package/dist/types-D-0QbsA9.d.ts +39 -0
  52. package/dist/types-Ms3HtAmo.d.mts +39 -0
  53. package/dist/utils.d.mts +20 -1
  54. package/dist/utils.d.ts +20 -1
  55. package/dist/utils.js +38 -19
  56. package/dist/utils.mjs +1 -19
  57. package/dist/validation/all.d.mts +23 -0
  58. package/dist/validation/all.d.ts +23 -0
  59. package/dist/validation/all.js +265 -0
  60. package/dist/validation/all.mjs +20 -0
  61. package/dist/validation/complex/currency.d.mts +15 -0
  62. package/dist/validation/complex/currency.d.ts +15 -0
  63. package/dist/validation/complex/currency.js +12 -0
  64. package/dist/validation/complex/currency.mjs +3 -0
  65. package/dist/validation/complex/file.d.mts +13 -0
  66. package/dist/validation/complex/file.d.ts +13 -0
  67. package/dist/validation/complex/file.js +12 -0
  68. package/dist/validation/complex/file.mjs +3 -0
  69. package/dist/validation/complex/location.d.mts +22 -0
  70. package/dist/validation/complex/location.d.ts +22 -0
  71. package/dist/validation/complex/location.js +12 -0
  72. package/dist/validation/complex/location.mjs +3 -0
  73. package/dist/validation/complex/phone.d.mts +22 -0
  74. package/dist/validation/complex/phone.d.ts +22 -0
  75. package/dist/validation/complex/phone.js +12 -0
  76. package/dist/validation/complex/phone.mjs +3 -0
  77. package/dist/validation/complex/relation.d.mts +25 -0
  78. package/dist/validation/complex/relation.d.ts +25 -0
  79. package/dist/validation/complex/relation.js +20 -0
  80. package/dist/validation/complex/relation.mjs +3 -0
  81. package/dist/validation/complex/richtext.d.mts +13 -0
  82. package/dist/validation/complex/richtext.d.ts +13 -0
  83. package/dist/validation/complex/richtext.js +12 -0
  84. package/dist/validation/complex/richtext.mjs +3 -0
  85. package/dist/validation/complex/select.d.mts +20 -0
  86. package/dist/validation/complex/select.d.ts +20 -0
  87. package/dist/validation/complex/select.js +20 -0
  88. package/dist/validation/complex/select.mjs +3 -0
  89. package/dist/validation/complex/user.d.mts +13 -0
  90. package/dist/validation/complex/user.d.ts +13 -0
  91. package/dist/validation/complex/user.js +12 -0
  92. package/dist/validation/complex/user.mjs +3 -0
  93. package/dist/validation/computed/formula.d.mts +14 -0
  94. package/dist/validation/computed/formula.d.ts +14 -0
  95. package/dist/validation/computed/formula.js +12 -0
  96. package/dist/validation/computed/formula.mjs +3 -0
  97. package/dist/validation/computed/rollup.d.mts +14 -0
  98. package/dist/validation/computed/rollup.d.ts +14 -0
  99. package/dist/validation/computed/rollup.js +12 -0
  100. package/dist/validation/computed/rollup.mjs +3 -0
  101. package/dist/validation/config/index.d.mts +421 -0
  102. package/dist/validation/config/index.d.ts +421 -0
  103. package/dist/validation/config/index.js +103 -0
  104. package/dist/validation/config/index.mjs +2 -0
  105. package/dist/validation/core/index.d.mts +68 -0
  106. package/dist/validation/core/index.d.ts +68 -0
  107. package/dist/validation/core/index.js +23 -0
  108. package/dist/validation/core/index.mjs +2 -0
  109. package/dist/validation/object/index.d.mts +6 -0
  110. package/dist/validation/object/index.d.ts +6 -0
  111. package/dist/validation/object/index.js +71 -0
  112. package/dist/validation/object/index.mjs +18 -0
  113. package/dist/validation/primitives/checkbox.d.mts +12 -0
  114. package/dist/validation/primitives/checkbox.d.ts +12 -0
  115. package/dist/validation/primitives/checkbox.js +12 -0
  116. package/dist/validation/primitives/checkbox.mjs +3 -0
  117. package/dist/validation/primitives/date.d.mts +12 -0
  118. package/dist/validation/primitives/date.d.ts +12 -0
  119. package/dist/validation/primitives/date.js +12 -0
  120. package/dist/validation/primitives/date.mjs +3 -0
  121. package/dist/validation/primitives/number.d.mts +12 -0
  122. package/dist/validation/primitives/number.d.ts +12 -0
  123. package/dist/validation/primitives/number.js +12 -0
  124. package/dist/validation/primitives/number.mjs +3 -0
  125. package/dist/validation/primitives/rating.d.mts +12 -0
  126. package/dist/validation/primitives/rating.d.ts +12 -0
  127. package/dist/validation/primitives/rating.js +12 -0
  128. package/dist/validation/primitives/rating.mjs +3 -0
  129. package/dist/validation/primitives/text.d.mts +17 -0
  130. package/dist/validation/primitives/text.d.ts +17 -0
  131. package/dist/validation/primitives/text.js +16 -0
  132. package/dist/validation/primitives/text.mjs +3 -0
  133. package/dist/validation/validators.d.mts +21 -2
  134. package/dist/validation/validators.d.ts +21 -2
  135. package/dist/validation/validators.js +265 -121
  136. package/dist/validation/validators.mjs +20 -121
  137. package/package.json +109 -13
  138. package/dist/chunk-36UBIXJN.js +0 -82
  139. package/dist/chunk-3RG5ZIWI.js +0 -10
  140. package/dist/chunk-A6T4UUZ2.mjs +0 -18669
  141. package/dist/chunk-NEVERCM3.js +0 -41
  142. package/dist/chunk-SV4BCGQU.mjs +0 -617
  143. package/dist/chunk-TOTUS3YS.js +0 -18669
  144. package/dist/chunk-U4AB53AM.js +0 -617
  145. package/dist/chunk-V5QXU2OK.mjs +0 -82
  146. package/dist/chunk-Y6FXYEAI.mjs +0 -10
  147. package/dist/default-roles-42X3TJI5.mjs +0 -21
  148. package/dist/default-roles-C3FYDYMN.js +0 -21
  149. package/dist/runtime-BgtwoMx5.d.ts +0 -12759
  150. package/dist/runtime-DQlTgVZJ.d.mts +0 -12759
  151. package/dist/runtime.d.mts +0 -6
  152. package/dist/runtime.d.ts +0 -6
  153. package/dist/runtime.js +0 -323
  154. package/dist/runtime.mjs +0 -323
  155. package/dist/validators-BROsLGn4.d.mts +0 -1556
  156. package/dist/validators-CEzdvxEq.d.ts +0 -1556
@@ -0,0 +1,39 @@
1
+ import { A as Attribute } from './attributes-dw-jLtYS.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-CH89Z_J-.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.d.mts CHANGED
@@ -150,5 +150,24 @@ declare function generateTemplateName(label: string): string;
150
150
  * ```
151
151
  */
152
152
  declare function indexBy<T, K extends PropertyKey>(items: T[], keyFn: (item: T) => K): Map<K, T>;
153
+ /**
154
+ * Deep equality comparison for plain objects and arrays.
155
+ * Handles nested structures, arrays, primitives, null, and undefined.
156
+ *
157
+ * Time complexity: O(n) where n is total number of properties
158
+ *
159
+ * @param a - First value to compare
160
+ * @param b - Second value to compare
161
+ * @returns true if values are deeply equal
162
+ *
163
+ * @example
164
+ * ```typescript
165
+ * deepEqual({ a: 1, b: { c: 2 } }, { a: 1, b: { c: 2 } }); // true
166
+ * deepEqual({ a: 1, b: 2 }, { b: 2, a: 1 }); // true (order-independent)
167
+ * deepEqual([1, 2, 3], [1, 2, 3]); // true
168
+ * deepEqual([1, 2], [2, 1]); // false (arrays preserve order)
169
+ * ```
170
+ */
171
+ declare function deepEqual(a: unknown, b: unknown): boolean;
153
172
 
154
- export { type TenantId, type UserId, type Uuid, asTenantId, asUserId, generateId, generatePrefixedId, generateTemplateName, indexBy, slugify };
173
+ export { type TenantId, type UserId, type Uuid, asTenantId, asUserId, deepEqual, generateId, generatePrefixedId, generateTemplateName, indexBy, slugify };
package/dist/utils.d.ts CHANGED
@@ -150,5 +150,24 @@ declare function generateTemplateName(label: string): string;
150
150
  * ```
151
151
  */
152
152
  declare function indexBy<T, K extends PropertyKey>(items: T[], keyFn: (item: T) => K): Map<K, T>;
153
+ /**
154
+ * Deep equality comparison for plain objects and arrays.
155
+ * Handles nested structures, arrays, primitives, null, and undefined.
156
+ *
157
+ * Time complexity: O(n) where n is total number of properties
158
+ *
159
+ * @param a - First value to compare
160
+ * @param b - Second value to compare
161
+ * @returns true if values are deeply equal
162
+ *
163
+ * @example
164
+ * ```typescript
165
+ * deepEqual({ a: 1, b: { c: 2 } }, { a: 1, b: { c: 2 } }); // true
166
+ * deepEqual({ a: 1, b: 2 }, { b: 2, a: 1 }); // true (order-independent)
167
+ * deepEqual([1, 2, 3], [1, 2, 3]); // true
168
+ * deepEqual([1, 2], [2, 1]); // false (arrays preserve order)
169
+ * ```
170
+ */
171
+ declare function deepEqual(a: unknown, b: unknown): boolean;
153
172
 
154
- export { type TenantId, type UserId, type Uuid, asTenantId, asUserId, generateId, generatePrefixedId, generateTemplateName, indexBy, slugify };
173
+ export { type TenantId, type UserId, type Uuid, asTenantId, asUserId, deepEqual, generateId, generatePrefixedId, generateTemplateName, indexBy, slugify };
package/dist/utils.js CHANGED
@@ -1,19 +1,38 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
-
5
-
6
-
7
-
8
-
9
- var _chunkNEVERCM3js = require('./chunk-NEVERCM3.js');
10
- require('./chunk-3RG5ZIWI.js');
11
-
12
-
13
-
14
-
15
-
16
-
17
-
18
-
19
- exports.asTenantId = _chunkNEVERCM3js.asTenantId; exports.asUserId = _chunkNEVERCM3js.asUserId; exports.generateId = _chunkNEVERCM3js.generateId; exports.generatePrefixedId = _chunkNEVERCM3js.generatePrefixedId; exports.generateTemplateName = _chunkNEVERCM3js.generateTemplateName; exports.indexBy = _chunkNEVERCM3js.indexBy; exports.slugify = _chunkNEVERCM3js.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,19 +1 @@
1
- import {
2
- asTenantId,
3
- asUserId,
4
- generateId,
5
- generatePrefixedId,
6
- generateTemplateName,
7
- indexBy,
8
- slugify
9
- } from "./chunk-V2RPPE2Y.mjs";
10
- import "./chunk-Y6FXYEAI.mjs";
11
- export {
12
- asTenantId,
13
- asUserId,
14
- generateId,
15
- generatePrefixedId,
16
- generateTemplateName,
17
- indexBy,
18
- slugify
19
- };
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-Ms3HtAmo.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-CftmKoRP.mjs';
20
+ import '../attributes-CH89Z_J-.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-D-0QbsA9.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-Dh_XiNFt.js';
20
+ import '../attributes-dw-jLtYS.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 chunkCE25ADK5_js = require('../chunk-CE25ADK5.js');
5
+ var chunk4DMDOSFN_js = require('../chunk-4DMDOSFN.js');
6
+ var chunkFKETRWAF_js = require('../chunk-FKETRWAF.js');
7
+ var chunkATA4XHB4_js = require('../chunk-ATA4XHB4.js');
8
+ var chunkSTKN6A5M_js = require('../chunk-STKN6A5M.js');
9
+ var chunkZWMMEQI7_js = require('../chunk-ZWMMEQI7.js');
10
+ var chunkANP6HGMJ_js = require('../chunk-ANP6HGMJ.js');
11
+ var chunkHJNLL34O_js = require('../chunk-HJNLL34O.js');
12
+ var chunkOO2LJ6GP_js = require('../chunk-OO2LJ6GP.js');
13
+ var chunkKC2FFNL4_js = require('../chunk-KC2FFNL4.js');
14
+ var chunkUPEQEX2D_js = require('../chunk-UPEQEX2D.js');
15
+ var chunk6IFD5732_js = require('../chunk-6IFD5732.js');
16
+ var chunkIMEPIVTR_js = require('../chunk-IMEPIVTR.js');
17
+ var chunkQPDXDX7A_js = require('../chunk-QPDXDX7A.js');
18
+ var chunkC7KW4NAD_js = require('../chunk-C7KW4NAD.js');
19
+ var chunk5CBTJS7J_js = require('../chunk-5CBTJS7J.js');
20
+ var chunkH3VBSMVW_js = require('../chunk-H3VBSMVW.js');
21
+ var chunk5SQEKHPW_js = require('../chunk-5SQEKHPW.js');
22
+ var chunkBEN6TE7Y_js = require('../chunk-BEN6TE7Y.js');
23
+
24
+
25
+
26
+ Object.defineProperty(exports, "computeRecordStatus", {
27
+ enumerable: true,
28
+ get: function () { return chunkCE25ADK5_js.computeRecordStatus; }
29
+ });
30
+ Object.defineProperty(exports, "createAttributeValidator", {
31
+ enumerable: true,
32
+ get: function () { return chunkCE25ADK5_js.createAttributeValidator; }
33
+ });
34
+ Object.defineProperty(exports, "createDraftValidator", {
35
+ enumerable: true,
36
+ get: function () { return chunkCE25ADK5_js.createDraftValidator; }
37
+ });
38
+ Object.defineProperty(exports, "createFormAttributeValidator", {
39
+ enumerable: true,
40
+ get: function () { return chunkCE25ADK5_js.createFormAttributeValidator; }
41
+ });
42
+ Object.defineProperty(exports, "createObjectValidator", {
43
+ enumerable: true,
44
+ get: function () { return chunkCE25ADK5_js.createObjectValidator; }
45
+ });
46
+ Object.defineProperty(exports, "getMissingRequiredAttributes", {
47
+ enumerable: true,
48
+ get: function () { return chunkCE25ADK5_js.getMissingRequiredAttributes; }
49
+ });
50
+ Object.defineProperty(exports, "isRecordComplete", {
51
+ enumerable: true,
52
+ get: function () { return chunkCE25ADK5_js.isRecordComplete; }
53
+ });
54
+ Object.defineProperty(exports, "validateAttribute", {
55
+ enumerable: true,
56
+ get: function () { return chunkCE25ADK5_js.validateAttribute; }
57
+ });
58
+ Object.defineProperty(exports, "validateDraft", {
59
+ enumerable: true,
60
+ get: function () { return chunkCE25ADK5_js.validateDraft; }
61
+ });
62
+ Object.defineProperty(exports, "validateDraftOrThrow", {
63
+ enumerable: true,
64
+ get: function () { return chunkCE25ADK5_js.validateDraftOrThrow; }
65
+ });
66
+ Object.defineProperty(exports, "validateObject", {
67
+ enumerable: true,
68
+ get: function () { return chunkCE25ADK5_js.validateObject; }
69
+ });
70
+ Object.defineProperty(exports, "validateObjectOrThrow", {
71
+ enumerable: true,
72
+ get: function () { return chunkCE25ADK5_js.validateObjectOrThrow; }
73
+ });
74
+ Object.defineProperty(exports, "createCheckboxValidator", {
75
+ enumerable: true,
76
+ get: function () { return chunk4DMDOSFN_js.createCheckboxValidator; }
77
+ });
78
+ Object.defineProperty(exports, "createDateValidator", {
79
+ enumerable: true,
80
+ get: function () { return chunkFKETRWAF_js.createDateValidator; }
81
+ });
82
+ Object.defineProperty(exports, "createNumberValidator", {
83
+ enumerable: true,
84
+ get: function () { return chunkATA4XHB4_js.createNumberValidator; }
85
+ });
86
+ Object.defineProperty(exports, "createRatingValidator", {
87
+ enumerable: true,
88
+ get: function () { return chunkSTKN6A5M_js.createRatingValidator; }
89
+ });
90
+ Object.defineProperty(exports, "createTextAreaValidator", {
91
+ enumerable: true,
92
+ get: function () { return chunkZWMMEQI7_js.createTextAreaValidator; }
93
+ });
94
+ Object.defineProperty(exports, "createTextValidator", {
95
+ enumerable: true,
96
+ get: function () { return chunkZWMMEQI7_js.createTextValidator; }
97
+ });
98
+ Object.defineProperty(exports, "createMultiRelationValidator", {
99
+ enumerable: true,
100
+ get: function () { return chunkANP6HGMJ_js.createMultiRelationValidator; }
101
+ });
102
+ Object.defineProperty(exports, "createRelationValidator", {
103
+ enumerable: true,
104
+ get: function () { return chunkANP6HGMJ_js.createRelationValidator; }
105
+ });
106
+ Object.defineProperty(exports, "createSingleRelationValidator", {
107
+ enumerable: true,
108
+ get: function () { return chunkANP6HGMJ_js.createSingleRelationValidator; }
109
+ });
110
+ Object.defineProperty(exports, "createRichtextValidator", {
111
+ enumerable: true,
112
+ get: function () { return chunkHJNLL34O_js.createRichtextValidator; }
113
+ });
114
+ Object.defineProperty(exports, "createMultiselectValidator", {
115
+ enumerable: true,
116
+ get: function () { return chunkOO2LJ6GP_js.createMultiselectValidator; }
117
+ });
118
+ Object.defineProperty(exports, "createSelectValidator", {
119
+ enumerable: true,
120
+ get: function () { return chunkOO2LJ6GP_js.createSelectValidator; }
121
+ });
122
+ Object.defineProperty(exports, "createStatusValidator", {
123
+ enumerable: true,
124
+ get: function () { return chunkOO2LJ6GP_js.createStatusValidator; }
125
+ });
126
+ Object.defineProperty(exports, "createUserValidator", {
127
+ enumerable: true,
128
+ get: function () { return chunkKC2FFNL4_js.createUserValidator; }
129
+ });
130
+ Object.defineProperty(exports, "createFormulaValidator", {
131
+ enumerable: true,
132
+ get: function () { return chunkUPEQEX2D_js.createFormulaValidator; }
133
+ });
134
+ Object.defineProperty(exports, "createRollupValidator", {
135
+ enumerable: true,
136
+ get: function () { return chunk6IFD5732_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 chunkQPDXDX7A_js.createCurrencyValidator; }
237
+ });
238
+ Object.defineProperty(exports, "createFileValidator", {
239
+ enumerable: true,
240
+ get: function () { return chunkC7KW4NAD_js.createFileValidator; }
241
+ });
242
+ Object.defineProperty(exports, "createLocationValidator", {
243
+ enumerable: true,
244
+ get: function () { return chunk5CBTJS7J_js.createLocationValidator; }
245
+ });
246
+ Object.defineProperty(exports, "createPhoneValidator", {
247
+ enumerable: true,
248
+ get: function () { return chunkH3VBSMVW_js.createPhoneValidator; }
249
+ });
250
+ Object.defineProperty(exports, "DEFAULT_VALIDATION_MESSAGES", {
251
+ enumerable: true,
252
+ get: function () { return chunk5SQEKHPW_js.DEFAULT_VALIDATION_MESSAGES; }
253
+ });
254
+ Object.defineProperty(exports, "createRegexCache", {
255
+ enumerable: true,
256
+ get: function () { return chunk5SQEKHPW_js.createRegexCache; }
257
+ });
258
+ Object.defineProperty(exports, "getCachedRegex", {
259
+ enumerable: true,
260
+ get: function () { return chunk5SQEKHPW_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-PGHTIMRD.mjs';
3
+ export { createCheckboxValidator } from '../chunk-2LUHLHLE.mjs';
4
+ export { createDateValidator } from '../chunk-BZTLI773.mjs';
5
+ export { createNumberValidator } from '../chunk-6MXQAQBB.mjs';
6
+ export { createRatingValidator } from '../chunk-4IVCBFJA.mjs';
7
+ export { createTextAreaValidator, createTextValidator } from '../chunk-7FSIBNRH.mjs';
8
+ export { createMultiRelationValidator, createRelationValidator, createSingleRelationValidator } from '../chunk-XPFWKISJ.mjs';
9
+ export { createRichtextValidator } from '../chunk-ALV6GETG.mjs';
10
+ export { createMultiselectValidator, createSelectValidator, createStatusValidator } from '../chunk-ZJNX6UXB.mjs';
11
+ export { createUserValidator } from '../chunk-3RFFA4EV.mjs';
12
+ export { createFormulaValidator } from '../chunk-TV4G2KMD.mjs';
13
+ export { createRollupValidator } from '../chunk-VC4E3OSZ.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-FKPYFM6G.mjs';
16
+ export { createFileValidator } from '../chunk-ERG77ADK.mjs';
17
+ export { createLocationValidator } from '../chunk-RDGBQM3N.mjs';
18
+ export { createPhoneValidator } from '../chunk-P4NGPF5L.mjs';
19
+ export { DEFAULT_VALIDATION_MESSAGES, createRegexCache, getCachedRegex } from '../chunk-JEDANRCG.mjs';
20
+ export { formatZodErrors } from '../chunk-RDXQ4CYT.mjs';
@@ -0,0 +1,15 @@
1
+ import { z } from 'zod';
2
+ import { C as CurrencyAttribute } from '../../attributes-CH89Z_J-.mjs';
3
+ import { V as ValidationMessages } from '../../types-Ms3HtAmo.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-dw-jLtYS.js';
3
+ import { V as ValidationMessages } from '../../types-D-0QbsA9.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 chunkQPDXDX7A_js = require('../../chunk-QPDXDX7A.js');
4
+ require('../../chunk-5SQEKHPW.js');
5
+ require('../../chunk-BEN6TE7Y.js');
6
+
7
+
8
+
9
+ Object.defineProperty(exports, "createCurrencyValidator", {
10
+ enumerable: true,
11
+ get: function () { return chunkQPDXDX7A_js.createCurrencyValidator; }
12
+ });
@@ -0,0 +1,3 @@
1
+ export { createCurrencyValidator } from '../../chunk-FKPYFM6G.mjs';
2
+ import '../../chunk-JEDANRCG.mjs';
3
+ import '../../chunk-RDXQ4CYT.mjs';
@@ -0,0 +1,13 @@
1
+ import { z } from 'zod';
2
+ import { F as FileAttribute } from '../../attributes-CH89Z_J-.mjs';
3
+ import { V as ValidationMessages } from '../../types-Ms3HtAmo.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-dw-jLtYS.js';
3
+ import { V as ValidationMessages } from '../../types-D-0QbsA9.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 chunkC7KW4NAD_js = require('../../chunk-C7KW4NAD.js');
4
+ require('../../chunk-5SQEKHPW.js');
5
+ require('../../chunk-BEN6TE7Y.js');
6
+
7
+
8
+
9
+ Object.defineProperty(exports, "createFileValidator", {
10
+ enumerable: true,
11
+ get: function () { return chunkC7KW4NAD_js.createFileValidator; }
12
+ });
@@ -0,0 +1,3 @@
1
+ export { createFileValidator } from '../../chunk-ERG77ADK.mjs';
2
+ import '../../chunk-JEDANRCG.mjs';
3
+ import '../../chunk-RDXQ4CYT.mjs';