@instockng/api-client 1.0.34 → 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/backend-types.d.ts +1 -1
- package/dist/fetchers/brands.d.ts +1 -0
- package/dist/fetchers/carts.d.ts +185 -152
- package/dist/fetchers/delivery-zones.d.ts +0 -1
- package/dist/fetchers/orders.d.ts +55 -30
- package/dist/hooks/admin/abandoned-carts.d.ts +36 -34
- 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/index.d.ts +1 -0
- package/dist/hooks/admin/index.js +1 -0
- package/dist/hooks/admin/orders.d.ts +79 -78
- package/dist/hooks/admin/products.d.ts +54 -4
- package/dist/hooks/admin/sales.d.ts +46 -0
- package/dist/hooks/admin/sales.js +180 -0
- package/dist/hooks/admin/stats.d.ts +14 -14
- package/dist/hooks/admin/variants.d.ts +13 -6
- package/dist/hooks/admin/variants.js +6 -5
- 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 +185 -152
- package/dist/hooks/public/delivery-zones.d.ts +0 -1
- package/dist/hooks/public/orders.d.ts +55 -30
- package/dist/rpc-client.d.ts +1121 -427
- package/dist/rpc-client.js +1 -0
- package/dist/rpc-types.d.ts +81 -6
- package/dist/utils/query-keys.d.ts +6 -0
- package/dist/utils/query-keys.js +6 -0
- 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;
|
|
@@ -1166,6 +1166,10 @@ export declare function useConfirmOrder(options?: UseMutationOptions<Awaited<Ret
|
|
|
1166
1166
|
* ```
|
|
1167
1167
|
*/
|
|
1168
1168
|
export declare function useGetOrderRecommendations(orderId: string | null | undefined, token: string | null | undefined, limit?: number, options?: Omit<UseQueryOptions<Awaited<ReturnType<typeof fetchOrderRecommendations>>, Error>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<{
|
|
1169
|
+
isOnSale: boolean;
|
|
1170
|
+
saleId: string;
|
|
1171
|
+
saleName: string;
|
|
1172
|
+
saleEndsAt: string;
|
|
1169
1173
|
id: string;
|
|
1170
1174
|
name: string;
|
|
1171
1175
|
slug: string;
|
|
@@ -1326,6 +1330,7 @@ export declare function useGetOrderRecommendations(orderId: string | null | unde
|
|
|
1326
1330
|
metaPixelId: string;
|
|
1327
1331
|
tiktokPixelId: string;
|
|
1328
1332
|
paystackPublicKey: string;
|
|
1333
|
+
freeShippingThreshold: number;
|
|
1329
1334
|
createdAt: string;
|
|
1330
1335
|
updatedAt: string;
|
|
1331
1336
|
deletedAt: string;
|
|
@@ -1336,10 +1341,11 @@ export declare function useGetOrderRecommendations(orderId: string | null | unde
|
|
|
1336
1341
|
price: number;
|
|
1337
1342
|
compareAtPrice: number;
|
|
1338
1343
|
deletedAt: string;
|
|
1344
|
+
thumbnailUrl: string;
|
|
1345
|
+
originalPrice: number;
|
|
1339
1346
|
id: string;
|
|
1340
1347
|
name: string | null;
|
|
1341
1348
|
isActive: boolean;
|
|
1342
|
-
thumbnailUrl: string | null;
|
|
1343
1349
|
productId: string;
|
|
1344
1350
|
sku: string;
|
|
1345
1351
|
trackInventory: boolean;
|
|
@@ -1636,9 +1642,28 @@ export declare function useGetOrderRecommendations(orderId: string | null | unde
|
|
|
1636
1642
|
flat?: boolean;
|
|
1637
1643
|
};
|
|
1638
1644
|
};
|
|
1645
|
+
sales: {
|
|
1646
|
+
sale: {
|
|
1647
|
+
id: string;
|
|
1648
|
+
name: string;
|
|
1649
|
+
createdAt: string;
|
|
1650
|
+
updatedAt: string;
|
|
1651
|
+
deletedAt: string;
|
|
1652
|
+
isActive: boolean;
|
|
1653
|
+
brandId: string;
|
|
1654
|
+
discountType: import("@prisma/client").$Enums.DiscountType;
|
|
1655
|
+
discountValue: string;
|
|
1656
|
+
startDate: string;
|
|
1657
|
+
endDate: string;
|
|
1658
|
+
};
|
|
1659
|
+
id: string;
|
|
1660
|
+
createdAt: string;
|
|
1661
|
+
productId: string;
|
|
1662
|
+
saleId: string;
|
|
1663
|
+
}[];
|
|
1639
1664
|
createdAt: string;
|
|
1640
1665
|
updatedAt: string;
|
|
1641
1666
|
deletedAt: string;
|
|
1642
|
-
brandId: string;
|
|
1643
1667
|
isActive: boolean;
|
|
1668
|
+
brandId: string;
|
|
1644
1669
|
}[], Error>;
|