@esb-market-contracts/backend 1.0.58 → 1.0.60

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,115 +1,125 @@
1
- import { ErrorCodeOf } from "@kalutskii/foundation";
2
- import { z } from "zod";
3
- import "hono/http-exception";
4
- import "drizzle-orm";
5
- import "postgres";
1
+ import { ErrorCodeOf } from '@kalutskii/foundation';
2
+ import 'drizzle-orm';
3
+ import 'hono/http-exception';
4
+ import 'postgres';
5
+ import { z } from 'zod';
6
6
  //#region src/app/errors.registry.d.ts
7
7
  declare const errorsRegistry: {
8
- supportedCurrenciesNotFound: () => import("hono/http-exception").HTTPException;
9
- currencyNotFound: () => import("hono/http-exception").HTTPException;
10
- invalidDecimalSchemaOptions: () => import("hono/http-exception").HTTPException;
11
- brandNotFound: () => import("hono/http-exception").HTTPException;
12
- brandCreationFailed: () => import("hono/http-exception").HTTPException;
13
- brandUpdateFailed: () => import("hono/http-exception").HTTPException;
14
- categoryNotFound: () => import("hono/http-exception").HTTPException;
15
- categoryCreationFailed: () => import("hono/http-exception").HTTPException;
16
- categoryUpdateFailed: () => import("hono/http-exception").HTTPException;
17
- categoryParentCycle: () => import("hono/http-exception").HTTPException;
18
- countryNotFound: () => import("hono/http-exception").HTTPException;
19
- countryCreationFailed: () => import("hono/http-exception").HTTPException;
20
- countryUpdateFailed: () => import("hono/http-exception").HTTPException;
21
- productVariantNotFound: () => import("hono/http-exception").HTTPException;
22
- productVariantCreationFailed: () => import("hono/http-exception").HTTPException;
23
- productVariantUpdateFailed: () => import("hono/http-exception").HTTPException;
24
- productVariantDeletionFailed: () => import("hono/http-exception").HTTPException;
25
- productNotFound: () => import("hono/http-exception").HTTPException;
26
- productCreationFailed: () => import("hono/http-exception").HTTPException;
27
- productUpdateFailed: () => import("hono/http-exception").HTTPException;
28
- productDeletionFailed: () => import("hono/http-exception").HTTPException;
29
- deliveryItemNotFound: () => import("hono/http-exception").HTTPException;
30
- deliveryItemCreationFailed: () => import("hono/http-exception").HTTPException;
31
- deliveryItemUpdateFailed: () => import("hono/http-exception").HTTPException;
32
- deliveryItemRevisionConflict: () => import("hono/http-exception").HTTPException;
33
- deliveryItemDeletionFailed: () => import("hono/http-exception").HTTPException;
34
- deliveryNotFound: () => import("hono/http-exception").HTTPException;
35
- deliveryCreationFailed: () => import("hono/http-exception").HTTPException;
36
- deliveryUpdateFailed: () => import("hono/http-exception").HTTPException;
37
- deliveryDeletionFailed: () => import("hono/http-exception").HTTPException;
38
- supplierNotFound: () => import("hono/http-exception").HTTPException;
39
- supplierCreationFailed: () => import("hono/http-exception").HTTPException;
40
- supplierUpdateFailed: () => import("hono/http-exception").HTTPException;
41
- customerNotFound: () => import("hono/http-exception").HTTPException;
42
- customerCreationFailed: () => import("hono/http-exception").HTTPException;
43
- customerUpdateFailed: () => import("hono/http-exception").HTTPException;
44
- warehouseNotFound: () => import("hono/http-exception").HTTPException;
45
- warehouseCreationFailed: () => import("hono/http-exception").HTTPException;
46
- warehouseUpdateFailed: () => import("hono/http-exception").HTTPException;
47
- exchangeRateNotFound: () => import("hono/http-exception").HTTPException;
48
- exchangeRateUpsertFailed: () => import("hono/http-exception").HTTPException;
49
- accountingSettingsNotFound: () => import("hono/http-exception").HTTPException;
50
- auditLogNotFound: () => import("hono/http-exception").HTTPException;
51
- invalidSessionToken: () => import("hono/http-exception").HTTPException;
52
- insufficientPermissions: () => import("hono/http-exception").HTTPException;
53
- brandAlreadyExists: () => import("hono/http-exception").HTTPException;
54
- categoryAlreadyExists: () => import("hono/http-exception").HTTPException;
55
- categoryAlreadyActive: () => import("hono/http-exception").HTTPException;
56
- categoryArchivedReadOnly: () => import("hono/http-exception").HTTPException;
57
- countryAlreadyExists: () => import("hono/http-exception").HTTPException;
58
- measurementUnitNotFound: () => import("hono/http-exception").HTTPException;
59
- productVariantSkuAlreadyExists: () => import("hono/http-exception").HTTPException;
60
- productVariantBarcodeAlreadyExists: () => import("hono/http-exception").HTTPException;
61
- activeProductVariantSkuRequired: () => import("hono/http-exception").HTTPException;
62
- nonDraftProductVariantMeasurementUnitRequired: () => import("hono/http-exception").HTTPException;
63
- lastActiveProductVariantDeactivationForbidden: () => import("hono/http-exception").HTTPException;
64
- productVariantStatusTransitionForbidden: () => import("hono/http-exception").HTTPException;
65
- productVariantDraftDeletionOnly: () => import("hono/http-exception").HTTPException;
66
- taxCategoryNotFound: () => import("hono/http-exception").HTTPException;
67
- productAlreadyExists: () => import("hono/http-exception").HTTPException;
68
- productBannerImageNotFound: () => import("hono/http-exception").HTTPException;
69
- productActiveVariantRequired: () => import("hono/http-exception").HTTPException;
70
- productPublicationMetadataRequired: () => import("hono/http-exception").HTTPException;
71
- productStatusTransitionForbidden: () => import("hono/http-exception").HTTPException;
72
- productDraftDeletionOnly: () => import("hono/http-exception").HTTPException;
73
- productNonDraftVariantsDeletionForbidden: () => import("hono/http-exception").HTTPException;
74
- productVariantUnavailable: () => import("hono/http-exception").HTTPException;
75
- productVariantMeasurementUnitRequired: () => import("hono/http-exception").HTTPException;
76
- deliveryItemQuantityPrecisionInvalid: () => import("hono/http-exception").HTTPException;
77
- deliveryNotDraftReadOnly: () => import("hono/http-exception").HTTPException;
78
- supplierUnavailable: () => import("hono/http-exception").HTTPException;
79
- warehouseUnavailable: () => import("hono/http-exception").HTTPException;
80
- deliveryItemsRequired: () => import("hono/http-exception").HTTPException;
81
- deliveryExchangeRateRequired: () => import("hono/http-exception").HTTPException;
82
- deliveryExchangeRateCurrencyMismatch: () => import("hono/http-exception").HTTPException;
83
- deliveryItemQuantityRequired: () => import("hono/http-exception").HTTPException;
84
- deliveryItemUnitCostRequired: () => import("hono/http-exception").HTTPException;
85
- stockApplicationFailed: () => import("hono/http-exception").HTTPException;
86
- unitCostConversionOutOfRange: () => import("hono/http-exception").HTTPException;
87
- supplierAlreadyExists: () => import("hono/http-exception").HTTPException;
88
- supplierStatusAlreadySet: () => import("hono/http-exception").HTTPException;
89
- supplierArchivedReadOnly: () => import("hono/http-exception").HTTPException;
90
- warehouseAlreadyExists: () => import("hono/http-exception").HTTPException;
91
- warehouseStatusAlreadySet: () => import("hono/http-exception").HTTPException;
92
- warehouseArchivedReadOnly: () => import("hono/http-exception").HTTPException;
93
- taxRateNotFound: () => import("hono/http-exception").HTTPException;
8
+ supportedCurrenciesNotFound: () => import('hono/http-exception').HTTPException;
9
+ currencyNotFound: () => import('hono/http-exception').HTTPException;
10
+ invalidDecimalSchemaOptions: () => import('hono/http-exception').HTTPException;
11
+ brandNotFound: () => import('hono/http-exception').HTTPException;
12
+ brandCreationFailed: () => import('hono/http-exception').HTTPException;
13
+ brandUpdateFailed: () => import('hono/http-exception').HTTPException;
14
+ categoryNotFound: () => import('hono/http-exception').HTTPException;
15
+ categoryCreationFailed: () => import('hono/http-exception').HTTPException;
16
+ categoryUpdateFailed: () => import('hono/http-exception').HTTPException;
17
+ categoryParentCycle: () => import('hono/http-exception').HTTPException;
18
+ countryNotFound: () => import('hono/http-exception').HTTPException;
19
+ countryCreationFailed: () => import('hono/http-exception').HTTPException;
20
+ countryUpdateFailed: () => import('hono/http-exception').HTTPException;
21
+ productVariantNotFound: () => import('hono/http-exception').HTTPException;
22
+ productVariantCreationFailed: () => import('hono/http-exception').HTTPException;
23
+ productVariantUpdateFailed: () => import('hono/http-exception').HTTPException;
24
+ productVariantDeletionFailed: () => import('hono/http-exception').HTTPException;
25
+ productNotFound: () => import('hono/http-exception').HTTPException;
26
+ productCreationFailed: () => import('hono/http-exception').HTTPException;
27
+ productUpdateFailed: () => import('hono/http-exception').HTTPException;
28
+ productDeletionFailed: () => import('hono/http-exception').HTTPException;
29
+ deliveryItemNotFound: () => import('hono/http-exception').HTTPException;
30
+ deliveryItemCreationFailed: () => import('hono/http-exception').HTTPException;
31
+ deliveryItemUpdateFailed: () => import('hono/http-exception').HTTPException;
32
+ deliveryItemRevisionConflict: () => import('hono/http-exception').HTTPException;
33
+ deliveryItemDeletionFailed: () => import('hono/http-exception').HTTPException;
34
+ deliveryNotFound: () => import('hono/http-exception').HTTPException;
35
+ deliveryCreationFailed: () => import('hono/http-exception').HTTPException;
36
+ deliveryUpdateFailed: () => import('hono/http-exception').HTTPException;
37
+ deliveryDeletionFailed: () => import('hono/http-exception').HTTPException;
38
+ supplierNotFound: () => import('hono/http-exception').HTTPException;
39
+ supplierCreationFailed: () => import('hono/http-exception').HTTPException;
40
+ supplierUpdateFailed: () => import('hono/http-exception').HTTPException;
41
+ customerNotFound: () => import('hono/http-exception').HTTPException;
42
+ customerCreationFailed: () => import('hono/http-exception').HTTPException;
43
+ customerUpdateFailed: () => import('hono/http-exception').HTTPException;
44
+ warehouseNotFound: () => import('hono/http-exception').HTTPException;
45
+ warehouseCreationFailed: () => import('hono/http-exception').HTTPException;
46
+ warehouseUpdateFailed: () => import('hono/http-exception').HTTPException;
47
+ exchangeRateNotFound: () => import('hono/http-exception').HTTPException;
48
+ exchangeRateUpsertFailed: () => import('hono/http-exception').HTTPException;
49
+ accountingSettingsNotFound: () => import('hono/http-exception').HTTPException;
50
+ auditLogNotFound: () => import('hono/http-exception').HTTPException;
51
+ invalidSessionToken: () => import('hono/http-exception').HTTPException;
52
+ insufficientPermissions: () => import('hono/http-exception').HTTPException;
53
+ requestValidationFailed: () => import('hono/http-exception').HTTPException;
54
+ formBodyTooLarge: () => import('hono/http-exception').HTTPException;
55
+ jsonBodyTooLarge: () => import('hono/http-exception').HTTPException;
56
+ brandAlreadyExists: () => import('hono/http-exception').HTTPException;
57
+ categoryAlreadyExists: () => import('hono/http-exception').HTTPException;
58
+ categoryAlreadyActive: () => import('hono/http-exception').HTTPException;
59
+ categoryArchivedReadOnly: () => import('hono/http-exception').HTTPException;
60
+ countryAlreadyExists: () => import('hono/http-exception').HTTPException;
61
+ measurementUnitNotFound: () => import('hono/http-exception').HTTPException;
62
+ productVariantSkuAlreadyExists: () => import('hono/http-exception').HTTPException;
63
+ productVariantBarcodeAlreadyExists: () => import('hono/http-exception').HTTPException;
64
+ activeProductVariantSkuRequired: () => import('hono/http-exception').HTTPException;
65
+ nonDraftProductVariantMeasurementUnitRequired: () => import('hono/http-exception').HTTPException;
66
+ lastActiveProductVariantDeactivationForbidden: () => import('hono/http-exception').HTTPException;
67
+ productVariantStatusTransitionForbidden: () => import('hono/http-exception').HTTPException;
68
+ productVariantDraftDeletionOnly: () => import('hono/http-exception').HTTPException;
69
+ taxCategoryNotFound: () => import('hono/http-exception').HTTPException;
70
+ productAlreadyExists: () => import('hono/http-exception').HTTPException;
71
+ productBannerImageNotFound: () => import('hono/http-exception').HTTPException;
72
+ productActiveVariantRequired: () => import('hono/http-exception').HTTPException;
73
+ productPublicationMetadataRequired: () => import('hono/http-exception').HTTPException;
74
+ productStatusTransitionForbidden: () => import('hono/http-exception').HTTPException;
75
+ productDraftDeletionOnly: () => import('hono/http-exception').HTTPException;
76
+ productNonDraftVariantsDeletionForbidden: () => import('hono/http-exception').HTTPException;
77
+ productVariantUnavailable: () => import('hono/http-exception').HTTPException;
78
+ productVariantMeasurementUnitRequired: () => import('hono/http-exception').HTTPException;
79
+ deliveryItemQuantityPrecisionInvalid: () => import('hono/http-exception').HTTPException;
80
+ deliveryNotDraftReadOnly: () => import('hono/http-exception').HTTPException;
81
+ supplierUnavailable: () => import('hono/http-exception').HTTPException;
82
+ warehouseUnavailable: () => import('hono/http-exception').HTTPException;
83
+ deliveryItemsRequired: () => import('hono/http-exception').HTTPException;
84
+ deliveryExchangeRateRequired: () => import('hono/http-exception').HTTPException;
85
+ deliveryExchangeRateCurrencyMismatch: () => import('hono/http-exception').HTTPException;
86
+ deliveryItemQuantityRequired: () => import('hono/http-exception').HTTPException;
87
+ deliveryItemUnitCostRequired: () => import('hono/http-exception').HTTPException;
88
+ stockApplicationFailed: () => import('hono/http-exception').HTTPException;
89
+ unitCostConversionOutOfRange: () => import('hono/http-exception').HTTPException;
90
+ supplierAlreadyExists: () => import('hono/http-exception').HTTPException;
91
+ supplierStatusAlreadySet: () => import('hono/http-exception').HTTPException;
92
+ supplierArchivedReadOnly: () => import('hono/http-exception').HTTPException;
93
+ warehouseAlreadyExists: () => import('hono/http-exception').HTTPException;
94
+ warehouseStatusAlreadySet: () => import('hono/http-exception').HTTPException;
95
+ warehouseArchivedReadOnly: () => import('hono/http-exception').HTTPException;
96
+ taxRateNotFound: () => import('hono/http-exception').HTTPException;
94
97
  };
95
98
  type APIErrorCode = ErrorCodeOf<typeof errorsRegistry>;
96
99
  //#endregion
97
100
  //#region src/app/domain/(catalog)/brands/brands.schemas.d.ts
98
- declare const brandSchema: z.ZodObject<{
99
- id: z.ZodInt;
100
- slug: z.ZodString;
101
- name: z.ZodRecord<z.ZodEnum<{
102
- en: "en";
103
- ka: "ka";
104
- ru: "ru";
105
- }> & z.core.$partial, z.ZodString>;
106
- websiteUrl: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodURL>>;
107
- notes: z.ZodNullable<z.ZodString>;
108
- logotypeUrl: z.ZodString;
109
- countryId: z.ZodInt;
110
- updatedAt: z.ZodNullable<z.ZodDate>;
111
- createdAt: z.ZodDate;
112
- }, z.core.$strip>;
101
+ declare const brandSchema: z.ZodObject<
102
+ {
103
+ id: z.ZodInt;
104
+ slug: z.ZodString;
105
+ name: z.ZodRecord<
106
+ z.ZodEnum<{
107
+ en: 'en';
108
+ ka: 'ka';
109
+ ru: 'ru';
110
+ }> &
111
+ z.core.$partial,
112
+ z.ZodString
113
+ >;
114
+ websiteUrl: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodURL>>;
115
+ notes: z.ZodNullable<z.ZodString>;
116
+ logotypeUrl: z.ZodString;
117
+ countryId: z.ZodInt;
118
+ updatedAt: z.ZodNullable<z.ZodDate>;
119
+ createdAt: z.ZodDate;
120
+ },
121
+ z.core.$strip
122
+ >;
113
123
  type Brand = z.infer<typeof brandSchema>;
114
124
  declare const brandIdShape: z.ZodInt;
115
125
  declare const brandSlugShape: z.ZodString;
@@ -117,64 +127,113 @@ type BrandId = z.infer<typeof brandIdShape>;
117
127
  type BrandSlug = z.infer<typeof brandSlugShape>;
118
128
  //#endregion
119
129
  //#region src/app/flows/(catalog)/brand/brand.schemas.d.ts
