@esb-market-contracts/backend 1.0.55 → 1.0.58
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 +67 -67
- package/config.d.ts +13 -0
- package/config.js +15 -0
- package/enums.d.ts +1 -12
- package/enums.js +16 -31
- package/index.d.ts +3 -1
- package/index.js +2 -1
- package/package.json +8 -2
- package/types.d.ts +133 -34
package/api.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ declare const brandsRouter: import("hono/hono-base").HonoBase<{
|
|
|
16
16
|
}, {
|
|
17
17
|
"/catalog/brands/one": {
|
|
18
18
|
$get: {
|
|
19
|
-
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
|
|
19
|
+
output: import("@kalutskii/foundation").APIError<string> | import("@kalutskii/foundation").APISuccess<{
|
|
20
20
|
brand: {
|
|
21
21
|
id: number;
|
|
22
22
|
slug: string;
|
|
@@ -45,7 +45,7 @@ declare const brandsRouter: import("hono/hono-base").HonoBase<{
|
|
|
45
45
|
} & {
|
|
46
46
|
"/catalog/brands/create": {
|
|
47
47
|
$post: {
|
|
48
|
-
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
|
|
48
|
+
output: import("@kalutskii/foundation").APIError<string> | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
|
|
49
49
|
outputFormat: "json";
|
|
50
50
|
status: 201;
|
|
51
51
|
input: {
|
|
@@ -63,7 +63,7 @@ declare const brandsRouter: import("hono/hono-base").HonoBase<{
|
|
|
63
63
|
} & {
|
|
64
64
|
"/catalog/brands/search": {
|
|
65
65
|
$post: {
|
|
66
|
-
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
|
|
66
|
+
output: import("@kalutskii/foundation").APIError<string> | import("@kalutskii/foundation").APISuccess<{
|
|
67
67
|
brands: {
|
|
68
68
|
id: number;
|
|
69
69
|
slug: string;
|
|
@@ -96,7 +96,7 @@ declare const brandsRouter: import("hono/hono-base").HonoBase<{
|
|
|
96
96
|
} & {
|
|
97
97
|
"/catalog/brands/update": {
|
|
98
98
|
$post: {
|
|
99
|
-
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
|
|
99
|
+
output: import("@kalutskii/foundation").APIError<string> | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
|
|
100
100
|
outputFormat: "json";
|
|
101
101
|
status: 200;
|
|
102
102
|
input: {
|
|
@@ -121,7 +121,7 @@ declare const categoriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
121
121
|
}, {
|
|
122
122
|
"/catalog/categories/one": {
|
|
123
123
|
$get: {
|
|
124
|
-
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
|
|
124
|
+
output: import("@kalutskii/foundation").APIError<string> | import("@kalutskii/foundation").APISuccess<{
|
|
125
125
|
category: {
|
|
126
126
|
id: number;
|
|
127
127
|
slug: string;
|
|
@@ -148,7 +148,7 @@ declare const categoriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
148
148
|
} & {
|
|
149
149
|
"/catalog/categories/create": {
|
|
150
150
|
$post: {
|
|
151
|
-
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
|
|
151
|
+
output: import("@kalutskii/foundation").APIError<string> | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
|
|
152
152
|
outputFormat: "json";
|
|
153
153
|
status: 201;
|
|
154
154
|
input: {
|
|
@@ -163,7 +163,7 @@ declare const categoriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
163
163
|
} & {
|
|
164
164
|
"/catalog/categories/search": {
|
|
165
165
|
$post: {
|
|
166
|
-
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
|
|
166
|
+
output: import("@kalutskii/foundation").APIError<string> | import("@kalutskii/foundation").APISuccess<{
|
|
167
167
|
categories: {
|
|
168
168
|
id: number;
|
|
169
169
|
slug: string;
|
|
@@ -195,7 +195,7 @@ declare const categoriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
195
195
|
} & {
|
|
196
196
|
"/catalog/categories/update": {
|
|
197
197
|
$post: {
|
|
198
|
-
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
|
|
198
|
+
output: import("@kalutskii/foundation").APIError<string> | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
|
|
199
199
|
outputFormat: "json";
|
|
200
200
|
status: 200;
|
|
201
201
|
input: {
|
|
@@ -218,7 +218,7 @@ declare const countriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
218
218
|
}, {
|
|
219
219
|
"/catalog/countries/one": {
|
|
220
220
|
$get: {
|
|
221
|
-
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
|
|
221
|
+
output: import("@kalutskii/foundation").APIError<string> | import("@kalutskii/foundation").APISuccess<{
|
|
222
222
|
country: {
|
|
223
223
|
id: number;
|
|
224
224
|
code: string;
|
|
@@ -240,7 +240,7 @@ declare const countriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
240
240
|
} & {
|
|
241
241
|
"/catalog/countries/create": {
|
|
242
242
|
$post: {
|
|
243
|
-
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
|
|
243
|
+
output: import("@kalutskii/foundation").APIError<string> | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
|
|
244
244
|
outputFormat: "json";
|
|
245
245
|
status: 201;
|
|
246
246
|
input: {
|
|
@@ -255,7 +255,7 @@ declare const countriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
255
255
|
} & {
|
|
256
256
|
"/catalog/countries/search": {
|
|
257
257
|
$post: {
|
|
258
|
-
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
|
|
258
|
+
output: import("@kalutskii/foundation").APIError<string> | import("@kalutskii/foundation").APISuccess<{
|
|
259
259
|
countries: {
|
|
260
260
|
id: number;
|
|
261
261
|
code: string;
|
|
@@ -285,7 +285,7 @@ declare const countriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
285
285
|
} & {
|
|
286
286
|
"/catalog/countries/update": {
|
|
287
287
|
$post: {
|
|
288
|
-
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
|
|
288
|
+
output: import("@kalutskii/foundation").APIError<string> | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
|
|
289
289
|
outputFormat: "json";
|
|
290
290
|
status: 200;
|
|
291
291
|
input: {
|
|
@@ -307,7 +307,7 @@ declare const measurementUnitsRouter: import("hono/hono-base").HonoBase<{
|
|
|
307
307
|
}, {
|
|
308
308
|
"/catalog/measurement-units/list": {
|
|
309
309
|
$get: {
|
|
310
|
-
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
|
|
310
|
+
output: import("@kalutskii/foundation").APIError<string> | import("@kalutskii/foundation").APISuccess<{
|
|
311
311
|
measurementUnits: {
|
|
312
312
|
id: number;
|
|
313
313
|
code: string;
|
|
@@ -329,7 +329,7 @@ declare const productVariantsRouter: import("hono/hono-base").HonoBase<{
|
|
|
329
329
|
}, {
|
|
330
330
|
"/catalog/product-variants/one": {
|
|
331
331
|
$get: {
|
|
332
|
-
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
|
|
332
|
+
output: import("@kalutskii/foundation").APIError<string> | import("@kalutskii/foundation").APISuccess<{
|
|
333
333
|
productVariant: {
|
|
334
334
|
id: number;
|
|
335
335
|
productId: number;
|
|
@@ -337,10 +337,10 @@ declare const productVariantsRouter: import("hono/hono-base").HonoBase<{
|
|
|
337
337
|
taxCategoryId: number | null;
|
|
338
338
|
status: "active" | "archived" | "draft";
|
|
339
339
|
sku: string | null;
|
|
340
|
-
barcode: string | null;
|
|
341
340
|
name: Partial<Record<"en" | "ka" | "ru", string>> | null;
|
|
342
341
|
updatedAt: Date | null;
|
|
343
342
|
createdAt: Date;
|
|
343
|
+
barcodes: string[];
|
|
344
344
|
};
|
|
345
345
|
}>;
|
|
346
346
|
outputFormat: "json";
|
|
@@ -355,7 +355,7 @@ declare const productVariantsRouter: import("hono/hono-base").HonoBase<{
|
|
|
355
355
|
} & {
|
|
356
356
|
"/catalog/product-variants/create": {
|
|
357
357
|
$post: {
|
|
358
|
-
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
|
|
358
|
+
output: import("@kalutskii/foundation").APIError<string> | import("@kalutskii/foundation").APISuccess<{
|
|
359
359
|
productVariant: {
|
|
360
360
|
id: number;
|
|
361
361
|
productId: number;
|
|
@@ -363,10 +363,10 @@ declare const productVariantsRouter: import("hono/hono-base").HonoBase<{
|
|
|
363
363
|
taxCategoryId: number | null;
|
|
364
364
|
status: "active" | "archived" | "draft";
|
|
365
365
|
sku: string | null;
|
|
366
|
-
barcode: string | null;
|
|
367
366
|
name: Partial<Record<"en" | "ka" | "ru", string>> | null;
|
|
368
367
|
updatedAt: Date | null;
|
|
369
368
|
createdAt: Date;
|
|
369
|
+
barcodes: string[];
|
|
370
370
|
};
|
|
371
371
|
}>;
|
|
372
372
|
outputFormat: "json";
|
|
@@ -378,8 +378,8 @@ declare const productVariantsRouter: import("hono/hono-base").HonoBase<{
|
|
|
378
378
|
taxCategoryId?: number | null | undefined;
|
|
379
379
|
status?: "active" | "archived" | "draft" | undefined;
|
|
380
380
|
sku?: string | null | undefined;
|
|
381
|
-
barcode?: string | null | undefined;
|
|
382
381
|
name?: Partial<Record<"en" | "ka" | "ru", string>> | null | undefined;
|
|
382
|
+
barcodes: string[];
|
|
383
383
|
};
|
|
384
384
|
};
|
|
385
385
|
};
|
|
@@ -387,7 +387,7 @@ declare const productVariantsRouter: import("hono/hono-base").HonoBase<{
|
|
|
387
387
|
} & {
|
|
388
388
|
"/catalog/product-variants/search": {
|
|
389
389
|
$post: {
|
|
390
|
-
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
|
|
390
|
+
output: import("@kalutskii/foundation").APIError<string> | import("@kalutskii/foundation").APISuccess<{
|
|
391
391
|
productVariants: {
|
|
392
392
|
id: number;
|
|
393
393
|
productId: number;
|
|
@@ -395,10 +395,10 @@ declare const productVariantsRouter: import("hono/hono-base").HonoBase<{
|
|
|
395
395
|
taxCategoryId: number | null;
|
|
396
396
|
status: "active" | "archived" | "draft";
|
|
397
397
|
sku: string | null;
|
|
398
|
-
barcode: string | null;
|
|
399
398
|
name: Partial<Record<"en" | "ka" | "ru", string>> | null;
|
|
400
399
|
updatedAt: Date | null;
|
|
401
400
|
createdAt: Date;
|
|
401
|
+
barcodes: string[];
|
|
402
402
|
}[];
|
|
403
403
|
total: number;
|
|
404
404
|
}>;
|
|
@@ -423,7 +423,7 @@ declare const productVariantsRouter: import("hono/hono-base").HonoBase<{
|
|
|
423
423
|
} & {
|
|
424
424
|
"/catalog/product-variants/update": {
|
|
425
425
|
$post: {
|
|
426
|
-
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
|
|
426
|
+
output: import("@kalutskii/foundation").APIError<string> | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
|
|
427
427
|
outputFormat: "json";
|
|
428
428
|
status: 200;
|
|
429
429
|
input: {
|
|
@@ -432,9 +432,9 @@ declare const productVariantsRouter: import("hono/hono-base").HonoBase<{
|
|
|
432
432
|
taxCategoryId?: number | null | undefined;
|
|
433
433
|
status?: "active" | "archived" | "draft" | undefined;
|
|
434
434
|
sku?: string | null | undefined;
|
|
435
|
-
barcode?: string | null | undefined;
|
|
436
435
|
name?: Partial<Record<"en" | "ka" | "ru", string>> | null | undefined;
|
|
437
436
|
productVariantId: number;
|
|
437
|
+
barcodes?: string[] | undefined;
|
|
438
438
|
};
|
|
439
439
|
};
|
|
440
440
|
};
|
|
@@ -442,7 +442,7 @@ declare const productVariantsRouter: import("hono/hono-base").HonoBase<{
|
|
|
442
442
|
} & {
|
|
443
443
|
"/catalog/product-variants/delete": {
|
|
444
444
|
$post: {
|
|
445
|
-
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
|
|
445
|
+
output: import("@kalutskii/foundation").APIError<string> | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
|
|
446
446
|
outputFormat: "json";
|
|
447
447
|
status: 200;
|
|
448
448
|
input: {
|
|
@@ -461,7 +461,7 @@ declare const productsRouter: import("hono/hono-base").HonoBase<{
|
|
|
461
461
|
}, {
|
|
462
462
|
"/catalog/products/one": {
|
|
463
463
|
$get: {
|
|
464
|
-
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
|
|
464
|
+
output: import("@kalutskii/foundation").APIError<string> | import("@kalutskii/foundation").APISuccess<{
|
|
465
465
|
product: {
|
|
466
466
|
id: number;
|
|
467
467
|
slug: string | null;
|
|
@@ -496,7 +496,7 @@ declare const productsRouter: import("hono/hono-base").HonoBase<{
|
|
|
496
496
|
} & {
|
|
497
497
|
"/catalog/products/create": {
|
|
498
498
|
$post: {
|
|
499
|
-
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
|
|
499
|
+
output: import("@kalutskii/foundation").APIError<string> | import("@kalutskii/foundation").APISuccess<{
|
|
500
500
|
product: {
|
|
501
501
|
id: number;
|
|
502
502
|
slug: string | null;
|
|
@@ -535,7 +535,7 @@ declare const productsRouter: import("hono/hono-base").HonoBase<{
|
|
|
535
535
|
} & {
|
|
536
536
|
"/catalog/products/search": {
|
|
537
537
|
$post: {
|
|
538
|
-
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
|
|
538
|
+
output: import("@kalutskii/foundation").APIError<string> | import("@kalutskii/foundation").APISuccess<{
|
|
539
539
|
products: {
|
|
540
540
|
id: number;
|
|
541
541
|
slug: string | null;
|
|
@@ -576,7 +576,7 @@ declare const productsRouter: import("hono/hono-base").HonoBase<{
|
|
|
576
576
|
} & {
|
|
577
577
|
"/catalog/products/update": {
|
|
578
578
|
$post: {
|
|
579
|
-
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
|
|
579
|
+
output: import("@kalutskii/foundation").APIError<string> | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
|
|
580
580
|
outputFormat: "json";
|
|
581
581
|
status: 200;
|
|
582
582
|
input: {
|
|
@@ -599,7 +599,7 @@ declare const productsRouter: import("hono/hono-base").HonoBase<{
|
|
|
599
599
|
} & {
|
|
600
600
|
"/catalog/products/delete": {
|
|
601
601
|
$post: {
|
|
602
|
-
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
|
|
602
|
+
output: import("@kalutskii/foundation").APIError<string> | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
|
|
603
603
|
outputFormat: "json";
|
|
604
604
|
status: 200;
|
|
605
605
|
input: {
|
|
@@ -618,7 +618,7 @@ declare const exchangeRatesRouter: import("hono/hono-base").HonoBase<{
|
|
|
618
618
|
}, {
|
|
619
619
|
"/finance/exchange-rates/currencies": {
|
|
620
620
|
$get: {
|
|
621
|
-
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
|
|
621
|
+
output: import("@kalutskii/foundation").APIError<string> | import("@kalutskii/foundation").APISuccess<{
|
|
622
622
|
currencies: {
|
|
623
623
|
id: number;
|
|
624
624
|
code: string;
|
|
@@ -640,7 +640,7 @@ declare const exchangeRatesRouter: import("hono/hono-base").HonoBase<{
|
|
|
640
640
|
} & {
|
|
641
641
|
"/finance/exchange-rates/dates/search": {
|
|
642
642
|
$post: {
|
|
643
|
-
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
|
|
643
|
+
output: import("@kalutskii/foundation").APIError<string> | import("@kalutskii/foundation").APISuccess<{
|
|
644
644
|
dates: string[];
|
|
645
645
|
total: number;
|
|
646
646
|
}>;
|
|
@@ -663,7 +663,7 @@ declare const exchangeRatesRouter: import("hono/hono-base").HonoBase<{
|
|
|
663
663
|
} & {
|
|
664
664
|
"/finance/exchange-rates/search": {
|
|
665
665
|
$post: {
|
|
666
|
-
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
|
|
666
|
+
output: import("@kalutskii/foundation").APIError<string> | import("@kalutskii/foundation").APISuccess<{
|
|
667
667
|
exchangeRates: {
|
|
668
668
|
id: number;
|
|
669
669
|
currencyId: number;
|
|
@@ -697,7 +697,7 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
697
697
|
}, {
|
|
698
698
|
"/operations/deliveries/one": {
|
|
699
699
|
$get: {
|
|
700
|
-
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
|
|
700
|
+
output: import("@kalutskii/foundation").APIError<string> | import("@kalutskii/foundation").APISuccess<{
|
|
701
701
|
delivery: {
|
|
702
702
|
id: number;
|
|
703
703
|
code: string;
|
|
@@ -735,8 +735,8 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
735
735
|
productVariant: {
|
|
736
736
|
id: number;
|
|
737
737
|
sku: string | null;
|
|
738
|
-
barcode: string | null;
|
|
739
738
|
name: Partial<Record<"en" | "ka" | "ru", string>> | null;
|
|
739
|
+
barcodes: string[];
|
|
740
740
|
};
|
|
741
741
|
measurementUnit: {
|
|
742
742
|
id: number;
|
|
@@ -763,7 +763,7 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
763
763
|
} & {
|
|
764
764
|
"/operations/deliveries/create": {
|
|
765
765
|
$post: {
|
|
766
|
-
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
|
|
766
|
+
output: import("@kalutskii/foundation").APIError<string> | import("@kalutskii/foundation").APISuccess<{
|
|
767
767
|
delivery: {
|
|
768
768
|
id: number;
|
|
769
769
|
code: string;
|
|
@@ -801,8 +801,8 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
801
801
|
productVariant: {
|
|
802
802
|
id: number;
|
|
803
803
|
sku: string | null;
|
|
804
|
-
barcode: string | null;
|
|
805
804
|
name: Partial<Record<"en" | "ka" | "ru", string>> | null;
|
|
805
|
+
barcodes: string[];
|
|
806
806
|
};
|
|
807
807
|
measurementUnit: {
|
|
808
808
|
id: number;
|
|
@@ -832,7 +832,7 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
832
832
|
} & {
|
|
833
833
|
"/operations/deliveries/search": {
|
|
834
834
|
$post: {
|
|
835
|
-
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
|
|
835
|
+
output: import("@kalutskii/foundation").APIError<string> | import("@kalutskii/foundation").APISuccess<{
|
|
836
836
|
deliveries: {
|
|
837
837
|
id: number;
|
|
838
838
|
code: string;
|
|
@@ -876,7 +876,7 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
876
876
|
} & {
|
|
877
877
|
"/operations/deliveries/update": {
|
|
878
878
|
$post: {
|
|
879
|
-
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
|
|
879
|
+
output: import("@kalutskii/foundation").APIError<string> | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
|
|
880
880
|
outputFormat: "json";
|
|
881
881
|
status: 200;
|
|
882
882
|
input: {
|
|
@@ -893,7 +893,7 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
893
893
|
} & {
|
|
894
894
|
"/operations/deliveries/delete": {
|
|
895
895
|
$post: {
|
|
896
|
-
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
|
|
896
|
+
output: import("@kalutskii/foundation").APIError<string> | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
|
|
897
897
|
outputFormat: "json";
|
|
898
898
|
status: 200;
|
|
899
899
|
input: {
|
|
@@ -906,7 +906,7 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
906
906
|
} & {
|
|
907
907
|
"/operations/deliveries/post": {
|
|
908
908
|
$post: {
|
|
909
|
-
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
|
|
909
|
+
output: import("@kalutskii/foundation").APIError<string> | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
|
|
910
910
|
outputFormat: "json";
|
|
911
911
|
status: 200;
|
|
912
912
|
input: {
|
|
@@ -919,7 +919,7 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
919
919
|
} & {
|
|
920
920
|
"/operations/deliveries/item/add": {
|
|
921
921
|
$post: {
|
|
922
|
-
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
|
|
922
|
+
output: import("@kalutskii/foundation").APIError<string> | import("@kalutskii/foundation").APISuccess<{
|
|
923
923
|
deliveryItem: {
|
|
924
924
|
id: number;
|
|
925
925
|
deliveryId: number;
|
|
@@ -944,8 +944,8 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
944
944
|
productVariant: {
|
|
945
945
|
id: number;
|
|
946
946
|
sku: string | null;
|
|
947
|
-
barcode: string | null;
|
|
948
947
|
name: Partial<Record<"en" | "ka" | "ru", string>> | null;
|
|
948
|
+
barcodes: string[];
|
|
949
949
|
};
|
|
950
950
|
measurementUnit: {
|
|
951
951
|
id: number;
|
|
@@ -976,7 +976,7 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
976
976
|
} & {
|
|
977
977
|
"/operations/deliveries/item/scan": {
|
|
978
978
|
$post: {
|
|
979
|
-
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
|
|
979
|
+
output: import("@kalutskii/foundation").APIError<string> | import("@kalutskii/foundation").APISuccess<{
|
|
980
980
|
outcome: "added";
|
|
981
981
|
deliveryItem: {
|
|
982
982
|
id: number;
|
|
@@ -1002,8 +1002,8 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
1002
1002
|
productVariant: {
|
|
1003
1003
|
id: number;
|
|
1004
1004
|
sku: string | null;
|
|
1005
|
-
barcode: string | null;
|
|
1006
1005
|
name: Partial<Record<"en" | "ka" | "ru", string>> | null;
|
|
1006
|
+
barcodes: string[];
|
|
1007
1007
|
};
|
|
1008
1008
|
measurementUnit: {
|
|
1009
1009
|
id: number;
|
|
@@ -1042,8 +1042,8 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
1042
1042
|
productVariant: {
|
|
1043
1043
|
id: number;
|
|
1044
1044
|
sku: string | null;
|
|
1045
|
-
barcode: string | null;
|
|
1046
1045
|
name: Partial<Record<"en" | "ka" | "ru", string>> | null;
|
|
1046
|
+
barcodes: string[];
|
|
1047
1047
|
};
|
|
1048
1048
|
measurementUnit: {
|
|
1049
1049
|
id: number;
|
|
@@ -1073,7 +1073,7 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
1073
1073
|
} & {
|
|
1074
1074
|
"/operations/deliveries/item/update": {
|
|
1075
1075
|
$post: {
|
|
1076
|
-
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
|
|
1076
|
+
output: import("@kalutskii/foundation").APIError<string> | import("@kalutskii/foundation").APISuccess<{
|
|
1077
1077
|
deliveryItem: {
|
|
1078
1078
|
id: number;
|
|
1079
1079
|
deliveryId: number;
|
|
@@ -1098,8 +1098,8 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
1098
1098
|
productVariant: {
|
|
1099
1099
|
id: number;
|
|
1100
1100
|
sku: string | null;
|
|
1101
|
-
barcode: string | null;
|
|
1102
1101
|
name: Partial<Record<"en" | "ka" | "ru", string>> | null;
|
|
1102
|
+
barcodes: string[];
|
|
1103
1103
|
};
|
|
1104
1104
|
measurementUnit: {
|
|
1105
1105
|
id: number;
|
|
@@ -1130,7 +1130,7 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
1130
1130
|
} & {
|
|
1131
1131
|
"/operations/deliveries/item/delete": {
|
|
1132
1132
|
$post: {
|
|
1133
|
-
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
|
|
1133
|
+
output: import("@kalutskii/foundation").APIError<string> | import("@kalutskii/foundation").APISuccess<{
|
|
1134
1134
|
deliveryItem: {
|
|
1135
1135
|
id: number;
|
|
1136
1136
|
deliveryId: number;
|
|
@@ -1155,8 +1155,8 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
1155
1155
|
productVariant: {
|
|
1156
1156
|
id: number;
|
|
1157
1157
|
sku: string | null;
|
|
1158
|
-
barcode: string | null;
|
|
1159
1158
|
name: Partial<Record<"en" | "ka" | "ru", string>> | null;
|
|
1159
|
+
barcodes: string[];
|
|
1160
1160
|
};
|
|
1161
1161
|
measurementUnit: {
|
|
1162
1162
|
id: number;
|
|
@@ -1207,7 +1207,7 @@ declare const auditLogsRouter: import("hono/hono-base").HonoBase<{
|
|
|
1207
1207
|
}, {
|
|
1208
1208
|
"/operations/audit-logs/existing-events": {
|
|
1209
1209
|
$get: {
|
|
1210
|
-
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
|
|
1210
|
+
output: import("@kalutskii/foundation").APIError<string> | import("@kalutskii/foundation").APISuccess<{
|
|
1211
1211
|
auditEvents: string[];
|
|
1212
1212
|
}>;
|
|
1213
1213
|
outputFormat: "json";
|
|
@@ -1218,7 +1218,7 @@ declare const auditLogsRouter: import("hono/hono-base").HonoBase<{
|
|
|
1218
1218
|
} & {
|
|
1219
1219
|
"/operations/audit-logs/one": {
|
|
1220
1220
|
$get: {
|
|
1221
|
-
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
|
|
1221
|
+
output: import("@kalutskii/foundation").APIError<string> | import("@kalutskii/foundation").APISuccess<{
|
|
1222
1222
|
auditLog: AuditLogResult;
|
|
1223
1223
|
}>;
|
|
1224
1224
|
outputFormat: "json";
|
|
@@ -1234,7 +1234,7 @@ declare const auditLogsRouter: import("hono/hono-base").HonoBase<{
|
|
|
1234
1234
|
} & {
|
|
1235
1235
|
"/operations/audit-logs/search": {
|
|
1236
1236
|
$post: {
|
|
1237
|
-
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
|
|
1237
|
+
output: import("@kalutskii/foundation").APIError<string> | import("@kalutskii/foundation").APISuccess<{
|
|
1238
1238
|
auditLogs: AuditLogResult[];
|
|
1239
1239
|
total: number;
|
|
1240
1240
|
}>;
|
|
@@ -1264,7 +1264,7 @@ declare const customersRouter: import("hono/hono-base").HonoBase<{
|
|
|
1264
1264
|
}, {
|
|
1265
1265
|
"/operations/customers/one": {
|
|
1266
1266
|
$get: {
|
|
1267
|
-
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
|
|
1267
|
+
output: import("@kalutskii/foundation").APIError<string> | import("@kalutskii/foundation").APISuccess<{
|
|
1268
1268
|
customer: {
|
|
1269
1269
|
id: number;
|
|
1270
1270
|
type: "individual" | "individual_entrepreneur" | "legal_entity";
|
|
@@ -1289,7 +1289,7 @@ declare const customersRouter: import("hono/hono-base").HonoBase<{
|
|
|
1289
1289
|
} & {
|
|
1290
1290
|
"/operations/customers/create": {
|
|
1291
1291
|
$post: {
|
|
1292
|
-
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
|
|
1292
|
+
output: import("@kalutskii/foundation").APIError<string> | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
|
|
1293
1293
|
outputFormat: "json";
|
|
1294
1294
|
status: 201;
|
|
1295
1295
|
input: {
|
|
@@ -1307,7 +1307,7 @@ declare const customersRouter: import("hono/hono-base").HonoBase<{
|
|
|
1307
1307
|
} & {
|
|
1308
1308
|
"/operations/customers/search": {
|
|
1309
1309
|
$post: {
|
|
1310
|
-
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
|
|
1310
|
+
output: import("@kalutskii/foundation").APIError<string> | import("@kalutskii/foundation").APISuccess<{
|
|
1311
1311
|
customers: {
|
|
1312
1312
|
id: number;
|
|
1313
1313
|
type: "individual" | "individual_entrepreneur" | "legal_entity";
|
|
@@ -1340,7 +1340,7 @@ declare const customersRouter: import("hono/hono-base").HonoBase<{
|
|
|
1340
1340
|
} & {
|
|
1341
1341
|
"/operations/customers/update": {
|
|
1342
1342
|
$post: {
|
|
1343
|
-
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
|
|
1343
|
+
output: import("@kalutskii/foundation").APIError<string> | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
|
|
1344
1344
|
outputFormat: "json";
|
|
1345
1345
|
status: 200;
|
|
1346
1346
|
input: {
|
|
@@ -1364,7 +1364,7 @@ declare const suppliersRouter: import("hono/hono-base").HonoBase<{
|
|
|
1364
1364
|
}, {
|
|
1365
1365
|
"/operations/suppliers/one": {
|
|
1366
1366
|
$get: {
|
|
1367
|
-
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
|
|
1367
|
+
output: import("@kalutskii/foundation").APIError<string> | import("@kalutskii/foundation").APISuccess<{
|
|
1368
1368
|
supplier: {
|
|
1369
1369
|
id: number;
|
|
1370
1370
|
status: "active" | "archived";
|
|
@@ -1391,7 +1391,7 @@ declare const suppliersRouter: import("hono/hono-base").HonoBase<{
|
|
|
1391
1391
|
} & {
|
|
1392
1392
|
"/operations/suppliers/create": {
|
|
1393
1393
|
$post: {
|
|
1394
|
-
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
|
|
1394
|
+
output: import("@kalutskii/foundation").APIError<string> | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
|
|
1395
1395
|
outputFormat: "json";
|
|
1396
1396
|
status: 201;
|
|
1397
1397
|
input: {
|
|
@@ -1410,7 +1410,7 @@ declare const suppliersRouter: import("hono/hono-base").HonoBase<{
|
|
|
1410
1410
|
} & {
|
|
1411
1411
|
"/operations/suppliers/search": {
|
|
1412
1412
|
$post: {
|
|
1413
|
-
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
|
|
1413
|
+
output: import("@kalutskii/foundation").APIError<string> | import("@kalutskii/foundation").APISuccess<{
|
|
1414
1414
|
suppliers: {
|
|
1415
1415
|
id: number;
|
|
1416
1416
|
status: "active" | "archived";
|
|
@@ -1446,7 +1446,7 @@ declare const suppliersRouter: import("hono/hono-base").HonoBase<{
|
|
|
1446
1446
|
} & {
|
|
1447
1447
|
"/operations/suppliers/update": {
|
|
1448
1448
|
$post: {
|
|
1449
|
-
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
|
|
1449
|
+
output: import("@kalutskii/foundation").APIError<string> | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
|
|
1450
1450
|
outputFormat: "json";
|
|
1451
1451
|
status: 200;
|
|
1452
1452
|
input: {
|
|
@@ -1466,7 +1466,7 @@ declare const suppliersRouter: import("hono/hono-base").HonoBase<{
|
|
|
1466
1466
|
} & {
|
|
1467
1467
|
"/operations/suppliers/switch-status": {
|
|
1468
1468
|
$post: {
|
|
1469
|
-
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
|
|
1469
|
+
output: import("@kalutskii/foundation").APIError<string> | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
|
|
1470
1470
|
outputFormat: "json";
|
|
1471
1471
|
status: 200;
|
|
1472
1472
|
input: {
|
|
@@ -1486,7 +1486,7 @@ declare const stockBalancesRouter: import("hono/hono-base").HonoBase<{
|
|
|
1486
1486
|
}, {
|
|
1487
1487
|
"/operations/stock-balances/search": {
|
|
1488
1488
|
$post: {
|
|
1489
|
-
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
|
|
1489
|
+
output: import("@kalutskii/foundation").APIError<string> | import("@kalutskii/foundation").APISuccess<{
|
|
1490
1490
|
stockBalances: {
|
|
1491
1491
|
id: number;
|
|
1492
1492
|
warehouseId: number;
|
|
@@ -1514,8 +1514,8 @@ declare const stockBalancesRouter: import("hono/hono-base").HonoBase<{
|
|
|
1514
1514
|
productVariant: {
|
|
1515
1515
|
id: number;
|
|
1516
1516
|
sku: string | null;
|
|
1517
|
-
barcode: string | null;
|
|
1518
1517
|
name: Partial<Record<"en" | "ka" | "ru", string>> | null;
|
|
1518
|
+
barcodes: string[];
|
|
1519
1519
|
};
|
|
1520
1520
|
measurementUnit: {
|
|
1521
1521
|
id: number;
|
|
@@ -1552,7 +1552,7 @@ declare const warehousesRouter: import("hono/hono-base").HonoBase<{
|
|
|
1552
1552
|
}, {
|
|
1553
1553
|
"/operations/warehouses/one": {
|
|
1554
1554
|
$get: {
|
|
1555
|
-
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
|
|
1555
|
+
output: import("@kalutskii/foundation").APIError<string> | import("@kalutskii/foundation").APISuccess<{
|
|
1556
1556
|
warehouse: {
|
|
1557
1557
|
id: number;
|
|
1558
1558
|
code: string;
|
|
@@ -1576,7 +1576,7 @@ declare const warehousesRouter: import("hono/hono-base").HonoBase<{
|
|
|
1576
1576
|
} & {
|
|
1577
1577
|
"/operations/warehouses/create": {
|
|
1578
1578
|
$post: {
|
|
1579
|
-
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
|
|
1579
|
+
output: import("@kalutskii/foundation").APIError<string> | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
|
|
1580
1580
|
outputFormat: "json";
|
|
1581
1581
|
status: 201;
|
|
1582
1582
|
input: {
|
|
@@ -1592,7 +1592,7 @@ declare const warehousesRouter: import("hono/hono-base").HonoBase<{
|
|
|
1592
1592
|
} & {
|
|
1593
1593
|
"/operations/warehouses/search": {
|
|
1594
1594
|
$post: {
|
|
1595
|
-
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
|
|
1595
|
+
output: import("@kalutskii/foundation").APIError<string> | import("@kalutskii/foundation").APISuccess<{
|
|
1596
1596
|
warehouses: {
|
|
1597
1597
|
id: number;
|
|
1598
1598
|
code: string;
|
|
@@ -1625,7 +1625,7 @@ declare const warehousesRouter: import("hono/hono-base").HonoBase<{
|
|
|
1625
1625
|
} & {
|
|
1626
1626
|
"/operations/warehouses/update": {
|
|
1627
1627
|
$post: {
|
|
1628
|
-
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
|
|
1628
|
+
output: import("@kalutskii/foundation").APIError<string> | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
|
|
1629
1629
|
outputFormat: "json";
|
|
1630
1630
|
status: 200;
|
|
1631
1631
|
input: {
|
|
@@ -1642,7 +1642,7 @@ declare const warehousesRouter: import("hono/hono-base").HonoBase<{
|
|
|
1642
1642
|
} & {
|
|
1643
1643
|
"/operations/warehouses/switch-status": {
|
|
1644
1644
|
$post: {
|
|
1645
|
-
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
|
|
1645
|
+
output: import("@kalutskii/foundation").APIError<string> | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
|
|
1646
1646
|
outputFormat: "json";
|
|
1647
1647
|
status: 200;
|
|
1648
1648
|
input: {
|
package/config.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import "zod";
|
|
2
|
+
//#region src/internal/localization/localization.config.d.ts
|
|
3
|
+
export declare const contentLocalesArray: readonly ['ka', 'en', 'ru'];
|
|
4
|
+
export declare const contentLocale: Readonly<{
|
|
5
|
+
EN: "en";
|
|
6
|
+
KA: "ka";
|
|
7
|
+
RU: "ru";
|
|
8
|
+
}>;
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/internal/localization/localization.types.d.ts
|
|
11
|
+
type ContentLocale = (typeof contentLocalesArray)[number];
|
|
12
|
+
//#endregion
|
|
13
|
+
export type { ContentLocale };
|
package/config.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// src/internal/localization/localization.config.ts
|
|
2
|
+
import { createStringEnumRecord } from "@kalutskii/foundation";
|
|
3
|
+
var contentLocalesArray = ["ka", "en", "ru"];
|
|
4
|
+
var contentLocalesRecord = createStringEnumRecord(contentLocalesArray);
|
|
5
|
+
var contentLocale = contentLocalesRecord;
|
|
6
|
+
|
|
7
|
+
// src/internal/localization/localization.schemas.ts
|
|
8
|
+
import { z } from "zod";
|
|
9
|
+
var localizedStringSchema = z.partialRecord(z.enum(contentLocalesArray), z.string()).refine((value) => Object.values(value).some((localizedValue) => localizedValue.trim().length > 0), {
|
|
10
|
+
message: "localizedValueRequired"
|
|
11
|
+
});
|
|
12
|
+
export {
|
|
13
|
+
contentLocale,
|
|
14
|
+
contentLocalesArray
|
|
15
|
+
};
|
package/enums.d.ts
CHANGED
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
import "zod";
|
|
2
|
-
//#region src/internal/localization/localization.config.d.ts
|
|
3
|
-
export declare const localesArray: readonly ['ka', 'en', 'ru'];
|
|
4
|
-
export declare const locale: Readonly<{
|
|
5
|
-
EN: "en";
|
|
6
|
-
KA: "ka";
|
|
7
|
-
RU: "ru";
|
|
8
|
-
}>;
|
|
9
|
-
//#endregion
|
|
10
|
-
//#region src/internal/localization/localization.types.d.ts
|
|
11
|
-
type Locale = (typeof localesArray)[number];
|
|
12
|
-
//#endregion
|
|
13
2
|
//#region src/app/domain/global/global.enums.d.ts
|
|
14
3
|
declare const entityStatusesArray: readonly ['active', 'archived'];
|
|
15
4
|
declare const entityStatusesRecord: Readonly<{
|
|
@@ -61,4 +50,4 @@ declare const productStatusesRecord: Readonly<{
|
|
|
61
50
|
}>;
|
|
62
51
|
type ProductStatus = (typeof productStatusesArray)[number];
|
|
63
52
|
//#endregion
|
|
64
|
-
export { type AuditLogSource, type CustomerType, type DeliveryItemScanOutcome, type DeliveryStatus, type EntityStatus, type
|
|
53
|
+
export { type AuditLogSource, type CustomerType, type DeliveryItemScanOutcome, type DeliveryStatus, type EntityStatus, type ProductStatus, auditLogSourcesRecord as auditLogSource, customerTypesRecord as customerType, deliveryItemScanOutcomesRecord as deliveryItemScanOutcome, deliveryStatusesRecord as deliveryStatus, entityStatusesRecord as entityStatus, productStatusesRecord as productStatus };
|
package/enums.js
CHANGED
|
@@ -1,57 +1,44 @@
|
|
|
1
|
-
// src/internal/localization/localization.config.ts
|
|
2
|
-
import { createStringEnumRecord } from "@kalutskii/foundation";
|
|
3
|
-
var localesArray = ["ka", "en", "ru"];
|
|
4
|
-
var localesRecord = createStringEnumRecord(localesArray);
|
|
5
|
-
var locale = localesRecord;
|
|
6
|
-
|
|
7
|
-
// src/internal/localization/localization.schemas.ts
|
|
8
|
-
import { z } from "zod";
|
|
9
|
-
var AT_LEAST_ONE_LOCALIZED_VALUE_ERROR = "\u10E8\u10D4\u10D0\u10D5\u10E1\u10D4\u10D7 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 \u10DB\u10D8\u10DC\u10D8\u10DB\u10E3\u10DB \u10D4\u10E0\u10D7 \u10D4\u10DC\u10D0\u10D6\u10D4.";
|
|
10
|
-
var localizedStringSchema = z.partialRecord(z.enum(localesArray), z.string()).refine((value) => Object.values(value).some((localizedValue) => localizedValue.trim().length > 0), {
|
|
11
|
-
message: AT_LEAST_ONE_LOCALIZED_VALUE_ERROR
|
|
12
|
-
});
|
|
13
|
-
|
|
14
1
|
// src/app/domain/global/global.enums.ts
|
|
15
|
-
import { createStringEnumRecord
|
|
2
|
+
import { createStringEnumRecord } from "@kalutskii/foundation";
|
|
16
3
|
import { pgEnum } from "drizzle-orm/pg-core";
|
|
17
4
|
var entityStatusesArray = ["active", "archived"];
|
|
18
5
|
var entityStatusPGEnum = pgEnum("entity_status", entityStatusesArray);
|
|
19
|
-
var entityStatusesRecord =
|
|
6
|
+
var entityStatusesRecord = createStringEnumRecord(entityStatusesArray);
|
|
20
7
|
|
|
21
8
|
// src/app/domain/(procurement)/deliveries/deliveries.enums.ts
|
|
22
|
-
import { createStringEnumRecord as
|
|
9
|
+
import { createStringEnumRecord as createStringEnumRecord2 } from "@kalutskii/foundation";
|
|
23
10
|
import { pgEnum as pgEnum2 } from "drizzle-orm/pg-core";
|
|
24
11
|
var deliveryStatusesArray = ["draft", "posted"];
|
|
25
12
|
var deliveryStatusPGEnum = pgEnum2("delivery_status", deliveryStatusesArray);
|
|
26
|
-
var deliveryStatusesRecord =
|
|
13
|
+
var deliveryStatusesRecord = createStringEnumRecord2(deliveryStatusesArray);
|
|
27
14
|
|
|
28
15
|
// src/app/flows/(procurement)/delivery/delivery.enums.ts
|
|
29
|
-
import { createStringEnumRecord as
|
|
30
|
-
import { z
|
|
16
|
+
import { createStringEnumRecord as createStringEnumRecord3 } from "@kalutskii/foundation";
|
|
17
|
+
import { z } from "zod";
|
|
31
18
|
var deliveryItemScanOutcomesArray = ["added", "unchanged", "product-variant-not-found"];
|
|
32
|
-
var deliveryItemScanOutcomesRecord =
|
|
33
|
-
var deliveryItemScanOutcomeSchema =
|
|
19
|
+
var deliveryItemScanOutcomesRecord = createStringEnumRecord3(deliveryItemScanOutcomesArray);
|
|
20
|
+
var deliveryItemScanOutcomeSchema = z.enum(deliveryItemScanOutcomesArray);
|
|
34
21
|
|
|
35
22
|
// src/app/flows/(audit)/audit/audit.enums.ts
|
|
36
|
-
import { createStringEnumRecord as
|
|
37
|
-
import { z as
|
|
23
|
+
import { createStringEnumRecord as createStringEnumRecord4 } from "@kalutskii/foundation";
|
|
24
|
+
import { z as z2 } from "zod";
|
|
38
25
|
var auditLogSourcesArray = ["admin", "backend"];
|
|
39
|
-
var auditLogSourcesRecord =
|
|
40
|
-
var auditLogSourceSchema =
|
|
26
|
+
var auditLogSourcesRecord = createStringEnumRecord4(auditLogSourcesArray);
|
|
27
|
+
var auditLogSourceSchema = z2.enum(auditLogSourcesArray);
|
|
41
28
|
|
|
42
29
|
// src/app/domain/(sales)/customers/customers.enums.ts
|
|
43
|
-
import { createStringEnumRecord as
|
|
30
|
+
import { createStringEnumRecord as createStringEnumRecord5 } from "@kalutskii/foundation";
|
|
44
31
|
import { pgEnum as pgEnum3 } from "drizzle-orm/pg-core";
|
|
45
32
|
var customerTypesArray = ["individual", "individual_entrepreneur", "legal_entity"];
|
|
46
33
|
var customerTypePGEnum = pgEnum3("customer_type", customerTypesArray);
|
|
47
|
-
var customerTypesRecord =
|
|
34
|
+
var customerTypesRecord = createStringEnumRecord5(customerTypesArray);
|
|
48
35
|
|
|
49
36
|
// src/app/domain/(catalog)/products/products.enums.ts
|
|
50
|
-
import { createStringEnumRecord as
|
|
37
|
+
import { createStringEnumRecord as createStringEnumRecord6 } from "@kalutskii/foundation";
|
|
51
38
|
import { pgEnum as pgEnum4 } from "drizzle-orm/pg-core";
|
|
52
39
|
var productStatusesArray = ["draft", "active", "archived"];
|
|
53
40
|
var productStatusPGEnum = pgEnum4("product_status", productStatusesArray);
|
|
54
|
-
var productStatusesRecord =
|
|
41
|
+
var productStatusesRecord = createStringEnumRecord6(productStatusesArray);
|
|
55
42
|
export {
|
|
56
43
|
auditLogSourcesRecord as auditLogSource,
|
|
57
44
|
auditLogSourcesArray,
|
|
@@ -61,8 +48,6 @@ export {
|
|
|
61
48
|
deliveryItemScanOutcomesArray,
|
|
62
49
|
deliveryStatusesRecord as deliveryStatus,
|
|
63
50
|
entityStatusesRecord as entityStatus,
|
|
64
|
-
locale,
|
|
65
|
-
localesArray,
|
|
66
51
|
productStatusesRecord as productStatus,
|
|
67
52
|
productStatusesArray
|
|
68
53
|
};
|
package/index.d.ts
CHANGED
|
@@ -2,5 +2,7 @@ export type * from './api';
|
|
|
2
2
|
export type * from './enums';
|
|
3
3
|
export type * from './types';
|
|
4
4
|
export type * from './constants';
|
|
5
|
+
export type * from './config';
|
|
5
6
|
export * from './enums';
|
|
6
|
-
export * from './constants';
|
|
7
|
+
export * from './constants';
|
|
8
|
+
export * from './config';
|
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@esb-market-contracts/backend",
|
|
3
3
|
"description": "Shared TypeScript contract definitions for backend.",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.58",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"sideEffects": false,
|
|
@@ -15,7 +15,9 @@
|
|
|
15
15
|
"types.d.ts",
|
|
16
16
|
"types.js",
|
|
17
17
|
"constants.d.ts",
|
|
18
|
-
"constants.js"
|
|
18
|
+
"constants.js",
|
|
19
|
+
"config.d.ts",
|
|
20
|
+
"config.js"
|
|
19
21
|
],
|
|
20
22
|
"exports": {
|
|
21
23
|
".": {
|
|
@@ -37,6 +39,10 @@
|
|
|
37
39
|
"./constants": {
|
|
38
40
|
"types": "./constants.d.ts",
|
|
39
41
|
"default": "./constants.js"
|
|
42
|
+
},
|
|
43
|
+
"./config": {
|
|
44
|
+
"types": "./config.d.ts",
|
|
45
|
+
"default": "./config.js"
|
|
40
46
|
}
|
|
41
47
|
},
|
|
42
48
|
"types": "./index.d.ts"
|
package/types.d.ts
CHANGED
|
@@ -1,7 +1,99 @@
|
|
|
1
|
+
import { ErrorCodeOf } from "@kalutskii/foundation";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
import "hono/http-exception";
|
|
3
4
|
import "drizzle-orm";
|
|
4
5
|
import "postgres";
|
|
6
|
+
//#region src/app/errors.registry.d.ts
|
|
7
|
+
declare const errorsRegistry: {
|
|
8
|
+
supportedCurrenciesNotFound: () => import("hono/http-exception").HTTPException;
|
|
9
|
+
currencyNotFound: () => import("hono/http-exception").HTTPException;
|
|
10
|
+
invalidDecimalSchemaOptions: () => import("hono/http-exception").HTTPException;
|
|
11
|
+
brandNotFound: () => import("hono/http-exception").HTTPException;
|
|
12
|
+
brandCreationFailed: () => import("hono/http-exception").HTTPException;
|
|
13
|
+
brandUpdateFailed: () => import("hono/http-exception").HTTPException;
|
|
14
|
+
categoryNotFound: () => import("hono/http-exception").HTTPException;
|
|
15
|
+
categoryCreationFailed: () => import("hono/http-exception").HTTPException;
|
|
16
|
+
categoryUpdateFailed: () => import("hono/http-exception").HTTPException;
|
|
17
|
+
categoryParentCycle: () => import("hono/http-exception").HTTPException;
|
|
18
|
+
countryNotFound: () => import("hono/http-exception").HTTPException;
|
|
19
|
+
countryCreationFailed: () => import("hono/http-exception").HTTPException;
|
|
20
|
+
countryUpdateFailed: () => import("hono/http-exception").HTTPException;
|
|
21
|
+
productVariantNotFound: () => import("hono/http-exception").HTTPException;
|
|
22
|
+
productVariantCreationFailed: () => import("hono/http-exception").HTTPException;
|
|
23
|
+
productVariantUpdateFailed: () => import("hono/http-exception").HTTPException;
|
|
24
|
+
productVariantDeletionFailed: () => import("hono/http-exception").HTTPException;
|
|
25
|
+
productNotFound: () => import("hono/http-exception").HTTPException;
|
|
26
|
+
productCreationFailed: () => import("hono/http-exception").HTTPException;
|
|
27
|
+
productUpdateFailed: () => import("hono/http-exception").HTTPException;
|
|
28
|
+
productDeletionFailed: () => import("hono/http-exception").HTTPException;
|
|
29
|
+
deliveryItemNotFound: () => import("hono/http-exception").HTTPException;
|
|
30
|
+
deliveryItemCreationFailed: () => import("hono/http-exception").HTTPException;
|
|
31
|
+
deliveryItemUpdateFailed: () => import("hono/http-exception").HTTPException;
|
|
32
|
+
deliveryItemRevisionConflict: () => import("hono/http-exception").HTTPException;
|
|
33
|
+
deliveryItemDeletionFailed: () => import("hono/http-exception").HTTPException;
|
|
34
|
+
deliveryNotFound: () => import("hono/http-exception").HTTPException;
|
|
35
|
+
deliveryCreationFailed: () => import("hono/http-exception").HTTPException;
|
|
36
|
+
deliveryUpdateFailed: () => import("hono/http-exception").HTTPException;
|
|
37
|
+
deliveryDeletionFailed: () => import("hono/http-exception").HTTPException;
|
|
38
|
+
supplierNotFound: () => import("hono/http-exception").HTTPException;
|
|
39
|
+
supplierCreationFailed: () => import("hono/http-exception").HTTPException;
|
|
40
|
+
supplierUpdateFailed: () => import("hono/http-exception").HTTPException;
|
|
41
|
+
customerNotFound: () => import("hono/http-exception").HTTPException;
|
|
42
|
+
customerCreationFailed: () => import("hono/http-exception").HTTPException;
|
|
43
|
+
customerUpdateFailed: () => import("hono/http-exception").HTTPException;
|
|
44
|
+
warehouseNotFound: () => import("hono/http-exception").HTTPException;
|
|
45
|
+
warehouseCreationFailed: () => import("hono/http-exception").HTTPException;
|
|
46
|
+
warehouseUpdateFailed: () => import("hono/http-exception").HTTPException;
|
|
47
|
+
exchangeRateNotFound: () => import("hono/http-exception").HTTPException;
|
|
48
|
+
exchangeRateUpsertFailed: () => import("hono/http-exception").HTTPException;
|
|
49
|
+
accountingSettingsNotFound: () => import("hono/http-exception").HTTPException;
|
|
50
|
+
auditLogNotFound: () => import("hono/http-exception").HTTPException;
|
|
51
|
+
invalidSessionToken: () => import("hono/http-exception").HTTPException;
|
|
52
|
+
insufficientPermissions: () => import("hono/http-exception").HTTPException;
|
|
53
|
+
brandAlreadyExists: () => import("hono/http-exception").HTTPException;
|
|
54
|
+
categoryAlreadyExists: () => import("hono/http-exception").HTTPException;
|
|
55
|
+
categoryAlreadyActive: () => import("hono/http-exception").HTTPException;
|
|
56
|
+
categoryArchivedReadOnly: () => import("hono/http-exception").HTTPException;
|
|
57
|
+
countryAlreadyExists: () => import("hono/http-exception").HTTPException;
|
|
58
|
+
measurementUnitNotFound: () => import("hono/http-exception").HTTPException;
|
|
59
|
+
productVariantSkuAlreadyExists: () => import("hono/http-exception").HTTPException;
|
|
60
|
+
productVariantBarcodeAlreadyExists: () => import("hono/http-exception").HTTPException;
|
|
61
|
+
activeProductVariantSkuRequired: () => import("hono/http-exception").HTTPException;
|
|
62
|
+
nonDraftProductVariantMeasurementUnitRequired: () => import("hono/http-exception").HTTPException;
|
|
63
|
+
lastActiveProductVariantDeactivationForbidden: () => import("hono/http-exception").HTTPException;
|
|
64
|
+
productVariantStatusTransitionForbidden: () => import("hono/http-exception").HTTPException;
|
|
65
|
+
productVariantDraftDeletionOnly: () => import("hono/http-exception").HTTPException;
|
|
66
|
+
taxCategoryNotFound: () => import("hono/http-exception").HTTPException;
|
|
67
|
+
productAlreadyExists: () => import("hono/http-exception").HTTPException;
|
|
68
|
+
productBannerImageNotFound: () => import("hono/http-exception").HTTPException;
|
|
69
|
+
productActiveVariantRequired: () => import("hono/http-exception").HTTPException;
|
|
70
|
+
productPublicationMetadataRequired: () => import("hono/http-exception").HTTPException;
|
|
71
|
+
productStatusTransitionForbidden: () => import("hono/http-exception").HTTPException;
|
|
72
|
+
productDraftDeletionOnly: () => import("hono/http-exception").HTTPException;
|
|
73
|
+
productNonDraftVariantsDeletionForbidden: () => import("hono/http-exception").HTTPException;
|
|
74
|
+
productVariantUnavailable: () => import("hono/http-exception").HTTPException;
|
|
75
|
+
productVariantMeasurementUnitRequired: () => import("hono/http-exception").HTTPException;
|
|
76
|
+
deliveryItemQuantityPrecisionInvalid: () => import("hono/http-exception").HTTPException;
|
|
77
|
+
deliveryNotDraftReadOnly: () => import("hono/http-exception").HTTPException;
|
|
78
|
+
supplierUnavailable: () => import("hono/http-exception").HTTPException;
|
|
79
|
+
warehouseUnavailable: () => import("hono/http-exception").HTTPException;
|
|
80
|
+
deliveryItemsRequired: () => import("hono/http-exception").HTTPException;
|
|
81
|
+
deliveryExchangeRateRequired: () => import("hono/http-exception").HTTPException;
|
|
82
|
+
deliveryExchangeRateCurrencyMismatch: () => import("hono/http-exception").HTTPException;
|
|
83
|
+
deliveryItemQuantityRequired: () => import("hono/http-exception").HTTPException;
|
|
84
|
+
deliveryItemUnitCostRequired: () => import("hono/http-exception").HTTPException;
|
|
85
|
+
stockApplicationFailed: () => import("hono/http-exception").HTTPException;
|
|
86
|
+
unitCostConversionOutOfRange: () => import("hono/http-exception").HTTPException;
|
|
87
|
+
supplierAlreadyExists: () => import("hono/http-exception").HTTPException;
|
|
88
|
+
supplierStatusAlreadySet: () => import("hono/http-exception").HTTPException;
|
|
89
|
+
supplierArchivedReadOnly: () => import("hono/http-exception").HTTPException;
|
|
90
|
+
warehouseAlreadyExists: () => import("hono/http-exception").HTTPException;
|
|
91
|
+
warehouseStatusAlreadySet: () => import("hono/http-exception").HTTPException;
|
|
92
|
+
warehouseArchivedReadOnly: () => import("hono/http-exception").HTTPException;
|
|
93
|
+
taxRateNotFound: () => import("hono/http-exception").HTTPException;
|
|
94
|
+
};
|
|
95
|
+
type APIErrorCode = ErrorCodeOf<typeof errorsRegistry>;
|
|
96
|
+
//#endregion
|
|
5
97
|
//#region src/app/domain/(catalog)/brands/brands.schemas.d.ts
|
|
6
98
|
declare const brandSchema: z.ZodObject<{
|
|
7
99
|
id: z.ZodInt;
|
|
@@ -571,12 +663,12 @@ declare const deliveryItemCatalogDetailsSchema: z.ZodObject<{
|
|
|
571
663
|
productVariant: z.ZodObject<{
|
|
572
664
|
id: z.ZodInt;
|
|
573
665
|
sku: z.ZodNullable<z.ZodString>;
|
|
574
|
-
barcode: z.ZodNullable<z.ZodString>;
|
|
575
666
|
name: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
|
|
576
667
|
en: "en";
|
|
577
668
|
ka: "ka";
|
|
578
669
|
ru: "ru";
|
|
579
670
|
}> & z.core.$partial, z.ZodString>>;
|
|
671
|
+
barcodes: z.ZodArray<z.ZodString>;
|
|
580
672
|
}, z.core.$strip>;
|
|
581
673
|
measurementUnit: z.ZodObject<{
|
|
582
674
|
id: z.ZodInt;
|
|
@@ -613,12 +705,12 @@ declare const deliveryItemDetailsSchema: z.ZodObject<{
|
|
|
613
705
|
productVariant: z.ZodObject<{
|
|
614
706
|
id: z.ZodInt;
|
|
615
707
|
sku: z.ZodNullable<z.ZodString>;
|
|
616
|
-
barcode: z.ZodNullable<z.ZodString>;
|
|
617
708
|
name: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
|
|
618
709
|
en: "en";
|
|
619
710
|
ka: "ka";
|
|
620
711
|
ru: "ru";
|
|
621
712
|
}> & z.core.$partial, z.ZodString>>;
|
|
713
|
+
barcodes: z.ZodArray<z.ZodString>;
|
|
622
714
|
}, z.core.$strip>;
|
|
623
715
|
measurementUnit: z.ZodObject<{
|
|
624
716
|
id: z.ZodInt;
|
|
@@ -665,12 +757,12 @@ declare const deliveryItemScanResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
665
757
|
productVariant: z.ZodObject<{
|
|
666
758
|
id: z.ZodInt;
|
|
667
759
|
sku: z.ZodNullable<z.ZodString>;
|
|
668
|
-
barcode: z.ZodNullable<z.ZodString>;
|
|
669
760
|
name: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
|
|
670
761
|
en: "en";
|
|
671
762
|
ka: "ka";
|
|
672
763
|
ru: "ru";
|
|
673
764
|
}> & z.core.$partial, z.ZodString>>;
|
|
765
|
+
barcodes: z.ZodArray<z.ZodString>;
|
|
674
766
|
}, z.core.$strip>;
|
|
675
767
|
measurementUnit: z.ZodObject<{
|
|
676
768
|
id: z.ZodInt;
|
|
@@ -713,12 +805,12 @@ declare const deliveryItemScanResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
713
805
|
productVariant: z.ZodObject<{
|
|
714
806
|
id: z.ZodInt;
|
|
715
807
|
sku: z.ZodNullable<z.ZodString>;
|
|
716
|
-
barcode: z.ZodNullable<z.ZodString>;
|
|
717
808
|
name: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
|
|
718
809
|
en: "en";
|
|
719
810
|
ka: "ka";
|
|
720
811
|
ru: "ru";
|
|
721
812
|
}> & z.core.$partial, z.ZodString>>;
|
|
813
|
+
barcodes: z.ZodArray<z.ZodString>;
|
|
722
814
|
}, z.core.$strip>;
|
|
723
815
|
measurementUnit: z.ZodObject<{
|
|
724
816
|
id: z.ZodInt;
|
|
@@ -779,12 +871,12 @@ declare const deliveryDetailsSchema: z.ZodObject<{
|
|
|
779
871
|
productVariant: z.ZodObject<{
|
|
780
872
|
id: z.ZodInt;
|
|
781
873
|
sku: z.ZodNullable<z.ZodString>;
|
|
782
|
-
barcode: z.ZodNullable<z.ZodString>;
|
|
783
874
|
name: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
|
|
784
875
|
en: "en";
|
|
785
876
|
ka: "ka";
|
|
786
877
|
ru: "ru";
|
|
787
878
|
}> & z.core.$partial, z.ZodString>>;
|
|
879
|
+
barcodes: z.ZodArray<z.ZodString>;
|
|
788
880
|
}, z.core.$strip>;
|
|
789
881
|
measurementUnit: z.ZodObject<{
|
|
790
882
|
id: z.ZodInt;
|
|
@@ -960,12 +1052,12 @@ declare const stockBalanceSearchItemSchema: z.ZodObject<{
|
|
|
960
1052
|
productVariant: z.ZodObject<{
|
|
961
1053
|
id: z.ZodInt;
|
|
962
1054
|
sku: z.ZodNullable<z.ZodString>;
|
|
963
|
-
barcode: z.ZodNullable<z.ZodString>;
|
|
964
1055
|
name: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
|
|
965
1056
|
en: "en";
|
|
966
1057
|
ka: "ka";
|
|
967
1058
|
ru: "ru";
|
|
968
1059
|
}> & z.core.$partial, z.ZodString>>;
|
|
1060
|
+
barcodes: z.ZodArray<z.ZodString>;
|
|
969
1061
|
}, z.core.$strip>;
|
|
970
1062
|
measurementUnit: z.ZodObject<{
|
|
971
1063
|
id: z.ZodInt;
|
|
@@ -1131,31 +1223,8 @@ type ProductImage = z.infer<typeof productImageSchema>;
|
|
|
1131
1223
|
type ProductImages = z.infer<typeof productImagesSchema>;
|
|
1132
1224
|
//#endregion
|
|
1133
1225
|
//#region src/app/domain/(catalog)/product-variants/product-variants.schemas.d.ts
|
|
1134
|
-
declare const productVariantSchema: z.ZodObject<{
|
|
1135
|
-
id: z.ZodInt;
|
|
1136
|
-
productId: z.ZodInt;
|
|
1137
|
-
measurementUnitId: z.ZodNullable<z.ZodInt>;
|
|
1138
|
-
taxCategoryId: z.ZodNullable<z.ZodInt>;
|
|
1139
|
-
status: z.ZodEnum<{
|
|
1140
|
-
active: "active";
|
|
1141
|
-
archived: "archived";
|
|
1142
|
-
draft: "draft";
|
|
1143
|
-
}>;
|
|
1144
|
-
sku: z.ZodNullable<z.ZodString>;
|
|
1145
|
-
barcode: z.ZodNullable<z.ZodString>;
|
|
1146
|
-
name: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
|
|
1147
|
-
en: "en";
|
|
1148
|
-
ka: "ka";
|
|
1149
|
-
ru: "ru";
|
|
1150
|
-
}> & z.core.$partial, z.ZodString>>;
|
|
1151
|
-
updatedAt: z.ZodNullable<z.ZodDate>;
|
|
1152
|
-
createdAt: z.ZodDate;
|
|
1153
|
-
}, z.core.$strip>;
|
|
1154
|
-
type ProductVariant = z.infer<typeof productVariantSchema>;
|
|
1155
1226
|
declare const productVariantIdShape: z.ZodInt;
|
|
1156
|
-
declare const productVariantBarcodeShape: z.ZodString;
|
|
1157
1227
|
type ProductVariantId = z.infer<typeof productVariantIdShape>;
|
|
1158
|
-
type ProductVariantBarcode = z.infer<typeof productVariantBarcodeShape>;
|
|
1159
1228
|
//#endregion
|
|
1160
1229
|
//#region src/app/domain/(catalog)/products/products.schemas.d.ts
|
|
1161
1230
|
declare const productSchema: z.ZodObject<{
|
|
@@ -1328,6 +1397,26 @@ declare const productVariantSelectOneQuerySchema: z.ZodObject<{
|
|
|
1328
1397
|
declare const productVariantDeletePayloadSchema: z.ZodObject<{
|
|
1329
1398
|
productVariantId: z.ZodInt;
|
|
1330
1399
|
}, z.core.$strip>;
|
|
1400
|
+
declare const productVariantResultSchema: z.ZodObject<{
|
|
1401
|
+
id: z.ZodInt;
|
|
1402
|
+
productId: z.ZodInt;
|
|
1403
|
+
measurementUnitId: z.ZodNullable<z.ZodInt>;
|
|
1404
|
+
taxCategoryId: z.ZodNullable<z.ZodInt>;
|
|
1405
|
+
status: z.ZodEnum<{
|
|
1406
|
+
active: "active";
|
|
1407
|
+
archived: "archived";
|
|
1408
|
+
draft: "draft";
|
|
1409
|
+
}>;
|
|
1410
|
+
sku: z.ZodNullable<z.ZodString>;
|
|
1411
|
+
name: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
|
|
1412
|
+
en: "en";
|
|
1413
|
+
ka: "ka";
|
|
1414
|
+
ru: "ru";
|
|
1415
|
+
}> & z.core.$partial, z.ZodString>>;
|
|
1416
|
+
updatedAt: z.ZodNullable<z.ZodDate>;
|
|
1417
|
+
createdAt: z.ZodDate;
|
|
1418
|
+
barcodes: z.ZodArray<z.ZodString>;
|
|
1419
|
+
}, z.core.$strip>;
|
|
1331
1420
|
declare const productVariantCreatePayloadSchema: z.ZodObject<{
|
|
1332
1421
|
productId: z.ZodInt;
|
|
1333
1422
|
measurementUnitId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
@@ -1338,12 +1427,12 @@ declare const productVariantCreatePayloadSchema: z.ZodObject<{
|
|
|
1338
1427
|
draft: "draft";
|
|
1339
1428
|
}>>;
|
|
1340
1429
|
sku: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1341
|
-
barcode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1342
1430
|
name: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodEnum<{
|
|
1343
1431
|
en: "en";
|
|
1344
1432
|
ka: "ka";
|
|
1345
1433
|
ru: "ru";
|
|
1346
1434
|
}> & z.core.$partial, z.ZodString>>>;
|
|
1435
|
+
barcodes: z.ZodArray<z.ZodString>;
|
|
1347
1436
|
}, {
|
|
1348
1437
|
out: {};
|
|
1349
1438
|
in: {};
|
|
@@ -1357,27 +1446,31 @@ declare const productVariantUpdatePayloadSchema: z.ZodObject<{
|
|
|
1357
1446
|
draft: "draft";
|
|
1358
1447
|
}>>;
|
|
1359
1448
|
sku: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1360
|
-
barcode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1361
1449
|
name: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodEnum<{
|
|
1362
1450
|
en: "en";
|
|
1363
1451
|
ka: "ka";
|
|
1364
1452
|
ru: "ru";
|
|
1365
1453
|
}> & z.core.$partial, z.ZodString>>>;
|
|
1366
1454
|
productVariantId: z.ZodInt;
|
|
1455
|
+
barcodes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1367
1456
|
}, {
|
|
1368
1457
|
out: {};
|
|
1369
1458
|
in: {};
|
|
1370
1459
|
}>;
|
|
1460
|
+
type ProductVariantResult = z.infer<typeof productVariantResultSchema>;
|
|
1371
1461
|
type ProductVariantSearchOptions = z.infer<typeof productVariantSearchOptionsSchema>;
|
|
1372
1462
|
type ProductVariantSearchResult = {
|
|
1373
|
-
productVariants:
|
|
1463
|
+
productVariants: ProductVariantResult[];
|
|
1374
1464
|
total: number;
|
|
1375
1465
|
};
|
|
1376
1466
|
type ProductVariantSelectOneQuery = z.infer<typeof productVariantSelectOneQuerySchema>;
|
|
1377
1467
|
type ProductVariantDeletePayload = z.infer<typeof productVariantDeletePayloadSchema>;
|
|
1378
1468
|
type ProductVariantCreatePayload = z.infer<typeof productVariantCreatePayloadSchema>;
|
|
1379
1469
|
type ProductVariantCreateResult = {
|
|
1380
|
-
productVariant:
|
|
1470
|
+
productVariant: ProductVariantResult;
|
|
1471
|
+
};
|
|
1472
|
+
type ProductVariantSelectOneResult = {
|
|
1473
|
+
productVariant: ProductVariantResult;
|
|
1381
1474
|
};
|
|
1382
1475
|
type ProductVariantUpdatePayload = z.infer<typeof productVariantUpdatePayloadSchema>;
|
|
1383
1476
|
//#endregion
|
|
@@ -1453,4 +1546,10 @@ type TaxCategoryId = z.infer<typeof taxCategoryIdShape>;
|
|
|
1453
1546
|
declare const taxRateIdShape: z.ZodInt;
|
|
1454
1547
|
type TaxRateId = z.infer<typeof taxRateIdShape>;
|
|
1455
1548
|
//#endregion
|
|
1456
|
-
|
|
1549
|
+
//#region src/app/domain/(catalog)/product-variant-barcodes/product-variant-barcodes.schemas.d.ts
|
|
1550
|
+
declare const productVariantBarcodeShape: z.ZodString;
|
|
1551
|
+
declare const productVariantBarcodesShape: z.ZodArray<z.ZodString>;
|
|
1552
|
+
type ProductVariantBarcode = z.infer<typeof productVariantBarcodeShape>;
|
|
1553
|
+
type ProductVariantBarcodes = z.infer<typeof productVariantBarcodesShape>;
|
|
1554
|
+
//#endregion
|
|
1555
|
+
export type { APIErrorCode, AuditLogResult, AuditLogSearchPayload, AuditLogSearchResult, AuditLogSelectOneQuery, Brand, BrandCreatePayload, BrandId, BrandSearchOptions, BrandSearchResult, BrandSelectOneQuery, BrandSlug, BrandUpdatePayload, Category, CategoryCreatePayload, CategoryId, CategorySearchOptions, CategorySearchResult, CategorySelectOneQuery, CategorySlug, CategoryUpdatePayload, Country, CountryCreatePayload, CountryId, CountrySearchOptions, CountrySearchResult, CountrySelectOneQuery, CountryUpdatePayload, Currency, CurrencyId, CurrencyListResult, Customer, CustomerCreatePayload, CustomerId, CustomerSearchOptions, CustomerSearchResult, CustomerSelectOneQuery, CustomerUpdatePayload, Delivery, DeliveryCreatePayload, DeliveryCreateResult, DeliveryDeletePayload, DeliveryDetails, DeliveryId, DeliveryItem, DeliveryItemAddPayload, DeliveryItemCatalogDetails, DeliveryItemDeletePayload, DeliveryItemDetails, DeliveryItemId, DeliveryItemQuantity, DeliveryItemResult, DeliveryItemRevision, DeliveryItemScanPayload, DeliveryItemScanResult, DeliveryItemUpdatePayload, DeliveryItemUpdatedByEmployee, DeliveryPostPayload, DeliverySearchItem, DeliverySearchOptions, DeliverySearchResult, DeliverySelectOneQuery, DeliverySelectOneResult, DeliveryUpdatePayload, ExchangeRate, ExchangeRateDateSearchResult, ExchangeRateId, ExchangeRateSearchOptions, ExchangeRateSearchResult, MeasurementUnit, MeasurementUnitId, MeasurementUnitListResult, Product, ProductCreatePayload, ProductCreateResult, ProductDeletePayload, ProductId, ProductImage, ProductImages, ProductSearchOptions, ProductSearchResult, ProductSelectOneQuery, ProductSlug, ProductUpdatePayload, ProductVariantResult as ProductVariant, ProductVariantResult, ProductVariantBarcode, ProductVariantBarcodes, ProductVariantCreatePayload, ProductVariantCreateResult, ProductVariantDeletePayload, ProductVariantId, ProductVariantSearchOptions, ProductVariantSearchResult, ProductVariantSelectOneQuery, ProductVariantSelectOneResult, ProductVariantUpdatePayload, StockBalance, StockBalanceSearchItem, StockBalanceSearchOptions, StockBalanceSearchResult, Supplier, SupplierCreatePayload, SupplierId, SupplierSearchOptions, SupplierSearchResult, SupplierSelectOneQuery, SupplierSwitchStatusPayload, SupplierUpdatePayload, TaxCategoryId, TaxRateId, Warehouse, WarehouseCreatePayload, WarehouseId, WarehouseSearchOptions, WarehouseSearchResult, WarehouseSelectOneQuery, WarehouseSwitchStatusPayload, WarehouseUpdatePayload };
|