@esb-market-contracts/backend 1.0.60 → 1.0.61

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,125 +1,118 @@
1
- import { ErrorCodeOf } from '@kalutskii/foundation';
2
- import 'drizzle-orm';
3
- import 'hono/http-exception';
4
- import 'postgres';
5
- import { z } from 'zod';
1
+ import { ErrorCodeOf } from "@kalutskii/foundation";
2
+ import { z } from "zod";
3
+ import "hono/http-exception";
4
+ import "drizzle-orm";
5
+ import "postgres";
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
- 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;
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;
97
97
  };
98
98
  type APIErrorCode = ErrorCodeOf<typeof errorsRegistry>;
99
99
  //#endregion
100
100
  //#region src/app/domain/(catalog)/brands/brands.schemas.d.ts
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
- >;
101
+ declare const brandSchema: z.ZodObject<{
102
+ id: z.ZodInt;
103
+ slug: z.ZodString;
104
+ name: z.ZodRecord<z.ZodEnum<{
105
+ en: "en";
106
+ ka: "ka";
107
+ ru: "ru";
108
+ }> & z.core.$partial, z.ZodString>;
109
+ websiteUrl: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodURL>>;
110
+ notes: z.ZodNullable<z.ZodString>;
111
+ logotypeUrl: z.ZodString;
112
+ countryId: z.ZodInt;
113
+ updatedAt: z.ZodNullable<z.ZodDate>;
114
+ createdAt: z.ZodDate;
115
+ }, z.core.$strip>;
123
116
  type Brand = z.infer<typeof brandSchema>;
124
117
  declare const brandIdShape: z.ZodInt;
125
118
  declare const brandSlugShape: z.ZodString;
@@ -127,113 +120,64 @@ type BrandId = z.infer<typeof brandIdShape>;
127
120
  type BrandSlug = z.infer<typeof brandSlugShape>;
128
121
  //#endregion
129
122
  //#region src/app/flows/(catalog)/brand/brand.schemas.d.ts
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
- >;
123
+ declare const brandSearchOptionsSchema: z.ZodObject<{
124
+ where: z.ZodOptional<z.ZodPipe<z.ZodObject<{
125
+ countryId: z.ZodOptional<z.ZodInt>;
126
+ }, z.core.$strip>, z.ZodTransform<{
127
+ countryId: number;
128
+ }, {
129
+ countryId?: number | undefined;
130
+ }>>>;
131
+ query: z.ZodOptional<z.ZodString>;
132
+ pagination: z.ZodObject<{
133
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
134
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
135
+ }, z.core.$strip>;
136
+ }, z.core.$strict>;
137
+ declare const brandSelectOneQuerySchema: z.ZodPipe<z.ZodObject<{
138
+ id: z.ZodOptional<z.ZodInt>;
139
+ slug: z.ZodOptional<z.ZodString>;
140
+ }, z.core.$strip>, z.ZodTransform<{
141
+ id: number;
142
+ slug?: string | undefined;
143
+ } | {
144
+ id?: number | undefined;
145
+ slug: string;
146
+ }, {
147
+ id?: number | undefined;
148
+ slug?: string | undefined;
149
+ }>>;
150
+ declare const brandCreatePayloadSchema: z.ZodObject<{
151
+ slug: z.ZodString;
152
+ name: z.ZodPreprocess<z.ZodRecord<z.ZodEnum<{
153
+ en: "en";
154
+ ka: "ka";
155
+ ru: "ru";
156
+ }> & z.core.$partial, z.ZodString>, unknown>;
157
+ websiteUrl: z.ZodPreprocess<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodURL>>, unknown>;
158
+ notes: z.ZodPreprocess<z.ZodOptional<z.ZodNullable<z.ZodString>>, unknown>;
159
+ countryId: z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodInt>;
160
+ logotype: z.ZodFile;
161
+ }, {
162
+ out: {};
163
+ in: {};
164
+ }>;
165
+ declare const brandUpdatePayloadSchema: z.ZodObject<{
166
+ slug: z.ZodOptional<z.ZodString>;
167
+ name: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodEnum<{
168
+ en: "en";
169
+ ka: "ka";
170
+ ru: "ru";
171
+ }> & z.core.$partial, z.ZodString>, unknown>>;
172
+ websiteUrl: z.ZodPreprocess<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodURL>>>, unknown>;
173
+ notes: z.ZodPreprocess<z.ZodOptional<z.ZodNullable<z.ZodString>>, unknown>;
174
+ countryId: z.ZodOptional<z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodInt>>;
175
+ logotype: z.ZodOptional<z.ZodFile>;
176
+ brandId: z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodInt>;
177
+ }, {
178
+ out: {};
179
+ in: {};
180
+ }>;
237
181
  type BrandSearchOptions = z.infer<typeof brandSearchOptionsSchema>;
238
182
  type BrandSearchResult = {
239
183
  brands: Brand[];
@@ -244,29 +188,22 @@ type BrandCreatePayload = z.infer<typeof brandCreatePayloadSchema>;
244
188
  type BrandUpdatePayload = z.infer<typeof brandUpdatePayloadSchema>;
245
189
  //#endregion
246
190
  //#region src/app/domain/(catalog)/categories/categories.schemas.d.ts
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
- >;
191
+ declare const categorySchema: z.ZodObject<{
192
+ id: z.ZodInt;
193
+ slug: z.ZodString;
194
+ parentId: z.ZodNullable<z.ZodInt>;
195
+ status: z.ZodEnum<{
196
+ active: "active";
197
+ archived: "archived";
198
+ }>;
199
+ name: z.ZodRecord<z.ZodEnum<{
200
+ en: "en";
201
+ ka: "ka";
202
+ ru: "ru";
203
+ }> & z.core.$partial, z.ZodString>;
204
+ updatedAt: z.ZodNullable<z.ZodDate>;
205
+ createdAt: z.ZodDate;
206
+ }, z.core.$strip>;
270
207
  type Category = z.infer<typeof categorySchema>;
271
208
  declare const categoryIdShape: z.ZodInt;
272
209
  declare const categorySlugShape: z.ZodString;
@@ -274,119 +211,71 @@ type CategoryId = z.infer<typeof categoryIdShape>;
274
211
  type CategorySlug = z.infer<typeof categorySlugShape>;
275
212
  //#endregion
276
213
  //#region src/app/flows/(catalog)/category/category.schemas.d.ts
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>;
214
+ declare const categorySearchOptionsSchema: z.ZodObject<{
215
+ where: z.ZodOptional<z.ZodPipe<z.ZodObject<{
365
216
  parentId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
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
- >;
217
+ status: z.ZodOptional<z.ZodEnum<{
218
+ active: "active";
219
+ archived: "archived";
220
+ }>>;
221
+ }, z.core.$strip>, z.ZodTransform<{
222
+ parentId: number | null;
223
+ status?: "active" | "archived" | undefined;
224
+ } | {
225
+ parentId?: number | null | undefined;
226
+ status: "active" | "archived";
227
+ }, {
228
+ parentId?: number | null | undefined;
229
+ status?: "active" | "archived" | undefined;
230
+ }>>>;
231
+ query: z.ZodOptional<z.ZodString>;
232
+ pagination: z.ZodObject<{
233
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
234
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
235
+ }, z.core.$strip>;
236
+ }, z.core.$strict>;
237
+ declare const categorySelectOneQuerySchema: z.ZodPipe<z.ZodObject<{
238
+ id: z.ZodOptional<z.ZodInt>;
239
+ slug: z.ZodOptional<z.ZodString>;
240
+ }, z.core.$strip>, z.ZodTransform<{
241
+ id: number;
242
+ slug?: string | undefined;
243
+ } | {
244
+ id?: number | undefined;
245
+ slug: string;
246
+ }, {
247
+ id?: number | undefined;
248
+ slug?: string | undefined;
249
+ }>>;
250
+ declare const categoryCreatePayloadSchema: z.ZodObject<{
251
+ slug: z.ZodString;
252
+ parentId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodInt>>>;
253
+ name: z.ZodRecord<z.ZodEnum<{
254
+ en: "en";
255
+ ka: "ka";
256
+ ru: "ru";
257
+ }> & z.core.$partial, z.ZodString>;
258
+ }, {
259
+ out: {};
260
+ in: {};
261
+ }>;
262
+ declare const categoryUpdatePayloadSchema: z.ZodObject<{
263
+ slug: z.ZodOptional<z.ZodString>;
264
+ parentId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
265
+ status: z.ZodOptional<z.ZodEnum<{
266
+ active: "active";
267
+ archived: "archived";
268
+ }>>;
269
+ name: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
270
+ en: "en";
271
+ ka: "ka";
272
+ ru: "ru";
273
+ }> & z.core.$partial, z.ZodString>>;
274
+ categoryId: z.ZodInt;
275
+ }, {
276
+ out: {};
277
+ in: {};
278
+ }>;
390
279
  type CategorySearchOptions = z.infer<typeof categorySearchOptionsSchema>;