120
- declare const brandSearchOptionsSchema: z.ZodObject<{
121
- where: z.ZodOptional<z.ZodPipe<z.ZodObject<{
122
- countryId: z.ZodOptional<z.ZodInt>;
123
- }, z.core.$strip>, z.ZodTransform<{
124
- countryId: number;
125
- }, {
126
- countryId?: number | undefined;
127
- }>>>;
128
- query: z.ZodOptional<z.ZodString>;
129
- pagination: z.ZodObject<{
130
- offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
131
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
132
- }, z.core.$strip>;
133
- }, z.core.$strict>;
134
- declare const brandSelectOneQuerySchema: z.ZodPipe<z.ZodObject<{
135
- id: z.ZodOptional<z.ZodInt>;
136
- slug: z.ZodOptional<z.ZodString>;
137
- }, z.core.$strip>, z.ZodTransform<{
138
- id: number;
139
- slug?: string | undefined;
140
- } | {
141
- id?: number | undefined;
142
- slug: string;
143
- }, {
144
- id?: number | undefined;
145
- slug?: string | undefined;
146
- }>>;
147
- declare const brandCreatePayloadSchema: z.ZodObject<{
148
- slug: z.ZodString;
149
- name: z.ZodPreprocess<z.ZodRecord<z.ZodEnum<{
150
- en: "en";
151
- ka: "ka";
152
- ru: "ru";
153
- }> & z.core.$partial, z.ZodString>, unknown>;
154
- websiteUrl: z.ZodPreprocess<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodURL>>, unknown>;
155
- notes: z.ZodPreprocess<z.ZodOptional<z.ZodNullable<z.ZodString>>, unknown>;
156
- countryId: z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodInt>;
157
- logotype: z.ZodFile;
158
- }, {
159
- out: {};
160
- in: {};
161
- }>;
162
- declare const brandUpdatePayloadSchema: z.ZodObject<{
163
- slug: z.ZodOptional<z.ZodString>;
164
- name: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodEnum<{
165
- en: "en";
166
- ka: "ka";
167
- ru: "ru";
168
- }> & z.core.$partial, z.ZodString>, unknown>>;
169
- websiteUrl: z.ZodPreprocess<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodURL>>>, unknown>;
170
- notes: z.ZodPreprocess<z.ZodOptional<z.ZodNullable<z.ZodString>>, unknown>;
171
- countryId: z.ZodOptional<z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodInt>>;
172
- logotype: z.ZodOptional<z.ZodFile>;
173
- brandId: z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodInt>;
174
- }, {
175
- out: {};
176
- in: {};
177
- }>;
130
+ declare const brandSearchOptionsSchema: z.ZodObject<
131
+ {
132
+ where: z.ZodOptional<
133
+ z.ZodPipe<
134
+ z.ZodObject<
135
+ {
136
+ countryId: z.ZodOptional<z.ZodInt>;
137
+ },
138
+ z.core.$strip
139
+ >,
140
+ z.ZodTransform<
141
+ {
142
+ countryId: number;
143
+ },
144
+ {
145
+ countryId?: number | undefined;
146
+ }
147
+ >
148
+ >
149
+ >;
150
+ query: z.ZodOptional<z.ZodString>;
151
+ pagination: z.ZodObject<
152
+ {
153
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
154
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
155
+ },
156
+ z.core.$strip
157
+ >;
158
+ },
159
+ z.core.$strict
160
+ >;
161
+ declare const brandSelectOneQuerySchema: z.ZodPipe<
162
+ z.ZodObject<
163
+ {
164
+ id: z.ZodOptional<z.ZodInt>;
165
+ slug: z.ZodOptional<z.ZodString>;
166
+ },
167
+ z.core.$strip
168
+ >,
169
+ z.ZodTransform<
170
+ | {
171
+ id: number;
172
+ slug?: string | undefined;
173
+ }
174
+ | {
175
+ id?: number | undefined;
176
+ slug: string;
177
+ },
178
+ {
179
+ id?: number | undefined;
180
+ slug?: string | undefined;
181
+ }
182
+ >
183
+ >;
184
+ declare const brandCreatePayloadSchema: z.ZodObject<
185
+ {
186
+ slug: z.ZodString;
187
+ name: z.ZodPreprocess<
188
+ z.ZodRecord<
189
+ z.ZodEnum<{
190
+ en: 'en';
191
+ ka: 'ka';
192
+ ru: 'ru';
193
+ }> &
194
+ z.core.$partial,
195
+ z.ZodString
196
+ >,
197
+ unknown
198
+ >;
199
+ websiteUrl: z.ZodPreprocess<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodURL>>, unknown>;
200
+ notes: z.ZodPreprocess<z.ZodOptional<z.ZodNullable<z.ZodString>>, unknown>;
201
+ countryId: z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodInt>;
202
+ logotype: z.ZodFile;
203
+ },
204
+ {
205
+ out: {};
206
+ in: {};
207
+ }
208
+ >;
209
+ declare const brandUpdatePayloadSchema: z.ZodObject<
210
+ {
211
+ slug: z.ZodOptional<z.ZodString>;
212
+ name: z.ZodOptional<
213
+ z.ZodPreprocess<
214
+ z.ZodRecord<
215
+ z.ZodEnum<{
216
+ en: 'en';
217
+ ka: 'ka';
218
+ ru: 'ru';
219
+ }> &
220
+ z.core.$partial,
221
+ z.ZodString
222
+ >,
223
+ unknown
224
+ >
225
+ >;
226
+ websiteUrl: z.ZodPreprocess<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodURL>>>, unknown>;
227
+ notes: z.ZodPreprocess<z.ZodOptional<z.ZodNullable<z.ZodString>>, unknown>;
228
+ countryId: z.ZodOptional<z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodInt>>;
229
+ logotype: z.ZodOptional<z.ZodFile>;
230
+ brandId: z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodInt>;
231
+ },
232
+ {
233
+ out: {};
234
+ in: {};
235
+ }
236
+ >;
178
237
  type BrandSearchOptions = z.infer<typeof brandSearchOptionsSchema>;
179
238
  type BrandSearchResult = {
180
239
  brands: Brand[];
@@ -185,22 +244,29 @@ type BrandCreatePayload = z.infer<typeof brandCreatePayloadSchema>;
185
244
  type BrandUpdatePayload = z.infer<typeof brandUpdatePayloadSchema>;
186
245
  //#endregion
187
246
  //#region src/app/domain/(catalog)/categories/categories.schemas.d.ts
188
- declare const categorySchema: z.ZodObject<{
189
- id: z.ZodInt;
190
- slug: z.ZodString;
191
- parentId: z.ZodNullable<z.ZodInt>;
192
- status: z.ZodEnum<{
193
- active: "active";
194
- archived: "archived";
195
- }>;
196
- name: z.ZodRecord<z.ZodEnum<{
197
- en: "en";
198
- ka: "ka";
199
- ru: "ru";
200
- }> & z.core.$partial, z.ZodString>;
201
- updatedAt: z.ZodNullable<z.ZodDate>;
202
- createdAt: z.ZodDate;
203
- }, z.core.$strip>;
247
+ declare const categorySchema: z.ZodObject<
248
+ {
249
+ id: z.ZodInt;
250
+ slug: z.ZodString;
251
+ parentId: z.ZodNullable<z.ZodInt>;
252
+ status: z.ZodEnum<{
253
+ active: 'active';
254
+ archived: 'archived';
255
+ }>;
256
+ name: z.ZodRecord<
257
+ z.ZodEnum<{
258
+ en: 'en';
259
+ ka: 'ka';
260
+ ru: 'ru';
261
+ }> &
262
+ z.core.$partial,
263
+ z.ZodString
264
+ >;
265
+ updatedAt: z.ZodNullable<z.ZodDate>;
266
+ createdAt: z.ZodDate;
267
+ },
268
+ z.core.$strip
269
+ >;
204
270
  type Category = z.infer<typeof categorySchema>;
205
271
  declare const categoryIdShape: z.ZodInt;
206
272
  declare const categorySlugShape: z.ZodString;
@@ -208,71 +274,119 @@ type CategoryId = z.infer<typeof categoryIdShape>;
208
274
  type CategorySlug = z.infer<typeof categorySlugShape>;
209
275
  //#endregion
210
276
  //#region src/app/flows/(catalog)/category/category.schemas.d.ts
211
- declare const categorySearchOptionsSchema: z.ZodObject<{
212
- where: z.ZodOptional<z.ZodPipe<z.ZodObject<{
277
+ declare const categorySearchOptionsSchema: z.ZodObject<
278
+ {
279
+ where: z.ZodOptional<
280
+ z.ZodPipe<
281
+ z.ZodObject<
282
+ {
283
+ parentId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
284
+ status: z.ZodOptional<
285
+ z.ZodEnum<{
286
+ active: 'active';
287
+ archived: 'archived';
288
+ }>
289
+ >;
290
+ },
291
+ z.core.$strip
292
+ >,
293
+ z.ZodTransform<
294
+ | {
295
+ parentId: number | null;
296
+ status?: 'active' | 'archived' | undefined;
297
+ }
298
+ | {
299
+ parentId?: number | null | undefined;
300
+ status: 'active' | 'archived';
301
+ },
302
+ {
303
+ parentId?: number | null | undefined;
304
+ status?: 'active' | 'archived' | undefined;
305
+ }
306
+ >
307
+ >
308
+ >;
309
+ query: z.ZodOptional<z.ZodString>;
310
+ pagination: z.ZodObject<
311
+ {
312
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
313
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
314
+ },
315
+ z.core.$strip
316
+ >;
317
+ },
318
+ z.core.$strict
319
+ >;
320
+ declare const categorySelectOneQuerySchema: z.ZodPipe<
321
+ z.ZodObject<
322
+ {
323
+ id: z.ZodOptional<z.ZodInt>;
324
+ slug: z.ZodOptional<z.ZodString>;
325
+ },
326
+ z.core.$strip
327
+ >,
328
+ z.ZodTransform<
329
+ | {
330
+ id: number;
331
+ slug?: string | undefined;
332
+ }
333
+ | {
334
+ id?: number | undefined;
335
+ slug: string;
336
+ },
337
+ {
338
+ id?: number | undefined;
339
+ slug?: string | undefined;
340
+ }
341
+ >
342
+ >;
343
+ declare const categoryCreatePayloadSchema: z.ZodObject<
344
+ {
345
+ slug: z.ZodString;
346
+ parentId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodInt>>>;
347
+ name: z.ZodRecord<
348
+ z.ZodEnum<{
349
+ en: 'en';
350
+ ka: 'ka';
351
+ ru: 'ru';
352
+ }> &
353
+ z.core.$partial,
354
+ z.ZodString
355
+ >;
356
+ },
357
+ {
358
+ out: {};
359
+ in: {};
360
+ }
361
+ >;
362
+ declare const categoryUpdatePayloadSchema: z.ZodObject<
363
+ {
364
+ slug: z.ZodOptional<z.ZodString>;
213
365
  parentId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
214
- status: z.ZodOptional<z.ZodEnum<{
215
- active: "active";
216
- archived: "archived";
217
- }>>;
218
- }, z.core.$strip>, z.ZodTransform<{
219
- parentId: number | null;
220
- status?: "active" | "archived" | undefined;
221
- } | {
222
- parentId?: number | null | undefined;
223
- status: "active" | "archived";
224
- }, {
225
- parentId?: number | null | undefined;
226
- status?: "active" | "archived" | undefined;
227
- }>>>;
228
- query: z.ZodOptional<z.ZodString>;
229
- pagination: z.ZodObject<{
230
- offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
231
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
232
- }, z.core.$strip>;
233
- }, z.core.$strict>;
234
- declare const categorySelectOneQuerySchema: z.ZodPipe<z.ZodObject<{
235
- id: z.ZodOptional<z.ZodInt>;
236
- slug: z.ZodOptional<z.ZodString>;
237
- }, z.core.$strip>, z.ZodTransform<{
238
- id: number;
239
- slug?: string | undefined;
240
- } | {
241
- id?: number | undefined;
242
- slug: string;
243
- }, {
244
- id?: number | undefined;
245
- slug?: string | undefined;
246
- }>>;
247
- declare const categoryCreatePayloadSchema: z.ZodObject<{
248
- slug: z.ZodString;
249
- parentId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodInt>>>;
250
- name: z.ZodRecord<z.ZodEnum<{
251
- en: "en";
252
- ka: "ka";
253
- ru: "ru";
254
- }> & z.core.$partial, z.ZodString>;
255
- }, {
256
- out: {};
257
- in: {};
258
- }>;
259
- declare const categoryUpdatePayloadSchema: z.ZodObject<{
260
- slug: z.ZodOptional<z.ZodString>;
261
- parentId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
262
- status: z.ZodOptional<z.ZodEnum<{
263
- active: "active";
264
- archived: "archived";
265
- }>>;
266
- name: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
267
- en: "en";
268
- ka: "ka";
269
- ru: "ru";
270
- }> & z.core.$partial, z.ZodString>>;
271
- categoryId: z.ZodInt;
272
- }, {
273
- out: {};
274
- in: {};
275
- }>;
366
+ status: z.ZodOptional<
367
+ z.ZodEnum<{
368
+ active: 'active';
369
+ archived: 'archived';
370
+ }>
371
+ >;
372
+ name: z.ZodOptional<
373
+ z.ZodRecord<
374
+ z.ZodEnum<{
375
+ en: 'en';
376
+ ka: 'ka';
377
+ ru: 'ru';
378
+ }> &
379
+ z.core.$partial,
380
+ z.ZodString
381
+ >
382
+ >;
383
+ categoryId: z.ZodInt;
384
+ },
385
+ {
386
+ out: {};
387
+ in: {};
388
+ }
389
+ >;
276
390
  type CategorySearchOptions = z.infer<typeof categorySearchOptionsSchema>;
