@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.cjs +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -3
- package/dist/index.d.ts +12 -3
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -11987,6 +11987,7 @@ var CountrySchema = CountryModelSchema.omit({ localities: true }).extend({ updat
|
|
|
11987
11987
|
var import_zod7 = require("zod");
|
|
11988
11988
|
var EmployeeRoleSchema = EmployeeRoleModelSchema.omit({ assignments: true, permissions: true }).extend({ id: import_zod7.z.number(), updatedAt: import_zod7.z.string() });
|
|
11989
11989
|
var EmployeeSchema = EmployeeModelSchema.omit({ password: true, warehouse: true, roleAssignments: true }).extend({
|
|
11990
|
+
phone: import_zod7.z.string().min(7).max(20).nullable(),
|
|
11990
11991
|
lastSeen: import_zod7.z.string().nullable(),
|
|
11991
11992
|
updatedAt: import_zod7.z.string(),
|
|
11992
11993
|
roleAssignments: import_zod7.z.array(
|
|
@@ -12000,12 +12001,14 @@ var CreateEmployeeSchema = import_zod7.z.object({
|
|
|
12000
12001
|
password: import_zod7.z.string().min(8),
|
|
12001
12002
|
firstName: import_zod7.z.string().min(1),
|
|
12002
12003
|
lastName: import_zod7.z.string().min(1),
|
|
12004
|
+
phone: import_zod7.z.string().min(7).max(20).optional(),
|
|
12003
12005
|
warehouseId: import_zod7.z.number().int().optional(),
|
|
12004
12006
|
roleIds: import_zod7.z.array(import_zod7.z.number().int()).optional()
|
|
12005
12007
|
});
|
|
12006
12008
|
var UpdateEmployeeSchema = import_zod7.z.object({
|
|
12007
12009
|
firstName: import_zod7.z.string().optional(),
|
|
12008
12010
|
lastName: import_zod7.z.string().optional(),
|
|
12011
|
+
phone: import_zod7.z.string().min(7).max(20).nullable().optional(),
|
|
12009
12012
|
isActive: import_zod7.z.boolean().optional(),
|
|
12010
12013
|
warehouseId: import_zod7.z.number().int().nullable().optional()
|
|
12011
12014
|
});
|
|
@@ -12038,7 +12041,7 @@ var RoleSchema = EmployeeRoleModelSchema.omit({ assignments: true, permissions:
|
|
|
12038
12041
|
});
|
|
12039
12042
|
var CreateRoleSchema = import_zod8.z.object({
|
|
12040
12043
|
name: import_zod8.z.string().min(1),
|
|
12041
|
-
color: import_zod8.z.string()
|
|
12044
|
+
color: import_zod8.z.string(),
|
|
12042
12045
|
permissionIds: import_zod8.z.array(import_zod8.z.number().int()).optional()
|
|
12043
12046
|
});
|
|
12044
12047
|
var UpdateRoleSchema = import_zod8.z.object({
|