@meerkapp/wms-contracts 0.2.0-beta.15 → 0.2.0-beta.17
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 +10 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +17 -22
- package/dist/index.d.ts +17 -22
- package/dist/index.js +9 -10
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1477,6 +1477,7 @@ __export(index_exports, {
|
|
|
1477
1477
|
TransactionIsolationLevelSchema: () => TransactionIsolationLevelSchema,
|
|
1478
1478
|
UpdateEmployeeSchema: () => UpdateEmployeeSchema,
|
|
1479
1479
|
UpdateOrganizationSchema: () => UpdateOrganizationSchema,
|
|
1480
|
+
UpdateOwnPasswordSchema: () => UpdateOwnPasswordSchema,
|
|
1480
1481
|
UpdateOwnProfileSchema: () => UpdateOwnProfileSchema,
|
|
1481
1482
|
UpdateRoleSchema: () => UpdateRoleSchema,
|
|
1482
1483
|
UpdateWarehouseSchema: () => UpdateWarehouseSchema,
|
|
@@ -11982,6 +11983,7 @@ var ALL_PERMISSIONS = [
|
|
|
11982
11983
|
"employee:update:email",
|
|
11983
11984
|
"employee:update:password",
|
|
11984
11985
|
"employee:toggle:active",
|
|
11986
|
+
"employee:update:avatar",
|
|
11985
11987
|
// own profile
|
|
11986
11988
|
"employee:update:own:info",
|
|
11987
11989
|
"employee:update:own:email",
|
|
@@ -12039,6 +12041,7 @@ var CountrySchema = CountryModelSchema.omit({ localities: true }).extend({ updat
|
|
|
12039
12041
|
var import_zod7 = require("zod");
|
|
12040
12042
|
var EmployeeRoleSchema = EmployeeRoleModelSchema.omit({ assignments: true, permissions: true }).extend({ id: import_zod7.z.number(), updatedAt: import_zod7.z.string() });
|
|
12041
12043
|
var EmployeeSchema = EmployeeModelSchema.omit({ password: true, warehouse: true, roleAssignments: true }).extend({
|
|
12044
|
+
avatarUrl: import_zod7.z.string().nullable(),
|
|
12042
12045
|
phone: import_zod7.z.string().nullable(),
|
|
12043
12046
|
lastSeen: import_zod7.z.string().nullable(),
|
|
12044
12047
|
updatedAt: import_zod7.z.string(),
|
|
@@ -12071,16 +12074,12 @@ var UpdateOwnProfileSchema = import_zod7.z.object({
|
|
|
12071
12074
|
firstName: import_zod7.z.string().min(1).optional(),
|
|
12072
12075
|
lastName: import_zod7.z.string().min(1).optional(),
|
|
12073
12076
|
phone: import_zod7.z.string().min(7).max(20).nullable().optional(),
|
|
12074
|
-
email: import_zod7.z.string().email().optional()
|
|
12075
|
-
|
|
12076
|
-
|
|
12077
|
-
|
|
12078
|
-
(
|
|
12079
|
-
|
|
12080
|
-
return true;
|
|
12081
|
-
},
|
|
12082
|
-
{ message: "currentPassword is required when changing password", path: ["currentPassword"] }
|
|
12083
|
-
);
|
|
12077
|
+
email: import_zod7.z.string().email().optional()
|
|
12078
|
+
});
|
|
12079
|
+
var UpdateOwnPasswordSchema = import_zod7.z.object({
|
|
12080
|
+
currentPassword: import_zod7.z.string().min(1),
|
|
12081
|
+
newPassword: import_zod7.z.string().min(8)
|
|
12082
|
+
});
|
|
12084
12083
|
|
|
12085
12084
|
// src/modules/role/index.ts
|
|
12086
12085
|
var import_zod8 = require("zod");
|
|
@@ -13554,6 +13553,7 @@ var UpdateRoleSchema = import_zod8.z.object({
|
|
|
13554
13553
|
TransactionIsolationLevelSchema,
|
|
13555
13554
|
UpdateEmployeeSchema,
|
|
13556
13555
|
UpdateOrganizationSchema,
|
|
13556
|
+
UpdateOwnPasswordSchema,
|
|
13557
13557
|
UpdateOwnProfileSchema,
|
|
13558
13558
|
UpdateRoleSchema,
|
|
13559
13559
|
UpdateWarehouseSchema,
|