277
391
  type CategorySearchResult = {
278
392
  categories: Category[];
@@ -283,65 +397,114 @@ type CategoryCreatePayload = z.infer<typeof categoryCreatePayloadSchema>;
283
397
  type CategoryUpdatePayload = z.infer<typeof categoryUpdatePayloadSchema>;
284
398
  //#endregion
285
399
  //#region src/app/domain/(catalog)/countries/countries.schemas.d.ts
286
- declare const countrySchema: z.ZodObject<{
287
- id: z.ZodInt;
288
- code: z.ZodString;
289
- name: z.ZodRecord<z.ZodEnum<{
290
- en: "en";
291
- ka: "ka";
292
- ru: "ru";
293
- }> & z.core.$partial, z.ZodString>;
294
- flagImageUrl: z.ZodString;
295
- updatedAt: z.ZodNullable<z.ZodDate>;
296
- createdAt: z.ZodDate;
297
- }, z.core.$strip>;
400
+ declare const countrySchema: z.ZodObject<
401
+ {
402
+ id: z.ZodInt;
403
+ code: z.ZodString;
404
+ name: z.ZodRecord<
405
+ z.ZodEnum<{
406
+ en: 'en';
407
+ ka: 'ka';
408
+ ru: 'ru';
409
+ }> &
410
+ z.core.$partial,
411
+ z.ZodString
412
+ >;
413
+ flagImageUrl: z.ZodString;
414
+ updatedAt: z.ZodNullable<z.ZodDate>;
415
+ createdAt: z.ZodDate;
416
+ },
417
+ z.core.$strip
418
+ >;
298
419
  type Country = z.infer<typeof countrySchema>;
299
420
  declare const countryIdShape: z.ZodInt;
300
421
  type CountryId = z.infer<typeof countryIdShape>;
301
422
  //#endregion
302
423
  //#region src/app/flows/(catalog)/country/country.schemas.d.ts
303
- declare const countrySearchOptionsSchema: z.ZodObject<{
304
- where: z.ZodOptional<z.ZodPipe<z.ZodObject<{
424
+ declare const countrySearchOptionsSchema: z.ZodObject<
425
+ {
426
+ where: z.ZodOptional<
427
+ z.ZodPipe<
428
+ z.ZodObject<
429
+ {
430
+ code: z.ZodOptional<z.ZodString>;
431
+ },
432
+ z.core.$strip
433
+ >,
434
+ z.ZodTransform<
435
+ {
436
+ code: string;
437
+ },
438
+ {
439
+ code?: string | undefined;
440
+ }
441
+ >
442
+ >
443
+ >;
444
+ query: z.ZodOptional<z.ZodString>;
445
+ pagination: z.ZodObject<
446
+ {
447
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
448
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
449
+ },
450
+ z.core.$strip
451
+ >;
452
+ },
453
+ z.core.$strict
454
+ >;
455
+ declare const countrySelectOneQuerySchema: z.ZodObject<
456
+ {
457
+ id: z.ZodInt;
458
+ },
459
+ z.core.$strip
460
+ >;
461
+ declare const countryCreatePayloadSchema: z.ZodObject<
462
+ {
463
+ code: z.ZodString;
464
+ name: z.ZodPreprocess<
465
+ z.ZodRecord<
466
+ z.ZodEnum<{
467
+ en: 'en';
468
+ ka: 'ka';
469
+ ru: 'ru';
470
+ }> &
471
+ z.core.$partial,
472
+ z.ZodString
473
+ >,
474
+ unknown
475
+ >;
476
+ flagImage: z.ZodFile;
477
+ },
478
+ {
479
+ out: {};
480
+ in: {};
481
+ }
482
+ >;
483
+ declare const countryUpdatePayloadSchema: z.ZodObject<
484
+ {
305
485
  code: z.ZodOptional<z.ZodString>;
306
- }, z.core.$strip>, z.ZodTransform<{
307
- code: string;
308
- }, {
309
- code?: string | undefined;
310
- }>>>;
311
- query: z.ZodOptional<z.ZodString>;
312
- pagination: z.ZodObject<{
313
- offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
314
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
315
- }, z.core.$strip>;
316
- }, z.core.$strict>;
317
- declare const countrySelectOneQuerySchema: z.ZodObject<{
318
- id: z.ZodInt;
319
- }, z.core.$strip>;
320
- declare const countryCreatePayloadSchema: z.ZodObject<{
321
- code: z.ZodString;
322
- name: z.ZodPreprocess<z.ZodRecord<z.ZodEnum<{
323
- en: "en";
324
- ka: "ka";
325
- ru: "ru";
326
- }> & z.core.$partial, z.ZodString>, unknown>;
327
- flagImage: z.ZodFile;
328
- }, {
329
- out: {};
330
- in: {};
331
- }>;
332
- declare const countryUpdatePayloadSchema: z.ZodObject<{
333
- code: z.ZodOptional<z.ZodString>;
334
- name: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodEnum<{
335
- en: "en";
336
- ka: "ka";
337
- ru: "ru";
338
- }> & z.core.$partial, z.ZodString>, unknown>>;
339
- flagImage: z.ZodOptional<z.ZodFile>;
340
- countryId: z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodInt>;
341
- }, {
342
- out: {};
343
- in: {};
344
- }>;
486
+ name: z.ZodOptional<
487
+ z.ZodPreprocess<
488
+ z.ZodRecord<
489
+ z.ZodEnum<{
490
+ en: 'en';
491
+ ka: 'ka';
492
+ ru: 'ru';
493
+ }> &
494
+ z.core.$partial,
495
+ z.ZodString
496
+ >,
497
+ unknown
498
+ >
499
+ >;
500
+ flagImage: z.ZodOptional<z.ZodFile>;
501
+ countryId: z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodInt>;
502
+ },
503
+ {
504
+ out: {};
505
+ in: {};
506
+ }
507
+ >;
345
508
  type CountrySearchOptions = z.infer<typeof countrySearchOptionsSchema>;
346
509
  type CountrySearchResult = {
347
510
  countries: Country[];
@@ -352,12 +515,15 @@ type CountryCreatePayload = z.infer<typeof countryCreatePayloadSchema>;
352
515
  type CountryUpdatePayload = z.infer<typeof countryUpdatePayloadSchema>;
353
516
  //#endregion
354
517
  //#region src/app/domain/(catalog)/measurement-units/measurement-units.schemas.d.ts
355
- declare const measurementUnitSchema: z.ZodObject<{
356
- id: z.ZodInt;
357
- code: z.ZodString;
358
- name: z.ZodString;
359
- decimalPlaces: z.ZodInt;
360
- }, z.core.$strip>;
518
+ declare const measurementUnitSchema: z.ZodObject<
519
+ {
520
+ id: z.ZodInt;
521
+ code: z.ZodString;
522
+ name: z.ZodString;
523
+ decimalPlaces: z.ZodInt;
524
+ },
525
+ z.core.$strip
526
+ >;
361
527
  type MeasurementUnit = z.infer<typeof measurementUnitSchema>;
362
528
  declare const measurementUnitIdShape: z.ZodInt;
363
529
  type MeasurementUnitId = z.infer<typeof measurementUnitIdShape>;
@@ -368,46 +534,74 @@ type MeasurementUnitListResult = {
368
534
  };
369
535
  //#endregion
370
536
  //#region src/app/domain/(audit)/audit-logs/audit-logs.schemas.d.ts
371
- declare const auditLogSchema: z.ZodObject<{
372
- id: z.ZodInt;
373
- event: z.ZodString;
374
- actorEmployeeId: z.ZodNullable<z.ZodInt>;
375
- payload: z.ZodType<import("drizzle-orm").Json, unknown, z.core.$ZodTypeInternals<import("drizzle-orm").Json, unknown>>;
376
- createdAt: z.ZodDate;
377
- }, z.core.$strip>;
537
+ declare const auditLogSchema: z.ZodObject<
538
+ {
539
+ id: z.ZodInt;
540
+ event: z.ZodString;
541
+ actorEmployeeId: z.ZodNullable<z.ZodInt>;
542
+ payload: z.ZodType<
543
+ import('drizzle-orm').Json,
544
+ unknown,
545
+ z.core.$ZodTypeInternals<import('drizzle-orm').Json, unknown>
546
+ >;
547
+ createdAt: z.ZodDate;
548
+ },
549
+ z.core.$strip
550
+ >;
378
551
  //#endregion
379
552
  //#region src/app/flows/(audit)/audit/audit.enums.d.ts
380
553
  declare const auditLogSourcesArray: readonly ['admin', 'backend'];
381
554
  type AuditLogSource = (typeof auditLogSourcesArray)[number];
382
555
  //#endregion
383
556
  //#region src/app/flows/(audit)/audit/audit.schemas.d.ts
384
- declare const auditLogSearchPayloadSchema: z.ZodObject<{
385
- where: z.ZodOptional<z.ZodPipe<z.ZodObject<{
386
- event: z.ZodOptional<z.ZodString>;
387
- actorEmployeeId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
388
- }, z.core.$strip>, z.ZodTransform<{
389
- event?: string | undefined;
390
- actorEmployeeId: number | null;
391
- } | {
392
- event: string;
393
- actorEmployeeId?: number | null | undefined;
394
- }, {
395
- event?: string | undefined;
396
- actorEmployeeId?: number | null | undefined;
397
- }>>>;
398
- query: z.ZodOptional<z.ZodString>;
399
- pagination: z.ZodObject<{
400
- offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
401
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
402
- }, z.core.$strip>;
403
- }, z.core.$strict>;
404
- declare const auditLogSelectOneQuerySchema: z.ZodObject<{
405
- id: z.ZodInt;
406
- source: z.ZodEnum<{
407
- admin: "admin";
408
- backend: "backend";
409
- }>;
410
- }, z.core.$strip>;
557
+ declare const auditLogSearchPayloadSchema: z.ZodObject<
558
+ {
559
+ where: z.ZodOptional<
560
+ z.ZodPipe<
561
+ z.ZodObject<
562
+ {
563
+ event: z.ZodOptional<z.ZodString>;
564
+ actorEmployeeId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
565
+ },
566
+ z.core.$strip
567
+ >,
568
+ z.ZodTransform<
569
+ | {
570
+ event?: string | undefined;
571
+ actorEmployeeId: number | null;
572
+ }
573
+ | {
574
+ event: string;
575
+ actorEmployeeId?: number | null | undefined;
576
+ },
577
+ {
578
+ event?: string | undefined;
579
+ actorEmployeeId?: number | null | undefined;
580
+ }
581
+ >
582
+ >
583
+ >;
584
+ query: z.ZodOptional<z.ZodString>;
585
+ pagination: z.ZodObject<
586
+ {
587
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
588
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
589
+ },
590
+ z.core.$strip
591
+ >;
592
+ },
593
+ z.core.$strict
594
+ >;
595
+ declare const auditLogSelectOneQuerySchema: z.ZodObject<
596
+ {
597
+ id: z.ZodInt;
598
+ source: z.ZodEnum<{
599
+ admin: 'admin';
600
+ backend: 'backend';
601
+ }>;
602
+ },
603
+ z.core.$strip
604
+ >;
411
605
  type AuditLogSearchPayload = z.infer<typeof auditLogSearchPayloadSchema>;
412
606
  type AuditLogResult = z.infer<typeof auditLogSchema> & {
413
607
  source: AuditLogSource;
@@ -419,73 +613,104 @@ type AuditLogSearchResult = {
419
613
  };
420
614
  //#endregion
421
615
  //#region src/app/domain/(sales)/customers/customers.schemas.d.ts
422
- declare const customerSchema: z.ZodObject<{
423
- id: z.ZodInt;
424
- type: z.ZodEnum<{
425
- individual: "individual";
426
- individual_entrepreneur: "individual_entrepreneur";
427
- legal_entity: "legal_entity";
428
- }>;
429
- name: z.ZodString;
430
- identificationNumber: z.ZodNullable<z.ZodString>;
431
- emailAddress: z.ZodNullable<z.ZodString>;
432
- phoneNumber: z.ZodNullable<z.ZodString>;
433
- notes: z.ZodNullable<z.ZodString>;
434
- updatedAt: z.ZodNullable<z.ZodDate>;
435
- createdAt: z.ZodDate;
436
- }, z.core.$strip>;
616
+ declare const customerSchema: z.ZodObject<
617
+ {
618
+ id: z.ZodInt;
619
+ type: z.ZodEnum<{
620
+ individual: 'individual';
621
+ individual_entrepreneur: 'individual_entrepreneur';
622
+ legal_entity: 'legal_entity';
623
+ }>;
624
+ name: z.ZodString;
625
+ identificationNumber: z.ZodNullable<z.ZodString>;
626
+ emailAddress: z.ZodNullable<z.ZodString>;
627
+ phoneNumber: z.ZodNullable<z.ZodString>;
628
+ notes: z.ZodNullable<z.ZodString>;
629
+ updatedAt: z.ZodNullable<z.ZodDate>;
630
+ createdAt: z.ZodDate;
631
+ },
632
+ z.core.$strip
633
+ >;
437
634
  type Customer = z.infer<typeof customerSchema>;
438
635
  declare const customerIdShape: z.ZodInt;
439
636
  type CustomerId = z.infer<typeof customerIdShape>;
440
637
  //#endregion
441
638
  //#region src/app/flows/(sales)/customer/customer.schemas.d.ts
442
- declare const customerSearchOptionsSchema: z.ZodObject<{
443
- where: z.ZodOptional<z.ZodPipe<z.ZodObject<{
444
- type: z.ZodOptional<z.ZodEnum<{
445
- individual: "individual";
446
- individual_entrepreneur: "individual_entrepreneur";
447
- legal_entity: "legal_entity";
448
- }>>;
449
- }, z.core.$strip>, z.ZodTransform<{
450
- type: "individual" | "individual_entrepreneur" | "legal_entity";
451
- }, {
452
- type?: "individual" | "individual_entrepreneur" | "legal_entity" | undefined;
453
- }>>>;
454
- query: z.ZodOptional<z.ZodString>;
455
- pagination: z.ZodObject<{
456
- offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
457
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
458
- }, z.core.$strip>;
459
- }, z.core.$strict>;
460
- declare const customerSelectOneQuerySchema: z.ZodObject<{
461
- id: z.ZodInt;
462
- }, z.core.$strip>;
463
- declare const customerCreatePayloadSchema: z.ZodObject<{
464
- type: z.ZodEnum<{
465
- individual: "individual";
466
- individual_entrepreneur: "individual_entrepreneur";
467
- legal_entity: "legal_entity";
468
- }>;
469
- name: z.ZodString;
470
- identificationNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
471
- emailAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
472
- phoneNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
473
- notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
474
- }, {
475
- out: {};
476
- in: {};
477
- }>;
478
- declare const customerUpdatePayloadSchema: z.ZodObject<{
479
- name: z.ZodOptional<z.ZodString>;
480
- identificationNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
481
- emailAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
482
- phoneNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
483
- notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
484
- customerId: z.ZodInt;
485
- }, {
486
- out: {};
487
- in: {};
488
- }>;
639
+ declare const customerSearchOptionsSchema: z.ZodObject<
640
+ {
641
+ where: z.ZodOptional<
642
+ z.ZodPipe<
643
+ z.ZodObject<
644
+ {
645
+ type: z.ZodOptional<
646
+ z.ZodEnum<{
647
+ individual: 'individual';
648
+ individual_entrepreneur: 'individual_entrepreneur';
649
+ legal_entity: 'legal_entity';
650
+ }>
651
+ >;
652
+ },
653
+ z.core.$strip
654
+ >,
655
+ z.ZodTransform<
656
+ {
657
+ type: 'individual' | 'individual_entrepreneur' | 'legal_entity';
658
+ },
659
+ {
660
+ type?: 'individual' | 'individual_entrepreneur' | 'legal_entity' | undefined;
661
+ }
662
+ >
663
+ >
664
+ >;
665
+ query: z.ZodOptional<z.ZodString>;
666
+ pagination: z.ZodObject<
667
+ {
668
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
669
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
670
+ },
671
+ z.core.$strip
672
+ >;
673
+ },
674
+ z.core.$strict
675
+ >;
676
+ declare const customerSelectOneQuerySchema: z.ZodObject<
677
+ {
678
+ id: z.ZodInt;
679
+ },
680
+ z.core.$strip
681
+ >;
682
+ declare const customerCreatePayloadSchema: z.ZodObject<
683
+ {
684
+ type: z.ZodEnum<{
685
+ individual: 'individual';
686
+ individual_entrepreneur: 'individual_entrepreneur';
687
+ legal_entity: 'legal_entity';
688
+ }>;
689
+ name: z.ZodString;
690
+ identificationNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
691
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
692
+ phoneNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
693
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
694
+ },
695
+ {
696
+ out: {};
697
+ in: {};
698
+ }
699
+ >;
700
+ declare const customerUpdatePayloadSchema: z.ZodObject<
701
+ {
702
+ name: z.ZodOptional<z.ZodString>;
703
+ identificationNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
704
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
705
+ phoneNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
706
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
707
+ customerId: z.ZodInt;
708
+ },
709
+ {
710
+ out: {};
711
+ in: {};
712
+ }
713
+ >;
489
714
  type CustomerSearchOptions = z.infer<typeof customerSearchOptionsSchema>;
490
715
  type CustomerSearchResult = {
491
716
  customers: Customer[];
@@ -496,115 +721,151 @@ type CustomerCreatePayload = z.infer<typeof customerCreatePayloadSchema>;
496
721
  type CustomerUpdatePayload = z.infer<typeof customerUpdatePayloadSchema>;
497
722
  //#endregion
498
723
  //#region src/app/flows/(procurement)/delivery/delivery.schemas.d.ts
499
- declare const deliveryCreatePayloadSchema: z.ZodObject<{
500
- supplierId: z.ZodInt;
501
- warehouseId: z.ZodInt;
502
- currencyId: z.ZodInt;
503
- exchangeRateId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
504
- }, {
505
- out: {};
506
- in: {};
507
- }>;
508
- declare const deliverySelectOneQuerySchema: z.ZodObject<{
509
- id: z.ZodInt;
510
- }, z.core.$strip>;
511
- declare const deliveryUpdatePayloadSchema: z.ZodObject<{
512
- supplierId: z.ZodOptional<z.ZodInt>;
513
- warehouseId: z.ZodOptional<z.ZodInt>;
514
- currencyId: z.ZodOptional<z.ZodInt>;
515
- exchangeRateId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
516
- deliveryId: z.ZodInt;
517
- }, {
518
- out: {};
519
- in: {};
520
- }>;
521
- declare const deliverySearchOptionsSchema: z.ZodObject<{
522
- where: z.ZodOptional<z.ZodPipe<z.ZodObject<{
724
+ declare const deliveryCreatePayloadSchema: z.ZodObject<
725
+ {
726
+ supplierId: z.ZodInt;
727
+ warehouseId: z.ZodInt;
728
+ currencyId: z.ZodInt;
729
+ exchangeRateId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
730
+ },
731
+ {
732
+ out: {};
733
+ in: {};
734
+ }
735
+ >;
736
+ declare const deliverySelectOneQuerySchema: z.ZodObject<
737
+ {
738
+ id: z.ZodInt;
739
+ },
740
+ z.core.$strip
741
+ >;
742
+ declare const deliveryUpdatePayloadSchema: z.ZodObject<
743
+ {
523
744
  supplierId: z.ZodOptional<z.ZodInt>;
524
745
  warehouseId: z.ZodOptional<z.ZodInt>;
525
746
  currencyId: z.ZodOptional<z.ZodInt>;
526
- status: z.ZodOptional<z.ZodEnum<{
527
- draft: "draft";
528
- posted: "posted";
529
- }>>;
530
- createdAtFrom: z.ZodOptional<z.ZodCoercedDate<unknown>>;
531
- createdAtTo: z.ZodOptional<z.ZodCoercedDate<unknown>>;
532
- }, z.core.$strip>, z.ZodTransform<{
533
- supplierId?: number | undefined;
534
- warehouseId?: number | undefined;
535
- currencyId?: number | undefined;
536
- status?: "draft" | "posted" | undefined;
537
- createdAtFrom: Date;
538
- createdAtTo?: Date | undefined;
539
- } | {
540
- supplierId?: number | undefined;
541
- warehouseId?: number | undefined;
542
- currencyId?: number | undefined;
543
- status?: "draft" | "posted" | undefined;
544
- createdAtFrom?: Date | undefined;
545
- createdAtTo: Date;
546
- } | {
547
- supplierId?: number | undefined;
548
- warehouseId?: number | undefined;
549
- currencyId: number;
550
- status?: "draft" | "posted" | undefined;
551
- createdAtFrom?: Date | undefined;
552
- createdAtTo?: Date | undefined;
553
- } | {
554
- supplierId?: number | undefined;
555
- warehouseId?: number | undefined;
556
- currencyId?: number | undefined;
557
- status: "draft" | "posted";
558
- createdAtFrom?: Date | undefined;
559
- createdAtTo?: Date | undefined;
560
- } | {
561
- supplierId: number;
562
- warehouseId?: number | undefined;
563
- currencyId?: number | undefined;
564
- status?: "draft" | "posted" | undefined;
565
- createdAtFrom?: Date | undefined;
566
- createdAtTo?: Date | undefined;
567
- } | {
568
- supplierId?: number | undefined;
569
- warehouseId: number;
570
- currencyId?: number | undefined;
571
- status?: "draft" | "posted" | undefined;
572
- createdAtFrom?: Date | undefined;
573
- createdAtTo?: Date | undefined;
574
- }, {
575
- supplierId?: number | undefined;
576
- warehouseId?: number | undefined;
577
- currencyId?: number | undefined;
578
- status?: "draft" | "posted" | undefined;
579
- createdAtFrom?: Date | undefined;
580
- createdAtTo?: Date | undefined;
581
- }>>>;
582
- query: z.ZodOptional<z.ZodString>;
583
- pagination: z.ZodObject<{
584
- offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
585
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
586
- }, z.core.$strip>;
587
- }, z.core.$strict>;
588
- declare const deliverySearchItemSchema: z.ZodObject<{
589
- id: z.ZodInt;
590
- code: z.ZodString;
591
- supplierId: z.ZodInt;
592
- warehouseId: z.ZodInt;
593
- currencyId: z.ZodInt;
594
- status: z.ZodEnum<{
595
- draft: "draft";
596
- posted: "posted";
597
- }>;
598
- exchangeRateId: z.ZodNullable<z.ZodInt>;
599
- exchangeRate: z.ZodNullable<z.ZodString>;
600
- exchangeRateValidFromDate: z.ZodNullable<z.ZodISODate>;
601
- postedAt: z.ZodNullable<z.ZodDate>;
602
- updatedAt: z.ZodNullable<z.ZodDate>;
603
- createdAt: z.ZodDate;
604
- supplierName: z.ZodString;
605
- warehouseName: z.ZodString;
606
- currencyCode: z.ZodString;
607
- }, z.core.$strip>;
747
+ exchangeRateId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
748
+ deliveryId: z.ZodInt;
749
+ },
750
+ {
751
+ out: {};
752
+ in: {};
753
+ }
754
+ >;
755
+ declare const deliverySearchOptionsSchema: z.ZodObject<
756
+ {
757
+ where: z.ZodOptional<
758
+ z.ZodPipe<
759
+ z.ZodObject<
760
+ {
761
+ supplierId: z.ZodOptional<z.ZodInt>;
762
+ warehouseId: z.ZodOptional<z.ZodInt>;
763
+ currencyId: z.ZodOptional<z.ZodInt>;
764
+ status: z.ZodOptional<
765
+ z.ZodEnum<{
766
+ draft: 'draft';
767
+ posted: 'posted';
768
+ }>
769
+ >;
770
+ createdAtFrom: z.ZodOptional<z.ZodCoercedDate<unknown>>;
771
+ createdAtTo: z.ZodOptional<z.ZodCoercedDate<unknown>>;
772
+ },
773
+ z.core.$strip
774
+ >,
775
+ z.ZodTransform<
776
+ | {
777
+ supplierId?: number | undefined;
778
+ warehouseId?: number | undefined;
779
+ currencyId?: number | undefined;
780
+ status?: 'draft' | 'posted' | undefined;
781
+ createdAtFrom: Date;
782
+ createdAtTo?: Date | undefined;
783
+ }
784
+ | {
785
+ supplierId?: number | undefined;
786
+ warehouseId?: number | undefined;
787
+ currencyId?: number | undefined;
788
+ status?: 'draft' | 'posted' | undefined;
789
+ createdAtFrom?: Date | undefined;
790
+ createdAtTo: Date;
791
+ }
792
+ | {
793
+ supplierId?: number | undefined;
794
+ warehouseId?: number | undefined;
795
+ currencyId: number;
796
+ status?: 'draft' | 'posted' | undefined;
797
+ createdAtFrom?: Date | undefined;
798
+ createdAtTo?: Date | undefined;
799
+ }
800
+ | {
801
+ supplierId?: number | undefined;
802
+ warehouseId?: number | undefined;
803
+ currencyId?: number | undefined;
804
+ status: 'draft' | 'posted';
805
+ createdAtFrom?: Date | undefined;
806
+ createdAtTo?: Date | undefined;
807
+ }
808
+ | {
809
+ supplierId: number;
810
+ warehouseId?: number | undefined;
811
+ currencyId?: number | undefined;
812
+ status?: 'draft' | 'posted' | undefined;
813
+ createdAtFrom?: Date | undefined;
814
+ createdAtTo?: Date | undefined;
815
+ }
816
+ | {
817
+ supplierId?: number | undefined;
818
+ warehouseId: number;
819
+ currencyId?: number | undefined;
820
+ status?: 'draft' | 'posted' | undefined;
821
+ createdAtFrom?: Date | undefined;
822
+ createdAtTo?: Date | undefined;
823
+ },
824
+ {
825
+ supplierId?: number | undefined;
826
+ warehouseId?: number | undefined;
827
+ currencyId?: number | undefined;
828
+ status?: 'draft' | 'posted' | undefined;
829
+ createdAtFrom?: Date | undefined;
830
+ createdAtTo?: Date | undefined;
831
+ }
832
+ >
833
+ >
834
+ >;
835
+ query: z.ZodOptional<z.ZodString>;
836
+ pagination: z.ZodObject<
837
+ {
838
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
839
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
840
+ },
841
+ z.core.$strip
842
+ >;
843
+ },
844
+ z.core.$strict
845
+ >;
846
+ declare const deliverySearchItemSchema: z.ZodObject<
847
+ {
848
+ id: z.ZodInt;
849
+ code: z.ZodString;
850
+ supplierId: z.ZodInt;
851
+ warehouseId: z.ZodInt;
852
+ currencyId: z.ZodInt;
853
+ status: z.ZodEnum<{
854
+ draft: 'draft';
855
+ posted: 'posted';
856
+ }>;
857
+ exchangeRateId: z.ZodNullable<z.ZodInt>;
858
+ exchangeRate: z.ZodNullable<z.ZodString>;
859
+ exchangeRateValidFromDate: z.ZodNullable<z.ZodISODate>;
860
+ postedAt: z.ZodNullable<z.ZodDate>;
861
+ updatedAt: z.ZodNullable<z.ZodDate>;
862
+ createdAt: z.ZodDate;
863
+ supplierName: z.ZodString;
864
+ warehouseName: z.ZodString;
865
+ currencyCode: z.ZodString;
866
+ },
867
+ z.core.$strip
868
+ >;
608
869
  type DeliveryCreatePayload = z.infer<typeof deliveryCreatePayloadSchema>;
609
870
  type DeliverySelectOneQuery = z.infer<typeof deliverySelectOneQuerySchema>;
610
871
  type DeliverySearchOptions = z.infer<typeof deliverySearchOptionsSchema>;
@@ -614,170 +875,115 @@ type DeliverySearchResult = {
614
875
  };
615
876
  type DeliveryUpdatePayload = z.infer<typeof deliveryUpdatePayloadSchema>;
616
877
  type DeliverySearchItem = z.infer<typeof deliverySearchItemSchema>;
617
- declare const deliveryDeletePayloadSchema: z.ZodObject<{
618
- deliveryId: z.ZodInt;
619
- }, z.core.$strip>;
620
- declare const deliveryPostPayloadSchema: z.ZodObject<{
621
- deliveryId: z.ZodInt;
622
- }, z.core.$strip>;
623
- declare const deliveryItemAddPayloadSchema: z.ZodObject<{
624
- deliveryId: z.ZodInt;
625
- productVariantId: z.ZodInt;
626
- unitCost: z.ZodNullable<z.ZodString>;
627
- supplierLotNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
628
- expiresOn: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
629
- quantity: z.ZodOptional<z.ZodNumber>;
630
- }, {
631
- out: {};
632
- in: {};
633
- }>;
634
- declare const deliveryItemUpdatePayloadSchema: z.ZodObject<{
635
- quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
636
- unitCost: z.ZodOptional<z.ZodNullable<z.ZodString>>;
637
- supplierLotNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
638
- expiresOn: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
639
- deliveryItemId: z.ZodInt;
640
- expectedRevision: z.ZodInt;
641
- }, {
642
- out: {};
643
- in: {};
644
- }>;
645
- declare const deliveryItemDeletePayloadSchema: z.ZodObject<{
646
- deliveryItemId: z.ZodInt;
647
- expectedRevision: z.ZodInt;
648
- }, z.core.$strip>;
649
- declare const deliveryItemCatalogDetailsSchema: z.ZodObject<{
650
- product: z.ZodObject<{
651
- id: z.ZodInt;
652
- model: z.ZodNullable<z.ZodString>;
653
- name: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
654
- en: "en";
655
- ka: "ka";
656
- ru: "ru";
657
- }> & z.core.$partial, z.ZodString>>;
658
- image: z.ZodNullable<z.ZodObject<{
659
- src: z.ZodURL;
660
- isBanner: z.ZodBoolean;
661
- }, z.core.$strip>>;
662
- }, z.core.$strip>;
663
- productVariant: z.ZodObject<{
664
- id: z.ZodInt;
665
- sku: z.ZodNullable<z.ZodString>;
666
- name: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
667
- en: "en";
668
- ka: "ka";
669
- ru: "ru";
670
- }> & z.core.$partial, z.ZodString>>;
671
- barcodes: z.ZodArray<z.ZodString>;
672
- }, z.core.$strip>;
673
- measurementUnit: z.ZodObject<{
674
- id: z.ZodInt;
675
- code: z.ZodString;
676
- name: z.ZodString;
677
- decimalPlaces: z.ZodInt;
678
- }, z.core.$strip>;
679
- }, z.core.$strip>;
680
- declare const deliveryItemDetailsSchema: z.ZodObject<{
681
- id: z.ZodInt;
682
- deliveryId: z.ZodInt;
683
- productVariantId: z.ZodInt;
684
- quantity: z.ZodNullable<z.ZodNumber>;
685
- unitCost: z.ZodNullable<z.ZodString>;
686
- unitCostBase: z.ZodNullable<z.ZodString>;
687
- supplierLotNumber: z.ZodNullable<z.ZodString>;
688
- expiresOn: z.ZodNullable<z.ZodISODate>;
689
- revision: z.ZodInt;
690
- updatedAt: z.ZodNullable<z.ZodDate>;
691
- createdAt: z.ZodDate;
692
- product: z.ZodObject<{
693
- id: z.ZodInt;
694
- model: z.ZodNullable<z.ZodString>;
695
- name: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
696
- en: "en";
697
- ka: "ka";
698
- ru: "ru";
699
- }> & z.core.$partial, z.ZodString>>;
700
- image: z.ZodNullable<z.ZodObject<{
701
- src: z.ZodURL;
702
- isBanner: z.ZodBoolean;
703
- }, z.core.$strip>>;
704
- }, z.core.$strip>;
705
- productVariant: z.ZodObject<{
706
- id: z.ZodInt;
707
- sku: z.ZodNullable<z.ZodString>;
708
- name: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
709
- en: "en";
710
- ka: "ka";
711
- ru: "ru";
712
- }> & z.core.$partial, z.ZodString>>;
713
- barcodes: z.ZodArray<z.ZodString>;
714
- }, z.core.$strip>;
715
- measurementUnit: z.ZodObject<{
716
- id: z.ZodInt;
717
- code: z.ZodString;
718
- name: z.ZodString;
719
- decimalPlaces: z.ZodInt;
720
- }, z.core.$strip>;
721
- updatedByEmployee: z.ZodNullable<z.ZodObject<{
722
- id: z.ZodInt;
723
- fullName: z.ZodString;
724
- }, z.core.$strip>>;
725
- }, z.core.$strip>;
726
- declare const deliveryItemScanPayloadSchema: z.ZodObject<{
727
- deliveryId: z.ZodInt;
728
- barcode: z.ZodString;
729
- }, z.core.$strip>;
730
- declare const deliveryItemScanResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
731
- outcome: z.ZodLiteral<"added">;
732
- deliveryItem: z.ZodObject<{
733
- id: z.ZodInt;
878
+ declare const deliveryDeletePayloadSchema: z.ZodObject<
879
+ {
880
+ deliveryId: z.ZodInt;
881
+ },
882
+ z.core.$strip
883
+ >;
884
+ declare const deliveryPostPayloadSchema: z.ZodObject<
885
+ {
886
+ deliveryId: z.ZodInt;
887
+ },
888
+ z.core.$strip
889
+ >;
890
+ declare const deliveryItemAddPayloadSchema: z.ZodObject<
891
+ {
734
892
  deliveryId: z.ZodInt;
735
893
  productVariantId: z.ZodInt;
736
- quantity: z.ZodNullable<z.ZodNumber>;
737
894
  unitCost: z.ZodNullable<z.ZodString>;
738
- unitCostBase: z.ZodNullable<z.ZodString>;
739
- supplierLotNumber: z.ZodNullable<z.ZodString>;
740
- expiresOn: z.ZodNullable<z.ZodISODate>;
741
- revision: z.ZodInt;
742
- updatedAt: z.ZodNullable<z.ZodDate>;
743
- createdAt: z.ZodDate;
744
- product: z.ZodObject<{
745
- id: z.ZodInt;
746
- model: z.ZodNullable<z.ZodString>;
747
- name: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
748
- en: "en";
749
- ka: "ka";
750
- ru: "ru";
751
- }> & z.core.$partial, z.ZodString>>;
752
- image: z.ZodNullable<z.ZodObject<{
753
- src: z.ZodURL;
754
- isBanner: z.ZodBoolean;
755
- }, z.core.$strip>>;
756
- }, z.core.$strip>;
757
- productVariant: z.ZodObject<{
758
- id: z.ZodInt;
759
- sku: z.ZodNullable<z.ZodString>;
760
- name: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
761
- en: "en";
762
- ka: "ka";
763
- ru: "ru";
764
- }> & z.core.$partial, z.ZodString>>;
765
- barcodes: z.ZodArray<z.ZodString>;
766
- }, z.core.$strip>;
767
- measurementUnit: z.ZodObject<{
768
- id: z.ZodInt;
769
- code: z.ZodString;
770
- name: z.ZodString;
771
- decimalPlaces: z.ZodInt;
772
- }, z.core.$strip>;
773
- updatedByEmployee: z.ZodNullable<z.ZodObject<{
774
- id: z.ZodInt;
775
- fullName: z.ZodString;
776
- }, z.core.$strip>>;
777
- }, z.core.$strip>;
778
- }, z.core.$strip>, z.ZodObject<{
779
- outcome: z.ZodLiteral<"unchanged">;
780
- deliveryItem: z.ZodObject<{
895
+ supplierLotNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
896
+ expiresOn: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
897
+ quantity: z.ZodOptional<z.ZodNumber>;
898
+ },
899
+ {
900
+ out: {};
901
+ in: {};
902
+ }
903
+ >;
904
+ declare const deliveryItemUpdatePayloadSchema: z.ZodObject<
905
+ {
906
+ quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
907
+ unitCost: z.ZodOptional<z.ZodNullable<z.ZodString>>;
908
+ supplierLotNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
909
+ expiresOn: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
910
+ deliveryItemId: z.ZodInt;
911
+ expectedRevision: z.ZodInt;
912
+ },
913
+ {
914
+ out: {};
915
+ in: {};
916
+ }
917
+ >;
918
+ declare const deliveryItemDeletePayloadSchema: z.ZodObject<
919
+ {
920
+ deliveryItemId: z.ZodInt;
921
+ expectedRevision: z.ZodInt;
922
+ },
923
+ z.core.$strip
924
+ >;
925
+ declare const deliveryItemCatalogDetailsSchema: z.ZodObject<
926
+ {
927
+ product: z.ZodObject<
928
+ {
929
+ id: z.ZodInt;
930
+ model: z.ZodNullable<z.ZodString>;
931
+ name: z.ZodNullable<
932
+ z.ZodRecord<
933
+ z.ZodEnum<{
934
+ en: 'en';
935
+ ka: 'ka';
936
+ ru: 'ru';
937
+ }> &
938
+ z.core.$partial,
939
+ z.ZodString
940
+ >
941
+ >;
942
+ image: z.ZodNullable<
943
+ z.ZodObject<
944
+ {
945
+ src: z.ZodURL;
946
+ isBanner: z.ZodBoolean;
947
+ },
948
+ z.core.$strip
949
+ >
950
+ >;
951
+ },
952
+ z.core.$strip
953
+ >;
954
+ productVariant: z.ZodObject<
955
+ {
956
+ id: z.ZodInt;
957
+ sku: z.ZodNullable<z.ZodString>;
958
+ name: z.ZodNullable<
959
+ z.ZodRecord<
960
+ z.ZodEnum<{
961
+ en: 'en';
962
+ ka: 'ka';
963
+ ru: 'ru';
964
+ }> &
965
+ z.core.$partial,
966
+ z.ZodString
967
+ >
968
+ >;
969
+ barcodes: z.ZodArray<z.ZodString>;
970
+ },
971
+ z.core.$strip
972
+ >;
973
+ measurementUnit: z.ZodObject<
974
+ {
975
+ id: z.ZodInt;
976
+ code: z.ZodString;
977
+ name: z.ZodString;
978
+ decimalPlaces: z.ZodInt;
979
+ },
980
+ z.core.$strip
981
+ >;
982
+ },
983
+ z.core.$strip
984
+ >;
985
+ declare const deliveryItemDetailsSchema: z.ZodObject<
986
+ {
781
987
  id: z.ZodInt;
782
988
  deliveryId: z.ZodInt;
783
989
  productVariantId: z.ZodInt;
@@ -789,107 +995,366 @@ declare const deliveryItemScanResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject
789
995
  revision: z.ZodInt;
790
996
  updatedAt: z.ZodNullable<z.ZodDate>;
791
997
  createdAt: z.ZodDate;
792
- product: z.ZodObject<{
793
- id: z.ZodInt;
794
- model: z.ZodNullable<z.ZodString>;
795
- name: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
796
- en: "en";
797
- ka: "ka";
798
- ru: "ru";
799
- }> & z.core.$partial, z.ZodString>>;
800
- image: z.ZodNullable<z.ZodObject<{
801
- src: z.ZodURL;
802
- isBanner: z.ZodBoolean;
803
- }, z.core.$strip>>;
804
- }, z.core.$strip>;
805
- productVariant: z.ZodObject<{
806
- id: z.ZodInt;
807
- sku: z.ZodNullable<z.ZodString>;
808
- name: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
809
- en: "en";
810
- ka: "ka";
811
- ru: "ru";
812
- }> & z.core.$partial, z.ZodString>>;
813
- barcodes: z.ZodArray<z.ZodString>;
814
- }, z.core.$strip>;
815
- measurementUnit: z.ZodObject<{
816
- id: z.ZodInt;
817
- code: z.ZodString;
818
- name: z.ZodString;
819
- decimalPlaces: z.ZodInt;
820
- }, z.core.$strip>;
821
- updatedByEmployee: z.ZodNullable<z.ZodObject<{
822
- id: z.ZodInt;
823
- fullName: z.ZodString;
824
- }, z.core.$strip>>;
825
- }, z.core.$strip>;
826
- }, z.core.$strip>, z.ZodObject<{
827
- outcome: z.ZodLiteral<"product-variant-not-found">;
828
- barcode: z.ZodString;
829
- }, z.core.$strip>], "outcome">;
830
- declare const deliveryDetailsSchema: z.ZodObject<{
831
- id: z.ZodInt;
832
- code: z.ZodString;
833
- supplierId: z.ZodInt;
834
- warehouseId: z.ZodInt;
835
- currencyId: z.ZodInt;
836
- status: z.ZodEnum<{
837
- draft: "draft";
838
- posted: "posted";
839
- }>;
840
- exchangeRateId: z.ZodNullable<z.ZodInt>;
841
- exchangeRate: z.ZodNullable<z.ZodString>;
842
- exchangeRateValidFromDate: z.ZodNullable<z.ZodISODate>;
843
- postedAt: z.ZodNullable<z.ZodDate>;
844
- updatedAt: z.ZodNullable<z.ZodDate>;
845
- createdAt: z.ZodDate;
846
- items: z.ZodArray<z.ZodObject<{
847
- id: z.ZodInt;
998
+ product: z.ZodObject<
999
+ {
1000
+ id: z.ZodInt;
1001
+ model: z.ZodNullable<z.ZodString>;
1002
+ name: z.ZodNullable<
1003
+ z.ZodRecord<
1004
+ z.ZodEnum<{
1005
+ en: 'en';
1006
+ ka: 'ka';
1007
+ ru: 'ru';
1008
+ }> &
1009
+ z.core.$partial,
1010
+ z.ZodString
1011
+ >
1012
+ >;
1013
+ image: z.ZodNullable<
1014
+ z.ZodObject<
1015
+ {
1016
+ src: z.ZodURL;
1017
+ isBanner: z.ZodBoolean;
1018
+ },
1019
+ z.core.$strip
1020
+ >
1021
+ >;
1022
+ },
1023
+ z.core.$strip
1024
+ >;
1025
+ productVariant: z.ZodObject<
1026
+ {
1027
+ id: z.ZodInt;
1028
+ sku: z.ZodNullable<z.ZodString>;
1029
+ name: z.ZodNullable<
1030
+ z.ZodRecord<
1031
+ z.ZodEnum<{
1032
+ en: 'en';
1033
+ ka: 'ka';
1034
+ ru: 'ru';
1035
+ }> &
1036
+ z.core.$partial,
1037
+ z.ZodString
1038
+ >
1039
+ >;
1040
+ barcodes: z.ZodArray<z.ZodString>;
1041
+ },
1042
+ z.core.$strip
1043
+ >;
1044
+ measurementUnit: z.ZodObject<
1045
+ {
1046
+ id: z.ZodInt;
1047
+ code: z.ZodString;
1048
+ name: z.ZodString;
1049
+ decimalPlaces: z.ZodInt;
1050
+ },
1051
+ z.core.$strip
1052
+ >;
1053
+ updatedByEmployee: z.ZodNullable<
1054
+ z.ZodObject<
1055
+ {
1056
+ id: z.ZodInt;
1057
+ fullName: z.ZodString;
1058
+ },
1059
+ z.core.$strip
1060
+ >
1061
+ >;
1062
+ },
1063
+ z.core.$strip
1064
+ >;
1065
+ declare const deliveryItemScanPayloadSchema: z.ZodObject<
1066
+ {
848
1067
  deliveryId: z.ZodInt;
849
- productVariantId: z.ZodInt;
850
- quantity: z.ZodNullable<z.ZodNumber>;
851
- unitCost: z.ZodNullable<z.ZodString>;
852
- unitCostBase: z.ZodNullable<z.ZodString>;
853
- supplierLotNumber: z.ZodNullable<z.ZodString>;
854
- expiresOn: z.ZodNullable<z.ZodISODate>;
855
- revision: z.ZodInt;
1068
+ barcode: z.ZodString;
1069
+ },
1070
+ z.core.$strip
1071
+ >;
1072
+ declare const deliveryItemScanResultSchema: z.ZodDiscriminatedUnion<
1073
+ [
1074
+ z.ZodObject<
1075
+ {
1076
+ outcome: z.ZodLiteral<'added'>;
1077
+ deliveryItem: z.ZodObject<
1078
+ {
1079
+ id: z.ZodInt;
1080
+ deliveryId: z.ZodInt;
1081
+ productVariantId: z.ZodInt;
1082
+ quantity: z.ZodNullable<z.ZodNumber>;
1083
+ unitCost: z.ZodNullable<z.ZodString>;
1084
+ unitCostBase: z.ZodNullable<z.ZodString>;
1085
+ supplierLotNumber: z.ZodNullable<z.ZodString>;
1086
+ expiresOn: z.ZodNullable<z.ZodISODate>;
1087
+ revision: z.ZodInt;
1088
+ updatedAt: z.ZodNullable<z.ZodDate>;
1089
+ createdAt: z.ZodDate;
1090
+ product: z.ZodObject<
1091
+ {
1092
+ id: z.ZodInt;
1093
+ model: z.ZodNullable<z.ZodString>;
1094
+ name: z.ZodNullable<
1095
+ z.ZodRecord<
1096
+ z.ZodEnum<{
1097
+ en: 'en';
1098
+ ka: 'ka';
1099
+ ru: 'ru';
1100
+ }> &
1101
+ z.core.$partial,
1102
+ z.ZodString
1103
+ >
1104
+ >;
1105
+ image: z.ZodNullable<
1106
+ z.ZodObject<
1107
+ {
1108
+ src: z.ZodURL;
1109
+ isBanner: z.ZodBoolean;
1110
+ },
1111
+ z.core.$strip
1112
+ >
1113
+ >;
1114
+ },
1115
+ z.core.$strip
1116
+ >;
1117
+ productVariant: z.ZodObject<
1118
+ {
1119
+ id: z.ZodInt;
1120
+ sku: z.ZodNullable<z.ZodString>;
1121
+ name: z.ZodNullable<
1122
+ z.ZodRecord<
1123
+ z.ZodEnum<{
1124
+ en: 'en';
1125
+ ka: 'ka';
1126
+ ru: 'ru';
1127
+ }> &
1128
+ z.core.$partial,
1129
+ z.ZodString
1130
+ >
1131
+ >;
1132
+ barcodes: z.ZodArray<z.ZodString>;
1133
+ },
1134
+ z.core.$strip
1135
+ >;
1136
+ measurementUnit: z.ZodObject<
1137
+ {
1138
+ id: z.ZodInt;
1139
+ code: z.ZodString;
1140
+ name: z.ZodString;
1141
+ decimalPlaces: z.ZodInt;
1142
+ },
1143
+ z.core.$strip
1144
+ >;
1145
+ updatedByEmployee: z.ZodNullable<
1146
+ z.ZodObject<
1147
+ {
1148
+ id: z.ZodInt;
1149
+ fullName: z.ZodString;
1150
+ },
1151
+ z.core.$strip
1152
+ >
1153
+ >;
1154
+ },
1155
+ z.core.$strip
1156
+ >;
1157
+ },
1158
+ z.core.$strip
1159
+ >,
1160
+ z.ZodObject<
1161
+ {
1162
+ outcome: z.ZodLiteral<'unchanged'>;
1163
+ deliveryItem: z.ZodObject<
1164
+ {
1165
+ id: z.ZodInt;
1166
+ deliveryId: z.ZodInt;
1167
+ productVariantId: z.ZodInt;
1168
+ quantity: z.ZodNullable<z.ZodNumber>;
1169
+ unitCost: z.ZodNullable<z.ZodString>;
1170
+ unitCostBase: z.ZodNullable<z.ZodString>;
1171
+ supplierLotNumber: z.ZodNullable<z.ZodString>;
1172
+ expiresOn: z.ZodNullable<z.ZodISODate>;
1173
+ revision: z.ZodInt;
1174
+ updatedAt: z.ZodNullable<z.ZodDate>;
1175
+ createdAt: z.ZodDate;
1176
+ product: z.ZodObject<
1177
+ {
1178
+ id: z.ZodInt;
1179
+ model: z.ZodNullable<z.ZodString>;
1180
+ name: z.ZodNullable<
1181
+ z.ZodRecord<
1182
+ z.ZodEnum<{
1183
+ en: 'en';
1184
+ ka: 'ka';
1185
+ ru: 'ru';
1186
+ }> &
1187
+ z.core.$partial,
1188
+ z.ZodString
1189
+ >
1190
+ >;
1191
+ image: z.ZodNullable<
1192
+ z.ZodObject<
1193
+ {
1194
+ src: z.ZodURL;
1195
+ isBanner: z.ZodBoolean;
1196
+ },
1197
+ z.core.$strip
1198
+ >
1199
+ >;
1200
+ },
1201
+ z.core.$strip
1202
+ >;
1203
+ productVariant: z.ZodObject<
1204
+ {
1205
+ id: z.ZodInt;
1206
+ sku: z.ZodNullable<z.ZodString>;
1207
+ name: z.ZodNullable<
1208
+ z.ZodRecord<
1209
+ z.ZodEnum<{
1210
+ en: 'en';
1211
+ ka: 'ka';
1212
+ ru: 'ru';
1213
+ }> &
1214
+ z.core.$partial,
1215
+ z.ZodString
1216
+ >
1217
+ >;
1218
+ barcodes: z.ZodArray<z.ZodString>;
1219
+ },
1220
+ z.core.$strip
1221
+ >;
1222
+ measurementUnit: z.ZodObject<
1223
+ {
1224
+ id: z.ZodInt;
1225
+ code: z.ZodString;
1226
+ name: z.ZodString;
1227
+ decimalPlaces: z.ZodInt;
1228
+ },
1229
+ z.core.$strip
1230
+ >;
1231
+ updatedByEmployee: z.ZodNullable<
1232
+ z.ZodObject<
1233
+ {
1234
+ id: z.ZodInt;
1235
+ fullName: z.ZodString;
1236
+ },
1237
+ z.core.$strip
1238
+ >
1239
+ >;
1240
+ },
1241
+ z.core.$strip
1242
+ >;
1243
+ },
1244
+ z.core.$strip
1245
+ >,
1246
+ z.ZodObject<
1247
+ {
1248
+ outcome: z.ZodLiteral<'product-variant-not-found'>;
1249
+ barcode: z.ZodString;
1250
+ },
1251
+ z.core.$strip
1252
+ >,
1253
+ ],
1254
+ 'outcome'
1255
+ >;
1256
+ declare const deliveryDetailsSchema: z.ZodObject<
1257
+ {
1258
+ id: z.ZodInt;
1259
+ code: z.ZodString;
1260
+ supplierId: z.ZodInt;
1261
+ warehouseId: z.ZodInt;
1262
+ currencyId: z.ZodInt;
1263
+ status: z.ZodEnum<{
1264
+ draft: 'draft';
1265
+ posted: 'posted';
1266
+ }>;
1267
+ exchangeRateId: z.ZodNullable<z.ZodInt>;
1268
+ exchangeRate: z.ZodNullable<z.ZodString>;
1269
+ exchangeRateValidFromDate: z.ZodNullable<z.ZodISODate>;
1270
+ postedAt: z.ZodNullable<z.ZodDate>;
856
1271
  updatedAt: z.ZodNullable<z.ZodDate>;
857
1272
  createdAt: z.ZodDate;
858
- product: z.ZodObject<{
859
- id: z.ZodInt;
860
- model: z.ZodNullable<z.ZodString>;
861
- name: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
862
- en: "en";
863
- ka: "ka";
864
- ru: "ru";
865
- }> & z.core.$partial, z.ZodString>>;
866
- image: z.ZodNullable<z.ZodObject<{
867
- src: z.ZodURL;
868
- isBanner: z.ZodBoolean;
869
- }, z.core.$strip>>;
870
- }, z.core.$strip>;
871
- productVariant: z.ZodObject<{
872
- id: z.ZodInt;
873
- sku: z.ZodNullable<z.ZodString>;
874
- name: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
875
- en: "en";
876
- ka: "ka";
877
- ru: "ru";
878
- }> & z.core.$partial, z.ZodString>>;
879
- barcodes: z.ZodArray<z.ZodString>;
880
- }, z.core.$strip>;
881
- measurementUnit: z.ZodObject<{
882
- id: z.ZodInt;
883
- code: z.ZodString;
884
- name: z.ZodString;
885
- decimalPlaces: z.ZodInt;
886
- }, z.core.$strip>;
887
- updatedByEmployee: z.ZodNullable<z.ZodObject<{
888
- id: z.ZodInt;
889
- fullName: z.ZodString;
890
- }, z.core.$strip>>;
891
- }, z.core.$strip>>;
892
- }, z.core.$strip>;
1273
+ items: z.ZodArray<
1274
+ z.ZodObject<
1275
+ {
1276
+ id: z.ZodInt;
1277
+ deliveryId: z.ZodInt;
1278
+ productVariantId: z.ZodInt;
1279
+ quantity: z.ZodNullable<z.ZodNumber>;
1280
+ unitCost: z.ZodNullable<z.ZodString>;
1281
+ unitCostBase: z.ZodNullable<z.ZodString>;
1282
+ supplierLotNumber: z.ZodNullable<z.ZodString>;
1283
+ expiresOn: z.ZodNullable<z.ZodISODate>;
1284
+ revision: z.ZodInt;
1285
+ updatedAt: z.ZodNullable<z.ZodDate>;
1286
+ createdAt: z.ZodDate;
1287
+ product: z.ZodObject<
1288
+ {
1289
+ id: z.ZodInt;
1290
+ model: z.ZodNullable<z.ZodString>;
1291
+ name: z.ZodNullable<
1292
+ z.ZodRecord<
1293
+ z.ZodEnum<{
1294
+ en: 'en';
1295
+ ka: 'ka';
1296
+ ru: 'ru';
1297
+ }> &
1298
+ z.core.$partial,
1299
+ z.ZodString
1300
+ >
1301
+ >;
1302
+ image: z.ZodNullable<
1303
+ z.ZodObject<
1304
+ {
1305
+ src: z.ZodURL;
1306
+ isBanner: z.ZodBoolean;
1307
+ },
1308
+ z.core.$strip
1309
+ >
1310
+ >;
1311
+ },
1312
+ z.core.$strip
1313
+ >;
1314
+ productVariant: z.ZodObject<
1315
+ {
1316
+ id: z.ZodInt;
1317
+ sku: z.ZodNullable<z.ZodString>;
1318
+ name: z.ZodNullable<
1319
+ z.ZodRecord<
1320
+ z.ZodEnum<{
1321
+ en: 'en';
1322
+ ka: 'ka';
1323
+ ru: 'ru';
1324
+ }> &
1325
+ z.core.$partial,
1326
+ z.ZodString
1327
+ >
1328
+ >;
1329
+ barcodes: z.ZodArray<z.ZodString>;
1330
+ },
1331
+ z.core.$strip
1332
+ >;
1333
+ measurementUnit: z.ZodObject<
1334
+ {
1335
+ id: z.ZodInt;
1336
+ code: z.ZodString;
1337
+ name: z.ZodString;
1338
+ decimalPlaces: z.ZodInt;
1339
+ },
1340
+ z.core.$strip
1341
+ >;
1342
+ updatedByEmployee: z.ZodNullable<
1343
+ z.ZodObject<
1344
+ {
1345
+ id: z.ZodInt;
1346
+ fullName: z.ZodString;
1347
+ },
1348
+ z.core.$strip
1349
+ >
1350
+ >;
1351
+ },
1352
+ z.core.$strip
1353
+ >
1354
+ >;
1355
+ },
1356
+ z.core.$strip
1357
+ >;
893
1358
  type DeliveryDeletePayload = z.infer<typeof deliveryDeletePayloadSchema>;
