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