391
280
  type CategorySearchResult = {
392
281
  categories: Category[];
@@ -397,114 +286,65 @@ type CategoryCreatePayload = z.infer<typeof categoryCreatePayloadSchema>;
397
286
  type CategoryUpdatePayload = z.infer<typeof categoryUpdatePayloadSchema>;
398
287
  //#endregion
399
288
  //#region src/app/domain/(catalog)/countries/countries.schemas.d.ts
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
- >;
289
+ declare const countrySchema: z.ZodObject<{
290
+ id: z.ZodInt;
291
+ code: z.ZodString;
292
+ name: z.ZodRecord<z.ZodEnum<{
293
+ en: "en";
294
+ ka: "ka";
295
+ ru: "ru";
296
+ }> & z.core.$partial, z.ZodString>;
297
+ flagImageUrl: z.ZodString;
298
+ updatedAt: z.ZodNullable<z.ZodDate>;
299
+ createdAt: z.ZodDate;
300
+ }, z.core.$strip>;
419
301
  type Country = z.infer<typeof countrySchema>;
420
302
  declare const countryIdShape: z.ZodInt;
421
303
  type CountryId = z.infer<typeof countryIdShape>;
422
304
  //#endregion
423
305
  //#region src/app/flows/(catalog)/country/country.schemas.d.ts
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
- {
306
+ declare const countrySearchOptionsSchema: z.ZodObject<{
307
+ where: z.ZodOptional<z.ZodPipe<z.ZodObject<{
485
308
  code: z.ZodOptional<z.ZodString>;
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
- >;
309
+ }, z.core.$strip>, z.ZodTransform<{
310
+ code: string;
311
+ }, {
312
+ code?: string | undefined;
313
+ }>>>;
314
+ query: z.ZodOptional<z.ZodString>;
315
+ pagination: z.ZodObject<{
316
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
317
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
318
+ }, z.core.$strip>;
319
+ }, z.core.$strict>;
320
+ declare const countrySelectOneQuerySchema: z.ZodObject<{
321
+ id: z.ZodInt;
322
+ }, z.core.$strip>;
323
+ declare const countryCreatePayloadSchema: z.ZodObject<{
324
+ code: z.ZodString;
325
+ name: z.ZodPreprocess<z.ZodRecord<z.ZodEnum<{
326
+ en: "en";
327
+ ka: "ka";
328
+ ru: "ru";
329
+ }> & z.core.$partial, z.ZodString>, unknown>;
330
+ flagImage: z.ZodFile;
331
+ }, {
332
+ out: {};
333
+ in: {};
334
+ }>;
335
+ declare const countryUpdatePayloadSchema: z.ZodObject<{
336
+ code: z.ZodOptional<z.ZodString>;
337
+ name: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodEnum<{
338
+ en: "en";
339
+ ka: "ka";
340
+ ru: "ru";
341
+ }> & z.core.$partial, z.ZodString>, unknown>>;
342
+ flagImage: z.ZodOptional<z.ZodFile>;
343
+ countryId: z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodInt>;
344
+ }, {
345
+ out: {};
346
+ in: {};
347
+ }>;
508
348
  type CountrySearchOptions = z.infer<typeof countrySearchOptionsSchema>;
509
349
  type CountrySearchResult = {
510
350
  countries: Country[];
@@ -515,15 +355,12 @@ type CountryCreatePayload = z.infer<typeof countryCreatePayloadSchema>;
515
355
  type CountryUpdatePayload = z.infer<typeof countryUpdatePayloadSchema>;
516
356
  //#endregion
517
357
  //#region src/app/domain/(catalog)/measurement-units/measurement-units.schemas.d.ts
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
- >;
358
+ declare const measurementUnitSchema: z.ZodObject<{
359
+ id: z.ZodInt;
360
+ code: z.ZodString;
361
+ name: z.ZodString;
362
+ decimalPlaces: z.ZodInt;
363
+ }, z.core.$strip>;
527
364
  type MeasurementUnit = z.infer<typeof measurementUnitSchema>;
528
365
  declare const measurementUnitIdShape: z.ZodInt;
529
366
  type MeasurementUnitId = z.infer<typeof measurementUnitIdShape>;
@@ -534,74 +371,46 @@ type MeasurementUnitListResult = {
534
371
  };
535
372
  //#endregion
536
373
  //#region src/app/domain/(audit)/audit-logs/audit-logs.schemas.d.ts
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
- >;
374
+ declare const auditLogSchema: z.ZodObject<{
375
+ id: z.ZodInt;
376
+ event: z.ZodString;
377
+ actorEmployeeId: z.ZodNullable<z.ZodInt>;
378
+ payload: z.ZodType<import("drizzle-orm").Json, unknown, z.core.$ZodTypeInternals<import("drizzle-orm").Json, unknown>>;
379
+ createdAt: z.ZodDate;
380
+ }, z.core.$strip>;
551
381
  //#endregion
552
382
  //#region src/app/flows/(audit)/audit/audit.enums.d.ts
553
383
  declare const auditLogSourcesArray: readonly ['admin', 'backend'];
554
384
  type AuditLogSource = (typeof auditLogSourcesArray)[number];
555
385
  //#endregion
556
386
  //#region src/app/flows/(audit)/audit/audit.schemas.d.ts
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
- >;
387
+ declare const auditLogSearchPayloadSchema: z.ZodObject<{
388
+ where: z.ZodOptional<z.ZodPipe<z.ZodObject<{
389
+ event: z.ZodOptional<z.ZodString>;
390
+ actorEmployeeId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
391
+ }, z.core.$strip>, z.ZodTransform<{
392
+ event?: string | undefined;
393
+ actorEmployeeId: number | null;
394
+ } | {
395
+ event: string;
396
+ actorEmployeeId?: number | null | undefined;
397
+ }, {
398
+ event?: string | undefined;
399
+ actorEmployeeId?: number | null | undefined;
400
+ }>>>;
401
+ query: z.ZodOptional<z.ZodString>;
402
+ pagination: z.ZodObject<{
403
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
404
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
405
+ }, z.core.$strip>;
406
+ }, z.core.$strict>;
407
+ declare const auditLogSelectOneQuerySchema: z.ZodObject<{
408
+ id: z.ZodInt;
409
+ source: z.ZodEnum<{
410
+ admin: "admin";
411
+ backend: "backend";
412
+ }>;
413
+ }, z.core.$strip>;
605
414
  type AuditLogSearchPayload = z.infer<typeof auditLogSearchPayloadSchema>;
606
415
  type AuditLogResult = z.infer<typeof auditLogSchema> & {
607
416
  source: AuditLogSource;
@@ -613,104 +422,73 @@ type AuditLogSearchResult = {
613
422
  };
614
423
  //#endregion
615
424
  //#region src/app/domain/(sales)/customers/customers.schemas.d.ts
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
- >;
425
+ declare const customerSchema: z.ZodObject<{
426
+ id: z.ZodInt;
427
+ type: z.ZodEnum<{
428
+ individual: "individual";
429
+ individual_entrepreneur: "individual_entrepreneur";
430
+ legal_entity: "legal_entity";
431
+ }>;
432
+ name: z.ZodString;
433
+ identificationNumber: z.ZodNullable<z.ZodString>;
434
+ emailAddress: z.ZodNullable<z.ZodString>;
435
+ phoneNumber: z.ZodNullable<z.ZodString>;
436
+ notes: z.ZodNullable<z.ZodString>;
437
+ updatedAt: z.ZodNullable<z.ZodDate>;
438
+ createdAt: z.ZodDate;
439
+ }, z.core.$strip>;
634
440
  type Customer = z.infer<typeof customerSchema>;
635
441
  declare const customerIdShape: z.ZodInt;
636
442
  type CustomerId = z.infer<typeof customerIdShape>;
637
443
  //#endregion
638
444
  //#region src/app/flows/(sales)/customer/customer.schemas.d.ts
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
- >;
445
+ declare const customerSearchOptionsSchema: z.ZodObject<{
446
+ where: z.ZodOptional<z.ZodPipe<z.ZodObject<{
447
+ type: z.ZodOptional<z.ZodEnum<{
448
+ individual: "individual";
449
+ individual_entrepreneur: "individual_entrepreneur";
450
+ legal_entity: "legal_entity";
451
+ }>>;
452
+ }, z.core.$strip>, z.ZodTransform<{
453
+ type: "individual" | "individual_entrepreneur" | "legal_entity";
454
+ }, {
455
+ type?: "individual" | "individual_entrepreneur" | "legal_entity" | undefined;
456
+ }>>>;
457
+ query: z.ZodOptional<z.ZodString>;
458
+ pagination: z.ZodObject<{
459
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
460
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
461
+ }, z.core.$strip>;
462
+ }, z.core.$strict>;
463
+ declare const customerSelectOneQuerySchema: z.ZodObject<{
464
+ id: z.ZodInt;
465
+ }, z.core.$strip>;
466
+ declare const customerCreatePayloadSchema: z.ZodObject<{
467
+ type: z.ZodEnum<{
468
+ individual: "individual";
469
+ individual_entrepreneur: "individual_entrepreneur";
470
+ legal_entity: "legal_entity";
471
+ }>;
472
+ name: z.ZodString;
473
+ identificationNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
474
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
475
+ phoneNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
476
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
477
+ }, {
478
+ out: {};
479
+ in: {};
480
+ }>;
481
+ declare const customerUpdatePayloadSchema: z.ZodObject<{
482
+ name: z.ZodOptional<z.ZodString>;
483
+ identificationNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
484
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
485
+ phoneNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
486
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
487
+ customerId: z.ZodInt;
488
+ }, {
489
+ out: {};
490
+ in: {};
491
+ }>;
714
492
  type CustomerSearchOptions = z.infer<typeof customerSearchOptionsSchema>;
715
493
  type CustomerSearchResult = {
716
494
  customers: Customer[];
@@ -721,151 +499,115 @@ type CustomerCreatePayload = z.infer<typeof customerCreatePayloadSchema>;
721
499
  type CustomerUpdatePayload = z.infer<typeof customerUpdatePayloadSchema>;
722
500
  //#endregion
723
501
  //#region src/app/flows/(procurement)/delivery/delivery.schemas.d.ts
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
- {
502
+ declare const deliveryCreatePayloadSchema: z.ZodObject<{
503
+ supplierId: z.ZodInt;
504
+ warehouseId: z.ZodInt;
505
+ currencyId: z.ZodInt;
506
+ exchangeRateId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
507
+ }, {
508
+ out: {};
509
+ in: {};
510
+ }>;
511
+ declare const deliverySelectOneQuerySchema: z.ZodObject<{
512
+ id: z.ZodInt;
513
+ }, z.core.$strip>;
514
+ declare const deliveryUpdatePayloadSchema: z.ZodObject<{
515
+ supplierId: z.ZodOptional<z.ZodInt>;
516
+ warehouseId: z.ZodOptional<z.ZodInt>;
517
+ currencyId: z.ZodOptional<z.ZodInt>;
518
+ exchangeRateId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
519
+ deliveryId: z.ZodInt;
520
+ }, {
521
+ out: {};
522
+ in: {};
523
+ }>;
524
+ declare const deliverySearchOptionsSchema: z.ZodObject<{
525
+ where: z.ZodOptional<z.ZodPipe<z.ZodObject<{
744
526
  supplierId: z.ZodOptional<z.ZodInt>;
745
527
  warehouseId: z.ZodOptional<z.ZodInt>;
746
528
  currencyId: z.ZodOptional<z.ZodInt>;
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
- >;
529
+ status: z.ZodOptional<z.ZodEnum<{
530
+ draft: "draft";
531
+ posted: "posted";
532
+ }>>;
533
+ createdAtFrom: z.ZodOptional<z.ZodCoercedDate<unknown>>;
534
+ createdAtTo: z.ZodOptional<z.ZodCoercedDate<unknown>>;
535
+ }, z.core.$strip>, z.ZodTransform<{
536
+ supplierId?: number | undefined;
537
+ warehouseId?: number | undefined;
538
+ currencyId?: number | undefined;
539
+ status?: "draft" | "posted" | undefined;
540
+ createdAtFrom: Date;
541
+ createdAtTo?: Date | undefined;
542
+ } | {
543
+ supplierId?: number | undefined;
544
+ warehouseId?: number | undefined;
545
+ currencyId?: number | undefined;
546
+ status?: "draft" | "posted" | undefined;
547
+ createdAtFrom?: Date | undefined;
548
+ createdAtTo: Date;
549
+ } | {
550
+ supplierId?: number | undefined;
551
+ warehouseId?: number | undefined;
552
+ currencyId: number;
553
+ status?: "draft" | "posted" | undefined;
554
+ createdAtFrom?: Date | undefined;
555
+ createdAtTo?: Date | undefined;
556
+ } | {
557
+ supplierId?: number | undefined;
558
+ warehouseId?: number | undefined;
559
+ currencyId?: number | undefined;
560
+ status: "draft" | "posted";
561
+ createdAtFrom?: Date | undefined;
562
+ createdAtTo?: Date | undefined;
563
+ } | {
564
+ supplierId: number;
565
+ warehouseId?: number | undefined;
566
+ currencyId?: number | undefined;
567
+ status?: "draft" | "posted" | undefined;
568
+ createdAtFrom?: Date | undefined;
569
+ createdAtTo?: Date | undefined;
570
+ } | {
571
+ supplierId?: number | undefined;
572
+ warehouseId: number;
573
+ currencyId?: number | undefined;
574
+ status?: "draft" | "posted" | undefined;
575
+ createdAtFrom?: Date | undefined;
576
+ createdAtTo?: Date | undefined;
577
+ }, {
578
+ supplierId?: number | undefined;
579
+ warehouseId?: number | undefined;
580
+ currencyId?: number | undefined;
581
+ status?: "draft" | "posted" | undefined;
582
+ createdAtFrom?: Date | undefined;
583
+ createdAtTo?: Date | undefined;
584
+ }>>>;
585
+ query: z.ZodOptional<z.ZodString>;
586
+ pagination: z.ZodObject<{
587
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
588
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
589
+ }, z.core.$strip>;
590
+ }, z.core.$strict>;
591
+ declare const deliverySearchItemSchema: z.ZodObject<{
592
+ id: z.ZodInt;
593
+ code: z.ZodString;
594
+ supplierId: z.ZodInt;
595
+ warehouseId: z.ZodInt;
596
+ currencyId: z.ZodInt;
597
+ status: z.ZodEnum<{
598
+ draft: "draft";
599
+ posted: "posted";
600
+ }>;
601
+ exchangeRateId: z.ZodNullable<z.ZodInt>;
602
+ exchangeRate: z.ZodNullable<z.ZodString>;
603
+ exchangeRateValidFromDate: z.ZodNullable<z.ZodISODate>;
604
+ postedAt: z.ZodNullable<z.ZodDate>;
605
+ updatedAt: z.ZodNullable<z.ZodDate>;
606
+ createdAt: z.ZodDate;
607
+ supplierName: z.ZodString;
608
+ warehouseName: z.ZodString;
609
+ currencyCode: z.ZodString;
610
+ }, z.core.$strip>;
869
611
  type DeliveryCreatePayload = z.infer<typeof deliveryCreatePayloadSchema>;
870
612
  type DeliverySelectOneQuery = z.infer<typeof deliverySelectOneQuerySchema>;
871
613
  type DeliverySearchOptions = z.infer<typeof deliverySearchOptionsSchema>;
@@ -875,115 +617,170 @@ type DeliverySearchResult = {
875
617
  };
876
618
  type DeliveryUpdatePayload = z.infer<typeof deliveryUpdatePayloadSchema>;
877
619
  type DeliverySearchItem = z.infer<typeof deliverySearchItemSchema>;
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
- {
620
+ declare const deliveryDeletePayloadSchema: z.ZodObject<{
621
+ deliveryId: z.ZodInt;
622
+ }, z.core.$strip>;
623
+ declare const deliveryPostPayloadSchema: z.ZodObject<{
624
+ deliveryId: z.ZodInt;
625
+ }, z.core.$strip>;
626
+ declare const deliveryItemAddPayloadSchema: z.ZodObject<{
627
+ deliveryId: z.ZodInt;
628
+ productVariantId: z.ZodInt;
629
+ unitCost: z.ZodNullable<z.ZodString>;
630
+ supplierLotNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
631
+ expiresOn: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
632
+ quantity: z.ZodOptional<z.ZodNumber>;
633
+ }, {
634
+ out: {};
635
+ in: {};
636
+ }>;
637
+ declare const deliveryItemUpdatePayloadSchema: z.ZodObject<{
638
+ quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
639
+ unitCost: z.ZodOptional<z.ZodNullable<z.ZodString>>;
640
+ supplierLotNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
641
+ expiresOn: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
642
+ deliveryItemId: z.ZodInt;
643
+ expectedRevision: z.ZodInt;
644
+ }, {
645
+ out: {};
646
+ in: {};
647
+ }>;
648
+ declare const deliveryItemDeletePayloadSchema: z.ZodObject<{
649
+ deliveryItemId: z.ZodInt;
650
+ expectedRevision: z.ZodInt;
651
+ }, z.core.$strip>;
652
+ declare const deliveryItemCatalogDetailsSchema: z.ZodObject<{
653
+ product: z.ZodObject<{
654
+ id: z.ZodInt;
655
+ model: z.ZodNullable<z.ZodString>;
656
+ name: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
657
+ en: "en";
658
+ ka: "ka";
659
+ ru: "ru";
660
+ }> & z.core.$partial, z.ZodString>>;
661
+ image: z.ZodNullable<z.ZodObject<{
662
+ src: z.ZodURL;
663
+ isBanner: z.ZodBoolean;
664
+ }, z.core.$strip>>;
665
+ }, z.core.$strip>;
666
+ productVariant: z.ZodObject<{
667
+ id: z.ZodInt;
668
+ sku: z.ZodNullable<z.ZodString>;
669
+ name: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
670
+ en: "en";
671
+ ka: "ka";
672
+ ru: "ru";
673
+ }> & z.core.$partial, z.ZodString>>;
674
+ barcodes: z.ZodArray<z.ZodString>;
675
+ }, z.core.$strip>;
676
+ measurementUnit: z.ZodObject<{
677
+ id: z.ZodInt;
678
+ code: z.ZodString;
679
+ name: z.ZodString;
680
+ decimalPlaces: z.ZodInt;
681
+ }, z.core.$strip>;
682
+ }, z.core.$strip>;
683
+ declare const deliveryItemDetailsSchema: z.ZodObject<{
684
+ id: z.ZodInt;
685
+ deliveryId: z.ZodInt;
686
+ productVariantId: z.ZodInt;
687
+ quantity: z.ZodNullable<z.ZodNumber>;
688
+ unitCost: z.ZodNullable<z.ZodString>;
689
+ unitCostBase: z.ZodNullable<z.ZodString>;
690
+ supplierLotNumber: z.ZodNullable<z.ZodString>;
691
+ expiresOn: z.ZodNullable<z.ZodISODate>;
692
+ revision: z.ZodInt;
693
+ updatedAt: z.ZodNullable<z.ZodDate>;
694
+ createdAt: z.ZodDate;
695
+ product: z.ZodObject<{
696
+ id: z.ZodInt;
697
+ model: z.ZodNullable<z.ZodString>;
698
+ name: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
699
+ en: "en";
700
+ ka: "ka";
701
+ ru: "ru";
702
+ }> & z.core.$partial, z.ZodString>>;
703
+ image: z.ZodNullable<z.ZodObject<{
704
+ src: z.ZodURL;
705
+ isBanner: z.ZodBoolean;
706
+ }, z.core.$strip>>;
707
+ }, z.core.$strip>;
708
+ productVariant: z.ZodObject<{
709
+ id: z.ZodInt;
710
+ sku: z.ZodNullable<z.ZodString>;
711
+ name: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
712
+ en: "en";
713
+ ka: "ka";
714
+ ru: "ru";
715
+ }> & z.core.$partial, z.ZodString>>;
716
+ barcodes: z.ZodArray<z.ZodString>;
717
+ }, z.core.$strip>;
718
+ measurementUnit: z.ZodObject<{
719
+ id: z.ZodInt;
720
+ code: z.ZodString;
721
+ name: z.ZodString;
722
+ decimalPlaces: z.ZodInt;
723
+ }, z.core.$strip>;
724
+ updatedByEmployee: z.ZodNullable<z.ZodObject<{
725
+ id: z.ZodInt;
726
+ fullName: z.ZodString;
727
+ }, z.core.$strip>>;
728
+ }, z.core.$strip>;
729
+ declare const deliveryItemScanPayloadSchema: z.ZodObject<{
730
+ deliveryId: z.ZodInt;
731
+ barcode: z.ZodString;
732
+ }, z.core.$strip>;
733
+ declare const deliveryItemScanResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
734
+ outcome: z.ZodLiteral<"added">;
735
+ deliveryItem: z.ZodObject<{
736
+ id: z.ZodInt;
892
737
  deliveryId: z.ZodInt;
893
738
  productVariantId: z.ZodInt;
739
+ quantity: z.ZodNullable<z.ZodNumber>;
894
740
  unitCost: z.ZodNullable<z.ZodString>;
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
- {
741
+ unitCostBase: z.ZodNullable<z.ZodString>;
742
+ supplierLotNumber: z.ZodNullable<z.ZodString>;
743
+ expiresOn: z.ZodNullable<z.ZodISODate>;
744
+ revision: z.ZodInt;
745
+ updatedAt: z.ZodNullable<z.ZodDate>;
746
+ createdAt: z.ZodDate;
747
+ product: z.ZodObject<{
748
+ id: z.ZodInt;
749
+ model: z.ZodNullable<z.ZodString>;
750
+ name: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
751
+ en: "en";
752
+ ka: "ka";
753
+ ru: "ru";
754
+ }> & z.core.$partial, z.ZodString>>;
755
+ image: z.ZodNullable<z.ZodObject<{
756
+ src: z.ZodURL;
757
+ isBanner: z.ZodBoolean;
758
+ }, z.core.$strip>>;
759
+ }, z.core.$strip>;
760
+ productVariant: z.ZodObject<{
761
+ id: z.ZodInt;
762
+ sku: z.ZodNullable<z.ZodString>;
763
+ name: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
764
+ en: "en";
765
+ ka: "ka";
766
+ ru: "ru";
767
+ }> & z.core.$partial, z.ZodString>>;
768
+ barcodes: z.ZodArray<z.ZodString>;
769
+ }, z.core.$strip>;
770
+ measurementUnit: z.ZodObject<{
771
+ id: z.ZodInt;
772
+ code: z.ZodString;
773
+ name: z.ZodString;
774
+ decimalPlaces: z.ZodInt;
775
+ }, z.core.$strip>;
776
+ updatedByEmployee: z.ZodNullable<z.ZodObject<{
777
+ id: z.ZodInt;
778
+ fullName: z.ZodString;
779
+ }, z.core.$strip>>;
780
+ }, z.core.$strip>;
781
+ }, z.core.$strip>, z.ZodObject<{
782
+ outcome: z.ZodLiteral<"unchanged">;
783
+ deliveryItem: z.ZodObject<{
987
784
  id: z.ZodInt;
988
785
  deliveryId: z.ZodInt;
989
786
  productVariantId: z.ZodInt;
@@ -995,366 +792,107 @@ declare const deliveryItemDetailsSchema: z.ZodObject<
995
792
  revision: z.ZodInt;
996
793
  updatedAt: z.ZodNullable<z.ZodDate>;
997
794
  createdAt: z.ZodDate;
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
- {
1067
- deliveryId: 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
- {
795
+ product: z.ZodObject<{
796
+ id: z.ZodInt;
797
+ model: z.ZodNullable<z.ZodString>;
798
+ name: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
799
+ en: "en";
800
+ ka: "ka";
801
+ ru: "ru";
802
+ }> & z.core.$partial, z.ZodString>>;
803
+ image: z.ZodNullable<z.ZodObject<{
804
+ src: z.ZodURL;
805
+ isBanner: z.ZodBoolean;
806
+ }, z.core.$strip>>;
807
+ }, z.core.$strip>;
808
+ productVariant: z.ZodObject<{
809
+ id: z.ZodInt;
810
+ sku: z.ZodNullable<z.ZodString>;
811
+ name: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
812
+ en: "en";
813
+ ka: "ka";
814
+ ru: "ru";
815
+ }> & z.core.$partial, z.ZodString>>;
816
+ barcodes: z.ZodArray<z.ZodString>;
817
+ }, z.core.$strip>;
818
+ measurementUnit: z.ZodObject<{
819
+ id: z.ZodInt;
820
+ code: z.ZodString;
821
+ name: z.ZodString;
822
+ decimalPlaces: z.ZodInt;
823
+ }, z.core.$strip>;
824
+ updatedByEmployee: z.ZodNullable<z.ZodObject<{
825
+ id: z.ZodInt;
826
+ fullName: z.ZodString;
827
+ }, z.core.$strip>>;
828
+ }, z.core.$strip>;
829
+ }, z.core.$strip>, z.ZodObject<{
830
+ outcome: z.ZodLiteral<"product-variant-not-found">;
831
+ barcode: z.ZodString;
832
+ }, z.core.$strip>], "outcome">;
833
+ declare const deliveryDetailsSchema: z.ZodObject<{
834
+ id: z.ZodInt;
835
+ code: z.ZodString;
836
+ supplierId: z.ZodInt;
837
+ warehouseId: z.ZodInt;
838
+ currencyId: z.ZodInt;
839
+ status: z.ZodEnum<{
840
+ draft: "draft";
841
+ posted: "posted";
842
+ }>;
843
+ exchangeRateId: z.ZodNullable<z.ZodInt>;
844
+ exchangeRate: z.ZodNullable<z.ZodString>;
845
+ exchangeRateValidFromDate: z.ZodNullable<z.ZodISODate>;
846
+ postedAt: z.ZodNullable<z.ZodDate>;
847
+ updatedAt: z.ZodNullable<z.ZodDate>;
848
+ createdAt: z.ZodDate;
849
+ items: z.ZodArray<z.ZodObject<{
1258
850
  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>;
851
+ deliveryId: z.ZodInt;
852
+ productVariantId: z.ZodInt;
853
+ quantity: z.ZodNullable<z.ZodNumber>;
854
+ unitCost: z.ZodNullable<z.ZodString>;
855
+ unitCostBase: z.ZodNullable<z.ZodString>;
856
+ supplierLotNumber: z.ZodNullable<z.ZodString>;
857
+ expiresOn: z.ZodNullable<z.ZodISODate>;
858
+ revision: z.ZodInt;
1271
859
  updatedAt: z.ZodNullable<z.ZodDate>;
1272
860
  createdAt: z.ZodDate;
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
- >;
861
+ product: z.ZodObject<{
862
+ id: z.ZodInt;
863
+ model: z.ZodNullable<z.ZodString>;
864
+ name: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
865
+ en: "en";
866
+ ka: "ka";
867
+ ru: "ru";
868
+ }> & z.core.$partial, z.ZodString>>;
869
+ image: z.ZodNullable<z.ZodObject<{
870
+ src: z.ZodURL;
871
+ isBanner: z.ZodBoolean;
872
+ }, z.core.$strip>>;
873
+ }, z.core.$strip>;
874
+ productVariant: z.ZodObject<{
875
+ id: z.ZodInt;
876
+ sku: z.ZodNullable<z.ZodString>;
877
+ name: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
878
+ en: "en";
879
+ ka: "ka";
880
+ ru: "ru";
881
+ }> & z.core.$partial, z.ZodString>>;
882
+ barcodes: z.ZodArray<z.ZodString>;
883
+ }, z.core.$strip>;
884
+ measurementUnit: z.ZodObject<{
885
+ id: z.ZodInt;
886
+ code: z.ZodString;
887
+ name: z.ZodString;
888
+ decimalPlaces: z.ZodInt;
889
+ }, z.core.$strip>;
890
+ updatedByEmployee: z.ZodNullable<z.ZodObject<{
891
+ id: z.ZodInt;
892
+ fullName: z.ZodString;
893
+ }, z.core.$strip>>;
894
+ }, z.core.$strip>>;
895
+ }, z.core.$strip>;
1358
896
  type DeliveryDeletePayload = z.infer<typeof deliveryDeletePayloadSchema>;