894
1359
  type DeliveryPostPayload = z.infer<typeof deliveryPostPayloadSchema>;
895
1360
  type DeliveryItemAddPayload = z.infer<typeof deliveryItemAddPayloadSchema>;
@@ -911,85 +1376,120 @@ type DeliverySelectOneResult = {
911
1376
  };
912
1377
  //#endregion
913
1378
  //#region src/app/domain/(procurement)/suppliers/suppliers.schemas.d.ts
914
- declare const supplierSchema: z.ZodObject<{
915
- id: z.ZodInt;
916
- status: z.ZodEnum<{
917
- active: "active";
918
- archived: "archived";
919
- }>;
920
- name: z.ZodString;
921
- identificationNumber: z.ZodNullable<z.ZodString>;
922
- countryId: z.ZodNullable<z.ZodInt>;
923
- emailAddress: z.ZodNullable<z.ZodString>;
924
- phoneNumber: z.ZodNullable<z.ZodString>;
925
- websiteUrl: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodURL>>;
926
- notes: z.ZodNullable<z.ZodString>;
927
- updatedAt: z.ZodNullable<z.ZodDate>;
928
- createdAt: z.ZodDate;
929
- }, z.core.$strip>;
1379
+ declare const supplierSchema: z.ZodObject<
1380
+ {
1381
+ id: z.ZodInt;
1382
+ status: z.ZodEnum<{
1383
+ active: 'active';
1384
+ archived: 'archived';
1385
+ }>;
1386
+ name: z.ZodString;
1387
+ identificationNumber: z.ZodNullable<z.ZodString>;
1388
+ countryId: z.ZodNullable<z.ZodInt>;
1389
+ emailAddress: z.ZodNullable<z.ZodString>;
1390
+ phoneNumber: z.ZodNullable<z.ZodString>;
1391
+ websiteUrl: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodURL>>;
1392
+ notes: z.ZodNullable<z.ZodString>;
1393
+ updatedAt: z.ZodNullable<z.ZodDate>;
1394
+ createdAt: z.ZodDate;
1395
+ },
1396
+ z.core.$strip
1397
+ >;
930
1398
  type Supplier = z.infer<typeof supplierSchema>;
