@esb-market-contracts/admin-backend 1.3.1 → 1.4.0

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/types.d.ts DELETED
@@ -1,143 +0,0 @@
1
- // Generated by dts-bundle-generator v9.5.1
2
-
3
- import { SerializeDates } from '@kalutskii/foundation';
4
- import { z } from 'zod';
5
-
6
- declare const AuthLoginSchema: z.ZodObject<{
7
- email: z.ZodEmail;
8
- password: z.ZodString;
9
- }, z.core.$strict>;
10
- export type AuthLogin = z.infer<typeof AuthLoginSchema>;
11
- declare const AuthSessionSchema: z.ZodObject<{
12
- expiresAt: z.ZodDate;
13
- user: z.ZodObject<{
14
- id: z.ZodInt;
15
- email: z.ZodString;
16
- fullName: z.ZodString;
17
- status: z.ZodEnum<{
18
- active: "active";
19
- inactive: "inactive";
20
- suspended: "suspended";
21
- }>;
22
- lastLoginAt: z.ZodNullable<z.ZodDate>;
23
- }, {
24
- out: {};
25
- in: {};
26
- }>;
27
- }, {
28
- out: {};
29
- in: {};
30
- }>;
31
- export type AuthSession = z.infer<typeof AuthSessionSchema>;
32
- export type AuthLoginRequest = AuthLogin;
33
- export type AuthSessionRequest = Record<string, never>;
34
- export type AuthSessionResponse = SerializeDates<AuthSession>;
35
- export type AuthClientSession = AuthSession;
36
- export type AuthLogoutRequest = Record<string, never>;
37
- export type AuthLogoutResponse = Record<string, never>;
38
- declare const EmployeeSchema: z.ZodObject<{
39
- id: z.ZodInt;
40
- email: z.ZodString;
41
- fullName: z.ZodString;
42
- status: z.ZodEnum<{
43
- active: "active";
44
- inactive: "inactive";
45
- suspended: "suspended";
46
- }>;
47
- lastLoginAt: z.ZodNullable<z.ZodDate>;
48
- updatedAt: z.ZodDate;
49
- createdAt: z.ZodDate;
50
- roles: z.ZodArray<z.ZodObject<{
51
- id: z.ZodInt;
52
- name: z.ZodString;
53
- code: z.ZodString;
54
- }, {
55
- out: {};
56
- in: {};
57
- }>>;
58
- }, {
59
- out: {};
60
- in: {};
61
- }>;
62
- export type Employee = z.infer<typeof EmployeeSchema>;
63
- declare const EmployeeListResultSchema: z.ZodObject<{
64
- items: z.ZodArray<z.ZodObject<{
65
- id: z.ZodInt;
66
- email: z.ZodString;
67
- fullName: z.ZodString;
68
- status: z.ZodEnum<{
69
- active: "active";
70
- inactive: "inactive";
71
- suspended: "suspended";
72
- }>;
73
- lastLoginAt: z.ZodNullable<z.ZodDate>;
74
- updatedAt: z.ZodDate;
75
- createdAt: z.ZodDate;
76
- roles: z.ZodArray<z.ZodObject<{
77
- id: z.ZodInt;
78
- name: z.ZodString;
79
- code: z.ZodString;
80
- }, {
81
- out: {};
82
- in: {};
83
- }>>;
84
- }, {
85
- out: {};
86
- in: {};
87
- }>>;
88
- meta: z.ZodObject<{
89
- page: z.ZodNumber;
90
- limit: z.ZodNumber;
91
- total: z.ZodNumber;
92
- totalPages: z.ZodNumber;
93
- }, z.core.$strip>;
94
- }, z.core.$strip>;
95
- export type EmployeeListResult = z.infer<typeof EmployeeListResultSchema>;
96
- declare const EmployeesQuerySchema: z.ZodObject<{
97
- page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
98
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown> & z.ZodType<100 | 10 | 20 | 50, unknown, z.core.$ZodTypeInternals<100 | 10 | 20 | 50, unknown>>>;
99
- sort: z.ZodOptional<z.ZodString>;
100
- status: z.ZodOptional<z.ZodArray<z.ZodEnum<{
101
- active: "active";
102
- inactive: "inactive";
103
- suspended: "suspended";
104
- }>>>;
105
- role: z.ZodOptional<z.ZodArray<z.ZodString>>;
106
- search: z.ZodOptional<z.ZodString>;
107
- }, z.core.$strip>;
108
- export type EmployeesQuery = z.infer<typeof EmployeesQuerySchema>;
109
- declare const EmployeesTableMetadataSchema: z.ZodObject<{
110
- filters: z.ZodObject<{
111
- statuses: z.ZodArray<z.ZodObject<{
112
- label: z.ZodString;
113
- value: z.ZodString;
114
- }, z.core.$strip>>;
115
- roles: z.ZodArray<z.ZodObject<{
116
- label: z.ZodString;
117
- value: z.ZodString;
118
- }, z.core.$strip>>;
119
- }, z.core.$strip>;
120
- sorting: z.ZodObject<{
121
- fields: z.ZodArray<z.ZodObject<{
122
- label: z.ZodString;
123
- value: z.ZodString;
124
- }, z.core.$strip>>;
125
- default: z.ZodObject<{
126
- field: z.ZodString;
127
- direction: z.ZodEnum<{
128
- asc: "asc";
129
- desc: "desc";
130
- }>;
131
- }, z.core.$strip>;
132
- }, z.core.$strip>;
133
- pagination: z.ZodObject<{
134
- defaultLimit: z.ZodNumber;
135
- availableLimits: z.ZodArray<z.ZodNumber>;
136
- }, z.core.$strip>;
137
- }, z.core.$strip>;
138
- export type EmployeesTableMetadata = z.infer<typeof EmployeesTableMetadataSchema>;
139
- export type EmployeesListRequest = EmployeesQuery;
140
- export type EmployeesListResponse = SerializeDates<EmployeeListResult>;
141
- export type EmployeesTableMetadataResponse = EmployeesTableMetadata;
142
-
143
- export {};
package/types.js DELETED
@@ -1 +0,0 @@
1
- export {};