waltronics-types 1.0.20 → 1.0.22

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.
@@ -1,5 +1,5 @@
1
1
  import { AppointmentLabels } from "./Label";
2
- export type AppointmentEntry = {
2
+ export type AppointmentRow = {
3
3
  AppointmentID: string;
4
4
  CustomerID: string;
5
5
  FName: string;
@@ -21,7 +21,7 @@ export type AppointmentEntry = {
21
21
  LicensePlate: string;
22
22
  Labels: AppointmentLabels;
23
23
  };
24
- export type AppointmentList = {
24
+ export type AppointmentsTable = {
25
25
  Count: number;
26
- Appointments: Array<AppointmentEntry>;
26
+ Appointments: Array<AppointmentRow>;
27
27
  };
package/dist/Label.d.ts CHANGED
@@ -2,7 +2,7 @@ import { ID, UUID } from "./Types";
2
2
  export type Label = {
3
3
  LabelID: ID;
4
4
  Label: string;
5
- Value: boolean | null;
5
+ Value: number | null;
6
6
  AppointmentID: UUID;
7
7
  };
8
8
  export type AppointmentLabels = {
package/dist/Note.d.ts CHANGED
@@ -11,7 +11,7 @@ export type Note = {
11
11
  AppointmentID: UUID;
12
12
  Head: string;
13
13
  Body: string;
14
- ShowCustomer: boolean;
14
+ ShowCustomer: number;
15
15
  CreationDate: Date;
16
16
  UpdationDate: Date;
17
17
  Sharees: Array<{
@@ -21,7 +21,7 @@ export declare const isPhone: z.ZodString;
21
21
  export declare const isDate: z.ZodString;
22
22
  export declare const isMoney: z.ZodCoercedNumber<unknown>;
23
23
  export declare const isVIN: z.ZodString;
24
- export declare const isID: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCoercedNumber<unknown>]>;
24
+ export declare const isID: z.ZodCoercedNumber<unknown>;
25
25
  export declare const isCode: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
26
26
  export declare const isMessage: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
27
27
  export declare const isHead: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
@@ -30,8 +30,8 @@ exports.isName = zod_1.z.string()
30
30
  .max(50, "Must enter a name less than 50 characters.")
31
31
  .regex(/^[A-Za-z\s'-]*$/, "Must enter a name without symbols.")
32
32
  .transform(s => s
33
- .replace(/\s+/g, ' ')
34
- .split(/\s/)
33
+ .replace(/[\s-]+/g, ' ')
34
+ .split(/[\s-]/)
35
35
  .filter(w => w.length > 0)
36
36
  .map(w => w[0].toUpperCase() + w.slice(1).toLowerCase())
37
37
  .join(" "))
@@ -56,10 +56,7 @@ exports.isMoney = zod_1.z
56
56
  exports.isVIN = zod_1.z.string()
57
57
  .trim()
58
58
  .regex(exports.VIN, "Must enter a valid VIN.");
59
- exports.isID = zod_1.z.union([
60
- zod_1.z.literal(""),
61
- zod_1.z.coerce.number().int().min(0, "Must provide a valid ID.")
62
- ]);
59
+ exports.isID = zod_1.z.coerce.number().int().min(0, "Must provide a valid ID.");
63
60
  exports.isCode = (0, exports.hasLength)({
64
61
  min: 1,
65
62
  max: 100,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waltronics-types",
3
- "version": "1.0.20",
3
+ "version": "1.0.22",
4
4
  "description": "Contains the types used in the Waltronics application.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",