@instockng/api-client 1.0.35 → 1.0.37
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/brands.js +1 -1
- package/dist/fetchers/carts.d.ts +132 -112
- package/dist/fetchers/carts.js +1 -1
- package/dist/fetchers/delivery-zones.d.ts +0 -1
- package/dist/fetchers/delivery-zones.js +1 -1
- package/dist/fetchers/orders.d.ts +94 -30
- package/dist/fetchers/orders.js +38 -1
- package/dist/fetchers/products.js +1 -1
- 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 +33 -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/dispatch-riders.d.ts +59 -0
- package/dist/hooks/admin/dispatch-riders.js +92 -0
- package/dist/hooks/admin/index.d.ts +1 -0
- package/dist/hooks/admin/index.js +1 -0
- package/dist/hooks/admin/orders.d.ts +215 -78
- package/dist/hooks/admin/orders.js +70 -0
- package/dist/hooks/admin/products.d.ts +6 -4
- package/dist/hooks/admin/stats.d.ts +40 -14
- package/dist/hooks/admin/stats.js +20 -0
- 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 +132 -112
- package/dist/hooks/public/delivery-zones.d.ts +0 -1
- package/dist/hooks/public/orders.d.ts +98 -31
- package/dist/hooks/public/orders.js +23 -1
- package/dist/provider.js +1 -1
- package/dist/rpc-client.d.ts +6684 -3768
- package/dist/rpc-client.js +1 -0
- package/dist/rpc-types.d.ts +9 -6
- package/dist/utils/query-keys.d.ts +5 -0
- package/dist/utils/query-keys.js +5 -0
- package/package.json +1 -1
|
@@ -32,25 +32,33 @@ export declare function useListOrders(filters?: {
|
|
|
32
32
|
deliveryCharge: number;
|
|
33
33
|
totalPrice: number;
|
|
34
34
|
discountAmount: number;
|
|
35
|
+
amountPaid: number;
|
|
36
|
+
flutterwaveAccountBank: string;
|
|
37
|
+
flutterwaveAccountNumber: string;
|
|
38
|
+
flutterwaveAccountExpiry: string;
|
|
35
39
|
createdAt: string;
|
|
36
40
|
updatedAt: string;
|
|
37
41
|
deletedAt: string;
|
|
38
42
|
prospectSince: string;
|
|
39
43
|
lastRecoveryAttemptAt: string;
|
|
44
|
+
shippedAt: string;
|
|
45
|
+
deliveryConfirmationSentAt: string;
|
|
46
|
+
deliveryConfirmedAt: string;
|
|
47
|
+
deliveryConfirmationAttempts: number;
|
|
40
48
|
brand: {
|
|
41
|
-
createdAt: string;
|
|
42
|
-
updatedAt: string;
|
|
43
|
-
deletedAt: string;
|
|
44
49
|
id: string;
|
|
45
50
|
name: string;
|
|
46
51
|
slug: string;
|
|
47
|
-
logoUrl: string
|
|
52
|
+
logoUrl: string;
|
|
48
53
|
siteUrl: string;
|
|
49
54
|
domain: string;
|
|
50
|
-
metaPixelId: string
|
|
51
|
-
tiktokPixelId: string
|
|
52
|
-
paystackPublicKey: string
|
|
53
|
-
|
|
55
|
+
metaPixelId: string;
|
|
56
|
+
tiktokPixelId: string;
|
|
57
|
+
paystackPublicKey: string;
|
|
58
|
+
freeShippingThreshold: number;
|
|
59
|
+
createdAt: string;
|
|
60
|
+
updatedAt: string;
|
|
61
|
+
deletedAt: string;
|
|
54
62
|
};
|
|
55
63
|
deliveryZone: {
|
|
56
64
|
deliveryCost: number;
|
|
@@ -68,6 +76,7 @@ export declare function useListOrders(filters?: {
|
|
|
68
76
|
};
|
|
69
77
|
id: string;
|
|
70
78
|
name: string;
|
|
79
|
+
isActive: boolean;
|
|
71
80
|
brandId: string | null;
|
|
72
81
|
stateId: string;
|
|
73
82
|
allowCOD: boolean;
|
|
@@ -76,7 +85,6 @@ export declare function useListOrders(filters?: {
|
|
|
76
85
|
estimatedDays: number | null;
|
|
77
86
|
noteTitle: string | null;
|
|
78
87
|
noteContent: string | null;
|
|
79
|
-
isActive: boolean;
|
|
80
88
|
};
|
|
81
89
|
items: {
|
|
82
90
|
priceAtPurchase: number;
|
|
@@ -92,8 +100,8 @@ export declare function useListOrders(filters?: {
|
|
|
92
100
|
id: string;
|
|
93
101
|
name: string;
|
|
94
102
|
slug: string;
|
|
95
|
-
brandId: string;
|
|
96
103
|
isActive: boolean;
|
|
104
|
+
brandId: string;
|
|
97
105
|
description: string | null;
|
|
98
106
|
thumbnailUrl: string | null;
|
|
99
107
|
quantityDiscounts: string | number | boolean | {
|
|
@@ -536,8 +544,8 @@ export declare function useListOrders(filters?: {
|
|
|
536
544
|
id: string;
|
|
537
545
|
name: string | null;
|
|
538
546
|
isActive: boolean;
|
|
539
|
-
thumbnailUrl: string | null;
|
|
540
547
|
productId: string;
|
|
548
|
+
thumbnailUrl: string | null;
|
|
541
549
|
sku: string;
|
|
542
550
|
compareAtPrice: string;
|
|
543
551
|
trackInventory: boolean;
|
|
@@ -549,16 +557,16 @@ export declare function useListOrders(filters?: {
|
|
|
549
557
|
deletedAt: string;
|
|
550
558
|
id: string;
|
|
551
559
|
name: string;
|
|
560
|
+
state: string | null;
|
|
552
561
|
isActive: boolean;
|
|
553
562
|
address: string | null;
|
|
554
563
|
city: string | null;
|
|
555
|
-
state: string | null;
|
|
556
564
|
};
|
|
557
565
|
id: string;
|
|
558
|
-
orderId: string;
|
|
559
566
|
variantId: string;
|
|
560
|
-
warehouseId: string | null;
|
|
561
567
|
quantity: number;
|
|
568
|
+
orderId: string;
|
|
569
|
+
warehouseId: string | null;
|
|
562
570
|
}[];
|
|
563
571
|
email: string | null;
|
|
564
572
|
id: string;
|
|
@@ -579,8 +587,19 @@ export declare function useListOrders(filters?: {
|
|
|
579
587
|
paystackReference: string | null;
|
|
580
588
|
status: import("@prisma/client").$Enums.OrderStatus;
|
|
581
589
|
cancellationReason: string | null;
|
|
590
|
+
shippingMethod: string | null;
|
|
591
|
+
dispatchRiderId: string | null;
|
|
592
|
+
fezTrackingNumber: string | null;
|
|
593
|
+
flutterwaveOrderRef: string | null;
|
|
594
|
+
flutterwaveCustomerId: string | null;
|
|
582
595
|
prospectReason: import("@prisma/client").$Enums.ProspectReason | null;
|
|
583
596
|
userActionToken: string;
|
|
597
|
+
labelPrintedAt: string;
|
|
598
|
+
dispatchRider?: {
|
|
599
|
+
id: string;
|
|
600
|
+
name: string;
|
|
601
|
+
phone: string;
|
|
602
|
+
};
|
|
584
603
|
}[];
|
|
585
604
|
pagination: {
|
|
586
605
|
page: number;
|
|
@@ -605,25 +624,33 @@ export declare function useGetOrder(orderId: string, options?: Omit<UseQueryOpti
|
|
|
605
624
|
deliveryCharge: number;
|
|
606
625
|
totalPrice: number;
|
|
607
626
|
discountAmount: number;
|
|
627
|
+
amountPaid: number;
|
|
628
|
+
flutterwaveAccountBank: string;
|
|
629
|
+
flutterwaveAccountNumber: string;
|
|
630
|
+
flutterwaveAccountExpiry: string;
|
|
608
631
|
createdAt: string;
|
|
609
632
|
updatedAt: string;
|
|
610
633
|
deletedAt: string;
|
|
611
634
|
prospectSince: string;
|
|
612
635
|
lastRecoveryAttemptAt: string;
|
|
636
|
+
shippedAt: string;
|
|
637
|
+
deliveryConfirmationSentAt: string;
|
|
638
|
+
deliveryConfirmedAt: string;
|
|
639
|
+
deliveryConfirmationAttempts: number;
|
|
613
640
|
brand: {
|
|
614
|
-
createdAt: string;
|
|
615
|
-
updatedAt: string;
|
|
616
|
-
deletedAt: string;
|
|
617
641
|
id: string;
|
|
618
642
|
name: string;
|
|
619
643
|
slug: string;
|
|
620
|
-
logoUrl: string
|
|
644
|
+
logoUrl: string;
|
|
621
645
|
siteUrl: string;
|
|
622
646
|
domain: string;
|
|
623
|
-
metaPixelId: string
|
|
624
|
-
tiktokPixelId: string
|
|
625
|
-
paystackPublicKey: string
|
|
626
|
-
|
|
647
|
+
metaPixelId: string;
|
|
648
|
+
tiktokPixelId: string;
|
|
649
|
+
paystackPublicKey: string;
|
|
650
|
+
freeShippingThreshold: number;
|
|
651
|
+
createdAt: string;
|
|
652
|
+
updatedAt: string;
|
|
653
|
+
deletedAt: string;
|
|
627
654
|
};
|
|
628
655
|
deliveryZone: {
|
|
629
656
|
deliveryCost: number;
|
|
@@ -641,6 +668,7 @@ export declare function useGetOrder(orderId: string, options?: Omit<UseQueryOpti
|
|
|
641
668
|
};
|
|
642
669
|
id: string;
|
|
643
670
|
name: string;
|
|
671
|
+
isActive: boolean;
|
|
644
672
|
brandId: string | null;
|
|
645
673
|
stateId: string;
|
|
646
674
|
allowCOD: boolean;
|
|
@@ -649,7 +677,6 @@ export declare function useGetOrder(orderId: string, options?: Omit<UseQueryOpti
|
|
|
649
677
|
estimatedDays: number | null;
|
|
650
678
|
noteTitle: string | null;
|
|
651
679
|
noteContent: string | null;
|
|
652
|
-
isActive: boolean;
|
|
653
680
|
};
|
|
654
681
|
items: {
|
|
655
682
|
priceAtPurchase: number;
|
|
@@ -665,8 +692,8 @@ export declare function useGetOrder(orderId: string, options?: Omit<UseQueryOpti
|
|
|
665
692
|
id: string;
|
|
666
693
|
name: string;
|
|
667
694
|
slug: string;
|
|
668
|
-
brandId: string;
|
|
669
695
|
isActive: boolean;
|
|
696
|
+
brandId: string;
|
|
670
697
|
description: string | null;
|
|
671
698
|
thumbnailUrl: string | null;
|
|
672
699
|
quantityDiscounts: string | number | boolean | {
|
|
@@ -1109,8 +1136,8 @@ export declare function useGetOrder(orderId: string, options?: Omit<UseQueryOpti
|
|
|
1109
1136
|
id: string;
|
|
1110
1137
|
name: string | null;
|
|
1111
1138
|
isActive: boolean;
|
|
1112
|
-
thumbnailUrl: string | null;
|
|
1113
1139
|
productId: string;
|
|
1140
|
+
thumbnailUrl: string | null;
|
|
1114
1141
|
sku: string;
|
|
1115
1142
|
compareAtPrice: string;
|
|
1116
1143
|
trackInventory: boolean;
|
|
@@ -1122,16 +1149,16 @@ export declare function useGetOrder(orderId: string, options?: Omit<UseQueryOpti
|
|
|
1122
1149
|
deletedAt: string;
|
|
1123
1150
|
id: string;
|
|
1124
1151
|
name: string;
|
|
1152
|
+
state: string | null;
|
|
1125
1153
|
isActive: boolean;
|
|
1126
1154
|
address: string | null;
|
|
1127
1155
|
city: string | null;
|
|
1128
|
-
state: string | null;
|
|
1129
1156
|
};
|
|
1130
1157
|
id: string;
|
|
1131
|
-
orderId: string;
|
|
1132
1158
|
variantId: string;
|
|
1133
|
-
warehouseId: string | null;
|
|
1134
1159
|
quantity: number;
|
|
1160
|
+
orderId: string;
|
|
1161
|
+
warehouseId: string | null;
|
|
1135
1162
|
}[];
|
|
1136
1163
|
email: string | null;
|
|
1137
1164
|
id: string;
|
|
@@ -1152,8 +1179,19 @@ export declare function useGetOrder(orderId: string, options?: Omit<UseQueryOpti
|
|
|
1152
1179
|
paystackReference: string | null;
|
|
1153
1180
|
status: import("@prisma/client").$Enums.OrderStatus;
|
|
1154
1181
|
cancellationReason: string | null;
|
|
1182
|
+
shippingMethod: string | null;
|
|
1183
|
+
dispatchRiderId: string | null;
|
|
1184
|
+
fezTrackingNumber: string | null;
|
|
1185
|
+
flutterwaveOrderRef: string | null;
|
|
1186
|
+
flutterwaveCustomerId: string | null;
|
|
1155
1187
|
prospectReason: import("@prisma/client").$Enums.ProspectReason | null;
|
|
1156
1188
|
userActionToken: string;
|
|
1189
|
+
labelPrintedAt: string;
|
|
1190
|
+
dispatchRider?: {
|
|
1191
|
+
id: string;
|
|
1192
|
+
name: string;
|
|
1193
|
+
phone: string;
|
|
1194
|
+
};
|
|
1157
1195
|
}, Error>;
|
|
1158
1196
|
/**
|
|
1159
1197
|
* Hook to create a new order using admin RPC
|
|
@@ -1175,25 +1213,33 @@ export declare function useCreateOrder(options?: UseMutationOptions<Awaited<Retu
|
|
|
1175
1213
|
deliveryCharge: number;
|
|
1176
1214
|
totalPrice: number;
|
|
1177
1215
|
discountAmount: number;
|
|
1216
|
+
amountPaid: number;
|
|
1217
|
+
flutterwaveAccountBank: string;
|
|
1218
|
+
flutterwaveAccountNumber: string;
|
|
1219
|
+
flutterwaveAccountExpiry: string;
|
|
1178
1220
|
createdAt: string;
|
|
1179
1221
|
updatedAt: string;
|
|
1180
1222
|
deletedAt: string;
|
|
1181
1223
|
prospectSince: string;
|
|
1182
1224
|
lastRecoveryAttemptAt: string;
|
|
1225
|
+
shippedAt: string;
|
|
1226
|
+
deliveryConfirmationSentAt: string;
|
|
1227
|
+
deliveryConfirmedAt: string;
|
|
1228
|
+
deliveryConfirmationAttempts: number;
|
|
1183
1229
|
brand: {
|
|
1184
|
-
createdAt: string;
|
|
1185
|
-
updatedAt: string;
|
|
1186
|
-
deletedAt: string;
|
|
1187
1230
|
id: string;
|
|
1188
1231
|
name: string;
|
|
1189
1232
|
slug: string;
|
|
1190
|
-
logoUrl: string
|
|
1233
|
+
logoUrl: string;
|
|
1191
1234
|
siteUrl: string;
|
|
1192
1235
|
domain: string;
|
|
1193
|
-
metaPixelId: string
|
|
1194
|
-
tiktokPixelId: string
|
|
1195
|
-
paystackPublicKey: string
|
|
1196
|
-
|
|
1236
|
+
metaPixelId: string;
|
|
1237
|
+
tiktokPixelId: string;
|
|
1238
|
+
paystackPublicKey: string;
|
|
1239
|
+
freeShippingThreshold: number;
|
|
1240
|
+
createdAt: string;
|
|
1241
|
+
updatedAt: string;
|
|
1242
|
+
deletedAt: string;
|
|
1197
1243
|
};
|
|
1198
1244
|
deliveryZone: {
|
|
1199
1245
|
deliveryCost: number;
|
|
@@ -1211,6 +1257,7 @@ export declare function useCreateOrder(options?: UseMutationOptions<Awaited<Retu
|
|
|
1211
1257
|
};
|
|
1212
1258
|
id: string;
|
|
1213
1259
|
name: string;
|
|
1260
|
+
isActive: boolean;
|
|
1214
1261
|
brandId: string | null;
|
|
1215
1262
|
stateId: string;
|
|
1216
1263
|
allowCOD: boolean;
|
|
@@ -1219,7 +1266,6 @@ export declare function useCreateOrder(options?: UseMutationOptions<Awaited<Retu
|
|
|
1219
1266
|
estimatedDays: number | null;
|
|
1220
1267
|
noteTitle: string | null;
|
|
1221
1268
|
noteContent: string | null;
|
|
1222
|
-
isActive: boolean;
|
|
1223
1269
|
};
|
|
1224
1270
|
items: {
|
|
1225
1271
|
priceAtPurchase: number;
|
|
@@ -1235,8 +1281,8 @@ export declare function useCreateOrder(options?: UseMutationOptions<Awaited<Retu
|
|
|
1235
1281
|
id: string;
|
|
1236
1282
|
name: string;
|
|
1237
1283
|
slug: string;
|
|
1238
|
-
brandId: string;
|
|
1239
1284
|
isActive: boolean;
|
|
1285
|
+
brandId: string;
|
|
1240
1286
|
description: string | null;
|
|
1241
1287
|
thumbnailUrl: string | null;
|
|
1242
1288
|
quantityDiscounts: string | number | boolean | {
|
|
@@ -1679,8 +1725,8 @@ export declare function useCreateOrder(options?: UseMutationOptions<Awaited<Retu
|
|
|
1679
1725
|
id: string;
|
|
1680
1726
|
name: string | null;
|
|
1681
1727
|
isActive: boolean;
|
|
1682
|
-
thumbnailUrl: string | null;
|
|
1683
1728
|
productId: string;
|
|
1729
|
+
thumbnailUrl: string | null;
|
|
1684
1730
|
sku: string;
|
|
1685
1731
|
compareAtPrice: string;
|
|
1686
1732
|
trackInventory: boolean;
|
|
@@ -1692,16 +1738,16 @@ export declare function useCreateOrder(options?: UseMutationOptions<Awaited<Retu
|
|
|
1692
1738
|
deletedAt: string;
|
|
1693
1739
|
id: string;
|
|
1694
1740
|
name: string;
|
|
1741
|
+
state: string | null;
|
|
1695
1742
|
isActive: boolean;
|
|
1696
1743
|
address: string | null;
|
|
1697
1744
|
city: string | null;
|
|
1698
|
-
state: string | null;
|
|
1699
1745
|
};
|
|
1700
1746
|
id: string;
|
|
1701
|
-
orderId: string;
|
|
1702
1747
|
variantId: string;
|
|
1703
|
-
warehouseId: string | null;
|
|
1704
1748
|
quantity: number;
|
|
1749
|
+
orderId: string;
|
|
1750
|
+
warehouseId: string | null;
|
|
1705
1751
|
}[];
|
|
1706
1752
|
email: string | null;
|
|
1707
1753
|
id: string;
|
|
@@ -1722,8 +1768,19 @@ export declare function useCreateOrder(options?: UseMutationOptions<Awaited<Retu
|
|
|
1722
1768
|
paystackReference: string | null;
|
|
1723
1769
|
status: import("@prisma/client").$Enums.OrderStatus;
|
|
1724
1770
|
cancellationReason: string | null;
|
|
1771
|
+
shippingMethod: string | null;
|
|
1772
|
+
dispatchRiderId: string | null;
|
|
1773
|
+
fezTrackingNumber: string | null;
|
|
1774
|
+
flutterwaveOrderRef: string | null;
|
|
1775
|
+
flutterwaveCustomerId: string | null;
|
|
1725
1776
|
prospectReason: import("@prisma/client").$Enums.ProspectReason | null;
|
|
1726
1777
|
userActionToken: string;
|
|
1778
|
+
labelPrintedAt: string;
|
|
1779
|
+
dispatchRider?: {
|
|
1780
|
+
id: string;
|
|
1781
|
+
name: string;
|
|
1782
|
+
phone: string;
|
|
1783
|
+
};
|
|
1727
1784
|
} | {
|
|
1728
1785
|
error: {
|
|
1729
1786
|
code: string;
|
|
@@ -1746,25 +1803,33 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
1746
1803
|
deliveryCharge: number;
|
|
1747
1804
|
totalPrice: number;
|
|
1748
1805
|
discountAmount: number;
|
|
1806
|
+
amountPaid: number;
|
|
1807
|
+
flutterwaveAccountBank: string;
|
|
1808
|
+
flutterwaveAccountNumber: string;
|
|
1809
|
+
flutterwaveAccountExpiry: string;
|
|
1749
1810
|
createdAt: string;
|
|
1750
1811
|
updatedAt: string;
|
|
1751
1812
|
deletedAt: string;
|
|
1752
1813
|
prospectSince: string;
|
|
1753
1814
|
lastRecoveryAttemptAt: string;
|
|
1815
|
+
shippedAt: string;
|
|
1816
|
+
deliveryConfirmationSentAt: string;
|
|
1817
|
+
deliveryConfirmedAt: string;
|
|
1818
|
+
deliveryConfirmationAttempts: number;
|
|
1754
1819
|
brand: {
|
|
1755
|
-
createdAt: string;
|
|
1756
|
-
updatedAt: string;
|
|
1757
|
-
deletedAt: string;
|
|
1758
1820
|
id: string;
|
|
1759
1821
|
name: string;
|
|
1760
1822
|
slug: string;
|
|
1761
|
-
logoUrl: string
|
|
1823
|
+
logoUrl: string;
|
|
1762
1824
|
siteUrl: string;
|
|
1763
1825
|
domain: string;
|
|
1764
|
-
metaPixelId: string
|
|
1765
|
-
tiktokPixelId: string
|
|
1766
|
-
paystackPublicKey: string
|
|
1767
|
-
|
|
1826
|
+
metaPixelId: string;
|
|
1827
|
+
tiktokPixelId: string;
|
|
1828
|
+
paystackPublicKey: string;
|
|
1829
|
+
freeShippingThreshold: number;
|
|
1830
|
+
createdAt: string;
|
|
1831
|
+
updatedAt: string;
|
|
1832
|
+
deletedAt: string;
|
|
1768
1833
|
};
|
|
1769
1834
|
deliveryZone: {
|
|
1770
1835
|
deliveryCost: number;
|
|
@@ -1782,6 +1847,7 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
1782
1847
|
};
|
|
1783
1848
|
id: string;
|
|
1784
1849
|
name: string;
|
|
1850
|
+
isActive: boolean;
|
|
1785
1851
|
brandId: string | null;
|
|
1786
1852
|
stateId: string;
|
|
1787
1853
|
allowCOD: boolean;
|
|
@@ -1790,7 +1856,6 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
1790
1856
|
estimatedDays: number | null;
|
|
1791
1857
|
noteTitle: string | null;
|
|
1792
1858
|
noteContent: string | null;
|
|
1793
|
-
isActive: boolean;
|
|
1794
1859
|
};
|
|
1795
1860
|
items: {
|
|
1796
1861
|
priceAtPurchase: number;
|
|
@@ -1806,8 +1871,8 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
1806
1871
|
id: string;
|
|
1807
1872
|
name: string;
|
|
1808
1873
|
slug: string;
|
|
1809
|
-
brandId: string;
|
|
1810
1874
|
isActive: boolean;
|
|
1875
|
+
brandId: string;
|
|
1811
1876
|
description: string | null;
|
|
1812
1877
|
thumbnailUrl: string | null;
|
|
1813
1878
|
quantityDiscounts: string | number | boolean | {
|
|
@@ -2250,8 +2315,8 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
2250
2315
|
id: string;
|
|
2251
2316
|
name: string | null;
|
|
2252
2317
|
isActive: boolean;
|
|
2253
|
-
thumbnailUrl: string | null;
|
|
2254
2318
|
productId: string;
|
|
2319
|
+
thumbnailUrl: string | null;
|
|
2255
2320
|
sku: string;
|
|
2256
2321
|
compareAtPrice: string;
|
|
2257
2322
|
trackInventory: boolean;
|
|
@@ -2263,16 +2328,16 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
2263
2328
|
deletedAt: string;
|
|
2264
2329
|
id: string;
|
|
2265
2330
|
name: string;
|
|
2331
|
+
state: string | null;
|
|
2266
2332
|
isActive: boolean;
|
|
2267
2333
|
address: string | null;
|
|
2268
2334
|
city: string | null;
|
|
2269
|
-
state: string | null;
|
|
2270
2335
|
};
|
|
2271
2336
|
id: string;
|
|
2272
|
-
orderId: string;
|
|
2273
2337
|
variantId: string;
|
|
2274
|
-
warehouseId: string | null;
|
|
2275
2338
|
quantity: number;
|
|
2339
|
+
orderId: string;
|
|
2340
|
+
warehouseId: string | null;
|
|
2276
2341
|
}[];
|
|
2277
2342
|
email: string | null;
|
|
2278
2343
|
id: string;
|
|
@@ -2293,8 +2358,19 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
2293
2358
|
paystackReference: string | null;
|
|
2294
2359
|
status: import("@prisma/client").$Enums.OrderStatus;
|
|
2295
2360
|
cancellationReason: string | null;
|
|
2361
|
+
shippingMethod: string | null;
|
|
2362
|
+
dispatchRiderId: string | null;
|
|
2363
|
+
fezTrackingNumber: string | null;
|
|
2364
|
+
flutterwaveOrderRef: string | null;
|
|
2365
|
+
flutterwaveCustomerId: string | null;
|
|
2296
2366
|
prospectReason: import("@prisma/client").$Enums.ProspectReason | null;
|
|
2297
2367
|
userActionToken: string;
|
|
2368
|
+
labelPrintedAt: string;
|
|
2369
|
+
dispatchRider?: {
|
|
2370
|
+
id: string;
|
|
2371
|
+
name: string;
|
|
2372
|
+
phone: string;
|
|
2373
|
+
};
|
|
2298
2374
|
} | {
|
|
2299
2375
|
error: {
|
|
2300
2376
|
code: string;
|
|
@@ -2312,6 +2388,7 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
2312
2388
|
tiktokPixelId: string | null;
|
|
2313
2389
|
paystackPublicKey: string | null;
|
|
2314
2390
|
paystackSecretKey: string | null;
|
|
2391
|
+
freeShippingThreshold: string;
|
|
2315
2392
|
createdAt: string;
|
|
2316
2393
|
updatedAt: string;
|
|
2317
2394
|
deletedAt: string;
|
|
@@ -2327,20 +2404,28 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
2327
2404
|
};
|
|
2328
2405
|
id: string;
|
|
2329
2406
|
name: string;
|
|
2407
|
+
freeShippingThreshold: string;
|
|
2330
2408
|
createdAt: string;
|
|
2331
2409
|
updatedAt: string;
|
|
2332
2410
|
deletedAt: string;
|
|
2411
|
+
isActive: boolean;
|
|
2333
2412
|
brandId: string | null;
|
|
2334
2413
|
stateId: string;
|
|
2335
2414
|
deliveryCost: string;
|
|
2336
|
-
freeShippingThreshold: string;
|
|
2337
2415
|
allowCOD: boolean;
|
|
2338
2416
|
allowOnline: boolean;
|
|
2339
2417
|
waybillOnly: boolean;
|
|
2340
2418
|
estimatedDays: number | null;
|
|
2341
2419
|
noteTitle: string | null;
|
|
2342
2420
|
noteContent: string | null;
|
|
2343
|
-
|
|
2421
|
+
};
|
|
2422
|
+
dispatchRider: {
|
|
2423
|
+
id: string;
|
|
2424
|
+
name: string;
|
|
2425
|
+
createdAt: string;
|
|
2426
|
+
updatedAt: string;
|
|
2427
|
+
deletedAt: string;
|
|
2428
|
+
phone: string;
|
|
2344
2429
|
};
|
|
2345
2430
|
items: {
|
|
2346
2431
|
warehouse: {
|
|
@@ -2349,10 +2434,10 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
2349
2434
|
createdAt: string;
|
|
2350
2435
|
updatedAt: string;
|
|
2351
2436
|
deletedAt: string;
|
|
2437
|
+
state: string | null;
|
|
2352
2438
|
isActive: boolean;
|
|
2353
2439
|
address: string | null;
|
|
2354
2440
|
city: string | null;
|
|
2355
|
-
state: string | null;
|
|
2356
2441
|
};
|
|
2357
2442
|
variant: {
|
|
2358
2443
|
product: {
|
|
@@ -2362,8 +2447,8 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
2362
2447
|
createdAt: string;
|
|
2363
2448
|
updatedAt: string;
|
|
2364
2449
|
deletedAt: string;
|
|
2365
|
-
brandId: string;
|
|
2366
2450
|
isActive: boolean;
|
|
2451
|
+
brandId: string;
|
|
2367
2452
|
description: string | null;
|
|
2368
2453
|
thumbnailUrl: string | null;
|
|
2369
2454
|
quantityDiscounts: string | number | boolean | {
|
|
@@ -2809,8 +2894,8 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
2809
2894
|
updatedAt: string;
|
|
2810
2895
|
deletedAt: string;
|
|
2811
2896
|
isActive: boolean;
|
|
2812
|
-
thumbnailUrl: string | null;
|
|
2813
2897
|
productId: string;
|
|
2898
|
+
thumbnailUrl: string | null;
|
|
2814
2899
|
sku: string;
|
|
2815
2900
|
price: string;
|
|
2816
2901
|
compareAtPrice: string;
|
|
@@ -2818,10 +2903,10 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
2818
2903
|
lowStockThreshold: number | null;
|
|
2819
2904
|
};
|
|
2820
2905
|
id: string;
|
|
2821
|
-
orderId: string;
|
|
2822
2906
|
variantId: string;
|
|
2823
|
-
warehouseId: string | null;
|
|
2824
2907
|
quantity: number;
|
|
2908
|
+
orderId: string;
|
|
2909
|
+
warehouseId: string | null;
|
|
2825
2910
|
priceAtPurchase: string;
|
|
2826
2911
|
}[];
|
|
2827
2912
|
notes: {
|
|
@@ -2998,6 +3083,7 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
2998
3083
|
recoveryDiscountCodeId: string | null;
|
|
2999
3084
|
wasRecovered: boolean;
|
|
3000
3085
|
estimatedDays: number | null;
|
|
3086
|
+
discountAmount: string;
|
|
3001
3087
|
orderNumber: number;
|
|
3002
3088
|
firstName: string;
|
|
3003
3089
|
lastName: string;
|
|
@@ -3007,14 +3093,27 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
3007
3093
|
deliveryCharge: string;
|
|
3008
3094
|
totalPrice: string;
|
|
3009
3095
|
discountCodeId: string | null;
|
|
3010
|
-
discountAmount: string;
|
|
3011
3096
|
paymentMethod: import("@prisma/client").$Enums.PaymentMethod;
|
|
3012
3097
|
paystackReference: string | null;
|
|
3013
3098
|
status: import("@prisma/client").$Enums.OrderStatus;
|
|
3014
3099
|
cancellationReason: string | null;
|
|
3100
|
+
shippingMethod: string | null;
|
|
3101
|
+
dispatchRiderId: string | null;
|
|
3102
|
+
fezTrackingNumber: string | null;
|
|
3103
|
+
amountPaid: string;
|
|
3104
|
+
flutterwaveAccountBank: string | null;
|
|
3105
|
+
flutterwaveAccountNumber: string | null;
|
|
3106
|
+
flutterwaveOrderRef: string | null;
|
|
3107
|
+
flutterwaveCustomerId: string | null;
|
|
3108
|
+
flutterwaveAccountExpiry: string;
|
|
3015
3109
|
prospectReason: import("@prisma/client").$Enums.ProspectReason | null;
|
|
3016
3110
|
prospectSince: string;
|
|
3017
3111
|
userActionToken: string;
|
|
3112
|
+
shippedAt: string;
|
|
3113
|
+
labelPrintedAt: string;
|
|
3114
|
+
deliveryConfirmationSentAt: string;
|
|
3115
|
+
deliveryConfirmedAt: string;
|
|
3116
|
+
deliveryConfirmationAttempts: number;
|
|
3018
3117
|
} | {
|
|
3019
3118
|
error: {
|
|
3020
3119
|
code: string;
|
|
@@ -3032,25 +3131,33 @@ export declare function useUpdateOrderStatus(orderId: string, options?: UseMutat
|
|
|
3032
3131
|
deliveryCharge: number;
|
|
3033
3132
|
totalPrice: number;
|
|
3034
3133
|
discountAmount: number;
|
|
3134
|
+
amountPaid: number;
|
|
3135
|
+
flutterwaveAccountBank: string;
|
|
3136
|
+
flutterwaveAccountNumber: string;
|
|
3137
|
+
flutterwaveAccountExpiry: string;
|
|
3035
3138
|
createdAt: string;
|
|
3036
3139
|
updatedAt: string;
|
|
3037
3140
|
deletedAt: string;
|
|
3038
3141
|
prospectSince: string;
|
|
3039
3142
|
lastRecoveryAttemptAt: string;
|
|
3143
|
+
shippedAt: string;
|
|
3144
|
+
deliveryConfirmationSentAt: string;
|
|
3145
|
+
deliveryConfirmedAt: string;
|
|
3146
|
+
deliveryConfirmationAttempts: number;
|
|
3040
3147
|
brand: {
|
|
3041
|
-
createdAt: string;
|
|
3042
|
-
updatedAt: string;
|
|
3043
|
-
deletedAt: string;
|
|
3044
3148
|
id: string;
|
|
3045
3149
|
name: string;
|
|
3046
3150
|
slug: string;
|
|
3047
|
-
logoUrl: string
|
|
3151
|
+
logoUrl: string;
|
|
3048
3152
|
siteUrl: string;
|
|
3049
3153
|
domain: string;
|
|
3050
|
-
metaPixelId: string
|
|
3051
|
-
tiktokPixelId: string
|
|
3052
|
-
paystackPublicKey: string
|
|
3053
|
-
|
|
3154
|
+
metaPixelId: string;
|
|
3155
|
+
tiktokPixelId: string;
|
|
3156
|
+
paystackPublicKey: string;
|
|
3157
|
+
freeShippingThreshold: number;
|
|
3158
|
+
createdAt: string;
|
|
3159
|
+
updatedAt: string;
|
|
3160
|
+
deletedAt: string;
|
|
3054
3161
|
};
|
|
3055
3162
|
deliveryZone: {
|
|
3056
3163
|
deliveryCost: number;
|
|
@@ -3068,6 +3175,7 @@ export declare function useUpdateOrderStatus(orderId: string, options?: UseMutat
|
|
|
3068
3175
|
};
|
|
3069
3176
|
id: string;
|
|
3070
3177
|
name: string;
|
|
3178
|
+
isActive: boolean;
|
|
3071
3179
|
brandId: string | null;
|
|
3072
3180
|
stateId: string;
|
|
3073
3181
|
allowCOD: boolean;
|
|
@@ -3076,7 +3184,6 @@ export declare function useUpdateOrderStatus(orderId: string, options?: UseMutat
|
|
|
3076
3184
|
estimatedDays: number | null;
|
|
3077
3185
|
noteTitle: string | null;
|
|
3078
3186
|
noteContent: string | null;
|
|
3079
|
-
isActive: boolean;
|
|
3080
3187
|
};
|
|
3081
3188
|
items: {
|
|
3082
3189
|
priceAtPurchase: number;
|
|
@@ -3092,8 +3199,8 @@ export declare function useUpdateOrderStatus(orderId: string, options?: UseMutat
|
|
|
3092
3199
|
id: string;
|
|
3093
3200
|
name: string;
|
|
3094
3201
|
slug: string;
|
|
3095
|
-
brandId: string;
|
|
3096
3202
|
isActive: boolean;
|
|
3203
|
+
brandId: string;
|
|
3097
3204
|
description: string | null;
|
|
3098
3205
|
thumbnailUrl: string | null;
|
|
3099
3206
|
quantityDiscounts: string | number | boolean | {
|
|
@@ -3536,8 +3643,8 @@ export declare function useUpdateOrderStatus(orderId: string, options?: UseMutat
|
|
|
3536
3643
|
id: string;
|
|
3537
3644
|
name: string | null;
|
|
3538
3645
|
isActive: boolean;
|
|
3539
|
-
thumbnailUrl: string | null;
|
|
3540
3646
|
productId: string;
|
|
3647
|
+
thumbnailUrl: string | null;
|
|
3541
3648
|
sku: string;
|
|
3542
3649
|
compareAtPrice: string;
|
|
3543
3650
|
trackInventory: boolean;
|
|
@@ -3549,16 +3656,16 @@ export declare function useUpdateOrderStatus(orderId: string, options?: UseMutat
|
|
|
3549
3656
|
deletedAt: string;
|
|
3550
3657
|
id: string;
|
|
3551
3658
|
name: string;
|
|
3659
|
+
state: string | null;
|
|
3552
3660
|
isActive: boolean;
|
|
3553
3661
|
address: string | null;
|
|
3554
3662
|
city: string | null;
|
|
3555
|
-
state: string | null;
|
|
3556
3663
|
};
|
|
3557
3664
|
id: string;
|
|
3558
|
-
orderId: string;
|
|
3559
3665
|
variantId: string;
|
|
3560
|
-
warehouseId: string | null;
|
|
3561
3666
|
quantity: number;
|
|
3667
|
+
orderId: string;
|
|
3668
|
+
warehouseId: string | null;
|
|
3562
3669
|
}[];
|
|
3563
3670
|
email: string | null;
|
|
3564
3671
|
id: string;
|
|
@@ -3579,8 +3686,19 @@ export declare function useUpdateOrderStatus(orderId: string, options?: UseMutat
|
|
|
3579
3686
|
paystackReference: string | null;
|
|
3580
3687
|
status: import("@prisma/client").$Enums.OrderStatus;
|
|
3581
3688
|
cancellationReason: string | null;
|
|
3689
|
+
shippingMethod: string | null;
|
|
3690
|
+
dispatchRiderId: string | null;
|
|
3691
|
+
fezTrackingNumber: string | null;
|
|
3692
|
+
flutterwaveOrderRef: string | null;
|
|
3693
|
+
flutterwaveCustomerId: string | null;
|
|
3582
3694
|
prospectReason: import("@prisma/client").$Enums.ProspectReason | null;
|
|
3583
3695
|
userActionToken: string;
|
|
3696
|
+
labelPrintedAt: string;
|
|
3697
|
+
dispatchRider?: {
|
|
3698
|
+
id: string;
|
|
3699
|
+
name: string;
|
|
3700
|
+
phone: string;
|
|
3701
|
+
};
|
|
3584
3702
|
} | {
|
|
3585
3703
|
error: {
|
|
3586
3704
|
code: string;
|
|
@@ -3604,6 +3722,25 @@ export declare function useUpdateOrderStatus(orderId: string, options?: UseMutat
|
|
|
3604
3722
|
* @param options - React Query mutation options
|
|
3605
3723
|
*/
|
|
3606
3724
|
export declare function useDeleteOrder(orderId: string, options?: UseMutationOptions<Awaited<ReturnType<Awaited<ReturnType<ReturnType<typeof createAdminRpcClients>['orders'][':id']['$delete']>>['json']>>, Error, void>): import("@tanstack/react-query").UseMutationResult<unknown, Error, void, unknown>;
|
|
3725
|
+
/**
|
|
3726
|
+
* Hook to regenerate Flutterwave virtual account for a COD order
|
|
3727
|
+
*
|
|
3728
|
+
* @param orderId - Order UUID
|
|
3729
|
+
* @param options - React Query mutation options
|
|
3730
|
+
*/
|
|
3731
|
+
export declare function useRegenerateAccount(orderId: string, options?: UseMutationOptions<any, Error, void>): import("@tanstack/react-query").UseMutationResult<any, Error, void, unknown>;
|
|
3732
|
+
/**
|
|
3733
|
+
* Hook to send delivery confirmation for a single order
|
|
3734
|
+
*/
|
|
3735
|
+
export declare function useSendDeliveryConfirmation(orderId: string, options?: UseMutationOptions<any, Error, void>): import("@tanstack/react-query").UseMutationResult<any, Error, void, unknown>;
|
|
3736
|
+
/**
|
|
3737
|
+
* Hook to send batch delivery confirmation
|
|
3738
|
+
*/
|
|
3739
|
+
export declare function useBatchDeliveryConfirmation(options?: UseMutationOptions<any, Error, {
|
|
3740
|
+
orderIds: string[];
|
|
3741
|
+
}>): import("@tanstack/react-query").UseMutationResult<any, Error, {
|
|
3742
|
+
orderIds: string[];
|
|
3743
|
+
}, unknown>;
|
|
3607
3744
|
/**
|
|
3608
3745
|
* Hook to add a note to an order using admin RPC
|
|
3609
3746
|
*
|