@shophost/rest-api 0.1.7 → 0.1.9
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 +7 -6
- 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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shophost/rest-api",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"types": "./src/index.d.ts",
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"require": "./src/index.cjs"
|
|
12
12
|
},
|
|
13
13
|
"./contract": {
|
|
14
|
-
"types": "./src/
|
|
15
|
-
"import": "./src/
|
|
16
|
-
"require": "./src/
|
|
14
|
+
"types": "./src/contracts/index.d.ts",
|
|
15
|
+
"import": "./src/contracts/index.js",
|
|
16
|
+
"require": "./src/contracts/index.cjs"
|
|
17
17
|
},
|
|
18
18
|
"./next": {
|
|
19
19
|
"types": "./src/integrations/next.d.ts",
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"shophost",
|
|
37
37
|
"typescript"
|
|
38
38
|
],
|
|
39
|
-
"author": "
|
|
39
|
+
"author": "Abhishek Shaji (kontakt@abhishek.pl)",
|
|
40
40
|
"license": "UNLICENSED",
|
|
41
41
|
"repository": {
|
|
42
42
|
"type": "git",
|
|
43
|
-
"url": "https://github.com/
|
|
43
|
+
"url": "https://github.com/abhishek-shaji/shophost",
|
|
44
44
|
"directory": "packages/rest-api"
|
|
45
45
|
},
|
|
46
46
|
"publishConfig": {
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
"@ts-rest/core": "^3.52.1",
|
|
53
53
|
"@ts-rest/open-api": "^3.52.1",
|
|
54
54
|
"@ts-rest/serverless": "^3.52.1",
|
|
55
|
+
"@ts-rest/next": "^3.52.1",
|
|
55
56
|
"@vercel/blob": "^0.27.2",
|
|
56
57
|
"axios": "^1.8.2",
|
|
57
58
|
"better-auth": "^1.2.3",
|
package/src/contract.d.ts
CHANGED
|
@@ -915,7 +915,7 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
|
|
|
915
915
|
translations: {
|
|
916
916
|
locale: string;
|
|
917
917
|
title: string;
|
|
918
|
-
description?: string | undefined;
|
|
918
|
+
description?: string | null | undefined;
|
|
919
919
|
}[];
|
|
920
920
|
id: string;
|
|
921
921
|
slug: string;
|
|
@@ -972,7 +972,7 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
|
|
|
972
972
|
translations: {
|
|
973
973
|
locale: string;
|
|
974
974
|
title?: string | undefined;
|
|
975
|
-
description?: string | undefined;
|
|
975
|
+
description?: string | null | undefined;
|
|
976
976
|
}[];
|
|
977
977
|
defaultLocale: string;
|
|
978
978
|
slug: string;
|
|
@@ -1017,7 +1017,7 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
|
|
|
1017
1017
|
translations: {
|
|
1018
1018
|
locale: string;
|
|
1019
1019
|
title: string;
|
|
1020
|
-
description?: string | undefined;
|
|
1020
|
+
description?: string | null | undefined;
|
|
1021
1021
|
}[];
|
|
1022
1022
|
id: string;
|
|
1023
1023
|
slug: string;
|
|
@@ -1063,7 +1063,7 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
|
|
|
1063
1063
|
translations: {
|
|
1064
1064
|
locale: string;
|
|
1065
1065
|
title: string;
|
|
1066
|
-
description?: string | undefined;
|
|
1066
|
+
description?: string | null | undefined;
|
|
1067
1067
|
}[];
|
|
1068
1068
|
id: string;
|
|
1069
1069
|
slug: string;
|
|
@@ -1118,7 +1118,7 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
|
|
|
1118
1118
|
translations?: {
|
|
1119
1119
|
locale: string;
|
|
1120
1120
|
title?: string | undefined;
|
|
1121
|
-
description?: string | undefined;
|
|
1121
|
+
description?: string | null | undefined;
|
|
1122
1122
|
}[] | undefined;
|
|
1123
1123
|
defaultLocale?: string | undefined;
|
|
1124
1124
|
slug?: string | undefined;
|
|
@@ -1144,7 +1144,7 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
|
|
|
1144
1144
|
translations: {
|
|
1145
1145
|
locale: string;
|
|
1146
1146
|
title: string;
|
|
1147
|
-
description?: string | undefined;
|
|
1147
|
+
description?: string | null | undefined;
|
|
1148
1148
|
}[];
|
|
1149
1149
|
id: string;
|
|
1150
1150
|
slug: string;
|
|
@@ -1202,7 +1202,7 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
|
|
|
1202
1202
|
translations: {
|
|
1203
1203
|
locale: string;
|
|
1204
1204
|
title: string;
|
|
1205
|
-
description?: string | undefined;
|
|
1205
|
+
description?: string | null | undefined;
|
|
1206
1206
|
}[];
|
|
1207
1207
|
id: string;
|
|
1208
1208
|
slug: string;
|
|
@@ -1316,7 +1316,7 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
|
|
|
1316
1316
|
translations: {
|
|
1317
1317
|
locale: string;
|
|
1318
1318
|
title: string;
|
|
1319
|
-
description?: string | undefined;
|
|
1319
|
+
description?: string | null | undefined;
|
|
1320
1320
|
}[];
|
|
1321
1321
|
id: string;
|
|
1322
1322
|
slug: string;
|
|
@@ -1451,7 +1451,7 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
|
|
|
1451
1451
|
translations: {
|
|
1452
1452
|
locale: string;
|
|
1453
1453
|
title: string;
|
|
1454
|
-
description?: string | undefined;
|
|
1454
|
+
description?: string | null | undefined;
|
|
1455
1455
|
}[];
|
|
1456
1456
|
id: string;
|
|
1457
1457
|
slug: string;
|
|
@@ -1612,7 +1612,7 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
|
|
|
1612
1612
|
translations: {
|
|
1613
1613
|
locale: string;
|
|
1614
1614
|
title: string;
|
|
1615
|
-
description?: string | undefined;
|
|
1615
|
+
description?: string | null | undefined;
|
|
1616
1616
|
}[];
|
|
1617
1617
|
id: string;
|
|
1618
1618
|
slug: string;
|
|
@@ -1758,7 +1758,7 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
|
|
|
1758
1758
|
translations: {
|
|
1759
1759
|
locale: string;
|
|
1760
1760
|
title: string;
|
|
1761
|
-
description?: string | undefined;
|
|
1761
|
+
description?: string | null | undefined;
|
|
1762
1762
|
}[];
|
|
1763
1763
|
id: string;
|
|
1764
1764
|
slug: string;
|
|
@@ -1841,7 +1841,7 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
|
|
|
1841
1841
|
translations: {
|
|
1842
1842
|
locale: string;
|
|
1843
1843
|
title: string;
|
|
1844
|
-
description?: string | undefined;
|
|
1844
|
+
description?: string | null | undefined;
|
|
1845
1845
|
}[];
|
|
1846
1846
|
id: string;
|
|
1847
1847
|
slug: string;
|
|
@@ -1987,7 +1987,7 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
|
|
|
1987
1987
|
translations: {
|
|
1988
1988
|
locale: string;
|
|
1989
1989
|
title: string;
|
|
1990
|
-
description?: string | undefined;
|
|
1990
|
+
description?: string | null | undefined;
|
|
1991
1991
|
}[];
|
|
1992
1992
|
id: string;
|
|
1993
1993
|
slug: string;
|
|
@@ -224,21 +224,21 @@ export declare const cartContract: {
|
|
|
224
224
|
translations: z.ZodArray<z.ZodObject<{
|
|
225
225
|
locale: z.ZodString;
|
|
226
226
|
title: z.ZodDefault<z.ZodString>;
|
|
227
|
-
description: z.ZodOptional<z.ZodDefault<z.ZodString
|
|
227
|
+
description: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
|
|
228
228
|
}, "strip", z.ZodTypeAny, {
|
|
229
229
|
locale: string;
|
|
230
230
|
title: string;
|
|
231
|
-
description?: string | undefined;
|
|
231
|
+
description?: string | null | undefined;
|
|
232
232
|
}, {
|
|
233
233
|
locale: string;
|
|
234
234
|
title?: string | undefined;
|
|
235
|
-
description?: string | undefined;
|
|
235
|
+
description?: string | null | undefined;
|
|
236
236
|
}>, "many">;
|
|
237
237
|
}, "strip", z.ZodTypeAny, {
|
|
238
238
|
translations: {
|
|
239
239
|
locale: string;
|
|
240
240
|
title: string;
|
|
241
|
-
description?: string | undefined;
|
|
241
|
+
description?: string | null | undefined;
|
|
242
242
|
}[];
|
|
243
243
|
id: string;
|
|
244
244
|
slug: string;
|
|
@@ -255,7 +255,7 @@ export declare const cartContract: {
|
|
|
255
255
|
translations: {
|
|
256
256
|
locale: string;
|
|
257
257
|
title?: string | undefined;
|
|
258
|
-
description?: string | undefined;
|
|
258
|
+
description?: string | null | undefined;
|
|
259
259
|
}[];
|
|
260
260
|
id: string;
|
|
261
261
|
slug: string;
|