931
1399
  declare const supplierIdShape: z.ZodInt;
932
1400
  type SupplierId = z.infer<typeof supplierIdShape>;
933
1401
  //#endregion
934
1402
  //#region src/app/flows/(procurement)/supplier/supplier.schemas.d.ts
935
- declare const supplierSearchOptionsSchema: z.ZodObject<{
936
- where: z.ZodOptional<z.ZodPipe<z.ZodObject<{
937
- status: z.ZodOptional<z.ZodEnum<{
938
- active: "active";
939
- archived: "archived";
940
- }>>;
1403
+ declare const supplierSearchOptionsSchema: z.ZodObject<
1404
+ {
1405
+ where: z.ZodOptional<
1406
+ z.ZodPipe<
1407
+ z.ZodObject<
1408
+ {
1409
+ status: z.ZodOptional<
1410
+ z.ZodEnum<{
1411
+ active: 'active';
1412
+ archived: 'archived';
1413
+ }>
1414
+ >;
1415
+ countryId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1416
+ },
1417
+ z.core.$strip
1418
+ >,
1419
+ z.ZodTransform<
1420
+ | {
1421
+ status?: 'active' | 'archived' | undefined;
1422
+ countryId: number | null;
1423
+ }
1424
+ | {
1425
+ status: 'active' | 'archived';
1426
+ countryId?: number | null | undefined;
1427
+ },
1428
+ {
1429
+ status?: 'active' | 'archived' | undefined;
1430
+ countryId?: number | null | undefined;
1431
+ }
1432
+ >
1433
+ >
1434
+ >;
1435
+ query: z.ZodOptional<z.ZodString>;
1436
+ pagination: z.ZodObject<
1437
+ {
1438
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1439
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1440
+ },
1441
+ z.core.$strip
1442
+ >;
1443
+ },
1444
+ z.core.$strict
1445
+ >;
1446
+ declare const supplierSelectOneQuerySchema: z.ZodObject<
1447
+ {
1448
+ id: z.ZodInt;
1449
+ },
1450
+ z.core.$strip
1451
+ >;
1452
+ declare const supplierCreatePayloadSchema: z.ZodObject<
1453
+ {
1454
+ name: z.ZodString;
1455
+ identificationNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1456
+ countryId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1457
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1458
+ phoneNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1459
+ websiteUrl: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodURL>>;
1460
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1461
+ },
1462
+ {
1463
+ out: {};
1464
+ in: {};
1465
+ }
1466
+ >;
1467
+ declare const supplierUpdatePayloadSchema: z.ZodObject<
1468
+ {
1469
+ name: z.ZodOptional<z.ZodString>;
1470
+ identificationNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
941
1471
  countryId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
942
- }, z.core.$strip>, z.ZodTransform<{
943
- status?: "active" | "archived" | undefined;
944
- countryId: number | null;
945
- } | {
946
- status: "active" | "archived";
947
- countryId?: number | null | undefined;
948
- }, {
949
- status?: "active" | "archived" | undefined;
950
- countryId?: number | null | undefined;
951
- }>>>;
952
- query: z.ZodOptional<z.ZodString>;
953
- pagination: z.ZodObject<{
954
- offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
955
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
956
- }, z.core.$strip>;
957
- }, z.core.$strict>;
958
- declare const supplierSelectOneQuerySchema: z.ZodObject<{
959
- id: z.ZodInt;
960
- }, z.core.$strip>;
961
- declare const supplierCreatePayloadSchema: z.ZodObject<{
962
- name: z.ZodString;
963
- identificationNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
964
- countryId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
965
- emailAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
966
- phoneNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
967
- websiteUrl: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodURL>>;
968
- notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
969
- }, {
970
- out: {};
971
- in: {};
972
- }>;
973
- declare const supplierUpdatePayloadSchema: z.ZodObject<{
974
- name: z.ZodOptional<z.ZodString>;
975
- identificationNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
976
- countryId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
977
- emailAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
978
- phoneNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
979
- websiteUrl: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodURL>>>;
980
- notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
981
- supplierId: z.ZodInt;
982
- }, {
983
- out: {};
984
- in: {};
985
- }>;
986
- declare const supplierSwitchStatusPayloadSchema: z.ZodObject<{
987
- status: z.ZodEnum<{
988
- active: "active";
989
- archived: "archived";
990
- }>;
991
- supplierId: z.ZodInt;
992
- }, z.core.$strip>;
1472
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1473
+ phoneNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1474
+ websiteUrl: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodURL>>>;
1475
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1476
+ supplierId: z.ZodInt;
1477
+ },
1478
+ {
1479
+ out: {};
1480
+ in: {};
1481
+ }
1482
+ >;
1483
+ declare const supplierSwitchStatusPayloadSchema: z.ZodObject<
1484
+ {
1485
+ status: z.ZodEnum<{
1486
+ active: 'active';
1487
+ archived: 'archived';
1488
+ }>;
1489
+ supplierId: z.ZodInt;
1490
+ },
1491
+ z.core.$strip
1492
+ >;
993
1493
  type SupplierSearchOptions = z.infer<typeof supplierSearchOptionsSchema>;
