@esb-market-contracts/admin-backend 1.8.1 → 1.8.3
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/api.d.ts +17 -1
- package/package.json +1 -1
- package/types.d.ts +25 -16
package/api.d.ts
CHANGED
|
@@ -191,7 +191,23 @@ declare const managementRouter: import("hono/hono-base").HonoBase<{
|
|
|
191
191
|
status: 200;
|
|
192
192
|
};
|
|
193
193
|
};
|
|
194
|
-
}
|
|
194
|
+
} & {
|
|
195
|
+
"/iam/management/employees/update-permissions": {
|
|
196
|
+
$post: {
|
|
197
|
+
input: {
|
|
198
|
+
json: {
|
|
199
|
+
employeeId: unknown;
|
|
200
|
+
permissions: ("employee.create" | "employee.read" | "employee.update")[];
|
|
201
|
+
};
|
|
202
|
+
};
|
|
203
|
+
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
|
|
204
|
+
[x: string]: never;
|
|
205
|
+
}>;
|
|
206
|
+
outputFormat: "json";
|
|
207
|
+
status: 200;
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
}, "/iam/management", "/iam/management/employees/update-permissions">;
|
|
195
211
|
export type ManagementRouter = typeof managementRouter;
|
|
196
212
|
|
|
197
213
|
export {};
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Generated by dts-bundle-generator v9.5.1
|
|
2
2
|
|
|
3
|
-
import { SerializeDates } from '@kalutskii/foundation';
|
|
3
|
+
import { AsQuery, SerializeDates } from '@kalutskii/foundation';
|
|
4
4
|
import z from 'zod';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
|
|
@@ -39,19 +39,6 @@ declare const employeeSelectRequestSchema: z.ZodUnion<readonly [
|
|
|
39
39
|
email: z.ZodString;
|
|
40
40
|
}, z.core.$strip>
|
|
41
41
|
]>;
|
|
42
|
-
declare const employeeInsertRequestSchema: z.ZodObject<{
|
|
43
|
-
email: z.ZodString;
|
|
44
|
-
fullName: z.ZodString;
|
|
45
|
-
password: z.ZodString;
|
|
46
|
-
permissions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
47
|
-
"employee.create": "employee.create";
|
|
48
|
-
"employee.read": "employee.read";
|
|
49
|
-
"employee.update": "employee.update";
|
|
50
|
-
}>>>;
|
|
51
|
-
}, {
|
|
52
|
-
out: {};
|
|
53
|
-
in: {};
|
|
54
|
-
}>;
|
|
55
42
|
declare const employeeRecordSchema: z.ZodObject<{
|
|
56
43
|
id: z.ZodInt;
|
|
57
44
|
email: z.ZodString;
|
|
@@ -71,13 +58,35 @@ declare const employeeRecordSchema: z.ZodObject<{
|
|
|
71
58
|
out: {};
|
|
72
59
|
in: {};
|
|
73
60
|
}>;
|
|
61
|
+
declare const employeeInsertRequestSchema: z.ZodObject<{
|
|
62
|
+
email: z.ZodString;
|
|
63
|
+
fullName: z.ZodString;
|
|
64
|
+
password: z.ZodString;
|
|
65
|
+
permissions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
66
|
+
"employee.create": "employee.create";
|
|
67
|
+
"employee.read": "employee.read";
|
|
68
|
+
"employee.update": "employee.update";
|
|
69
|
+
}>>>;
|
|
70
|
+
}, {
|
|
71
|
+
out: {};
|
|
72
|
+
in: {};
|
|
73
|
+
}>;
|
|
74
74
|
declare const employeePasswordUpdateRequestSchema: z.ZodObject<{
|
|
75
75
|
employeeId: z.ZodCoercedNumber<unknown>;
|
|
76
76
|
password: z.ZodString;
|
|
77
77
|
}, z.core.$strip>;
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
declare const employeePermissionsUpdateRequestSchema: z.ZodObject<{
|
|
79
|
+
employeeId: z.ZodCoercedNumber<unknown>;
|
|
80
|
+
permissions: z.ZodArray<z.ZodEnum<{
|
|
81
|
+
"employee.create": "employee.create";
|
|
82
|
+
"employee.read": "employee.read";
|
|
83
|
+
"employee.update": "employee.update";
|
|
84
|
+
}>>;
|
|
85
|
+
}, z.core.$strip>;
|
|
86
|
+
export type EmployeeSelectRequest = AsQuery<z.infer<typeof employeeSelectRequestSchema>>;
|
|
80
87
|
export type EmployeeRecord = SerializeDates<z.infer<typeof employeeRecordSchema>>;
|
|
88
|
+
export type EmployeeInsertRequest = z.infer<typeof employeeInsertRequestSchema>;
|
|
81
89
|
export type EmployeePasswordUpdateRequest = z.infer<typeof employeePasswordUpdateRequestSchema>;
|
|
90
|
+
export type EmployeePermissionsUpdateRequest = z.infer<typeof employeePermissionsUpdateRequestSchema>;
|
|
82
91
|
|
|
83
92
|
export {};
|