1359
897
  type DeliveryPostPayload = z.infer<typeof deliveryPostPayloadSchema>;
1360
898
  type DeliveryItemAddPayload = z.infer<typeof deliveryItemAddPayloadSchema>;
@@ -1376,120 +914,85 @@ type DeliverySelectOneResult = {
1376
914
  };
1377
915
  //#endregion
1378
916
  //#region src/app/domain/(procurement)/suppliers/suppliers.schemas.d.ts
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
- >;
917
+ declare const supplierSchema: z.ZodObject<{
918
+ id: z.ZodInt;
919
+ status: z.ZodEnum<{
920
+ active: "active";
921
+ archived: "archived";
922
+ }>;
923
+ name: z.ZodString;
924
+ identificationNumber: z.ZodNullable<z.ZodString>;
925
+ countryId: z.ZodNullable<z.ZodInt>;
926
+ emailAddress: z.ZodNullable<z.ZodString>;
927
+ phoneNumber: z.ZodNullable<z.ZodString>;
928
+ websiteUrl: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodURL>>;
929
+ notes: z.ZodNullable<z.ZodString>;
930
+ updatedAt: z.ZodNullable<z.ZodDate>;
931
+ createdAt: z.ZodDate;
932
+ }, z.core.$strip>;
1398
933
  type Supplier = z.infer<typeof supplierSchema>;
