@esb-market-contracts/admin-backend 1.5.7 → 1.5.9
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/package.json +1 -1
- package/types.d.ts +21 -0
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// Generated by dts-bundle-generator v9.5.1
|
|
2
2
|
|
|
3
|
+
import { SerializeDates } from '@kalutskii/foundation';
|
|
3
4
|
import z from 'zod';
|
|
4
5
|
import { z } from 'zod';
|
|
5
6
|
|
|
@@ -27,6 +28,25 @@ export type AccessTokenPayload = z.infer<typeof accessTokenPayloadSchema>;
|
|
|
27
28
|
declare const getEmployeeRequestSchema: z.ZodObject<{
|
|
28
29
|
id: z.ZodPreprocess<z.ZodNumber>;
|
|
29
30
|
}, z.core.$strip>;
|
|
31
|
+
declare const safeEmployeeResponseSchema: z.ZodObject<{
|
|
32
|
+
id: z.ZodInt;
|
|
33
|
+
email: z.ZodString;
|
|
34
|
+
fullName: z.ZodString;
|
|
35
|
+
status: z.ZodEnum<{
|
|
36
|
+
active: "active";
|
|
37
|
+
suspended: "suspended";
|
|
38
|
+
}>;
|
|
39
|
+
updatedAt: z.ZodNullable<z.ZodDate>;
|
|
40
|
+
createdAt: z.ZodDate;
|
|
41
|
+
permissions: z.ZodArray<z.ZodEnum<{
|
|
42
|
+
"employee.create": "employee.create";
|
|
43
|
+
"employee.read": "employee.read";
|
|
44
|
+
"employee.update": "employee.update";
|
|
45
|
+
}>>;
|
|
46
|
+
}, {
|
|
47
|
+
out: {};
|
|
48
|
+
in: {};
|
|
49
|
+
}>;
|
|
30
50
|
declare const createEmployeeRequestSchema: z.ZodObject<{
|
|
31
51
|
email: z.ZodEmail;
|
|
32
52
|
fullName: z.ZodString;
|
|
@@ -38,6 +58,7 @@ declare const createEmployeeRequestSchema: z.ZodObject<{
|
|
|
38
58
|
}>>;
|
|
39
59
|
}, z.core.$strip>;
|
|
40
60
|
export type GetEmployeeRequest = z.infer<typeof getEmployeeRequestSchema>;
|
|
61
|
+
export type SafeEmployeeResponse = SerializeDates<z.infer<typeof safeEmployeeResponseSchema>>;
|
|
41
62
|
export type CreateEmployeeRequest = z.infer<typeof createEmployeeRequestSchema>;
|
|
42
63
|
|
|
43
64
|
export {};
|