@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
|
@@ -24,8 +24,8 @@ export declare function useGetCart(cartId: string, options?: Omit<UseQueryOption
|
|
|
24
24
|
createdAt: string;
|
|
25
25
|
updatedAt: string;
|
|
26
26
|
deletedAt: string;
|
|
27
|
-
name: string;
|
|
28
27
|
id: string;
|
|
28
|
+
name: string;
|
|
29
29
|
slug: string;
|
|
30
30
|
logoUrl: string | null;
|
|
31
31
|
siteUrl: string;
|
|
@@ -45,14 +45,14 @@ export declare function useGetCart(cartId: string, options?: Omit<UseQueryOption
|
|
|
45
45
|
lastRecoveryAttemptAt: string;
|
|
46
46
|
recoveryDiscountCode: {
|
|
47
47
|
id: string;
|
|
48
|
+
type: string;
|
|
49
|
+
value: string;
|
|
48
50
|
createdAt: string;
|
|
49
51
|
updatedAt: string;
|
|
50
52
|
deletedAt: string;
|
|
51
53
|
brandId: string | null;
|
|
52
54
|
isActive: boolean;
|
|
53
55
|
code: string;
|
|
54
|
-
type: string;
|
|
55
|
-
value: string;
|
|
56
56
|
minPurchase: string;
|
|
57
57
|
maxDiscount: string;
|
|
58
58
|
usageLimit: number | null;
|
|
@@ -70,8 +70,8 @@ export declare function useGetCart(cartId: string, options?: Omit<UseQueryOption
|
|
|
70
70
|
variant: {
|
|
71
71
|
price: number;
|
|
72
72
|
product: {
|
|
73
|
-
name: string;
|
|
74
73
|
id: string;
|
|
74
|
+
name: string;
|
|
75
75
|
slug: string;
|
|
76
76
|
createdAt: string;
|
|
77
77
|
updatedAt: string;
|
|
@@ -226,8 +226,8 @@ export declare function useGetCart(cartId: string, options?: Omit<UseQueryOption
|
|
|
226
226
|
};
|
|
227
227
|
};
|
|
228
228
|
};
|
|
229
|
-
name: string | null;
|
|
230
229
|
id: string;
|
|
230
|
+
name: string | null;
|
|
231
231
|
createdAt: string;
|
|
232
232
|
updatedAt: string;
|
|
233
233
|
deletedAt: string;
|
|
@@ -284,8 +284,8 @@ export declare function useUpdateCart(cartId: string, options?: UseMutationOptio
|
|
|
284
284
|
createdAt: string;
|
|
285
285
|
updatedAt: string;
|
|
286
286
|
deletedAt: string;
|
|
287
|
-
name: string;
|
|
288
287
|
id: string;
|
|
288
|
+
name: string;
|
|
289
289
|
slug: string;
|
|
290
290
|
logoUrl: string | null;
|
|
291
291
|
siteUrl: string;
|
|
@@ -305,14 +305,14 @@ export declare function useUpdateCart(cartId: string, options?: UseMutationOptio
|
|
|
305
305
|
lastRecoveryAttemptAt: string;
|
|
306
306
|
recoveryDiscountCode: {
|
|
307
307
|
id: string;
|
|
308
|
+
type: string;
|
|
309
|
+
value: string;
|
|
308
310
|
createdAt: string;
|
|
309
311
|
updatedAt: string;
|
|
310
312
|
deletedAt: string;
|
|
311
313
|
brandId: string | null;
|
|
312
314
|
isActive: boolean;
|
|
313
315
|
code: string;
|
|
314
|
-
type: string;
|
|
315
|
-
value: string;
|
|
316
316
|
minPurchase: string;
|
|
317
317
|
maxDiscount: string;
|
|
318
318
|
usageLimit: number | null;
|
|
@@ -330,8 +330,8 @@ export declare function useUpdateCart(cartId: string, options?: UseMutationOptio
|
|
|
330
330
|
variant: {
|
|
331
331
|
price: number;
|
|
332
332
|
product: {
|
|
333
|
-
name: string;
|
|
334
333
|
id: string;
|
|
334
|
+
name: string;
|
|
335
335
|
slug: string;
|
|
336
336
|
createdAt: string;
|
|
337
337
|
updatedAt: string;
|
|
@@ -486,8 +486,8 @@ export declare function useUpdateCart(cartId: string, options?: UseMutationOptio
|
|
|
486
486
|
};
|
|
487
487
|
};
|
|
488
488
|
};
|
|
489
|
-
name: string | null;
|
|
490
489
|
id: string;
|
|
490
|
+
name: string | null;
|
|
491
491
|
createdAt: string;
|
|
492
492
|
updatedAt: string;
|
|
493
493
|
deletedAt: string;
|
|
@@ -552,8 +552,8 @@ export declare function useCreateCart(options?: UseMutationOptions<Awaited<Retur
|
|
|
552
552
|
createdAt: string;
|
|
553
553
|
updatedAt: string;
|
|
554
554
|
deletedAt: string;
|
|
555
|
-
name: string;
|
|
556
555
|
id: string;
|
|
556
|
+
name: string;
|
|
557
557
|
slug: string;
|
|
558
558
|
logoUrl: string | null;
|
|
559
559
|
siteUrl: string;
|
|
@@ -573,14 +573,14 @@ export declare function useCreateCart(options?: UseMutationOptions<Awaited<Retur
|
|
|
573
573
|
lastRecoveryAttemptAt: string;
|
|
574
574
|
recoveryDiscountCode: {
|
|
575
575
|
id: string;
|
|
576
|
+
type: string;
|
|
577
|
+
value: string;
|
|
576
578
|
createdAt: string;
|
|
577
579
|
updatedAt: string;
|
|
578
580
|
deletedAt: string;
|
|
579
581
|
brandId: string | null;
|
|
580
582
|
isActive: boolean;
|
|
581
583
|
code: string;
|
|
582
|
-
type: string;
|
|
583
|
-
value: string;
|
|
584
584
|
minPurchase: string;
|
|
585
585
|
maxDiscount: string;
|
|
586
586
|
usageLimit: number | null;
|
|
@@ -598,8 +598,8 @@ export declare function useCreateCart(options?: UseMutationOptions<Awaited<Retur
|
|
|
598
598
|
variant: {
|
|
599
599
|
price: number;
|
|
600
600
|
product: {
|
|
601
|
-
name: string;
|
|
602
601
|
id: string;
|
|
602
|
+
name: string;
|
|
603
603
|
slug: string;
|
|
604
604
|
createdAt: string;
|
|
605
605
|
updatedAt: string;
|
|
@@ -754,8 +754,8 @@ export declare function useCreateCart(options?: UseMutationOptions<Awaited<Retur
|
|
|
754
754
|
};
|
|
755
755
|
};
|
|
756
756
|
};
|
|
757
|
-
name: string | null;
|
|
758
757
|
id: string;
|
|
758
|
+
name: string | null;
|
|
759
759
|
createdAt: string;
|
|
760
760
|
updatedAt: string;
|
|
761
761
|
deletedAt: string;
|
|
@@ -811,8 +811,8 @@ export declare function useApplyDiscount(cartId: string, options?: UseMutationOp
|
|
|
811
811
|
createdAt: string;
|
|
812
812
|
updatedAt: string;
|
|
813
813
|
deletedAt: string;
|
|
814
|
-
name: string;
|
|
815
814
|
id: string;
|
|
815
|
+
name: string;
|
|
816
816
|
slug: string;
|
|
817
817
|
logoUrl: string | null;
|
|
818
818
|
siteUrl: string;
|
|
@@ -832,14 +832,14 @@ export declare function useApplyDiscount(cartId: string, options?: UseMutationOp
|
|
|
832
832
|
lastRecoveryAttemptAt: string;
|
|
833
833
|
recoveryDiscountCode: {
|
|
834
834
|
id: string;
|
|
835
|
+
type: string;
|
|
836
|
+
value: string;
|
|
835
837
|
createdAt: string;
|
|
836
838
|
updatedAt: string;
|
|
837
839
|
deletedAt: string;
|
|
838
840
|
brandId: string | null;
|
|
839
841
|
isActive: boolean;
|
|
840
842
|
code: string;
|
|
841
|
-
type: string;
|
|
842
|
-
value: string;
|
|
843
843
|
minPurchase: string;
|
|
844
844
|
maxDiscount: string;
|
|
845
845
|
usageLimit: number | null;
|
|
@@ -857,8 +857,8 @@ export declare function useApplyDiscount(cartId: string, options?: UseMutationOp
|
|
|
857
857
|
variant: {
|
|
858
858
|
price: number;
|
|
859
859
|
product: {
|
|
860
|
-
name: string;
|
|
861
860
|
id: string;
|
|
861
|
+
name: string;
|
|
862
862
|
slug: string;
|
|
863
863
|
createdAt: string;
|
|
864
864
|
updatedAt: string;
|
|
@@ -1013,8 +1013,8 @@ export declare function useApplyDiscount(cartId: string, options?: UseMutationOp
|
|
|
1013
1013
|
};
|
|
1014
1014
|
};
|
|
1015
1015
|
};
|
|
1016
|
-
name: string | null;
|
|
1017
1016
|
id: string;
|
|
1017
|
+
name: string | null;
|
|
1018
1018
|
createdAt: string;
|
|
1019
1019
|
updatedAt: string;
|
|
1020
1020
|
deletedAt: string;
|
|
@@ -1075,8 +1075,8 @@ export declare function useRemoveDiscount(cartId: string, options?: UseMutationO
|
|
|
1075
1075
|
createdAt: string;
|
|
1076
1076
|
updatedAt: string;
|
|
1077
1077
|
deletedAt: string;
|
|
1078
|
-
name: string;
|
|
1079
1078
|
id: string;
|
|
1079
|
+
name: string;
|
|
1080
1080
|
slug: string;
|
|
1081
1081
|
logoUrl: string | null;
|
|
1082
1082
|
siteUrl: string;
|
|
@@ -1096,14 +1096,14 @@ export declare function useRemoveDiscount(cartId: string, options?: UseMutationO
|
|
|
1096
1096
|
lastRecoveryAttemptAt: string;
|
|
1097
1097
|
recoveryDiscountCode: {
|
|
1098
1098
|
id: string;
|
|
1099
|
+
type: string;
|
|
1100
|
+
value: string;
|
|
1099
1101
|
createdAt: string;
|
|
1100
1102
|
updatedAt: string;
|
|
1101
1103
|
deletedAt: string;
|
|
1102
1104
|
brandId: string | null;
|
|
1103
1105
|
isActive: boolean;
|
|
1104
1106
|
code: string;
|
|
1105
|
-
type: string;
|
|
1106
|
-
value: string;
|
|
1107
1107
|
minPurchase: string;
|
|
1108
1108
|
maxDiscount: string;
|
|
1109
1109
|
usageLimit: number | null;
|
|
@@ -1121,8 +1121,8 @@ export declare function useRemoveDiscount(cartId: string, options?: UseMutationO
|
|
|
1121
1121
|
variant: {
|
|
1122
1122
|
price: number;
|
|
1123
1123
|
product: {
|
|
1124
|
-
name: string;
|
|
1125
1124
|
id: string;
|
|
1125
|
+
name: string;
|
|
1126
1126
|
slug: string;
|
|
1127
1127
|
createdAt: string;
|
|
1128
1128
|
updatedAt: string;
|
|
@@ -1277,8 +1277,8 @@ export declare function useRemoveDiscount(cartId: string, options?: UseMutationO
|
|
|
1277
1277
|
};
|
|
1278
1278
|
};
|
|
1279
1279
|
};
|
|
1280
|
-
name: string | null;
|
|
1281
1280
|
id: string;
|
|
1281
|
+
name: string | null;
|
|
1282
1282
|
createdAt: string;
|
|
1283
1283
|
updatedAt: string;
|
|
1284
1284
|
deletedAt: string;
|
|
@@ -1342,8 +1342,8 @@ export declare function useAddCartItem(cartId: string, options?: UseMutationOpti
|
|
|
1342
1342
|
createdAt: string;
|
|
1343
1343
|
updatedAt: string;
|
|
1344
1344
|
deletedAt: string;
|
|
1345
|
-
name: string;
|
|
1346
1345
|
id: string;
|
|
1346
|
+
name: string;
|
|
1347
1347
|
slug: string;
|
|
1348
1348
|
logoUrl: string | null;
|
|
1349
1349
|
siteUrl: string;
|
|
@@ -1363,14 +1363,14 @@ export declare function useAddCartItem(cartId: string, options?: UseMutationOpti
|
|
|
1363
1363
|
lastRecoveryAttemptAt: string;
|
|
1364
1364
|
recoveryDiscountCode: {
|
|
1365
1365
|
id: string;
|
|
1366
|
+
type: string;
|
|
1367
|
+
value: string;
|
|
1366
1368
|
createdAt: string;
|
|
1367
1369
|
updatedAt: string;
|
|
1368
1370
|
deletedAt: string;
|
|
1369
1371
|
brandId: string | null;
|
|
1370
1372
|
isActive: boolean;
|
|
1371
1373
|
code: string;
|
|
1372
|
-
type: string;
|
|
1373
|
-
value: string;
|
|
1374
1374
|
minPurchase: string;
|
|
1375
1375
|
maxDiscount: string;
|
|
1376
1376
|
usageLimit: number | null;
|
|
@@ -1388,8 +1388,8 @@ export declare function useAddCartItem(cartId: string, options?: UseMutationOpti
|
|
|
1388
1388
|
variant: {
|
|
1389
1389
|
price: number;
|
|
1390
1390
|
product: {
|
|
1391
|
-
name: string;
|
|
1392
1391
|
id: string;
|
|
1392
|
+
name: string;
|
|
1393
1393
|
slug: string;
|
|
1394
1394
|
createdAt: string;
|
|
1395
1395
|
updatedAt: string;
|
|
@@ -1544,8 +1544,8 @@ export declare function useAddCartItem(cartId: string, options?: UseMutationOpti
|
|
|
1544
1544
|
};
|
|
1545
1545
|
};
|
|
1546
1546
|
};
|
|
1547
|
-
name: string | null;
|
|
1548
1547
|
id: string;
|
|
1548
|
+
name: string | null;
|
|
1549
1549
|
createdAt: string;
|
|
1550
1550
|
updatedAt: string;
|
|
1551
1551
|
deletedAt: string;
|
|
@@ -1612,8 +1612,8 @@ export declare function useUpdateCartItem(cartId: string, options?: UseMutationO
|
|
|
1612
1612
|
createdAt: string;
|
|
1613
1613
|
updatedAt: string;
|
|
1614
1614
|
deletedAt: string;
|
|
1615
|
-
name: string;
|
|
1616
1615
|
id: string;
|
|
1616
|
+
name: string;
|
|
1617
1617
|
slug: string;
|
|
1618
1618
|
logoUrl: string | null;
|
|
1619
1619
|
siteUrl: string;
|
|
@@ -1633,14 +1633,14 @@ export declare function useUpdateCartItem(cartId: string, options?: UseMutationO
|
|
|
1633
1633
|
lastRecoveryAttemptAt: string;
|
|
1634
1634
|
recoveryDiscountCode: {
|
|
1635
1635
|
id: string;
|
|
1636
|
+
type: string;
|
|
1637
|
+
value: string;
|
|
1636
1638
|
createdAt: string;
|
|
1637
1639
|
updatedAt: string;
|
|
1638
1640
|
deletedAt: string;
|
|
1639
1641
|
brandId: string | null;
|
|
1640
1642
|
isActive: boolean;
|
|
1641
1643
|
code: string;
|
|
1642
|
-
type: string;
|
|
1643
|
-
value: string;
|
|
1644
1644
|
minPurchase: string;
|
|
1645
1645
|
maxDiscount: string;
|
|
1646
1646
|
usageLimit: number | null;
|
|
@@ -1658,8 +1658,8 @@ export declare function useUpdateCartItem(cartId: string, options?: UseMutationO
|
|
|
1658
1658
|
variant: {
|
|
1659
1659
|
price: number;
|
|
1660
1660
|
product: {
|
|
1661
|
-
name: string;
|
|
1662
1661
|
id: string;
|
|
1662
|
+
name: string;
|
|
1663
1663
|
slug: string;
|
|
1664
1664
|
createdAt: string;
|
|
1665
1665
|
updatedAt: string;
|
|
@@ -1814,8 +1814,8 @@ export declare function useUpdateCartItem(cartId: string, options?: UseMutationO
|
|
|
1814
1814
|
};
|
|
1815
1815
|
};
|
|
1816
1816
|
};
|
|
1817
|
-
name: string | null;
|
|
1818
1817
|
id: string;
|
|
1818
|
+
name: string | null;
|
|
1819
1819
|
createdAt: string;
|
|
1820
1820
|
updatedAt: string;
|
|
1821
1821
|
deletedAt: string;
|
|
@@ -1872,8 +1872,8 @@ export declare function useRemoveCartItem(cartId: string, options?: UseMutationO
|
|
|
1872
1872
|
createdAt: string;
|
|
1873
1873
|
updatedAt: string;
|
|
1874
1874
|
deletedAt: string;
|
|
1875
|
-
name: string;
|
|
1876
1875
|
id: string;
|
|
1876
|
+
name: string;
|
|
1877
1877
|
slug: string;
|
|
1878
1878
|
logoUrl: string | null;
|
|
1879
1879
|
siteUrl: string;
|
|
@@ -1893,14 +1893,14 @@ export declare function useRemoveCartItem(cartId: string, options?: UseMutationO
|
|
|
1893
1893
|
lastRecoveryAttemptAt: string;
|
|
1894
1894
|
recoveryDiscountCode: {
|
|
1895
1895
|
id: string;
|
|
1896
|
+
type: string;
|
|
1897
|
+
value: string;
|
|
1896
1898
|
createdAt: string;
|
|
1897
1899
|
updatedAt: string;
|
|
1898
1900
|
deletedAt: string;
|
|
1899
1901
|
brandId: string | null;
|
|
1900
1902
|
isActive: boolean;
|
|
1901
1903
|
code: string;
|
|
1902
|
-
type: string;
|
|
1903
|
-
value: string;
|
|
1904
1904
|
minPurchase: string;
|
|
1905
1905
|
maxDiscount: string;
|
|
1906
1906
|
usageLimit: number | null;
|
|
@@ -1918,8 +1918,8 @@ export declare function useRemoveCartItem(cartId: string, options?: UseMutationO
|
|
|
1918
1918
|
variant: {
|
|
1919
1919
|
price: number;
|
|
1920
1920
|
product: {
|
|
1921
|
-
name: string;
|
|
1922
1921
|
id: string;
|
|
1922
|
+
name: string;
|
|
1923
1923
|
slug: string;
|
|
1924
1924
|
createdAt: string;
|
|
1925
1925
|
updatedAt: string;
|
|
@@ -2074,8 +2074,8 @@ export declare function useRemoveCartItem(cartId: string, options?: UseMutationO
|
|
|
2074
2074
|
};
|
|
2075
2075
|
};
|
|
2076
2076
|
};
|
|
2077
|
-
name: string | null;
|
|
2078
2077
|
id: string;
|
|
2078
|
+
name: string | null;
|
|
2079
2079
|
createdAt: string;
|
|
2080
2080
|
updatedAt: string;
|
|
2081
2081
|
deletedAt: string;
|
|
@@ -2146,8 +2146,8 @@ export declare function useCheckoutCart(cartId: string, options?: UseMutationOpt
|
|
|
2146
2146
|
createdAt: string;
|
|
2147
2147
|
updatedAt: string;
|
|
2148
2148
|
deletedAt: string;
|
|
2149
|
-
name: string;
|
|
2150
2149
|
id: string;
|
|
2150
|
+
name: string;
|
|
2151
2151
|
slug: string;
|
|
2152
2152
|
logoUrl: string | null;
|
|
2153
2153
|
siteUrl: string;
|
|
@@ -2164,18 +2164,20 @@ export declare function useCheckoutCart(cartId: string, options?: UseMutationOpt
|
|
|
2164
2164
|
createdAt: string;
|
|
2165
2165
|
updatedAt: string;
|
|
2166
2166
|
deletedAt: string;
|
|
2167
|
-
name: string;
|
|
2168
2167
|
id: string;
|
|
2168
|
+
name: string;
|
|
2169
2169
|
isActive: boolean;
|
|
2170
2170
|
};
|
|
2171
|
-
name: string;
|
|
2172
2171
|
id: string;
|
|
2172
|
+
name: string;
|
|
2173
2173
|
brandId: string | null;
|
|
2174
2174
|
stateId: string;
|
|
2175
2175
|
allowCOD: boolean;
|
|
2176
2176
|
allowOnline: boolean;
|
|
2177
2177
|
waybillOnly: boolean;
|
|
2178
2178
|
estimatedDays: number | null;
|
|
2179
|
+
noteTitle: string | null;
|
|
2180
|
+
noteContent: string | null;
|
|
2179
2181
|
isActive: boolean;
|
|
2180
2182
|
};
|
|
2181
2183
|
items: {
|
|
@@ -2189,8 +2191,8 @@ export declare function useCheckoutCart(cartId: string, options?: UseMutationOpt
|
|
|
2189
2191
|
createdAt: string;
|
|
2190
2192
|
updatedAt: string;
|
|
2191
2193
|
deletedAt: string;
|
|
2192
|
-
name: string;
|
|
2193
2194
|
id: string;
|
|
2195
|
+
name: string;
|
|
2194
2196
|
slug: string;
|
|
2195
2197
|
brandId: string;
|
|
2196
2198
|
isActive: boolean;
|
|
@@ -2342,8 +2344,8 @@ export declare function useCheckoutCart(cartId: string, options?: UseMutationOpt
|
|
|
2342
2344
|
};
|
|
2343
2345
|
};
|
|
2344
2346
|
};
|
|
2345
|
-
name: string | null;
|
|
2346
2347
|
id: string;
|
|
2348
|
+
name: string | null;
|
|
2347
2349
|
isActive: boolean;
|
|
2348
2350
|
thumbnailUrl: string | null;
|
|
2349
2351
|
productId: string;
|
|
@@ -2355,8 +2357,8 @@ export declare function useCheckoutCart(cartId: string, options?: UseMutationOpt
|
|
|
2355
2357
|
createdAt: string;
|
|
2356
2358
|
updatedAt: string;
|
|
2357
2359
|
deletedAt: string;
|
|
2358
|
-
name: string;
|
|
2359
2360
|
id: string;
|
|
2361
|
+
name: string;
|
|
2360
2362
|
isActive: boolean;
|
|
2361
2363
|
address: string | null;
|
|
2362
2364
|
city: string | null;
|
|
@@ -2368,8 +2370,8 @@ export declare function useCheckoutCart(cartId: string, options?: UseMutationOpt
|
|
|
2368
2370
|
warehouseId: string | null;
|
|
2369
2371
|
quantity: number;
|
|
2370
2372
|
}[];
|
|
2371
|
-
id: string;
|
|
2372
2373
|
email: string | null;
|
|
2374
|
+
id: string;
|
|
2373
2375
|
brandId: string;
|
|
2374
2376
|
deliveryZoneId: string;
|
|
2375
2377
|
recoveryAttempts: number;
|
|
@@ -35,8 +35,8 @@ export declare function useGetOrder(orderId: string, token: string, options?: Om
|
|
|
35
35
|
createdAt: string;
|
|
36
36
|
updatedAt: string;
|
|
37
37
|
deletedAt: string;
|
|
38
|
-
name: string;
|
|
39
38
|
id: string;
|
|
39
|
+
name: string;
|
|
40
40
|
slug: string;
|
|
41
41
|
logoUrl: string | null;
|
|
42
42
|
siteUrl: string;
|
|
@@ -53,18 +53,20 @@ export declare function useGetOrder(orderId: string, token: string, options?: Om
|
|
|
53
53
|
createdAt: string;
|
|
54
54
|
updatedAt: string;
|
|
55
55
|
deletedAt: string;
|
|
56
|
-
name: string;
|
|
57
56
|
id: string;
|
|
57
|
+
name: string;
|
|
58
58
|
isActive: boolean;
|
|
59
59
|
};
|
|
60
|
-
name: string;
|
|
61
60
|
id: string;
|
|
61
|
+
name: string;
|
|
62
62
|
brandId: string | null;
|
|
63
63
|
stateId: string;
|
|
64
64
|
allowCOD: boolean;
|
|
65
65
|
allowOnline: boolean;
|
|
66
66
|
waybillOnly: boolean;
|
|
67
67
|
estimatedDays: number | null;
|
|
68
|
+
noteTitle: string | null;
|
|
69
|
+
noteContent: string | null;
|
|
68
70
|
isActive: boolean;
|
|
69
71
|
};
|
|
70
72
|
items: {
|
|
@@ -78,8 +80,8 @@ export declare function useGetOrder(orderId: string, token: string, options?: Om
|
|
|
78
80
|
createdAt: string;
|
|
79
81
|
updatedAt: string;
|
|
80
82
|
deletedAt: string;
|
|
81
|
-
name: string;
|
|
82
83
|
id: string;
|
|
84
|
+
name: string;
|
|
83
85
|
slug: string;
|
|
84
86
|
brandId: string;
|
|
85
87
|
isActive: boolean;
|
|
@@ -231,8 +233,8 @@ export declare function useGetOrder(orderId: string, token: string, options?: Om
|
|
|
231
233
|
};
|
|
232
234
|
};
|
|
233
235
|
};
|
|
234
|
-
name: string | null;
|
|
235
236
|
id: string;
|
|
237
|
+
name: string | null;
|
|
236
238
|
isActive: boolean;
|
|
237
239
|
thumbnailUrl: string | null;
|
|
238
240
|
productId: string;
|
|
@@ -244,8 +246,8 @@ export declare function useGetOrder(orderId: string, token: string, options?: Om
|
|
|
244
246
|
createdAt: string;
|
|
245
247
|
updatedAt: string;
|
|
246
248
|
deletedAt: string;
|
|
247
|
-
name: string;
|
|
248
249
|
id: string;
|
|
250
|
+
name: string;
|
|
249
251
|
isActive: boolean;
|
|
250
252
|
address: string | null;
|
|
251
253
|
city: string | null;
|
|
@@ -257,8 +259,8 @@ export declare function useGetOrder(orderId: string, token: string, options?: Om
|
|
|
257
259
|
warehouseId: string | null;
|
|
258
260
|
quantity: number;
|
|
259
261
|
}[];
|
|
260
|
-
id: string;
|
|
261
262
|
email: string | null;
|
|
263
|
+
id: string;
|
|
262
264
|
brandId: string;
|
|
263
265
|
deliveryZoneId: string;
|
|
264
266
|
recoveryAttempts: number;
|
|
@@ -310,8 +312,8 @@ export declare function useConfirmOrder(options?: UseMutationOptions<Awaited<Ret
|
|
|
310
312
|
createdAt: string;
|
|
311
313
|
updatedAt: string;
|
|
312
314
|
deletedAt: string;
|
|
313
|
-
name: string;
|
|
314
315
|
id: string;
|
|
316
|
+
name: string;
|
|
315
317
|
slug: string;
|
|
316
318
|
logoUrl: string | null;
|
|
317
319
|
siteUrl: string;
|
|
@@ -328,18 +330,20 @@ export declare function useConfirmOrder(options?: UseMutationOptions<Awaited<Ret
|
|
|
328
330
|
createdAt: string;
|
|
329
331
|
updatedAt: string;
|
|
330
332
|
deletedAt: string;
|
|
331
|
-
name: string;
|
|
332
333
|
id: string;
|
|
334
|
+
name: string;
|
|
333
335
|
isActive: boolean;
|
|
334
336
|
};
|
|
335
|
-
name: string;
|
|
336
337
|
id: string;
|
|
338
|
+
name: string;
|
|
337
339
|
brandId: string | null;
|
|
338
340
|
stateId: string;
|
|
339
341
|
allowCOD: boolean;
|
|
340
342
|
allowOnline: boolean;
|
|
341
343
|
waybillOnly: boolean;
|
|
342
344
|
estimatedDays: number | null;
|
|
345
|
+
noteTitle: string | null;
|
|
346
|
+
noteContent: string | null;
|
|
343
347
|
isActive: boolean;
|
|
344
348
|
};
|
|
345
349
|
items: {
|
|
@@ -353,8 +357,8 @@ export declare function useConfirmOrder(options?: UseMutationOptions<Awaited<Ret
|
|
|
353
357
|
createdAt: string;
|
|
354
358
|
updatedAt: string;
|
|
355
359
|
deletedAt: string;
|
|
356
|
-
name: string;
|
|
357
360
|
id: string;
|
|
361
|
+
name: string;
|
|
358
362
|
slug: string;
|
|
359
363
|
brandId: string;
|
|
360
364
|
isActive: boolean;
|
|
@@ -506,8 +510,8 @@ export declare function useConfirmOrder(options?: UseMutationOptions<Awaited<Ret
|
|
|
506
510
|
};
|
|
507
511
|
};
|
|
508
512
|
};
|
|
509
|
-
name: string | null;
|
|
510
513
|
id: string;
|
|
514
|
+
name: string | null;
|
|
511
515
|
isActive: boolean;
|
|
512
516
|
thumbnailUrl: string | null;
|
|
513
517
|
productId: string;
|
|
@@ -519,8 +523,8 @@ export declare function useConfirmOrder(options?: UseMutationOptions<Awaited<Ret
|
|
|
519
523
|
createdAt: string;
|
|
520
524
|
updatedAt: string;
|
|
521
525
|
deletedAt: string;
|
|
522
|
-
name: string;
|
|
523
526
|
id: string;
|
|
527
|
+
name: string;
|
|
524
528
|
isActive: boolean;
|
|
525
529
|
address: string | null;
|
|
526
530
|
city: string | null;
|
|
@@ -532,8 +536,8 @@ export declare function useConfirmOrder(options?: UseMutationOptions<Awaited<Ret
|
|
|
532
536
|
warehouseId: string | null;
|
|
533
537
|
quantity: number;
|
|
534
538
|
}[];
|
|
535
|
-
id: string;
|
|
536
539
|
email: string | null;
|
|
540
|
+
id: string;
|
|
537
541
|
brandId: string;
|
|
538
542
|
deliveryZoneId: string;
|
|
539
543
|
recoveryAttempts: number;
|
|
@@ -23,8 +23,8 @@ export declare function useGetProducts(brandId: string, options?: Omit<UseQueryO
|
|
|
23
23
|
createdAt: string;
|
|
24
24
|
updatedAt: string;
|
|
25
25
|
deletedAt: string;
|
|
26
|
-
name: string;
|
|
27
26
|
id: string;
|
|
27
|
+
name: string;
|
|
28
28
|
slug: string;
|
|
29
29
|
logoUrl: string | null;
|
|
30
30
|
siteUrl: string;
|
|
@@ -36,8 +36,8 @@ export declare function useGetProducts(brandId: string, options?: Omit<UseQueryO
|
|
|
36
36
|
updatedAt: string;
|
|
37
37
|
price: number;
|
|
38
38
|
deletedAt: string;
|
|
39
|
-
name: string | null;
|
|
40
39
|
id: string;
|
|
40
|
+
name: string | null;
|
|
41
41
|
isActive: boolean;
|
|
42
42
|
thumbnailUrl: string | null;
|
|
43
43
|
productId: string;
|
|
@@ -45,8 +45,8 @@ export declare function useGetProducts(brandId: string, options?: Omit<UseQueryO
|
|
|
45
45
|
trackInventory: boolean;
|
|
46
46
|
lowStockThreshold: number | null;
|
|
47
47
|
}[];
|
|
48
|
-
name: string;
|
|
49
48
|
id: string;
|
|
49
|
+
name: string;
|
|
50
50
|
slug: string;
|
|
51
51
|
createdAt: string;
|
|
52
52
|
updatedAt: string;
|
|
@@ -218,8 +218,8 @@ export declare function useGetProduct(slug: string, options?: Omit<UseQueryOptio
|
|
|
218
218
|
createdAt: string;
|
|
219
219
|
updatedAt: string;
|
|
220
220
|
deletedAt: string;
|
|
221
|
-
name: string;
|
|
222
221
|
id: string;
|
|
222
|
+
name: string;
|
|
223
223
|
slug: string;
|
|
224
224
|
logoUrl: string | null;
|
|
225
225
|
siteUrl: string;
|
|
@@ -231,8 +231,8 @@ export declare function useGetProduct(slug: string, options?: Omit<UseQueryOptio
|
|
|
231
231
|
updatedAt: string;
|
|
232
232
|
price: number;
|
|
233
233
|
deletedAt: string;
|
|
234
|
-
name: string | null;
|
|
235
234
|
id: string;
|
|
235
|
+
name: string | null;
|
|
236
236
|
isActive: boolean;
|
|
237
237
|
thumbnailUrl: string | null;
|
|
238
238
|
productId: string;
|
|
@@ -240,8 +240,8 @@ export declare function useGetProduct(slug: string, options?: Omit<UseQueryOptio
|
|
|
240
240
|
trackInventory: boolean;
|
|
241
241
|
lowStockThreshold: number | null;
|
|
242
242
|
}[];
|
|
243
|
-
name: string;
|
|
244
243
|
id: string;
|
|
244
|
+
name: string;
|
|
245
245
|
slug: string;
|
|
246
246
|
createdAt: string;
|
|
247
247
|
updatedAt: string;
|