waltronics-types 1.0.17 → 1.0.18

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.
@@ -11,7 +11,8 @@ export declare const isIntegerArray: z.ZodArray<z.ZodCoercedNumber<unknown>>;
11
11
  export declare const isUUID: z.ZodUUID;
12
12
  export declare const isUUIDArray: z.ZodArray<z.ZodUUID>;
13
13
  export declare const isBit: z.ZodEnum<{
14
- "0, 1": "0, 1";
14
+ 0: "0";
15
+ 1: "1";
15
16
  }>;
16
17
  export declare const isName: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
17
18
  export declare const isEmail: z.ZodEmail;
@@ -22,7 +22,7 @@ exports.isInteger = zod_1.z.coerce.number().int();
22
22
  exports.isIntegerArray = zod_1.z.array(zod_1.z.coerce.number().int());
23
23
  exports.isUUID = zod_1.z.uuid("Must enter a valid ID.");
24
24
  exports.isUUIDArray = zod_1.z.array(zod_1.z.uuid());
25
- exports.isBit = zod_1.z.enum(["0, 1"], "Must enter a '0' or '1'.");
25
+ exports.isBit = zod_1.z.enum(["0", "1"], "Must enter a '0' or '1'.");
26
26
  exports.isName = zod_1.z.string()
27
27
  .trim()
28
28
  .min(2, "Must enter a name.")
@@ -57,7 +57,7 @@ exports.isVIN = zod_1.z.string()
57
57
  .regex(exports.VIN, "Must enter a valid VIN.");
58
58
  exports.isID = zod_1.z.union([
59
59
  zod_1.z.literal(""),
60
- zod_1.z.coerce.number().int()
60
+ zod_1.z.coerce.number().int().min(0, "Must provide a valid ID.")
61
61
  ]);
62
62
  exports.isCode = (0, exports.hasLength)({
63
63
  min: 1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waltronics-types",
3
- "version": "1.0.17",
3
+ "version": "1.0.18",
4
4
  "description": "Contains the types used in the Waltronics application.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",