@stndrds/schema 1.0.0-alpha.302 → 1.0.0-alpha.303

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 (65) hide show
  1. package/dist/{all-CarWsKlE.d.ts → all-BV7tFgtR.d.ts} +3 -3
  2. package/dist/{all-CNJlNEG2.d.mts → all-EX5romwn.d.mts} +3 -3
  3. package/dist/attributes-CJNqalP0.d.mts +1350 -0
  4. package/dist/attributes-CJNqalP0.d.ts +1350 -0
  5. package/dist/chunk-CCB4E55H.mjs +2 -0
  6. package/dist/chunk-JKGRSRRX.js +2 -0
  7. package/dist/exceptions.d.mts +1 -536
  8. package/dist/exceptions.d.ts +1 -536
  9. package/dist/{helpers-MEZ69ERH.d.mts → helpers-BnyKRb4x.d.mts} +3 -3
  10. package/dist/{helpers-BQ524PQe.d.ts → helpers-DIWzq1cf.d.ts} +3 -3
  11. package/dist/{index-DL0rfjzZ.d.ts → index-B36J5GDI.d.ts} +2 -2
  12. package/dist/{index-Kd4QZ13G.d.mts → index-DcXCAPHR.d.mts} +2 -2
  13. package/dist/index.d.mts +91 -16
  14. package/dist/index.d.ts +91 -16
  15. package/dist/index.js +17 -17
  16. package/dist/index.mjs +17 -17
  17. package/dist/{objects-D8tojUPV.d.ts → objects-CfJvQbZc.d.ts} +1 -3
  18. package/dist/{objects-DvZ79fW2.d.mts → objects-DglxOigU.d.mts} +1 -3
  19. package/dist/{types-R2f1GdCB.d.ts → types-CEwRsyh0.d.ts} +1 -1
  20. package/dist/{types-M5L07ItN.d.mts → types-Co8cq3dM.d.mts} +1 -1
  21. package/dist/utils.d.mts +2 -134
  22. package/dist/utils.d.ts +2 -134
  23. package/dist/utils.js +1 -1
  24. package/dist/utils.mjs +1 -1
  25. package/dist/validation/all.d.mts +6 -8
  26. package/dist/validation/all.d.ts +6 -8
  27. package/dist/validation/complex/currency.d.mts +2 -3
  28. package/dist/validation/complex/currency.d.ts +2 -3
  29. package/dist/validation/complex/location.d.mts +2 -3
  30. package/dist/validation/complex/location.d.ts +2 -3
  31. package/dist/validation/complex/phone.d.mts +2 -3
  32. package/dist/validation/complex/phone.d.ts +2 -3
  33. package/dist/validation/complex/relation.d.mts +2 -3
  34. package/dist/validation/complex/relation.d.ts +2 -3
  35. package/dist/validation/complex/richtext.d.mts +2 -3
  36. package/dist/validation/complex/richtext.d.ts +2 -3
  37. package/dist/validation/complex/select.d.mts +2 -3
  38. package/dist/validation/complex/select.d.ts +2 -3
  39. package/dist/validation/complex/user.d.mts +2 -3
  40. package/dist/validation/complex/user.d.ts +2 -3
  41. package/dist/validation/computed/formula.d.mts +2 -3
  42. package/dist/validation/computed/formula.d.ts +2 -3
  43. package/dist/validation/computed/rollup.d.mts +2 -3
  44. package/dist/validation/computed/rollup.d.ts +2 -3
  45. package/dist/validation/config/index.d.mts +3 -5
  46. package/dist/validation/config/index.d.ts +3 -5
  47. package/dist/validation/core/index.d.mts +3 -4
  48. package/dist/validation/core/index.d.ts +3 -4
  49. package/dist/validation/object/index.d.mts +4 -6
  50. package/dist/validation/object/index.d.ts +4 -6
  51. package/dist/validation/primitives/checkbox.d.mts +2 -3
  52. package/dist/validation/primitives/checkbox.d.ts +2 -3
  53. package/dist/validation/primitives/date.d.mts +2 -3
  54. package/dist/validation/primitives/date.d.ts +2 -3
  55. package/dist/validation/primitives/number.d.mts +2 -3
  56. package/dist/validation/primitives/number.d.ts +2 -3
  57. package/dist/validation/primitives/text.d.mts +2 -3
  58. package/dist/validation/primitives/text.d.ts +2 -3
  59. package/package.json +2 -2
  60. package/dist/attributes-DfhBu4HT.d.ts +0 -590
  61. package/dist/attributes-Zw-DDGE7.d.mts +0 -590
  62. package/dist/chunk-64F3CCLD.mjs +0 -2
  63. package/dist/chunk-ZMDMQAV5.js +0 -2
  64. package/dist/migrations-B1Wl_3RY.d.ts +0 -39
  65. package/dist/migrations-BG2mNaJn.d.mts +0 -39
@@ -1,7 +1,5 @@
1
1
  import { IconName } from '@stndrds/constants';
