@esb-market-contracts/admin-backend 1.8.1 → 1.8.2
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 +16 -16
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,26 @@ 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
|
-
export type EmployeeSelectRequest = z.infer<typeof employeeSelectRequestSchema
|
|
79
|
-
export type EmployeeInsertRequest = z.infer<typeof employeeInsertRequestSchema>;
|
|
78
|
+
export type EmployeeSelectRequest = AsQuery<z.infer<typeof employeeSelectRequestSchema>>;
|
|
80
79
|
export type EmployeeRecord = SerializeDates<z.infer<typeof employeeRecordSchema>>;
|
|
80
|
+
export type EmployeeInsertRequest = z.infer<typeof employeeInsertRequestSchema>;
|
|
81
81
|
export type EmployeePasswordUpdateRequest = z.infer<typeof employeePasswordUpdateRequestSchema>;
|
|
82
82
|
|
|
83
83
|
export {};
|