@esb-market-contracts/admin-backend 1.8.17 → 1.8.18
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/enums.d.ts +9 -2
- package/enums.js +1 -1
- package/package.json +1 -1
package/enums.d.ts
CHANGED
|
@@ -5,13 +5,20 @@ declare const grantsArray: readonly [
|
|
|
5
5
|
"employee.read",
|
|
6
6
|
"employee.update"
|
|
7
7
|
];
|
|
8
|
-
declare const grantsRecord:
|
|
8
|
+
declare const grantsRecord: Readonly<{
|
|
9
|
+
EMPLOYEE_CREATE: "employee.create";
|
|
10
|
+
EMPLOYEE_READ: "employee.read";
|
|
11
|
+
EMPLOYEE_UPDATE: "employee.update";
|
|
12
|
+
}>;
|
|
9
13
|
export type Grant = (typeof grantsArray)[number];
|
|
10
14
|
declare const employeeStatusesArray: readonly [
|
|
11
15
|
"active",
|
|
12
16
|
"suspended"
|
|
13
17
|
];
|
|
14
|
-
declare const employeeStatusesRecord:
|
|
18
|
+
declare const employeeStatusesRecord: Readonly<{
|
|
19
|
+
ACTIVE: "active";
|
|
20
|
+
SUSPENDED: "suspended";
|
|
21
|
+
}>;
|
|
15
22
|
export type EmployeeStatus = (typeof employeeStatusesArray)[number];
|
|
16
23
|
|
|
17
24
|
export {
|
package/enums.js
CHANGED
|
@@ -3,7 +3,7 @@ import z from "zod";
|
|
|
3
3
|
|
|
4
4
|
// src/utilities/enums.utilities.ts
|
|
5
5
|
function createStringEnumRecord(values) {
|
|
6
|
-
return Object.fromEntries(values.map((
|
|
6
|
+
return Object.freeze(Object.fromEntries(values.map((value) => [value.replace(/\./g, "_").toUpperCase(), value])));
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
// src/app/domain/(iam)/permissions/permissions.enums.ts
|
package/package.json
CHANGED