2
- import { Uuid } from './utils.js';
3
- import { A as Attribute } from './attributes-DfhBu4HT.js';
4
- import { M as MigrationDefinition } from './migrations-B1Wl_3RY.js';
2
+ import { g as Uuid, A as Attribute, h as MigrationDefinition } from './attributes-CJNqalP0.js';
5
3
 
6
4
  interface DocumentLayout {
7
5
  /** Named sub-folders auto-created at the top of the record's drive when first used via attach --variant. */
@@ -1,7 +1,5 @@
1
1
  import { IconName } from '@stndrds/constants';
2
- import { Uuid } from './utils.mjs';
3
- import { A as Attribute } from './attributes-Zw-DDGE7.mjs';
4
- import { M as MigrationDefinition } from './migrations-BG2mNaJn.mjs';
2
+ import { g as Uuid, A as Attribute, h as MigrationDefinition } from './attributes-CJNqalP0.mjs';
5
3
 
6
4
  interface DocumentLayout {
7
5
  /** Named sub-folders auto-created at the top of the record's drive when first used via attach --variant. */
@@ -1,4 +1,4 @@
1
- import { A as Attribute } from './attributes-DfhBu4HT.js';
1
+ import { A as Attribute } from './attributes-CJNqalP0.js';
2
2
 
3
3
  /**
4
4
  * Validation messages for Zod validators.
@@ -1,4 +1,4 @@
1
- import { A as Attribute } from './attributes-Zw-DDGE7.mjs';
1
+ import { A as Attribute } from './attributes-CJNqalP0.mjs';
2
2
 
3
3
  /**
4
4
  * Validation messages for Zod validators.
package/dist/utils.d.mts CHANGED
@@ -1,134 +1,2 @@
1
- /**
2
- * Serializes a value into deterministic JSON: object keys are sorted
3
- * recursively, array order is preserved, `undefined` object entries are
4
- * omitted, and no whitespace is emitted.
5
- *
6
- * This is the single canonicalization used to hash view (and future schema)
7
- * definitions across the runtime boot seed, the server, and the CLI — the
8
- * output must stay byte-identical for equivalent inputs regardless of key
9
- * insertion order or jsonb storage round-trips.
10
- *
11
- * @throws {ValidationError} On circular references or unsupported value types
12
- * (functions, symbols, bigint).
13
- */
14
- declare function canonicalStringify(value: unknown): string;
15
-
16
- /**
17
- * Brand symbol for nominal typing.
18
- * This ensures type-safety by making IDs non-interchangeable.
19
- */
20
- declare const __brand: unique symbol;
21
- /**
22
- * Creates a branded type from a base type.
23
- * Branded types are structurally identical but nominally different.
24
- */
25
- type Brand<T, B> = T & {
26
- readonly [__brand]: B;
27
- };
28
- /**
29
- * UUID string type for all identifiers
30
- */
31
- type Uuid = string;
32
- /**
33
- * Tenant identifier for multi-tenant isolation.
34
- * Branded type to prevent accidental mixing with other string IDs.
35
- *
36
- * @example
37
- * ```typescript
38
- * const tenantId: TenantId = asTenantId('tenant-123');
39
- * const userId: UserId = asUserId('user-456');
40
- *
41
- * // Type error: cannot assign UserId to TenantId
42
- * const wrong: TenantId = userId;
43
- * ```
44
- */
45
- type TenantId = Brand<string, "TenantId">;
46
- /**
47
- * User identifier for audit trails and permissions.
48
- * Branded type to prevent accidental mixing with other string IDs.
49
- */
50
- type UserId = Brand<string, "UserId">;
51
- /**
52
- * Convert a string to a TenantId.
53
- * Use this when receiving tenant IDs from external sources (JWT, headers).
54
- *
55
- * @param id - The string to convert
56
- * @returns A branded TenantId
57
- *
58
- * @example
59
- * ```typescript
60
- * const tenantId = asTenantId(request.headers['x-tenant-id']);
61
- * ```
62
- */
63
- declare function asTenantId(id: string): TenantId;
64
- /**
65
- * Convert a string to a UserId.
66
- * Use this when receiving user IDs from external sources (JWT, auth).
67
- *
68
- * @param id - The string to convert
69
- * @returns A branded UserId
70
- *
71
- * @example
72
- * ```typescript
73
- * const userId = asUserId(jwtPayload.sub);
74
- * ```
75
- */
76
- declare function asUserId(id: string): UserId;
77
- /**
78
- * Generate a unique UUID v4
79
- * Uses crypto.randomUUID() when available (Node.js 19+, modern browsers)
80
- * Falls back to a manual implementation for older environments
81
- *
82
- * @returns A UUID v4 string
83
- *
84
- * @example
85
- * ```typescript
86
- * const id = generateId();
87
- * // "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d"
88
- * ```
89
- */
90
- declare function generateId(): Uuid;
91
- /**
92
- * Create a Map indexed by a key extracted from each item.
93
- * This eliminates the repeated pattern: new Map(items.map(item => [keyFn(item), item]))
94
- *
95
- * Time complexity: O(n)
96
- * Space complexity: O(n)
97
- *
98
- * @param items - Array of items to index
99
- * @param keyFn - Function to extract the key from each item
100
- * @returns Map indexed by the extracted key
101
- *
102
- * @example
103
- * ```typescript
104
- * const attributes = [{ name: "title", type: "text" }, { name: "status", type: "select" }];
105
- *
106
- * // Before:
107
- * const attrMap = new Map(attributes.map(a => [a.name, a]));
108
- *
109
- * // After:
110
- * const attrMap = indexBy(attributes, a => a.name);
111
- * ```
112
- */
113
- declare function indexBy<T, K extends PropertyKey>(items: T[], keyFn: (item: T) => K): Map<K, T>;
114
- /**
115
- * Deep equality comparison for plain objects and arrays.
116
- * Handles nested structures, arrays, primitives, null, and undefined.
117
- *
118
- * Time complexity: O(n) where n is total number of properties
119
- *
120
- * @param a - First value to compare
121
- * @param b - Second value to compare
122
- * @returns true if values are deeply equal
123
- *
124
- * @example
125
- * ```typescript
126
- * deepEqual({ a: 1, b: { c: 2 } }, { a: 1, b: { c: 2 } }); // true
127
- * deepEqual({ a: 1, b: 2 }, { b: 2, a: 1 }); // true (order-independent)
128
- * deepEqual([1, 2, 3], [1, 2, 3]); // true
129
- * deepEqual([1, 2], [2, 1]); // false (arrays preserve order)
130
- * ```
131
- */
132
- declare function deepEqual(a: unknown, b: unknown): boolean;
133
-
134
- export { type TenantId, type UserId, type Uuid, asTenantId, asUserId, canonicalStringify, deepEqual, generateId, indexBy };
1
+ export { p as TenantId, aK as UserId, g as Uuid, aM as asTenantId, aN as asUserId, aO as canonicalStringify, aP as deepEqual, aQ as generateId, aS as indexBy } from './attributes-CJNqalP0.mjs';
2
+ import '@stndrds/constants';
package/dist/utils.d.ts CHANGED
@@ -1,134 +1,2 @@
1
- /**
2
- * Serializes a value into deterministic JSON: object keys are sorted
3
- * recursively, array order is preserved, `undefined` object entries are
4
- * omitted, and no whitespace is emitted.
5
- *
6
- * This is the single canonicalization used to hash view (and future schema)
7
- * definitions across the runtime boot seed, the server, and the CLI — the
8
- * output must stay byte-identical for equivalent inputs regardless of key
9
- * insertion order or jsonb storage round-trips.
10
- *
11
- * @throws {ValidationError} On circular references or unsupported value types
12
- * (functions, symbols, bigint).
13
- */
14
- declare function canonicalStringify(value: unknown): string;
15
-
16
- /**
17
- * Brand symbol for nominal typing.
18
- * This ensures type-safety by making IDs non-interchangeable.
19
- */
20
- declare const __brand: unique symbol;
21
- /**
22
- * Creates a branded type from a base type.
23
- * Branded types are structurally identical but nominally different.
24
- */
25
- type Brand<T, B> = T & {
26
- readonly [__brand]: B;
27
- };
28
- /**
29
- * UUID string type for all identifiers
30
- */
31
- type Uuid = string;
32
- /**
33
- * Tenant identifier for multi-tenant isolation.
34
- * Branded type to prevent accidental mixing with other string IDs.
35
- *
36
- * @example
37
- * ```typescript
38
- * const tenantId: TenantId = asTenantId('tenant-123');
39
- * const userId: UserId = asUserId('user-456');
40
- *
41
- * // Type error: cannot assign UserId to TenantId
42
- * const wrong: TenantId = userId;
43
- * ```
44
- */
45
- type TenantId = Brand<string, "TenantId">;
46
- /**
47
- * User identifier for audit trails and permissions.
48
- * Branded type to prevent accidental mixing with other string IDs.
49
- */
50
- type UserId = Brand<string, "UserId">;
51
- /**
52
- * Convert a string to a TenantId.
53
- * Use this when receiving tenant IDs from external sources (JWT, headers).
54
- *
55
- * @param id - The string to convert
56
- * @returns A branded TenantId
57
- *
58
- * @example
59
- * ```typescript
60
- * const tenantId = asTenantId(request.headers['x-tenant-id']);
61
- * ```
62
- */
63
- declare function asTenantId(id: string): TenantId;
64
- /**
65
- * Convert a string to a UserId.
66
- * Use this when receiving user IDs from external sources (JWT, auth).
67
- *
68
- * @param id - The string to convert
69
- * @returns A branded UserId
70
- *
71
- * @example
72
- * ```typescript
73
- * const userId = asUserId(jwtPayload.sub);
74
- * ```
75
- */
76
- declare function asUserId(id: string): UserId;
77
- /**
78
- * Generate a unique UUID v4
79
- * Uses crypto.randomUUID() when available (Node.js 19+, modern browsers)
80
- * Falls back to a manual implementation for older environments
81
- *
82
- * @returns A UUID v4 string
83
- *
84
- * @example
85
- * ```typescript
86
- * const id = generateId();
87
- * // "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d"
88
- * ```
89
- */
90
- declare function generateId(): Uuid;
91
- /**
92
- * Create a Map indexed by a key extracted from each item.
93
- * This eliminates the repeated pattern: new Map(items.map(item => [keyFn(item), item]))
94
- *
95
- * Time complexity: O(n)
96
- * Space complexity: O(n)
97
- *
98
- * @param items - Array of items to index
99
- * @param keyFn - Function to extract the key from each item
100
- * @returns Map indexed by the extracted key
101
- *
102
- * @example
103
- * ```typescript
104
- * const attributes = [{ name: "title", type: "text" }, { name: "status", type: "select" }];
105
- *
106
- * // Before:
107
- * const attrMap = new Map(attributes.map(a => [a.name, a]));
108
- *
109
- * // After:
110
- * const attrMap = indexBy(attributes, a => a.name);
111
- * ```
112
- */
113
- declare function indexBy<T, K extends PropertyKey>(items: T[], keyFn: (item: T) => K): Map<K, T>;
114
- /**
115
- * Deep equality comparison for plain objects and arrays.
116
- * Handles nested structures, arrays, primitives, null, and undefined.
117
- *
118
- * Time complexity: O(n) where n is total number of properties
119
- *
120
- * @param a - First value to compare
121
- * @param b - Second value to compare
122
- * @returns true if values are deeply equal
123
- *
124
- * @example
125
- * ```typescript
126
- * deepEqual({ a: 1, b: { c: 2 } }, { a: 1, b: { c: 2 } }); // true
127
- * deepEqual({ a: 1, b: 2 }, { b: 2, a: 1 }); // true (order-independent)
128
- * deepEqual([1, 2, 3], [1, 2, 3]); // true
129
- * deepEqual([1, 2], [2, 1]); // false (arrays preserve order)
130
- * ```
131
- */
132
- declare function deepEqual(a: unknown, b: unknown): boolean;
133
-
134
- export { type TenantId, type UserId, type Uuid, asTenantId, asUserId, canonicalStringify, deepEqual, generateId, indexBy };
1
+ export { p as TenantId, aK as UserId, g as Uuid, aM as asTenantId, aN as asUserId, aO as canonicalStringify, aP as deepEqual, aQ as generateId, aS as indexBy } from './attributes-CJNqalP0.js';
2
+ import '@stndrds/constants';
package/dist/utils.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var chunkZMDMQAV5_js=require('./chunk-ZMDMQAV5.js');require('./chunk-GZUTZAPU.js'),require('./chunk-DPD6ZWL2.js');Object.defineProperty(exports,"asTenantId",{enumerable:true,get:function(){return chunkZMDMQAV5_js.b}});Object.defineProperty(exports,"asUserId",{enumerable:true,get:function(){return chunkZMDMQAV5_js.c}});Object.defineProperty(exports,"canonicalStringify",{enumerable:true,get:function(){return chunkZMDMQAV5_js.a}});Object.defineProperty(exports,"deepEqual",{enumerable:true,get:function(){return chunkZMDMQAV5_js.f}});Object.defineProperty(exports,"generateId",{enumerable:true,get:function(){return chunkZMDMQAV5_js.d}});Object.defineProperty(exports,"indexBy",{enumerable:true,get:function(){return chunkZMDMQAV5_js.e}});
1
+ 'use strict';var chunkJKGRSRRX_js=require('./chunk-JKGRSRRX.js');require('./chunk-GZUTZAPU.js'),require('./chunk-DPD6ZWL2.js');Object.defineProperty(exports,"asTenantId",{enumerable:true,get:function(){return chunkJKGRSRRX_js.f}});Object.defineProperty(exports,"asUserId",{enumerable:true,get:function(){return chunkJKGRSRRX_js.g}});Object.defineProperty(exports,"canonicalStringify",{enumerable:true,get:function(){return chunkJKGRSRRX_js.b}});Object.defineProperty(exports,"deepEqual",{enumerable:true,get:function(){return chunkJKGRSRRX_js.j}});Object.defineProperty(exports,"generateId",{enumerable:true,get:function(){return chunkJKGRSRRX_js.h}});Object.defineProperty(exports,"indexBy",{enumerable:true,get:function(){return chunkJKGRSRRX_js.i}});
package/dist/utils.mjs CHANGED
@@ -1 +1 @@
1
- export{b as asTenantId,c as asUserId,a as canonicalStringify,f as deepEqual,d as generateId,e as indexBy}from'./chunk-64F3CCLD.mjs';import'./chunk-55SG6IBQ.mjs';import'./chunk-KSPJP74K.mjs';
1
+ export{f as asTenantId,g as asUserId,b as canonicalStringify,j as deepEqual,h as generateId,i as indexBy}from'./chunk-CCB4E55H.mjs';import'./chunk-55SG6IBQ.mjs';import'./chunk-KSPJP74K.mjs';
@@ -1,11 +1,9 @@
1
- export { V as ValidationMessages } from '../types-M5L07ItN.mjs';
1
+ export { V as ValidationMessages } from '../types-Co8cq3dM.mjs';
2
2
  export { DEFAULT_VALIDATION_MESSAGES, formatZodErrors } from './core/index.mjs';
3
- export { ad as multiselectOptionWriteSchema, ae as parseAttributeConfig, af as parseAttributeConfigForCreate, ag as parseAttributeConfigForUpdate, ah as selectOptionWriteSchema, ai as statusGroupSchema, aj as statusOptionWriteSchema } from '../index-Kd4QZ13G.mjs';
4
- export { S as SCHEMA_LIMITS, c as colorIdSchema, e as detailTabSchema, f as detailViewConfigSchema, n as iconNameSchema, o as inverseSourceSchema, p as listViewConfigSchema, q as listViewTabSchema, r as parseViewConfig, s as relationSourceSchema, u as tableSourceSchema, v as viewConfigByTypeSchema } from '../all-CNJlNEG2.mjs';
5
- export { a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, b as validateDraft, d as validateDraftOrThrow, e as validateObject, f as validateObjectOrThrow } from '../helpers-MEZ69ERH.mjs';
6
- import '../attributes-Zw-DDGE7.mjs';
3
+ export { ad as multiselectOptionWriteSchema, ae as parseAttributeConfig, af as parseAttributeConfigForCreate, ag as parseAttributeConfigForUpdate, ah as selectOptionWriteSchema, ai as statusGroupSchema, aj as statusOptionWriteSchema } from '../index-DcXCAPHR.mjs';
4
+ export { S as SCHEMA_LIMITS, c as colorIdSchema, e as detailTabSchema, f as detailViewConfigSchema, n as iconNameSchema, o as inverseSourceSchema, p as listViewConfigSchema, q as listViewTabSchema, r as parseViewConfig, s as relationSourceSchema, u as tableSourceSchema, v as viewConfigByTypeSchema } from '../all-EX5romwn.mjs';
5
+ export { a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, b as validateDraft, d as validateDraftOrThrow, e as validateObject, f as validateObjectOrThrow } from '../helpers-BnyKRb4x.mjs';
6
+ import '../attributes-CJNqalP0.mjs';
7
7
  import '@stndrds/constants';
8
- import '../utils.mjs';
9
8
  import 'zod';
10
- import '../objects-DvZ79fW2.mjs';
11
- import '../migrations-BG2mNaJn.mjs';
9
+ import '../objects-DglxOigU.mjs';
@@ -1,11 +1,9 @@
1
- export { V as ValidationMessages } from '../types-R2f1GdCB.js';
1
+ export { V as ValidationMessages } from '../types-CEwRsyh0.js';
2
2
  export { DEFAULT_VALIDATION_MESSAGES, formatZodErrors } from './core/index.js';
3
- export { ad as multiselectOptionWriteSchema, ae as parseAttributeConfig, af as parseAttributeConfigForCreate, ag as parseAttributeConfigForUpdate, ah as selectOptionWriteSchema, ai as statusGroupSchema, aj as statusOptionWriteSchema } from '../index-DL0rfjzZ.js';
4
- export { S as SCHEMA_LIMITS, c as colorIdSchema, e as detailTabSchema, f as detailViewConfigSchema, n as iconNameSchema, o as inverseSourceSchema, p as listViewConfigSchema, q as listViewTabSchema, r as parseViewConfig, s as relationSourceSchema, u as tableSourceSchema, v as viewConfigByTypeSchema } from '../all-CarWsKlE.js';
5
- export { a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, b as validateDraft, d as validateDraftOrThrow, e as validateObject, f as validateObjectOrThrow } from '../helpers-BQ524PQe.js';
6
- import '../attributes-DfhBu4HT.js';
3
+ export { ad as multiselectOptionWriteSchema, ae as parseAttributeConfig, af as parseAttributeConfigForCreate, ag as parseAttributeConfigForUpdate, ah as selectOptionWriteSchema, ai as statusGroupSchema, aj as statusOptionWriteSchema } from '../index-B36J5GDI.js';
4
+ export { S as SCHEMA_LIMITS, c as colorIdSchema, e as detailTabSchema, f as detailViewConfigSchema, n as iconNameSchema, o as inverseSourceSchema, p as listViewConfigSchema, q as listViewTabSchema, r as parseViewConfig, s as relationSourceSchema, u as tableSourceSchema, v as viewConfigByTypeSchema } from '../all-BV7tFgtR.js';
5
+ export { a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, b as validateDraft, d as validateDraftOrThrow, e as validateObject, f as validateObjectOrThrow } from '../helpers-DIWzq1cf.js';
6
+ import '../attributes-CJNqalP0.js';
7
7
  import '@stndrds/constants';
8
- import '../utils.js';
9
8
  import 'zod';
10
- import '../objects-D8tojUPV.js';
11
- import '../migrations-B1Wl_3RY.js';
9
+ import '../objects-CfJvQbZc.js';
@@ -1,8 +1,7 @@
1
1
  import { z } from 'zod';
2
- import { a as CurrencyAttribute } from '../../attributes-Zw-DDGE7.mjs';
3
- import { V as ValidationMessages } from '../../types-M5L07ItN.mjs';
2
+ import { a as CurrencyAttribute } from '../../attributes-CJNqalP0.mjs';
3
+ import { V as ValidationMessages } from '../../types-Co8cq3dM.mjs';
4
4
  import '@stndrds/constants';
5
- import '../../utils.mjs';
6
5
 
7
6
  /**
8
7
  * Create a Zod schema for a currency attribute
@@ -1,8 +1,7 @@
1
1
  import { z } from 'zod';
2
- import { a as CurrencyAttribute } from '../../attributes-DfhBu4HT.js';
3
- import { V as ValidationMessages } from '../../types-R2f1GdCB.js';
2
+ import { a as CurrencyAttribute } from '../../attributes-CJNqalP0.js';
3
+ import { V as ValidationMessages } from '../../types-CEwRsyh0.js';
4
4
  import '@stndrds/constants';
5
- import '../../utils.js';
6
5
 
7
6
  /**
8
7
  * Create a Zod schema for a currency attribute
@@ -1,8 +1,7 @@
1
1
  import { z } from 'zod';
2
- import { L as LocationAttribute } from '../../attributes-Zw-DDGE7.mjs';
3
- import { V as ValidationMessages } from '../../types-M5L07ItN.mjs';
2
+ import { L as LocationAttribute } from '../../attributes-CJNqalP0.mjs';
3
+ import { V as ValidationMessages } from '../../types-Co8cq3dM.mjs';
4
4
  import '@stndrds/constants';
5
- import '../../utils.mjs';
6
5
 
7
6
  type LocationShape = {
8
7
  address?: string;
@@ -1,8 +1,7 @@
1
1
  import { z } from 'zod';
2
- import { L as LocationAttribute } from '../../attributes-DfhBu4HT.js';
3
- import { V as ValidationMessages } from '../../types-R2f1GdCB.js';
2
+ import { L as LocationAttribute } from '../../attributes-CJNqalP0.js';
3
+ import { V as ValidationMessages } from '../../types-CEwRsyh0.js';
4
4
  import '@stndrds/constants';
5
- import '../../utils.js';
6
5
 
7
6
  type LocationShape = {
8
7
  address?: string;
@@ -1,8 +1,7 @@
1
1
  import { z } from 'zod';
2
- import { P as PhoneAttribute } from '../../attributes-Zw-DDGE7.mjs';
3
- import { V as ValidationMessages } from '../../types-M5L07ItN.mjs';
2
+ import { P as PhoneAttribute } from '../../attributes-CJNqalP0.mjs';
3
+ import { V as ValidationMessages } from '../../types-Co8cq3dM.mjs';
4
4
  import '@stndrds/constants';
5
- import '../../utils.mjs';
6
5
 
7
6
  /**
8
7
  * Create a Zod schema for a phone attribute.
@@ -1,8 +1,7 @@
1
1
  import { z } from 'zod';
2
- import { P as PhoneAttribute } from '../../attributes-DfhBu4HT.js';
3
- import { V as ValidationMessages } from '../../types-R2f1GdCB.js';
2
+ import { P as PhoneAttribute } from '../../attributes-CJNqalP0.js';
3
+ import { V as ValidationMessages } from '../../types-CEwRsyh0.js';
4
4
  import '@stndrds/constants';
5
- import '../../utils.js';
6
5
 
7
6
  /**
8
7
  * Create a Zod schema for a phone attribute.
@@ -1,8 +1,7 @@
1
1
  import { z } from 'zod';
2
- import { c as MultiRelationAttribute, d as RelationAttribute, e as SingleRelationAttribute } from '../../attributes-Zw-DDGE7.mjs';
3
- import { V as ValidationMessages } from '../../types-M5L07ItN.mjs';
2
+ import { c as MultiRelationAttribute, d as RelationAttribute, e as SingleRelationAttribute } from '../../attributes-CJNqalP0.mjs';
3
+ import { V as ValidationMessages } from '../../types-Co8cq3dM.mjs';
4
4
  import '@stndrds/constants';
5
- import '../../utils.mjs';
6
5
 
7
6
  /**
8
7
  * Create a Zod schema for a single relation attribute (cardinality: "one")
@@ -1,8 +1,7 @@
1
1
  import { z } from 'zod';
2
- import { c as MultiRelationAttribute, d as RelationAttribute, e as SingleRelationAttribute } from '../../attributes-DfhBu4HT.js';
3
- import { V as ValidationMessages } from '../../types-R2f1GdCB.js';
2
+ import { c as MultiRelationAttribute, d as RelationAttribute, e as SingleRelationAttribute } from '../../attributes-CJNqalP0.js';
3
+ import { V as ValidationMessages } from '../../types-CEwRsyh0.js';
4
4
  import '@stndrds/constants';
5
- import '../../utils.js';
6
5
 
7
6
  /**
8
7
  * Create a Zod schema for a single relation attribute (cardinality: "one")
@@ -1,8 +1,7 @@
1
1
  import { z } from 'zod';
2
- import { R as RichtextAttribute } from '../../attributes-Zw-DDGE7.mjs';
3
- import { V as ValidationMessages } from '../../types-M5L07ItN.mjs';
2
+ import { R as RichtextAttribute } from '../../attributes-CJNqalP0.mjs';
3
+ import { V as ValidationMessages } from '../../types-Co8cq3dM.mjs';
4
4
  import '@stndrds/constants';
5
- import '../../utils.mjs';
6
5
 
7
6
  /**
8
7
  * Create a Zod schema for a richtext attribute.
@@ -1,8 +1,7 @@
1
1
  import { z } from 'zod';
2
- import { R as RichtextAttribute } from '../../attributes-DfhBu4HT.js';
3
- import { V as ValidationMessages } from '../../types-R2f1GdCB.js';
2
+ import { R as RichtextAttribute } from '../../attributes-CJNqalP0.js';
3
+ import { V as ValidationMessages } from '../../types-CEwRsyh0.js';
4
4
  import '@stndrds/constants';
5
- import '../../utils.js';
6
5
 
7
6
  /**
8
7
  * Create a Zod schema for a richtext attribute.
@@ -1,8 +1,7 @@
1
1
  import { z } from 'zod';
2
- import { M as MultiselectAttribute, S as SelectAttribute, b as StatusAttribute } from '../../attributes-Zw-DDGE7.mjs';
3
- import { V as ValidationMessages } from '../../types-M5L07ItN.mjs';
2
+ import { M as MultiselectAttribute, S as SelectAttribute, b as StatusAttribute } from '../../attributes-CJNqalP0.mjs';
3
+ import { V as ValidationMessages } from '../../types-Co8cq3dM.mjs';
4
4
  import '@stndrds/constants';
5
- import '../../utils.mjs';
6
5
 
7
6
  /**
8
7
  * Create a Zod schema for a select attribute
@@ -1,8 +1,7 @@
1
1
  import { z } from 'zod';
2
- import { M as MultiselectAttribute, S as SelectAttribute, b as StatusAttribute } from '../../attributes-DfhBu4HT.js';
3
- import { V as ValidationMessages } from '../../types-R2f1GdCB.js';
2
+ import { M as MultiselectAttribute, S as SelectAttribute, b as StatusAttribute } from '../../attributes-CJNqalP0.js';
3
+ import { V as ValidationMessages } from '../../types-CEwRsyh0.js';
4
4
  import '@stndrds/constants';
5
- import '../../utils.js';
6
5
 
7
6
  /**
8
7
  * Create a Zod schema for a select attribute
@@ -1,8 +1,7 @@
1
1
  import { z } from 'zod';
2
- import { U as UserAttribute } from '../../attributes-Zw-DDGE7.mjs';
3
- import { V as ValidationMessages } from '../../types-M5L07ItN.mjs';
2
+ import { U as UserAttribute } from '../../attributes-CJNqalP0.mjs';
3
+ import { V as ValidationMessages } from '../../types-Co8cq3dM.mjs';
4
4
  import '@stndrds/constants';
5
- import '../../utils.mjs';
6
5
 
7
6
  /**
8
7
  * Create a Zod schema for a user attribute
@@ -1,8 +1,7 @@
1
1
  import { z } from 'zod';
2
- import { U as UserAttribute } from '../../attributes-DfhBu4HT.js';
3
- import { V as ValidationMessages } from '../../types-R2f1GdCB.js';
2
+ import { U as UserAttribute } from '../../attributes-CJNqalP0.js';
3
+ import { V as ValidationMessages } from '../../types-CEwRsyh0.js';
4
4
  import '@stndrds/constants';
5
- import '../../utils.js';
6
5
 
7
6
  /**
8
7
  * Create a Zod schema for a user attribute
@@ -1,8 +1,7 @@
1
1
  import { z } from 'zod';
2
- import { F as FormulaAttribute } from '../../attributes-Zw-DDGE7.mjs';
3
- import { V as ValidationMessages } from '../../types-M5L07ItN.mjs';
2
+ import { F as FormulaAttribute } from '../../attributes-CJNqalP0.mjs';
3
+ import { V as ValidationMessages } from '../../types-Co8cq3dM.mjs';
4
4
  import '@stndrds/constants';
5
- import '../../utils.mjs';
6
5
 
7
6
  /**
8
7
  * Create a Zod schema for a formula attribute.
@@ -1,8 +1,7 @@
1
1
  import { z } from 'zod';
2
- import { F as FormulaAttribute } from '../../attributes-DfhBu4HT.js';
3
- import { V as ValidationMessages } from '../../types-R2f1GdCB.js';
2
+ import { F as FormulaAttribute } from '../../attributes-CJNqalP0.js';
3
+ import { V as ValidationMessages } from '../../types-CEwRsyh0.js';
4
4
  import '@stndrds/constants';
5
- import '../../utils.js';
6
5
 
7
6
  /**
8
7
  * Create a Zod schema for a formula attribute.
@@ -1,8 +1,7 @@
1
1
  import { z } from 'zod';
2
- import { f as RollupAttribute } from '../../attributes-Zw-DDGE7.mjs';
3
- import { V as ValidationMessages } from '../../types-M5L07ItN.mjs';
2
+ import { f as RollupAttribute } from '../../attributes-CJNqalP0.mjs';
3
+ import { V as ValidationMessages } from '../../types-Co8cq3dM.mjs';
4
4
  import '@stndrds/constants';
5
- import '../../utils.mjs';
6
5
 
7
6
  /**
8
7
  * Create a Zod schema for a rollup attribute.
@@ -1,8 +1,7 @@
1
1
  import { z } from 'zod';
2
- import { f as RollupAttribute } from '../../attributes-DfhBu4HT.js';
3
- import { V as ValidationMessages } from '../../types-R2f1GdCB.js';
2
+ import { f as RollupAttribute } from '../../attributes-CJNqalP0.js';
3
+ import { V as ValidationMessages } from '../../types-CEwRsyh0.js';
4
4
  import '@stndrds/constants';
5
- import '../../utils.js';
6
5
 
7
6
  /**
8
7
  * Create a Zod schema for a rollup attribute.
@@ -1,7 +1,5 @@
1
- export { ak as attributeConfigSchemas, al as getAttributeConfigSchema, am as getAttributeConfigWriteSchema, ad as multiselectOptionWriteSchema, ae as parseAttributeConfig, af as parseAttributeConfigForCreate, ag as parseAttributeConfigForUpdate, ah as selectOptionWriteSchema, ai as statusGroupSchema, aj as statusOptionWriteSchema } from '../../index-Kd4QZ13G.mjs';
1
+ export { ak as attributeConfigSchemas, al as getAttributeConfigSchema, am as getAttributeConfigWriteSchema, ad as multiselectOptionWriteSchema, ae as parseAttributeConfig, af as parseAttributeConfigForCreate, ag as parseAttributeConfigForUpdate, ah as selectOptionWriteSchema, ai as statusGroupSchema, aj as statusOptionWriteSchema } from '../../index-DcXCAPHR.mjs';
2
2
  import 'zod';
3
- import '../../attributes-Zw-DDGE7.mjs';
3
+ import '../../attributes-CJNqalP0.mjs';
4
4
  import '@stndrds/constants';
5
- import '../../utils.mjs';
6
- import '../../objects-DvZ79fW2.mjs';
7
- import '../../migrations-BG2mNaJn.mjs';
5
+ import '../../objects-DglxOigU.mjs';
@@ -1,7 +1,5 @@
1
- export { ak as attributeConfigSchemas, al as getAttributeConfigSchema, am as getAttributeConfigWriteSchema, ad as multiselectOptionWriteSchema, ae as parseAttributeConfig, af as parseAttributeConfigForCreate, ag as parseAttributeConfigForUpdate, ah as selectOptionWriteSchema, ai as statusGroupSchema, aj as statusOptionWriteSchema } from '../../index-DL0rfjzZ.js';
1
+ export { ak as attributeConfigSchemas, al as getAttributeConfigSchema, am as getAttributeConfigWriteSchema, ad as multiselectOptionWriteSchema, ae as parseAttributeConfig, af as parseAttributeConfigForCreate, ag as parseAttributeConfigForUpdate, ah as selectOptionWriteSchema, ai as statusGroupSchema, aj as statusOptionWriteSchema } from '../../index-B36J5GDI.js';
2
2
  import 'zod';
3
- import '../../attributes-DfhBu4HT.js';
3
+ import '../../attributes-CJNqalP0.js';
4
4
  import '@stndrds/constants';
5
- import '../../utils.js';
6
- import '../../objects-D8tojUPV.js';
7
- import '../../migrations-B1Wl_3RY.js';
5
+ import '../../objects-CfJvQbZc.js';
@@ -1,9 +1,8 @@
1
- import { V as ValidationMessages } from '../../types-M5L07ItN.mjs';
2
- export { a as ValidationResult } from '../../types-M5L07ItN.mjs';
1
+ import { V as ValidationMessages } from '../../types-Co8cq3dM.mjs';
2
+ export { a as ValidationResult } from '../../types-Co8cq3dM.mjs';
3
3
  import { z } from 'zod';
4
- import '../../attributes-Zw-DDGE7.mjs';
4
+ import '../../attributes-CJNqalP0.mjs';
5
5
  import '@stndrds/constants';
6
- import '../../utils.mjs';
7
6
 
8
7
  declare const DEFAULT_VALIDATION_MESSAGES: ValidationMessages;
9
8
 
@@ -1,9 +1,8 @@
1
- import { V as ValidationMessages } from '../../types-R2f1GdCB.js';
2
- export { a as ValidationResult } from '../../types-R2f1GdCB.js';
1
+ import { V as ValidationMessages } from '../../types-CEwRsyh0.js';
2
+ export { a as ValidationResult } from '../../types-CEwRsyh0.js';
3
3
  import { z } from 'zod';
4
- import '../../attributes-DfhBu4HT.js';
4
+ import '../../attributes-CJNqalP0.js';
5
5
  import '@stndrds/constants';
6
- import '../../utils.js';
7
6
 
8
7
  declare const DEFAULT_VALIDATION_MESSAGES: ValidationMessages;
9
8