@meerkapp/wms-contracts 0.2.0-beta.12 → 0.2.0-beta.13

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/index.d.cts CHANGED
@@ -21578,6 +21578,7 @@ declare const EmployeeSchema: z$1.ZodObject<{
21578
21578
  warehouseId: z$1.ZodNullable<z$1.ZodNumber>;
21579
21579
  isActive: z$1.ZodBoolean;
21580
21580
  } & {
21581
+ phone: z$1.ZodNullable<z$1.ZodString>;
21581
21582
  lastSeen: z$1.ZodNullable<z$1.ZodString>;
21582
21583
  updatedAt: z$1.ZodString;
21583
21584
  roleAssignments: z$1.ZodArray<z$1.ZodObject<{
@@ -21630,6 +21631,7 @@ declare const EmployeeSchema: z$1.ZodObject<{
21630
21631
  color: string | null;
21631
21632
  };
21632
21633
  }[];
21634
+ phone: string | null;
21633
21635
  }, {
21634
21636
  id: string;
21635
21637
  email: string;
@@ -21647,6 +21649,7 @@ declare const EmployeeSchema: z$1.ZodObject<{
21647
21649
  color: string | null;
21648
21650
  };
21649
21651
  }[];
21652
+ phone: string | null;
21650
21653
  }>;
21651
21654
  type EmployeeRole = z$1.infer<typeof EmployeeRoleSchema>;
21652
21655
  type Employee = z$1.infer<typeof EmployeeSchema>;