994
1494
  type SupplierSearchResult = {
995
1495
  suppliers: Supplier[];
@@ -1001,71 +1501,121 @@ type SupplierUpdatePayload = z.infer<typeof supplierUpdatePayloadSchema>;
1001
1501
  type SupplierSwitchStatusPayload = z.infer<typeof supplierSwitchStatusPayloadSchema>;
1002
1502
  //#endregion
1003
1503
  //#region src/app/flows/(warehouse)/stock-balance/stock-balance.schemas.d.ts
1004
- declare const stockBalanceSearchOptionsSchema: z.ZodObject<{
1005
- where: z.ZodOptional<z.ZodPipe<z.ZodObject<{
1006
- warehouseId: z.ZodOptional<z.ZodInt>;
1007
- productVariantId: z.ZodOptional<z.ZodInt>;
1008
- }, z.core.$strip>, z.ZodTransform<{
1009
- warehouseId?: number | undefined;
1010
- productVariantId: number;
1011
- } | {
1012
- warehouseId: number;
1013
- productVariantId?: number | undefined;
1014
- }, {
1015
- warehouseId?: number | undefined;
1016
- productVariantId?: number | undefined;
1017
- }>>>;
1018
- query: z.ZodOptional<z.ZodString>;
1019
- pagination: z.ZodObject<{
1020
- offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1021
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1022
- }, z.core.$strip>;
1023
- }, z.core.$strict>;
1024
- declare const stockBalanceSearchItemSchema: z.ZodObject<{
1025
- id: z.ZodInt;
1026
- warehouseId: z.ZodInt;
1027
- productVariantId: z.ZodInt;
1028
- onHand: z.ZodNumber;
1029
- reserved: z.ZodNumber;
1030
- averageUnitCostBase: z.ZodNullable<z.ZodString>;
1031
- updatedAt: z.ZodNullable<z.ZodDate>;
1032
- createdAt: z.ZodDate;
1033
- available: z.ZodNumber;
1034
- warehouse: z.ZodObject<{
1035
- id: z.ZodInt;
1036
- code: z.ZodString;
1037
- name: z.ZodString;
1038
- }, z.core.$strip>;
1039
- product: z.ZodObject<{
1040
- id: z.ZodInt;
1041
- model: z.ZodNullable<z.ZodString>;
1042
- name: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
1043
- en: "en";
1044
- ka: "ka";
1045
- ru: "ru";
1046
- }> & z.core.$partial, z.ZodString>>;
1047
- image: z.ZodNullable<z.ZodObject<{
1048
- src: z.ZodURL;
1049
- isBanner: z.ZodBoolean;
1050
- }, z.core.$strip>>;
1051
- }, z.core.$strip>;
1052
- productVariant: z.ZodObject<{
1504
+ declare const stockBalanceSearchOptionsSchema: z.ZodObject<
1505
+ {
1506
+ where: z.ZodOptional<
1507
+ z.ZodPipe<
1508
+ z.ZodObject<
1509
+ {
1510
+ warehouseId: z.ZodOptional<z.ZodInt>;
1511
+ productVariantId: z.ZodOptional<z.ZodInt>;
1512
+ },
1513
+ z.core.$strip
1514
+ >,
1515
+ z.ZodTransform<
1516
+ | {
1517
+ warehouseId?: number | undefined;
1518
+ productVariantId: number;
1519
+ }
1520
+ | {
1521
+ warehouseId: number;
1522
+ productVariantId?: number | undefined;
1523
+ },
1524
+ {
1525
+ warehouseId?: number | undefined;
1526
+ productVariantId?: number | undefined;
1527
+ }
1528
+ >
1529
+ >
1530
+ >;
1531
+ query: z.ZodOptional<z.ZodString>;
1532
+ pagination: z.ZodObject<
1533
+ {
1534
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1535
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1536
+ },
1537
+ z.core.$strip
1538
+ >;
1539
+ },
1540
+ z.core.$strict
1541
+ >;
1542
+ declare const stockBalanceSearchItemSchema: z.ZodObject<
1543
+ {
1053
1544
  id: z.ZodInt;
1054
- sku: z.ZodNullable<z.ZodString>;
1055
- name: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
1056
- en: "en";
1057
- ka: "ka";
1058
- ru: "ru";
1059
- }> & z.core.$partial, z.ZodString>>;
1060
- barcodes: z.ZodArray<z.ZodString>;
1061
- }, z.core.$strip>;
1062
- measurementUnit: z.ZodObject<{
1063
- id: z.ZodInt;
1064
- code: z.ZodString;
1065
- name: z.ZodString;
1066
- decimalPlaces: z.ZodInt;
1067
- }, z.core.$strip>;
1068
- }, z.core.$strip>;
1545
+ warehouseId: z.ZodInt;
1546
+ productVariantId: z.ZodInt;
1547
+ onHand: z.ZodNumber;
1548
+ reserved: z.ZodNumber;
1549
+ averageUnitCostBase: z.ZodNullable<z.ZodString>;
1550
+ updatedAt: z.ZodNullable<z.ZodDate>;
1551
+ createdAt: z.ZodDate;
1552
+ available: z.ZodNumber;
1553
+ warehouse: z.ZodObject<
1554
+ {
1555
+ id: z.ZodInt;
1556
+ code: z.ZodString;
1557
+ name: z.ZodString;
1558
+ },
1559
+ z.core.$strip
1560
+ >;
1561
+ product: z.ZodObject<
1562
+ {
1563
+ id: z.ZodInt;
1564
+ model: z.ZodNullable<z.ZodString>;
1565
+ name: z.ZodNullable<
1566
+ z.ZodRecord<
1567
+ z.ZodEnum<{
1568
+ en: 'en';
1569
+ ka: 'ka';
1570
+ ru: 'ru';
1571
+ }> &
1572
+ z.core.$partial,
1573
+ z.ZodString
1574
+ >
1575
+ >;
1576
+ image: z.ZodNullable<
1577
+ z.ZodObject<
1578
+ {
1579
+ src: z.ZodURL;
1580
+ isBanner: z.ZodBoolean;
1581
+ },
1582
+ z.core.$strip
1583
+ >
1584
+ >;
1585
+ },
1586
+ z.core.$strip
1587
+ >;
1588
+ productVariant: z.ZodObject<
1589
+ {
1590
+ id: z.ZodInt;
1591
+ sku: z.ZodNullable<z.ZodString>;
1592
+ name: z.ZodNullable<
1593
+ z.ZodRecord<
1594
+ z.ZodEnum<{
1595
+ en: 'en';
1596
+ ka: 'ka';
1597
+ ru: 'ru';
1598
+ }> &
1599
+ z.core.$partial,
1600
+ z.ZodString
1601
+ >
1602
+ >;
1603
+ barcodes: z.ZodArray<z.ZodString>;
1604
+ },
1605
+ z.core.$strip
1606
+ >;
1607
+ measurementUnit: z.ZodObject<
1608
+ {
1609
+ id: z.ZodInt;
1610
+ code: z.ZodString;
1611
+ name: z.ZodString;
1612
+ decimalPlaces: z.ZodInt;
1613
+ },
1614
+ z.core.$strip
1615
+ >;
1616
+ },
1617
+ z.core.$strip
1618
+ >;
1069
1619
  type StockBalanceSearchOptions = z.infer<typeof stockBalanceSearchOptionsSchema>;
1070
1620
  type StockBalanceSearchItem = z.infer<typeof stockBalanceSearchItemSchema>;
