@nyig/models 0.4.7 → 0.4.9
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/index.js +4 -4
- package/index.mjs +4 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -714,9 +714,9 @@ var zCourseTable = import_zod24.z.object({
|
|
|
714
714
|
// src/interface/public/imageDef.ts
|
|
715
715
|
var import_zod25 = require("zod");
|
|
716
716
|
var zImageDef = import_zod25.z.object({
|
|
717
|
-
url: import_zod25.z.string(),
|
|
718
|
-
height: import_zod25.z.number(),
|
|
719
|
-
width: import_zod25.z.number()
|
|
717
|
+
url: import_zod25.z.string().url(),
|
|
718
|
+
height: import_zod25.z.coerce.number().int(),
|
|
719
|
+
width: import_zod25.z.coerce.number().int()
|
|
720
720
|
});
|
|
721
721
|
|
|
722
722
|
// src/interface/reporting/reportTicket.ts
|
|
@@ -771,7 +771,7 @@ var zBEventTicket = import_zod27.z.object({
|
|
|
771
771
|
/**
|
|
772
772
|
* @optional max limit is 1 unless maxPerOrder is specified
|
|
773
773
|
*/
|
|
774
|
-
maxPerOrder: import_zod27.z.number().int().min(2).optional()
|
|
774
|
+
maxPerOrder: import_zod27.z.coerce.number().int().min(2).optional()
|
|
775
775
|
});
|
|
776
776
|
var zEventTicket = addAutoProps(zBEventTicket);
|
|
777
777
|
|
package/index.mjs
CHANGED
|
@@ -607,9 +607,9 @@ var zCourseTable = z24.object({
|
|
|
607
607
|
// src/interface/public/imageDef.ts
|
|
608
608
|
import { z as z25 } from "zod";
|
|
609
609
|
var zImageDef = z25.object({
|
|
610
|
-
url: z25.string(),
|
|
611
|
-
height: z25.number(),
|
|
612
|
-
width: z25.number()
|
|
610
|
+
url: z25.string().url(),
|
|
611
|
+
height: z25.coerce.number().int(),
|
|
612
|
+
width: z25.coerce.number().int()
|
|
613
613
|
});
|
|
614
614
|
|
|
615
615
|
// src/interface/reporting/reportTicket.ts
|
|
@@ -664,7 +664,7 @@ var zBEventTicket = z27.object({
|
|
|
664
664
|
/**
|
|
665
665
|
* @optional max limit is 1 unless maxPerOrder is specified
|
|
666
666
|
*/
|
|
667
|
-
maxPerOrder: z27.number().int().min(2).optional()
|
|
667
|
+
maxPerOrder: z27.coerce.number().int().min(2).optional()
|
|
668
668
|
});
|
|
669
669
|
var zEventTicket = addAutoProps(zBEventTicket);
|
|
670
670
|
|