@meerkapp/wms-contracts 0.2.0-beta.11 → 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 +14 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +29 -4
- package/dist/index.d.ts +29 -4
- package/dist/index.js +12 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1475,6 +1475,8 @@ __export(index_exports, {
|
|
|
1475
1475
|
StringWithAggregatesFilterObjectSchema: () => StringWithAggregatesFilterObjectSchema,
|
|
1476
1476
|
StringWithAggregatesFilterObjectZodSchema: () => StringWithAggregatesFilterObjectZodSchema,
|
|
1477
1477
|
TransactionIsolationLevelSchema: () => TransactionIsolationLevelSchema,
|
|
1478
|
+
UpdateEmployeeEmailSchema: () => UpdateEmployeeEmailSchema,
|
|
1479
|
+
UpdateEmployeePasswordSchema: () => UpdateEmployeePasswordSchema,
|
|
1478
1480
|
UpdateEmployeeSchema: () => UpdateEmployeeSchema,
|
|
1479
1481
|
UpdateOrganizationSchema: () => UpdateOrganizationSchema,
|
|
1480
1482
|
UpdateOwnEmailSchema: () => UpdateOwnEmailSchema,
|
|
@@ -11985,6 +11987,7 @@ var CountrySchema = CountryModelSchema.omit({ localities: true }).extend({ updat
|
|
|
11985
11987
|
var import_zod7 = require("zod");
|
|
11986
11988
|
var EmployeeRoleSchema = EmployeeRoleModelSchema.omit({ assignments: true, permissions: true }).extend({ id: import_zod7.z.number(), updatedAt: import_zod7.z.string() });
|
|
11987
11989
|
var EmployeeSchema = EmployeeModelSchema.omit({ password: true, warehouse: true, roleAssignments: true }).extend({
|
|
11990
|
+
phone: import_zod7.z.string().min(7).max(20).nullable(),
|
|
11988
11991
|
lastSeen: import_zod7.z.string().nullable(),
|
|
11989
11992
|
updatedAt: import_zod7.z.string(),
|
|
11990
11993
|
roleAssignments: import_zod7.z.array(
|
|
@@ -11998,12 +12001,14 @@ var CreateEmployeeSchema = import_zod7.z.object({
|
|
|
11998
12001
|
password: import_zod7.z.string().min(8),
|
|
11999
12002
|
firstName: import_zod7.z.string().min(1),
|
|
12000
12003
|
lastName: import_zod7.z.string().min(1),
|
|
12004
|
+
phone: import_zod7.z.string().min(7).max(20).optional(),
|
|
12001
12005
|
warehouseId: import_zod7.z.number().int().optional(),
|
|
12002
12006
|
roleIds: import_zod7.z.array(import_zod7.z.number().int()).optional()
|
|
12003
12007
|
});
|
|
12004
12008
|
var UpdateEmployeeSchema = import_zod7.z.object({
|
|
12005
12009
|
firstName: import_zod7.z.string().optional(),
|
|
12006
12010
|
lastName: import_zod7.z.string().optional(),
|
|
12011
|
+
phone: import_zod7.z.string().min(7).max(20).nullable().optional(),
|
|
12007
12012
|
isActive: import_zod7.z.boolean().optional(),
|
|
12008
12013
|
warehouseId: import_zod7.z.number().int().nullable().optional()
|
|
12009
12014
|
});
|
|
@@ -12014,6 +12019,12 @@ var UpdateOwnPasswordSchema = import_zod7.z.object({
|
|
|
12014
12019
|
currentPassword: import_zod7.z.string(),
|
|
12015
12020
|
newPassword: import_zod7.z.string().min(8)
|
|
12016
12021
|
});
|
|
12022
|
+
var UpdateEmployeeEmailSchema = import_zod7.z.object({
|
|
12023
|
+
email: import_zod7.z.string().email()
|
|
12024
|
+
});
|
|
12025
|
+
var UpdateEmployeePasswordSchema = import_zod7.z.object({
|
|
12026
|
+
newPassword: import_zod7.z.string().min(8)
|
|
12027
|
+
});
|
|
12017
12028
|
|
|
12018
12029
|
// src/modules/role/index.ts
|
|
12019
12030
|
var import_zod8 = require("zod");
|
|
@@ -12030,7 +12041,7 @@ var RoleSchema = EmployeeRoleModelSchema.omit({ assignments: true, permissions:
|
|
|
12030
12041
|
});
|
|
12031
12042
|
var CreateRoleSchema = import_zod8.z.object({
|
|
12032
12043
|
name: import_zod8.z.string().min(1),
|
|
12033
|
-
color: import_zod8.z.string()
|
|
12044
|
+
color: import_zod8.z.string(),
|
|
12034
12045
|
permissionIds: import_zod8.z.array(import_zod8.z.number().int()).optional()
|
|
12035
12046
|
});
|
|
12036
12047
|
var UpdateRoleSchema = import_zod8.z.object({
|
|
@@ -13485,6 +13496,8 @@ var UpdateRoleSchema = import_zod8.z.object({
|
|
|
13485
13496
|
StringWithAggregatesFilterObjectSchema,
|
|
13486
13497
|
StringWithAggregatesFilterObjectZodSchema,
|
|
13487
13498
|
TransactionIsolationLevelSchema,
|
|
13499
|
+
UpdateEmployeeEmailSchema,
|
|
13500
|
+
UpdateEmployeePasswordSchema,
|
|
13488
13501
|
UpdateEmployeeSchema,
|
|
13489
13502
|
UpdateOrganizationSchema,
|
|
13490
13503
|
UpdateOwnEmailSchema,
|