1071
1621
  type StockBalanceSearchResult = {
@@ -1074,76 +1624,111 @@ type StockBalanceSearchResult = {
1074
1624
  };
1075
1625
  //#endregion
1076
1626
  //#region src/app/domain/(warehouse)/warehouses/warehouses.schemas.d.ts
1077
- declare const warehouseSchema: z.ZodObject<{
1078
- id: z.ZodInt;
1079
- code: z.ZodString;
1080
- name: z.ZodString;
1081
- address: z.ZodString;
1082
- status: z.ZodEnum<{
1083
- active: "active";
1084
- archived: "archived";
1085
- }>;
1086
- salesEnabled: z.ZodBoolean;
1087
- updatedAt: z.ZodNullable<z.ZodDate>;
1088
- createdAt: z.ZodDate;
1089
- }, z.core.$strip>;
1627
+ declare const warehouseSchema: z.ZodObject<
1628
+ {
1629
+ id: z.ZodInt;
1630
+ code: z.ZodString;
1631
+ name: z.ZodString;
1632
+ address: z.ZodString;
1633
+ status: z.ZodEnum<{
1634
+ active: 'active';
1635
+ archived: 'archived';
1636
+ }>;
1637
+ salesEnabled: z.ZodBoolean;
1638
+ updatedAt: z.ZodNullable<z.ZodDate>;
1639
+ createdAt: z.ZodDate;
1640
+ },
1641
+ z.core.$strip
1642
+ >;
1090
1643
  type Warehouse = z.infer<typeof warehouseSchema>;
1091
1644
  declare const warehouseIdShape: z.ZodInt;
1092
1645
  type WarehouseId = z.infer<typeof warehouseIdShape>;
1093
1646
  //#endregion
1094
1647
  //#region src/app/flows/(warehouse)/warehouse/warehouse.schemas.d.ts
1095
- declare const warehouseSearchOptionsSchema: z.ZodObject<{
1096
- where: z.ZodOptional<z.ZodPipe<z.ZodObject<{
1097
- status: z.ZodOptional<z.ZodEnum<{
1098
- active: "active";
1099
- archived: "archived";
1100
- }>>;
1648
+ declare const warehouseSearchOptionsSchema: z.ZodObject<
1649
+ {
1650
+ where: z.ZodOptional<
1651
+ z.ZodPipe<
1652
+ z.ZodObject<
1653
+ {
1654
+ status: z.ZodOptional<
1655
+ z.ZodEnum<{
1656
+ active: 'active';
1657
+ archived: 'archived';
1658
+ }>
1659
+ >;
1660
+ salesEnabled: z.ZodOptional<z.ZodBoolean>;
1661
+ },
1662
+ z.core.$strip
1663
+ >,
1664
+ z.ZodTransform<
1665
+ | {
1666
+ status?: 'active' | 'archived' | undefined;
1667
+ salesEnabled: boolean;
1668
+ }
1669
+ | {
1670
+ status: 'active' | 'archived';
1671
+ salesEnabled?: boolean | undefined;
1672
+ },
1673
+ {
1674
+ status?: 'active' | 'archived' | undefined;
1675
+ salesEnabled?: boolean | undefined;
1676
+ }
1677
+ >
1678
+ >
1679
+ >;
1680
+ query: z.ZodOptional<z.ZodString>;
1681
+ pagination: z.ZodObject<
1682
+ {
1683
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1684
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1685
+ },
1686
+ z.core.$strip
1687
+ >;
1688
+ },
1689
+ z.core.$strict
1690
+ >;
1691
+ declare const warehouseSelectOneQuerySchema: z.ZodObject<
1692
+ {
1693
+ id: z.ZodInt;
1694
+ },
1695
+ z.core.$strip
1696
+ >;
1697
+ declare const warehouseCreatePayloadSchema: z.ZodObject<
1698
+ {
1699
+ code: z.ZodString;
1700
+ name: z.ZodString;
1701
+ address: z.ZodString;
1702
+ salesEnabled: z.ZodOptional<z.ZodBoolean>;
1703
+ },
1704
+ {
1705
+ out: {};
1706
+ in: {};
1707
+ }
1708
+ >;
1709
+ declare const warehouseUpdatePayloadSchema: z.ZodObject<
1710
+ {
1711
+ code: z.ZodOptional<z.ZodString>;
1712
+ name: z.ZodOptional<z.ZodString>;
1713
+ address: z.ZodOptional<z.ZodString>;
1101
1714
  salesEnabled: z.ZodOptional<z.ZodBoolean>;
1102
- }, z.core.$strip>, z.ZodTransform<{
1103
- status?: "active" | "archived" | undefined;
1104
- salesEnabled: boolean;
1105
- } | {
1106
- status: "active" | "archived";
1107
- salesEnabled?: boolean | undefined;
1108
- }, {
1109
- status?: "active" | "archived" | undefined;
1110
- salesEnabled?: boolean | undefined;
1111
- }>>>;
1112
- query: z.ZodOptional<z.ZodString>;
1113
- pagination: z.ZodObject<{
1114
- offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1115
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1116
- }, z.core.$strip>;
1117
- }, z.core.$strict>;
1118
- declare const warehouseSelectOneQuerySchema: z.ZodObject<{
1119
- id: z.ZodInt;
1120
- }, z.core.$strip>;
1121
- declare const warehouseCreatePayloadSchema: z.ZodObject<{
1122
- code: z.ZodString;
1123
- name: z.ZodString;
1124
- address: z.ZodString;
1125
- salesEnabled: z.ZodOptional<z.ZodBoolean>;
1126
- }, {
1127
- out: {};
1128
- in: {};
1129
- }>;
1130
- declare const warehouseUpdatePayloadSchema: z.ZodObject<{
1131
- code: z.ZodOptional<z.ZodString>;
1132
- name: z.ZodOptional<z.ZodString>;
1133
- address: z.ZodOptional<z.ZodString>;
1134
- salesEnabled: z.ZodOptional<z.ZodBoolean>;
1135
- warehouseId: z.ZodInt;
1136
- }, {
1137
- out: {};
1138
- in: {};
1139
- }>;
1140
- declare const warehouseSwitchStatusPayloadSchema: z.ZodObject<{
1141
- status: z.ZodEnum<{
1142
- active: "active";
1143
- archived: "archived";
1144
- }>;
1145
- warehouseId: z.ZodInt;
1146
- }, z.core.$strip>;
1715
+ warehouseId: z.ZodInt;
1716
+ },
1717
+ {
1718
+ out: {};
1719
+ in: {};
1720
+ }
1721
+ >;
1722
+ declare const warehouseSwitchStatusPayloadSchema: z.ZodObject<
1723
+ {
1724
+ status: z.ZodEnum<{
1725
+ active: 'active';
1726
+ archived: 'archived';
1727
+ }>;
1728
+ warehouseId: z.ZodInt;
1729
+ },
1730
+ z.core.$strip
1731
+ >;
1147
1732
  type WarehouseSearchOptions = z.infer<typeof warehouseSearchOptionsSchema>;
1148
1733
  type WarehouseSearchResult = {
1149
1734
  warehouses: Warehouse[];
@@ -1155,47 +1740,71 @@ type WarehouseUpdatePayload = z.infer<typeof warehouseUpdatePayloadSchema>;
1155
1740
  type WarehouseSwitchStatusPayload = z.infer<typeof warehouseSwitchStatusPayloadSchema>;
1156
1741
  //#endregion
1157
1742
  //#region src/app/domain/(finance)/currencies/currencies.schemas.d.ts
1158
- declare const currencySchema: z.ZodObject<{
1159
- id: z.ZodInt;
1160
- code: z.ZodString;
1161
- name: z.ZodString;
1162
- sortOrder: z.ZodInt;
1163
- }, z.core.$strip>;
1743
+ declare const currencySchema: z.ZodObject<
1744
+ {
1745
+ id: z.ZodInt;
1746
+ code: z.ZodString;
1747
+ name: z.ZodString;
1748
+ sortOrder: z.ZodInt;
1749
+ },
1750
+ z.core.$strip
1751
+ >;
1164
1752
  type Currency = z.infer<typeof currencySchema>;
1165
1753
  declare const currencyIdShape: z.ZodInt;
1166
1754
  type CurrencyId = z.infer<typeof currencyIdShape>;
1167
1755
  //#endregion
1168
1756
  //#region src/app/domain/(finance)/exchange-rates/exchange-rates.schemas.d.ts
1169
- declare const exchangeRateSchema: z.ZodObject<{
1170
- id: z.ZodInt;
1171
- currencyId: z.ZodInt;
1172
- rate: z.ZodString;
1173
- validFromDate: z.ZodISODate;
1174
- }, z.core.$strip>;
1757
+ declare const exchangeRateSchema: z.ZodObject<
1758
+ {
1759
+ id: z.ZodInt;
1760
+ currencyId: z.ZodInt;
1761
+ rate: z.ZodString;
1762
+ validFromDate: z.ZodISODate;
1763
+ },
1764
+ z.core.$strip
1765
+ >;
1175
1766
  type ExchangeRate = z.infer<typeof exchangeRateSchema>;
1176
1767
  declare const exchangeRateIdShape: z.ZodInt;
1177
1768
  type ExchangeRateId = z.infer<typeof exchangeRateIdShape>;
1178
1769
  //#endregion
1179
1770
  //#region src/app/flows/(finance)/exchange-rate/exchange-rate.schemas.d.ts
1180
- declare const exchangeRateSearchOptionsSchema: z.ZodObject<{
1181
- where: z.ZodOptional<z.ZodPipe<z.ZodObject<{
1182
- currencyId: z.ZodOptional<z.ZodInt>;
1183
- validFromDate: z.ZodOptional<z.ZodISODate>;
1184
- }, z.core.$strip>, z.ZodTransform<{
1185
- currencyId: number;
1186
- validFromDate?: string | undefined;
1187
- } | {
1188
- currencyId?: number | undefined;
1189
- validFromDate: string;
1190
- }, {
1191
- currencyId?: number | undefined;
1192
- validFromDate?: string | undefined;
1193
- }>>>;
1194
- pagination: z.ZodObject<{
1195
- offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1196
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1197
- }, z.core.$strip>;
1198
- }, z.core.$strict>;
1771
+ declare const exchangeRateSearchOptionsSchema: z.ZodObject<
1772
+ {
1773
+ where: z.ZodOptional<
1774
+ z.ZodPipe<
1775
+ z.ZodObject<
1776
+ {
1777
+ currencyId: z.ZodOptional<z.ZodInt>;
1778
+ validFromDate: z.ZodOptional<z.ZodISODate>;
1779
+ },
1780
+ z.core.$strip
1781
+ >,
1782
+ z.ZodTransform<
1783
+ | {
1784
+ currencyId: number;
1785
+ validFromDate?: string | undefined;
1786
+ }
1787
+ | {
1788
+ currencyId?: number | undefined;
1789
+ validFromDate: string;
1790
+ },
1791
+ {
1792
+ currencyId?: number | undefined;
1793
+ validFromDate?: string | undefined;
1794
+ }
1795
+ >
1796
+ >
1797
+ >;
1798
+ pagination: z.ZodObject<
1799
+ {
1800
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1801
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1802
+ },
1803
+ z.core.$strip
1804
+ >;
1805
+ },
1806
+ z.core.$strict
1807
+ >;
1199
1808
  type ExchangeRateSearchOptions = z.infer<typeof exchangeRateSearchOptionsSchema>;
1200
1809
  type ExchangeRateSearchResult = {
1201
1810
  exchangeRates: ExchangeRate[];
@@ -1211,14 +1820,22 @@ type CurrencyListResult = {
1211
1820
  };
1212
1821
  //#endregion
1213
1822
  //#region src/app/domain/(catalog)/products/products.fields.d.ts
1214
- declare const productImageSchema: z.ZodObject<{
1215
- src: z.ZodURL;
1216
- isBanner: z.ZodBoolean;
1217
- }, z.core.$strip>;
1218
- declare const productImagesSchema: z.ZodArray<z.ZodObject<{
1219
- src: z.ZodURL;
1220
- isBanner: z.ZodBoolean;
1221
- }, z.core.$strip>>;
1823
+ declare const productImageSchema: z.ZodObject<
1824
+ {
1825
+ src: z.ZodURL;
1826
+ isBanner: z.ZodBoolean;
1827
+ },
1828
+ z.core.$strip
1829
+ >;
1830
+ declare const productImagesSchema: z.ZodArray<
1831
+ z.ZodObject<
1832
+ {
1833
+ src: z.ZodURL;
1834
+ isBanner: z.ZodBoolean;
1835
+ },
1836
+ z.core.$strip
1837
+ >
1838
+ >;
1222
1839
  type ProductImage = z.infer<typeof productImageSchema>;
1223
1840
  type ProductImages = z.infer<typeof productImagesSchema>;
1224
1841
  //#endregion
@@ -1227,35 +1844,55 @@ declare const productVariantIdShape: z.ZodInt;
1227
1844
  type ProductVariantId = z.infer<typeof productVariantIdShape>;
1228
1845
  //#endregion
1229
1846
  //#region src/app/domain/(catalog)/products/products.schemas.d.ts
1230
- declare const productSchema: z.ZodObject<{
1231
- id: z.ZodInt;
1232
- slug: z.ZodNullable<z.ZodString>;
1233
- model: z.ZodNullable<z.ZodString>;
1234
- status: z.ZodEnum<{
1235
- active: "active";
1236
- archived: "archived";
1237
- draft: "draft";
1238
- }>;
1239
- name: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
1240
- en: "en";
1241
- ka: "ka";
1242
- ru: "ru";
1243
- }> & z.core.$partial, z.ZodString>>;
1244
- description: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
1245
- en: "en";
1246
- ka: "ka";
1247
- ru: "ru";
1248
- }> & z.core.$partial, z.ZodString>>;
1249
- images: z.ZodArray<z.ZodObject<{
1250
- src: z.ZodURL;
1251
- isBanner: z.ZodBoolean;
1252
- }, z.core.$strip>>;
1253
- categoryId: z.ZodNullable<z.ZodInt>;
1254
- brandId: z.ZodNullable<z.ZodInt>;
1255
- taxCategoryId: z.ZodNullable<z.ZodInt>;
1256
- updatedAt: z.ZodNullable<z.ZodDate>;
1257
- createdAt: z.ZodDate;
1258
- }, z.core.$strip>;
1847
+ declare const productSchema: z.ZodObject<
1848
+ {
1849
+ id: z.ZodInt;
1850
+ slug: z.ZodNullable<z.ZodString>;
1851
+ model: z.ZodNullable<z.ZodString>;
1852
+ status: z.ZodEnum<{
1853
+ active: 'active';
1854
+ archived: 'archived';
1855
+ draft: 'draft';
1856
+ }>;
1857
+ name: z.ZodNullable<
1858
+ z.ZodRecord<
1859
+ z.ZodEnum<{
1860
+ en: 'en';
1861
+ ka: 'ka';
1862
+ ru: 'ru';
1863
+ }> &
1864
+ z.core.$partial,
1865
+ z.ZodString
1866
+ >
1867
+ >;
1868
+ description: z.ZodNullable<
1869
+ z.ZodRecord<
1870
+ z.ZodEnum<{
1871
+ en: 'en';
1872
+ ka: 'ka';
1873
+ ru: 'ru';
1874
+ }> &
1875
+ z.core.$partial,
1876
+ z.ZodString
1877
+ >
1878
+ >;
1879
+ images: z.ZodArray<
1880
+ z.ZodObject<
1881
+ {
1882
+ src: z.ZodURL;
1883
+ isBanner: z.ZodBoolean;
1884
+ },
1885
+ z.core.$strip
1886
+ >
1887
+ >;
1888
+ categoryId: z.ZodNullable<z.ZodInt>;
1889
+ brandId: z.ZodNullable<z.ZodInt>;
1890
+ taxCategoryId: z.ZodNullable<z.ZodInt>;
1891
+ updatedAt: z.ZodNullable<z.ZodDate>;
1892
+ createdAt: z.ZodDate;
1893
+ },
1894
+ z.core.$strip
1895
+ >;
1259
1896
  type Product = z.infer<typeof productSchema>;
1260
1897
  declare const productIdShape: z.ZodInt;
1261
1898
  declare const productSlugShape: z.ZodString;
@@ -1263,104 +1900,202 @@ type ProductId = z.infer<typeof productIdShape>;
1263
1900
  type ProductSlug = z.infer<typeof productSlugShape>;
1264
1901
  //#endregion
1265
1902
  //#region src/app/flows/(catalog)/product/product.schemas.d.ts
1266
- declare const productSearchOptionsSchema: z.ZodObject<{
1267
- where: z.ZodOptional<z.ZodPipe<z.ZodObject<{
1268
- status: z.ZodOptional<z.ZodEnum<{
1269
- active: "active";
1270
- archived: "archived";
1271
- draft: "draft";
1272
- }>>;
1273
- categoryId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1274
- brandId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1275
- }, z.core.$strip>, z.ZodTransform<{
1276
- status?: "active" | "archived" | "draft" | undefined;
1277
- categoryId?: number | null | undefined;
1278
- brandId: number | null;
1279
- } | {
1280
- status?: "active" | "archived" | "draft" | undefined;
1281
- categoryId: number | null;
1282
- brandId?: number | null | undefined;
1283
- } | {
1284
- status: "active" | "archived" | "draft";
1285
- categoryId?: number | null | undefined;
1286
- brandId?: number | null | undefined;
1287
- }, {
1288
- status?: "active" | "archived" | "draft" | undefined;
1289
- categoryId?: number | null | undefined;
1290
- brandId?: number | null | undefined;
1291
- }>>>;
1292
- query: z.ZodOptional<z.ZodString>;
1293
- pagination: z.ZodObject<{
1294
- offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1295
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1296
- }, z.core.$strip>;
1297
- }, z.core.$strict>;
1298
- declare const productSelectOneQuerySchema: z.ZodPipe<z.ZodObject<{
1299
- id: z.ZodOptional<z.ZodInt>;
1300
- slug: z.ZodOptional<z.ZodString>;
1301
- }, z.core.$strip>, z.ZodTransform<{
1302
- id: number;
1303
- slug?: string | undefined;
1304
- } | {
1305
- id?: number | undefined;
1306
- slug: string;
1307
- }, {
1308
- id?: number | undefined;
1309
- slug?: string | undefined;
1310
- }>>;
1311
- declare const productDeletePayloadSchema: z.ZodObject<{
1312
- productId: z.ZodInt;
1313
- }, z.core.$strip>;
1314
- declare const productCreatePayloadSchema: z.ZodObject<{
1315
- slug: z.ZodPreprocess<z.ZodOptional<z.ZodNullable<z.ZodString>>, unknown>;
1316
- model: z.ZodPreprocess<z.ZodOptional<z.ZodNullable<z.ZodString>>, unknown>;
1317
- name: z.ZodOptional<z.ZodPreprocess<z.ZodNullable<z.ZodRecord<z.ZodEnum<{
1318
- en: "en";
1319
- ka: "ka";
1320
- ru: "ru";
1321
- }> & z.core.$partial, z.ZodString>>, unknown>>;
1322
- description: z.ZodOptional<z.ZodPreprocess<z.ZodNullable<z.ZodRecord<z.ZodEnum<{
1323
- en: "en";
1324
- ka: "ka";
1325
- ru: "ru";
1326
- }> & z.core.$partial, z.ZodString>>, unknown>>;
1327
- categoryId: z.ZodOptional<z.ZodPreprocess<z.ZodUnion<readonly [z.ZodNull, z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodInt>]>, unknown>>;
1328
- brandId: z.ZodOptional<z.ZodPreprocess<z.ZodUnion<readonly [z.ZodNull, z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodInt>]>, unknown>>;
1329
- taxCategoryId: z.ZodOptional<z.ZodPreprocess<z.ZodUnion<readonly [z.ZodNull, z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodInt>]>, unknown>>;
1330
- images: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodFile>, unknown>>;
1331
- bannerImageIndex: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
1332
- }, {
1333
- out: {};
1334
- in: {};
1335
- }>;
1336
- declare const productUpdatePayloadSchema: z.ZodObject<{
1337
- status: z.ZodOptional<z.ZodEnum<{
1338
- active: "active";
1339
- archived: "archived";
1340
- draft: "draft";
1341
- }>>;
1342
- slug: z.ZodPreprocess<z.ZodOptional<z.ZodNullable<z.ZodString>>, unknown>;
1343
- model: z.ZodOptional<z.ZodPreprocess<z.ZodOptional<z.ZodNullable<z.ZodString>>, unknown>>;
1344
- name: z.ZodOptional<z.ZodPreprocess<z.ZodNullable<z.ZodRecord<z.ZodEnum<{
1345
- en: "en";
1346
- ka: "ka";
1347
- ru: "ru";
1348
- }> & z.core.$partial, z.ZodString>>, unknown>>;
1349
- description: z.ZodOptional<z.ZodPreprocess<z.ZodNullable<z.ZodRecord<z.ZodEnum<{
1350
- en: "en";
1351
- ka: "ka";
1352
- ru: "ru";
1353
- }> & z.core.$partial, z.ZodString>>, unknown>>;
1354
- categoryId: z.ZodOptional<z.ZodPreprocess<z.ZodUnion<readonly [z.ZodNull, z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodInt>]>, unknown>>;
1355
- brandId: z.ZodOptional<z.ZodPreprocess<z.ZodUnion<readonly [z.ZodNull, z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodInt>]>, unknown>>;
1356
- taxCategoryId: z.ZodOptional<z.ZodPreprocess<z.ZodUnion<readonly [z.ZodNull, z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodInt>]>, unknown>>;
1357
- images: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodFile>, unknown>>;
1358
- bannerImageIndex: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
1359
- productId: z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodInt>;
1360
- }, {
1361
- out: {};
1362
- in: {};
1363
- }>;
1903
+ declare const productSearchOptionsSchema: z.ZodObject<
1904
+ {
1905
+ where: z.ZodOptional<
1906
+ z.ZodPipe<
1907
+ z.ZodObject<
1908
+ {
1909
+ status: z.ZodOptional<
1910
+ z.ZodEnum<{
1911
+ active: 'active';
1912
+ archived: 'archived';
1913
+ draft: 'draft';
1914
+ }>
1915
+ >;
1916
+ categoryId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1917
+ brandId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1918
+ },
1919
+ z.core.$strip
1920
+ >,
1921
+ z.ZodTransform<
1922
+ | {
1923
+ status?: 'active' | 'archived' | 'draft' | undefined;
1924
+ categoryId?: number | null | undefined;
1925
+ brandId: number | null;
1926
+ }
1927
+ | {
1928
+ status?: 'active' | 'archived' | 'draft' | undefined;
1929
+ categoryId: number | null;
1930
+ brandId?: number | null | undefined;
1931
+ }
1932
+ | {
1933
+ status: 'active' | 'archived' | 'draft';
1934
+ categoryId?: number | null | undefined;
1935
+ brandId?: number | null | undefined;
1936
+ },
1937
+ {
1938
+ status?: 'active' | 'archived' | 'draft' | undefined;
1939
+ categoryId?: number | null | undefined;
1940
+ brandId?: number | null | undefined;
1941
+ }
1942
+ >
1943
+ >
1944
+ >;
1945
+ query: z.ZodOptional<z.ZodString>;
1946
+ pagination: z.ZodObject<
1947
+ {
1948
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1949
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1950
+ },
1951
+ z.core.$strip
1952
+ >;
1953
+ },
1954
+ z.core.$strict
1955
+ >;
1956
+ declare const productSelectOneQuerySchema: z.ZodPipe<
1957
+ z.ZodObject<
1958
+ {
1959
+ id: z.ZodOptional<z.ZodInt>;
1960
+ slug: z.ZodOptional<z.ZodString>;
1961
+ },
1962
+ z.core.$strip
1963
+ >,
1964
+ z.ZodTransform<
1965
+ | {
1966
+ id: number;
1967
+ slug?: string | undefined;
1968
+ }
1969
+ | {
1970
+ id?: number | undefined;
1971
+ slug: string;
1972
+ },
1973
+ {
1974
+ id?: number | undefined;
1975
+ slug?: string | undefined;
1976
+ }
1977
+ >
1978
+ >;
1979
+ declare const productDeletePayloadSchema: z.ZodObject<
1980
+ {
1981
+ productId: z.ZodInt;
1982
+ },
1983
+ z.core.$strip
1984
+ >;
1985
+ declare const productCreatePayloadSchema: z.ZodObject<
1986
+ {
1987
+ slug: z.ZodPreprocess<z.ZodOptional<z.ZodNullable<z.ZodString>>, unknown>;
1988
+ model: z.ZodPreprocess<z.ZodOptional<z.ZodNullable<z.ZodString>>, unknown>;
1989
+ name: z.ZodOptional<
1990
+ z.ZodPreprocess<
1991
+ z.ZodNullable<
1992
+ z.ZodRecord<
1993
+ z.ZodEnum<{
1994
+ en: 'en';
1995
+ ka: 'ka';
1996
+ ru: 'ru';
1997
+ }> &
1998
+ z.core.$partial,
1999
+ z.ZodString
2000
+ >
2001
+ >,
2002
+ unknown
2003
+ >
2004
+ >;
2005
+ description: z.ZodOptional<
2006
+ z.ZodPreprocess<
2007
+ z.ZodNullable<
2008
+ z.ZodRecord<
2009
+ z.ZodEnum<{
2010
+ en: 'en';
2011
+ ka: 'ka';
2012
+ ru: 'ru';
2013
+ }> &
2014
+ z.core.$partial,
2015
+ z.ZodString
2016
+ >
2017
+ >,
2018
+ unknown
2019
+ >
2020
+ >;
2021
+ categoryId: z.ZodOptional<
2022
+ z.ZodPreprocess<z.ZodUnion<readonly [z.ZodNull, z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodInt>]>, unknown>
2023
+ >;
2024
+ brandId: z.ZodOptional<
2025
+ z.ZodPreprocess<z.ZodUnion<readonly [z.ZodNull, z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodInt>]>, unknown>
2026
+ >;
2027
+ taxCategoryId: z.ZodOptional<
2028
+ z.ZodPreprocess<z.ZodUnion<readonly [z.ZodNull, z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodInt>]>, unknown>
2029
+ >;
2030
+ images: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodFile>, unknown>>;
2031
+ bannerImageIndex: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
2032
+ },
2033
+ {
2034
+ out: {};
2035
+ in: {};
2036
+ }
2037
+ >;
2038
+ declare const productUpdatePayloadSchema: z.ZodObject<
2039
+ {
2040
+ status: z.ZodOptional<
2041
+ z.ZodEnum<{
2042
+ active: 'active';
2043
+ archived: 'archived';
2044
+ draft: 'draft';
2045
+ }>
2046
+ >;
2047
+ slug: z.ZodPreprocess<z.ZodOptional<z.ZodNullable<z.ZodString>>, unknown>;
2048
+ model: z.ZodOptional<z.ZodPreprocess<z.ZodOptional<z.ZodNullable<z.ZodString>>, unknown>>;
2049
+ name: z.ZodOptional<
2050
+ z.ZodPreprocess<
2051
+ z.ZodNullable<
2052
+ z.ZodRecord<
2053
+ z.ZodEnum<{
2054
+ en: 'en';
2055
+ ka: 'ka';
2056
+ ru: 'ru';
2057
+ }> &
2058
+ z.core.$partial,
2059
+ z.ZodString
2060
+ >
2061
+ >,
2062
+ unknown
2063
+ >
2064
+ >;
2065
+ description: z.ZodOptional<
2066
+ z.ZodPreprocess<
2067
+ z.ZodNullable<
2068
+ z.ZodRecord<
2069
+ z.ZodEnum<{
2070
+ en: 'en';
2071
+ ka: 'ka';
2072
+ ru: 'ru';
2073
+ }> &
2074
+ z.core.$partial,
2075
+ z.ZodString
2076
+ >
2077
+ >,
2078
+ unknown
2079
+ >
2080
+ >;
2081
+ categoryId: z.ZodOptional<
2082
+ z.ZodPreprocess<z.ZodUnion<readonly [z.ZodNull, z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodInt>]>, unknown>
2083
+ >;
2084
+ brandId: z.ZodOptional<
2085
+ z.ZodPreprocess<z.ZodUnion<readonly [z.ZodNull, z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodInt>]>, unknown>
2086
+ >;
2087
+ taxCategoryId: z.ZodOptional<
2088
+ z.ZodPreprocess<z.ZodUnion<readonly [z.ZodNull, z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodInt>]>, unknown>
2089
+ >;
2090
+ images: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodFile>, unknown>>;
2091
+ bannerImageIndex: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
2092
+ productId: z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodInt>;
2093
+ },
2094
+ {
2095
+ out: {};
2096
+ in: {};
2097
+ }
2098
+ >;
1364
2099
  type ProductSearchOptions = z.infer<typeof productSearchOptionsSchema>;
1365
2100
  type ProductSearchResult = {
1366
2101
  products: Product[];
@@ -1375,88 +2110,144 @@ type ProductCreateResult = {
1375
2110
  type ProductUpdatePayload = z.infer<typeof productUpdatePayloadSchema>;
1376
2111
  //#endregion
1377
2112
  //#region src/app/flows/(catalog)/product-variant/product-variant.schemas.d.ts
1378
- declare const productVariantSearchOptionsSchema: z.ZodObject<{
1379
- where: z.ZodNonOptional<z.ZodOptional<z.ZodObject<{
2113
+ declare const productVariantSearchOptionsSchema: z.ZodObject<
2114
+ {
2115
+ where: z.ZodNonOptional<
2116
+ z.ZodOptional<
2117
+ z.ZodObject<
2118
+ {
2119
+ productId: z.ZodInt;
2120
+ measurementUnitId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2121
+ status: z.ZodOptional<
2122
+ z.ZodEnum<{
2123
+ active: 'active';
2124
+ archived: 'archived';
2125
+ draft: 'draft';
2126
+ }>
2127
+ >;
2128
+ },
2129
+ z.core.$strip
2130
+ >
2131
+ >
2132
+ >;
2133
+ query: z.ZodOptional<z.ZodString>;
2134
+ pagination: z.ZodObject<
2135
+ {
2136
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
2137
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
2138
+ },
2139
+ z.core.$strip
2140
+ >;
2141
+ },
2142
+ z.core.$strict
2143
+ >;
2144
+ declare const productVariantSelectOneQuerySchema: z.ZodObject<
2145
+ {
2146
+ id: z.ZodInt;
2147
+ },
2148
+ z.core.$strip
2149
+ >;
2150
+ declare const productVariantDeletePayloadSchema: z.ZodObject<
2151
+ {
2152
+ productVariantId: z.ZodInt;
2153
+ },
2154
+ z.core.$strip
2155
+ >;
2156
+ declare const productVariantResultSchema: z.ZodObject<
2157
+ {
2158
+ id: z.ZodInt;
2159
+ productId: z.ZodInt;
2160
+ measurementUnitId: z.ZodNullable<z.ZodInt>;
2161
+ taxCategoryId: z.ZodNullable<z.ZodInt>;
2162
+ status: z.ZodEnum<{
2163
+ active: 'active';
2164
+ archived: 'archived';
2165
+ draft: 'draft';
2166
+ }>;
2167
+ sku: z.ZodNullable<z.ZodString>;
2168
+ name: z.ZodNullable<
2169
+ z.ZodRecord<
2170
+ z.ZodEnum<{
2171
+ en: 'en';
2172
+ ka: 'ka';
2173
+ ru: 'ru';
2174
+ }> &
2175
+ z.core.$partial,
2176
+ z.ZodString
2177
+ >
2178
+ >;
2179
+ updatedAt: z.ZodNullable<z.ZodDate>;
2180
+ createdAt: z.ZodDate;
2181
+ barcodes: z.ZodArray<z.ZodString>;
2182
+ },
2183
+ z.core.$strip
2184
+ >;
2185
+ declare const productVariantCreatePayloadSchema: z.ZodObject<
2186
+ {
1380
2187
  productId: z.ZodInt;
1381
2188
  measurementUnitId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1382
- status: z.ZodOptional<z.ZodEnum<{
1383
- active: "active";
1384
- archived: "archived";
1385
- draft: "draft";
1386
- }>>;
1387
- }, z.core.$strip>>>;
1388
- query: z.ZodOptional<z.ZodString>;
1389
- pagination: z.ZodObject<{
1390
- offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1391
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1392
- }, z.core.$strip>;
1393
- }, z.core.$strict>;
1394
- declare const productVariantSelectOneQuerySchema: z.ZodObject<{
1395
- id: z.ZodInt;
1396
- }, z.core.$strip>;
1397
- declare const productVariantDeletePayloadSchema: z.ZodObject<{
1398
- productVariantId: z.ZodInt;
1399
- }, z.core.$strip>;
1400
- declare const productVariantResultSchema: z.ZodObject<{
1401
- id: z.ZodInt;
1402
- productId: z.ZodInt;
1403
- measurementUnitId: z.ZodNullable<z.ZodInt>;
1404
- taxCategoryId: z.ZodNullable<z.ZodInt>;
1405
- status: z.ZodEnum<{
1406
- active: "active";
1407
- archived: "archived";
1408
- draft: "draft";
1409
- }>;
1410
- sku: z.ZodNullable<z.ZodString>;
1411
- name: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
1412
- en: "en";
1413
- ka: "ka";
1414
- ru: "ru";
1415
- }> & z.core.$partial, z.ZodString>>;
1416
- updatedAt: z.ZodNullable<z.ZodDate>;
1417
- createdAt: z.ZodDate;
1418
- barcodes: z.ZodArray<z.ZodString>;
1419
- }, z.core.$strip>;
1420
- declare const productVariantCreatePayloadSchema: z.ZodObject<{
1421
- productId: z.ZodInt;
1422
- measurementUnitId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1423
- taxCategoryId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1424
- status: z.ZodOptional<z.ZodEnum<{
1425
- active: "active";
1426
- archived: "archived";
1427
- draft: "draft";
1428
- }>>;
1429
- sku: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1430
- name: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodEnum<{
1431
- en: "en";
1432
- ka: "ka";
1433
- ru: "ru";
1434
- }> & z.core.$partial, z.ZodString>>>;
1435
- barcodes: z.ZodArray<z.ZodString>;
1436
- }, {
1437
- out: {};
1438
- in: {};
1439
- }>;
1440
- declare const productVariantUpdatePayloadSchema: z.ZodObject<{
1441
- measurementUnitId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1442
- taxCategoryId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1443
- status: z.ZodOptional<z.ZodEnum<{
1444
- active: "active";
1445
- archived: "archived";
1446
- draft: "draft";
1447
- }>>;
1448
- sku: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1449
- name: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodEnum<{
1450
- en: "en";
1451
- ka: "ka";
1452
- ru: "ru";
1453
- }> & z.core.$partial, z.ZodString>>>;
1454
- productVariantId: z.ZodInt;
1455
- barcodes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1456
- }, {
1457
- out: {};
1458
- in: {};
1459
- }>;
2189
+ taxCategoryId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2190
+ status: z.ZodOptional<
2191
+ z.ZodEnum<{
2192
+ active: 'active';
2193
+ archived: 'archived';
2194
+ draft: 'draft';
2195
+ }>
2196
+ >;
2197
+ sku: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2198
+ name: z.ZodOptional<
2199
+ z.ZodNullable<
2200
+ z.ZodRecord<
2201
+ z.ZodEnum<{
2202
+ en: 'en';
2203
+ ka: 'ka';
2204
+ ru: 'ru';
2205
+ }> &
2206
+ z.core.$partial,
2207
+ z.ZodString
2208
+ >
2209
+ >
2210
+ >;
2211
+ barcodes: z.ZodArray<z.ZodString>;
2212
+ },
2213
+ {
2214
+ out: {};
2215
+ in: {};
2216
+ }
2217
+ >;
2218
+ declare const productVariantUpdatePayloadSchema: z.ZodObject<
2219
+ {
2220
+ measurementUnitId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2221
+ taxCategoryId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2222
+ status: z.ZodOptional<
2223
+ z.ZodEnum<{
2224
+ active: 'active';
2225
+ archived: 'archived';
2226
+ draft: 'draft';
2227
+ }>
2228
+ >;
2229
+ sku: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2230
+ name: z.ZodOptional<
2231
+ z.ZodNullable<
2232
+ z.ZodRecord<
2233
+ z.ZodEnum<{
2234
+ en: 'en';
2235
+ ka: 'ka';
2236
+ ru: 'ru';
2237
+ }> &
2238
+ z.core.$partial,
2239
+ z.ZodString
2240
+ >
2241
+ >
2242
+ >;
2243
+ productVariantId: z.ZodInt;
2244
+ barcodes: z.ZodOptional<z.ZodArray<z.ZodString>>;
2245
+ },
2246
+ {
2247
+ out: {};
2248
+ in: {};
2249
+ }
2250
+ >;
1460
2251
  type ProductVariantResult = z.infer<typeof productVariantResultSchema>;
1461
2252
  type ProductVariantSearchOptions = z.infer<typeof productVariantSearchOptionsSchema>;
1462
2253
  type ProductVariantSearchResult = {
@@ -1475,67 +2266,79 @@ type ProductVariantSelectOneResult = {
1475
2266
  type ProductVariantUpdatePayload = z.infer<typeof productVariantUpdatePayloadSchema>;
1476
2267
  //#endregion
1477
2268
  //#region src/app/domain/(procurement)/delivery-items/delivery-items.schemas.d.ts
1478
- declare const deliveryItemSchema: z.ZodObject<{
1479
- id: z.ZodInt;
1480
- deliveryId: z.ZodInt;
1481
- productVariantId: z.ZodInt;
1482
- quantity: z.ZodNullable<z.ZodNumber>;
1483
- unitCost: z.ZodNullable<z.ZodString>;
1484
- unitCostBase: z.ZodNullable<z.ZodString>;
1485
- supplierLotNumber: z.ZodNullable<z.ZodString>;
1486
- expiresOn: z.ZodNullable<z.ZodISODate>;
1487
- updatedByEmployeeId: z.ZodNullable<z.ZodInt>;
1488
- updatedByEmployeeName: z.ZodNullable<z.ZodString>;
1489
- revision: z.ZodInt;
1490
- updatedAt: z.ZodNullable<z.ZodDate>;
1491
- createdAt: z.ZodDate;
1492
- }, z.core.$strip>;
2269
+ declare const deliveryItemSchema: z.ZodObject<
2270
+ {
2271
+ id: z.ZodInt;
2272
+ deliveryId: z.ZodInt;
2273
+ productVariantId: z.ZodInt;
2274
+ quantity: z.ZodNullable<z.ZodNumber>;
2275
+ unitCost: z.ZodNullable<z.ZodString>;
2276
+ unitCostBase: z.ZodNullable<z.ZodString>;
2277
+ supplierLotNumber: z.ZodNullable<z.ZodString>;
2278
+ expiresOn: z.ZodNullable<z.ZodISODate>;
2279
+ updatedByEmployeeId: z.ZodNullable<z.ZodInt>;
2280
+ updatedByEmployeeName: z.ZodNullable<z.ZodString>;
2281
+ revision: z.ZodInt;
2282
+ updatedAt: z.ZodNullable<z.ZodDate>;
2283
+ createdAt: z.ZodDate;
2284
+ },
2285
+ z.core.$strip
2286
+ >;
1493
2287
  type DeliveryItem = z.infer<typeof deliveryItemSchema>;
1494
2288
  declare const deliveryItemIdShape: z.ZodInt;
1495
2289
  declare const deliveryItemQuantityShape: z.ZodNumber;
1496
2290
  declare const deliveryItemRevisionShape: z.ZodInt;
1497
- declare const deliveryItemUpdatedByEmployeeSchema: z.ZodObject<{
1498
- id: z.ZodInt;
1499
- fullName: z.ZodString;
1500
- }, z.core.$strip>;
2291
+ declare const deliveryItemUpdatedByEmployeeSchema: z.ZodObject<
2292
+ {
2293
+ id: z.ZodInt;
2294
+ fullName: z.ZodString;
2295
+ },
2296
+ z.core.$strip
2297
+ >;
1501
2298
  type DeliveryItemId = z.infer<typeof deliveryItemIdShape>;
1502
2299
  type DeliveryItemQuantity = z.infer<typeof deliveryItemQuantityShape>;
1503
2300
  type DeliveryItemRevision = z.infer<typeof deliveryItemRevisionShape>;
1504
2301
  type DeliveryItemUpdatedByEmployee = z.infer<typeof deliveryItemUpdatedByEmployeeSchema>;
1505
2302
  //#endregion
1506
2303
  //#region src/app/domain/(procurement)/deliveries/deliveries.schemas.d.ts
1507
- declare const deliverySchema: z.ZodObject<{
1508
- id: z.ZodInt;
1509
- code: z.ZodString;
1510
- supplierId: z.ZodInt;
1511
- warehouseId: z.ZodInt;
1512
- currencyId: z.ZodInt;
1513
- status: z.ZodEnum<{
1514
- draft: "draft";
1515
- posted: "posted";
1516
- }>;
1517
- exchangeRateId: z.ZodNullable<z.ZodInt>;
1518
- exchangeRate: z.ZodNullable<z.ZodString>;
1519
- exchangeRateValidFromDate: z.ZodNullable<z.ZodISODate>;
1520
- postedAt: z.ZodNullable<z.ZodDate>;
1521
- updatedAt: z.ZodNullable<z.ZodDate>;
1522
- createdAt: z.ZodDate;
1523
- }, z.core.$strip>;
2304
+ declare const deliverySchema: z.ZodObject<
2305
+ {
2306
+ id: z.ZodInt;
2307
+ code: z.ZodString;
2308
+ supplierId: z.ZodInt;
2309
+ warehouseId: z.ZodInt;
2310
+ currencyId: z.ZodInt;
2311
+ status: z.ZodEnum<{
2312
+ draft: 'draft';
2313
+ posted: 'posted';
2314
+ }>;
2315
+ exchangeRateId: z.ZodNullable<z.ZodInt>;
2316
+ exchangeRate: z.ZodNullable<z.ZodString>;
2317
+ exchangeRateValidFromDate: z.ZodNullable<z.ZodISODate>;
2318
+ postedAt: z.ZodNullable<z.ZodDate>;
2319
+ updatedAt: z.ZodNullable<z.ZodDate>;
2320
+ createdAt: z.ZodDate;
2321
+ },
2322
+ z.core.$strip
2323
+ >;
1524
2324
  type Delivery = z.infer<typeof deliverySchema>;
1525
2325
  declare const deliveryIdShape: z.ZodInt;
1526
2326
  type DeliveryId = z.infer<typeof deliveryIdShape>;
1527
2327
  //#endregion
1528
2328
  //#region src/app/domain/(warehouse)/stock/stock-balances/stock-balances.schemas.d.ts
1529
- declare const stockBalanceSchema: z.ZodObject<{
1530
- id: z.ZodInt;
1531
- warehouseId: z.ZodInt;
1532
- productVariantId: z.ZodInt;
1533
- onHand: z.ZodNumber;
1534
- reserved: z.ZodNumber;
1535
- averageUnitCostBase: z.ZodNullable<z.ZodString>;
1536
- updatedAt: z.ZodNullable<z.ZodDate>;
1537
- createdAt: z.ZodDate;
1538
- }, z.core.$strip>;
2329
+ declare const stockBalanceSchema: z.ZodObject<
2330
+ {
2331
+ id: z.ZodInt;
2332
+ warehouseId: z.ZodInt;
2333
+ productVariantId: z.ZodInt;
2334
+ onHand: z.ZodNumber;
2335
+ reserved: z.ZodNumber;
2336
+ averageUnitCostBase: z.ZodNullable<z.ZodString>;
2337
+ updatedAt: z.ZodNullable<z.ZodDate>;
2338
+ createdAt: z.ZodDate;
2339
+ },
2340
+ z.core.$strip
2341
+ >;
1539
2342
  type StockBalance = z.infer<typeof stockBalanceSchema>;
1540
2343
  //#endregion
1541
2344
  //#region src/app/domain/(taxation)/tax-categories/tax-categories.schemas.d.ts
@@ -1552,4 +2355,124 @@ declare const productVariantBarcodesShape: z.ZodArray<z.ZodString>;
1552
2355
  type ProductVariantBarcode = z.infer<typeof productVariantBarcodeShape>;
1553
2356
  type ProductVariantBarcodes = z.infer<typeof productVariantBarcodesShape>;
1554
2357
  //#endregion
1555
- export type { APIErrorCode, AuditLogResult, AuditLogSearchPayload, AuditLogSearchResult, AuditLogSelectOneQuery, Brand, BrandCreatePayload, BrandId, BrandSearchOptions, BrandSearchResult, BrandSelectOneQuery, BrandSlug, BrandUpdatePayload, Category, CategoryCreatePayload, CategoryId, CategorySearchOptions, CategorySearchResult, CategorySelectOneQuery, CategorySlug, CategoryUpdatePayload, Country, CountryCreatePayload, CountryId, CountrySearchOptions, CountrySearchResult, CountrySelectOneQuery, CountryUpdatePayload, Currency, CurrencyId, CurrencyListResult, Customer, CustomerCreatePayload, CustomerId, CustomerSearchOptions, CustomerSearchResult, CustomerSelectOneQuery, CustomerUpdatePayload, Delivery, DeliveryCreatePayload, DeliveryCreateResult, DeliveryDeletePayload, DeliveryDetails, DeliveryId, DeliveryItem, DeliveryItemAddPayload, DeliveryItemCatalogDetails, DeliveryItemDeletePayload, DeliveryItemDetails, DeliveryItemId, DeliveryItemQuantity, DeliveryItemResult, DeliveryItemRevision, DeliveryItemScanPayload, DeliveryItemScanResult, DeliveryItemUpdatePayload, DeliveryItemUpdatedByEmployee, DeliveryPostPayload, DeliverySearchItem, DeliverySearchOptions, DeliverySearchResult, DeliverySelectOneQuery, DeliverySelectOneResult, DeliveryUpdatePayload, ExchangeRate, ExchangeRateDateSearchResult, ExchangeRateId, ExchangeRateSearchOptions, ExchangeRateSearchResult, MeasurementUnit, MeasurementUnitId, MeasurementUnitListResult, Product, ProductCreatePayload, ProductCreateResult, ProductDeletePayload, ProductId, ProductImage, ProductImages, ProductSearchOptions, ProductSearchResult, ProductSelectOneQuery, ProductSlug, ProductUpdatePayload, ProductVariantResult as ProductVariant, ProductVariantResult, ProductVariantBarcode, ProductVariantBarcodes, ProductVariantCreatePayload, ProductVariantCreateResult, ProductVariantDeletePayload, ProductVariantId, ProductVariantSearchOptions, ProductVariantSearchResult, ProductVariantSelectOneQuery, ProductVariantSelectOneResult, ProductVariantUpdatePayload, StockBalance, StockBalanceSearchItem, StockBalanceSearchOptions, StockBalanceSearchResult, Supplier, SupplierCreatePayload, SupplierId, SupplierSearchOptions, SupplierSearchResult, SupplierSelectOneQuery, SupplierSwitchStatusPayload, SupplierUpdatePayload, TaxCategoryId, TaxRateId, Warehouse, WarehouseCreatePayload, WarehouseId, WarehouseSearchOptions, WarehouseSearchResult, WarehouseSelectOneQuery, WarehouseSwitchStatusPayload, WarehouseUpdatePayload };
2358
+ export type {
2359
+ APIErrorCode,
2360
+ AuditLogResult,
2361
+ AuditLogSearchPayload,
2362
+ AuditLogSearchResult,
2363
+ AuditLogSelectOneQuery,
2364
+ Brand,
2365
+ BrandCreatePayload,
2366
+ BrandId,
2367
+ BrandSearchOptions,
2368
+ BrandSearchResult,
2369
+ BrandSelectOneQuery,
2370
+ BrandSlug,
2371
+ BrandUpdatePayload,
2372
+ Category,
2373
+ CategoryCreatePayload,
2374
+ CategoryId,
2375
+ CategorySearchOptions,
2376
+ CategorySearchResult,
2377
+ CategorySelectOneQuery,
2378
+ CategorySlug,
2379
+ CategoryUpdatePayload,
2380
+ Country,
2381
+ CountryCreatePayload,
2382
+ CountryId,
2383
+ CountrySearchOptions,
2384
+ CountrySearchResult,
2385
+ CountrySelectOneQuery,
2386
+ CountryUpdatePayload,
2387
+ Currency,
2388
+ CurrencyId,
2389
+ CurrencyListResult,
2390
+ Customer,
2391
+ CustomerCreatePayload,
2392
+ CustomerId,
2393
+ CustomerSearchOptions,
2394
+ CustomerSearchResult,
2395
+ CustomerSelectOneQuery,
2396
+ CustomerUpdatePayload,
2397
+ Delivery,
2398
+ DeliveryCreatePayload,
2399
+ DeliveryCreateResult,
2400
+ DeliveryDeletePayload,
2401
+ DeliveryDetails,
2402
+ DeliveryId,
2403
+ DeliveryItem,
2404
+ DeliveryItemAddPayload,
2405
+ DeliveryItemCatalogDetails,
2406
+ DeliveryItemDeletePayload,
2407
+ DeliveryItemDetails,
2408
+ DeliveryItemId,
2409
+ DeliveryItemQuantity,
2410
+ DeliveryItemResult,
2411
+ DeliveryItemRevision,
2412
+ DeliveryItemScanPayload,
2413
+ DeliveryItemScanResult,
2414
+ DeliveryItemUpdatePayload,
2415
+ DeliveryItemUpdatedByEmployee,
2416
+ DeliveryPostPayload,
2417
+ DeliverySearchItem,
2418
+ DeliverySearchOptions,
2419
+ DeliverySearchResult,
2420
+ DeliverySelectOneQuery,
2421
+ DeliverySelectOneResult,
2422
+ DeliveryUpdatePayload,
2423
+ ExchangeRate,
2424
+ ExchangeRateDateSearchResult,
2425
+ ExchangeRateId,
2426
+ ExchangeRateSearchOptions,
2427
+ ExchangeRateSearchResult,
2428
+ MeasurementUnit,
2429
+ MeasurementUnitId,
2430
+ MeasurementUnitListResult,
2431
+ Product,
2432
+ ProductCreatePayload,
2433
+ ProductCreateResult,
2434
+ ProductDeletePayload,
2435
+ ProductId,
2436
+ ProductImage,
2437
+ ProductImages,
2438
+ ProductSearchOptions,
2439
+ ProductSearchResult,
2440
+ ProductSelectOneQuery,
2441
+ ProductSlug,
2442
+ ProductUpdatePayload,
2443
+ ProductVariantResult as ProductVariant,
2444
+ ProductVariantResult,
2445
+ ProductVariantBarcode,
2446
+ ProductVariantBarcodes,
2447
+ ProductVariantCreatePayload,
2448
+ ProductVariantCreateResult,
2449
+ ProductVariantDeletePayload,
2450
+ ProductVariantId,
2451
+ ProductVariantSearchOptions,
2452
+ ProductVariantSearchResult,
2453
+ ProductVariantSelectOneQuery,
2454
+ ProductVariantSelectOneResult,
2455
+ ProductVariantUpdatePayload,
2456
+ StockBalance,
2457
+ StockBalanceSearchItem,
2458
+ StockBalanceSearchOptions,
2459
+ StockBalanceSearchResult,
2460
+ Supplier,
2461
+ SupplierCreatePayload,
2462
+ SupplierId,
2463
+ SupplierSearchOptions,
2464
+ SupplierSearchResult,
2465
+ SupplierSelectOneQuery,
2466
+ SupplierSwitchStatusPayload,
2467
+ SupplierUpdatePayload,
2468
+ TaxCategoryId,
2469
+ TaxRateId,
2470
+ Warehouse,
2471
+ WarehouseCreatePayload,
2472
+ WarehouseId,
2473
+ WarehouseSearchOptions,
2474
+ WarehouseSearchResult,
2475
+ WarehouseSelectOneQuery,
2476
+ WarehouseSwitchStatusPayload,
2477
+ WarehouseUpdatePayload,
2478
+ };