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