1399
934
  declare const supplierIdShape: z.ZodInt;
1400
935
  type SupplierId = z.infer<typeof supplierIdShape>;
1401
936
  //#endregion
1402
937
  //#region src/app/flows/(procurement)/supplier/supplier.schemas.d.ts
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>>;
938
+ declare const supplierSearchOptionsSchema: z.ZodObject<{
939
+ where: z.ZodOptional<z.ZodPipe<z.ZodObject<{
940
+ status: z.ZodOptional<z.ZodEnum<{
941
+ active: "active";
942
+ archived: "archived";
943
+ }>>;
1471
944
  countryId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
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
- >;
945
+ }, z.core.$strip>, z.ZodTransform<{
946
+ status?: "active" | "archived" | undefined;
947
+ countryId: number | null;
948
+ } | {
949
+ status: "active" | "archived";
950
+ countryId?: number | null | undefined;
951
+ }, {
952
+ status?: "active" | "archived" | undefined;
953
+ countryId?: number | null | undefined;
954
+ }>>>;
955
+ query: z.ZodOptional<z.ZodString>;
956
+ pagination: z.ZodObject<{
957
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
958
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
959
+ }, z.core.$strip>;
960
+ }, z.core.$strict>;
961
+ declare const supplierSelectOneQuerySchema: z.ZodObject<{
962
+ id: z.ZodInt;
963
+ }, z.core.$strip>;
964
+ declare const supplierCreatePayloadSchema: z.ZodObject<{
965
+ name: z.ZodString;
966
+ identificationNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
967
+ countryId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
968
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
969
+ phoneNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
970
+ websiteUrl: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodURL>>;
971
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
972
+ }, {
973
+ out: {};
974
+ in: {};
975
+ }>;
976
+ declare const supplierUpdatePayloadSchema: z.ZodObject<{
977
+ name: z.ZodOptional<z.ZodString>;
978
+ identificationNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
979
+ countryId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
980
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
981
+ phoneNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
982
+ websiteUrl: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodURL>>>;
983
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
984
+ supplierId: z.ZodInt;
985
+ }, {
986
+ out: {};
987
+ in: {};
988
+ }>;
989
+ declare const supplierSwitchStatusPayloadSchema: z.ZodObject<{
990
+ status: z.ZodEnum<{
991
+ active: "active";
992
+ archived: "archived";
993
+ }>;
994
+ supplierId: z.ZodInt;
995
+ }, z.core.$strip>;
1493
996
  type SupplierSearchOptions = z.infer<typeof supplierSearchOptionsSchema>;
