@instockng/api-client 1.0.35 → 1.0.36
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/fetchers/brands.d.ts +1 -0
- package/dist/fetchers/carts.d.ts +113 -112
- package/dist/fetchers/delivery-zones.d.ts +0 -1
- package/dist/fetchers/orders.d.ts +31 -30
- package/dist/hooks/admin/abandoned-carts.d.ts +24 -24
- package/dist/hooks/admin/brands.d.ts +4 -0
- package/dist/hooks/admin/customers.d.ts +14 -14
- package/dist/hooks/admin/delivery-zones.d.ts +12 -8
- package/dist/hooks/admin/discount-codes.d.ts +20 -15
- package/dist/hooks/admin/orders.d.ts +79 -78
- package/dist/hooks/admin/products.d.ts +6 -4
- package/dist/hooks/admin/stats.d.ts +14 -14
- package/dist/hooks/admin/warehouses.d.ts +7 -6
- package/dist/hooks/public/brands.d.ts +1 -0
- package/dist/hooks/public/carts.d.ts +113 -112
- package/dist/hooks/public/delivery-zones.d.ts +0 -1
- package/dist/hooks/public/orders.d.ts +31 -30
- package/dist/rpc-client.d.ts +354 -330
- package/dist/rpc-types.d.ts +9 -6
- package/package.json +1 -1
|
@@ -12,10 +12,10 @@ export declare function useListWarehouses(options?: Omit<UseQueryOptions<Awaited
|
|
|
12
12
|
createdAt: string;
|
|
13
13
|
updatedAt: string;
|
|
14
14
|
deletedAt: string;
|
|
15
|
+
state: string | null;
|
|
15
16
|
isActive: boolean;
|
|
16
17
|
address: string | null;
|
|
17
18
|
city: string | null;
|
|
18
|
-
state: string | null;
|
|
19
19
|
}[], Error>;
|
|
20
20
|
/**
|
|
21
21
|
* Hook to create a warehouse using admin RPC
|
|
@@ -26,10 +26,10 @@ export declare function useCreateWarehouse(options?: UseMutationOptions<Awaited<
|
|
|
26
26
|
createdAt: string;
|
|
27
27
|
updatedAt: string;
|
|
28
28
|
deletedAt: string;
|
|
29
|
+
state: string | null;
|
|
29
30
|
isActive: boolean;
|
|
30
31
|
address: string | null;
|
|
31
32
|
city: string | null;
|
|
32
|
-
state: string | null;
|
|
33
33
|
} | {
|
|
34
34
|
error: {
|
|
35
35
|
code: string;
|
|
@@ -45,10 +45,10 @@ export declare function useUpdateWarehouse(warehouseId: string, options?: UseMut
|
|
|
45
45
|
createdAt: string;
|
|
46
46
|
updatedAt: string;
|
|
47
47
|
deletedAt: string;
|
|
48
|
+
state: string | null;
|
|
48
49
|
isActive: boolean;
|
|
49
50
|
address: string | null;
|
|
50
51
|
city: string | null;
|
|
51
|
-
state: string | null;
|
|
52
52
|
} | {
|
|
53
53
|
error: {
|
|
54
54
|
code: string;
|
|
@@ -74,6 +74,7 @@ export declare function useGetWarehouseInventory(warehouseId: string, options?:
|
|
|
74
74
|
tiktokPixelId: string | null;
|
|
75
75
|
paystackPublicKey: string | null;
|
|
76
76
|
paystackSecretKey: string | null;
|
|
77
|
+
freeShippingThreshold: string;
|
|
77
78
|
createdAt: string;
|
|
78
79
|
updatedAt: string;
|
|
79
80
|
deletedAt: string;
|
|
@@ -84,8 +85,8 @@ export declare function useGetWarehouseInventory(warehouseId: string, options?:
|
|
|
84
85
|
createdAt: string;
|
|
85
86
|
updatedAt: string;
|
|
86
87
|
deletedAt: string;
|
|
87
|
-
brandId: string;
|
|
88
88
|
isActive: boolean;
|
|
89
|
+
brandId: string;
|
|
89
90
|
description: string | null;
|
|
90
91
|
thumbnailUrl: string | null;
|
|
91
92
|
quantityDiscounts: string | number | boolean | {
|
|
@@ -531,8 +532,8 @@ export declare function useGetWarehouseInventory(warehouseId: string, options?:
|
|
|
531
532
|
updatedAt: string;
|
|
532
533
|
deletedAt: string;
|
|
533
534
|
isActive: boolean;
|
|
534
|
-
thumbnailUrl: string | null;
|
|
535
535
|
productId: string;
|
|
536
|
+
thumbnailUrl: string | null;
|
|
536
537
|
sku: string;
|
|
537
538
|
price: string;
|
|
538
539
|
compareAtPrice: string;
|
|
@@ -550,10 +551,10 @@ export declare function useGetWarehouseInventory(warehouseId: string, options?:
|
|
|
550
551
|
createdAt: string;
|
|
551
552
|
updatedAt: string;
|
|
552
553
|
deletedAt: string;
|
|
554
|
+
state: string | null;
|
|
553
555
|
isActive: boolean;
|
|
554
556
|
address: string | null;
|
|
555
557
|
city: string | null;
|
|
556
|
-
state: string | null;
|
|
557
558
|
};
|
|
558
559
|
inventory: {
|
|
559
560
|
variantId: string;
|
|
@@ -21,19 +21,19 @@ import { fetchCart, updateCart, createCart, addCartItem, updateCartItem, removeC
|
|
|
21
21
|
export declare function useGetCart(cartId: string, options?: Omit<UseQueryOptions<Awaited<ReturnType<typeof fetchCart>>, Error>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<{
|
|
22
22
|
id: string;
|
|
23
23
|
brand: {
|
|
24
|
-
createdAt: string;
|
|
25
|
-
updatedAt: string;
|
|
26
|
-
deletedAt: string;
|
|
27
24
|
id: string;
|
|
28
25
|
name: string;
|
|
29
26
|
slug: string;
|
|
30
|
-
logoUrl: string
|
|
27
|
+
logoUrl: string;
|
|
31
28
|
siteUrl: string;
|
|
32
29
|
domain: string;
|
|
33
|
-
metaPixelId: string
|
|
34
|
-
tiktokPixelId: string
|
|
35
|
-
paystackPublicKey: string
|
|
36
|
-
|
|
30
|
+
metaPixelId: string;
|
|
31
|
+
tiktokPixelId: string;
|
|
32
|
+
paystackPublicKey: string;
|
|
33
|
+
freeShippingThreshold: number;
|
|
34
|
+
createdAt: string;
|
|
35
|
+
updatedAt: string;
|
|
36
|
+
deletedAt: string;
|
|
37
37
|
};
|
|
38
38
|
customerPhone: string;
|
|
39
39
|
customerEmail: string;
|
|
@@ -53,9 +53,10 @@ export declare function useGetCart(cartId: string, options?: Omit<UseQueryOption
|
|
|
53
53
|
createdAt: string;
|
|
54
54
|
updatedAt: string;
|
|
55
55
|
deletedAt: string;
|
|
56
|
-
brandId: string | null;
|
|
57
|
-
isActive: boolean;
|
|
58
56
|
code: string;
|
|
57
|
+
isActive: boolean;
|
|
58
|
+
brandId: string | null;
|
|
59
|
+
description: string | null;
|
|
59
60
|
minPurchase: string;
|
|
60
61
|
maxDiscount: string;
|
|
61
62
|
usageLimit: number | null;
|
|
@@ -64,7 +65,6 @@ export declare function useGetCart(cartId: string, options?: Omit<UseQueryOption
|
|
|
64
65
|
validFrom: string;
|
|
65
66
|
validUntil: string;
|
|
66
67
|
isAutoApply: boolean;
|
|
67
|
-
description: string | null;
|
|
68
68
|
category: string;
|
|
69
69
|
createdBy: string | null;
|
|
70
70
|
};
|
|
@@ -78,8 +78,8 @@ export declare function useGetCart(cartId: string, options?: Omit<UseQueryOption
|
|
|
78
78
|
createdAt: string;
|
|
79
79
|
updatedAt: string;
|
|
80
80
|
deletedAt: string;
|
|
81
|
-
brandId: string;
|
|
82
81
|
isActive: boolean;
|
|
82
|
+
brandId: string;
|
|
83
83
|
description: string | null;
|
|
84
84
|
thumbnailUrl: string | null;
|
|
85
85
|
quantityDiscounts: string | number | boolean | {
|
|
@@ -577,19 +577,19 @@ export declare function useGetCart(cartId: string, options?: Omit<UseQueryOption
|
|
|
577
577
|
export declare function useUpdateCart(cartId: string, options?: UseMutationOptions<Awaited<ReturnType<typeof updateCart>>, Error, Parameters<typeof updateCart>[1]>): import("@tanstack/react-query").UseMutationResult<{
|
|
578
578
|
id: string;
|
|
579
579
|
brand: {
|
|
580
|
-
createdAt: string;
|
|
581
|
-
updatedAt: string;
|
|
582
|
-
deletedAt: string;
|
|
583
580
|
id: string;
|
|
584
581
|
name: string;
|
|
585
582
|
slug: string;
|
|
586
|
-
logoUrl: string
|
|
583
|
+
logoUrl: string;
|
|
587
584
|
siteUrl: string;
|
|
588
585
|
domain: string;
|
|
589
|
-
metaPixelId: string
|
|
590
|
-
tiktokPixelId: string
|
|
591
|
-
paystackPublicKey: string
|
|
592
|
-
|
|
586
|
+
metaPixelId: string;
|
|
587
|
+
tiktokPixelId: string;
|
|
588
|
+
paystackPublicKey: string;
|
|
589
|
+
freeShippingThreshold: number;
|
|
590
|
+
createdAt: string;
|
|
591
|
+
updatedAt: string;
|
|
592
|
+
deletedAt: string;
|
|
593
593
|
};
|
|
594
594
|
customerPhone: string;
|
|
595
595
|
customerEmail: string;
|
|
@@ -609,9 +609,10 @@ export declare function useUpdateCart(cartId: string, options?: UseMutationOptio
|
|
|
609
609
|
createdAt: string;
|
|
610
610
|
updatedAt: string;
|
|
611
611
|
deletedAt: string;
|
|
612
|
-
brandId: string | null;
|
|
613
|
-
isActive: boolean;
|
|
614
612
|
code: string;
|
|
613
|
+
isActive: boolean;
|
|
614
|
+
brandId: string | null;
|
|
615
|
+
description: string | null;
|
|
615
616
|
minPurchase: string;
|
|
616
617
|
maxDiscount: string;
|
|
617
618
|
usageLimit: number | null;
|
|
@@ -620,7 +621,6 @@ export declare function useUpdateCart(cartId: string, options?: UseMutationOptio
|
|
|
620
621
|
validFrom: string;
|
|
621
622
|
validUntil: string;
|
|
622
623
|
isAutoApply: boolean;
|
|
623
|
-
description: string | null;
|
|
624
624
|
category: string;
|
|
625
625
|
createdBy: string | null;
|
|
626
626
|
};
|
|
@@ -634,8 +634,8 @@ export declare function useUpdateCart(cartId: string, options?: UseMutationOptio
|
|
|
634
634
|
createdAt: string;
|
|
635
635
|
updatedAt: string;
|
|
636
636
|
deletedAt: string;
|
|
637
|
-
brandId: string;
|
|
638
637
|
isActive: boolean;
|
|
638
|
+
brandId: string;
|
|
639
639
|
description: string | null;
|
|
640
640
|
thumbnailUrl: string | null;
|
|
641
641
|
quantityDiscounts: string | number | boolean | {
|
|
@@ -1141,19 +1141,19 @@ export declare function useUpdateCart(cartId: string, options?: UseMutationOptio
|
|
|
1141
1141
|
export declare function useCreateCart(options?: UseMutationOptions<Awaited<ReturnType<typeof createCart>>, Error, string>): import("@tanstack/react-query").UseMutationResult<{
|
|
1142
1142
|
id: string;
|
|
1143
1143
|
brand: {
|
|
1144
|
-
createdAt: string;
|
|
1145
|
-
updatedAt: string;
|
|
1146
|
-
deletedAt: string;
|
|
1147
1144
|
id: string;
|
|
1148
1145
|
name: string;
|
|
1149
1146
|
slug: string;
|
|
1150
|
-
logoUrl: string
|
|
1147
|
+
logoUrl: string;
|
|
1151
1148
|
siteUrl: string;
|
|
1152
1149
|
domain: string;
|
|
1153
|
-
metaPixelId: string
|
|
1154
|
-
tiktokPixelId: string
|
|
1155
|
-
paystackPublicKey: string
|
|
1156
|
-
|
|
1150
|
+
metaPixelId: string;
|
|
1151
|
+
tiktokPixelId: string;
|
|
1152
|
+
paystackPublicKey: string;
|
|
1153
|
+
freeShippingThreshold: number;
|
|
1154
|
+
createdAt: string;
|
|
1155
|
+
updatedAt: string;
|
|
1156
|
+
deletedAt: string;
|
|
1157
1157
|
};
|
|
1158
1158
|
customerPhone: string;
|
|
1159
1159
|
customerEmail: string;
|
|
@@ -1173,9 +1173,10 @@ export declare function useCreateCart(options?: UseMutationOptions<Awaited<Retur
|
|
|
1173
1173
|
createdAt: string;
|
|
1174
1174
|
updatedAt: string;
|
|
1175
1175
|
deletedAt: string;
|
|
1176
|
-
brandId: string | null;
|
|
1177
|
-
isActive: boolean;
|
|
1178
1176
|
code: string;
|
|
1177
|
+
isActive: boolean;
|
|
1178
|
+
brandId: string | null;
|
|
1179
|
+
description: string | null;
|
|
1179
1180
|
minPurchase: string;
|
|
1180
1181
|
maxDiscount: string;
|
|
1181
1182
|
usageLimit: number | null;
|
|
@@ -1184,7 +1185,6 @@ export declare function useCreateCart(options?: UseMutationOptions<Awaited<Retur
|
|
|
1184
1185
|
validFrom: string;
|
|
1185
1186
|
validUntil: string;
|
|
1186
1187
|
isAutoApply: boolean;
|
|
1187
|
-
description: string | null;
|
|
1188
1188
|
category: string;
|
|
1189
1189
|
createdBy: string | null;
|
|
1190
1190
|
};
|
|
@@ -1198,8 +1198,8 @@ export declare function useCreateCart(options?: UseMutationOptions<Awaited<Retur
|
|
|
1198
1198
|
createdAt: string;
|
|
1199
1199
|
updatedAt: string;
|
|
1200
1200
|
deletedAt: string;
|
|
1201
|
-
brandId: string;
|
|
1202
1201
|
isActive: boolean;
|
|
1202
|
+
brandId: string;
|
|
1203
1203
|
description: string | null;
|
|
1204
1204
|
thumbnailUrl: string | null;
|
|
1205
1205
|
quantityDiscounts: string | number | boolean | {
|
|
@@ -1696,19 +1696,19 @@ export declare function useApplyDiscount(cartId: string, options?: UseMutationOp
|
|
|
1696
1696
|
}>): import("@tanstack/react-query").UseMutationResult<{
|
|
1697
1697
|
id: string;
|
|
1698
1698
|
brand: {
|
|
1699
|
-
createdAt: string;
|
|
1700
|
-
updatedAt: string;
|
|
1701
|
-
deletedAt: string;
|
|
1702
1699
|
id: string;
|
|
1703
1700
|
name: string;
|
|
1704
1701
|
slug: string;
|
|
1705
|
-
logoUrl: string
|
|
1702
|
+
logoUrl: string;
|
|
1706
1703
|
siteUrl: string;
|
|
1707
1704
|
domain: string;
|
|
1708
|
-
metaPixelId: string
|
|
1709
|
-
tiktokPixelId: string
|
|
1710
|
-
paystackPublicKey: string
|
|
1711
|
-
|
|
1705
|
+
metaPixelId: string;
|
|
1706
|
+
tiktokPixelId: string;
|
|
1707
|
+
paystackPublicKey: string;
|
|
1708
|
+
freeShippingThreshold: number;
|
|
1709
|
+
createdAt: string;
|
|
1710
|
+
updatedAt: string;
|
|
1711
|
+
deletedAt: string;
|
|
1712
1712
|
};
|
|
1713
1713
|
customerPhone: string;
|
|
1714
1714
|
customerEmail: string;
|
|
@@ -1728,9 +1728,10 @@ export declare function useApplyDiscount(cartId: string, options?: UseMutationOp
|
|
|
1728
1728
|
createdAt: string;
|
|
1729
1729
|
updatedAt: string;
|
|
1730
1730
|
deletedAt: string;
|
|
1731
|
-
brandId: string | null;
|
|
1732
|
-
isActive: boolean;
|
|
1733
1731
|
code: string;
|
|
1732
|
+
isActive: boolean;
|
|
1733
|
+
brandId: string | null;
|
|
1734
|
+
description: string | null;
|
|
1734
1735
|
minPurchase: string;
|
|
1735
1736
|
maxDiscount: string;
|
|
1736
1737
|
usageLimit: number | null;
|
|
@@ -1739,7 +1740,6 @@ export declare function useApplyDiscount(cartId: string, options?: UseMutationOp
|
|
|
1739
1740
|
validFrom: string;
|
|
1740
1741
|
validUntil: string;
|
|
1741
1742
|
isAutoApply: boolean;
|
|
1742
|
-
description: string | null;
|
|
1743
1743
|
category: string;
|
|
1744
1744
|
createdBy: string | null;
|
|
1745
1745
|
};
|
|
@@ -1753,8 +1753,8 @@ export declare function useApplyDiscount(cartId: string, options?: UseMutationOp
|
|
|
1753
1753
|
createdAt: string;
|
|
1754
1754
|
updatedAt: string;
|
|
1755
1755
|
deletedAt: string;
|
|
1756
|
-
brandId: string;
|
|
1757
1756
|
isActive: boolean;
|
|
1757
|
+
brandId: string;
|
|
1758
1758
|
description: string | null;
|
|
1759
1759
|
thumbnailUrl: string | null;
|
|
1760
1760
|
quantityDiscounts: string | number | boolean | {
|
|
@@ -2256,19 +2256,19 @@ export declare function useApplyDiscount(cartId: string, options?: UseMutationOp
|
|
|
2256
2256
|
export declare function useRemoveDiscount(cartId: string, options?: UseMutationOptions<Awaited<ReturnType<typeof removeDiscount>>, Error, void>): import("@tanstack/react-query").UseMutationResult<{
|
|
2257
2257
|
id: string;
|
|
2258
2258
|
brand: {
|
|
2259
|
-
createdAt: string;
|
|
2260
|
-
updatedAt: string;
|
|
2261
|
-
deletedAt: string;
|
|
2262
2259
|
id: string;
|
|
2263
2260
|
name: string;
|
|
2264
2261
|
slug: string;
|
|
2265
|
-
logoUrl: string
|
|
2262
|
+
logoUrl: string;
|
|
2266
2263
|
siteUrl: string;
|
|
2267
2264
|
domain: string;
|
|
2268
|
-
metaPixelId: string
|
|
2269
|
-
tiktokPixelId: string
|
|
2270
|
-
paystackPublicKey: string
|
|
2271
|
-
|
|
2265
|
+
metaPixelId: string;
|
|
2266
|
+
tiktokPixelId: string;
|
|
2267
|
+
paystackPublicKey: string;
|
|
2268
|
+
freeShippingThreshold: number;
|
|
2269
|
+
createdAt: string;
|
|
2270
|
+
updatedAt: string;
|
|
2271
|
+
deletedAt: string;
|
|
2272
2272
|
};
|
|
2273
2273
|
customerPhone: string;
|
|
2274
2274
|
customerEmail: string;
|
|
@@ -2288,9 +2288,10 @@ export declare function useRemoveDiscount(cartId: string, options?: UseMutationO
|
|
|
2288
2288
|
createdAt: string;
|
|
2289
2289
|
updatedAt: string;
|
|
2290
2290
|
deletedAt: string;
|
|
2291
|
-
brandId: string | null;
|
|
2292
|
-
isActive: boolean;
|
|
2293
2291
|
code: string;
|
|
2292
|
+
isActive: boolean;
|
|
2293
|
+
brandId: string | null;
|
|
2294
|
+
description: string | null;
|
|
2294
2295
|
minPurchase: string;
|
|
2295
2296
|
maxDiscount: string;
|
|
2296
2297
|
usageLimit: number | null;
|
|
@@ -2299,7 +2300,6 @@ export declare function useRemoveDiscount(cartId: string, options?: UseMutationO
|
|
|
2299
2300
|
validFrom: string;
|
|
2300
2301
|
validUntil: string;
|
|
2301
2302
|
isAutoApply: boolean;
|
|
2302
|
-
description: string | null;
|
|
2303
2303
|
category: string;
|
|
2304
2304
|
createdBy: string | null;
|
|
2305
2305
|
};
|
|
@@ -2313,8 +2313,8 @@ export declare function useRemoveDiscount(cartId: string, options?: UseMutationO
|
|
|
2313
2313
|
createdAt: string;
|
|
2314
2314
|
updatedAt: string;
|
|
2315
2315
|
deletedAt: string;
|
|
2316
|
-
brandId: string;
|
|
2317
2316
|
isActive: boolean;
|
|
2317
|
+
brandId: string;
|
|
2318
2318
|
description: string | null;
|
|
2319
2319
|
thumbnailUrl: string | null;
|
|
2320
2320
|
quantityDiscounts: string | number | boolean | {
|
|
@@ -2822,19 +2822,19 @@ export declare function useAddCartItem(cartId: string, options?: UseMutationOpti
|
|
|
2822
2822
|
}>): import("@tanstack/react-query").UseMutationResult<{
|
|
2823
2823
|
id: string;
|
|
2824
2824
|
brand: {
|
|
2825
|
-
createdAt: string;
|
|
2826
|
-
updatedAt: string;
|
|
2827
|
-
deletedAt: string;
|
|
2828
2825
|
id: string;
|
|
2829
2826
|
name: string;
|
|
2830
2827
|
slug: string;
|
|
2831
|
-
logoUrl: string
|
|
2828
|
+
logoUrl: string;
|
|
2832
2829
|
siteUrl: string;
|
|
2833
2830
|
domain: string;
|
|
2834
|
-
metaPixelId: string
|
|
2835
|
-
tiktokPixelId: string
|
|
2836
|
-
paystackPublicKey: string
|
|
2837
|
-
|
|
2831
|
+
metaPixelId: string;
|
|
2832
|
+
tiktokPixelId: string;
|
|
2833
|
+
paystackPublicKey: string;
|
|
2834
|
+
freeShippingThreshold: number;
|
|
2835
|
+
createdAt: string;
|
|
2836
|
+
updatedAt: string;
|
|
2837
|
+
deletedAt: string;
|
|
2838
2838
|
};
|
|
2839
2839
|
customerPhone: string;
|
|
2840
2840
|
customerEmail: string;
|
|
@@ -2854,9 +2854,10 @@ export declare function useAddCartItem(cartId: string, options?: UseMutationOpti
|
|
|
2854
2854
|
createdAt: string;
|
|
2855
2855
|
updatedAt: string;
|
|
2856
2856
|
deletedAt: string;
|
|
2857
|
-
brandId: string | null;
|
|
2858
|
-
isActive: boolean;
|
|
2859
2857
|
code: string;
|
|
2858
|
+
isActive: boolean;
|
|
2859
|
+
brandId: string | null;
|
|
2860
|
+
description: string | null;
|
|
2860
2861
|
minPurchase: string;
|
|
2861
2862
|
maxDiscount: string;
|
|
2862
2863
|
usageLimit: number | null;
|
|
@@ -2865,7 +2866,6 @@ export declare function useAddCartItem(cartId: string, options?: UseMutationOpti
|
|
|
2865
2866
|
validFrom: string;
|
|
2866
2867
|
validUntil: string;
|
|
2867
2868
|
isAutoApply: boolean;
|
|
2868
|
-
description: string | null;
|
|
2869
2869
|
category: string;
|
|
2870
2870
|
createdBy: string | null;
|
|
2871
2871
|
};
|
|
@@ -2879,8 +2879,8 @@ export declare function useAddCartItem(cartId: string, options?: UseMutationOpti
|
|
|
2879
2879
|
createdAt: string;
|
|
2880
2880
|
updatedAt: string;
|
|
2881
2881
|
deletedAt: string;
|
|
2882
|
-
brandId: string;
|
|
2883
2882
|
isActive: boolean;
|
|
2883
|
+
brandId: string;
|
|
2884
2884
|
description: string | null;
|
|
2885
2885
|
thumbnailUrl: string | null;
|
|
2886
2886
|
quantityDiscounts: string | number | boolean | {
|
|
@@ -3391,19 +3391,19 @@ export declare function useUpdateCartItem(cartId: string, options?: UseMutationO
|
|
|
3391
3391
|
}>): import("@tanstack/react-query").UseMutationResult<{
|
|
3392
3392
|
id: string;
|
|
3393
3393
|
brand: {
|
|
3394
|
-
createdAt: string;
|
|
3395
|
-
updatedAt: string;
|
|
3396
|
-
deletedAt: string;
|
|
3397
3394
|
id: string;
|
|
3398
3395
|
name: string;
|
|
3399
3396
|
slug: string;
|
|
3400
|
-
logoUrl: string
|
|
3397
|
+
logoUrl: string;
|
|
3401
3398
|
siteUrl: string;
|
|
3402
3399
|
domain: string;
|
|
3403
|
-
metaPixelId: string
|
|
3404
|
-
tiktokPixelId: string
|
|
3405
|
-
paystackPublicKey: string
|
|
3406
|
-
|
|
3400
|
+
metaPixelId: string;
|
|
3401
|
+
tiktokPixelId: string;
|
|
3402
|
+
paystackPublicKey: string;
|
|
3403
|
+
freeShippingThreshold: number;
|
|
3404
|
+
createdAt: string;
|
|
3405
|
+
updatedAt: string;
|
|
3406
|
+
deletedAt: string;
|
|
3407
3407
|
};
|
|
3408
3408
|
customerPhone: string;
|
|
3409
3409
|
customerEmail: string;
|
|
@@ -3423,9 +3423,10 @@ export declare function useUpdateCartItem(cartId: string, options?: UseMutationO
|
|
|
3423
3423
|
createdAt: string;
|
|
3424
3424
|
updatedAt: string;
|
|
3425
3425
|
deletedAt: string;
|
|
3426
|
-
brandId: string | null;
|
|
3427
|
-
isActive: boolean;
|
|
3428
3426
|
code: string;
|
|
3427
|
+
isActive: boolean;
|
|
3428
|
+
brandId: string | null;
|
|
3429
|
+
description: string | null;
|
|
3429
3430
|
minPurchase: string;
|
|
3430
3431
|
maxDiscount: string;
|
|
3431
3432
|
usageLimit: number | null;
|
|
@@ -3434,7 +3435,6 @@ export declare function useUpdateCartItem(cartId: string, options?: UseMutationO
|
|
|
3434
3435
|
validFrom: string;
|
|
3435
3436
|
validUntil: string;
|
|
3436
3437
|
isAutoApply: boolean;
|
|
3437
|
-
description: string | null;
|
|
3438
3438
|
category: string;
|
|
3439
3439
|
createdBy: string | null;
|
|
3440
3440
|
};
|
|
@@ -3448,8 +3448,8 @@ export declare function useUpdateCartItem(cartId: string, options?: UseMutationO
|
|
|
3448
3448
|
createdAt: string;
|
|
3449
3449
|
updatedAt: string;
|
|
3450
3450
|
deletedAt: string;
|
|
3451
|
-
brandId: string;
|
|
3452
3451
|
isActive: boolean;
|
|
3452
|
+
brandId: string;
|
|
3453
3453
|
description: string | null;
|
|
3454
3454
|
thumbnailUrl: string | null;
|
|
3455
3455
|
quantityDiscounts: string | number | boolean | {
|
|
@@ -3947,19 +3947,19 @@ export declare function useUpdateCartItem(cartId: string, options?: UseMutationO
|
|
|
3947
3947
|
export declare function useRemoveCartItem(cartId: string, options?: UseMutationOptions<Awaited<ReturnType<typeof removeCartItem>>, Error, string>): import("@tanstack/react-query").UseMutationResult<{
|
|
3948
3948
|
id: string;
|
|
3949
3949
|
brand: {
|
|
3950
|
-
createdAt: string;
|
|
3951
|
-
updatedAt: string;
|
|
3952
|
-
deletedAt: string;
|
|
3953
3950
|
id: string;
|
|
3954
3951
|
name: string;
|
|
3955
3952
|
slug: string;
|
|
3956
|
-
logoUrl: string
|
|
3953
|
+
logoUrl: string;
|
|
3957
3954
|
siteUrl: string;
|
|
3958
3955
|
domain: string;
|
|
3959
|
-
metaPixelId: string
|
|
3960
|
-
tiktokPixelId: string
|
|
3961
|
-
paystackPublicKey: string
|
|
3962
|
-
|
|
3956
|
+
metaPixelId: string;
|
|
3957
|
+
tiktokPixelId: string;
|
|
3958
|
+
paystackPublicKey: string;
|
|
3959
|
+
freeShippingThreshold: number;
|
|
3960
|
+
createdAt: string;
|
|
3961
|
+
updatedAt: string;
|
|
3962
|
+
deletedAt: string;
|
|
3963
3963
|
};
|
|
3964
3964
|
customerPhone: string;
|
|
3965
3965
|
customerEmail: string;
|
|
@@ -3979,9 +3979,10 @@ export declare function useRemoveCartItem(cartId: string, options?: UseMutationO
|
|
|
3979
3979
|
createdAt: string;
|
|
3980
3980
|
updatedAt: string;
|
|
3981
3981
|
deletedAt: string;
|
|
3982
|
-
brandId: string | null;
|
|
3983
|
-
isActive: boolean;
|
|
3984
3982
|
code: string;
|
|
3983
|
+
isActive: boolean;
|
|
3984
|
+
brandId: string | null;
|
|
3985
|
+
description: string | null;
|
|
3985
3986
|
minPurchase: string;
|
|
3986
3987
|
maxDiscount: string;
|
|
3987
3988
|
usageLimit: number | null;
|
|
@@ -3990,7 +3991,6 @@ export declare function useRemoveCartItem(cartId: string, options?: UseMutationO
|
|
|
3990
3991
|
validFrom: string;
|
|
3991
3992
|
validUntil: string;
|
|
3992
3993
|
isAutoApply: boolean;
|
|
3993
|
-
description: string | null;
|
|
3994
3994
|
category: string;
|
|
3995
3995
|
createdBy: string | null;
|
|
3996
3996
|
};
|
|
@@ -4004,8 +4004,8 @@ export declare function useRemoveCartItem(cartId: string, options?: UseMutationO
|
|
|
4004
4004
|
createdAt: string;
|
|
4005
4005
|
updatedAt: string;
|
|
4006
4006
|
deletedAt: string;
|
|
4007
|
-
brandId: string;
|
|
4008
4007
|
isActive: boolean;
|
|
4008
|
+
brandId: string;
|
|
4009
4009
|
description: string | null;
|
|
4010
4010
|
thumbnailUrl: string | null;
|
|
4011
4011
|
quantityDiscounts: string | number | boolean | {
|
|
@@ -4517,19 +4517,19 @@ export declare function useCheckoutCart(cartId: string, options?: UseMutationOpt
|
|
|
4517
4517
|
prospectSince: string;
|
|
4518
4518
|
lastRecoveryAttemptAt: string;
|
|
4519
4519
|
brand: {
|
|
4520
|
-
createdAt: string;
|
|
4521
|
-
updatedAt: string;
|
|
4522
|
-
deletedAt: string;
|
|
4523
4520
|
id: string;
|
|
4524
4521
|
name: string;
|
|
4525
4522
|
slug: string;
|
|
4526
|
-
logoUrl: string
|
|
4523
|
+
logoUrl: string;
|
|
4527
4524
|
siteUrl: string;
|
|
4528
4525
|
domain: string;
|
|
4529
|
-
metaPixelId: string
|
|
4530
|
-
tiktokPixelId: string
|
|
4531
|
-
paystackPublicKey: string
|
|
4532
|
-
|
|
4526
|
+
metaPixelId: string;
|
|
4527
|
+
tiktokPixelId: string;
|
|
4528
|
+
paystackPublicKey: string;
|
|
4529
|
+
freeShippingThreshold: number;
|
|
4530
|
+
createdAt: string;
|
|
4531
|
+
updatedAt: string;
|
|
4532
|
+
deletedAt: string;
|
|
4533
4533
|
};
|
|
4534
4534
|
deliveryZone: {
|
|
4535
4535
|
deliveryCost: number;
|
|
@@ -4547,6 +4547,7 @@ export declare function useCheckoutCart(cartId: string, options?: UseMutationOpt
|
|
|
4547
4547
|
};
|
|
4548
4548
|
id: string;
|
|
4549
4549
|
name: string;
|
|
4550
|
+
isActive: boolean;
|
|
4550
4551
|
brandId: string | null;
|
|
4551
4552
|
stateId: string;
|
|
4552
4553
|
allowCOD: boolean;
|
|
@@ -4555,7 +4556,6 @@ export declare function useCheckoutCart(cartId: string, options?: UseMutationOpt
|
|
|
4555
4556
|
estimatedDays: number | null;
|
|
4556
4557
|
noteTitle: string | null;
|
|
4557
4558
|
noteContent: string | null;
|
|
4558
|
-
isActive: boolean;
|
|
4559
4559
|
};
|
|
4560
4560
|
items: {
|
|
4561
4561
|
priceAtPurchase: number;
|
|
@@ -4571,8 +4571,8 @@ export declare function useCheckoutCart(cartId: string, options?: UseMutationOpt
|
|
|
4571
4571
|
id: string;
|
|
4572
4572
|
name: string;
|
|
4573
4573
|
slug: string;
|
|
4574
|
-
brandId: string;
|
|
4575
4574
|
isActive: boolean;
|
|
4575
|
+
brandId: string;
|
|
4576
4576
|
description: string | null;
|
|
4577
4577
|
thumbnailUrl: string | null;
|
|
4578
4578
|
quantityDiscounts: string | number | boolean | {
|
|
@@ -5015,8 +5015,8 @@ export declare function useCheckoutCart(cartId: string, options?: UseMutationOpt
|
|
|
5015
5015
|
id: string;
|
|
5016
5016
|
name: string | null;
|
|
5017
5017
|
isActive: boolean;
|
|
5018
|
-
thumbnailUrl: string | null;
|
|
5019
5018
|
productId: string;
|
|
5019
|
+
thumbnailUrl: string | null;
|
|
5020
5020
|
sku: string;
|
|
5021
5021
|
compareAtPrice: string;
|
|
5022
5022
|
trackInventory: boolean;
|
|
@@ -5028,16 +5028,16 @@ export declare function useCheckoutCart(cartId: string, options?: UseMutationOpt
|
|
|
5028
5028
|
deletedAt: string;
|
|
5029
5029
|
id: string;
|
|
5030
5030
|
name: string;
|
|
5031
|
+
state: string | null;
|
|
5031
5032
|
isActive: boolean;
|
|
5032
5033
|
address: string | null;
|
|
5033
5034
|
city: string | null;
|
|
5034
|
-
state: string | null;
|
|
5035
5035
|
};
|
|
5036
5036
|
id: string;
|
|
5037
|
-
orderId: string;
|
|
5038
5037
|
variantId: string;
|
|
5039
|
-
warehouseId: string | null;
|
|
5040
5038
|
quantity: number;
|
|
5039
|
+
orderId: string;
|
|
5040
|
+
warehouseId: string | null;
|
|
5041
5041
|
}[];
|
|
5042
5042
|
email: string | null;
|
|
5043
5043
|
id: string;
|
|
@@ -5276,6 +5276,7 @@ export declare function useGetCartRecommendations(cartId: string | null | undefi
|
|
|
5276
5276
|
metaPixelId: string;
|
|
5277
5277
|
tiktokPixelId: string;
|
|
5278
5278
|
paystackPublicKey: string;
|
|
5279
|
+
freeShippingThreshold: number;
|
|
5279
5280
|
createdAt: string;
|
|
5280
5281
|
updatedAt: string;
|
|
5281
5282
|
deletedAt: string;
|
|
@@ -5594,8 +5595,8 @@ export declare function useGetCartRecommendations(cartId: string | null | undefi
|
|
|
5594
5595
|
createdAt: string;
|
|
5595
5596
|
updatedAt: string;
|
|
5596
5597
|
deletedAt: string;
|
|
5597
|
-
brandId: string;
|
|
5598
5598
|
isActive: boolean;
|
|
5599
|
+
brandId: string;
|
|
5599
5600
|
discountType: import("@prisma/client").$Enums.DiscountType;
|
|
5600
5601
|
discountValue: string;
|
|
5601
5602
|
startDate: string;
|
|
@@ -5609,6 +5610,6 @@ export declare function useGetCartRecommendations(cartId: string | null | undefi
|
|
|
5609
5610
|
createdAt: string;
|
|
5610
5611
|
updatedAt: string;
|
|
5611
5612
|
deletedAt: string;
|
|
5612
|
-
brandId: string;
|
|
5613
5613
|
isActive: boolean;
|
|
5614
|
+
brandId: string;
|
|
5614
5615
|
}[], Error>;
|