@esb-market-contracts/backend 1.0.57 → 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 +54 -54
- 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 +93 -1
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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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: {
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -1460,4 +1552,4 @@ declare const productVariantBarcodesShape: z.ZodArray<z.ZodString>;
|
|
|
1460
1552
|
type ProductVariantBarcode = z.infer<typeof productVariantBarcodeShape>;
|
|
1461
1553
|
type ProductVariantBarcodes = z.infer<typeof productVariantBarcodesShape>;
|
|
1462
1554
|
//#endregion
|
|
1463
|
-
export type { 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 };
|
|
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 };
|