1494
997
  type SupplierSearchResult = {
1495
998
  suppliers: Supplier[];
@@ -1501,121 +1004,71 @@ type SupplierUpdatePayload = z.infer<typeof supplierUpdatePayloadSchema>;
1501
1004
  type SupplierSwitchStatusPayload = z.infer<typeof supplierSwitchStatusPayloadSchema>;
1502
1005
  //#endregion
1503
1006
  //#region src/app/flows/(warehouse)/stock-balance/stock-balance.schemas.d.ts
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
- {
1007
+ declare const stockBalanceSearchOptionsSchema: z.ZodObject<{
1008
+ where: z.ZodOptional<z.ZodPipe<z.ZodObject<{
1009
+ warehouseId: z.ZodOptional<z.ZodInt>;
1010
+ productVariantId: z.ZodOptional<z.ZodInt>;
1011
+ }, z.core.$strip>, z.ZodTransform<{
1012
+ warehouseId?: number | undefined;
1013
+ productVariantId: number;
1014
+ } | {
1015
+ warehouseId: number;
1016
+ productVariantId?: number | undefined;
1017
+ }, {
1018
+ warehouseId?: number | undefined;
1019
+ productVariantId?: number | undefined;
1020
+ }>>>;
1021
+ query: z.ZodOptional<z.ZodString>;
1022
+ pagination: z.ZodObject<{
1023
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1024
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1025
+ }, z.core.$strip>;
1026
+ }, z.core.$strict>;
1027
+ declare const stockBalanceSearchItemSchema: z.ZodObject<{
1028
+ id: z.ZodInt;
1029
+ warehouseId: z.ZodInt;
1030
+ productVariantId: z.ZodInt;
1031
+ onHand: z.ZodNumber;
1032
+ reserved: z.ZodNumber;
1033
+ averageUnitCostBase: z.ZodNullable<z.ZodString>;
1034
+ updatedAt: z.ZodNullable<z.ZodDate>;
1035
+ createdAt: z.ZodDate;
1036
+ available: z.ZodNumber;
1037
+ warehouse: z.ZodObject<{
1544
1038
  id: z.ZodInt;
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
- >;
1039
+ code: z.ZodString;
1040
+ name: z.ZodString;
1041
+ }, z.core.$strip>;
1042
+ product: z.ZodObject<{
1043
+ id: z.ZodInt;
1044
+ model: z.ZodNullable<z.ZodString>;
1045
+ name: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
1046
+ en: "en";
1047
+ ka: "ka";
1048
+ ru: "ru";
1049
+ }> & z.core.$partial, z.ZodString>>;
1050
+ image: z.ZodNullable<z.ZodObject<{
1051
+ src: z.ZodURL;
1052
+ isBanner: z.ZodBoolean;
1053
+ }, z.core.$strip>>;
1054
+ }, z.core.$strip>;
1055
+ productVariant: z.ZodObject<{
1056
+ id: z.ZodInt;
1057
+ sku: z.ZodNullable<z.ZodString>;
1058
+ name: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
1059
+ en: "en";
1060
+ ka: "ka";
1061
+ ru: "ru";
1062
+ }> & z.core.$partial, z.ZodString>>;
1063
+ barcodes: z.ZodArray<z.ZodString>;
1064
+ }, z.core.$strip>;
1065
+ measurementUnit: z.ZodObject<{
1066
+ id: z.ZodInt;
1067
+ code: z.ZodString;
1068
+ name: z.ZodString;
1069
+ decimalPlaces: z.ZodInt;
1070
+ }, z.core.$strip>;
1071
+ }, z.core.$strip>;
1619
1072
  type StockBalanceSearchOptions = z.infer<typeof stockBalanceSearchOptionsSchema>;
