@instockng/api-client 1.0.7 → 1.0.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/dist/apps/backend/src/http-app.js +28 -0
- package/dist/apps/backend/src/lib/brand-response.d.ts +1 -1
- package/dist/apps/backend/src/lib/cart-helpers.d.ts +13 -11
- package/dist/apps/backend/src/lib/cart-helpers.js +28 -0
- package/dist/apps/backend/src/lib/cart-response.d.ts +5 -5
- package/dist/apps/backend/src/lib/clerk.js +23 -0
- package/dist/apps/backend/src/lib/delivery-zone-response.d.ts +6 -4
- package/dist/apps/backend/src/lib/discount-code-response.d.ts +2 -2
- package/dist/apps/backend/src/lib/meta-capi.d.ts +5 -0
- package/dist/apps/backend/src/lib/meta-capi.js +33 -2
- package/dist/apps/backend/src/lib/order-recovery.d.ts +30 -24
- package/dist/apps/backend/src/lib/order-response.d.ts +9 -7
- package/dist/apps/backend/src/lib/product-response.d.ts +4 -4
- package/dist/apps/backend/src/lib/sentry.d.ts +48 -0
- package/dist/apps/backend/src/lib/sentry.js +180 -0
- package/dist/apps/backend/src/notifications/producers/meta-capi-producer.js +18 -4
- package/dist/apps/backend/src/routes/admin/abandoned-carts.d.ts +10 -10
- package/dist/apps/backend/src/routes/admin/brands.d.ts +4 -4
- package/dist/apps/backend/src/routes/admin/customers.d.ts +9 -7
- package/dist/apps/backend/src/routes/admin/delivery-zones.d.ts +23 -15
- package/dist/apps/backend/src/routes/admin/discount-codes.d.ts +10 -10
- package/dist/apps/backend/src/routes/admin/inventory.js +10 -0
- package/dist/apps/backend/src/routes/admin/orders.d.ts +54 -42
- package/dist/apps/backend/src/routes/admin/orders.js +25 -0
- package/dist/apps/backend/src/routes/admin/products.d.ts +12 -12
- package/dist/apps/backend/src/routes/admin/products.js +34 -15
- package/dist/apps/backend/src/routes/admin/stats.d.ts +9 -7
- package/dist/apps/backend/src/routes/admin/variants.d.ts +5 -5
- package/dist/apps/backend/src/routes/admin/variants.js +42 -18
- package/dist/apps/backend/src/routes/admin/warehouses.d.ts +7 -7
- package/dist/apps/backend/src/routes/public/brands.d.ts +1 -1
- package/dist/apps/backend/src/routes/public/carts.d.ts +49 -47
- package/dist/apps/backend/src/routes/public/carts.js +148 -1
- package/dist/apps/backend/src/routes/public/delivery-zones.d.ts +2 -0
- package/dist/apps/backend/src/routes/public/delivery-zones.js +2 -0
- package/dist/apps/backend/src/routes/public/orders.d.ts +18 -14
- package/dist/apps/backend/src/routes/public/orders.js +24 -0
- package/dist/apps/backend/src/routes/public/products.d.ts +6 -6
- package/dist/apps/backend/src/types/index.d.ts +1 -0
- package/dist/apps/backend/src/validators/delivery-zone.d.ts +4 -0
- package/dist/apps/backend/src/validators/delivery-zone.js +4 -0
- package/dist/apps/backend/src/validators/discount-code.d.ts +3 -3
- package/dist/apps/backend/src/validators/order.d.ts +3 -1
- package/dist/apps/backend/src/validators/order.js +3 -1
- package/dist/packages/api-client/src/fetchers/brands.d.ts +1 -1
- package/dist/packages/api-client/src/fetchers/carts.d.ts +49 -47
- package/dist/packages/api-client/src/fetchers/delivery-zones.d.ts +2 -0
- package/dist/packages/api-client/src/fetchers/orders.d.ts +18 -14
- package/dist/packages/api-client/src/fetchers/products.d.ts +6 -6
- package/dist/packages/api-client/src/hooks/admin/abandoned-carts.d.ts +10 -10
- package/dist/packages/api-client/src/hooks/admin/brands.d.ts +4 -4
- package/dist/packages/api-client/src/hooks/admin/customers.d.ts +9 -7
- package/dist/packages/api-client/src/hooks/admin/delivery-zones.d.ts +23 -15
- package/dist/packages/api-client/src/hooks/admin/discount-codes.d.ts +10 -10
- package/dist/packages/api-client/src/hooks/admin/orders.d.ts +54 -42
- package/dist/packages/api-client/src/hooks/admin/products.d.ts +6 -6
- package/dist/packages/api-client/src/hooks/admin/stats.d.ts +9 -7
- package/dist/packages/api-client/src/hooks/admin/variants.d.ts +5 -5
- package/dist/packages/api-client/src/hooks/admin/warehouses.d.ts +7 -7
- package/dist/packages/api-client/src/hooks/public/brands.d.ts +1 -1
- package/dist/packages/api-client/src/hooks/public/carts.d.ts +49 -47
- package/dist/packages/api-client/src/hooks/public/delivery-zones.d.ts +2 -0
- package/dist/packages/api-client/src/hooks/public/orders.d.ts +18 -14
- package/dist/packages/api-client/src/hooks/public/products.d.ts +6 -6
- package/dist/packages/api-client/src/rpc-client.d.ts +219 -187
- package/package.json +1 -1
|
@@ -18,8 +18,8 @@ export declare function fetchCart(cartId: string): Promise<{
|
|
|
18
18
|
createdAt: string;
|
|
19
19
|
updatedAt: string;
|
|
20
20
|
deletedAt: string;
|
|
21
|
-
name: string;
|
|
22
21
|
id: string;
|
|
22
|
+
name: string;
|
|
23
23
|
slug: string;
|
|
24
24
|
logoUrl: string | null;
|
|
25
25
|
siteUrl: string;
|
|
@@ -39,14 +39,14 @@ export declare function fetchCart(cartId: string): Promise<{
|
|
|
39
39
|
lastRecoveryAttemptAt: string;
|
|
40
40
|
recoveryDiscountCode: {
|
|
41
41
|
id: string;
|
|
42
|
+
type: string;
|
|
43
|
+
value: string;
|
|
42
44
|
createdAt: string;
|
|
43
45
|
updatedAt: string;
|
|
44
46
|
deletedAt: string;
|
|
45
47
|
brandId: string | null;
|
|
46
48
|
isActive: boolean;
|
|
47
49
|
code: string;
|
|
48
|
-
type: string;
|
|
49
|
-
value: string;
|
|
50
50
|
minPurchase: string;
|
|
51
51
|
maxDiscount: string;
|
|
52
52
|
usageLimit: number | null;
|
|
@@ -64,8 +64,8 @@ export declare function fetchCart(cartId: string): Promise<{
|
|
|
64
64
|
variant: {
|
|
65
65
|
price: number;
|
|
66
66
|
product: {
|
|
67
|
-
name: string;
|
|
68
67
|
id: string;
|
|
68
|
+
name: string;
|
|
69
69
|
slug: string;
|
|
70
70
|
createdAt: string;
|
|
71
71
|
updatedAt: string;
|
|
@@ -220,8 +220,8 @@ export declare function fetchCart(cartId: string): Promise<{
|
|
|
220
220
|
};
|
|
221
221
|
};
|
|
222
222
|
};
|
|
223
|
-
name: string | null;
|
|
224
223
|
id: string;
|
|
224
|
+
name: string | null;
|
|
225
225
|
createdAt: string;
|
|
226
226
|
updatedAt: string;
|
|
227
227
|
deletedAt: string;
|
|
@@ -274,8 +274,8 @@ export declare function createCart(brandSlug: string): Promise<{
|
|
|
274
274
|
createdAt: string;
|
|
275
275
|
updatedAt: string;
|
|
276
276
|
deletedAt: string;
|
|
277
|
-
name: string;
|
|
278
277
|
id: string;
|
|
278
|
+
name: string;
|
|
279
279
|
slug: string;
|
|
280
280
|
logoUrl: string | null;
|
|
281
281
|
siteUrl: string;
|
|
@@ -295,14 +295,14 @@ export declare function createCart(brandSlug: string): Promise<{
|
|
|
295
295
|
lastRecoveryAttemptAt: string;
|
|
296
296
|
recoveryDiscountCode: {
|
|
297
297
|
id: string;
|
|
298
|
+
type: string;
|
|
299
|
+
value: string;
|
|
298
300
|
createdAt: string;
|
|
299
301
|
updatedAt: string;
|
|
300
302
|
deletedAt: string;
|
|
301
303
|
brandId: string | null;
|
|
302
304
|
isActive: boolean;
|
|
303
305
|
code: string;
|
|
304
|
-
type: string;
|
|
305
|
-
value: string;
|
|
306
306
|
minPurchase: string;
|
|
307
307
|
maxDiscount: string;
|
|
308
308
|
usageLimit: number | null;
|
|
@@ -320,8 +320,8 @@ export declare function createCart(brandSlug: string): Promise<{
|
|
|
320
320
|
variant: {
|
|
321
321
|
price: number;
|
|
322
322
|
product: {
|
|
323
|
-
name: string;
|
|
324
323
|
id: string;
|
|
324
|
+
name: string;
|
|
325
325
|
slug: string;
|
|
326
326
|
createdAt: string;
|
|
327
327
|
updatedAt: string;
|
|
@@ -476,8 +476,8 @@ export declare function createCart(brandSlug: string): Promise<{
|
|
|
476
476
|
};
|
|
477
477
|
};
|
|
478
478
|
};
|
|
479
|
-
name: string | null;
|
|
480
479
|
id: string;
|
|
480
|
+
name: string | null;
|
|
481
481
|
createdAt: string;
|
|
482
482
|
updatedAt: string;
|
|
483
483
|
deletedAt: string;
|
|
@@ -533,8 +533,8 @@ export declare function updateCart(cartId: string, data: {
|
|
|
533
533
|
createdAt: string;
|
|
534
534
|
updatedAt: string;
|
|
535
535
|
deletedAt: string;
|
|
536
|
-
name: string;
|
|
537
536
|
id: string;
|
|
537
|
+
name: string;
|
|
538
538
|
slug: string;
|
|
539
539
|
logoUrl: string | null;
|
|
540
540
|
siteUrl: string;
|
|
@@ -554,14 +554,14 @@ export declare function updateCart(cartId: string, data: {
|
|
|
554
554
|
lastRecoveryAttemptAt: string;
|
|
555
555
|
recoveryDiscountCode: {
|
|
556
556
|
id: string;
|
|
557
|
+
type: string;
|
|
558
|
+
value: string;
|
|
557
559
|
createdAt: string;
|
|
558
560
|
updatedAt: string;
|
|
559
561
|
deletedAt: string;
|
|
560
562
|
brandId: string | null;
|
|
561
563
|
isActive: boolean;
|
|
562
564
|
code: string;
|
|
563
|
-
type: string;
|
|
564
|
-
value: string;
|
|
565
565
|
minPurchase: string;
|
|
566
566
|
maxDiscount: string;
|
|
567
567
|
usageLimit: number | null;
|
|
@@ -579,8 +579,8 @@ export declare function updateCart(cartId: string, data: {
|
|
|
579
579
|
variant: {
|
|
580
580
|
price: number;
|
|
581
581
|
product: {
|
|
582
|
-
name: string;
|
|
583
582
|
id: string;
|
|
583
|
+
name: string;
|
|
584
584
|
slug: string;
|
|
585
585
|
createdAt: string;
|
|
586
586
|
updatedAt: string;
|
|
@@ -735,8 +735,8 @@ export declare function updateCart(cartId: string, data: {
|
|
|
735
735
|
};
|
|
736
736
|
};
|
|
737
737
|
};
|
|
738
|
-
name: string | null;
|
|
739
738
|
id: string;
|
|
739
|
+
name: string | null;
|
|
740
740
|
createdAt: string;
|
|
741
741
|
updatedAt: string;
|
|
742
742
|
deletedAt: string;
|
|
@@ -793,8 +793,8 @@ export declare function addCartItem(cartId: string, sku: string, quantity: numbe
|
|
|
793
793
|
createdAt: string;
|
|
794
794
|
updatedAt: string;
|
|
795
795
|
deletedAt: string;
|
|
796
|
-
name: string;
|
|
797
796
|
id: string;
|
|
797
|
+
name: string;
|
|
798
798
|
slug: string;
|
|
799
799
|
logoUrl: string | null;
|
|
800
800
|
siteUrl: string;
|
|
@@ -814,14 +814,14 @@ export declare function addCartItem(cartId: string, sku: string, quantity: numbe
|
|
|
814
814
|
lastRecoveryAttemptAt: string;
|
|
815
815
|
recoveryDiscountCode: {
|
|
816
816
|
id: string;
|
|
817
|
+
type: string;
|
|
818
|
+
value: string;
|
|
817
819
|
createdAt: string;
|
|
818
820
|
updatedAt: string;
|
|
819
821
|
deletedAt: string;
|
|
820
822
|
brandId: string | null;
|
|
821
823
|
isActive: boolean;
|
|
822
824
|
code: string;
|
|
823
|
-
type: string;
|
|
824
|
-
value: string;
|
|
825
825
|
minPurchase: string;
|
|
826
826
|
maxDiscount: string;
|
|
827
827
|
usageLimit: number | null;
|
|
@@ -839,8 +839,8 @@ export declare function addCartItem(cartId: string, sku: string, quantity: numbe
|
|
|
839
839
|
variant: {
|
|
840
840
|
price: number;
|
|
841
841
|
product: {
|
|
842
|
-
name: string;
|
|
843
842
|
id: string;
|
|
843
|
+
name: string;
|
|
844
844
|
slug: string;
|
|
845
845
|
createdAt: string;
|
|
846
846
|
updatedAt: string;
|
|
@@ -995,8 +995,8 @@ export declare function addCartItem(cartId: string, sku: string, quantity: numbe
|
|
|
995
995
|
};
|
|
996
996
|
};
|
|
997
997
|
};
|
|
998
|
-
name: string | null;
|
|
999
998
|
id: string;
|
|
999
|
+
name: string | null;
|
|
1000
1000
|
createdAt: string;
|
|
1001
1001
|
updatedAt: string;
|
|
1002
1002
|
deletedAt: string;
|
|
@@ -1051,8 +1051,8 @@ export declare function updateCartItem(cartId: string, itemId: string, quantity:
|
|
|
1051
1051
|
createdAt: string;
|
|
1052
1052
|
updatedAt: string;
|
|
1053
1053
|
deletedAt: string;
|
|
1054
|
-
name: string;
|
|
1055
1054
|
id: string;
|
|
1055
|
+
name: string;
|
|
1056
1056
|
slug: string;
|
|
1057
1057
|
logoUrl: string | null;
|
|
1058
1058
|
siteUrl: string;
|
|
@@ -1072,14 +1072,14 @@ export declare function updateCartItem(cartId: string, itemId: string, quantity:
|
|
|
1072
1072
|
lastRecoveryAttemptAt: string;
|
|
1073
1073
|
recoveryDiscountCode: {
|
|
1074
1074
|
id: string;
|
|
1075
|
+
type: string;
|
|
1076
|
+
value: string;
|
|
1075
1077
|
createdAt: string;
|
|
1076
1078
|
updatedAt: string;
|
|
1077
1079
|
deletedAt: string;
|
|
1078
1080
|
brandId: string | null;
|
|
1079
1081
|
isActive: boolean;
|
|
1080
1082
|
code: string;
|
|
1081
|
-
type: string;
|
|
1082
|
-
value: string;
|
|
1083
1083
|
minPurchase: string;
|
|
1084
1084
|
maxDiscount: string;
|
|
1085
1085
|
usageLimit: number | null;
|
|
@@ -1097,8 +1097,8 @@ export declare function updateCartItem(cartId: string, itemId: string, quantity:
|
|
|
1097
1097
|
variant: {
|
|
1098
1098
|
price: number;
|
|
1099
1099
|
product: {
|
|
1100
|
-
name: string;
|
|
1101
1100
|
id: string;
|
|
1101
|
+
name: string;
|
|
1102
1102
|
slug: string;
|
|
1103
1103
|
createdAt: string;
|
|
1104
1104
|
updatedAt: string;
|
|
@@ -1253,8 +1253,8 @@ export declare function updateCartItem(cartId: string, itemId: string, quantity:
|
|
|
1253
1253
|
};
|
|
1254
1254
|
};
|
|
1255
1255
|
};
|
|
1256
|
-
name: string | null;
|
|
1257
1256
|
id: string;
|
|
1257
|
+
name: string | null;
|
|
1258
1258
|
createdAt: string;
|
|
1259
1259
|
updatedAt: string;
|
|
1260
1260
|
deletedAt: string;
|
|
@@ -1303,8 +1303,8 @@ export declare function removeCartItem(cartId: string, itemId: string): Promise<
|
|
|
1303
1303
|
createdAt: string;
|
|
1304
1304
|
updatedAt: string;
|
|
1305
1305
|
deletedAt: string;
|
|
1306
|
-
name: string;
|
|
1307
1306
|
id: string;
|
|
1307
|
+
name: string;
|
|
1308
1308
|
slug: string;
|
|
1309
1309
|
logoUrl: string | null;
|
|
1310
1310
|
siteUrl: string;
|
|
@@ -1324,14 +1324,14 @@ export declare function removeCartItem(cartId: string, itemId: string): Promise<
|
|
|
1324
1324
|
lastRecoveryAttemptAt: string;
|
|
1325
1325
|
recoveryDiscountCode: {
|
|
1326
1326
|
id: string;
|
|
1327
|
+
type: string;
|
|
1328
|
+
value: string;
|
|
1327
1329
|
createdAt: string;
|
|
1328
1330
|
updatedAt: string;
|
|
1329
1331
|
deletedAt: string;
|
|
1330
1332
|
brandId: string | null;
|
|
1331
1333
|
isActive: boolean;
|
|
1332
1334
|
code: string;
|
|
1333
|
-
type: string;
|
|
1334
|
-
value: string;
|
|
1335
1335
|
minPurchase: string;
|
|
1336
1336
|
maxDiscount: string;
|
|
1337
1337
|
usageLimit: number | null;
|
|
@@ -1349,8 +1349,8 @@ export declare function removeCartItem(cartId: string, itemId: string): Promise<
|
|
|
1349
1349
|
variant: {
|
|
1350
1350
|
price: number;
|
|
1351
1351
|
product: {
|
|
1352
|
-
name: string;
|
|
1353
1352
|
id: string;
|
|
1353
|
+
name: string;
|
|
1354
1354
|
slug: string;
|
|
1355
1355
|
createdAt: string;
|
|
1356
1356
|
updatedAt: string;
|
|
@@ -1505,8 +1505,8 @@ export declare function removeCartItem(cartId: string, itemId: string): Promise<
|
|
|
1505
1505
|
};
|
|
1506
1506
|
};
|
|
1507
1507
|
};
|
|
1508
|
-
name: string | null;
|
|
1509
1508
|
id: string;
|
|
1509
|
+
name: string | null;
|
|
1510
1510
|
createdAt: string;
|
|
1511
1511
|
updatedAt: string;
|
|
1512
1512
|
deletedAt: string;
|
|
@@ -1555,8 +1555,8 @@ export declare function applyDiscount(cartId: string, code: string): Promise<{
|
|
|
1555
1555
|
createdAt: string;
|
|
1556
1556
|
updatedAt: string;
|
|
1557
1557
|
deletedAt: string;
|
|
1558
|
-
name: string;
|
|
1559
1558
|
id: string;
|
|
1559
|
+
name: string;
|
|
1560
1560
|
slug: string;
|
|
1561
1561
|
logoUrl: string | null;
|
|
1562
1562
|
siteUrl: string;
|
|
@@ -1576,14 +1576,14 @@ export declare function applyDiscount(cartId: string, code: string): Promise<{
|
|
|
1576
1576
|
lastRecoveryAttemptAt: string;
|
|
1577
1577
|
recoveryDiscountCode: {
|
|
1578
1578
|
id: string;
|
|
1579
|
+
type: string;
|
|
1580
|
+
value: string;
|
|
1579
1581
|
createdAt: string;
|
|
1580
1582
|
updatedAt: string;
|
|
1581
1583
|
deletedAt: string;
|
|
1582
1584
|
brandId: string | null;
|
|
1583
1585
|
isActive: boolean;
|
|
1584
1586
|
code: string;
|
|
1585
|
-
type: string;
|
|
1586
|
-
value: string;
|
|
1587
1587
|
minPurchase: string;
|
|
1588
1588
|
maxDiscount: string;
|
|
1589
1589
|
usageLimit: number | null;
|
|
@@ -1601,8 +1601,8 @@ export declare function applyDiscount(cartId: string, code: string): Promise<{
|
|
|
1601
1601
|
variant: {
|
|
1602
1602
|
price: number;
|
|
1603
1603
|
product: {
|
|
1604
|
-
name: string;
|
|
1605
1604
|
id: string;
|
|
1605
|
+
name: string;
|
|
1606
1606
|
slug: string;
|
|
1607
1607
|
createdAt: string;
|
|
1608
1608
|
updatedAt: string;
|
|
@@ -1757,8 +1757,8 @@ export declare function applyDiscount(cartId: string, code: string): Promise<{
|
|
|
1757
1757
|
};
|
|
1758
1758
|
};
|
|
1759
1759
|
};
|
|
1760
|
-
name: string | null;
|
|
1761
1760
|
id: string;
|
|
1761
|
+
name: string | null;
|
|
1762
1762
|
createdAt: string;
|
|
1763
1763
|
updatedAt: string;
|
|
1764
1764
|
deletedAt: string;
|
|
@@ -1811,8 +1811,8 @@ export declare function removeDiscount(cartId: string): Promise<{
|
|
|
1811
1811
|
createdAt: string;
|
|
1812
1812
|
updatedAt: string;
|
|
1813
1813
|
deletedAt: string;
|
|
1814
|
-
name: string;
|
|
1815
1814
|
id: string;
|
|
1815
|
+
name: string;
|
|
1816
1816
|
slug: string;
|
|
1817
1817
|
logoUrl: string | null;
|
|
1818
1818
|
siteUrl: string;
|
|
@@ -1832,14 +1832,14 @@ export declare function removeDiscount(cartId: string): Promise<{
|
|
|
1832
1832
|
lastRecoveryAttemptAt: string;
|
|
1833
1833
|
recoveryDiscountCode: {
|
|
1834
1834
|
id: string;
|
|
1835
|
+
type: string;
|
|
1836
|
+
value: string;
|
|
1835
1837
|
createdAt: string;
|
|
1836
1838
|
updatedAt: string;
|
|
1837
1839
|
deletedAt: string;
|
|
1838
1840
|
brandId: string | null;
|
|
1839
1841
|
isActive: boolean;
|
|
1840
1842
|
code: string;
|
|
1841
|
-
type: string;
|
|
1842
|
-
value: string;
|
|
1843
1843
|
minPurchase: string;
|
|
1844
1844
|
maxDiscount: string;
|
|
1845
1845
|
usageLimit: number | null;
|
|
@@ -1857,8 +1857,8 @@ export declare function removeDiscount(cartId: string): Promise<{
|
|
|
1857
1857
|
variant: {
|
|
1858
1858
|
price: number;
|
|
1859
1859
|
product: {
|
|
1860
|
-
name: string;
|
|
1861
1860
|
id: string;
|
|
1861
|
+
name: string;
|
|
1862
1862
|
slug: string;
|
|
1863
1863
|
createdAt: string;
|
|
1864
1864
|
updatedAt: string;
|
|
@@ -2013,8 +2013,8 @@ export declare function removeDiscount(cartId: string): Promise<{
|
|
|
2013
2013
|
};
|
|
2014
2014
|
};
|
|
2015
2015
|
};
|
|
2016
|
-
name: string | null;
|
|
2017
2016
|
id: string;
|
|
2017
|
+
name: string | null;
|
|
2018
2018
|
createdAt: string;
|
|
2019
2019
|
updatedAt: string;
|
|
2020
2020
|
deletedAt: string;
|
|
@@ -2089,8 +2089,8 @@ export declare function checkoutCart(cartId: string, checkoutData: {
|
|
|
2089
2089
|
createdAt: string;
|
|
2090
2090
|
updatedAt: string;
|
|
2091
2091
|
deletedAt: string;
|
|
2092
|
-
name: string;
|
|
2093
2092
|
id: string;
|
|
2093
|
+
name: string;
|
|
2094
2094
|
slug: string;
|
|
2095
2095
|
logoUrl: string | null;
|
|
2096
2096
|
siteUrl: string;
|
|
@@ -2107,18 +2107,20 @@ export declare function checkoutCart(cartId: string, checkoutData: {
|
|
|
2107
2107
|
createdAt: string;
|
|
2108
2108
|
updatedAt: string;
|
|
2109
2109
|
deletedAt: string;
|
|
2110
|
-
name: string;
|
|
2111
2110
|
id: string;
|
|
2111
|
+
name: string;
|
|
2112
2112
|
isActive: boolean;
|
|
2113
2113
|
};
|
|
2114
|
-
name: string;
|
|
2115
2114
|
id: string;
|
|
2115
|
+
name: string;
|
|
2116
2116
|
brandId: string | null;
|
|
2117
2117
|
stateId: string;
|
|
2118
2118
|
allowCOD: boolean;
|
|
2119
2119
|
allowOnline: boolean;
|
|
2120
2120
|
waybillOnly: boolean;
|
|
2121
2121
|
estimatedDays: number | null;
|
|
2122
|
+
noteTitle: string | null;
|
|
2123
|
+
noteContent: string | null;
|
|
2122
2124
|
isActive: boolean;
|
|
2123
2125
|
};
|
|
2124
2126
|
items: {
|
|
@@ -2132,8 +2134,8 @@ export declare function checkoutCart(cartId: string, checkoutData: {
|
|
|
2132
2134
|
createdAt: string;
|
|
2133
2135
|
updatedAt: string;
|
|
2134
2136
|
deletedAt: string;
|
|
2135
|
-
name: string;
|
|
2136
2137
|
id: string;
|
|
2138
|
+
name: string;
|
|
2137
2139
|
slug: string;
|
|
2138
2140
|
brandId: string;
|
|
2139
2141
|
isActive: boolean;
|
|
@@ -2285,8 +2287,8 @@ export declare function checkoutCart(cartId: string, checkoutData: {
|
|
|
2285
2287
|
};
|
|
2286
2288
|
};
|
|
2287
2289
|
};
|
|
2288
|
-
name: string | null;
|
|
2289
2290
|
id: string;
|
|
2291
|
+
name: string | null;
|
|
2290
2292
|
isActive: boolean;
|
|
2291
2293
|
thumbnailUrl: string | null;
|
|
2292
2294
|
productId: string;
|
|
@@ -2298,8 +2300,8 @@ export declare function checkoutCart(cartId: string, checkoutData: {
|
|
|
2298
2300
|
createdAt: string;
|
|
2299
2301
|
updatedAt: string;
|
|
2300
2302
|
deletedAt: string;
|
|
2301
|
-
name: string;
|
|
2302
2303
|
id: string;
|
|
2304
|
+
name: string;
|
|
2303
2305
|
isActive: boolean;
|
|
2304
2306
|
address: string | null;
|
|
2305
2307
|
city: string | null;
|
|
@@ -2311,8 +2313,8 @@ export declare function checkoutCart(cartId: string, checkoutData: {
|
|
|
2311
2313
|
warehouseId: string | null;
|
|
2312
2314
|
quantity: number;
|
|
2313
2315
|
}[];
|
|
2314
|
-
id: string;
|
|
2315
2316
|
email: string | null;
|
|
2317
|
+
id: string;
|
|
2316
2318
|
brandId: string;
|
|
2317
2319
|
deliveryZoneId: string;
|
|
2318
2320
|
recoveryAttempts: number;
|
|
@@ -29,8 +29,8 @@ export declare function fetchOrder(orderId: string, token: string): Promise<{
|
|
|
29
29
|
createdAt: string;
|
|
30
30
|
updatedAt: string;
|
|
31
31
|
deletedAt: string;
|
|
32
|
-
name: string;
|
|
33
32
|
id: string;
|
|
33
|
+
name: string;
|
|
34
34
|
slug: string;
|
|
35
35
|
logoUrl: string | null;
|
|
36
36
|
siteUrl: string;
|
|
@@ -47,18 +47,20 @@ export declare function fetchOrder(orderId: string, token: string): Promise<{
|
|
|
47
47
|
createdAt: string;
|
|
48
48
|
updatedAt: string;
|
|
49
49
|
deletedAt: string;
|
|
50
|
-
name: string;
|
|
51
50
|
id: string;
|
|
51
|
+
name: string;
|
|
52
52
|
isActive: boolean;
|
|
53
53
|
};
|
|
54
|
-
name: string;
|
|
55
54
|
id: string;
|
|
55
|
+
name: string;
|
|
56
56
|
brandId: string | null;
|
|
57
57
|
stateId: string;
|
|
58
58
|
allowCOD: boolean;
|
|
59
59
|
allowOnline: boolean;
|
|
60
60
|
waybillOnly: boolean;
|
|
61
61
|
estimatedDays: number | null;
|
|
62
|
+
noteTitle: string | null;
|
|
63
|
+
noteContent: string | null;
|
|
62
64
|
isActive: boolean;
|
|
63
65
|
};
|
|
64
66
|
items: {
|
|
@@ -72,8 +74,8 @@ export declare function fetchOrder(orderId: string, token: string): Promise<{
|
|
|
72
74
|
createdAt: string;
|
|
73
75
|
updatedAt: string;
|
|
74
76
|
deletedAt: string;
|
|
75
|
-
name: string;
|
|
76
77
|
id: string;
|
|
78
|
+
name: string;
|
|
77
79
|
slug: string;
|
|
78
80
|
brandId: string;
|
|
79
81
|
isActive: boolean;
|
|
@@ -225,8 +227,8 @@ export declare function fetchOrder(orderId: string, token: string): Promise<{
|
|
|
225
227
|
};
|
|
226
228
|
};
|
|
227
229
|
};
|
|
228
|
-
name: string | null;
|
|
229
230
|
id: string;
|
|
231
|
+
name: string | null;
|
|
230
232
|
isActive: boolean;
|
|
231
233
|
thumbnailUrl: string | null;
|
|
232
234
|
productId: string;
|
|
@@ -238,8 +240,8 @@ export declare function fetchOrder(orderId: string, token: string): Promise<{
|
|
|
238
240
|
createdAt: string;
|
|
239
241
|
updatedAt: string;
|
|
240
242
|
deletedAt: string;
|
|
241
|
-
name: string;
|
|
242
243
|
id: string;
|
|
244
|
+
name: string;
|
|
243
245
|
isActive: boolean;
|
|
244
246
|
address: string | null;
|
|
245
247
|
city: string | null;
|
|
@@ -251,8 +253,8 @@ export declare function fetchOrder(orderId: string, token: string): Promise<{
|
|
|
251
253
|
warehouseId: string | null;
|
|
252
254
|
quantity: number;
|
|
253
255
|
}[];
|
|
254
|
-
id: string;
|
|
255
256
|
email: string | null;
|
|
257
|
+
id: string;
|
|
256
258
|
brandId: string;
|
|
257
259
|
deliveryZoneId: string;
|
|
258
260
|
recoveryAttempts: number;
|
|
@@ -294,8 +296,8 @@ export declare function confirmOrder(orderId: string, token: string): Promise<{
|
|
|
294
296
|
createdAt: string;
|
|
295
297
|
updatedAt: string;
|
|
296
298
|
deletedAt: string;
|
|
297
|
-
name: string;
|
|
298
299
|
id: string;
|
|
300
|
+
name: string;
|
|
299
301
|
slug: string;
|
|
300
302
|
logoUrl: string | null;
|
|
301
303
|
siteUrl: string;
|
|
@@ -312,18 +314,20 @@ export declare function confirmOrder(orderId: string, token: string): Promise<{
|
|
|
312
314
|
createdAt: string;
|
|
313
315
|
updatedAt: string;
|
|
314
316
|
deletedAt: string;
|
|
315
|
-
name: string;
|
|
316
317
|
id: string;
|
|
318
|
+
name: string;
|
|
317
319
|
isActive: boolean;
|
|
318
320
|
};
|
|
319
|
-
name: string;
|
|
320
321
|
id: string;
|
|
322
|
+
name: string;
|
|
321
323
|
brandId: string | null;
|
|
322
324
|
stateId: string;
|
|
323
325
|
allowCOD: boolean;
|
|
324
326
|
allowOnline: boolean;
|
|
325
327
|
waybillOnly: boolean;
|
|
326
328
|
estimatedDays: number | null;
|
|
329
|
+
noteTitle: string | null;
|
|
330
|
+
noteContent: string | null;
|
|
327
331
|
isActive: boolean;
|
|
328
332
|
};
|
|
329
333
|
items: {
|
|
@@ -337,8 +341,8 @@ export declare function confirmOrder(orderId: string, token: string): Promise<{
|
|
|
337
341
|
createdAt: string;
|
|
338
342
|
updatedAt: string;
|
|
339
343
|
deletedAt: string;
|
|
340
|
-
name: string;
|
|
341
344
|
id: string;
|
|
345
|
+
name: string;
|
|
342
346
|
slug: string;
|
|
343
347
|
brandId: string;
|
|
344
348
|
isActive: boolean;
|
|
@@ -490,8 +494,8 @@ export declare function confirmOrder(orderId: string, token: string): Promise<{
|
|
|
490
494
|
};
|
|
491
495
|
};
|
|
492
496
|
};
|
|
493
|
-
name: string | null;
|
|
494
497
|
id: string;
|
|
498
|
+
name: string | null;
|
|
495
499
|
isActive: boolean;
|
|
496
500
|
thumbnailUrl: string | null;
|
|
497
501
|
productId: string;
|
|
@@ -503,8 +507,8 @@ export declare function confirmOrder(orderId: string, token: string): Promise<{
|
|
|
503
507
|
createdAt: string;
|
|
504
508
|
updatedAt: string;
|
|
505
509
|
deletedAt: string;
|
|
506
|
-
name: string;
|
|
507
510
|
id: string;
|
|
511
|
+
name: string;
|
|
508
512
|
isActive: boolean;
|
|
509
513
|
address: string | null;
|
|
510
514
|
city: string | null;
|
|
@@ -516,8 +520,8 @@ export declare function confirmOrder(orderId: string, token: string): Promise<{
|
|
|
516
520
|
warehouseId: string | null;
|
|
517
521
|
quantity: number;
|
|
518
522
|
}[];
|
|
519
|
-
id: string;
|
|
520
523
|
email: string | null;
|
|
524
|
+
id: string;
|
|
521
525
|
brandId: string;
|
|
522
526
|
deliveryZoneId: string;
|
|
523
527
|
recoveryAttempts: number;
|
|
@@ -17,8 +17,8 @@ export declare function fetchProductsByBrand(brandId: string): Promise<{
|
|
|
17
17
|
createdAt: string;
|
|
18
18
|
updatedAt: string;
|
|
19
19
|
deletedAt: string;
|
|
20
|
-
name: string;
|
|
21
20
|
id: string;
|
|
21
|
+
name: string;
|
|
22
22
|
slug: string;
|
|
23
23
|
logoUrl: string | null;
|
|
24
24
|
siteUrl: string;
|
|
@@ -30,8 +30,8 @@ export declare function fetchProductsByBrand(brandId: string): Promise<{
|
|
|
30
30
|
updatedAt: string;
|
|
31
31
|
price: number;
|
|
32
32
|
deletedAt: string;
|
|
33
|
-
name: string | null;
|
|
34
33
|
id: string;
|
|
34
|
+
name: string | null;
|
|
35
35
|
isActive: boolean;
|
|
36
36
|
thumbnailUrl: string | null;
|
|
37
37
|
productId: string;
|
|
@@ -39,8 +39,8 @@ export declare function fetchProductsByBrand(brandId: string): Promise<{
|
|
|
39
39
|
trackInventory: boolean;
|
|
40
40
|
lowStockThreshold: number | null;
|
|
41
41
|
}[];
|
|
42
|
-
name: string;
|
|
43
42
|
id: string;
|
|
43
|
+
name: string;
|
|
44
44
|
slug: string;
|
|
45
45
|
createdAt: string;
|
|
46
46
|
updatedAt: string;
|
|
@@ -206,8 +206,8 @@ export declare function fetchProductBySlug(slug: string): Promise<{
|
|
|
206
206
|
createdAt: string;
|
|
207
207
|
updatedAt: string;
|
|
208
208
|
deletedAt: string;
|
|
209
|
-
name: string;
|
|
210
209
|
id: string;
|
|
210
|
+
name: string;
|
|
211
211
|
slug: string;
|
|
212
212
|
logoUrl: string | null;
|
|
213
213
|
siteUrl: string;
|
|
@@ -219,8 +219,8 @@ export declare function fetchProductBySlug(slug: string): Promise<{
|
|
|
219
219
|
updatedAt: string;
|
|
220
220
|
price: number;
|
|
221
221
|
deletedAt: string;
|
|
222
|
-
name: string | null;
|
|
223
222
|
id: string;
|
|
223
|
+
name: string | null;
|
|
224
224
|
isActive: boolean;
|
|
225
225
|
thumbnailUrl: string | null;
|
|
226
226
|
productId: string;
|
|
@@ -228,8 +228,8 @@ export declare function fetchProductBySlug(slug: string): Promise<{
|
|
|
228
228
|
trackInventory: boolean;
|
|
229
229
|
lowStockThreshold: number | null;
|
|
230
230
|
}[];
|
|
231
|
-
name: string;
|
|
232
231
|
id: string;
|
|
232
|
+
name: string;
|
|
233
233
|
slug: string;
|
|
234
234
|
createdAt: string;
|
|
235
235
|
updatedAt: string;
|