@stndrds/schema 1.0.0-alpha.293 → 1.0.0-alpha.68
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.
- package/dist/chunk-36UBIXJN.js +82 -0
- package/dist/chunk-3RG5ZIWI.js +10 -0
- package/dist/chunk-IXHWBBIY.mjs +721 -0
- package/dist/chunk-KG75T7MA.mjs +18664 -0
- package/dist/chunk-NEVERCM3.js +41 -0
- package/dist/chunk-V2RPPE2Y.mjs +41 -0
- package/dist/chunk-V32FQLWX.js +721 -0
- package/dist/chunk-V5QXU2OK.mjs +82 -0
- package/dist/chunk-XGFBT4K2.js +18664 -0
- package/dist/chunk-Y6FXYEAI.mjs +10 -0
- package/dist/default-roles-42X3TJI5.mjs +21 -0
- package/dist/default-roles-C3FYDYMN.js +21 -0
- package/dist/index.d.mts +3392 -10860
- package/dist/index.d.ts +3392 -10860
- package/dist/index.js +1705 -10255
- package/dist/index.mjs +1735 -9398
- package/dist/runtime-B0G6eBXO.d.ts +12810 -0
- package/dist/runtime-fj4EKCWH.d.mts +12810 -0
- package/dist/runtime.d.mts +6 -0
- package/dist/runtime.d.ts +6 -0
- package/dist/runtime.js +323 -0
- package/dist/runtime.mjs +323 -0
- package/dist/utils.d.mts +55 -35
- package/dist/utils.d.ts +55 -35
- package/dist/utils.js +19 -31
- package/dist/utils.mjs +19 -2
- package/dist/validation/validators.d.mts +4 -0
- package/dist/validation/validators.d.ts +4 -0
- package/dist/validation/validators.js +121 -0
- package/dist/validation/validators.mjs +121 -0
- package/dist/validators-B6L_hVBw.d.ts +1564 -0
- package/dist/validators-CgiGGhyH.d.mts +1564 -0
- package/package.json +16 -106
- package/dist/all-CDJSpI46.d.ts +0 -978
- package/dist/all-Cru_CaSY.d.mts +0 -978
- package/dist/attributes-CNYwg_Nr.d.ts +0 -584
- package/dist/attributes-CWPLbp7c.d.mts +0 -584
- package/dist/capabilities.d.mts +0 -146
- package/dist/capabilities.d.ts +0 -146
- package/dist/capabilities.js +0 -77
- package/dist/capabilities.mjs +0 -70
- package/dist/chunk-5N7OSHVX.js +0 -657
- package/dist/chunk-5WATIVCA.js +0 -10
- package/dist/chunk-ACKMC6FL.js +0 -17
- package/dist/chunk-APRL56F4.mjs +0 -226
- package/dist/chunk-AYVHMVKQ.mjs +0 -15
- package/dist/chunk-C32UUQ6D.js +0 -241
- package/dist/chunk-E6JUYGJX.js +0 -22
- package/dist/chunk-EEH4XQ7W.js +0 -61
- package/dist/chunk-EW5XR2X3.js +0 -12
- package/dist/chunk-GO6LQADH.mjs +0 -57
- package/dist/chunk-GRUSTQK3.mjs +0 -641
- package/dist/chunk-HRQEZUAA.mjs +0 -29
- package/dist/chunk-HTSTPTNZ.js +0 -10
- package/dist/chunk-KNGWHQLR.js +0 -16
- package/dist/chunk-LV3FEUKU.mjs +0 -14
- package/dist/chunk-NS63SPNN.mjs +0 -8
- package/dist/chunk-O73ROMWQ.mjs +0 -85
- package/dist/chunk-OASIPLEB.js +0 -1504
- package/dist/chunk-OSSGN43B.mjs +0 -8
- package/dist/chunk-P4VCAPJT.js +0 -81
- package/dist/chunk-Q44QKLN4.mjs +0 -43
- package/dist/chunk-Q4SZAMJT.js +0 -72
- package/dist/chunk-QVLQPW3O.mjs +0 -10
- package/dist/chunk-QWKLQRBX.js +0 -35
- package/dist/chunk-R5LAJCBU.mjs +0 -67
- package/dist/chunk-SI34M4IC.js +0 -45
- package/dist/chunk-UANQJ2GH.mjs +0 -25
- package/dist/chunk-ULM2BA5A.mjs +0 -1432
- package/dist/chunk-UXAHLSWC.mjs +0 -8
- package/dist/chunk-V2UA2D4E.js +0 -10
- package/dist/chunk-VGGGLTYJ.mjs +0 -74
- package/dist/chunk-Y3UPKP2B.js +0 -605
- package/dist/chunk-YIP5FJ5H.js +0 -27
- package/dist/chunk-YKWSHBT5.js +0 -32
- package/dist/chunk-YUFTHPOE.mjs +0 -20
- package/dist/chunk-Z5OPSBMQ.mjs +0 -566
- package/dist/chunk-ZDQ5AP26.mjs +0 -31
- package/dist/chunk-ZPFOKBIN.js +0 -89
- package/dist/exceptions.d.mts +0 -507
- package/dist/exceptions.d.ts +0 -507
- package/dist/exceptions.js +0 -158
- package/dist/exceptions.mjs +0 -1
- package/dist/helpers-CXkVwpsl.d.ts +0 -76
- package/dist/helpers-Dul_r9rJ.d.mts +0 -76
- package/dist/index-BdVnHL3F.d.mts +0 -853
- package/dist/index-CFhPHQaI.d.ts +0 -853
- package/dist/migrations-DaFneOfx.d.ts +0 -39
- package/dist/migrations-fRvadl6i.d.mts +0 -39
- package/dist/objects-CDwMSnqv.d.mts +0 -250
- package/dist/objects-DJv6WrDE.d.ts +0 -250
- package/dist/types-CVYiFc69.d.mts +0 -38
- package/dist/types-NGEww_ln.d.ts +0 -38
- package/dist/validation/all.d.mts +0 -11
- package/dist/validation/all.d.ts +0 -11
- package/dist/validation/all.js +0 -131
- package/dist/validation/all.mjs +0 -18
- package/dist/validation/complex/currency.d.mts +0 -15
- package/dist/validation/complex/currency.d.ts +0 -15
- package/dist/validation/complex/currency.js +0 -11
- package/dist/validation/complex/currency.mjs +0 -2
- package/dist/validation/complex/location.d.mts +0 -22
- package/dist/validation/complex/location.d.ts +0 -22
- package/dist/validation/complex/location.js +0 -11
- package/dist/validation/complex/location.mjs +0 -2
- package/dist/validation/complex/phone.d.mts +0 -22
- package/dist/validation/complex/phone.d.ts +0 -22
- package/dist/validation/complex/phone.js +0 -11
- package/dist/validation/complex/phone.mjs +0 -2
- package/dist/validation/complex/relation.d.mts +0 -25
- package/dist/validation/complex/relation.d.ts +0 -25
- package/dist/validation/complex/relation.js +0 -19
- package/dist/validation/complex/relation.mjs +0 -2
- package/dist/validation/complex/richtext.d.mts +0 -13
- package/dist/validation/complex/richtext.d.ts +0 -13
- package/dist/validation/complex/richtext.js +0 -11
- package/dist/validation/complex/richtext.mjs +0 -2
- package/dist/validation/complex/select.d.mts +0 -20
- package/dist/validation/complex/select.d.ts +0 -20
- package/dist/validation/complex/select.js +0 -19
- package/dist/validation/complex/select.mjs +0 -2
- package/dist/validation/complex/user.d.mts +0 -13
- package/dist/validation/complex/user.d.ts +0 -13
- package/dist/validation/complex/user.js +0 -11
- package/dist/validation/complex/user.mjs +0 -2
- package/dist/validation/computed/formula.d.mts +0 -14
- package/dist/validation/computed/formula.d.ts +0 -14
- package/dist/validation/computed/formula.js +0 -11
- package/dist/validation/computed/formula.mjs +0 -2
- package/dist/validation/computed/rollup.d.mts +0 -14
- package/dist/validation/computed/rollup.d.ts +0 -14
- package/dist/validation/computed/rollup.js +0 -11
- package/dist/validation/computed/rollup.mjs +0 -2
- package/dist/validation/config/index.d.mts +0 -7
- package/dist/validation/config/index.d.ts +0 -7
- package/dist/validation/config/index.js +0 -52
- package/dist/validation/config/index.mjs +0 -7
- package/dist/validation/core/index.d.mts +0 -19
- package/dist/validation/core/index.d.ts +0 -19
- package/dist/validation/core/index.js +0 -14
- package/dist/validation/core/index.mjs +0 -1
- package/dist/validation/object/index.d.mts +0 -32
- package/dist/validation/object/index.d.ts +0 -32
- package/dist/validation/object/index.js +0 -69
- package/dist/validation/object/index.mjs +0 -16
- package/dist/validation/primitives/checkbox.d.mts +0 -12
- package/dist/validation/primitives/checkbox.d.ts +0 -12
- package/dist/validation/primitives/checkbox.js +0 -11
- package/dist/validation/primitives/checkbox.mjs +0 -2
- package/dist/validation/primitives/date.d.mts +0 -25
- package/dist/validation/primitives/date.d.ts +0 -25
- package/dist/validation/primitives/date.js +0 -11
- package/dist/validation/primitives/date.mjs +0 -2
- package/dist/validation/primitives/number.d.mts +0 -12
- package/dist/validation/primitives/number.d.ts +0 -12
- package/dist/validation/primitives/number.js +0 -11
- package/dist/validation/primitives/number.mjs +0 -2
- package/dist/validation/primitives/text.d.mts +0 -12
- package/dist/validation/primitives/text.d.ts +0 -12
- package/dist/validation/primitives/text.js +0 -11
- package/dist/validation/primitives/text.mjs +0 -2
package/dist/utils.d.mts
CHANGED
|
@@ -1,18 +1,3 @@
|
|
|
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
1
|
/**
|
|
17
2
|
* Brand symbol for nominal typing.
|
|
18
3
|
* This ensures type-safety by making IDs non-interchangeable.
|
|
@@ -88,6 +73,60 @@ declare function asUserId(id: string): UserId;
|
|
|
88
73
|
* ```
|
|
89
74
|
*/
|
|
90
75
|
declare function generateId(): Uuid;
|
|
76
|
+
/**
|
|
77
|
+
* Generate a prefixed ID for better debugging and readability
|
|
78
|
+
*
|
|
79
|
+
* @param prefix - Prefix for the ID (e.g., "obj", "attr", "rec")
|
|
80
|
+
* @returns A prefixed UUID string
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* ```typescript
|
|
84
|
+
* const objectId = generatePrefixedId("obj");
|
|
85
|
+
* // "obj_a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d"
|
|
86
|
+
*
|
|
87
|
+
* const attrId = generatePrefixedId("attr");
|
|
88
|
+
* // "attr_a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d"
|
|
89
|
+
* ```
|
|
90
|
+
*/
|
|
91
|
+
declare function generatePrefixedId(prefix: string): Uuid;
|
|
92
|
+
/**
|
|
93
|
+
* Convert a string to a valid kebab-case slug.
|
|
94
|
+
* Removes accents, special chars, and normalizes spaces.
|
|
95
|
+
*
|
|
96
|
+
* @param input - The string to slugify
|
|
97
|
+
* @returns A kebab-case slug matching pattern ^[a-z][a-z0-9-]*$
|
|
98
|
+
*
|
|
99
|
+
* @example
|
|
100
|
+
* ```typescript
|
|
101
|
+
* slugify("Contrat de Vente");
|
|
102
|
+
* // "contrat-de-vente"
|
|
103
|
+
*
|
|
104
|
+
* slugify("Éléphant café");
|
|
105
|
+
* // "elephant-cafe"
|
|
106
|
+
*
|
|
107
|
+
* slugify(" Multiple Spaces ");
|
|
108
|
+
* // "multiple-spaces"
|
|
109
|
+
* ```
|
|
110
|
+
*/
|
|
111
|
+
declare function slugify(input: string): string;
|
|
112
|
+
/**
|
|
113
|
+
* Generate a unique template name from a label.
|
|
114
|
+
* Format: {slugified-label}-{8-char-suffix}
|
|
115
|
+
* Matches DB constraint: ^[a-z][a-z0-9_-]*$
|
|
116
|
+
*
|
|
117
|
+
* @param label - The label to generate a name from
|
|
118
|
+
* @returns A unique kebab-case name
|
|
119
|
+
*
|
|
120
|
+
* @example
|
|
121
|
+
* ```typescript
|
|
122
|
+
* generateTemplateName("Contrat de Vente");
|
|
123
|
+
* // "contrat-de-vente-a1b2c3d4"
|
|
124
|
+
*
|
|
125
|
+
* generateTemplateName("");
|
|
126
|
+
* // "template-a1b2c3d4"
|
|
127
|
+
* ```
|
|
128
|
+
*/
|
|
129
|
+
declare function generateTemplateName(label: string): string;
|
|
91
130
|
/**
|
|
92
131
|
* Create a Map indexed by a key extracted from each item.
|
|
93
132
|
* This eliminates the repeated pattern: new Map(items.map(item => [keyFn(item), item]))
|
|
@@ -111,24 +150,5 @@ declare function generateId(): Uuid;
|
|
|
111
150
|
* ```
|
|
112
151
|
*/
|
|
113
152
|
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
153
|
|
|
134
|
-
export { type TenantId, type UserId, type Uuid, asTenantId, asUserId,
|
|
154
|
+
export { type TenantId, type UserId, type Uuid, asTenantId, asUserId, generateId, generatePrefixedId, generateTemplateName, indexBy, slugify };
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,18 +1,3 @@
|
|
|
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
1
|
/**
|
|
17
2
|
* Brand symbol for nominal typing.
|
|
18
3
|
* This ensures type-safety by making IDs non-interchangeable.
|
|
@@ -88,6 +73,60 @@ declare function asUserId(id: string): UserId;
|
|
|
88
73
|
* ```
|
|
89
74
|
*/
|
|
90
75
|
declare function generateId(): Uuid;
|
|
76
|
+
/**
|
|
77
|
+
* Generate a prefixed ID for better debugging and readability
|
|
78
|
+
*
|
|
79
|
+
* @param prefix - Prefix for the ID (e.g., "obj", "attr", "rec")
|
|
80
|
+
* @returns A prefixed UUID string
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* ```typescript
|
|
84
|
+
* const objectId = generatePrefixedId("obj");
|
|
85
|
+
* // "obj_a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d"
|
|
86
|
+
*
|
|
87
|
+
* const attrId = generatePrefixedId("attr");
|
|
88
|
+
* // "attr_a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d"
|
|
89
|
+
* ```
|
|
90
|
+
*/
|
|
91
|
+
declare function generatePrefixedId(prefix: string): Uuid;
|
|
92
|
+
/**
|
|
93
|
+
* Convert a string to a valid kebab-case slug.
|
|
94
|
+
* Removes accents, special chars, and normalizes spaces.
|
|
95
|
+
*
|
|
96
|
+
* @param input - The string to slugify
|
|
97
|
+
* @returns A kebab-case slug matching pattern ^[a-z][a-z0-9-]*$
|
|
98
|
+
*
|
|
99
|
+
* @example
|
|
100
|
+
* ```typescript
|
|
101
|
+
* slugify("Contrat de Vente");
|
|
102
|
+
* // "contrat-de-vente"
|
|
103
|
+
*
|
|
104
|
+
* slugify("Éléphant café");
|
|
105
|
+
* // "elephant-cafe"
|
|
106
|
+
*
|
|
107
|
+
* slugify(" Multiple Spaces ");
|
|
108
|
+
* // "multiple-spaces"
|
|
109
|
+
* ```
|
|
110
|
+
*/
|
|
111
|
+
declare function slugify(input: string): string;
|
|
112
|
+
/**
|
|
113
|
+
* Generate a unique template name from a label.
|
|
114
|
+
* Format: {slugified-label}-{8-char-suffix}
|
|
115
|
+
* Matches DB constraint: ^[a-z][a-z0-9_-]*$
|
|
116
|
+
*
|
|
117
|
+
* @param label - The label to generate a name from
|
|
118
|
+
* @returns A unique kebab-case name
|
|
119
|
+
*
|
|
120
|
+
* @example
|
|
121
|
+
* ```typescript
|
|
122
|
+
* generateTemplateName("Contrat de Vente");
|
|
123
|
+
* // "contrat-de-vente-a1b2c3d4"
|
|
124
|
+
*
|
|
125
|
+
* generateTemplateName("");
|
|
126
|
+
* // "template-a1b2c3d4"
|
|
127
|
+
* ```
|
|
128
|
+
*/
|
|
129
|
+
declare function generateTemplateName(label: string): string;
|
|
91
130
|
/**
|
|
92
131
|
* Create a Map indexed by a key extracted from each item.
|
|
93
132
|
* This eliminates the repeated pattern: new Map(items.map(item => [keyFn(item), item]))
|
|
@@ -111,24 +150,5 @@ declare function generateId(): Uuid;
|
|
|
111
150
|
* ```
|
|
112
151
|
*/
|
|
113
152
|
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
153
|
|
|
134
|
-
export { type TenantId, type UserId, type Uuid, asTenantId, asUserId,
|
|
154
|
+
export { type TenantId, type UserId, type Uuid, asTenantId, asUserId, generateId, generatePrefixedId, generateTemplateName, indexBy, slugify };
|
package/dist/utils.js
CHANGED
|
@@ -1,31 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
Object.defineProperty(exports, "deepEqual", {
|
|
21
|
-
enumerable: true,
|
|
22
|
-
get: function () { return chunkP4VCAPJT_js.deepEqual; }
|
|
23
|
-
});
|
|
24
|
-
Object.defineProperty(exports, "generateId", {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function () { return chunkP4VCAPJT_js.generateId; }
|
|
27
|
-
});
|
|
28
|
-
Object.defineProperty(exports, "indexBy", {
|
|
29
|
-
enumerable: true,
|
|
30
|
-
get: function () { return chunkP4VCAPJT_js.indexBy; }
|
|
31
|
-
});
|
|
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;
|
package/dist/utils.mjs
CHANGED
|
@@ -1,2 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import 'zod';
|
|
2
|
+
export { af as DEFAULT_VALIDATION_MESSAGES, ae as ValidationMessages, a$ as ValidationResult, az as attributeConfigSchemas, ak as checkboxConfigSchema, b8 as computeRecordStatus, aY as createAttributeValidator, aG as createCheckboxValidator, aJ as createCurrencyValidator, aH as createDateValidator, b3 as createDraftValidator, aO as createFileValidator, aZ as createFormAttributeValidator, aU as createFormulaValidator, aN as createLocationValidator, aR as createMultiRelationValidator, aM as createMultiselectValidator, aF as createNumberValidator, a_ as createObjectValidator, aI as createPhoneValidator, aT as createRatingValidator, aS as createRelationValidator, aX as createRichtextValidator, aV as createRollupValidator, aL as createSelectValidator, aQ as createSingleRelationValidator, aK as createStatusValidator, aW as createTextAreaValidator, aE as createTextValidator, aP as createUserValidator, an as currencyConfigSchema, al as dateConfigSchema, ay as documentConfigSchema, as as fileConfigSchema, ad as formatZodErrors, aw as formulaConfigSchema, aA as getAttributeConfigSchema, b6 as getMissingRequiredAttributes, b7 as isRecordComplete, ap as locationConfigSchema, ar as multiselectConfigSchema, aj as numberConfigSchema, aC as parseAttributeConfig, am as phoneConfigSchema, av as ratingConfigSchema, au as relationConfigSchema, ai as richtextConfigSchema, ax as rollupConfigSchema, aD as safeParseAttributeConfig, aq as selectConfigSchema, ao as statusConfigSchema, ag as textConfigSchema, ah as textareaConfigSchema, at as userConfigSchema, b0 as validateAttribute, aB as validateAttributeConfig, b4 as validateDraft, b5 as validateDraftOrThrow, b1 as validateObject, b2 as validateObjectOrThrow } from '../validators-CgiGGhyH.mjs';
|
|
3
|
+
import '@stndrds/constants';
|
|
4
|
+
import '../utils.mjs';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import 'zod';
|
|
2
|
+
export { af as DEFAULT_VALIDATION_MESSAGES, ae as ValidationMessages, a$ as ValidationResult, az as attributeConfigSchemas, ak as checkboxConfigSchema, b8 as computeRecordStatus, aY as createAttributeValidator, aG as createCheckboxValidator, aJ as createCurrencyValidator, aH as createDateValidator, b3 as createDraftValidator, aO as createFileValidator, aZ as createFormAttributeValidator, aU as createFormulaValidator, aN as createLocationValidator, aR as createMultiRelationValidator, aM as createMultiselectValidator, aF as createNumberValidator, a_ as createObjectValidator, aI as createPhoneValidator, aT as createRatingValidator, aS as createRelationValidator, aX as createRichtextValidator, aV as createRollupValidator, aL as createSelectValidator, aQ as createSingleRelationValidator, aK as createStatusValidator, aW as createTextAreaValidator, aE as createTextValidator, aP as createUserValidator, an as currencyConfigSchema, al as dateConfigSchema, ay as documentConfigSchema, as as fileConfigSchema, ad as formatZodErrors, aw as formulaConfigSchema, aA as getAttributeConfigSchema, b6 as getMissingRequiredAttributes, b7 as isRecordComplete, ap as locationConfigSchema, ar as multiselectConfigSchema, aj as numberConfigSchema, aC as parseAttributeConfig, am as phoneConfigSchema, av as ratingConfigSchema, au as relationConfigSchema, ai as richtextConfigSchema, ax as rollupConfigSchema, aD as safeParseAttributeConfig, aq as selectConfigSchema, ao as statusConfigSchema, ag as textConfigSchema, ah as textareaConfigSchema, at as userConfigSchema, b0 as validateAttribute, aB as validateAttributeConfig, b4 as validateDraft, b5 as validateDraftOrThrow, b1 as validateObject, b2 as validateObjectOrThrow } from '../validators-B6L_hVBw.js';
|
|
3
|
+
import '@stndrds/constants';
|
|
4
|
+
import '../utils.js';
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
var _chunkV32FQLWXjs = require('../chunk-V32FQLWX.js');
|
|
61
|
+
require('../chunk-3RG5ZIWI.js');
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
exports.DEFAULT_VALIDATION_MESSAGES = _chunkV32FQLWXjs.DEFAULT_VALIDATION_MESSAGES; exports.attributeConfigSchemas = _chunkV32FQLWXjs.attributeConfigSchemas; exports.checkboxConfigSchema = _chunkV32FQLWXjs.checkboxConfigSchema; exports.computeRecordStatus = _chunkV32FQLWXjs.computeRecordStatus; exports.createAttributeValidator = _chunkV32FQLWXjs.createAttributeValidator; exports.createCheckboxValidator = _chunkV32FQLWXjs.createCheckboxValidator; exports.createCurrencyValidator = _chunkV32FQLWXjs.createCurrencyValidator; exports.createDateValidator = _chunkV32FQLWXjs.createDateValidator; exports.createDraftValidator = _chunkV32FQLWXjs.createDraftValidator; exports.createFileValidator = _chunkV32FQLWXjs.createFileValidator; exports.createFormAttributeValidator = _chunkV32FQLWXjs.createFormAttributeValidator; exports.createFormulaValidator = _chunkV32FQLWXjs.createFormulaValidator; exports.createLocationValidator = _chunkV32FQLWXjs.createLocationValidator; exports.createMultiRelationValidator = _chunkV32FQLWXjs.createMultiRelationValidator; exports.createMultiselectValidator = _chunkV32FQLWXjs.createMultiselectValidator; exports.createNumberValidator = _chunkV32FQLWXjs.createNumberValidator; exports.createObjectValidator = _chunkV32FQLWXjs.createObjectValidator; exports.createPhoneValidator = _chunkV32FQLWXjs.createPhoneValidator; exports.createRatingValidator = _chunkV32FQLWXjs.createRatingValidator; exports.createRelationValidator = _chunkV32FQLWXjs.createRelationValidator; exports.createRichtextValidator = _chunkV32FQLWXjs.createRichtextValidator; exports.createRollupValidator = _chunkV32FQLWXjs.createRollupValidator; exports.createSelectValidator = _chunkV32FQLWXjs.createSelectValidator; exports.createSingleRelationValidator = _chunkV32FQLWXjs.createSingleRelationValidator; exports.createStatusValidator = _chunkV32FQLWXjs.createStatusValidator; exports.createTextAreaValidator = _chunkV32FQLWXjs.createTextAreaValidator; exports.createTextValidator = _chunkV32FQLWXjs.createTextValidator; exports.createUserValidator = _chunkV32FQLWXjs.createUserValidator; exports.currencyConfigSchema = _chunkV32FQLWXjs.currencyConfigSchema; exports.dateConfigSchema = _chunkV32FQLWXjs.dateConfigSchema; exports.documentConfigSchema = _chunkV32FQLWXjs.documentConfigSchema; exports.fileConfigSchema = _chunkV32FQLWXjs.fileConfigSchema; exports.formatZodErrors = _chunkV32FQLWXjs.formatZodErrors; exports.formulaConfigSchema = _chunkV32FQLWXjs.formulaConfigSchema; exports.getAttributeConfigSchema = _chunkV32FQLWXjs.getAttributeConfigSchema; exports.getMissingRequiredAttributes = _chunkV32FQLWXjs.getMissingRequiredAttributes; exports.isRecordComplete = _chunkV32FQLWXjs.isRecordComplete; exports.locationConfigSchema = _chunkV32FQLWXjs.locationConfigSchema; exports.multiselectConfigSchema = _chunkV32FQLWXjs.multiselectConfigSchema; exports.numberConfigSchema = _chunkV32FQLWXjs.numberConfigSchema; exports.parseAttributeConfig = _chunkV32FQLWXjs.parseAttributeConfig; exports.phoneConfigSchema = _chunkV32FQLWXjs.phoneConfigSchema; exports.ratingConfigSchema = _chunkV32FQLWXjs.ratingConfigSchema; exports.relationConfigSchema = _chunkV32FQLWXjs.relationConfigSchema; exports.richtextConfigSchema = _chunkV32FQLWXjs.richtextConfigSchema; exports.rollupConfigSchema = _chunkV32FQLWXjs.rollupConfigSchema; exports.safeParseAttributeConfig = _chunkV32FQLWXjs.safeParseAttributeConfig; exports.selectConfigSchema = _chunkV32FQLWXjs.selectConfigSchema; exports.statusConfigSchema = _chunkV32FQLWXjs.statusConfigSchema; exports.textConfigSchema = _chunkV32FQLWXjs.textConfigSchema; exports.textareaConfigSchema = _chunkV32FQLWXjs.textareaConfigSchema; exports.userConfigSchema = _chunkV32FQLWXjs.userConfigSchema; exports.validateAttribute = _chunkV32FQLWXjs.validateAttribute; exports.validateAttributeConfig = _chunkV32FQLWXjs.validateAttributeConfig; exports.validateDraft = _chunkV32FQLWXjs.validateDraft; exports.validateDraftOrThrow = _chunkV32FQLWXjs.validateDraftOrThrow; exports.validateObject = _chunkV32FQLWXjs.validateObject; exports.validateObjectOrThrow = _chunkV32FQLWXjs.validateObjectOrThrow;
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DEFAULT_VALIDATION_MESSAGES,
|
|
3
|
+
attributeConfigSchemas,
|
|
4
|
+
checkboxConfigSchema,
|
|
5
|
+
computeRecordStatus,
|
|
6
|
+
createAttributeValidator,
|
|
7
|
+
createCheckboxValidator,
|
|
8
|
+
createCurrencyValidator,
|
|
9
|
+
createDateValidator,
|
|
10
|
+
createDraftValidator,
|
|
11
|
+
createFileValidator,
|
|
12
|
+
createFormAttributeValidator,
|
|
13
|
+
createFormulaValidator,
|
|
14
|
+
createLocationValidator,
|
|
15
|
+
createMultiRelationValidator,
|
|
16
|
+
createMultiselectValidator,
|
|
17
|
+
createNumberValidator,
|
|
18
|
+
createObjectValidator,
|
|
19
|
+
createPhoneValidator,
|
|
20
|
+
createRatingValidator,
|
|
21
|
+
createRelationValidator,
|
|
22
|
+
createRichtextValidator,
|
|
23
|
+
createRollupValidator,
|
|
24
|
+
createSelectValidator,
|
|
25
|
+
createSingleRelationValidator,
|
|
26
|
+
createStatusValidator,
|
|
27
|
+
createTextAreaValidator,
|
|
28
|
+
createTextValidator,
|
|
29
|
+
createUserValidator,
|
|
30
|
+
currencyConfigSchema,
|
|
31
|
+
dateConfigSchema,
|
|
32
|
+
documentConfigSchema,
|
|
33
|
+
fileConfigSchema,
|
|
34
|
+
formatZodErrors,
|
|
35
|
+
formulaConfigSchema,
|
|
36
|
+
getAttributeConfigSchema,
|
|
37
|
+
getMissingRequiredAttributes,
|
|
38
|
+
isRecordComplete,
|
|
39
|
+
locationConfigSchema,
|
|
40
|
+
multiselectConfigSchema,
|
|
41
|
+
numberConfigSchema,
|
|
42
|
+
parseAttributeConfig,
|
|
43
|
+
phoneConfigSchema,
|
|
44
|
+
ratingConfigSchema,
|
|
45
|
+
relationConfigSchema,
|
|
46
|
+
richtextConfigSchema,
|
|
47
|
+
rollupConfigSchema,
|
|
48
|
+
safeParseAttributeConfig,
|
|
49
|
+
selectConfigSchema,
|
|
50
|
+
statusConfigSchema,
|
|
51
|
+
textConfigSchema,
|
|
52
|
+
textareaConfigSchema,
|
|
53
|
+
userConfigSchema,
|
|
54
|
+
validateAttribute,
|
|
55
|
+
validateAttributeConfig,
|
|
56
|
+
validateDraft,
|
|
57
|
+
validateDraftOrThrow,
|
|
58
|
+
validateObject,
|
|
59
|
+
validateObjectOrThrow
|
|
60
|
+
} from "../chunk-IXHWBBIY.mjs";
|
|
61
|
+
import "../chunk-Y6FXYEAI.mjs";
|
|
62
|
+
export {
|
|
63
|
+
DEFAULT_VALIDATION_MESSAGES,
|
|
64
|
+
attributeConfigSchemas,
|
|
65
|
+
checkboxConfigSchema,
|
|
66
|
+
computeRecordStatus,
|
|
67
|
+
createAttributeValidator,
|
|
68
|
+
createCheckboxValidator,
|
|
69
|
+
createCurrencyValidator,
|
|
70
|
+
createDateValidator,
|
|
71
|
+
createDraftValidator,
|
|
72
|
+
createFileValidator,
|
|
73
|
+
createFormAttributeValidator,
|
|
74
|
+
createFormulaValidator,
|
|
75
|
+
createLocationValidator,
|
|
76
|
+
createMultiRelationValidator,
|
|
77
|
+
createMultiselectValidator,
|
|
78
|
+
createNumberValidator,
|
|
79
|
+
createObjectValidator,
|
|
80
|
+
createPhoneValidator,
|
|
81
|
+
createRatingValidator,
|
|
82
|
+
createRelationValidator,
|
|
83
|
+
createRichtextValidator,
|
|
84
|
+
createRollupValidator,
|
|
85
|
+
createSelectValidator,
|
|
86
|
+
createSingleRelationValidator,
|
|
87
|
+
createStatusValidator,
|
|
88
|
+
createTextAreaValidator,
|
|
89
|
+
createTextValidator,
|
|
90
|
+
createUserValidator,
|
|
91
|
+
currencyConfigSchema,
|
|
92
|
+
dateConfigSchema,
|
|
93
|
+
documentConfigSchema,
|
|
94
|
+
fileConfigSchema,
|
|
95
|
+
formatZodErrors,
|
|
96
|
+
formulaConfigSchema,
|
|
97
|
+
getAttributeConfigSchema,
|
|
98
|
+
getMissingRequiredAttributes,
|
|
99
|
+
isRecordComplete,
|
|
100
|
+
locationConfigSchema,
|
|
101
|
+
multiselectConfigSchema,
|
|
102
|
+
numberConfigSchema,
|
|
103
|
+
parseAttributeConfig,
|
|
104
|
+
phoneConfigSchema,
|
|
105
|
+
ratingConfigSchema,
|
|
106
|
+
relationConfigSchema,
|
|
107
|
+
richtextConfigSchema,
|
|
108
|
+
rollupConfigSchema,
|
|
109
|
+
safeParseAttributeConfig,
|
|
110
|
+
selectConfigSchema,
|
|
111
|
+
statusConfigSchema,
|
|
112
|
+
textConfigSchema,
|
|
113
|
+
textareaConfigSchema,
|
|
114
|
+
userConfigSchema,
|
|
115
|
+
validateAttribute,
|
|
116
|
+
validateAttributeConfig,
|
|
117
|
+
validateDraft,
|
|
118
|
+
validateDraftOrThrow,
|
|
119
|
+
validateObject,
|
|
120
|
+
validateObjectOrThrow
|
|
121
|
+
};
|