@shophost/rest-api 0.1.7 → 0.1.8
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/package.json +4 -3
- package/src/contract.d.ts +13 -13
- package/src/contracts/cart.contract.d.ts +5 -5
- package/src/contracts/index.d.ts +113 -113
- package/src/contracts/product-categories.contract.d.ts +47 -47
- package/src/contracts/products.contract.d.ts +61 -61
- package/src/routers/cart.router.d.ts +5 -5
- package/src/routers/product-category.router.d.ts +47 -47
- package/src/routers/product.router.d.ts +61 -61
- package/src/schemas/cart.schema.d.ts +5 -5
- package/src/schemas/product-category.schema.d.ts +22 -22
- package/src/schemas/product-category.schema.js +1 -0
- package/src/schemas/product-category.schema.js.map +1 -1
- package/src/schemas/product.schema.d.ts +17 -17
- package/src/services/organization.service.js +21 -0
- package/src/services/organization.service.js.map +1 -1
- package/src/services/product-category.service.d.ts +5 -5
- package/src/services/product.service.d.ts +6 -6
- package/src/utils/client.util.d.ts +13 -13
|
@@ -95,21 +95,21 @@ export declare const buildProductCategoryRouter: (prisma: PrismaClientType) => i
|
|
|
95
95
|
translations: import("zod").ZodArray<import("zod").ZodObject<{
|
|
96
96
|
locale: import("zod").ZodString;
|
|
97
97
|
title: import("zod").ZodDefault<import("zod").ZodString>;
|
|
98
|
-
description: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodString
|
|
98
|
+
description: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodString>>>;
|
|
99
99
|
}, "strip", import("zod").ZodTypeAny, {
|
|
100
100
|
locale: string;
|
|
101
101
|
title: string;
|
|
102
|
-
description?: string | undefined;
|
|
102
|
+
description?: string | null | undefined;
|
|
103
103
|
}, {
|
|
104
104
|
locale: string;
|
|
105
105
|
title?: string | undefined;
|
|
106
|
-
description?: string | undefined;
|
|
106
|
+
description?: string | null | undefined;
|
|
107
107
|
}>, "many">;
|
|
108
108
|
}, "strip", import("zod").ZodTypeAny, {
|
|
109
109
|
translations: {
|
|
110
110
|
locale: string;
|
|
111
111
|
title: string;
|
|
112
|
-
description?: string | undefined;
|
|
112
|
+
description?: string | null | undefined;
|
|
113
113
|
}[];
|
|
114
114
|
id: string;
|
|
115
115
|
slug: string;
|
|
@@ -126,7 +126,7 @@ export declare const buildProductCategoryRouter: (prisma: PrismaClientType) => i
|
|
|
126
126
|
translations: {
|
|
127
127
|
locale: string;
|
|
128
128
|
title?: string | undefined;
|
|
129
|
-
description?: string | undefined;
|
|
129
|
+
description?: string | null | undefined;
|
|
130
130
|
}[];
|
|
131
131
|
id: string;
|
|
132
132
|
slug: string;
|
|
@@ -166,15 +166,15 @@ export declare const buildProductCategoryRouter: (prisma: PrismaClientType) => i
|
|
|
166
166
|
translations: import("zod").ZodArray<import("zod").ZodObject<{
|
|
167
167
|
locale: import("zod").ZodString;
|
|
168
168
|
title: import("zod").ZodDefault<import("zod").ZodString>;
|
|
169
|
-
description: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodString
|
|
169
|
+
description: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodString>>>;
|
|
170
170
|
}, "strip", import("zod").ZodTypeAny, {
|
|
171
171
|
locale: string;
|
|
172
172
|
title: string;
|
|
173
|
-
description?: string | undefined;
|
|
173
|
+
description?: string | null | undefined;
|
|
174
174
|
}, {
|
|
175
175
|
locale: string;
|
|
176
176
|
title?: string | undefined;
|
|
177
|
-
description?: string | undefined;
|
|
177
|
+
description?: string | null | undefined;
|
|
178
178
|
}>, "many">;
|
|
179
179
|
}, "translations">, {
|
|
180
180
|
title: import("zod").ZodDefault<import("zod").ZodString>;
|
|
@@ -222,7 +222,7 @@ export declare const buildProductCategoryRouter: (prisma: PrismaClientType) => i
|
|
|
222
222
|
translations: {
|
|
223
223
|
locale: string;
|
|
224
224
|
title: string;
|
|
225
|
-
description?: string | undefined;
|
|
225
|
+
description?: string | null | undefined;
|
|
226
226
|
}[];
|
|
227
227
|
id: string;
|
|
228
228
|
slug: string;
|
|
@@ -264,7 +264,7 @@ export declare const buildProductCategoryRouter: (prisma: PrismaClientType) => i
|
|
|
264
264
|
translations: {
|
|
265
265
|
locale: string;
|
|
266
266
|
title?: string | undefined;
|
|
267
|
-
description?: string | undefined;
|
|
267
|
+
description?: string | null | undefined;
|
|
268
268
|
}[];
|
|
269
269
|
id: string;
|
|
270
270
|
slug: string;
|
|
@@ -353,15 +353,15 @@ export declare const buildProductCategoryRouter: (prisma: PrismaClientType) => i
|
|
|
353
353
|
translations: import("zod").ZodArray<import("zod").ZodObject<{
|
|
354
354
|
locale: import("zod").ZodString;
|
|
355
355
|
title: import("zod").ZodDefault<import("zod").ZodString>;
|
|
356
|
-
description: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodString
|
|
356
|
+
description: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodString>>>;
|
|
357
357
|
}, "strip", import("zod").ZodTypeAny, {
|
|
358
358
|
locale: string;
|
|
359
359
|
title: string;
|
|
360
|
-
description?: string | undefined;
|
|
360
|
+
description?: string | null | undefined;
|
|
361
361
|
}, {
|
|
362
362
|
locale: string;
|
|
363
363
|
title?: string | undefined;
|
|
364
|
-
description?: string | undefined;
|
|
364
|
+
description?: string | null | undefined;
|
|
365
365
|
}>, "many">;
|
|
366
366
|
}, "translations" | "slug" | "image">, {
|
|
367
367
|
defaultLocale: import("zod").ZodString;
|
|
@@ -370,7 +370,7 @@ export declare const buildProductCategoryRouter: (prisma: PrismaClientType) => i
|
|
|
370
370
|
translations: {
|
|
371
371
|
locale: string;
|
|
372
372
|
title: string;
|
|
373
|
-
description?: string | undefined;
|
|
373
|
+
description?: string | null | undefined;
|
|
374
374
|
}[];
|
|
375
375
|
defaultLocale: string;
|
|
376
376
|
slug: string;
|
|
@@ -386,7 +386,7 @@ export declare const buildProductCategoryRouter: (prisma: PrismaClientType) => i
|
|
|
386
386
|
translations: {
|
|
387
387
|
locale: string;
|
|
388
388
|
title?: string | undefined;
|
|
389
|
-
description?: string | undefined;
|
|
389
|
+
description?: string | null | undefined;
|
|
390
390
|
}[];
|
|
391
391
|
defaultLocale: string;
|
|
392
392
|
slug: string;
|
|
@@ -402,7 +402,7 @@ export declare const buildProductCategoryRouter: (prisma: PrismaClientType) => i
|
|
|
402
402
|
translations: {
|
|
403
403
|
locale: string;
|
|
404
404
|
title: string;
|
|
405
|
-
description?: string | undefined;
|
|
405
|
+
description?: string | null | undefined;
|
|
406
406
|
}[];
|
|
407
407
|
defaultLocale: string;
|
|
408
408
|
slug: string;
|
|
@@ -418,7 +418,7 @@ export declare const buildProductCategoryRouter: (prisma: PrismaClientType) => i
|
|
|
418
418
|
translations: {
|
|
419
419
|
locale: string;
|
|
420
420
|
title?: string | undefined;
|
|
421
|
-
description?: string | undefined;
|
|
421
|
+
description?: string | null | undefined;
|
|
422
422
|
}[];
|
|
423
423
|
defaultLocale: string;
|
|
424
424
|
slug: string;
|
|
@@ -470,21 +470,21 @@ export declare const buildProductCategoryRouter: (prisma: PrismaClientType) => i
|
|
|
470
470
|
translations: import("zod").ZodArray<import("zod").ZodObject<{
|
|
471
471
|
locale: import("zod").ZodString;
|
|
472
472
|
title: import("zod").ZodDefault<import("zod").ZodString>;
|
|
473
|
-
description: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodString
|
|
473
|
+
description: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodString>>>;
|
|
474
474
|
}, "strip", import("zod").ZodTypeAny, {
|
|
475
475
|
locale: string;
|
|
476
476
|
title: string;
|
|
477
|
-
description?: string | undefined;
|
|
477
|
+
description?: string | null | undefined;
|
|
478
478
|
}, {
|
|
479
479
|
locale: string;
|
|
480
480
|
title?: string | undefined;
|
|
481
|
-
description?: string | undefined;
|
|
481
|
+
description?: string | null | undefined;
|
|
482
482
|
}>, "many">;
|
|
483
483
|
}, "strip", import("zod").ZodTypeAny, {
|
|
484
484
|
translations: {
|
|
485
485
|
locale: string;
|
|
486
486
|
title: string;
|
|
487
|
-
description?: string | undefined;
|
|
487
|
+
description?: string | null | undefined;
|
|
488
488
|
}[];
|
|
489
489
|
id: string;
|
|
490
490
|
slug: string;
|
|
@@ -501,7 +501,7 @@ export declare const buildProductCategoryRouter: (prisma: PrismaClientType) => i
|
|
|
501
501
|
translations: {
|
|
502
502
|
locale: string;
|
|
503
503
|
title?: string | undefined;
|
|
504
|
-
description?: string | undefined;
|
|
504
|
+
description?: string | null | undefined;
|
|
505
505
|
}[];
|
|
506
506
|
id: string;
|
|
507
507
|
slug: string;
|
|
@@ -608,21 +608,21 @@ export declare const buildProductCategoryRouter: (prisma: PrismaClientType) => i
|
|
|
608
608
|
translations: import("zod").ZodArray<import("zod").ZodObject<{
|
|
609
609
|
locale: import("zod").ZodString;
|
|
610
610
|
title: import("zod").ZodDefault<import("zod").ZodString>;
|
|
611
|
-
description: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodString
|
|
611
|
+
description: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodString>>>;
|
|
612
612
|
}, "strip", import("zod").ZodTypeAny, {
|
|
613
613
|
locale: string;
|
|
614
614
|
title: string;
|
|
615
|
-
description?: string | undefined;
|
|
615
|
+
description?: string | null | undefined;
|
|
616
616
|
}, {
|
|
617
617
|
locale: string;
|
|
618
618
|
title?: string | undefined;
|
|
619
|
-
description?: string | undefined;
|
|
619
|
+
description?: string | null | undefined;
|
|
620
620
|
}>, "many">;
|
|
621
621
|
}, "strip", import("zod").ZodTypeAny, {
|
|
622
622
|
translations: {
|
|
623
623
|
locale: string;
|
|
624
624
|
title: string;
|
|
625
|
-
description?: string | undefined;
|
|
625
|
+
description?: string | null | undefined;
|
|
626
626
|
}[];
|
|
627
627
|
id: string;
|
|
628
628
|
slug: string;
|
|
@@ -639,7 +639,7 @@ export declare const buildProductCategoryRouter: (prisma: PrismaClientType) => i
|
|
|
639
639
|
translations: {
|
|
640
640
|
locale: string;
|
|
641
641
|
title?: string | undefined;
|
|
642
|
-
description?: string | undefined;
|
|
642
|
+
description?: string | null | undefined;
|
|
643
643
|
}[];
|
|
644
644
|
id: string;
|
|
645
645
|
slug: string;
|
|
@@ -679,15 +679,15 @@ export declare const buildProductCategoryRouter: (prisma: PrismaClientType) => i
|
|
|
679
679
|
translations: import("zod").ZodArray<import("zod").ZodObject<{
|
|
680
680
|
locale: import("zod").ZodString;
|
|
681
681
|
title: import("zod").ZodDefault<import("zod").ZodString>;
|
|
682
|
-
description: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodString
|
|
682
|
+
description: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodString>>>;
|
|
683
683
|
}, "strip", import("zod").ZodTypeAny, {
|
|
684
684
|
locale: string;
|
|
685
685
|
title: string;
|
|
686
|
-
description?: string | undefined;
|
|
686
|
+
description?: string | null | undefined;
|
|
687
687
|
}, {
|
|
688
688
|
locale: string;
|
|
689
689
|
title?: string | undefined;
|
|
690
|
-
description?: string | undefined;
|
|
690
|
+
description?: string | null | undefined;
|
|
691
691
|
}>, "many">;
|
|
692
692
|
}, "translations">, {
|
|
693
693
|
title: import("zod").ZodDefault<import("zod").ZodString>;
|
|
@@ -762,15 +762,15 @@ export declare const buildProductCategoryRouter: (prisma: PrismaClientType) => i
|
|
|
762
762
|
translations: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
763
763
|
locale: import("zod").ZodString;
|
|
764
764
|
title: import("zod").ZodDefault<import("zod").ZodString>;
|
|
765
|
-
description: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodString
|
|
765
|
+
description: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodString>>>;
|
|
766
766
|
}, "strip", import("zod").ZodTypeAny, {
|
|
767
767
|
locale: string;
|
|
768
768
|
title: string;
|
|
769
|
-
description?: string | undefined;
|
|
769
|
+
description?: string | null | undefined;
|
|
770
770
|
}, {
|
|
771
771
|
locale: string;
|
|
772
772
|
title?: string | undefined;
|
|
773
|
-
description?: string | undefined;
|
|
773
|
+
description?: string | null | undefined;
|
|
774
774
|
}>, "many">>;
|
|
775
775
|
slug: import("zod").ZodOptional<import("zod").ZodString>;
|
|
776
776
|
image: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<{
|
|
@@ -798,7 +798,7 @@ export declare const buildProductCategoryRouter: (prisma: PrismaClientType) => i
|
|
|
798
798
|
translations?: {
|
|
799
799
|
locale: string;
|
|
800
800
|
title: string;
|
|
801
|
-
description?: string | undefined;
|
|
801
|
+
description?: string | null | undefined;
|
|
802
802
|
}[] | undefined;
|
|
803
803
|
defaultLocale?: string | undefined;
|
|
804
804
|
slug?: string | undefined;
|
|
@@ -814,7 +814,7 @@ export declare const buildProductCategoryRouter: (prisma: PrismaClientType) => i
|
|
|
814
814
|
translations?: {
|
|
815
815
|
locale: string;
|
|
816
816
|
title?: string | undefined;
|
|
817
|
-
description?: string | undefined;
|
|
817
|
+
description?: string | null | undefined;
|
|
818
818
|
}[] | undefined;
|
|
819
819
|
defaultLocale?: string | undefined;
|
|
820
820
|
slug?: string | undefined;
|
|
@@ -830,7 +830,7 @@ export declare const buildProductCategoryRouter: (prisma: PrismaClientType) => i
|
|
|
830
830
|
translations?: {
|
|
831
831
|
locale: string;
|
|
832
832
|
title: string;
|
|
833
|
-
description?: string | undefined;
|
|
833
|
+
description?: string | null | undefined;
|
|
834
834
|
}[] | undefined;
|
|
835
835
|
defaultLocale?: string | undefined;
|
|
836
836
|
slug?: string | undefined;
|
|
@@ -846,7 +846,7 @@ export declare const buildProductCategoryRouter: (prisma: PrismaClientType) => i
|
|
|
846
846
|
translations?: {
|
|
847
847
|
locale: string;
|
|
848
848
|
title?: string | undefined;
|
|
849
|
-
description?: string | undefined;
|
|
849
|
+
description?: string | null | undefined;
|
|
850
850
|
}[] | undefined;
|
|
851
851
|
defaultLocale?: string | undefined;
|
|
852
852
|
slug?: string | undefined;
|
|
@@ -898,21 +898,21 @@ export declare const buildProductCategoryRouter: (prisma: PrismaClientType) => i
|
|
|
898
898
|
translations: import("zod").ZodArray<import("zod").ZodObject<{
|
|
899
899
|
locale: import("zod").ZodString;
|
|
900
900
|
title: import("zod").ZodDefault<import("zod").ZodString>;
|
|
901
|
-
description: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodString
|
|
901
|
+
description: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodString>>>;
|
|
902
902
|
}, "strip", import("zod").ZodTypeAny, {
|
|
903
903
|
locale: string;
|
|
904
904
|
title: string;
|
|
905
|
-
description?: string | undefined;
|
|
905
|
+
description?: string | null | undefined;
|
|
906
906
|
}, {
|
|
907
907
|
locale: string;
|
|
908
908
|
title?: string | undefined;
|
|
909
|
-
description?: string | undefined;
|
|
909
|
+
description?: string | null | undefined;
|
|
910
910
|
}>, "many">;
|
|
911
911
|
}, "strip", import("zod").ZodTypeAny, {
|
|
912
912
|
translations: {
|
|
913
913
|
locale: string;
|
|
914
914
|
title: string;
|
|
915
|
-
description?: string | undefined;
|
|
915
|
+
description?: string | null | undefined;
|
|
916
916
|
}[];
|
|
917
917
|
id: string;
|
|
918
918
|
slug: string;
|
|
@@ -929,7 +929,7 @@ export declare const buildProductCategoryRouter: (prisma: PrismaClientType) => i
|
|
|
929
929
|
translations: {
|
|
930
930
|
locale: string;
|
|
931
931
|
title?: string | undefined;
|
|
932
|
-
description?: string | undefined;
|
|
932
|
+
description?: string | null | undefined;
|
|
933
933
|
}[];
|
|
934
934
|
id: string;
|
|
935
935
|
slug: string;
|
|
@@ -1032,21 +1032,21 @@ export declare const buildProductCategoryRouter: (prisma: PrismaClientType) => i
|
|
|
1032
1032
|
translations: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1033
1033
|
locale: import("zod").ZodString;
|
|
1034
1034
|
title: import("zod").ZodDefault<import("zod").ZodString>;
|
|
1035
|
-
description: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodString
|
|
1035
|
+
description: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodString>>>;
|
|
1036
1036
|
}, "strip", import("zod").ZodTypeAny, {
|
|
1037
1037
|
locale: string;
|
|
1038
1038
|
title: string;
|
|
1039
|
-
description?: string | undefined;
|
|
1039
|
+
description?: string | null | undefined;
|
|
1040
1040
|
}, {
|
|
1041
1041
|
locale: string;
|
|
1042
1042
|
title?: string | undefined;
|
|
1043
|
-
description?: string | undefined;
|
|
1043
|
+
description?: string | null | undefined;
|
|
1044
1044
|
}>, "many">;
|
|
1045
1045
|
}, "strip", import("zod").ZodTypeAny, {
|
|
1046
1046
|
translations: {
|
|
1047
1047
|
locale: string;
|
|
1048
1048
|
title: string;
|
|
1049
|
-
description?: string | undefined;
|
|
1049
|
+
description?: string | null | undefined;
|
|
1050
1050
|
}[];
|
|
1051
1051
|
id: string;
|
|
1052
1052
|
slug: string;
|
|
@@ -1063,7 +1063,7 @@ export declare const buildProductCategoryRouter: (prisma: PrismaClientType) => i
|
|
|
1063
1063
|
translations: {
|
|
1064
1064
|
locale: string;
|
|
1065
1065
|
title?: string | undefined;
|
|
1066
|
-
description?: string | undefined;
|
|
1066
|
+
description?: string | null | undefined;
|
|
1067
1067
|
}[];
|
|
1068
1068
|
id: string;
|
|
1069
1069
|
slug: string;
|