@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
|
@@ -32,19 +32,19 @@ export declare function useGetOrder(orderId: string, token: string, options?: Om
|
|
|
32
32
|
prospectSince: string;
|
|
33
33
|
lastRecoveryAttemptAt: string;
|
|
34
34
|
brand: {
|
|
35
|
-
createdAt: string;
|
|
36
|
-
updatedAt: string;
|
|
37
|
-
deletedAt: string;
|
|
38
35
|
id: string;
|
|
39
36
|
name: string;
|
|
40
37
|
slug: string;
|
|
41
|
-
logoUrl: string
|
|
38
|
+
logoUrl: string;
|
|
42
39
|
siteUrl: string;
|
|
43
40
|
domain: string;
|
|
44
|
-
metaPixelId: string
|
|
45
|
-
tiktokPixelId: string
|
|
46
|
-
paystackPublicKey: string
|
|
47
|
-
|
|
41
|
+
metaPixelId: string;
|
|
42
|
+
tiktokPixelId: string;
|
|
43
|
+
paystackPublicKey: string;
|
|
44
|
+
freeShippingThreshold: number;
|
|
45
|
+
createdAt: string;
|
|
46
|
+
updatedAt: string;
|
|
47
|
+
deletedAt: string;
|
|
48
48
|
};
|
|
49
49
|
deliveryZone: {
|
|
50
50
|
deliveryCost: number;
|
|
@@ -62,6 +62,7 @@ export declare function useGetOrder(orderId: string, token: string, options?: Om
|
|
|
62
62
|
};
|
|
63
63
|
id: string;
|
|
64
64
|
name: string;
|
|
65
|
+
isActive: boolean;
|
|
65
66
|
brandId: string | null;
|
|
66
67
|
stateId: string;
|
|
67
68
|
allowCOD: boolean;
|
|
@@ -70,7 +71,6 @@ export declare function useGetOrder(orderId: string, token: string, options?: Om
|
|
|
70
71
|
estimatedDays: number | null;
|
|
71
72
|
noteTitle: string | null;
|
|
72
73
|
noteContent: string | null;
|
|
73
|
-
isActive: boolean;
|
|
74
74
|
};
|
|
75
75
|
items: {
|
|
76
76
|
priceAtPurchase: number;
|
|
@@ -86,8 +86,8 @@ export declare function useGetOrder(orderId: string, token: string, options?: Om
|
|
|
86
86
|
id: string;
|
|
87
87
|
name: string;
|
|
88
88
|
slug: string;
|
|
89
|
-
brandId: string;
|
|
90
89
|
isActive: boolean;
|
|
90
|
+
brandId: string;
|
|
91
91
|
description: string | null;
|
|
92
92
|
thumbnailUrl: string | null;
|
|
93
93
|
quantityDiscounts: string | number | boolean | {
|
|
@@ -530,8 +530,8 @@ export declare function useGetOrder(orderId: string, token: string, options?: Om
|
|
|
530
530
|
id: string;
|
|
531
531
|
name: string | null;
|
|
532
532
|
isActive: boolean;
|
|
533
|
-
thumbnailUrl: string | null;
|
|
534
533
|
productId: string;
|
|
534
|
+
thumbnailUrl: string | null;
|
|
535
535
|
sku: string;
|
|
536
536
|
compareAtPrice: string;
|
|
537
537
|
trackInventory: boolean;
|
|
@@ -543,16 +543,16 @@ export declare function useGetOrder(orderId: string, token: string, options?: Om
|
|
|
543
543
|
deletedAt: string;
|
|
544
544
|
id: string;
|
|
545
545
|
name: string;
|
|
546
|
+
state: string | null;
|
|
546
547
|
isActive: boolean;
|
|
547
548
|
address: string | null;
|
|
548
549
|
city: string | null;
|
|
549
|
-
state: string | null;
|
|
550
550
|
};
|
|
551
551
|
id: string;
|
|
552
|
-
orderId: string;
|
|
553
552
|
variantId: string;
|
|
554
|
-
warehouseId: string | null;
|
|
555
553
|
quantity: number;
|
|
554
|
+
orderId: string;
|
|
555
|
+
warehouseId: string | null;
|
|
556
556
|
}[];
|
|
557
557
|
email: string | null;
|
|
558
558
|
id: string;
|
|
@@ -604,19 +604,19 @@ export declare function useConfirmOrder(options?: UseMutationOptions<Awaited<Ret
|
|
|
604
604
|
prospectSince: string;
|
|
605
605
|
lastRecoveryAttemptAt: string;
|
|
606
606
|
brand: {
|
|
607
|
-
createdAt: string;
|
|
608
|
-
updatedAt: string;
|
|
609
|
-
deletedAt: string;
|
|
610
607
|
id: string;
|
|
611
608
|
name: string;
|
|
612
609
|
slug: string;
|
|
613
|
-
logoUrl: string
|
|
610
|
+
logoUrl: string;
|
|
614
611
|
siteUrl: string;
|
|
615
612
|
domain: string;
|
|
616
|
-
metaPixelId: string
|
|
617
|
-
tiktokPixelId: string
|
|
618
|
-
paystackPublicKey: string
|
|
619
|
-
|
|
613
|
+
metaPixelId: string;
|
|
614
|
+
tiktokPixelId: string;
|
|
615
|
+
paystackPublicKey: string;
|
|
616
|
+
freeShippingThreshold: number;
|
|
617
|
+
createdAt: string;
|
|
618
|
+
updatedAt: string;
|
|
619
|
+
deletedAt: string;
|
|
620
620
|
};
|
|
621
621
|
deliveryZone: {
|
|
622
622
|
deliveryCost: number;
|
|
@@ -634,6 +634,7 @@ export declare function useConfirmOrder(options?: UseMutationOptions<Awaited<Ret
|
|
|
634
634
|
};
|
|
635
635
|
id: string;
|
|
636
636
|
name: string;
|
|
637
|
+
isActive: boolean;
|
|
637
638
|
brandId: string | null;
|
|
638
639
|
stateId: string;
|
|
639
640
|
allowCOD: boolean;
|
|
@@ -642,7 +643,6 @@ export declare function useConfirmOrder(options?: UseMutationOptions<Awaited<Ret
|
|
|
642
643
|
estimatedDays: number | null;
|
|
643
644
|
noteTitle: string | null;
|
|
644
645
|
noteContent: string | null;
|
|
645
|
-
isActive: boolean;
|
|
646
646
|
};
|
|
647
647
|
items: {
|
|
648
648
|
priceAtPurchase: number;
|
|
@@ -658,8 +658,8 @@ export declare function useConfirmOrder(options?: UseMutationOptions<Awaited<Ret
|
|
|
658
658
|
id: string;
|
|
659
659
|
name: string;
|
|
660
660
|
slug: string;
|
|
661
|
-
brandId: string;
|
|
662
661
|
isActive: boolean;
|
|
662
|
+
brandId: string;
|
|
663
663
|
description: string | null;
|
|
664
664
|
thumbnailUrl: string | null;
|
|
665
665
|
quantityDiscounts: string | number | boolean | {
|
|
@@ -1102,8 +1102,8 @@ export declare function useConfirmOrder(options?: UseMutationOptions<Awaited<Ret
|
|
|
1102
1102
|
id: string;
|
|
1103
1103
|
name: string | null;
|
|
1104
1104
|
isActive: boolean;
|
|
1105
|
-
thumbnailUrl: string | null;
|
|
1106
1105
|
productId: string;
|
|
1106
|
+
thumbnailUrl: string | null;
|
|
1107
1107
|
sku: string;
|
|
1108
1108
|
compareAtPrice: string;
|
|
1109
1109
|
trackInventory: boolean;
|
|
@@ -1115,16 +1115,16 @@ export declare function useConfirmOrder(options?: UseMutationOptions<Awaited<Ret
|
|
|
1115
1115
|
deletedAt: string;
|
|
1116
1116
|
id: string;
|
|
1117
1117
|
name: string;
|
|
1118
|
+
state: string | null;
|
|
1118
1119
|
isActive: boolean;
|
|
1119
1120
|
address: string | null;
|
|
1120
1121
|
city: string | null;
|
|
1121
|
-
state: string | null;
|
|
1122
1122
|
};
|
|
1123
1123
|
id: string;
|
|
1124
|
-
orderId: string;
|
|
1125
1124
|
variantId: string;
|
|
1126
|
-
warehouseId: string | null;
|
|
1127
1125
|
quantity: number;
|
|
1126
|
+
orderId: string;
|
|
1127
|
+
warehouseId: string | null;
|
|
1128
1128
|
}[];
|
|
1129
1129
|
email: string | null;
|
|
1130
1130
|
id: string;
|
|
@@ -1330,6 +1330,7 @@ export declare function useGetOrderRecommendations(orderId: string | null | unde
|
|
|
1330
1330
|
metaPixelId: string;
|
|
1331
1331
|
tiktokPixelId: string;
|
|
1332
1332
|
paystackPublicKey: string;
|
|
1333
|
+
freeShippingThreshold: number;
|
|
1333
1334
|
createdAt: string;
|
|
1334
1335
|
updatedAt: string;
|
|
1335
1336
|
deletedAt: string;
|
|
@@ -1648,8 +1649,8 @@ export declare function useGetOrderRecommendations(orderId: string | null | unde
|
|
|
1648
1649
|
createdAt: string;
|
|
1649
1650
|
updatedAt: string;
|
|
1650
1651
|
deletedAt: string;
|
|
1651
|
-
brandId: string;
|
|
1652
1652
|
isActive: boolean;
|
|
1653
|
+
brandId: string;
|
|
1653
1654
|
discountType: import("@prisma/client").$Enums.DiscountType;
|
|
1654
1655
|
discountValue: string;
|
|
1655
1656
|
startDate: string;
|
|
@@ -1663,6 +1664,6 @@ export declare function useGetOrderRecommendations(orderId: string | null | unde
|
|
|
1663
1664
|
createdAt: string;
|
|
1664
1665
|
updatedAt: string;
|
|
1665
1666
|
deletedAt: string;
|
|
1666
|
-
brandId: string;
|
|
1667
1667
|
isActive: boolean;
|
|
1668
|
+
brandId: string;
|
|
1668
1669
|
}[], Error>;
|