@stndrds/schema 0.1.0-alpha.67 → 1.0.0-alpha.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/attributes-CH89Z_J-.d.mts +675 -0
- package/dist/attributes-dw-jLtYS.d.ts +675 -0
- package/dist/chunk-2LUHLHLE.mjs +8 -0
- package/dist/chunk-3RFFA4EV.mjs +14 -0
- package/dist/chunk-4DMDOSFN.js +10 -0
- package/dist/chunk-4IVCBFJA.mjs +12 -0
- package/dist/chunk-5CBTJS7J.js +22 -0
- package/dist/chunk-5SQEKHPW.js +78 -0
- package/dist/chunk-6IFD5732.js +10 -0
- package/dist/chunk-6MXQAQBB.mjs +18 -0
- package/dist/chunk-7FSIBNRH.mjs +25 -0
- package/dist/chunk-ALV6GETG.mjs +10 -0
- package/dist/chunk-ANP6HGMJ.js +64 -0
- package/dist/chunk-ATA4XHB4.js +20 -0
- package/dist/chunk-BEN6TE7Y.js +11 -0
- package/dist/chunk-BZTLI773.mjs +8 -0
- package/dist/chunk-C7KW4NAD.js +20 -0
- package/dist/chunk-CE25ADK5.js +212 -0
- package/dist/chunk-E6XO2STS.js +61 -0
- package/dist/chunk-EKG35CSO.mjs +1 -0
- package/dist/chunk-ERG77ADK.mjs +18 -0
- package/dist/chunk-FKETRWAF.js +10 -0
- package/dist/chunk-FKPYFM6G.mjs +14 -0
- package/dist/chunk-H3VBSMVW.js +105 -0
- package/dist/chunk-HJNLL34O.js +12 -0
- package/dist/chunk-IMEPIVTR.js +217 -0
- package/dist/chunk-JEDANRCG.mjs +74 -0
- package/dist/chunk-KC2FFNL4.js +16 -0
- package/dist/chunk-OO2LJ6GP.js +32 -0
- package/dist/chunk-P4NGPF5L.mjs +99 -0
- package/dist/chunk-PGHTIMRD.mjs +199 -0
- package/dist/chunk-PZT3CIHD.mjs +192 -0
- package/dist/chunk-QPDXDX7A.js +16 -0
- package/dist/chunk-R6JFUC32.js +2 -0
- package/dist/chunk-RDGBQM3N.mjs +20 -0
- package/dist/chunk-RDXQ4CYT.mjs +9 -0
- package/dist/chunk-STKN6A5M.js +14 -0
- package/dist/chunk-TV4G2KMD.mjs +8 -0
- package/dist/chunk-UPEQEX2D.js +10 -0
- package/dist/chunk-VC4E3OSZ.mjs +8 -0
- package/dist/{chunk-V2RPPE2Y.mjs → chunk-XAORXFAX.mjs} +20 -9
- package/dist/chunk-XPFWKISJ.mjs +60 -0
- package/dist/chunk-ZJNX6UXB.mjs +28 -0
- package/dist/chunk-ZWMMEQI7.js +28 -0
- package/dist/index-CftmKoRP.d.mts +2053 -0
- package/dist/index-Dh_XiNFt.d.ts +2053 -0
- package/dist/index.d.mts +4406 -490
- package/dist/index.d.ts +4406 -490
- package/dist/index.js +6598 -1729
- package/dist/index.mjs +5260 -938
- package/dist/types-D-0QbsA9.d.ts +39 -0
- package/dist/types-Ms3HtAmo.d.mts +39 -0
- package/dist/utils.d.mts +20 -1
- package/dist/utils.d.ts +20 -1
- package/dist/utils.js +38 -19
- package/dist/utils.mjs +1 -19
- package/dist/validation/all.d.mts +23 -0
- package/dist/validation/all.d.ts +23 -0
- package/dist/validation/all.js +265 -0
- package/dist/validation/all.mjs +20 -0
- package/dist/validation/complex/currency.d.mts +15 -0
- package/dist/validation/complex/currency.d.ts +15 -0
- package/dist/validation/complex/currency.js +12 -0
- package/dist/validation/complex/currency.mjs +3 -0
- package/dist/validation/complex/file.d.mts +13 -0
- package/dist/validation/complex/file.d.ts +13 -0
- package/dist/validation/complex/file.js +12 -0
- package/dist/validation/complex/file.mjs +3 -0
- package/dist/validation/complex/location.d.mts +22 -0
- package/dist/validation/complex/location.d.ts +22 -0
- package/dist/validation/complex/location.js +12 -0
- package/dist/validation/complex/location.mjs +3 -0
- package/dist/validation/complex/phone.d.mts +22 -0
- package/dist/validation/complex/phone.d.ts +22 -0
- package/dist/validation/complex/phone.js +12 -0
- package/dist/validation/complex/phone.mjs +3 -0
- package/dist/validation/complex/relation.d.mts +25 -0
- package/dist/validation/complex/relation.d.ts +25 -0
- package/dist/validation/complex/relation.js +20 -0
- package/dist/validation/complex/relation.mjs +3 -0
- package/dist/validation/complex/richtext.d.mts +13 -0
- package/dist/validation/complex/richtext.d.ts +13 -0
- package/dist/validation/complex/richtext.js +12 -0
- package/dist/validation/complex/richtext.mjs +3 -0
- package/dist/validation/complex/select.d.mts +20 -0
- package/dist/validation/complex/select.d.ts +20 -0
- package/dist/validation/complex/select.js +20 -0
- package/dist/validation/complex/select.mjs +3 -0
- package/dist/validation/complex/user.d.mts +13 -0
- package/dist/validation/complex/user.d.ts +13 -0
- package/dist/validation/complex/user.js +12 -0
- package/dist/validation/complex/user.mjs +3 -0
- package/dist/validation/computed/formula.d.mts +14 -0
- package/dist/validation/computed/formula.d.ts +14 -0
- package/dist/validation/computed/formula.js +12 -0
- package/dist/validation/computed/formula.mjs +3 -0
- package/dist/validation/computed/rollup.d.mts +14 -0
- package/dist/validation/computed/rollup.d.ts +14 -0
- package/dist/validation/computed/rollup.js +12 -0
- package/dist/validation/computed/rollup.mjs +3 -0
- package/dist/validation/config/index.d.mts +421 -0
- package/dist/validation/config/index.d.ts +421 -0
- package/dist/validation/config/index.js +103 -0
- package/dist/validation/config/index.mjs +2 -0
- package/dist/validation/core/index.d.mts +68 -0
- package/dist/validation/core/index.d.ts +68 -0
- package/dist/validation/core/index.js +23 -0
- package/dist/validation/core/index.mjs +2 -0
- package/dist/validation/object/index.d.mts +6 -0
- package/dist/validation/object/index.d.ts +6 -0
- package/dist/validation/object/index.js +71 -0
- package/dist/validation/object/index.mjs +18 -0
- package/dist/validation/primitives/checkbox.d.mts +12 -0
- package/dist/validation/primitives/checkbox.d.ts +12 -0
- package/dist/validation/primitives/checkbox.js +12 -0
- package/dist/validation/primitives/checkbox.mjs +3 -0
- package/dist/validation/primitives/date.d.mts +12 -0
- package/dist/validation/primitives/date.d.ts +12 -0
- package/dist/validation/primitives/date.js +12 -0
- package/dist/validation/primitives/date.mjs +3 -0
- package/dist/validation/primitives/number.d.mts +12 -0
- package/dist/validation/primitives/number.d.ts +12 -0
- package/dist/validation/primitives/number.js +12 -0
- package/dist/validation/primitives/number.mjs +3 -0
- package/dist/validation/primitives/rating.d.mts +12 -0
- package/dist/validation/primitives/rating.d.ts +12 -0
- package/dist/validation/primitives/rating.js +12 -0
- package/dist/validation/primitives/rating.mjs +3 -0
- package/dist/validation/primitives/text.d.mts +17 -0
- package/dist/validation/primitives/text.d.ts +17 -0
- package/dist/validation/primitives/text.js +16 -0
- package/dist/validation/primitives/text.mjs +3 -0
- package/dist/validation/validators.d.mts +21 -2
- package/dist/validation/validators.d.ts +21 -2
- package/dist/validation/validators.js +265 -121
- package/dist/validation/validators.mjs +20 -121
- package/package.json +109 -13
- package/dist/chunk-36UBIXJN.js +0 -82
- package/dist/chunk-3RG5ZIWI.js +0 -10
- package/dist/chunk-A6T4UUZ2.mjs +0 -18669
- package/dist/chunk-NEVERCM3.js +0 -41
- package/dist/chunk-SV4BCGQU.mjs +0 -617
- package/dist/chunk-TOTUS3YS.js +0 -18669
- package/dist/chunk-U4AB53AM.js +0 -617
- package/dist/chunk-V5QXU2OK.mjs +0 -82
- package/dist/chunk-Y6FXYEAI.mjs +0 -10
- package/dist/default-roles-42X3TJI5.mjs +0 -21
- package/dist/default-roles-C3FYDYMN.js +0 -21
- package/dist/runtime-BgtwoMx5.d.ts +0 -12759
- package/dist/runtime-DQlTgVZJ.d.mts +0 -12759
- package/dist/runtime.d.mts +0 -6
- package/dist/runtime.d.ts +0 -6
- package/dist/runtime.js +0 -323
- package/dist/runtime.mjs +0 -323
- package/dist/validators-BROsLGn4.d.mts +0 -1556
- package/dist/validators-CEzdvxEq.d.ts +0 -1556
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { L as LocationAttribute } from '../../attributes-CH89Z_J-.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-Ms3HtAmo.mjs';
|
|
4
|
+
import '@stndrds/constants';
|
|
5
|
+
import '../../utils.mjs';
|
|
6
|
+
|
|
7
|
+
type LocationShape = {
|
|
8
|
+
address?: string;
|
|
9
|
+
address2?: string;
|
|
10
|
+
city?: string;
|
|
11
|
+
state?: string;
|
|
12
|
+
postalCode?: string;
|
|
13
|
+
country?: string;
|
|
14
|
+
latitude?: number;
|
|
15
|
+
longitude?: number;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Create a Zod schema for a location attribute
|
|
19
|
+
*/
|
|
20
|
+
declare function createLocationValidator(attr: LocationAttribute, messages?: ValidationMessages): z.ZodType<LocationShape>;
|
|
21
|
+
|
|
22
|
+
export { createLocationValidator };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { L as LocationAttribute } from '../../attributes-dw-jLtYS.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-D-0QbsA9.js';
|
|
4
|
+
import '@stndrds/constants';
|
|
5
|
+
import '../../utils.js';
|
|
6
|
+
|
|
7
|
+
type LocationShape = {
|
|
8
|
+
address?: string;
|
|
9
|
+
address2?: string;
|
|
10
|
+
city?: string;
|
|
11
|
+
state?: string;
|
|
12
|
+
postalCode?: string;
|
|
13
|
+
country?: string;
|
|
14
|
+
latitude?: number;
|
|
15
|
+
longitude?: number;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Create a Zod schema for a location attribute
|
|
19
|
+
*/
|
|
20
|
+
declare function createLocationValidator(attr: LocationAttribute, messages?: ValidationMessages): z.ZodType<LocationShape>;
|
|
21
|
+
|
|
22
|
+
export { createLocationValidator };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk5CBTJS7J_js = require('../../chunk-5CBTJS7J.js');
|
|
4
|
+
require('../../chunk-5SQEKHPW.js');
|
|
5
|
+
require('../../chunk-BEN6TE7Y.js');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "createLocationValidator", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return chunk5CBTJS7J_js.createLocationValidator; }
|
|
12
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { P as PhoneAttribute } from '../../attributes-CH89Z_J-.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-Ms3HtAmo.mjs';
|
|
4
|
+
import '@stndrds/constants';
|
|
5
|
+
import '../../utils.mjs';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Create a Zod schema for a phone attribute.
|
|
9
|
+
*
|
|
10
|
+
* Validates:
|
|
11
|
+
* - countryCode is a valid ISO3 country code
|
|
12
|
+
* - phoneNumber contains valid digits for the given country
|
|
13
|
+
*
|
|
14
|
+
* Transforms:
|
|
15
|
+
* - Normalizes phoneNumber to national digits without trunk prefix
|
|
16
|
+
*/
|
|
17
|
+
declare function createPhoneValidator(attr: PhoneAttribute, messages?: ValidationMessages): z.ZodType<{
|
|
18
|
+
countryCode: string;
|
|
19
|
+
phoneNumber: string;
|
|
20
|
+
}>;
|
|
21
|
+
|
|
22
|
+
export { createPhoneValidator };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { P as PhoneAttribute } from '../../attributes-dw-jLtYS.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-D-0QbsA9.js';
|
|
4
|
+
import '@stndrds/constants';
|
|
5
|
+
import '../../utils.js';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Create a Zod schema for a phone attribute.
|
|
9
|
+
*
|
|
10
|
+
* Validates:
|
|
11
|
+
* - countryCode is a valid ISO3 country code
|
|
12
|
+
* - phoneNumber contains valid digits for the given country
|
|
13
|
+
*
|
|
14
|
+
* Transforms:
|
|
15
|
+
* - Normalizes phoneNumber to national digits without trunk prefix
|
|
16
|
+
*/
|
|
17
|
+
declare function createPhoneValidator(attr: PhoneAttribute, messages?: ValidationMessages): z.ZodType<{
|
|
18
|
+
countryCode: string;
|
|
19
|
+
phoneNumber: string;
|
|
20
|
+
}>;
|
|
21
|
+
|
|
22
|
+
export { createPhoneValidator };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkH3VBSMVW_js = require('../../chunk-H3VBSMVW.js');
|
|
4
|
+
require('../../chunk-5SQEKHPW.js');
|
|
5
|
+
require('../../chunk-BEN6TE7Y.js');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "createPhoneValidator", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return chunkH3VBSMVW_js.createPhoneValidator; }
|
|
12
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { M as MultiRelationAttribute, R as RelationAttribute, S as SingleRelationAttribute } from '../../attributes-CH89Z_J-.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-Ms3HtAmo.mjs';
|
|
4
|
+
import '@stndrds/constants';
|
|
5
|
+
import '../../utils.mjs';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Create a Zod schema for a single relation attribute (cardinality: "one")
|
|
9
|
+
* Supports hybrid format `{ id, props }` from qualified relations.
|
|
10
|
+
* IMPORTANT: Validates the ID but preserves the original format (keeps props).
|
|
11
|
+
*/
|
|
12
|
+
declare function createSingleRelationValidator(attr: SingleRelationAttribute, messages?: ValidationMessages): z.ZodTypeAny;
|
|
13
|
+
/**
|
|
14
|
+
* Create a Zod schema for a multi relation attribute (cardinality: "many")
|
|
15
|
+
* Supports hybrid format arrays with `{ id, props }` items from qualified relations.
|
|
16
|
+
* IMPORTANT: Validates the IDs but preserves the original format (keeps props).
|
|
17
|
+
*/
|
|
18
|
+
declare function createMultiRelationValidator(attr: MultiRelationAttribute, messages?: ValidationMessages): z.ZodTypeAny;
|
|
19
|
+
/**
|
|
20
|
+
* Create a Zod schema for a relation attribute
|
|
21
|
+
* Dispatches to single or multi validator based on cardinality
|
|
22
|
+
*/
|
|
23
|
+
declare function createRelationValidator(attr: RelationAttribute, messages?: ValidationMessages): z.ZodTypeAny;
|
|
24
|
+
|
|
25
|
+
export { createMultiRelationValidator, createRelationValidator, createSingleRelationValidator };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { M as MultiRelationAttribute, R as RelationAttribute, S as SingleRelationAttribute } from '../../attributes-dw-jLtYS.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-D-0QbsA9.js';
|
|
4
|
+
import '@stndrds/constants';
|
|
5
|
+
import '../../utils.js';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Create a Zod schema for a single relation attribute (cardinality: "one")
|
|
9
|
+
* Supports hybrid format `{ id, props }` from qualified relations.
|
|
10
|
+
* IMPORTANT: Validates the ID but preserves the original format (keeps props).
|
|
11
|
+
*/
|
|
12
|
+
declare function createSingleRelationValidator(attr: SingleRelationAttribute, messages?: ValidationMessages): z.ZodTypeAny;
|
|
13
|
+
/**
|
|
14
|
+
* Create a Zod schema for a multi relation attribute (cardinality: "many")
|
|
15
|
+
* Supports hybrid format arrays with `{ id, props }` items from qualified relations.
|
|
16
|
+
* IMPORTANT: Validates the IDs but preserves the original format (keeps props).
|
|
17
|
+
*/
|
|
18
|
+
declare function createMultiRelationValidator(attr: MultiRelationAttribute, messages?: ValidationMessages): z.ZodTypeAny;
|
|
19
|
+
/**
|
|
20
|
+
* Create a Zod schema for a relation attribute
|
|
21
|
+
* Dispatches to single or multi validator based on cardinality
|
|
22
|
+
*/
|
|
23
|
+
declare function createRelationValidator(attr: RelationAttribute, messages?: ValidationMessages): z.ZodTypeAny;
|
|
24
|
+
|
|
25
|
+
export { createMultiRelationValidator, createRelationValidator, createSingleRelationValidator };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkANP6HGMJ_js = require('../../chunk-ANP6HGMJ.js');
|
|
4
|
+
require('../../chunk-5SQEKHPW.js');
|
|
5
|
+
require('../../chunk-BEN6TE7Y.js');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "createMultiRelationValidator", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return chunkANP6HGMJ_js.createMultiRelationValidator; }
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, "createRelationValidator", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return chunkANP6HGMJ_js.createRelationValidator; }
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, "createSingleRelationValidator", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return chunkANP6HGMJ_js.createSingleRelationValidator; }
|
|
20
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { a as RichtextAttribute } from '../../attributes-CH89Z_J-.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-Ms3HtAmo.mjs';
|
|
4
|
+
import '@stndrds/constants';
|
|
5
|
+
import '../../utils.mjs';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Create a Zod schema for a richtext attribute.
|
|
9
|
+
* Validates semantic markdown content as a string.
|
|
10
|
+
*/
|
|
11
|
+
declare function createRichtextValidator(attr: RichtextAttribute, messages?: ValidationMessages): z.ZodTypeAny;
|
|
12
|
+
|
|
13
|
+
export { createRichtextValidator };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { a as RichtextAttribute } from '../../attributes-dw-jLtYS.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-D-0QbsA9.js';
|
|
4
|
+
import '@stndrds/constants';
|
|
5
|
+
import '../../utils.js';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Create a Zod schema for a richtext attribute.
|
|
9
|
+
* Validates semantic markdown content as a string.
|
|
10
|
+
*/
|
|
11
|
+
declare function createRichtextValidator(attr: RichtextAttribute, messages?: ValidationMessages): z.ZodTypeAny;
|
|
12
|
+
|
|
13
|
+
export { createRichtextValidator };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkHJNLL34O_js = require('../../chunk-HJNLL34O.js');
|
|
4
|
+
require('../../chunk-5SQEKHPW.js');
|
|
5
|
+
require('../../chunk-BEN6TE7Y.js');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "createRichtextValidator", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return chunkHJNLL34O_js.createRichtextValidator; }
|
|
12
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { b as MultiselectAttribute, c as SelectAttribute, d as StatusAttribute } from '../../attributes-CH89Z_J-.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-Ms3HtAmo.mjs';
|
|
4
|
+
import '@stndrds/constants';
|
|
5
|
+
import '../../utils.mjs';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Create a Zod schema for a select attribute
|
|
9
|
+
*/
|
|
10
|
+
declare function createSelectValidator(attr: SelectAttribute, messages?: ValidationMessages): z.ZodTypeAny;
|
|
11
|
+
/**
|
|
12
|
+
* Create a Zod schema for a multiselect attribute
|
|
13
|
+
*/
|
|
14
|
+
declare function createMultiselectValidator(attr: MultiselectAttribute, messages?: ValidationMessages): z.ZodArray<z.ZodTypeAny>;
|
|
15
|
+
/**
|
|
16
|
+
* Create a Zod schema for a status attribute
|
|
17
|
+
*/
|
|
18
|
+
declare function createStatusValidator(attr: StatusAttribute, messages?: ValidationMessages): z.ZodTypeAny;
|
|
19
|
+
|
|
20
|
+
export { createMultiselectValidator, createSelectValidator, createStatusValidator };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { b as MultiselectAttribute, c as SelectAttribute, d as StatusAttribute } from '../../attributes-dw-jLtYS.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-D-0QbsA9.js';
|
|
4
|
+
import '@stndrds/constants';
|
|
5
|
+
import '../../utils.js';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Create a Zod schema for a select attribute
|
|
9
|
+
*/
|
|
10
|
+
declare function createSelectValidator(attr: SelectAttribute, messages?: ValidationMessages): z.ZodTypeAny;
|
|
11
|
+
/**
|
|
12
|
+
* Create a Zod schema for a multiselect attribute
|
|
13
|
+
*/
|
|
14
|
+
declare function createMultiselectValidator(attr: MultiselectAttribute, messages?: ValidationMessages): z.ZodArray<z.ZodTypeAny>;
|
|
15
|
+
/**
|
|
16
|
+
* Create a Zod schema for a status attribute
|
|
17
|
+
*/
|
|
18
|
+
declare function createStatusValidator(attr: StatusAttribute, messages?: ValidationMessages): z.ZodTypeAny;
|
|
19
|
+
|
|
20
|
+
export { createMultiselectValidator, createSelectValidator, createStatusValidator };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkOO2LJ6GP_js = require('../../chunk-OO2LJ6GP.js');
|
|
4
|
+
require('../../chunk-5SQEKHPW.js');
|
|
5
|
+
require('../../chunk-BEN6TE7Y.js');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "createMultiselectValidator", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return chunkOO2LJ6GP_js.createMultiselectValidator; }
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, "createSelectValidator", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return chunkOO2LJ6GP_js.createSelectValidator; }
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, "createStatusValidator", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return chunkOO2LJ6GP_js.createStatusValidator; }
|
|
20
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { U as UserAttribute } from '../../attributes-CH89Z_J-.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-Ms3HtAmo.mjs';
|
|
4
|
+
import '@stndrds/constants';
|
|
5
|
+
import '../../utils.mjs';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Create a Zod schema for a user attribute
|
|
9
|
+
* Supports both single user (UUID) and multiple users (array of UUIDs)
|
|
10
|
+
*/
|
|
11
|
+
declare function createUserValidator(attr: UserAttribute, messages?: ValidationMessages): z.ZodTypeAny;
|
|
12
|
+
|
|
13
|
+
export { createUserValidator };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { U as UserAttribute } from '../../attributes-dw-jLtYS.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-D-0QbsA9.js';
|
|
4
|
+
import '@stndrds/constants';
|
|
5
|
+
import '../../utils.js';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Create a Zod schema for a user attribute
|
|
9
|
+
* Supports both single user (UUID) and multiple users (array of UUIDs)
|
|
10
|
+
*/
|
|
11
|
+
declare function createUserValidator(attr: UserAttribute, messages?: ValidationMessages): z.ZodTypeAny;
|
|
12
|
+
|
|
13
|
+
export { createUserValidator };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkKC2FFNL4_js = require('../../chunk-KC2FFNL4.js');
|
|
4
|
+
require('../../chunk-5SQEKHPW.js');
|
|
5
|
+
require('../../chunk-BEN6TE7Y.js');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "createUserValidator", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return chunkKC2FFNL4_js.createUserValidator; }
|
|
12
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { e as FormulaAttribute } from '../../attributes-CH89Z_J-.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-Ms3HtAmo.mjs';
|
|
4
|
+
import '@stndrds/constants';
|
|
5
|
+
import '../../utils.mjs';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Create a Zod schema for a formula attribute.
|
|
9
|
+
* Formula attributes are read-only (computed at runtime).
|
|
10
|
+
* They accept any value during validation but are ignored during record creation/update.
|
|
11
|
+
*/
|
|
12
|
+
declare function createFormulaValidator(_attr: FormulaAttribute, _messages?: ValidationMessages): z.ZodUnknown;
|
|
13
|
+
|
|
14
|
+
export { createFormulaValidator };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { e as FormulaAttribute } from '../../attributes-dw-jLtYS.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-D-0QbsA9.js';
|
|
4
|
+
import '@stndrds/constants';
|
|
5
|
+
import '../../utils.js';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Create a Zod schema for a formula attribute.
|
|
9
|
+
* Formula attributes are read-only (computed at runtime).
|
|
10
|
+
* They accept any value during validation but are ignored during record creation/update.
|
|
11
|
+
*/
|
|
12
|
+
declare function createFormulaValidator(_attr: FormulaAttribute, _messages?: ValidationMessages): z.ZodUnknown;
|
|
13
|
+
|
|
14
|
+
export { createFormulaValidator };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkUPEQEX2D_js = require('../../chunk-UPEQEX2D.js');
|
|
4
|
+
require('../../chunk-5SQEKHPW.js');
|
|
5
|
+
require('../../chunk-BEN6TE7Y.js');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "createFormulaValidator", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return chunkUPEQEX2D_js.createFormulaValidator; }
|
|
12
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { f as RollupAttribute } from '../../attributes-CH89Z_J-.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-Ms3HtAmo.mjs';
|
|
4
|
+
import '@stndrds/constants';
|
|
5
|
+
import '../../utils.mjs';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Create a Zod schema for a rollup attribute.
|
|
9
|
+
* Rollup attributes are read-only (computed from related records).
|
|
10
|
+
* They accept any value during validation but are ignored during record creation/update.
|
|
11
|
+
*/
|
|
12
|
+
declare function createRollupValidator(_attr: RollupAttribute, _messages?: ValidationMessages): z.ZodUnknown;
|
|
13
|
+
|
|
14
|
+
export { createRollupValidator };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { f as RollupAttribute } from '../../attributes-dw-jLtYS.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-D-0QbsA9.js';
|
|
4
|
+
import '@stndrds/constants';
|
|
5
|
+
import '../../utils.js';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Create a Zod schema for a rollup attribute.
|
|
9
|
+
* Rollup attributes are read-only (computed from related records).
|
|
10
|
+
* They accept any value during validation but are ignored during record creation/update.
|
|
11
|
+
*/
|
|
12
|
+
declare function createRollupValidator(_attr: RollupAttribute, _messages?: ValidationMessages): z.ZodUnknown;
|
|
13
|
+
|
|
14
|
+
export { createRollupValidator };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk6IFD5732_js = require('../../chunk-6IFD5732.js');
|
|
4
|
+
require('../../chunk-5SQEKHPW.js');
|
|
5
|
+
require('../../chunk-BEN6TE7Y.js');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "createRollupValidator", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return chunk6IFD5732_js.createRollupValidator; }
|
|
12
|
+
});
|