@esb-market-contracts/backend 1.0.17 → 1.0.19
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 +514 -503
- package/constants.d.ts +1 -3
- package/enums.d.ts +30 -42
- package/package.json +1 -1
- package/types.d.ts +366 -353
package/types.d.ts
CHANGED
|
@@ -1,412 +1,425 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import "hono/http-exception";
|
|
3
|
+
//#region src/app/domain/(catalog)/brands/brands.schemas.d.ts
|
|
5
4
|
declare const brandSchema: z.ZodObject<{
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
5
|
+
id: z.ZodInt;
|
|
6
|
+
slug: z.ZodString;
|
|
7
|
+
name: z.ZodRecord<z.ZodEnum<{
|
|
8
|
+
en: "en";
|
|
9
|
+
ka: "ka";
|
|
10
|
+
ru: "ru";
|
|
11
|
+
}> & z.core.$partial, z.ZodString>;
|
|
12
|
+
websiteUrl: z.ZodNullable<z.ZodURL>;
|
|
13
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
14
|
+
logotypeUrl: z.ZodString;
|
|
15
|
+
countryId: z.ZodInt;
|
|
16
|
+
updatedAt: z.ZodNullable<z.ZodDate>;
|
|
17
|
+
createdAt: z.ZodDate;
|
|
19
18
|
}, z.core.$strip>;
|
|
20
|
-
|
|
19
|
+
type Brand = z.infer<typeof brandSchema>;
|
|
20
|
+
//#endregion
|
|
21
|
+
//#region src/app/flows/brand/brand.schemas.d.ts
|
|
21
22
|
declare const brandSearchOptionsSchema: z.ZodObject<{
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
23
|
+
where: z.ZodOptional<z.ZodPipe<z.ZodObject<{
|
|
24
|
+
countryId: z.ZodOptional<z.ZodInt>;
|
|
25
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
26
|
+
countryId: number;
|
|
27
|
+
}, {
|
|
28
|
+
countryId?: number | undefined;
|
|
29
|
+
}>>>;
|
|
30
|
+
query: z.ZodOptional<z.ZodString>;
|
|
31
|
+
pagination: z.ZodObject<{
|
|
32
|
+
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
33
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
34
|
+
}, z.core.$strip>;
|
|
34
35
|
}, z.core.$strict>;
|
|
35
36
|
declare const brandSelectOneQuerySchema: z.ZodPipe<z.ZodObject<{
|
|
36
|
-
|
|
37
|
-
|
|
37
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
38
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
38
39
|
}, z.core.$strip>, z.ZodTransform<{
|
|
39
|
-
|
|
40
|
-
|
|
40
|
+
id: number;
|
|
41
|
+
slug?: string | undefined;
|
|
41
42
|
} | {
|
|
42
|
-
|
|
43
|
-
|
|
43
|
+
id?: number | undefined;
|
|
44
|
+
slug: string;
|
|
44
45
|
}, {
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
id?: number | undefined;
|
|
47
|
+
slug?: string | undefined;
|
|
47
48
|
}>>;
|
|
48
49
|
declare const brandCreatePayloadSchema: z.ZodObject<{
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
50
|
+
slug: z.ZodString;
|
|
51
|
+
name: z.ZodPreprocess<z.ZodRecord<z.ZodEnum<{
|
|
52
|
+
en: "en";
|
|
53
|
+
ka: "ka";
|
|
54
|
+
ru: "ru";
|
|
55
|
+
}> & z.core.$partial, z.ZodString>>;
|
|
56
|
+
websiteUrl: z.ZodPreprocess<z.ZodOptional<z.ZodNullable<z.ZodURL>>>;
|
|
57
|
+
notes: z.ZodPreprocess<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
58
|
+
countryId: z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodInt>;
|
|
59
|
+
logotype: z.ZodFile;
|
|
59
60
|
}, z.core.$strip>;
|
|
60
61
|
declare const brandUpdatePayloadSchema: z.ZodObject<{
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
62
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
63
|
+
name: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodEnum<{
|
|
64
|
+
en: "en";
|
|
65
|
+
ka: "ka";
|
|
66
|
+
ru: "ru";
|
|
67
|
+
}> & z.core.$partial, z.ZodString>>>;
|
|
68
|
+
websiteUrl: z.ZodPreprocess<z.ZodOptional<z.ZodNullable<z.ZodURL>>>;
|
|
69
|
+
notes: z.ZodPreprocess<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
70
|
+
countryId: z.ZodOptional<z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodInt>>;
|
|
71
|
+
logotype: z.ZodOptional<z.ZodFile>;
|
|
72
|
+
brandId: z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodInt>;
|
|
72
73
|
}, z.core.$strip>;
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
74
|
+
type BrandSearchOptions = z.infer<typeof brandSearchOptionsSchema>;
|
|
75
|
+
type BrandSearchResult = {
|
|
76
|
+
brands: Brand[];
|
|
77
|
+
total: number;
|
|
77
78
|
};
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
type BrandSelectOneQuery = z.infer<typeof brandSelectOneQuerySchema>;
|
|
80
|
+
type BrandCreatePayload = z.infer<typeof brandCreatePayloadSchema>;
|
|
81
|
+
type BrandUpdatePayload = z.infer<typeof brandUpdatePayloadSchema>;
|
|
82
|
+
//#endregion
|
|
83
|
+
//#region src/app/domain/(catalog)/categories/categories.schemas.d.ts
|
|
81
84
|
declare const categorySchema: z.ZodObject<{
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
85
|
+
id: z.ZodInt;
|
|
86
|
+
slug: z.ZodString;
|
|
87
|
+
parentId: z.ZodNullable<z.ZodInt>;
|
|
88
|
+
status: z.ZodEnum<{
|
|
89
|
+
active: "active";
|
|
90
|
+
archived: "archived";
|
|
91
|
+
}>;
|
|
92
|
+
name: z.ZodRecord<z.ZodEnum<{
|
|
93
|
+
en: "en";
|
|
94
|
+
ka: "ka";
|
|
95
|
+
ru: "ru";
|
|
96
|
+
}> & z.core.$partial, z.ZodString>;
|
|
97
|
+
updatedAt: z.ZodNullable<z.ZodDate>;
|
|
98
|
+
createdAt: z.ZodDate;
|
|
96
99
|
}, z.core.$strip>;
|
|
97
|
-
|
|
100
|
+
type Category = z.infer<typeof categorySchema>;
|
|
101
|
+
//#endregion
|
|
102
|
+
//#region src/app/flows/category/category.schemas.d.ts
|
|
98
103
|
declare const categorySearchOptionsSchema: z.ZodObject<{
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
104
|
+
where: z.ZodOptional<z.ZodPipe<z.ZodObject<{
|
|
105
|
+
parentId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
106
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
107
|
+
active: "active";
|
|
108
|
+
archived: "archived";
|
|
109
|
+
}>>;
|
|
110
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
111
|
+
parentId: number | null;
|
|
112
|
+
status?: "active" | "archived" | undefined;
|
|
113
|
+
} | {
|
|
114
|
+
parentId?: number | null | undefined;
|
|
115
|
+
status: "active" | "archived";
|
|
116
|
+
}, {
|
|
117
|
+
parentId?: number | null | undefined;
|
|
118
|
+
status?: "active" | "archived" | undefined;
|
|
119
|
+
}>>>;
|
|
120
|
+
query: z.ZodOptional<z.ZodString>;
|
|
121
|
+
pagination: z.ZodObject<{
|
|
122
|
+
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
123
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
124
|
+
}, z.core.$strip>;
|
|
120
125
|
}, z.core.$strict>;
|
|
121
126
|
declare const categorySelectOneQuerySchema: z.ZodPipe<z.ZodObject<{
|
|
122
|
-
|
|
123
|
-
|
|
127
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
128
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
124
129
|
}, z.core.$strip>, z.ZodTransform<{
|
|
125
|
-
|
|
126
|
-
|
|
130
|
+
id: number;
|
|
131
|
+
slug?: string | undefined;
|
|
127
132
|
} | {
|
|
128
|
-
|
|
129
|
-
|
|
133
|
+
id?: number | undefined;
|
|
134
|
+
slug: string;
|
|
130
135
|
}, {
|
|
131
|
-
|
|
132
|
-
|
|
136
|
+
id?: number | undefined;
|
|
137
|
+
slug?: string | undefined;
|
|
133
138
|
}>>;
|
|
134
139
|
declare const categoryCreatePayloadSchema: z.ZodObject<{
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
140
|
+
slug: z.ZodString;
|
|
141
|
+
parentId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
142
|
+
name: z.ZodRecord<z.ZodEnum<{
|
|
143
|
+
en: "en";
|
|
144
|
+
ka: "ka";
|
|
145
|
+
ru: "ru";
|
|
146
|
+
}> & z.core.$partial, z.ZodString>;
|
|
142
147
|
}, z.core.$strip>;
|
|
143
148
|
declare const categoryUpdatePayloadSchema: z.ZodObject<{
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
149
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
150
|
+
parentId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
151
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
152
|
+
active: "active";
|
|
153
|
+
archived: "archived";
|
|
154
|
+
}>>;
|
|
155
|
+
name: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
156
|
+
en: "en";
|
|
157
|
+
ka: "ka";
|
|
158
|
+
ru: "ru";
|
|
159
|
+
}> & z.core.$partial, z.ZodString>>;
|
|
160
|
+
categoryId: z.ZodInt;
|
|
156
161
|
}, z.core.$strip>;
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
162
|
+
type CategorySearchOptions = z.infer<typeof categorySearchOptionsSchema>;
|
|
163
|
+
type CategorySearchResult = {
|
|
164
|
+
categories: Category[];
|
|
165
|
+
total: number;
|
|
161
166
|
};
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
167
|
+
type CategorySelectOneQuery = z.infer<typeof categorySelectOneQuerySchema>;
|
|
168
|
+
type CategoryCreatePayload = z.infer<typeof categoryCreatePayloadSchema>;
|
|
169
|
+
type CategoryUpdatePayload = z.infer<typeof categoryUpdatePayloadSchema>;
|
|
170
|
+
//#endregion
|
|
171
|
+
//#region src/app/domain/(catalog)/countries/countries.schemas.d.ts
|
|
165
172
|
declare const countrySchema: z.ZodObject<{
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
173
|
+
id: z.ZodInt;
|
|
174
|
+
code: z.ZodString;
|
|
175
|
+
name: z.ZodRecord<z.ZodEnum<{
|
|
176
|
+
en: "en";
|
|
177
|
+
ka: "ka";
|
|
178
|
+
ru: "ru";
|
|
179
|
+
}> & z.core.$partial, z.ZodString>;
|
|
180
|
+
flagImageUrl: z.ZodString;
|
|
181
|
+
updatedAt: z.ZodNullable<z.ZodDate>;
|
|
182
|
+
createdAt: z.ZodDate;
|
|
176
183
|
}, z.core.$strip>;
|
|
177
|
-
|
|
184
|
+
type Country = z.infer<typeof countrySchema>;
|
|
185
|
+
//#endregion
|
|
186
|
+
//#region src/app/flows/country/country.schemas.d.ts
|
|
178
187
|
declare const countrySearchOptionsSchema: z.ZodObject<{
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
188
|
+
where: z.ZodOptional<z.ZodPipe<z.ZodObject<{
|
|
189
|
+
code: z.ZodOptional<z.ZodString>;
|
|
190
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
191
|
+
code: string;
|
|
192
|
+
}, {
|
|
193
|
+
code?: string | undefined;
|
|
194
|
+
}>>>;
|
|
195
|
+
query: z.ZodOptional<z.ZodString>;
|
|
196
|
+
pagination: z.ZodObject<{
|
|
197
|
+
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
198
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
199
|
+
}, z.core.$strip>;
|
|
191
200
|
}, z.core.$strict>;
|
|
192
201
|
declare const countrySelectOneQuerySchema: z.ZodObject<{
|
|
193
|
-
|
|
202
|
+
id: z.ZodInt;
|
|
194
203
|
}, z.core.$strip>;
|
|
195
204
|
declare const countryCreatePayloadSchema: z.ZodObject<{
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
205
|
+
code: z.ZodString;
|
|
206
|
+
name: z.ZodPreprocess<z.ZodRecord<z.ZodEnum<{
|
|
207
|
+
en: "en";
|
|
208
|
+
ka: "ka";
|
|
209
|
+
ru: "ru";
|
|
210
|
+
}> & z.core.$partial, z.ZodString>>;
|
|
211
|
+
flagImage: z.ZodFile;
|
|
203
212
|
}, z.core.$strip>;
|
|
204
213
|
declare const countryUpdatePayloadSchema: z.ZodObject<{
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
214
|
+
code: z.ZodOptional<z.ZodString>;
|
|
215
|
+
name: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodEnum<{
|
|
216
|
+
en: "en";
|
|
217
|
+
ka: "ka";
|
|
218
|
+
ru: "ru";
|
|
219
|
+
}> & z.core.$partial, z.ZodString>>>;
|
|
220
|
+
flagImage: z.ZodOptional<z.ZodFile>;
|
|
221
|
+
countryId: z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodInt>;
|
|
213
222
|
}, z.core.$strip>;
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
223
|
+
type CountrySearchOptions = z.infer<typeof countrySearchOptionsSchema>;
|
|
224
|
+
type CountrySearchResult = {
|
|
225
|
+
countries: Country[];
|
|
226
|
+
total: number;
|
|
218
227
|
};
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
228
|
+
type CountrySelectOneQuery = z.infer<typeof countrySelectOneQuerySchema>;
|
|
229
|
+
type CountryCreatePayload = z.infer<typeof countryCreatePayloadSchema>;
|
|
230
|
+
type CountryUpdatePayload = z.infer<typeof countryUpdatePayloadSchema>;
|
|
231
|
+
//#endregion
|
|
232
|
+
//#region src/app/domain/(operations)/audit-logs/audit-logs.schemas.d.ts
|
|
222
233
|
declare const auditLogSchema: import("drizzle-orm/zod").BuildSchema<"select", {
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
identity: undefined;
|
|
299
|
-
generated: undefined;
|
|
300
|
-
}>;
|
|
234
|
+
id: import("drizzle-orm/pg-core").PgBuildColumn<"audit_logs", import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").PgSerialBuilder>, {
|
|
235
|
+
name: string;
|
|
236
|
+
tableName: "audit_logs";
|
|
237
|
+
dataType: "number int32";
|
|
238
|
+
data: number;
|
|
239
|
+
driverParam: number;
|
|
240
|
+
notNull: true;
|
|
241
|
+
hasDefault: true;
|
|
242
|
+
isPrimaryKey: false;
|
|
243
|
+
isAutoincrement: false;
|
|
244
|
+
hasRuntimeDefault: false;
|
|
245
|
+
enumValues: undefined;
|
|
246
|
+
identity: undefined;
|
|
247
|
+
generated: undefined;
|
|
248
|
+
}>;
|
|
249
|
+
event: import("drizzle-orm/pg-core").PgBuildColumn<"audit_logs", import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>, "brand.created" | "brand.updated" | "category.activated" | "category.archived" | "category.created" | "category.updated" | "country.created" | "country.updated" | "customer.created" | "customer.updated">, {
|
|
250
|
+
name: string;
|
|
251
|
+
tableName: "audit_logs";
|
|
252
|
+
dataType: "string";
|
|
253
|
+
data: "brand.created" | "brand.updated" | "category.activated" | "category.archived" | "category.created" | "category.updated" | "country.created" | "country.updated" | "customer.created" | "customer.updated";
|
|
254
|
+
driverParam: string;
|
|
255
|
+
notNull: true;
|
|
256
|
+
hasDefault: false;
|
|
257
|
+
isPrimaryKey: false;
|
|
258
|
+
isAutoincrement: false;
|
|
259
|
+
hasRuntimeDefault: false;
|
|
260
|
+
enumValues: undefined;
|
|
261
|
+
identity: undefined;
|
|
262
|
+
generated: undefined;
|
|
263
|
+
}>;
|
|
264
|
+
actorEmployeeId: import("drizzle-orm/pg-core").PgBuildColumn<"audit_logs", import("drizzle-orm/pg-core").PgIntegerBuilder, {
|
|
265
|
+
name: string;
|
|
266
|
+
tableName: "audit_logs";
|
|
267
|
+
dataType: "number int32";
|
|
268
|
+
data: number;
|
|
269
|
+
driverParam: string | number;
|
|
270
|
+
notNull: false;
|
|
271
|
+
hasDefault: false;
|
|
272
|
+
isPrimaryKey: false;
|
|
273
|
+
isAutoincrement: false;
|
|
274
|
+
hasRuntimeDefault: false;
|
|
275
|
+
enumValues: undefined;
|
|
276
|
+
identity: undefined;
|
|
277
|
+
generated: undefined;
|
|
278
|
+
}>;
|
|
279
|
+
payload: import("drizzle-orm/pg-core").PgBuildColumn<"audit_logs", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgJsonbBuilder>, {
|
|
280
|
+
name: string;
|
|
281
|
+
tableName: "audit_logs";
|
|
282
|
+
dataType: "object json";
|
|
283
|
+
data: unknown;
|
|
284
|
+
driverParam: unknown;
|
|
285
|
+
notNull: true;
|
|
286
|
+
hasDefault: false;
|
|
287
|
+
isPrimaryKey: false;
|
|
288
|
+
isAutoincrement: false;
|
|
289
|
+
hasRuntimeDefault: false;
|
|
290
|
+
enumValues: undefined;
|
|
291
|
+
identity: undefined;
|
|
292
|
+
generated: undefined;
|
|
293
|
+
}>;
|
|
294
|
+
createdAt: import("drizzle-orm/pg-core").PgBuildColumn<"audit_logs", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTimestampBuilder>>, {
|
|
295
|
+
name: string;
|
|
296
|
+
tableName: "audit_logs";
|
|
297
|
+
dataType: "object date";
|
|
298
|
+
data: Date;
|
|
299
|
+
driverParam: string;
|
|
300
|
+
notNull: true;
|
|
301
|
+
hasDefault: true;
|
|
302
|
+
isPrimaryKey: false;
|
|
303
|
+
isAutoincrement: false;
|
|
304
|
+
hasRuntimeDefault: false;
|
|
305
|
+
enumValues: undefined;
|
|
306
|
+
identity: undefined;
|
|
307
|
+
generated: undefined;
|
|
308
|
+
}>;
|
|
301
309
|
}, undefined, undefined>;
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
310
|
+
//#endregion
|
|
311
|
+
//#region src/app/flows/audit/audit.enums.d.ts
|
|
312
|
+
declare const auditLogSourcesArray: readonly ['admin', 'backend'];
|
|
313
|
+
type AuditLogSource = (typeof auditLogSourcesArray)[number];
|
|
314
|
+
//#endregion
|
|
315
|
+
//#region src/app/flows/audit/audit.schemas.d.ts
|
|
308
316
|
declare const auditLogSearchPayloadSchema: z.ZodObject<{
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
317
|
+
where: z.ZodOptional<z.ZodPipe<z.ZodObject<{
|
|
318
|
+
event: z.ZodOptional<z.ZodString>;
|
|
319
|
+
actorEmployeeId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
320
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
321
|
+
event?: string | undefined;
|
|
322
|
+
actorEmployeeId: number | null;
|
|
323
|
+
} | {
|
|
324
|
+
event: string;
|
|
325
|
+
actorEmployeeId?: number | null | undefined;
|
|
326
|
+
}, {
|
|
327
|
+
event?: string | undefined;
|
|
328
|
+
actorEmployeeId?: number | null | undefined;
|
|
329
|
+
}>>>;
|
|
330
|
+
query: z.ZodOptional<z.ZodString>;
|
|
331
|
+
pagination: z.ZodObject<{
|
|
332
|
+
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
333
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
334
|
+
}, z.core.$strip>;
|
|
326
335
|
}, z.core.$strict>;
|
|
327
336
|
declare const auditLogSelectOneQuerySchema: z.ZodObject<{
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
337
|
+
id: z.ZodInt;
|
|
338
|
+
source: z.ZodEnum<{
|
|
339
|
+
admin: "admin";
|
|
340
|
+
backend: "backend";
|
|
341
|
+
}>;
|
|
333
342
|
}, {
|
|
334
|
-
|
|
335
|
-
|
|
343
|
+
out: {};
|
|
344
|
+
in: {};
|
|
336
345
|
}>;
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
346
|
+
type AuditLogSearchPayload = z.infer<typeof auditLogSearchPayloadSchema>;
|
|
347
|
+
type AuditLogResult = z.infer<typeof auditLogSchema> & {
|
|
348
|
+
source: AuditLogSource;
|
|
340
349
|
};
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
350
|
+
type AuditLogSelectOneQuery = z.infer<typeof auditLogSelectOneQuerySchema>;
|
|
351
|
+
type AuditLogSearchResult = {
|
|
352
|
+
auditLogs: AuditLogResult[];
|
|
353
|
+
total: number;
|
|
345
354
|
};
|
|
355
|
+
//#endregion
|
|
356
|
+
//#region src/app/domain/(operations)/customers/customers.schemas.d.ts
|
|
346
357
|
declare const customerSchema: z.ZodObject<{
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
358
|
+
id: z.ZodInt;
|
|
359
|
+
type: z.ZodEnum<{
|
|
360
|
+
individual: "individual";
|
|
361
|
+
individual_entrepreneur: "individual_entrepreneur";
|
|
362
|
+
legal_entity: "legal_entity";
|
|
363
|
+
}>;
|
|
364
|
+
name: z.ZodString;
|
|
365
|
+
identificationNumber: z.ZodNullable<z.ZodString>;
|
|
366
|
+
emailAddress: z.ZodNullable<z.ZodString>;
|
|
367
|
+
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
368
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
369
|
+
updatedAt: z.ZodNullable<z.ZodDate>;
|
|
370
|
+
createdAt: z.ZodDate;
|
|
360
371
|
}, z.core.$strip>;
|
|
361
|
-
|
|
372
|
+
type Customer = z.infer<typeof customerSchema>;
|
|
373
|
+
//#endregion
|
|
374
|
+
//#region src/app/flows/customer/customer.schemas.d.ts
|
|
362
375
|
declare const customerSearchOptionsSchema: z.ZodObject<{
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
376
|
+
where: z.ZodOptional<z.ZodPipe<z.ZodObject<{
|
|
377
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
378
|
+
individual: "individual";
|
|
379
|
+
individual_entrepreneur: "individual_entrepreneur";
|
|
380
|
+
legal_entity: "legal_entity";
|
|
381
|
+
}>>;
|
|
382
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
383
|
+
type: "individual" | "individual_entrepreneur" | "legal_entity";
|
|
384
|
+
}, {
|
|
385
|
+
type?: "individual" | "individual_entrepreneur" | "legal_entity" | undefined;
|
|
386
|
+
}>>>;
|
|
387
|
+
query: z.ZodOptional<z.ZodString>;
|
|
388
|
+
pagination: z.ZodObject<{
|
|
389
|
+
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
390
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
391
|
+
}, z.core.$strip>;
|
|
379
392
|
}, z.core.$strict>;
|
|
380
393
|
declare const customerSelectOneQuerySchema: z.ZodObject<{
|
|
381
|
-
|
|
394
|
+
id: z.ZodInt;
|
|
382
395
|
}, z.core.$strip>;
|
|
383
396
|
declare const customerCreatePayloadSchema: z.ZodObject<{
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
397
|
+
type: z.ZodEnum<{
|
|
398
|
+
individual: "individual";
|
|
399
|
+
individual_entrepreneur: "individual_entrepreneur";
|
|
400
|
+
legal_entity: "legal_entity";
|
|
401
|
+
}>;
|
|
402
|
+
name: z.ZodString;
|
|
403
|
+
identificationNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
404
|
+
emailAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
405
|
+
phoneNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
406
|
+
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
394
407
|
}, z.core.$strip>;
|
|
395
408
|
declare const customerUpdatePayloadSchema: z.ZodObject<{
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
409
|
+
name: z.ZodOptional<z.ZodString>;
|
|
410
|
+
identificationNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
411
|
+
emailAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
412
|
+
phoneNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
413
|
+
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
414
|
+
customerId: z.ZodInt;
|
|
402
415
|
}, z.core.$strip>;
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
416
|
+
type CustomerSearchOptions = z.infer<typeof customerSearchOptionsSchema>;
|
|
417
|
+
type CustomerSearchResult = {
|
|
418
|
+
customers: Customer[];
|
|
419
|
+
total: number;
|
|
407
420
|
};
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
export {};
|
|
421
|
+
type CustomerSelectOneQuery = z.infer<typeof customerSelectOneQuerySchema>;
|
|
422
|
+
type CustomerCreatePayload = z.infer<typeof customerCreatePayloadSchema>;
|
|
423
|
+
type CustomerUpdatePayload = z.infer<typeof customerUpdatePayloadSchema>;
|
|
424
|
+
//#endregion
|
|
425
|
+
export type { AuditLogResult, AuditLogSearchPayload, AuditLogSearchResult, AuditLogSelectOneQuery, Brand, BrandCreatePayload, BrandSearchOptions, BrandSearchResult, BrandSelectOneQuery, BrandUpdatePayload, Category, CategoryCreatePayload, CategorySearchOptions, CategorySearchResult, CategorySelectOneQuery, CategoryUpdatePayload, Country, CountryCreatePayload, CountrySearchOptions, CountrySearchResult, CountrySelectOneQuery, CountryUpdatePayload, Customer, CustomerCreatePayload, CustomerSearchOptions, CustomerSearchResult, CustomerSelectOneQuery, CustomerUpdatePayload };
|