@stndrds/schema 1.0.0-alpha.329 → 1.0.0-alpha.331
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/all-CWDgBPuS.d.ts +1186 -0
- package/dist/all-DilIWUev.d.mts +1186 -0
- package/dist/capabilities.d.mts +94 -94
- package/dist/capabilities.d.ts +94 -94
- package/dist/capabilities.js +2 -2
- package/dist/capabilities.mjs +2 -2
- package/dist/checkbox-CjnTd8DE.d.ts +11 -0
- package/dist/checkbox-preO352q.d.mts +11 -0
- package/dist/config-BQJJHopR.js +13 -0
- package/dist/config-_sOeudpS.mjs +13 -0
- package/dist/core-397tQy5q.js +2 -0
- package/dist/core-BLHhNykL.mjs +2 -0
- package/dist/date-BL3UHIXs.d.mts +24 -0
- package/dist/date-CxwHkbid.d.ts +24 -0
- package/dist/exceptions-DGCzCc9t.d.mts +1405 -0
- package/dist/exceptions-DGCzCc9t.d.ts +1405 -0
- package/dist/exceptions.d.mts +3 -2
- package/dist/exceptions.d.ts +3 -2
- package/dist/exceptions.js +3 -1
- package/dist/exceptions.mjs +3 -1
- package/dist/index-B7HmBsUS.d.ts +53 -0
- package/dist/{helpers-qMMFwD1I.d.ts → index-BoUwfrDH.d.mts} +172 -145
- package/dist/index-C8M7Amy9.d.mts +254 -0
- package/dist/{helpers-lqSDjgQ1.d.mts → index-DqwNrDSp.d.ts} +172 -145
- package/dist/index-Uwy7CTKo.d.ts +254 -0
- package/dist/index-XtmC-C7J.d.mts +53 -0
- package/dist/index.d.mts +9151 -9136
- package/dist/index.d.ts +9151 -9136
- package/dist/index.js +21 -27
- package/dist/index.mjs +21 -27
- package/dist/number-Ddi_YYfm.d.mts +11 -0
- package/dist/number-GmD5PM5s.d.ts +11 -0
- package/dist/object-DGu0m2Y1.js +4 -0
- package/dist/object-DSRy1coV.mjs +4 -0
- package/dist/phone-BawtTYVi.mjs +2 -0
- package/dist/phone-DVaELsa3.js +2 -0
- package/dist/text-A9AJ1wUO.js +2 -0
- package/dist/text-C8Lb-NFo.mjs +2 -0
- package/dist/text-CxwF5K4k.d.mts +11 -0
- package/dist/text-D6UypN8p.d.ts +11 -0
- package/dist/utils-fXIvFFl6.mjs +2 -0
- package/dist/utils-gY3d9Dwp.js +2 -0
- package/dist/utils.d.mts +3 -2
- package/dist/utils.d.ts +3 -2
- package/dist/utils.js +2 -1
- package/dist/utils.mjs +2 -1
- package/dist/validation/all.d.mts +6 -8
- package/dist/validation/all.d.ts +6 -8
- package/dist/validation/all.js +2 -1
- package/dist/validation/all.mjs +2 -1
- package/dist/validation/complex/currency.d.mts +8 -9
- package/dist/validation/complex/currency.d.ts +8 -9
- package/dist/validation/complex/currency.js +2 -1
- package/dist/validation/complex/currency.mjs +2 -1
- package/dist/validation/complex/location.d.mts +14 -15
- package/dist/validation/complex/location.d.ts +14 -15
- package/dist/validation/complex/location.js +2 -1
- package/dist/validation/complex/location.mjs +2 -1
- package/dist/validation/complex/phone.d.mts +8 -9
- package/dist/validation/complex/phone.d.ts +8 -9
- package/dist/validation/complex/phone.js +2 -1
- package/dist/validation/complex/phone.mjs +2 -1
- package/dist/validation/complex/relation.d.mts +8 -9
- package/dist/validation/complex/relation.d.ts +8 -9
- package/dist/validation/complex/relation.js +2 -1
- package/dist/validation/complex/relation.mjs +2 -1
- package/dist/validation/complex/richtext.d.mts +6 -7
- package/dist/validation/complex/richtext.d.ts +6 -7
- package/dist/validation/complex/richtext.js +2 -1
- package/dist/validation/complex/richtext.mjs +2 -1
- package/dist/validation/complex/select.d.mts +8 -9
- package/dist/validation/complex/select.d.ts +8 -9
- package/dist/validation/complex/select.js +2 -1
- package/dist/validation/complex/select.mjs +2 -1
- package/dist/validation/complex/user.d.mts +6 -7
- package/dist/validation/complex/user.d.ts +6 -7
- package/dist/validation/complex/user.js +2 -1
- package/dist/validation/complex/user.mjs +2 -1
- package/dist/validation/computed/formula.d.mts +6 -7
- package/dist/validation/computed/formula.d.ts +6 -7
- package/dist/validation/computed/formula.js +2 -1
- package/dist/validation/computed/formula.mjs +2 -1
- package/dist/validation/computed/rollup.d.mts +6 -7
- package/dist/validation/computed/rollup.d.ts +6 -7
- package/dist/validation/computed/rollup.js +2 -1
- package/dist/validation/computed/rollup.mjs +2 -1
- package/dist/validation/config/index.d.mts +3 -4
- package/dist/validation/config/index.d.ts +3 -4
- package/dist/validation/config/index.js +2 -1
- package/dist/validation/config/index.mjs +2 -1
- package/dist/validation/core/index.d.mts +2 -17
- package/dist/validation/core/index.d.ts +2 -17
- package/dist/validation/core/index.js +2 -1
- package/dist/validation/core/index.mjs +2 -1
- package/dist/validation/object/index.d.mts +2 -29
- package/dist/validation/object/index.d.ts +2 -29
- package/dist/validation/object/index.js +2 -1
- package/dist/validation/object/index.mjs +2 -1
- package/dist/validation/primitives/checkbox.d.mts +2 -10
- package/dist/validation/primitives/checkbox.d.ts +2 -10
- package/dist/validation/primitives/checkbox.js +2 -1
- package/dist/validation/primitives/checkbox.mjs +2 -1
- package/dist/validation/primitives/date.d.mts +2 -23
- package/dist/validation/primitives/date.d.ts +2 -23
- package/dist/validation/primitives/date.js +2 -1
- package/dist/validation/primitives/date.mjs +2 -1
- package/dist/validation/primitives/number.d.mts +2 -10
- package/dist/validation/primitives/number.d.ts +2 -10
- package/dist/validation/primitives/number.js +2 -1
- package/dist/validation/primitives/number.mjs +2 -1
- package/dist/validation/primitives/text.d.mts +2 -10
- package/dist/validation/primitives/text.d.ts +2 -10
- package/dist/validation/primitives/text.js +2 -1
- package/dist/validation/primitives/text.mjs +2 -1
- package/dist/view-config.schema-B4AkqLKQ.mjs +2 -0
- package/dist/view-config.schema-to6p1m8L.js +2 -0
- package/package.json +7 -6
- package/dist/all-BgP-bB0i.d.mts +0 -1178
- package/dist/all-Cq8ZMfM4.d.ts +0 -1178
- package/dist/attributes-Cv6IP8-a.d.mts +0 -1365
- package/dist/attributes-Cv6IP8-a.d.ts +0 -1365
- package/dist/chunk-23KPS33D.js +0 -2
- package/dist/chunk-2M4YXNYZ.js +0 -15
- package/dist/chunk-47KVYDKG.js +0 -2
- package/dist/chunk-4OTKOCGB.mjs +0 -2
- package/dist/chunk-4VCADZK4.mjs +0 -2
- package/dist/chunk-53RAH3XB.mjs +0 -2
- package/dist/chunk-DPD6ZWL2.js +0 -2
- package/dist/chunk-EZCWO4XV.mjs +0 -15
- package/dist/chunk-GKXTXH4Y.mjs +0 -2
- package/dist/chunk-GXSNLYRR.js +0 -2
- package/dist/chunk-IBM4ID4Y.js +0 -6
- package/dist/chunk-JFSQ24XR.js +0 -2
- package/dist/chunk-JOS2XMXY.js +0 -2
- package/dist/chunk-JSKLP4GI.js +0 -12
- package/dist/chunk-JVLH3DVZ.js +0 -2
- package/dist/chunk-KG2ADZG6.mjs +0 -2
- package/dist/chunk-KLR22JMC.js +0 -2
- package/dist/chunk-KSPJP74K.mjs +0 -2
- package/dist/chunk-KYPEBOPW.mjs +0 -2
- package/dist/chunk-LB4TNMZU.mjs +0 -2
- package/dist/chunk-LSCBR4VS.js +0 -2
- package/dist/chunk-LWSOKXPF.js +0 -2
- package/dist/chunk-O34B5KOW.mjs +0 -2
- package/dist/chunk-PFO7NWQW.mjs +0 -2
- package/dist/chunk-Q7TQCRSD.mjs +0 -2
- package/dist/chunk-RTHLB6T6.js +0 -2
- package/dist/chunk-SLYRQ72J.js +0 -2
- package/dist/chunk-UKFOBZX2.js +0 -2
- package/dist/chunk-UXISKZ5Y.js +0 -2
- package/dist/chunk-VKFLXFPP.mjs +0 -2
- package/dist/chunk-WMQRTFOP.mjs +0 -2
- package/dist/chunk-XAVRKIBE.mjs +0 -6
- package/dist/chunk-XHEBV2HE.js +0 -2
- package/dist/chunk-XMQV2WFY.mjs +0 -2
- package/dist/chunk-XRDP2Y4J.mjs +0 -2
- package/dist/chunk-XRWRECDA.mjs +0 -12
- package/dist/chunk-XUAP7KWK.js +0 -2
- package/dist/chunk-XXTKNIBK.js +0 -2
- package/dist/chunk-YIXNAWH6.mjs +0 -2
- package/dist/chunk-YJSVWV3Z.mjs +0 -2
- package/dist/index-Comy7znP.d.ts +0 -252
- package/dist/index-D4XlMkLV.d.mts +0 -252
- package/dist/types-C5Bqalr9.d.ts +0 -38
- package/dist/types-CILLmEj-.d.mts +0 -38
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { M as MultiselectAttribute, S as SelectAttribute, b as StatusAttribute } from '../../attributes-Cv6IP8-a.mjs';
|
|
3
|
-
import { V as ValidationMessages } from '../../types-CILLmEj-.mjs';
|
|
4
|
-
import '@stndrds/constants';
|
|
5
1
|
|
|
2
|
+
import { Dt as SelectAttribute, kt as StatusAttribute, mt as MultiselectAttribute } from "../../exceptions-DGCzCc9t.mjs";
|
|
3
|
+
import { r as ValidationMessages } from "../../index-XtmC-C7J.mjs";
|
|
4
|
+
import { z as z$1 } from "zod";
|
|
5
|
+
//#region src/validation/complex/select.d.ts
|
|
6
6
|
/**
|
|
7
7
|
* Create a Zod schema for a select attribute
|
|
8
8
|
*/
|
|
9
|
-
declare function createSelectValidator(attr: SelectAttribute, messages?: ValidationMessages): z.ZodTypeAny;
|
|
9
|
+
export declare function createSelectValidator(attr: SelectAttribute, messages?: ValidationMessages): z$1.ZodTypeAny;
|
|
10
10
|
/**
|
|
11
11
|
* Create a Zod schema for a multiselect attribute
|
|
12
12
|
*/
|
|
13
|
-
declare function createMultiselectValidator(attr: MultiselectAttribute, messages?: ValidationMessages): z.ZodArray<z.ZodTypeAny> | z.ZodNever;
|
|
13
|
+
export declare function createMultiselectValidator(attr: MultiselectAttribute, messages?: ValidationMessages): z$1.ZodArray<z$1.ZodTypeAny> | z$1.ZodNever;
|
|
14
14
|
/**
|
|
15
15
|
* Create a Zod schema for a status attribute
|
|
16
16
|
*/
|
|
17
|
-
declare function createStatusValidator(attr: StatusAttribute, messages?: ValidationMessages): z.ZodTypeAny;
|
|
18
|
-
|
|
19
|
-
export { createMultiselectValidator, createSelectValidator, createStatusValidator };
|
|
17
|
+
export declare function createStatusValidator(attr: StatusAttribute, messages?: ValidationMessages): z$1.ZodTypeAny;
|
|
18
|
+
//#endregion
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { M as MultiselectAttribute, S as SelectAttribute, b as StatusAttribute } from '../../attributes-Cv6IP8-a.js';
|
|
3
|
-
import { V as ValidationMessages } from '../../types-C5Bqalr9.js';
|
|
4
|
-
import '@stndrds/constants';
|
|
5
1
|
|
|
2
|
+
import { Dt as SelectAttribute, kt as StatusAttribute, mt as MultiselectAttribute } from "../../exceptions-DGCzCc9t.js";
|
|
3
|
+
import { r as ValidationMessages } from "../../index-B7HmBsUS.js";
|
|
4
|
+
import { z as z$1 } from "zod";
|
|
5
|
+
//#region src/validation/complex/select.d.ts
|
|
6
6
|
/**
|
|
7
7
|
* Create a Zod schema for a select attribute
|
|
8
8
|
*/
|
|
9
|
-
declare function createSelectValidator(attr: SelectAttribute, messages?: ValidationMessages): z.ZodTypeAny;
|
|
9
|
+
export declare function createSelectValidator(attr: SelectAttribute, messages?: ValidationMessages): z$1.ZodTypeAny;
|
|
10
10
|
/**
|
|
11
11
|
* Create a Zod schema for a multiselect attribute
|
|
12
12
|
*/
|
|
13
|
-
declare function createMultiselectValidator(attr: MultiselectAttribute, messages?: ValidationMessages): z.ZodArray<z.ZodTypeAny> | z.ZodNever;
|
|
13
|
+
export declare function createMultiselectValidator(attr: MultiselectAttribute, messages?: ValidationMessages): z$1.ZodArray<z$1.ZodTypeAny> | z$1.ZodNever;
|
|
14
14
|
/**
|
|
15
15
|
* Create a Zod schema for a status attribute
|
|
16
16
|
*/
|
|
17
|
-
declare function createStatusValidator(attr: StatusAttribute, messages?: ValidationMessages): z.ZodTypeAny;
|
|
18
|
-
|
|
19
|
-
export { createMultiselectValidator, createSelectValidator, createStatusValidator };
|
|
17
|
+
export declare function createStatusValidator(attr: StatusAttribute, messages?: ValidationMessages): z$1.ZodTypeAny;
|
|
18
|
+
//#endregion
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
/*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
|
|
2
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../core-397tQy5q.js");let t=require("zod");function createSelectValidator(n,r=e.n){let i=n.options.map(e=>e.value);if(i.length===0)return t.z.never();let a=n.options.map(e=>e.label);return t.z.enum(i,{message:r.invalidOption(n,a)})}function createMultiselectValidator(n,r=e.n){let i=n.options.map(e=>e.value);if(i.length===0)return t.z.never();let a=n.options.map(e=>e.label);return t.z.array(t.z.enum(i,{message:r.invalidOption(n,a)}))}function createStatusValidator(n,r=e.n){let i=n.options.map(e=>e.value);if(i.length===0)return t.z.never();let a=n.options.map(e=>e.label);return t.z.enum(i,{message:r.invalidOption(n,a)})}exports.createMultiselectValidator=createMultiselectValidator,exports.createSelectValidator=createSelectValidator,exports.createStatusValidator=createStatusValidator;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
/*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
|
|
2
|
+
import{n as e}from"../../core-BLHhNykL.mjs";import{z as t}from"zod";function createSelectValidator(n,r=e){let i=n.options.map(e=>e.value);if(i.length===0)return t.never();let a=n.options.map(e=>e.label);return t.enum(i,{message:r.invalidOption(n,a)})}function createMultiselectValidator(n,r=e){let i=n.options.map(e=>e.value);if(i.length===0)return t.never();let a=n.options.map(e=>e.label);return t.array(t.enum(i,{message:r.invalidOption(n,a)}))}function createStatusValidator(n,r=e){let i=n.options.map(e=>e.value);if(i.length===0)return t.never();let a=n.options.map(e=>e.label);return t.enum(i,{message:r.invalidOption(n,a)})}export{createMultiselectValidator,createSelectValidator,createStatusValidator};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { U as UserAttribute } from '../../attributes-Cv6IP8-a.mjs';
|
|
3
|
-
import { V as ValidationMessages } from '../../types-CILLmEj-.mjs';
|
|
4
|
-
import '@stndrds/constants';
|
|
5
1
|
|
|
2
|
+
import { Nt as UserAttribute } from "../../exceptions-DGCzCc9t.mjs";
|
|
3
|
+
import { r as ValidationMessages } from "../../index-XtmC-C7J.mjs";
|
|
4
|
+
import { z as z$1 } from "zod";
|
|
5
|
+
//#region src/validation/complex/user.d.ts
|
|
6
6
|
/**
|
|
7
7
|
* Create a Zod schema for a user attribute
|
|
8
8
|
* Supports both single user (UUID) and multiple users (array of UUIDs)
|
|
9
9
|
*/
|
|
10
|
-
declare function createUserValidator(attr: UserAttribute, messages?: ValidationMessages): z.ZodTypeAny;
|
|
11
|
-
|
|
12
|
-
export { createUserValidator };
|
|
10
|
+
export declare function createUserValidator(attr: UserAttribute, messages?: ValidationMessages): z$1.ZodTypeAny;
|
|
11
|
+
//#endregion
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { U as UserAttribute } from '../../attributes-Cv6IP8-a.js';
|
|
3
|
-
import { V as ValidationMessages } from '../../types-C5Bqalr9.js';
|
|
4
|
-
import '@stndrds/constants';
|
|
5
1
|
|
|
2
|
+
import { Nt as UserAttribute } from "../../exceptions-DGCzCc9t.js";
|
|
3
|
+
import { r as ValidationMessages } from "../../index-B7HmBsUS.js";
|
|
4
|
+
import { z as z$1 } from "zod";
|
|
5
|
+
//#region src/validation/complex/user.d.ts
|
|
6
6
|
/**
|
|
7
7
|
* Create a Zod schema for a user attribute
|
|
8
8
|
* Supports both single user (UUID) and multiple users (array of UUIDs)
|
|
9
9
|
*/
|
|
10
|
-
declare function createUserValidator(attr: UserAttribute, messages?: ValidationMessages): z.ZodTypeAny;
|
|
11
|
-
|
|
12
|
-
export { createUserValidator };
|
|
10
|
+
export declare function createUserValidator(attr: UserAttribute, messages?: ValidationMessages): z$1.ZodTypeAny;
|
|
11
|
+
//#endregion
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
/*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
|
|
2
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../core-397tQy5q.js");let t=require("zod");function createUserValidator(n,r=e.n){let i=t.z.guid({message:r.invalidId(n)});return n.multiple?t.z.array(i):i}exports.createUserValidator=createUserValidator;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
/*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
|
|
2
|
+
import{n as e}from"../../core-BLHhNykL.mjs";import{z as t}from"zod";function createUserValidator(n,r=e){let i=t.guid({message:r.invalidId(n)});return n.multiple?t.array(i):i}export{createUserValidator};
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { F as FormulaAttribute } from '../../attributes-Cv6IP8-a.mjs';
|
|
3
|
-
import { V as ValidationMessages } from '../../types-CILLmEj-.mjs';
|
|
4
|
-
import '@stndrds/constants';
|
|
5
1
|
|
|
2
|
+
import { ct as FormulaAttribute } from "../../exceptions-DGCzCc9t.mjs";
|
|
3
|
+
import { r as ValidationMessages } from "../../index-XtmC-C7J.mjs";
|
|
4
|
+
import { z as z$1 } from "zod";
|
|
5
|
+
//#region src/validation/computed/formula.d.ts
|
|
6
6
|
/**
|
|
7
7
|
* Create a Zod schema for a formula attribute.
|
|
8
8
|
* Formula attributes are read-only (computed at runtime).
|
|
9
9
|
* They accept any value during validation but are ignored during record creation/update.
|
|
10
10
|
*/
|
|
11
|
-
declare function createFormulaValidator(_attr: FormulaAttribute, _messages?: ValidationMessages): z.ZodUnknown;
|
|
12
|
-
|
|
13
|
-
export { createFormulaValidator };
|
|
11
|
+
export declare function createFormulaValidator(_attr: FormulaAttribute, _messages?: ValidationMessages): z$1.ZodUnknown;
|
|
12
|
+
//#endregion
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { F as FormulaAttribute } from '../../attributes-Cv6IP8-a.js';
|
|
3
|
-
import { V as ValidationMessages } from '../../types-C5Bqalr9.js';
|
|
4
|
-
import '@stndrds/constants';
|
|
5
1
|
|
|
2
|
+
import { ct as FormulaAttribute } from "../../exceptions-DGCzCc9t.js";
|
|
3
|
+
import { r as ValidationMessages } from "../../index-B7HmBsUS.js";
|
|
4
|
+
import { z as z$1 } from "zod";
|
|
5
|
+
//#region src/validation/computed/formula.d.ts
|
|
6
6
|
/**
|
|
7
7
|
* Create a Zod schema for a formula attribute.
|
|
8
8
|
* Formula attributes are read-only (computed at runtime).
|
|
9
9
|
* They accept any value during validation but are ignored during record creation/update.
|
|
10
10
|
*/
|
|
11
|
-
declare function createFormulaValidator(_attr: FormulaAttribute, _messages?: ValidationMessages): z.ZodUnknown;
|
|
12
|
-
|
|
13
|
-
export { createFormulaValidator };
|
|
11
|
+
export declare function createFormulaValidator(_attr: FormulaAttribute, _messages?: ValidationMessages): z$1.ZodUnknown;
|
|
12
|
+
//#endregion
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
/*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
|
|
2
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../core-397tQy5q.js");let t=require("zod");function createFormulaValidator(n,r=e.n){return t.z.unknown()}exports.createFormulaValidator=createFormulaValidator;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
/*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
|
|
2
|
+
import{n as e}from"../../core-BLHhNykL.mjs";import{z as t}from"zod";function createFormulaValidator(n,r=e){return t.unknown()}export{createFormulaValidator};
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { f as RollupAttribute } from '../../attributes-Cv6IP8-a.mjs';
|
|
3
|
-
import { V as ValidationMessages } from '../../types-CILLmEj-.mjs';
|
|
4
|
-
import '@stndrds/constants';
|
|
5
1
|
|
|
2
|
+
import { Tt as RollupAttribute } from "../../exceptions-DGCzCc9t.mjs";
|
|
3
|
+
import { r as ValidationMessages } from "../../index-XtmC-C7J.mjs";
|
|
4
|
+
import { z as z$1 } from "zod";
|
|
5
|
+
//#region src/validation/computed/rollup.d.ts
|
|
6
6
|
/**
|
|
7
7
|
* Create a Zod schema for a rollup attribute.
|
|
8
8
|
* Rollup attributes are read-only (computed from related records).
|
|
9
9
|
* They accept any value during validation but are ignored during record creation/update.
|
|
10
10
|
*/
|
|
11
|
-
declare function createRollupValidator(_attr: RollupAttribute, _messages?: ValidationMessages): z.ZodUnknown;
|
|
12
|
-
|
|
13
|
-
export { createRollupValidator };
|
|
11
|
+
export declare function createRollupValidator(_attr: RollupAttribute, _messages?: ValidationMessages): z$1.ZodUnknown;
|
|
12
|
+
//#endregion
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { f as RollupAttribute } from '../../attributes-Cv6IP8-a.js';
|
|
3
|
-
import { V as ValidationMessages } from '../../types-C5Bqalr9.js';
|
|
4
|
-
import '@stndrds/constants';
|
|
5
1
|
|
|
2
|
+
import { Tt as RollupAttribute } from "../../exceptions-DGCzCc9t.js";
|
|
3
|
+
import { r as ValidationMessages } from "../../index-B7HmBsUS.js";
|
|
4
|
+
import { z as z$1 } from "zod";
|
|
5
|
+
//#region src/validation/computed/rollup.d.ts
|
|
6
6
|
/**
|
|
7
7
|
* Create a Zod schema for a rollup attribute.
|
|
8
8
|
* Rollup attributes are read-only (computed from related records).
|
|
9
9
|
* They accept any value during validation but are ignored during record creation/update.
|
|
10
10
|
*/
|
|
11
|
-
declare function createRollupValidator(_attr: RollupAttribute, _messages?: ValidationMessages): z.ZodUnknown;
|
|
12
|
-
|
|
13
|
-
export { createRollupValidator };
|
|
11
|
+
export declare function createRollupValidator(_attr: RollupAttribute, _messages?: ValidationMessages): z$1.ZodUnknown;
|
|
12
|
+
//#endregion
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
/*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
|
|
2
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../core-397tQy5q.js");let t=require("zod");function createRollupValidator(n,r=e.n){return t.z.unknown()}exports.createRollupValidator=createRollupValidator;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
/*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
|
|
2
|
+
import{n as e}from"../../core-BLHhNykL.mjs";import{z as t}from"zod";function createRollupValidator(n,r=e){return t.unknown()}export{createRollupValidator};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
import '@stndrds/constants';
|
|
1
|
+
|
|
2
|
+
import { _ as statusOptionWriteSchema, a as getAttributeConfigWriteSchema, c as parseAttributeConfigForCreate, d as propertyAttributeWireSchema, f as propertySchemaSchema, g as statusGroupSchema, h as selectOptionWriteSchema, i as getAttributeConfigSchema, l as parseAttributeConfigForUpdate, m as refuseForeignKeys, n as WIRE_OMITTED_CONFIG_KEYS, o as multiselectOptionWriteSchema, p as propertySchemaWireSchema, r as attributeConfigSchemas, s as parseAttributeConfig, t as SIMPLE_PROPERTY_TYPES, u as propertyAttributeSchema } from "../../index-C8M7Amy9.mjs";
|
|
3
|
+
export { SIMPLE_PROPERTY_TYPES, WIRE_OMITTED_CONFIG_KEYS, attributeConfigSchemas, getAttributeConfigSchema, getAttributeConfigWriteSchema, multiselectOptionWriteSchema, parseAttributeConfig, parseAttributeConfigForCreate, parseAttributeConfigForUpdate, propertyAttributeSchema, propertyAttributeWireSchema, propertySchemaSchema, propertySchemaWireSchema, refuseForeignKeys, selectOptionWriteSchema, statusGroupSchema, statusOptionWriteSchema };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
import '@stndrds/constants';
|
|
1
|
+
|
|
2
|
+
import { _ as statusOptionWriteSchema, a as getAttributeConfigWriteSchema, c as parseAttributeConfigForCreate, d as propertyAttributeWireSchema, f as propertySchemaSchema, g as statusGroupSchema, h as selectOptionWriteSchema, i as getAttributeConfigSchema, l as parseAttributeConfigForUpdate, m as refuseForeignKeys, n as WIRE_OMITTED_CONFIG_KEYS, o as multiselectOptionWriteSchema, p as propertySchemaWireSchema, r as attributeConfigSchemas, s as parseAttributeConfig, t as SIMPLE_PROPERTY_TYPES, u as propertyAttributeSchema } from "../../index-Uwy7CTKo.js";
|
|
3
|
+
export { SIMPLE_PROPERTY_TYPES, WIRE_OMITTED_CONFIG_KEYS, attributeConfigSchemas, getAttributeConfigSchema, getAttributeConfigWriteSchema, multiselectOptionWriteSchema, parseAttributeConfig, parseAttributeConfigForCreate, parseAttributeConfigForUpdate, propertyAttributeSchema, propertyAttributeWireSchema, propertySchemaSchema, propertySchemaWireSchema, refuseForeignKeys, selectOptionWriteSchema, statusGroupSchema, statusOptionWriteSchema };
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
/*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
|
|
2
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../config-BQJJHopR.js");exports.SIMPLE_PROPERTY_TYPES=e.t,exports.WIRE_OMITTED_CONFIG_KEYS=e.n,exports.attributeConfigSchemas=e.r,exports.getAttributeConfigSchema=e.i,exports.getAttributeConfigWriteSchema=e.a,exports.multiselectOptionWriteSchema=e.o,exports.parseAttributeConfig=e.s,exports.parseAttributeConfigForCreate=e.c,exports.parseAttributeConfigForUpdate=e.l,exports.propertyAttributeSchema=e.u,exports.propertyAttributeWireSchema=e.d,exports.propertySchemaSchema=e.f,exports.propertySchemaWireSchema=e.p,exports.refuseForeignKeys=e.m,exports.selectOptionWriteSchema=e.h,exports.statusGroupSchema=e.g,exports.statusOptionWriteSchema=e._;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
/*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
|
|
2
|
+
import{_ as e,a as t,c as n,d as r,f as i,g as a,h as o,i as s,l as c,m as l,n as u,o as d,p as f,r as p,s as m,t as h,u as g}from"../../config-_sOeudpS.mjs";export{h as SIMPLE_PROPERTY_TYPES,u as WIRE_OMITTED_CONFIG_KEYS,p as attributeConfigSchemas,s as getAttributeConfigSchema,t as getAttributeConfigWriteSchema,d as multiselectOptionWriteSchema,m as parseAttributeConfig,n as parseAttributeConfigForCreate,c as parseAttributeConfigForUpdate,g as propertyAttributeSchema,r as propertyAttributeWireSchema,i as propertySchemaSchema,f as propertySchemaWireSchema,l as refuseForeignKeys,o as selectOptionWriteSchema,a as statusGroupSchema,e as statusOptionWriteSchema};
|
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
import { V as ValidationMessages } from '../../types-CILLmEj-.mjs';
|
|
2
|
-
export { a as ValidationResult } from '../../types-CILLmEj-.mjs';
|
|
3
|
-
import { z } from 'zod';
|
|
4
|
-
import '../../attributes-Cv6IP8-a.mjs';
|
|
5
|
-
import '@stndrds/constants';
|
|
6
1
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Format Zod validation errors into a consistent structure.
|
|
11
|
-
* This eliminates code duplication across multiple validation functions.
|
|
12
|
-
*/
|
|
13
|
-
declare function formatZodErrors(error: z.ZodError): Array<{
|
|
14
|
-
path: string[];
|
|
15
|
-
message: string;
|
|
16
|
-
}>;
|
|
17
|
-
|
|
18
|
-
export { DEFAULT_VALIDATION_MESSAGES, ValidationMessages, formatZodErrors };
|
|
2
|
+
import { i as ValidationResult, n as DEFAULT_VALIDATION_MESSAGES, r as ValidationMessages, t as formatZodErrors } from "../../index-XtmC-C7J.mjs";
|
|
3
|
+
export { DEFAULT_VALIDATION_MESSAGES, type ValidationMessages, type ValidationResult, formatZodErrors };
|
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
import { V as ValidationMessages } from '../../types-C5Bqalr9.js';
|
|
2
|
-
export { a as ValidationResult } from '../../types-C5Bqalr9.js';
|
|
3
|
-
import { z } from 'zod';
|
|
4
|
-
import '../../attributes-Cv6IP8-a.js';
|
|
5
|
-
import '@stndrds/constants';
|
|
6
1
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Format Zod validation errors into a consistent structure.
|
|
11
|
-
* This eliminates code duplication across multiple validation functions.
|
|
12
|
-
*/
|
|
13
|
-
declare function formatZodErrors(error: z.ZodError): Array<{
|
|
14
|
-
path: string[];
|
|
15
|
-
message: string;
|
|
16
|
-
}>;
|
|
17
|
-
|
|
18
|
-
export { DEFAULT_VALIDATION_MESSAGES, ValidationMessages, formatZodErrors };
|
|
2
|
+
import { i as ValidationResult, n as DEFAULT_VALIDATION_MESSAGES, r as ValidationMessages, t as formatZodErrors } from "../../index-B7HmBsUS.js";
|
|
3
|
+
export { DEFAULT_VALIDATION_MESSAGES, type ValidationMessages, type ValidationResult, formatZodErrors };
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
/*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
|
|
2
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../core-397tQy5q.js");exports.DEFAULT_VALIDATION_MESSAGES=e.n,exports.formatZodErrors=e.t;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
/*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
|
|
2
|
+
import{n as e,t}from"../../core-BLHhNykL.mjs";export{e as DEFAULT_VALIDATION_MESSAGES,t as formatZodErrors};
|
|
@@ -1,30 +1,3 @@
|
|
|
1
|
-
import { O as ObjectDefinition } from '../../helpers-lqSDjgQ1.mjs';
|
|
2
|
-
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-lqSDjgQ1.mjs';
|
|
3
|
-
import { z } from 'zod';
|
|
4
|
-
import '../../attributes-Cv6IP8-a.mjs';
|
|
5
|
-
import '@stndrds/constants';
|
|
6
|
-
import '../../types-CILLmEj-.mjs';
|
|
7
1
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
*
|
|
11
|
-
* Uses passthrough mode to allow computed fields (formula, rollup) that may be
|
|
12
|
-
* present in record data but are not part of the mutable schema.
|
|
13
|
-
*
|
|
14
|
-
* Result is cached per ObjectDefinition instance — safe because ObjectDefinitions
|
|
15
|
-
* are stable after module load and never mutated at runtime.
|
|
16
|
-
*/
|
|
17
|
-
declare function createObjectValidator(objectDef: ObjectDefinition): z.ZodType<Record<string, unknown>>;
|
|
18
|
-
/**
|
|
19
|
-
* Create a Zod schema for draft validation.
|
|
20
|
-
* All attributes become optional, but provided values are still validated.
|
|
21
|
-
*
|
|
22
|
-
* Uses passthrough mode to allow computed fields (formula, rollup) that may be
|
|
23
|
-
* present in record data but are not part of the mutable schema.
|
|
24
|
-
*
|
|
25
|
-
* Result is cached per ObjectDefinition instance — safe because ObjectDefinitions
|
|
26
|
-
* are stable after module load and never mutated at runtime.
|
|
27
|
-
*/
|
|
28
|
-
declare function createDraftValidator(objectDef: ObjectDefinition): z.ZodType<Record<string, unknown>>;
|
|
29
|
-
|
|
30
|
-
export { createDraftValidator, createObjectValidator };
|
|
2
|
+
import { a as validateDraft, c as validateObjectOrThrow, d as createAttributeValidator, f as createFormAttributeValidator, i as validateAttribute, l as createDraftValidator, n as isRecordComplete, o as validateDraftOrThrow, r as rejectUnknownAttributesOrThrow, s as validateObject, t as getMissingRequiredAttributes, u as createObjectValidator } from "../../index-BoUwfrDH.mjs";
|
|
3
|
+
export { createAttributeValidator, createDraftValidator, createFormAttributeValidator, createObjectValidator, getMissingRequiredAttributes, isRecordComplete, rejectUnknownAttributesOrThrow, validateAttribute, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow };
|
|
@@ -1,30 +1,3 @@
|
|
|
1
|
-
import { O as ObjectDefinition } from '../../helpers-qMMFwD1I.js';
|
|
2
|
-
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-qMMFwD1I.js';
|
|
3
|
-
import { z } from 'zod';
|
|
4
|
-
import '../../attributes-Cv6IP8-a.js';
|
|
5
|
-
import '@stndrds/constants';
|
|
6
|
-
import '../../types-C5Bqalr9.js';
|
|
7
1
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
*
|
|
11
|
-
* Uses passthrough mode to allow computed fields (formula, rollup) that may be
|
|
12
|
-
* present in record data but are not part of the mutable schema.
|
|
13
|
-
*
|
|
14
|
-
* Result is cached per ObjectDefinition instance — safe because ObjectDefinitions
|
|
15
|
-
* are stable after module load and never mutated at runtime.
|
|
16
|
-
*/
|
|
17
|
-
declare function createObjectValidator(objectDef: ObjectDefinition): z.ZodType<Record<string, unknown>>;
|
|
18
|
-
/**
|
|
19
|
-
* Create a Zod schema for draft validation.
|
|
20
|
-
* All attributes become optional, but provided values are still validated.
|
|
21
|
-
*
|
|
22
|
-
* Uses passthrough mode to allow computed fields (formula, rollup) that may be
|
|
23
|
-
* present in record data but are not part of the mutable schema.
|
|
24
|
-
*
|
|
25
|
-
* Result is cached per ObjectDefinition instance — safe because ObjectDefinitions
|
|
26
|
-
* are stable after module load and never mutated at runtime.
|
|
27
|
-
*/
|
|
28
|
-
declare function createDraftValidator(objectDef: ObjectDefinition): z.ZodType<Record<string, unknown>>;
|
|
29
|
-
|
|
30
|
-
export { createDraftValidator, createObjectValidator };
|
|
2
|
+
import { a as validateDraft, c as validateObjectOrThrow, d as createAttributeValidator, f as createFormAttributeValidator, i as validateAttribute, l as createDraftValidator, n as isRecordComplete, o as validateDraftOrThrow, r as rejectUnknownAttributesOrThrow, s as validateObject, t as getMissingRequiredAttributes, u as createObjectValidator } from "../../index-DqwNrDSp.js";
|
|
3
|
+
export { createAttributeValidator, createDraftValidator, createFormAttributeValidator, createObjectValidator, getMissingRequiredAttributes, isRecordComplete, rejectUnknownAttributesOrThrow, validateAttribute, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow };
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
/*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
|
|
2
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../object-DGu0m2Y1.js");exports.createAttributeValidator=e.d,exports.createDraftValidator=e.l,exports.createFormAttributeValidator=e.f,exports.createObjectValidator=e.u,exports.getMissingRequiredAttributes=e.t,exports.isRecordComplete=e.n,exports.rejectUnknownAttributesOrThrow=e.r,exports.validateAttribute=e.i,exports.validateDraft=e.a,exports.validateDraftOrThrow=e.o,exports.validateObject=e.s,exports.validateObjectOrThrow=e.c;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
/*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
|
|
2
|
+
import{a as e,c as t,d as n,f as r,i,l as a,n as o,o as s,r as c,s as l,t as u,u as d}from"../../object-DSRy1coV.mjs";export{n as createAttributeValidator,a as createDraftValidator,r as createFormAttributeValidator,d as createObjectValidator,u as getMissingRequiredAttributes,o as isRecordComplete,c as rejectUnknownAttributesOrThrow,i as validateAttribute,e as validateDraft,s as validateDraftOrThrow,l as validateObject,t as validateObjectOrThrow};
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { C as CheckboxAttribute } from '../../attributes-Cv6IP8-a.mjs';
|
|
3
|
-
import { V as ValidationMessages } from '../../types-CILLmEj-.mjs';
|
|
4
|
-
import '@stndrds/constants';
|
|
5
1
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
*/
|
|
9
|
-
declare function createCheckboxValidator(_attr: CheckboxAttribute, _messages?: ValidationMessages): z.ZodBoolean;
|
|
10
|
-
|
|
11
|
-
export { createCheckboxValidator };
|
|
2
|
+
import { t as createCheckboxValidator } from "../../checkbox-preO352q.mjs";
|
|
3
|
+
export { createCheckboxValidator };
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { C as CheckboxAttribute } from '../../attributes-Cv6IP8-a.js';
|
|
3
|
-
import { V as ValidationMessages } from '../../types-C5Bqalr9.js';
|
|
4
|
-
import '@stndrds/constants';
|
|
5
1
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
*/
|
|
9
|
-
declare function createCheckboxValidator(_attr: CheckboxAttribute, _messages?: ValidationMessages): z.ZodBoolean;
|
|
10
|
-
|
|
11
|
-
export { createCheckboxValidator };
|
|
2
|
+
import { t as createCheckboxValidator } from "../../checkbox-CjnTd8DE.js";
|
|
3
|
+
export { createCheckboxValidator };
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
/*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
|
|
2
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../core-397tQy5q.js");let t=require("zod");function createCheckboxValidator(n,r=e.n){return t.z.boolean()}exports.createCheckboxValidator=createCheckboxValidator;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
/*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
|
|
2
|
+
import{n as e}from"../../core-BLHhNykL.mjs";import{z as t}from"zod";function createCheckboxValidator(n,r=e){return t.boolean()}export{createCheckboxValidator};
|
|
@@ -1,24 +1,3 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { D as DateAttribute } from '../../attributes-Cv6IP8-a.mjs';
|
|
3
|
-
import { V as ValidationMessages } from '../../types-CILLmEj-.mjs';
|
|
4
|
-
import '@stndrds/constants';
|
|
5
1
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
*
|
|
9
|
-
* Non-range attributes validate a single coercible date bounded by
|
|
10
|
-
* `minDate`/`maxDate`. Range attributes (`.endDate()`) validate a
|
|
11
|
-
* `{ start, end }` object — `end` may be null, and when present must be
|
|
12
|
-
* on or after `start`. Plain strings normalize to `{ start, end: null }`
|
|
13
|
-
* (mirroring `normalizeDateValue`) so legacy values written before
|
|
14
|
-
* `endDate` was enabled keep validating.
|
|
15
|
-
*
|
|
16
|
-
* Coercion to `Date` only backs correctness/bounds checks against a
|
|
17
|
-
* throwaway copy — the schema never mutates the value itself, so
|
|
18
|
-
* `result.data` is always the original input (ISO string, or `{ start, end }`
|
|
19
|
-
* of ISO strings), never a coerced `Date`. This keeps the stored shape intact
|
|
20
|
-
* for callers that persist `validator.safeParse(value).data`.
|
|
21
|
-
*/
|
|
22
|
-
declare function createDateValidator(attr: DateAttribute, messages?: ValidationMessages): z.ZodTypeAny;
|
|
23
|
-
|
|
24
|
-
export { createDateValidator };
|
|
2
|
+
import { t as createDateValidator } from "../../date-BL3UHIXs.mjs";
|
|
3
|
+
export { createDateValidator };
|
|
@@ -1,24 +1,3 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { D as DateAttribute } from '../../attributes-Cv6IP8-a.js';
|
|
3
|
-
import { V as ValidationMessages } from '../../types-C5Bqalr9.js';
|
|
4
|
-
import '@stndrds/constants';
|
|
5
1
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
*
|
|
9
|
-
* Non-range attributes validate a single coercible date bounded by
|
|
10
|
-
* `minDate`/`maxDate`. Range attributes (`.endDate()`) validate a
|
|
11
|
-
* `{ start, end }` object — `end` may be null, and when present must be
|
|
12
|
-
* on or after `start`. Plain strings normalize to `{ start, end: null }`
|
|
13
|
-
* (mirroring `normalizeDateValue`) so legacy values written before
|
|
14
|
-
* `endDate` was enabled keep validating.
|
|
15
|
-
*
|
|
16
|
-
* Coercion to `Date` only backs correctness/bounds checks against a
|
|
17
|
-
* throwaway copy — the schema never mutates the value itself, so
|
|
18
|
-
* `result.data` is always the original input (ISO string, or `{ start, end }`
|
|
19
|
-
* of ISO strings), never a coerced `Date`. This keeps the stored shape intact
|
|
20
|
-
* for callers that persist `validator.safeParse(value).data`.
|
|
21
|
-
*/
|
|
22
|
-
declare function createDateValidator(attr: DateAttribute, messages?: ValidationMessages): z.ZodTypeAny;
|
|
23
|
-
|
|
24
|
-
export { createDateValidator };
|
|
2
|
+
import { t as createDateValidator } from "../../date-CxwHkbid.js";
|
|
3
|
+
export { createDateValidator };
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
/*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
|
|
2
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../core-397tQy5q.js");let t=require("zod");function resolveBound(e){if(!e)return null;let t=e===`today`?new Date().toISOString().slice(0,10):e,n=new Date(t);return Number.isNaN(n.getTime())?null:n}function createDateValidator(n,r=e.n){let i=r.invalidDate(n),a=resolveBound(n.minDate),o=resolveBound(n.maxDate),s=t.z.any().superRefine((e,t)=>{let n=new Date(e);if(Number.isNaN(n.getTime())){t.addIssue({code:`custom`,message:i});return}a&&n<a&&t.addIssue({code:`custom`,message:i}),o&&n>o&&t.addIssue({code:`custom`,message:i})});if(!n.endDate)return s;let c=t.z.object({start:s,end:s.nullable()}).superRefine((e,t)=>{if(e.end===null)return;let n=new Date(e.start),r=new Date(e.end);!(Number.isNaN(n.getTime())||Number.isNaN(r.getTime()))&&r<n&&t.addIssue({code:`custom`,message:i,path:[`end`]})});return t.z.preprocess(e=>typeof e==`string`?{start:e,end:null}:e,c)}exports.createDateValidator=createDateValidator;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
/*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
|
|
2
|
+
import{n as e}from"../../core-BLHhNykL.mjs";import{z as t}from"zod";function resolveBound(e){if(!e)return null;let t=e===`today`?new Date().toISOString().slice(0,10):e,n=new Date(t);return Number.isNaN(n.getTime())?null:n}function createDateValidator(n,r=e){let i=r.invalidDate(n),a=resolveBound(n.minDate),o=resolveBound(n.maxDate),s=t.any().superRefine((e,t)=>{let n=new Date(e);if(Number.isNaN(n.getTime())){t.addIssue({code:`custom`,message:i});return}a&&n<a&&t.addIssue({code:`custom`,message:i}),o&&n>o&&t.addIssue({code:`custom`,message:i})});if(!n.endDate)return s;let c=t.object({start:s,end:s.nullable()}).superRefine((e,t)=>{if(e.end===null)return;let n=new Date(e.start),r=new Date(e.end);!(Number.isNaN(n.getTime())||Number.isNaN(r.getTime()))&&r<n&&t.addIssue({code:`custom`,message:i,path:[`end`]})});return t.preprocess(e=>typeof e==`string`?{start:e,end:null}:e,c)}export{createDateValidator};
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { N as NumberAttribute } from '../../attributes-Cv6IP8-a.mjs';
|
|
3
|
-
import { V as ValidationMessages } from '../../types-CILLmEj-.mjs';
|
|
4
|
-
import '@stndrds/constants';
|
|
5
1
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
*/
|
|
9
|
-
declare function createNumberValidator(attr: NumberAttribute, messages?: ValidationMessages): z.ZodNumber;
|
|
10
|
-
|
|
11
|
-
export { createNumberValidator };
|
|
2
|
+
import { t as createNumberValidator } from "../../number-Ddi_YYfm.mjs";
|
|
3
|
+
export { createNumberValidator };
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { N as NumberAttribute } from '../../attributes-Cv6IP8-a.js';
|
|
3
|
-
import { V as ValidationMessages } from '../../types-C5Bqalr9.js';
|
|
4
|
-
import '@stndrds/constants';
|
|
5
1
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
*/
|
|
9
|
-
declare function createNumberValidator(attr: NumberAttribute, messages?: ValidationMessages): z.ZodNumber;
|
|
10
|
-
|
|
11
|
-
export { createNumberValidator };
|
|
2
|
+
import { t as createNumberValidator } from "../../number-GmD5PM5s.js";
|
|
3
|
+
export { createNumberValidator };
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
/*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
|
|
2
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../core-397tQy5q.js");let t=require("zod");function createNumberValidator(n,r=e.n){let i=t.z.number();return n.min!==void 0&&(i=i.min(n.min,r.minValue(n,n.min))),n.max!==void 0&&(i=i.max(n.max,r.maxValue(n,n.max))),n.renderAs===`rating`&&(i=i.min(n.min??0),i=i.max(n.max??5)),n.unit===`percentage`&&(i=i.min(n.min??0).max(n.max??100)),n.unit===`integer`&&(i=i.int(r.mustBeInteger(n))),i}exports.createNumberValidator=createNumberValidator;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
/*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
|
|
2
|
+
import{n as e}from"../../core-BLHhNykL.mjs";import{z as t}from"zod";function createNumberValidator(n,r=e){let i=t.number();return n.min!==void 0&&(i=i.min(n.min,r.minValue(n,n.min))),n.max!==void 0&&(i=i.max(n.max,r.maxValue(n,n.max))),n.renderAs===`rating`&&(i=i.min(n.min??0),i=i.max(n.max??5)),n.unit===`percentage`&&(i=i.min(n.min??0).max(n.max??100)),n.unit===`integer`&&(i=i.int(r.mustBeInteger(n))),i}export{createNumberValidator};
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { T as TextAttribute } from '../../attributes-Cv6IP8-a.mjs';
|
|
3
|
-
import { V as ValidationMessages } from '../../types-CILLmEj-.mjs';
|
|
4
|
-
import '@stndrds/constants';
|
|
5
1
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
*/
|
|
9
|
-
declare function createTextValidator(attr: TextAttribute, messages?: ValidationMessages): z.ZodString;
|
|
10
|
-
|
|
11
|
-
export { createTextValidator };
|
|
2
|
+
import { t as createTextValidator } from "../../text-CxwF5K4k.mjs";
|
|
3
|
+
export { createTextValidator };
|