@@ -21655,6 +21658,7 @@ declare const CreateEmployeeSchema: z$1.ZodObject<{
21655
21658
  password: z$1.ZodString;
21656
21659
  firstName: z$1.ZodString;
21657
21660
  lastName: z$1.ZodString;
21661
+ phone: z$1.ZodOptional<z$1.ZodString>;
21658
21662
  warehouseId: z$1.ZodOptional<z$1.ZodNumber>;
21659
21663
  roleIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodNumber, "many">>;
21660
21664
  }, "strip", z$1.ZodTypeAny, {
@@ -21663,6 +21667,7 @@ declare const CreateEmployeeSchema: z$1.ZodObject<{
21663
21667
  firstName: string;
21664
21668
  lastName: string;
21665
21669
  warehouseId?: number | undefined;
21670
+ phone?: string | undefined;
21666
21671
  roleIds?: number[] | undefined;
21667
21672
  }, {
21668
21673
  email: string;
@@ -21670,12 +21675,14 @@ declare const CreateEmployeeSchema: z$1.ZodObject<{
21670
21675
  firstName: string;
21671
21676
  lastName: string;
21672
21677
  warehouseId?: number | undefined;
21678
+ phone?: string | undefined;
21673
21679
  roleIds?: number[] | undefined;
21674
21680
  }>;
21675
21681
  type CreateEmployeeDto = z$1.infer<typeof CreateEmployeeSchema>;
21676
21682
  declare const UpdateEmployeeSchema: z$1.ZodObject<{
21677
21683
  firstName: z$1.ZodOptional<z$1.ZodString>;
21678
21684
  lastName: z$1.ZodOptional<z$1.ZodString>;
21685
+ phone: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
21679
21686
  isActive: z$1.ZodOptional<z$1.ZodBoolean>;
21680
21687
  warehouseId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
21681
21688
  }, "strip", z$1.ZodTypeAny, {
@@ -21683,11 +21690,13 @@ declare const UpdateEmployeeSchema: z$1.ZodObject<{
21683
21690
  lastName?: string | undefined;
21684
21691
  warehouseId?: number | null | undefined;
21685
21692
  isActive?: boolean | undefined;
21693
+ phone?: string | null | undefined;
21686
21694
  }, {
21687
21695
  firstName?: string | undefined;
21688
21696
  lastName?: string | undefined;
21689
21697
  warehouseId?: number | null | undefined;
21690
21698
  isActive?: boolean | undefined;
21699
+ phone?: string | null | undefined;
21691
21700
  }>;
21692
21701
  declare const UpdateOwnEmailSchema: z$1.ZodObject<{
21693
21702
  email: z$1.ZodString;
@@ -21802,15 +21811,15 @@ declare const RoleSchema: z$1.ZodObject<{
21802
21811
  type Role = z$1.infer<typeof RoleSchema>;
21803
21812
  declare const CreateRoleSchema: z$1.ZodObject<{
21804
21813
  name: z$1.ZodString;
21805
- color: z$1.ZodOptional<z$1.ZodString>;
21814
+ color: z$1.ZodString;
21806
21815
  permissionIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodNumber, "many">>;
21807
21816
  }, "strip", z$1.ZodTypeAny, {
21808
21817
  name: string;
21809
- color?: string | undefined;
21818
+ color: string;
21810
21819
  permissionIds?: number[] | undefined;
21811
21820
  }, {
21812
21821
  name: string;
21813
- color?: string | undefined;
21822
+ color: string;
21814
21823
  permissionIds?: number[] | undefined;
21815
21824
  }>;
21816
21825
  declare const UpdateRoleSchema: z$1.ZodObject<{
package/dist/index.d.ts CHANGED
@@ -21578,6 +21578,7 @@ declare const EmployeeSchema: z$1.ZodObject<{
21578
21578
  warehouseId: z$1.ZodNullable<z$1.ZodNumber>;
21579
21579
  isActive: z$1.ZodBoolean;
21580
21580
  } & {
21581
+ phone: z$1.ZodNullable<z$1.ZodString>;
21581
21582
  lastSeen: z$1.ZodNullable<z$1.ZodString>;
21582
21583
  updatedAt: z$1.ZodString;
21583
21584
  roleAssignments: z$1.ZodArray<z$1.ZodObject<{
@@ -21630,6 +21631,7 @@ declare const EmployeeSchema: z$1.ZodObject<{
21630
21631
  color: string | null;
21631
21632
  };
21632
21633
  }[];
21634
+ phone: string | null;
21633
21635
  }, {
21634
21636
  id: string;
21635
21637
  email: string;
@@ -21647,6 +21649,7 @@ declare const EmployeeSchema: z$1.ZodObject<{
21647
21649
  color: string | null;
21648
21650
  };
21649
21651
  }[];
21652
+ phone: string | null;
21650
21653
  }>;
21651
21654
  type EmployeeRole = z$1.infer<typeof EmployeeRoleSchema>;
21652
21655
  type Employee = z$1.infer<typeof EmployeeSchema>;
@@ -21655,6 +21658,7 @@ declare const CreateEmployeeSchema: z$1.ZodObject<{
21655
21658
  password: z$1.ZodString;
21656
21659
  firstName: z$1.ZodString;
21657
21660
  lastName: z$1.ZodString;
21661
+ phone: z$1.ZodOptional<z$1.ZodString>;
21658
21662
  warehouseId: z$1.ZodOptional<z$1.ZodNumber>;
21659
21663
  roleIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodNumber, "many">>;
21660
21664
  }, "strip", z$1.ZodTypeAny, {
@@ -21663,6 +21667,7 @@ declare const CreateEmployeeSchema: z$1.ZodObject<{
21663
21667
  firstName: string;
21664
21668
  lastName: string;
21665
21669
  warehouseId?: number | undefined;
21670
+ phone?: string | undefined;
21666
21671
  roleIds?: number[] | undefined;
21667
21672
  }, {
21668
21673
  email: string;
@@ -21670,12 +21675,14 @@ declare const CreateEmployeeSchema: z$1.ZodObject<{
21670
21675
  firstName: string;
21671
21676
  lastName: string;
21672
21677
  warehouseId?: number | undefined;
21678
+ phone?: string | undefined;
21673
21679
  roleIds?: number[] | undefined;
21674
21680
  }>;
21675
21681
  type CreateEmployeeDto = z$1.infer<typeof CreateEmployeeSchema>;
21676
21682
  declare const UpdateEmployeeSchema: z$1.ZodObject<{
21677
21683
  firstName: z$1.ZodOptional<z$1.ZodString>;
21678
21684
  lastName: z$1.ZodOptional<z$1.ZodString>;
21685
+ phone: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
21679
21686
  isActive: z$1.ZodOptional<z$1.ZodBoolean>;
21680
21687
  warehouseId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
21681
21688
  }, "strip", z$1.ZodTypeAny, {
@@ -21683,11 +21690,13 @@ declare const UpdateEmployeeSchema: z$1.ZodObject<{
21683
21690
  lastName?: string | undefined;
21684
21691
  warehouseId?: number | null | undefined;
21685
21692
  isActive?: boolean | undefined;
21693
+ phone?: string | null | undefined;
21686
21694
  }, {
21687
21695
  firstName?: string | undefined;
21688
21696
  lastName?: string | undefined;
21689
21697
  warehouseId?: number | null | undefined;
21690
21698
  isActive?: boolean | undefined;
21699
+ phone?: string | null | undefined;
21691
21700
  }>;
21692
21701
  declare const UpdateOwnEmailSchema: z$1.ZodObject<{
21693
21702
  email: z$1.ZodString;
@@ -21802,15 +21811,15 @@ declare const RoleSchema: z$1.ZodObject<{
21802
21811
  type Role = z$1.infer<typeof RoleSchema>;
21803
21812
  declare const CreateRoleSchema: z$1.ZodObject<{
21804
21813
  name: z$1.ZodString;
21805
- color: z$1.ZodOptional<z$1.ZodString>;
21814
+ color: z$1.ZodString;
21806
21815
  permissionIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodNumber, "many">>;
21807
21816
  }, "strip", z$1.ZodTypeAny, {
21808
21817
  name: string;
21809
- color?: string | undefined;
21818
+ color: string;
21810
21819
  permissionIds?: number[] | undefined;
21811
21820
  }, {
21812
21821
  name: string;
21813
- color?: string | undefined;
21822
+ color: string;
21814
21823
  permissionIds?: number[] | undefined;
21815
21824
  }>;
21816
21825
  declare const UpdateRoleSchema: z$1.ZodObject<{
package/dist/index.js CHANGED
@@ -10295,6 +10295,7 @@ var CountrySchema = CountryModelSchema.omit({ localities: true }).extend({ updat
10295
10295
  import { z as z880 } from "zod";
10296
10296
  var EmployeeRoleSchema = EmployeeRoleModelSchema.omit({ assignments: true, permissions: true }).extend({ id: z880.number(), updatedAt: z880.string() });
10297
10297
  var EmployeeSchema = EmployeeModelSchema.omit({ password: true, warehouse: true, roleAssignments: true }).extend({
10298
+ phone: z880.string().min(7).max(20).nullable(),
10298
10299
  lastSeen: z880.string().nullable(),
10299
10300
  updatedAt: z880.string(),
10300
10301
  roleAssignments: z880.array(
@@ -10308,12 +10309,14 @@ var CreateEmployeeSchema = z880.object({
10308
10309
  password: z880.string().min(8),
10309
10310
  firstName: z880.string().min(1),
10310
10311
  lastName: z880.string().min(1),
10312
+ phone: z880.string().min(7).max(20).optional(),
10311
10313
  warehouseId: z880.number().int().optional(),
10312
10314
  roleIds: z880.array(z880.number().int()).optional()
10313
10315
  });
10314
10316
  var UpdateEmployeeSchema = z880.object({
10315
10317
  firstName: z880.string().optional(),
10316
10318
  lastName: z880.string().optional(),
10319
+ phone: z880.string().min(7).max(20).nullable().optional(),
10317
10320
  isActive: z880.boolean().optional(),
10318
10321
  warehouseId: z880.number().int().nullable().optional()
10319
10322
  });
@@ -10346,7 +10349,7 @@ var RoleSchema = EmployeeRoleModelSchema.omit({ assignments: true, permissions:
10346
10349
  });
10347
10350
  var CreateRoleSchema = z881.object({
10348
10351
  name: z881.string().min(1),
10349
- color: z881.string().optional(),
10352
+ color: z881.string(),
10350
10353
  permissionIds: z881.array(z881.number().int()).optional()
10351
10354
  });
10352
10355
  var UpdateRoleSchema = z881.object({