@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/api.d.ts +1429 -1663
- package/config.d.ts +8 -8
- package/config.js +8 -13
- package/constants.d.ts +2 -2
- package/constants.js +4 -2
- package/enums.d.ts +17 -30
- package/enums.js +23 -23
- package/package.json +1 -1
- package/types.d.ts +1261 -2181
package/types.d.ts
CHANGED
|
@@ -1,125 +1,118 @@
|
|
|
1
|
-
import { ErrorCodeOf } from
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
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(
|
|
9
|
-
currencyNotFound: () => import(
|
|
10
|
-
invalidDecimalSchemaOptions: () => import(
|
|
11
|
-
brandNotFound: () => import(
|
|
12
|
-
brandCreationFailed: () => import(
|
|
13
|
-
brandUpdateFailed: () => import(
|
|
14
|
-
categoryNotFound: () => import(
|
|
15
|
-
categoryCreationFailed: () => import(
|
|
16
|
-
categoryUpdateFailed: () => import(
|
|
17
|
-
categoryParentCycle: () => import(
|
|
18
|
-
countryNotFound: () => import(
|
|
19
|
-
countryCreationFailed: () => import(
|
|
20
|
-
countryUpdateFailed: () => import(
|
|
21
|
-
productVariantNotFound: () => import(
|
|
22
|
-
productVariantCreationFailed: () => import(
|
|
23
|
-
productVariantUpdateFailed: () => import(
|
|
24
|
-
productVariantDeletionFailed: () => import(
|
|
25
|
-
productNotFound: () => import(
|
|
26
|
-
productCreationFailed: () => import(
|
|
27
|
-
productUpdateFailed: () => import(
|
|
28
|
-
productDeletionFailed: () => import(
|
|
29
|
-
deliveryItemNotFound: () => import(
|
|
30
|
-
deliveryItemCreationFailed: () => import(
|
|
31
|
-
deliveryItemUpdateFailed: () => import(
|
|
32
|
-
deliveryItemRevisionConflict: () => import(
|
|
33
|
-
deliveryItemDeletionFailed: () => import(
|
|
34
|
-
deliveryNotFound: () => import(
|
|
35
|
-
deliveryCreationFailed: () => import(
|
|
36
|
-
deliveryUpdateFailed: () => import(
|
|
37
|
-
deliveryDeletionFailed: () => import(
|
|
38
|
-
supplierNotFound: () => import(
|
|
39
|
-
supplierCreationFailed: () => import(
|
|
40
|
-
supplierUpdateFailed: () => import(
|
|
41
|
-
customerNotFound: () => import(
|
|
42
|
-
customerCreationFailed: () => import(
|
|
43
|
-
customerUpdateFailed: () => import(
|
|
44
|
-
warehouseNotFound: () => import(
|
|
45
|
-
warehouseCreationFailed: () => import(
|
|
46
|
-
warehouseUpdateFailed: () => import(
|
|
47
|
-
exchangeRateNotFound: () => import(
|
|
48
|
-
exchangeRateUpsertFailed: () => import(
|
|
49
|
-
accountingSettingsNotFound: () => import(
|
|
50
|
-
auditLogNotFound: () => import(
|
|
51
|
-
invalidSessionToken: () => import(
|
|
52
|
-
insufficientPermissions: () => import(
|
|
53
|
-
requestValidationFailed: () => import(
|
|
54
|
-
formBodyTooLarge: () => import(
|
|
55
|
-
jsonBodyTooLarge: () => import(
|
|
56
|
-
brandAlreadyExists: () => import(
|
|
57
|
-
categoryAlreadyExists: () => import(
|
|
58
|
-
categoryAlreadyActive: () => import(
|
|
59
|
-
categoryArchivedReadOnly: () => import(
|
|
60
|
-
countryAlreadyExists: () => import(
|
|
61
|
-
measurementUnitNotFound: () => import(
|
|
62
|
-
productVariantSkuAlreadyExists: () => import(
|
|
63
|
-
productVariantBarcodeAlreadyExists: () => import(
|
|
64
|
-
activeProductVariantSkuRequired: () => import(
|
|
65
|
-
nonDraftProductVariantMeasurementUnitRequired: () => import(
|
|
66
|
-
lastActiveProductVariantDeactivationForbidden: () => import(
|
|
67
|
-
productVariantStatusTransitionForbidden: () => import(
|
|
68
|
-
productVariantDraftDeletionOnly: () => import(
|
|
69
|
-
taxCategoryNotFound: () => import(
|
|
70
|
-
productAlreadyExists: () => import(
|
|
71
|
-
productBannerImageNotFound: () => import(
|
|
72
|
-
productActiveVariantRequired: () => import(
|
|
73
|
-
productPublicationMetadataRequired: () => import(
|
|
74
|
-
productStatusTransitionForbidden: () => import(
|
|
75
|
-
productDraftDeletionOnly: () => import(
|
|
76
|
-
productNonDraftVariantsDeletionForbidden: () => import(
|
|
77
|
-
productVariantUnavailable: () => import(
|
|
78
|
-
productVariantMeasurementUnitRequired: () => import(
|
|
79
|
-
deliveryItemQuantityPrecisionInvalid: () => import(
|
|
80
|
-
deliveryNotDraftReadOnly: () => import(
|
|
81
|
-
supplierUnavailable: () => import(
|
|
82
|
-
warehouseUnavailable: () => import(
|
|
83
|
-
deliveryItemsRequired: () => import(
|
|
84
|
-
deliveryExchangeRateRequired: () => import(
|
|
85
|
-
deliveryExchangeRateCurrencyMismatch: () => import(
|
|
86
|
-
deliveryItemQuantityRequired: () => import(
|
|
87
|
-
deliveryItemUnitCostRequired: () => import(
|
|
88
|
-
stockApplicationFailed: () => import(
|
|
89
|
-
unitCostConversionOutOfRange: () => import(
|
|
90
|
-
supplierAlreadyExists: () => import(
|
|
91
|
-
supplierStatusAlreadySet: () => import(
|
|
92
|
-
supplierArchivedReadOnly: () => import(
|
|
93
|
-
warehouseAlreadyExists: () => import(
|
|
94
|
-
warehouseStatusAlreadySet: () => import(
|
|
95
|
-
warehouseArchivedReadOnly: () => import(
|
|
96
|
-
taxRateNotFound: () => import(
|
|
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
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
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
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
z.
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
>;
|
|
184
|
-
|
|
185
|
-
{
|
|
186
|
-
|
|
187
|
-
|
|
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
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
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
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
},
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
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
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
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
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
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
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
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
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
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
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
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
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
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
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
}
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
z.
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
{
|
|
684
|
-
|
|
685
|
-
|
|
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
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
}
|
|
731
|
-
{
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
>;
|
|
736
|
-
declare const
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
z.
|
|
741
|
-
|
|
742
|
-
|
|
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
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
}
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
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
|
-
|
|
881
|
-
|
|
882
|
-
z.
|
|
883
|
-
>;
|
|
884
|
-
declare const
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
z.
|
|
889
|
-
|
|
890
|
-
|
|
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
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
>;
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
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
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
z.
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
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
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
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
|
-
|
|
1274
|
-
z.
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
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
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
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
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
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
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
{
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
}
|
|
1482
|
-
>;
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
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
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
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
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
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
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
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
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
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
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
},
|
|
1730
|
-
|
|
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
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
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
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
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
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
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
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
z.
|
|
1829
|
-
|
|
1830
|
-
|
|
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
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
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
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
z.
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
z.
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
{
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
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
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
}
|
|
2217
|
-
>;
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
}
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
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
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
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
|
-
|
|
2294
|
-
|
|
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
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
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
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
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 };
|