1620
1073
  type StockBalanceSearchItem = z.infer<typeof stockBalanceSearchItemSchema>;
1621
1074
  type StockBalanceSearchResult = {
@@ -1624,111 +1077,76 @@ type StockBalanceSearchResult = {
1624
1077
  };
1625
1078
  //#endregion
1626
1079
  //#region src/app/domain/(warehouse)/warehouses/warehouses.schemas.d.ts
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
- >;
1080
+ declare const warehouseSchema: z.ZodObject<{
1081
+ id: z.ZodInt;
1082
+ code: z.ZodString;
1083
+ name: z.ZodString;
1084
+ address: z.ZodString;
1085
+ status: z.ZodEnum<{
1086
+ active: "active";
1087
+ archived: "archived";
1088
+ }>;
1089
+ salesEnabled: z.ZodBoolean;
1090
+ updatedAt: z.ZodNullable<z.ZodDate>;
1091
+ createdAt: z.ZodDate;
1092
+ }, z.core.$strip>;
1643
1093
  type Warehouse = z.infer<typeof warehouseSchema>;
1644
1094
  declare const warehouseIdShape: z.ZodInt;
1645
1095
  type WarehouseId = z.infer<typeof warehouseIdShape>;
1646
1096
  //#endregion
1647
1097
  //#region src/app/flows/(warehouse)/warehouse/warehouse.schemas.d.ts
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>;
1098
+ declare const warehouseSearchOptionsSchema: z.ZodObject<{
1099
+ where: z.ZodOptional<z.ZodPipe<z.ZodObject<{
1100
+ status: z.ZodOptional<z.ZodEnum<{
1101
+ active: "active";
1102
+ archived: "archived";
1103
+ }>>;
1714
1104
  salesEnabled: z.ZodOptional<z.ZodBoolean>;
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
- >;
1105
+ }, z.core.$strip>, z.ZodTransform<{
1106
+ status?: "active" | "archived" | undefined;
1107
+ salesEnabled: boolean;
1108
+ } | {
1109
+ status: "active" | "archived";
1110
+ salesEnabled?: boolean | undefined;
1111
+ }, {
1112
+ status?: "active" | "archived" | undefined;
1113
+ salesEnabled?: boolean | undefined;
1114
+ }>>>;
1115
+ query: z.ZodOptional<z.ZodString>;
1116
+ pagination: z.ZodObject<{
1117
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1118
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1119
+ }, z.core.$strip>;
1120
+ }, z.core.$strict>;
1121
+ declare const warehouseSelectOneQuerySchema: z.ZodObject<{
1122
+ id: z.ZodInt;
1123
+ }, z.core.$strip>;
1124
+ declare const warehouseCreatePayloadSchema: z.ZodObject<{
1125
+ code: z.ZodString;
1126
+ name: z.ZodString;
1127
+ address: z.ZodString;
1128
+ salesEnabled: z.ZodOptional<z.ZodBoolean>;
1129
+ }, {
1130
+ out: {};
1131
+ in: {};
1132
+ }>;
1133
+ declare const warehouseUpdatePayloadSchema: z.ZodObject<{
1134
+ code: z.ZodOptional<z.ZodString>;
1135
+ name: z.ZodOptional<z.ZodString>;
1136
+ address: z.ZodOptional<z.ZodString>;
1137
+ salesEnabled: z.ZodOptional<z.ZodBoolean>;
1138
+ warehouseId: z.ZodInt;
1139
+ }, {
1140
+ out: {};
1141
+ in: {};
1142
+ }>;
1143
+ declare const warehouseSwitchStatusPayloadSchema: z.ZodObject<{
1144
+ status: z.ZodEnum<{
1145
+ active: "active";
1146
+ archived: "archived";
1147
+ }>;
1148
+ warehouseId: z.ZodInt;
1149
+ }, z.core.$strip>;
1732
1150
  type WarehouseSearchOptions = z.infer<typeof warehouseSearchOptionsSchema>;
1733
1151
  type WarehouseSearchResult = {
1734
1152
  warehouses: Warehouse[];
@@ -1740,71 +1158,47 @@ type WarehouseUpdatePayload = z.infer<typeof warehouseUpdatePayloadSchema>;
1740
1158
  type WarehouseSwitchStatusPayload = z.infer<typeof warehouseSwitchStatusPayloadSchema>;
1741
1159
  //#endregion
1742
1160
  //#region src/app/domain/(finance)/currencies/currencies.schemas.d.ts
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
- >;
1161
+ declare const currencySchema: z.ZodObject<{
1162
+ id: z.ZodInt;
1163
+ code: z.ZodString;
1164
+ name: z.ZodString;
1165
+ sortOrder: z.ZodInt;
1166
+ }, z.core.$strip>;
1752
1167
  type Currency = z.infer<typeof currencySchema>;
1753
1168
  declare const currencyIdShape: z.ZodInt;
1754
1169
  type CurrencyId = z.infer<typeof currencyIdShape>;
1755
1170
  //#endregion
1756
1171
  //#region src/app/domain/(finance)/exchange-rates/exchange-rates.schemas.d.ts
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
- >;
1172
+ declare const exchangeRateSchema: z.ZodObject<{
1173
+ id: z.ZodInt;
1174
+ currencyId: z.ZodInt;
1175
+ rate: z.ZodString;
1176
+ validFromDate: z.ZodISODate;
1177
+ }, z.core.$strip>;
1766
1178
  type ExchangeRate = z.infer<typeof exchangeRateSchema>;
1767
1179
  declare const exchangeRateIdShape: z.ZodInt;
1768
1180
  type ExchangeRateId = z.infer<typeof exchangeRateIdShape>;
1769
1181
  //#endregion
1770
1182
  //#region src/app/flows/(finance)/exchange-rate/exchange-rate.schemas.d.ts
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
- >;
1183
+ declare const exchangeRateSearchOptionsSchema: z.ZodObject<{
1184
+ where: z.ZodOptional<z.ZodPipe<z.ZodObject<{
1185
+ currencyId: z.ZodOptional<z.ZodInt>;
1186
+ validFromDate: z.ZodOptional<z.ZodISODate>;
1187
+ }, z.core.$strip>, z.ZodTransform<{
1188
+ currencyId: number;
1189
+ validFromDate?: string | undefined;
1190
+ } | {
1191
+ currencyId?: number | undefined;
1192
+ validFromDate: string;
1193
+ }, {
1194
+ currencyId?: number | undefined;
1195
+ validFromDate?: string | undefined;
1196
+ }>>>;
1197
+ pagination: z.ZodObject<{
1198
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1199
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1200
+ }, z.core.$strip>;
1201
+ }, z.core.$strict>;
1808
1202
  type ExchangeRateSearchOptions = z.infer<typeof exchangeRateSearchOptionsSchema>;
1809
1203
  type ExchangeRateSearchResult = {
1810
1204
  exchangeRates: ExchangeRate[];
@@ -1820,22 +1214,14 @@ type CurrencyListResult = {
1820
1214
  };
1821
1215
  //#endregion
1822
1216
  //#region src/app/domain/(catalog)/products/products.fields.d.ts
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
- >;
1217
+ declare const productImageSchema: z.ZodObject<{
1218
+ src: z.ZodURL;
1219
+ isBanner: z.ZodBoolean;
1220
+ }, z.core.$strip>;
1221
+ declare const productImagesSchema: z.ZodArray<z.ZodObject<{
1222
+ src: z.ZodURL;
1223
+ isBanner: z.ZodBoolean;
1224
+ }, z.core.$strip>>;
1839
1225
  type ProductImage = z.infer<typeof productImageSchema>;
1840
1226
  type ProductImages = z.infer<typeof productImagesSchema>;
1841
1227
  //#endregion
@@ -1844,55 +1230,35 @@ declare const productVariantIdShape: z.ZodInt;
1844
1230
  type ProductVariantId = z.infer<typeof productVariantIdShape>;
1845
1231
  //#endregion
1846
1232
  //#region src/app/domain/(catalog)/products/products.schemas.d.ts
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
- >;
1233
+ declare const productSchema: z.ZodObject<{
1234
+ id: z.ZodInt;
1235
+ slug: z.ZodNullable<z.ZodString>;
1236
+ model: z.ZodNullable<z.ZodString>;
1237
+ status: z.ZodEnum<{
1238
+ active: "active";
1239
+ archived: "archived";
1240
+ draft: "draft";
1241
+ }>;
1242
+ name: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
1243
+ en: "en";
1244
+ ka: "ka";
1245
+ ru: "ru";
1246
+ }> & z.core.$partial, z.ZodString>>;
1247
+ description: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
1248
+ en: "en";
1249
+ ka: "ka";
1250
+ ru: "ru";
1251
+ }> & z.core.$partial, z.ZodString>>;
1252
+ images: z.ZodArray<z.ZodObject<{
1253
+ src: z.ZodURL;
1254
+ isBanner: z.ZodBoolean;
1255
+ }, z.core.$strip>>;
1256
+ categoryId: z.ZodNullable<z.ZodInt>;
1257
+ brandId: z.ZodNullable<z.ZodInt>;
1258
+ taxCategoryId: z.ZodNullable<z.ZodInt>;
1259
+ updatedAt: z.ZodNullable<z.ZodDate>;
1260
+ createdAt: z.ZodDate;
1261
+ }, z.core.$strip>;
1896
1262
  type Product = z.infer<typeof productSchema>;
1897
1263
  declare const productIdShape: z.ZodInt;
1898
1264
  declare const productSlugShape: z.ZodString;
@@ -1900,202 +1266,104 @@ type ProductId = z.infer<typeof productIdShape>;
1900
1266
  type ProductSlug = z.infer<typeof productSlugShape>;
1901
1267
  //#endregion
1902
1268
  //#region src/app/flows/(catalog)/product/product.schemas.d.ts
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
- >;
1269
+ declare const productSearchOptionsSchema: z.ZodObject<{
1270
+ where: z.ZodOptional<z.ZodPipe<z.ZodObject<{
1271
+ status: z.ZodOptional<z.ZodEnum<{
1272
+ active: "active";
1273
+ archived: "archived";
1274
+ draft: "draft";
1275
+ }>>;
1276
+ categoryId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1277
+ brandId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1278
+ }, z.core.$strip>, z.ZodTransform<{
1279
+ status?: "active" | "archived" | "draft" | undefined;
1280
+ categoryId?: number | null | undefined;
1281
+ brandId: number | null;
1282
+ } | {
1283
+ status?: "active" | "archived" | "draft" | undefined;
1284
+ categoryId: number | null;
1285
+ brandId?: number | null | undefined;
1286
+ } | {
1287
+ status: "active" | "archived" | "draft";
1288
+ categoryId?: number | null | undefined;
1289
+ brandId?: number | null | undefined;
1290
+ }, {
1291
+ status?: "active" | "archived" | "draft" | undefined;
1292
+ categoryId?: number | null | undefined;
1293
+ brandId?: number | null | undefined;
1294
+ }>>>;
1295
+ query: z.ZodOptional<z.ZodString>;
1296
+ pagination: z.ZodObject<{
1297
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1298
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1299
+ }, z.core.$strip>;
1300
+ }, z.core.$strict>;
1301
+ declare const productSelectOneQuerySchema: z.ZodPipe<z.ZodObject<{
1302
+ id: z.ZodOptional<z.ZodInt>;
1303
+ slug: z.ZodOptional<z.ZodString>;
1304
+ }, z.core.$strip>, z.ZodTransform<{
1305
+ id: number;
1306
+ slug?: string | undefined;
1307
+ } | {
1308
+ id?: number | undefined;
1309
+ slug: string;
1310
+ }, {
1311
+ id?: number | undefined;
1312
+ slug?: string | undefined;
1313
+ }>>;
1314
+ declare const productDeletePayloadSchema: z.ZodObject<{
1315
+ productId: z.ZodInt;
1316
+ }, z.core.$strip>;
1317
+ declare const productCreatePayloadSchema: z.ZodObject<{
1318
+ slug: z.ZodPreprocess<z.ZodOptional<z.ZodNullable<z.ZodString>>, unknown>;
1319
+ model: z.ZodPreprocess<z.ZodOptional<z.ZodNullable<z.ZodString>>, unknown>;
1320
+ name: z.ZodOptional<z.ZodPreprocess<z.ZodNullable<z.ZodRecord<z.ZodEnum<{
1321
+ en: "en";
1322
+ ka: "ka";
1323
+ ru: "ru";
1324
+ }> & z.core.$partial, z.ZodString>>, unknown>>;
1325
+ description: z.ZodOptional<z.ZodPreprocess<z.ZodNullable<z.ZodRecord<z.ZodEnum<{
1326
+ en: "en";
1327
+ ka: "ka";
1328
+ ru: "ru";
1329
+ }> & z.core.$partial, z.ZodString>>, unknown>>;
1330
+ categoryId: z.ZodOptional<z.ZodPreprocess<z.ZodUnion<readonly [z.ZodNull, z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodInt>]>, unknown>>;
1331
+ brandId: z.ZodOptional<z.ZodPreprocess<z.ZodUnion<readonly [z.ZodNull, z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodInt>]>, unknown>>;
1332
+ taxCategoryId: z.ZodOptional<z.ZodPreprocess<z.ZodUnion<readonly [z.ZodNull, z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodInt>]>, unknown>>;
1333
+ images: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodFile>, unknown>>;
1334
+ bannerImageIndex: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
1335
+ }, {
1336
+ out: {};
1337
+ in: {};
1338
+ }>;
1339
+ declare const productUpdatePayloadSchema: z.ZodObject<{
1340
+ status: z.ZodOptional<z.ZodEnum<{
1341
+ active: "active";
1342
+ archived: "archived";
1343
+ draft: "draft";
1344
+ }>>;
1345
+ slug: z.ZodPreprocess<z.ZodOptional<z.ZodNullable<z.ZodString>>, unknown>;
1346
+ model: z.ZodOptional<z.ZodPreprocess<z.ZodOptional<z.ZodNullable<z.ZodString>>, unknown>>;
1347
+ name: z.ZodOptional<z.ZodPreprocess<z.ZodNullable<z.ZodRecord<z.ZodEnum<{
1348
+ en: "en";
1349
+ ka: "ka";
1350
+ ru: "ru";
1351
+ }> & z.core.$partial, z.ZodString>>, unknown>>;
1352
+ description: z.ZodOptional<z.ZodPreprocess<z.ZodNullable<z.ZodRecord<z.ZodEnum<{
1353
+ en: "en";
1354
+ ka: "ka";
1355
+ ru: "ru";
1356
+ }> & z.core.$partial, z.ZodString>>, unknown>>;
1357
+ categoryId: z.ZodOptional<z.ZodPreprocess<z.ZodUnion<readonly [z.ZodNull, z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodInt>]>, unknown>>;
1358
+ brandId: z.ZodOptional<z.ZodPreprocess<z.ZodUnion<readonly [z.ZodNull, z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodInt>]>, unknown>>;
1359
+ taxCategoryId: z.ZodOptional<z.ZodPreprocess<z.ZodUnion<readonly [z.ZodNull, z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodInt>]>, unknown>>;
1360
+ images: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodFile>, unknown>>;
1361
+ bannerImageIndex: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
1362
+ productId: z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodInt>;
1363
+ }, {
1364
+ out: {};
1365
+ in: {};
1366
+ }>;
2099
1367
  type ProductSearchOptions = z.infer<typeof productSearchOptionsSchema>;
2100
1368
  type ProductSearchResult = {
2101
1369
  products: Product[];
@@ -2110,144 +1378,88 @@ type ProductCreateResult = {
2110
1378
  type ProductUpdatePayload = z.infer<typeof productUpdatePayloadSchema>;
2111
1379
  //#endregion
2112
1380
  //#region src/app/flows/(catalog)/product-variant/product-variant.schemas.d.ts
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
- {
1381
+ declare const productVariantSearchOptionsSchema: z.ZodObject<{
1382
+ where: z.ZodNonOptional<z.ZodOptional<z.ZodObject<{
2187
1383
  productId: z.ZodInt;
2188
1384
  measurementUnitId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
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
- >;
1385
+ status: z.ZodOptional<z.ZodEnum<{
1386
+ active: "active";
1387
+ archived: "archived";
1388
+ draft: "draft";
1389
+ }>>;
1390
+ }, z.core.$strip>>>;
1391
+ query: z.ZodOptional<z.ZodString>;
1392
+ pagination: z.ZodObject<{
1393
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1394
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1395
+ }, z.core.$strip>;
1396
+ }, z.core.$strict>;
1397
+ declare const productVariantSelectOneQuerySchema: z.ZodObject<{
1398
+ id: z.ZodInt;
1399
+ }, z.core.$strip>;
1400
+ declare const productVariantDeletePayloadSchema: z.ZodObject<{
1401
+ productVariantId: z.ZodInt;
1402
+ }, z.core.$strip>;
1403
+ declare const productVariantResultSchema: z.ZodObject<{
1404
+ id: z.ZodInt;
1405
+ productId: z.ZodInt;
1406
+ measurementUnitId: z.ZodNullable<z.ZodInt>;
1407
+ taxCategoryId: z.ZodNullable<z.ZodInt>;
1408
+ status: z.ZodEnum<{
1409
+ active: "active";
1410
+ archived: "archived";
1411
+ draft: "draft";
1412
+ }>;
1413
+ sku: z.ZodNullable<z.ZodString>;
1414
+ name: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
1415
+ en: "en";
1416
+ ka: "ka";
1417
+ ru: "ru";
1418
+ }> & z.core.$partial, z.ZodString>>;
1419
+ updatedAt: z.ZodNullable<z.ZodDate>;
1420
+ createdAt: z.ZodDate;
1421
+ barcodes: z.ZodArray<z.ZodString>;
1422
+ }, z.core.$strip>;
1423
+ declare const productVariantCreatePayloadSchema: z.ZodObject<{
1424
+ productId: z.ZodInt;
1425
+ measurementUnitId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1426
+ taxCategoryId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1427
+ status: z.ZodOptional<z.ZodEnum<{
1428
+ active: "active";
1429
+ archived: "archived";
1430
+ draft: "draft";
1431
+ }>>;
1432
+ sku: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1433
+ name: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodEnum<{
1434
+ en: "en";
1435
+ ka: "ka";
1436
+ ru: "ru";
1437
+ }> & z.core.$partial, z.ZodString>>>;
1438
+ barcodes: z.ZodArray<z.ZodString>;
1439
+ }, {
1440
+ out: {};
1441
+ in: {};
1442
+ }>;
1443
+ declare const productVariantUpdatePayloadSchema: z.ZodObject<{
1444
+ measurementUnitId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1445
+ taxCategoryId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1446
+ status: z.ZodOptional<z.ZodEnum<{
1447
+ active: "active";
1448
+ archived: "archived";
1449
+ draft: "draft";
1450
+ }>>;
1451
+ sku: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1452
+ name: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodEnum<{
1453
+ en: "en";
1454
+ ka: "ka";
1455
+ ru: "ru";
1456
+ }> & z.core.$partial, z.ZodString>>>;
1457
+ productVariantId: z.ZodInt;
1458
+ barcodes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1459
+ }, {
1460
+ out: {};
1461
+ in: {};
1462
+ }>;
2251
1463
  type ProductVariantResult = z.infer<typeof productVariantResultSchema>;
2252
1464
  type ProductVariantSearchOptions = z.infer<typeof productVariantSearchOptionsSchema>;
2253
1465
  type ProductVariantSearchResult = {
@@ -2266,79 +1478,67 @@ type ProductVariantSelectOneResult = {
2266
1478
  type ProductVariantUpdatePayload = z.infer<typeof productVariantUpdatePayloadSchema>;
2267
1479
  //#endregion
2268
1480
  //#region src/app/domain/(procurement)/delivery-items/delivery-items.schemas.d.ts
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
- >;
1481
+ declare const deliveryItemSchema: z.ZodObject<{
1482
+ id: z.ZodInt;
1483
+ deliveryId: z.ZodInt;
1484
+ productVariantId: z.ZodInt;
1485
+ quantity: z.ZodNullable<z.ZodNumber>;
1486
+ unitCost: z.ZodNullable<z.ZodString>;
1487
+ unitCostBase: z.ZodNullable<z.ZodString>;
1488
+ supplierLotNumber: z.ZodNullable<z.ZodString>;
1489
+ expiresOn: z.ZodNullable<z.ZodISODate>;
1490
+ updatedByEmployeeId: z.ZodNullable<z.ZodInt>;
1491
+ updatedByEmployeeName: z.ZodNullable<z.ZodString>;
1492
+ revision: z.ZodInt;
1493
+ updatedAt: z.ZodNullable<z.ZodDate>;
1494
+ createdAt: z.ZodDate;
1495
+ }, z.core.$strip>;
2287
1496
  type DeliveryItem = z.infer<typeof deliveryItemSchema>;
2288
1497
  declare const deliveryItemIdShape: z.ZodInt;
2289
1498
  declare const deliveryItemQuantityShape: z.ZodNumber;
2290
1499
  declare const deliveryItemRevisionShape: z.ZodInt;
2291
- declare const deliveryItemUpdatedByEmployeeSchema: z.ZodObject<
2292
- {
2293
- id: z.ZodInt;
2294
- fullName: z.ZodString;
2295
- },
2296
- z.core.$strip
2297
- >;
1500
+ declare const deliveryItemUpdatedByEmployeeSchema: z.ZodObject<{
1501
+ id: z.ZodInt;
1502
+ fullName: z.ZodString;
1503
+ }, z.core.$strip>;
2298
1504
  type DeliveryItemId = z.infer<typeof deliveryItemIdShape>;
2299
1505
  type DeliveryItemQuantity = z.infer<typeof deliveryItemQuantityShape>;
2300
1506
  type DeliveryItemRevision = z.infer<typeof deliveryItemRevisionShape>;
2301
1507
  type DeliveryItemUpdatedByEmployee = z.infer<typeof deliveryItemUpdatedByEmployeeSchema>;
2302
1508
  //#endregion
2303
1509
  //#region src/app/domain/(procurement)/deliveries/deliveries.schemas.d.ts
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
- >;
1510
+ declare const deliverySchema: z.ZodObject<{
1511
+ id: z.ZodInt;
1512
+ code: z.ZodString;
1513
+ supplierId: z.ZodInt;
1514
+ warehouseId: z.ZodInt;
1515
+ currencyId: z.ZodInt;
1516
+ status: z.ZodEnum<{
1517
+ draft: "draft";
1518
+ posted: "posted";
1519
+ }>;
1520
+ exchangeRateId: z.ZodNullable<z.ZodInt>;
1521
+ exchangeRate: z.ZodNullable<z.ZodString>;
1522
+ exchangeRateValidFromDate: z.ZodNullable<z.ZodISODate>;
1523
+ postedAt: z.ZodNullable<z.ZodDate>;
1524
+ updatedAt: z.ZodNullable<z.ZodDate>;
1525
+ createdAt: z.ZodDate;
1526
+ }, z.core.$strip>;
2324
1527
  type Delivery = z.infer<typeof deliverySchema>;
2325
1528
  declare const deliveryIdShape: z.ZodInt;
2326
1529
  type DeliveryId = z.infer<typeof deliveryIdShape>;
2327
1530
  //#endregion
2328
1531
  //#region src/app/domain/(warehouse)/stock/stock-balances/stock-balances.schemas.d.ts
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
- >;
1532
+ declare const stockBalanceSchema: z.ZodObject<{
1533
+ id: z.ZodInt;
1534
+ warehouseId: z.ZodInt;
1535
+ productVariantId: z.ZodInt;
1536
+ onHand: z.ZodNumber;
1537
+ reserved: z.ZodNumber;
1538
+ averageUnitCostBase: z.ZodNullable<z.ZodString>;
1539
+ updatedAt: z.ZodNullable<z.ZodDate>;
1540
+ createdAt: z.ZodDate;
1541
+ }, z.core.$strip>;
2342
1542
  type StockBalance = z.infer<typeof stockBalanceSchema>;
2343
1543
  //#endregion
2344
1544
  //#region src/app/domain/(taxation)/tax-categories/tax-categories.schemas.d.ts
@@ -2355,124 +1555,4 @@ declare const productVariantBarcodesShape: z.ZodArray<z.ZodString>;
2355
1555
  type ProductVariantBarcode = z.infer<typeof productVariantBarcodeShape>;
2356
1556
  type ProductVariantBarcodes = z.infer<typeof productVariantBarcodesShape>;
2357
1557
  //#endregion
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
- };
1558
+ 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 };