@stndrds/schema 1.0.0-alpha.294 → 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 -10868
- package/dist/index.d.ts +3392 -10868
- package/dist/index.js +1705 -10256
- 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-2WWGHULM.mjs +0 -226
- package/dist/chunk-4KMUATDG.js +0 -609
- package/dist/chunk-5WATIVCA.js +0 -10
- package/dist/chunk-ACKMC6FL.js +0 -17
- package/dist/chunk-AYVHMVKQ.mjs +0 -15
- package/dist/chunk-CLZORRMS.mjs +0 -570
- package/dist/chunk-DVXGSTWJ.js +0 -81
- 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-HRQEZUAA.mjs +0 -29
- package/dist/chunk-HTSTPTNZ.js +0 -10
- package/dist/chunk-HURC6CW3.js +0 -241
- package/dist/chunk-JZNR4HKQ.mjs +0 -1432
- package/dist/chunk-KAWYU7TE.js +0 -657
- 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-OSSGN43B.mjs +0 -8
- package/dist/chunk-Q44QKLN4.mjs +0 -43
- package/dist/chunk-Q4SZAMJT.js +0 -72
- package/dist/chunk-QT35SI3K.mjs +0 -641
- package/dist/chunk-QVLQPW3O.mjs +0 -10
- package/dist/chunk-QWKLQRBX.js +0 -35
- package/dist/chunk-R2DAEDRF.mjs +0 -74
- package/dist/chunk-R5LAJCBU.mjs +0 -67
- package/dist/chunk-SI34M4IC.js +0 -45
- package/dist/chunk-T5PM73EF.js +0 -1504
- package/dist/chunk-UANQJ2GH.mjs +0 -25
- package/dist/chunk-UXAHLSWC.mjs +0 -8
- package/dist/chunk-V2UA2D4E.js +0 -10
- package/dist/chunk-YIP5FJ5H.js +0 -27
- package/dist/chunk-YKWSHBT5.js +0 -32
- package/dist/chunk-YUFTHPOE.mjs +0 -20
- package/dist/chunk-ZDQ5AP26.mjs +0 -31
- package/dist/chunk-ZPFOKBIN.js +0 -89
- package/dist/exceptions.d.mts +0 -511
- package/dist/exceptions.d.ts +0 -511
- 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
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkV2UA2D4E_js = require('../../chunk-V2UA2D4E.js');
|
|
4
|
-
require('../../chunk-YKWSHBT5.js');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(exports, "createRollupValidator", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function () { return chunkV2UA2D4E_js.createRollupValidator; }
|
|
11
|
-
});
|
|
@@ -1,7 +0,0 @@
|
|
|
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-BdVnHL3F.mjs';
|
|
2
|
-
import 'zod';
|
|
3
|
-
import '../../attributes-CWPLbp7c.mjs';
|
|
4
|
-
import '@stndrds/constants';
|
|
5
|
-
import '../../utils.mjs';
|
|
6
|
-
import '../../objects-CDwMSnqv.mjs';
|
|
7
|
-
import '../../migrations-fRvadl6i.mjs';
|
|
@@ -1,7 +0,0 @@
|
|
|
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-CFhPHQaI.js';
|
|
2
|
-
import 'zod';
|
|
3
|
-
import '../../attributes-CNYwg_Nr.js';
|
|
4
|
-
import '@stndrds/constants';
|
|
5
|
-
import '../../utils.js';
|
|
6
|
-
import '../../objects-DJv6WrDE.js';
|
|
7
|
-
import '../../migrations-DaFneOfx.js';
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkKAWYU7TE_js = require('../../chunk-KAWYU7TE.js');
|
|
4
|
-
require('../../chunk-5WATIVCA.js');
|
|
5
|
-
require('../../chunk-SI34M4IC.js');
|
|
6
|
-
require('../../chunk-YIP5FJ5H.js');
|
|
7
|
-
require('../../chunk-ZPFOKBIN.js');
|
|
8
|
-
require('../../chunk-4KMUATDG.js');
|
|
9
|
-
require('../../chunk-YKWSHBT5.js');
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
Object.defineProperty(exports, "attributeConfigSchemas", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function () { return chunkKAWYU7TE_js.attributeConfigSchemas; }
|
|
16
|
-
});
|
|
17
|
-
Object.defineProperty(exports, "getAttributeConfigSchema", {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function () { return chunkKAWYU7TE_js.getAttributeConfigSchema; }
|
|
20
|
-
});
|
|
21
|
-
Object.defineProperty(exports, "getAttributeConfigWriteSchema", {
|
|
22
|
-
enumerable: true,
|
|
23
|
-
get: function () { return chunkKAWYU7TE_js.getAttributeConfigWriteSchema; }
|
|
24
|
-
});
|
|
25
|
-
Object.defineProperty(exports, "multiselectOptionWriteSchema", {
|
|
26
|
-
enumerable: true,
|
|
27
|
-
get: function () { return chunkKAWYU7TE_js.multiselectOptionWriteSchema; }
|
|
28
|
-
});
|
|
29
|
-
Object.defineProperty(exports, "parseAttributeConfig", {
|
|
30
|
-
enumerable: true,
|
|
31
|
-
get: function () { return chunkKAWYU7TE_js.parseAttributeConfig; }
|
|
32
|
-
});
|
|
33
|
-
Object.defineProperty(exports, "parseAttributeConfigForCreate", {
|
|
34
|
-
enumerable: true,
|
|
35
|
-
get: function () { return chunkKAWYU7TE_js.parseAttributeConfigForCreate; }
|
|
36
|
-
});
|
|
37
|
-
Object.defineProperty(exports, "parseAttributeConfigForUpdate", {
|
|
38
|
-
enumerable: true,
|
|
39
|
-
get: function () { return chunkKAWYU7TE_js.parseAttributeConfigForUpdate; }
|
|
40
|
-
});
|
|
41
|
-
Object.defineProperty(exports, "selectOptionWriteSchema", {
|
|
42
|
-
enumerable: true,
|
|
43
|
-
get: function () { return chunkKAWYU7TE_js.selectOptionWriteSchema; }
|
|
44
|
-
});
|
|
45
|
-
Object.defineProperty(exports, "statusGroupSchema", {
|
|
46
|
-
enumerable: true,
|
|
47
|
-
get: function () { return chunkKAWYU7TE_js.statusGroupSchema; }
|
|
48
|
-
});
|
|
49
|
-
Object.defineProperty(exports, "statusOptionWriteSchema", {
|
|
50
|
-
enumerable: true,
|
|
51
|
-
get: function () { return chunkKAWYU7TE_js.statusOptionWriteSchema; }
|
|
52
|
-
});
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { attributeConfigSchemas, getAttributeConfigSchema, getAttributeConfigWriteSchema, multiselectOptionWriteSchema, parseAttributeConfig, parseAttributeConfigForCreate, parseAttributeConfigForUpdate, selectOptionWriteSchema, statusGroupSchema, statusOptionWriteSchema } from '../../chunk-QT35SI3K.mjs';
|
|
2
|
-
import '../../chunk-OSSGN43B.mjs';
|
|
3
|
-
import '../../chunk-Q44QKLN4.mjs';
|
|
4
|
-
import '../../chunk-UANQJ2GH.mjs';
|
|
5
|
-
import '../../chunk-O73ROMWQ.mjs';
|
|
6
|
-
import '../../chunk-CLZORRMS.mjs';
|
|
7
|
-
import '../../chunk-HRQEZUAA.mjs';
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { V as ValidationMessages } from '../../types-CVYiFc69.mjs';
|
|
2
|
-
export { a as ValidationResult } from '../../types-CVYiFc69.mjs';
|
|
3
|
-
import { z } from 'zod';
|
|
4
|
-
import '../../attributes-CWPLbp7c.mjs';
|
|
5
|
-
import '@stndrds/constants';
|
|
6
|
-
import '../../utils.mjs';
|
|
7
|
-
|
|
8
|
-
declare const DEFAULT_VALIDATION_MESSAGES: ValidationMessages;
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Format Zod validation errors into a consistent structure.
|
|
12
|
-
* This eliminates code duplication across multiple validation functions.
|
|
13
|
-
*/
|
|
14
|
-
declare function formatZodErrors(error: z.ZodError): Array<{
|
|
15
|
-
path: string[];
|
|
16
|
-
message: string;
|
|
17
|
-
}>;
|
|
18
|
-
|
|
19
|
-
export { DEFAULT_VALIDATION_MESSAGES, ValidationMessages, formatZodErrors };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { V as ValidationMessages } from '../../types-NGEww_ln.js';
|
|
2
|
-
export { a as ValidationResult } from '../../types-NGEww_ln.js';
|
|
3
|
-
import { z } from 'zod';
|
|
4
|
-
import '../../attributes-CNYwg_Nr.js';
|
|
5
|
-
import '@stndrds/constants';
|
|
6
|
-
import '../../utils.js';
|
|
7
|
-
|
|
8
|
-
declare const DEFAULT_VALIDATION_MESSAGES: ValidationMessages;
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Format Zod validation errors into a consistent structure.
|
|
12
|
-
* This eliminates code duplication across multiple validation functions.
|
|
13
|
-
*/
|
|
14
|
-
declare function formatZodErrors(error: z.ZodError): Array<{
|
|
15
|
-
path: string[];
|
|
16
|
-
message: string;
|
|
17
|
-
}>;
|
|
18
|
-
|
|
19
|
-
export { DEFAULT_VALIDATION_MESSAGES, ValidationMessages, formatZodErrors };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkYKWSHBT5_js = require('../../chunk-YKWSHBT5.js');
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "DEFAULT_VALIDATION_MESSAGES", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function () { return chunkYKWSHBT5_js.DEFAULT_VALIDATION_MESSAGES; }
|
|
10
|
-
});
|
|
11
|
-
Object.defineProperty(exports, "formatZodErrors", {
|
|
12
|
-
enumerable: true,
|
|
13
|
-
get: function () { return chunkYKWSHBT5_js.formatZodErrors; }
|
|
14
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { DEFAULT_VALIDATION_MESSAGES, formatZodErrors } from '../../chunk-HRQEZUAA.mjs';
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export { c as createAttributeValidator, a as createFormAttributeValidator, g as getMissingRequiredAttributes, i as isRecordComplete, r as rejectUnknownAttributesOrThrow, v as validateAttribute, b as validateDraft, d as validateDraftOrThrow, e as validateObject, f as validateObjectOrThrow } from '../../helpers-Dul_r9rJ.mjs';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
import { O as ObjectDefinition } from '../../objects-CDwMSnqv.mjs';
|
|
4
|
-
import '../../attributes-CWPLbp7c.mjs';
|
|
5
|
-
import '@stndrds/constants';
|
|
6
|
-
import '../../utils.mjs';
|
|
7
|
-
import '../../types-CVYiFc69.mjs';
|
|
8
|
-
import '../../migrations-fRvadl6i.mjs';
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Create a Zod schema for an entire object
|
|
12
|
-
*
|
|
13
|
-
* Uses passthrough mode to allow computed fields (formula, rollup) that may be
|
|
14
|
-
* present in record data but are not part of the mutable schema.
|
|
15
|
-
*
|
|
16
|
-
* Result is cached per ObjectDefinition instance — safe because ObjectDefinitions
|
|
17
|
-
* are stable after module load and never mutated at runtime.
|
|
18
|
-
*/
|
|
19
|
-
declare function createObjectValidator(objectDef: ObjectDefinition): z.ZodType<Record<string, unknown>>;
|
|
20
|
-
/**
|
|
21
|
-
* Create a Zod schema for draft validation.
|
|
22
|
-
* All attributes become optional, but provided values are still validated.
|
|
23
|
-
*
|
|
24
|
-
* Uses passthrough mode to allow computed fields (formula, rollup) that may be
|
|
25
|
-
* present in record data but are not part of the mutable schema.
|
|
26
|
-
*
|
|
27
|
-
* Result is cached per ObjectDefinition instance — safe because ObjectDefinitions
|
|
28
|
-
* are stable after module load and never mutated at runtime.
|
|
29
|
-
*/
|
|
30
|
-
declare function createDraftValidator(objectDef: ObjectDefinition): z.ZodType<Record<string, unknown>>;
|
|
31
|
-
|
|
32
|
-
export { createDraftValidator, createObjectValidator };
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export { c as createAttributeValidator, a as createFormAttributeValidator, g as getMissingRequiredAttributes, i as isRecordComplete, r as rejectUnknownAttributesOrThrow, v as validateAttribute, b as validateDraft, d as validateDraftOrThrow, e as validateObject, f as validateObjectOrThrow } from '../../helpers-CXkVwpsl.js';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
import { O as ObjectDefinition } from '../../objects-DJv6WrDE.js';
|
|
4
|
-
import '../../attributes-CNYwg_Nr.js';
|
|
5
|
-
import '@stndrds/constants';
|
|
6
|
-
import '../../utils.js';
|
|
7
|
-
import '../../types-NGEww_ln.js';
|
|
8
|
-
import '../../migrations-DaFneOfx.js';
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Create a Zod schema for an entire object
|
|
12
|
-
*
|
|
13
|
-
* Uses passthrough mode to allow computed fields (formula, rollup) that may be
|
|
14
|
-
* present in record data but are not part of the mutable schema.
|
|
15
|
-
*
|
|
16
|
-
* Result is cached per ObjectDefinition instance — safe because ObjectDefinitions
|
|
17
|
-
* are stable after module load and never mutated at runtime.
|
|
18
|
-
*/
|
|
19
|
-
declare function createObjectValidator(objectDef: ObjectDefinition): z.ZodType<Record<string, unknown>>;
|
|
20
|
-
/**
|
|
21
|
-
* Create a Zod schema for draft validation.
|
|
22
|
-
* All attributes become optional, but provided values are still validated.
|
|
23
|
-
*
|
|
24
|
-
* Uses passthrough mode to allow computed fields (formula, rollup) that may be
|
|
25
|
-
* present in record data but are not part of the mutable schema.
|
|
26
|
-
*
|
|
27
|
-
* Result is cached per ObjectDefinition instance — safe because ObjectDefinitions
|
|
28
|
-
* are stable after module load and never mutated at runtime.
|
|
29
|
-
*/
|
|
30
|
-
declare function createDraftValidator(objectDef: ObjectDefinition): z.ZodType<Record<string, unknown>>;
|
|
31
|
-
|
|
32
|
-
export { createDraftValidator, createObjectValidator };
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkHURC6CW3_js = require('../../chunk-HURC6CW3.js');
|
|
4
|
-
require('../../chunk-EEH4XQ7W.js');
|
|
5
|
-
require('../../chunk-EW5XR2X3.js');
|
|
6
|
-
require('../../chunk-QWKLQRBX.js');
|
|
7
|
-
require('../../chunk-KNGWHQLR.js');
|
|
8
|
-
require('../../chunk-HTSTPTNZ.js');
|
|
9
|
-
require('../../chunk-V2UA2D4E.js');
|
|
10
|
-
require('../../chunk-5WATIVCA.js');
|
|
11
|
-
require('../../chunk-SI34M4IC.js');
|
|
12
|
-
require('../../chunk-YIP5FJ5H.js');
|
|
13
|
-
require('../../chunk-ZPFOKBIN.js');
|
|
14
|
-
require('../../chunk-4KMUATDG.js');
|
|
15
|
-
require('../../chunk-ACKMC6FL.js');
|
|
16
|
-
require('../../chunk-E6JUYGJX.js');
|
|
17
|
-
require('../../chunk-Q4SZAMJT.js');
|
|
18
|
-
require('../../chunk-YKWSHBT5.js');
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
Object.defineProperty(exports, "createAttributeValidator", {
|
|
23
|
-
enumerable: true,
|
|
24
|
-
get: function () { return chunkHURC6CW3_js.createAttributeValidator; }
|
|
25
|
-
});
|
|
26
|
-
Object.defineProperty(exports, "createDraftValidator", {
|
|
27
|
-
enumerable: true,
|
|
28
|
-
get: function () { return chunkHURC6CW3_js.createDraftValidator; }
|
|
29
|
-
});
|
|
30
|
-
Object.defineProperty(exports, "createFormAttributeValidator", {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
get: function () { return chunkHURC6CW3_js.createFormAttributeValidator; }
|
|
33
|
-
});
|
|
34
|
-
Object.defineProperty(exports, "createObjectValidator", {
|
|
35
|
-
enumerable: true,
|
|
36
|
-
get: function () { return chunkHURC6CW3_js.createObjectValidator; }
|
|
37
|
-
});
|
|
38
|
-
Object.defineProperty(exports, "getMissingRequiredAttributes", {
|
|
39
|
-
enumerable: true,
|
|
40
|
-
get: function () { return chunkHURC6CW3_js.getMissingRequiredAttributes; }
|
|
41
|
-
});
|
|
42
|
-
Object.defineProperty(exports, "isRecordComplete", {
|
|
43
|
-
enumerable: true,
|
|
44
|
-
get: function () { return chunkHURC6CW3_js.isRecordComplete; }
|
|
45
|
-
});
|
|
46
|
-
Object.defineProperty(exports, "rejectUnknownAttributesOrThrow", {
|
|
47
|
-
enumerable: true,
|
|
48
|
-
get: function () { return chunkHURC6CW3_js.rejectUnknownAttributesOrThrow; }
|
|
49
|
-
});
|
|
50
|
-
Object.defineProperty(exports, "validateAttribute", {
|
|
51
|
-
enumerable: true,
|
|
52
|
-
get: function () { return chunkHURC6CW3_js.validateAttribute; }
|
|
53
|
-
});
|
|
54
|
-
Object.defineProperty(exports, "validateDraft", {
|
|
55
|
-
enumerable: true,
|
|
56
|
-
get: function () { return chunkHURC6CW3_js.validateDraft; }
|
|
57
|
-
});
|
|
58
|
-
Object.defineProperty(exports, "validateDraftOrThrow", {
|
|
59
|
-
enumerable: true,
|
|
60
|
-
get: function () { return chunkHURC6CW3_js.validateDraftOrThrow; }
|
|
61
|
-
});
|
|
62
|
-
Object.defineProperty(exports, "validateObject", {
|
|
63
|
-
enumerable: true,
|
|
64
|
-
get: function () { return chunkHURC6CW3_js.validateObject; }
|
|
65
|
-
});
|
|
66
|
-
Object.defineProperty(exports, "validateObjectOrThrow", {
|
|
67
|
-
enumerable: true,
|
|
68
|
-
get: function () { return chunkHURC6CW3_js.validateObjectOrThrow; }
|
|
69
|
-
});
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export { createAttributeValidator, createDraftValidator, createFormAttributeValidator, createObjectValidator, getMissingRequiredAttributes, isRecordComplete, rejectUnknownAttributesOrThrow, validateAttribute, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow } from '../../chunk-2WWGHULM.mjs';
|
|
2
|
-
import '../../chunk-GO6LQADH.mjs';
|
|
3
|
-
import '../../chunk-QVLQPW3O.mjs';
|
|
4
|
-
import '../../chunk-ZDQ5AP26.mjs';
|
|
5
|
-
import '../../chunk-LV3FEUKU.mjs';
|
|
6
|
-
import '../../chunk-UXAHLSWC.mjs';
|
|
7
|
-
import '../../chunk-NS63SPNN.mjs';
|
|
8
|
-
import '../../chunk-OSSGN43B.mjs';
|
|
9
|
-
import '../../chunk-Q44QKLN4.mjs';
|
|
10
|
-
import '../../chunk-UANQJ2GH.mjs';
|
|
11
|
-
import '../../chunk-O73ROMWQ.mjs';
|
|
12
|
-
import '../../chunk-CLZORRMS.mjs';
|
|
13
|
-
import '../../chunk-AYVHMVKQ.mjs';
|
|
14
|
-
import '../../chunk-YUFTHPOE.mjs';
|
|
15
|
-
import '../../chunk-R5LAJCBU.mjs';
|
|
16
|
-
import '../../chunk-HRQEZUAA.mjs';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { g as CheckboxAttribute } from '../../attributes-CWPLbp7c.mjs';
|
|
3
|
-
import { V as ValidationMessages } from '../../types-CVYiFc69.mjs';
|
|
4
|
-
import '@stndrds/constants';
|
|
5
|
-
import '../../utils.mjs';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Create a Zod schema for a checkbox attribute
|
|
9
|
-
*/
|
|
10
|
-
declare function createCheckboxValidator(_attr: CheckboxAttribute, _messages?: ValidationMessages): z.ZodBoolean;
|
|
11
|
-
|
|
12
|
-
export { createCheckboxValidator };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { g as CheckboxAttribute } from '../../attributes-CNYwg_Nr.js';
|
|
3
|
-
import { V as ValidationMessages } from '../../types-NGEww_ln.js';
|
|
4
|
-
import '@stndrds/constants';
|
|
5
|
-
import '../../utils.js';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Create a Zod schema for a checkbox attribute
|
|
9
|
-
*/
|
|
10
|
-
declare function createCheckboxValidator(_attr: CheckboxAttribute, _messages?: ValidationMessages): z.ZodBoolean;
|
|
11
|
-
|
|
12
|
-
export { createCheckboxValidator };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunk5WATIVCA_js = require('../../chunk-5WATIVCA.js');
|
|
4
|
-
require('../../chunk-YKWSHBT5.js');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(exports, "createCheckboxValidator", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function () { return chunk5WATIVCA_js.createCheckboxValidator; }
|
|
11
|
-
});
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { D as DateAttribute } from '../../attributes-CWPLbp7c.mjs';
|
|
3
|
-
import { V as ValidationMessages } from '../../types-CVYiFc69.mjs';
|
|
4
|
-
import '@stndrds/constants';
|
|
5
|
-
import '../../utils.mjs';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Create a Zod schema for a date attribute.
|
|
9
|
-
*
|
|
10
|
-
* Non-range attributes validate a single coercible date bounded by
|
|
11
|
-
* `minDate`/`maxDate`. Range attributes (`.endDate()`) validate a
|
|
12
|
-
* `{ start, end }` object — `end` may be null, and when present must be
|
|
13
|
-
* on or after `start`. Plain strings normalize to `{ start, end: null }`
|
|
14
|
-
* (mirroring `normalizeDateValue`) so legacy values written before
|
|
15
|
-
* `endDate` was enabled keep validating.
|
|
16
|
-
*
|
|
17
|
-
* Coercion to `Date` only backs correctness/bounds checks against a
|
|
18
|
-
* throwaway copy — the schema never mutates the value itself, so
|
|
19
|
-
* `result.data` is always the original input (ISO string, or `{ start, end }`
|
|
20
|
-
* of ISO strings), never a coerced `Date`. This keeps the stored shape intact
|
|
21
|
-
* for callers that persist `validator.safeParse(value).data`.
|
|
22
|
-
*/
|
|
23
|
-
declare function createDateValidator(attr: DateAttribute, messages?: ValidationMessages): z.ZodTypeAny;
|
|
24
|
-
|
|
25
|
-
export { createDateValidator };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { D as DateAttribute } from '../../attributes-CNYwg_Nr.js';
|
|
3
|
-
import { V as ValidationMessages } from '../../types-NGEww_ln.js';
|
|
4
|
-
import '@stndrds/constants';
|
|
5
|
-
import '../../utils.js';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Create a Zod schema for a date attribute.
|
|
9
|
-
*
|
|
10
|
-
* Non-range attributes validate a single coercible date bounded by
|
|
11
|
-
* `minDate`/`maxDate`. Range attributes (`.endDate()`) validate a
|
|
12
|
-
* `{ start, end }` object — `end` may be null, and when present must be
|
|
13
|
-
* on or after `start`. Plain strings normalize to `{ start, end: null }`
|
|
14
|
-
* (mirroring `normalizeDateValue`) so legacy values written before
|
|
15
|
-
* `endDate` was enabled keep validating.
|
|
16
|
-
*
|
|
17
|
-
* Coercion to `Date` only backs correctness/bounds checks against a
|
|
18
|
-
* throwaway copy — the schema never mutates the value itself, so
|
|
19
|
-
* `result.data` is always the original input (ISO string, or `{ start, end }`
|
|
20
|
-
* of ISO strings), never a coerced `Date`. This keeps the stored shape intact
|
|
21
|
-
* for callers that persist `validator.safeParse(value).data`.
|
|
22
|
-
*/
|
|
23
|
-
declare function createDateValidator(attr: DateAttribute, messages?: ValidationMessages): z.ZodTypeAny;
|
|
24
|
-
|
|
25
|
-
export { createDateValidator };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkSI34M4IC_js = require('../../chunk-SI34M4IC.js');
|
|
4
|
-
require('../../chunk-YKWSHBT5.js');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(exports, "createDateValidator", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function () { return chunkSI34M4IC_js.createDateValidator; }
|
|
11
|
-
});
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { N as NumberAttribute } from '../../attributes-CWPLbp7c.mjs';
|
|
3
|
-
import { V as ValidationMessages } from '../../types-CVYiFc69.mjs';
|
|
4
|
-
import '@stndrds/constants';
|
|
5
|
-
import '../../utils.mjs';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Create a Zod schema for a number attribute
|
|
9
|
-
*/
|
|
10
|
-
declare function createNumberValidator(attr: NumberAttribute, messages?: ValidationMessages): z.ZodNumber;
|
|
11
|
-
|
|
12
|
-
export { createNumberValidator };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { N as NumberAttribute } from '../../attributes-CNYwg_Nr.js';
|
|
3
|
-
import { V as ValidationMessages } from '../../types-NGEww_ln.js';
|
|
4
|
-
import '@stndrds/constants';
|
|
5
|
-
import '../../utils.js';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Create a Zod schema for a number attribute
|
|
9
|
-
*/
|
|
10
|
-
declare function createNumberValidator(attr: NumberAttribute, messages?: ValidationMessages): z.ZodNumber;
|
|
11
|
-
|
|
12
|
-
export { createNumberValidator };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkYIP5FJ5H_js = require('../../chunk-YIP5FJ5H.js');
|
|
4
|
-
require('../../chunk-YKWSHBT5.js');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(exports, "createNumberValidator", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function () { return chunkYIP5FJ5H_js.createNumberValidator; }
|
|
11
|
-
});
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { T as TextAttribute } from '../../attributes-CWPLbp7c.mjs';
|
|
3
|
-
import { V as ValidationMessages } from '../../types-CVYiFc69.mjs';
|
|
4
|
-
import '@stndrds/constants';
|
|
5
|
-
import '../../utils.mjs';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Create a Zod schema for a text attribute
|
|
9
|
-
*/
|
|
10
|
-
declare function createTextValidator(attr: TextAttribute, messages?: ValidationMessages): z.ZodString;
|
|
11
|
-
|
|
12
|
-
export { createTextValidator };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { T as TextAttribute } from '../../attributes-CNYwg_Nr.js';
|
|
3
|
-
import { V as ValidationMessages } from '../../types-NGEww_ln.js';
|
|
4
|
-
import '@stndrds/constants';
|
|
5
|
-
import '../../utils.js';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Create a Zod schema for a text attribute
|
|
9
|
-
*/
|
|
10
|
-
declare function createTextValidator(attr: TextAttribute, messages?: ValidationMessages): z.ZodString;
|
|
11
|
-
|
|
12
|
-
export { createTextValidator };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkZPFOKBIN_js = require('../../chunk-ZPFOKBIN.js');
|
|
4
|
-
require('../../chunk-YKWSHBT5.js');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(exports, "createTextValidator", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function () { return chunkZPFOKBIN_js.createTextValidator; }
|
|
11
|
-
});
|