@instockng/api-client 1.0.12 → 1.0.14
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/carts.d.ts +45 -0
- package/dist/fetchers/orders.d.ts +10 -0
- package/dist/fetchers/products.d.ts +10 -0
- package/dist/hooks/admin/abandoned-carts.d.ts +10 -0
- package/dist/hooks/admin/brands.d.ts +4 -0
- package/dist/hooks/admin/customers.d.ts +5 -0
- package/dist/hooks/admin/delivery-zones.d.ts +4 -0
- package/dist/hooks/admin/discount-codes.d.ts +5 -0
- package/dist/hooks/admin/inventory.d.ts +4 -0
- package/dist/hooks/admin/orders.d.ts +390 -0
- package/dist/hooks/admin/orders.js +31 -0
- package/dist/hooks/admin/products.d.ts +10 -0
- package/dist/hooks/admin/stats.d.ts +5 -0
- package/dist/hooks/admin/warehouses.d.ts +5 -0
- package/dist/hooks/public/carts.d.ts +45 -0
- package/dist/hooks/public/orders.d.ts +10 -0
- package/dist/hooks/public/products.d.ts +10 -0
- package/dist/rpc-client.d.ts +531 -0
- package/package.json +1 -1
|
@@ -31,6 +31,7 @@ export declare function useGetCart(cartId: string, options?: Omit<UseQueryOption
|
|
|
31
31
|
siteUrl: string;
|
|
32
32
|
domain: string;
|
|
33
33
|
metaPixelId: string | null;
|
|
34
|
+
tiktokPixelId: string | null;
|
|
34
35
|
paystackPublicKey: string | null;
|
|
35
36
|
paystackSecretKey: string | null;
|
|
36
37
|
};
|
|
@@ -152,7 +153,9 @@ export declare function useGetCart(cartId: string, options?: Omit<UseQueryOption
|
|
|
152
153
|
includes?: boolean;
|
|
153
154
|
flatMap?: boolean;
|
|
154
155
|
flat?: boolean;
|
|
156
|
+
at?: boolean;
|
|
155
157
|
};
|
|
158
|
+
at: never;
|
|
156
159
|
};
|
|
157
160
|
} | {
|
|
158
161
|
[x: number]: string | number | boolean | {
|
|
@@ -225,7 +228,9 @@ export declare function useGetCart(cartId: string, options?: Omit<UseQueryOption
|
|
|
225
228
|
includes?: boolean;
|
|
226
229
|
flatMap?: boolean;
|
|
227
230
|
flat?: boolean;
|
|
231
|
+
at?: boolean;
|
|
228
232
|
};
|
|
233
|
+
at: never;
|
|
229
234
|
};
|
|
230
235
|
};
|
|
231
236
|
id: string;
|
|
@@ -293,6 +298,7 @@ export declare function useUpdateCart(cartId: string, options?: UseMutationOptio
|
|
|
293
298
|
siteUrl: string;
|
|
294
299
|
domain: string;
|
|
295
300
|
metaPixelId: string | null;
|
|
301
|
+
tiktokPixelId: string | null;
|
|
296
302
|
paystackPublicKey: string | null;
|
|
297
303
|
paystackSecretKey: string | null;
|
|
298
304
|
};
|
|
@@ -414,7 +420,9 @@ export declare function useUpdateCart(cartId: string, options?: UseMutationOptio
|
|
|
414
420
|
includes?: boolean;
|
|
415
421
|
flatMap?: boolean;
|
|
416
422
|
flat?: boolean;
|
|
423
|
+
at?: boolean;
|
|
417
424
|
};
|
|
425
|
+
at: never;
|
|
418
426
|
};
|
|
419
427
|
} | {
|
|
420
428
|
[x: number]: string | number | boolean | {
|
|
@@ -487,7 +495,9 @@ export declare function useUpdateCart(cartId: string, options?: UseMutationOptio
|
|
|
487
495
|
includes?: boolean;
|
|
488
496
|
flatMap?: boolean;
|
|
489
497
|
flat?: boolean;
|
|
498
|
+
at?: boolean;
|
|
490
499
|
};
|
|
500
|
+
at: never;
|
|
491
501
|
};
|
|
492
502
|
};
|
|
493
503
|
id: string;
|
|
@@ -563,6 +573,7 @@ export declare function useCreateCart(options?: UseMutationOptions<Awaited<Retur
|
|
|
563
573
|
siteUrl: string;
|
|
564
574
|
domain: string;
|
|
565
575
|
metaPixelId: string | null;
|
|
576
|
+
tiktokPixelId: string | null;
|
|
566
577
|
paystackPublicKey: string | null;
|
|
567
578
|
paystackSecretKey: string | null;
|
|
568
579
|
};
|
|
@@ -684,7 +695,9 @@ export declare function useCreateCart(options?: UseMutationOptions<Awaited<Retur
|
|
|
684
695
|
includes?: boolean;
|
|
685
696
|
flatMap?: boolean;
|
|
686
697
|
flat?: boolean;
|
|
698
|
+
at?: boolean;
|
|
687
699
|
};
|
|
700
|
+
at: never;
|
|
688
701
|
};
|
|
689
702
|
} | {
|
|
690
703
|
[x: number]: string | number | boolean | {
|
|
@@ -757,7 +770,9 @@ export declare function useCreateCart(options?: UseMutationOptions<Awaited<Retur
|
|
|
757
770
|
includes?: boolean;
|
|
758
771
|
flatMap?: boolean;
|
|
759
772
|
flat?: boolean;
|
|
773
|
+
at?: boolean;
|
|
760
774
|
};
|
|
775
|
+
at: never;
|
|
761
776
|
};
|
|
762
777
|
};
|
|
763
778
|
id: string;
|
|
@@ -824,6 +839,7 @@ export declare function useApplyDiscount(cartId: string, options?: UseMutationOp
|
|
|
824
839
|
siteUrl: string;
|
|
825
840
|
domain: string;
|
|
826
841
|
metaPixelId: string | null;
|
|
842
|
+
tiktokPixelId: string | null;
|
|
827
843
|
paystackPublicKey: string | null;
|
|
828
844
|
paystackSecretKey: string | null;
|
|
829
845
|
};
|
|
@@ -945,7 +961,9 @@ export declare function useApplyDiscount(cartId: string, options?: UseMutationOp
|
|
|
945
961
|
includes?: boolean;
|
|
946
962
|
flatMap?: boolean;
|
|
947
963
|
flat?: boolean;
|
|
964
|
+
at?: boolean;
|
|
948
965
|
};
|
|
966
|
+
at: never;
|
|
949
967
|
};
|
|
950
968
|
} | {
|
|
951
969
|
[x: number]: string | number | boolean | {
|
|
@@ -1018,7 +1036,9 @@ export declare function useApplyDiscount(cartId: string, options?: UseMutationOp
|
|
|
1018
1036
|
includes?: boolean;
|
|
1019
1037
|
flatMap?: boolean;
|
|
1020
1038
|
flat?: boolean;
|
|
1039
|
+
at?: boolean;
|
|
1021
1040
|
};
|
|
1041
|
+
at: never;
|
|
1022
1042
|
};
|
|
1023
1043
|
};
|
|
1024
1044
|
id: string;
|
|
@@ -1090,6 +1110,7 @@ export declare function useRemoveDiscount(cartId: string, options?: UseMutationO
|
|
|
1090
1110
|
siteUrl: string;
|
|
1091
1111
|
domain: string;
|
|
1092
1112
|
metaPixelId: string | null;
|
|
1113
|
+
tiktokPixelId: string | null;
|
|
1093
1114
|
paystackPublicKey: string | null;
|
|
1094
1115
|
paystackSecretKey: string | null;
|
|
1095
1116
|
};
|
|
@@ -1211,7 +1232,9 @@ export declare function useRemoveDiscount(cartId: string, options?: UseMutationO
|
|
|
1211
1232
|
includes?: boolean;
|
|
1212
1233
|
flatMap?: boolean;
|
|
1213
1234
|
flat?: boolean;
|
|
1235
|
+
at?: boolean;
|
|
1214
1236
|
};
|
|
1237
|
+
at: never;
|
|
1215
1238
|
};
|
|
1216
1239
|
} | {
|
|
1217
1240
|
[x: number]: string | number | boolean | {
|
|
@@ -1284,7 +1307,9 @@ export declare function useRemoveDiscount(cartId: string, options?: UseMutationO
|
|
|
1284
1307
|
includes?: boolean;
|
|
1285
1308
|
flatMap?: boolean;
|
|
1286
1309
|
flat?: boolean;
|
|
1310
|
+
at?: boolean;
|
|
1287
1311
|
};
|
|
1312
|
+
at: never;
|
|
1288
1313
|
};
|
|
1289
1314
|
};
|
|
1290
1315
|
id: string;
|
|
@@ -1359,6 +1384,7 @@ export declare function useAddCartItem(cartId: string, options?: UseMutationOpti
|
|
|
1359
1384
|
siteUrl: string;
|
|
1360
1385
|
domain: string;
|
|
1361
1386
|
metaPixelId: string | null;
|
|
1387
|
+
tiktokPixelId: string | null;
|
|
1362
1388
|
paystackPublicKey: string | null;
|
|
1363
1389
|
paystackSecretKey: string | null;
|
|
1364
1390
|
};
|
|
@@ -1480,7 +1506,9 @@ export declare function useAddCartItem(cartId: string, options?: UseMutationOpti
|
|
|
1480
1506
|
includes?: boolean;
|
|
1481
1507
|
flatMap?: boolean;
|
|
1482
1508
|
flat?: boolean;
|
|
1509
|
+
at?: boolean;
|
|
1483
1510
|
};
|
|
1511
|
+
at: never;
|
|
1484
1512
|
};
|
|
1485
1513
|
} | {
|
|
1486
1514
|
[x: number]: string | number | boolean | {
|
|
@@ -1553,7 +1581,9 @@ export declare function useAddCartItem(cartId: string, options?: UseMutationOpti
|
|
|
1553
1581
|
includes?: boolean;
|
|
1554
1582
|
flatMap?: boolean;
|
|
1555
1583
|
flat?: boolean;
|
|
1584
|
+
at?: boolean;
|
|
1556
1585
|
};
|
|
1586
|
+
at: never;
|
|
1557
1587
|
};
|
|
1558
1588
|
};
|
|
1559
1589
|
id: string;
|
|
@@ -1631,6 +1661,7 @@ export declare function useUpdateCartItem(cartId: string, options?: UseMutationO
|
|
|
1631
1661
|
siteUrl: string;
|
|
1632
1662
|
domain: string;
|
|
1633
1663
|
metaPixelId: string | null;
|
|
1664
|
+
tiktokPixelId: string | null;
|
|
1634
1665
|
paystackPublicKey: string | null;
|
|
1635
1666
|
paystackSecretKey: string | null;
|
|
1636
1667
|
};
|
|
@@ -1752,7 +1783,9 @@ export declare function useUpdateCartItem(cartId: string, options?: UseMutationO
|
|
|
1752
1783
|
includes?: boolean;
|
|
1753
1784
|
flatMap?: boolean;
|
|
1754
1785
|
flat?: boolean;
|
|
1786
|
+
at?: boolean;
|
|
1755
1787
|
};
|
|
1788
|
+
at: never;
|
|
1756
1789
|
};
|
|
1757
1790
|
} | {
|
|
1758
1791
|
[x: number]: string | number | boolean | {
|
|
@@ -1825,7 +1858,9 @@ export declare function useUpdateCartItem(cartId: string, options?: UseMutationO
|
|
|
1825
1858
|
includes?: boolean;
|
|
1826
1859
|
flatMap?: boolean;
|
|
1827
1860
|
flat?: boolean;
|
|
1861
|
+
at?: boolean;
|
|
1828
1862
|
};
|
|
1863
|
+
at: never;
|
|
1829
1864
|
};
|
|
1830
1865
|
};
|
|
1831
1866
|
id: string;
|
|
@@ -1893,6 +1928,7 @@ export declare function useRemoveCartItem(cartId: string, options?: UseMutationO
|
|
|
1893
1928
|
siteUrl: string;
|
|
1894
1929
|
domain: string;
|
|
1895
1930
|
metaPixelId: string | null;
|
|
1931
|
+
tiktokPixelId: string | null;
|
|
1896
1932
|
paystackPublicKey: string | null;
|
|
1897
1933
|
paystackSecretKey: string | null;
|
|
1898
1934
|
};
|
|
@@ -2014,7 +2050,9 @@ export declare function useRemoveCartItem(cartId: string, options?: UseMutationO
|
|
|
2014
2050
|
includes?: boolean;
|
|
2015
2051
|
flatMap?: boolean;
|
|
2016
2052
|
flat?: boolean;
|
|
2053
|
+
at?: boolean;
|
|
2017
2054
|
};
|
|
2055
|
+
at: never;
|
|
2018
2056
|
};
|
|
2019
2057
|
} | {
|
|
2020
2058
|
[x: number]: string | number | boolean | {
|
|
@@ -2087,7 +2125,9 @@ export declare function useRemoveCartItem(cartId: string, options?: UseMutationO
|
|
|
2087
2125
|
includes?: boolean;
|
|
2088
2126
|
flatMap?: boolean;
|
|
2089
2127
|
flat?: boolean;
|
|
2128
|
+
at?: boolean;
|
|
2090
2129
|
};
|
|
2130
|
+
at: never;
|
|
2091
2131
|
};
|
|
2092
2132
|
};
|
|
2093
2133
|
id: string;
|
|
@@ -2169,6 +2209,7 @@ export declare function useCheckoutCart(cartId: string, options?: UseMutationOpt
|
|
|
2169
2209
|
siteUrl: string;
|
|
2170
2210
|
domain: string;
|
|
2171
2211
|
metaPixelId: string | null;
|
|
2212
|
+
tiktokPixelId: string | null;
|
|
2172
2213
|
paystackPublicKey: string | null;
|
|
2173
2214
|
paystackSecretKey: string | null;
|
|
2174
2215
|
};
|
|
@@ -2286,7 +2327,9 @@ export declare function useCheckoutCart(cartId: string, options?: UseMutationOpt
|
|
|
2286
2327
|
includes?: boolean;
|
|
2287
2328
|
flatMap?: boolean;
|
|
2288
2329
|
flat?: boolean;
|
|
2330
|
+
at?: boolean;
|
|
2289
2331
|
};
|
|
2332
|
+
at: never;
|
|
2290
2333
|
};
|
|
2291
2334
|
} | {
|
|
2292
2335
|
[x: number]: string | number | boolean | {
|
|
@@ -2359,7 +2402,9 @@ export declare function useCheckoutCart(cartId: string, options?: UseMutationOpt
|
|
|
2359
2402
|
includes?: boolean;
|
|
2360
2403
|
flatMap?: boolean;
|
|
2361
2404
|
flat?: boolean;
|
|
2405
|
+
at?: boolean;
|
|
2362
2406
|
};
|
|
2407
|
+
at: never;
|
|
2363
2408
|
};
|
|
2364
2409
|
};
|
|
2365
2410
|
id: string;
|
|
@@ -42,6 +42,7 @@ export declare function useGetOrder(orderId: string, token: string, options?: Om
|
|
|
42
42
|
siteUrl: string;
|
|
43
43
|
domain: string;
|
|
44
44
|
metaPixelId: string | null;
|
|
45
|
+
tiktokPixelId: string | null;
|
|
45
46
|
paystackPublicKey: string | null;
|
|
46
47
|
paystackSecretKey: string | null;
|
|
47
48
|
};
|
|
@@ -159,7 +160,9 @@ export declare function useGetOrder(orderId: string, token: string, options?: Om
|
|
|
159
160
|
includes?: boolean;
|
|
160
161
|
flatMap?: boolean;
|
|
161
162
|
flat?: boolean;
|
|
163
|
+
at?: boolean;
|
|
162
164
|
};
|
|
165
|
+
at: never;
|
|
163
166
|
};
|
|
164
167
|
} | {
|
|
165
168
|
[x: number]: string | number | boolean | {
|
|
@@ -232,7 +235,9 @@ export declare function useGetOrder(orderId: string, token: string, options?: Om
|
|
|
232
235
|
includes?: boolean;
|
|
233
236
|
flatMap?: boolean;
|
|
234
237
|
flat?: boolean;
|
|
238
|
+
at?: boolean;
|
|
235
239
|
};
|
|
240
|
+
at: never;
|
|
236
241
|
};
|
|
237
242
|
};
|
|
238
243
|
id: string;
|
|
@@ -321,6 +326,7 @@ export declare function useConfirmOrder(options?: UseMutationOptions<Awaited<Ret
|
|
|
321
326
|
siteUrl: string;
|
|
322
327
|
domain: string;
|
|
323
328
|
metaPixelId: string | null;
|
|
329
|
+
tiktokPixelId: string | null;
|
|
324
330
|
paystackPublicKey: string | null;
|
|
325
331
|
paystackSecretKey: string | null;
|
|
326
332
|
};
|
|
@@ -438,7 +444,9 @@ export declare function useConfirmOrder(options?: UseMutationOptions<Awaited<Ret
|
|
|
438
444
|
includes?: boolean;
|
|
439
445
|
flatMap?: boolean;
|
|
440
446
|
flat?: boolean;
|
|
447
|
+
at?: boolean;
|
|
441
448
|
};
|
|
449
|
+
at: never;
|
|
442
450
|
};
|
|
443
451
|
} | {
|
|
444
452
|
[x: number]: string | number | boolean | {
|
|
@@ -511,7 +519,9 @@ export declare function useConfirmOrder(options?: UseMutationOptions<Awaited<Ret
|
|
|
511
519
|
includes?: boolean;
|
|
512
520
|
flatMap?: boolean;
|
|
513
521
|
flat?: boolean;
|
|
522
|
+
at?: boolean;
|
|
514
523
|
};
|
|
524
|
+
at: never;
|
|
515
525
|
};
|
|
516
526
|
};
|
|
517
527
|
id: string;
|
|
@@ -30,6 +30,7 @@ export declare function useGetProducts(brandId: string, options?: Omit<UseQueryO
|
|
|
30
30
|
siteUrl: string;
|
|
31
31
|
domain: string;
|
|
32
32
|
metaPixelId: string | null;
|
|
33
|
+
tiktokPixelId: string | null;
|
|
33
34
|
paystackPublicKey: string | null;
|
|
34
35
|
paystackSecretKey: string | null;
|
|
35
36
|
};
|
|
@@ -127,7 +128,9 @@ export declare function useGetProducts(brandId: string, options?: Omit<UseQueryO
|
|
|
127
128
|
includes?: boolean;
|
|
128
129
|
flatMap?: boolean;
|
|
129
130
|
flat?: boolean;
|
|
131
|
+
at?: boolean;
|
|
130
132
|
};
|
|
133
|
+
at: never;
|
|
131
134
|
};
|
|
132
135
|
} | {
|
|
133
136
|
[x: number]: string | number | boolean | {
|
|
@@ -200,7 +203,9 @@ export declare function useGetProducts(brandId: string, options?: Omit<UseQueryO
|
|
|
200
203
|
includes?: boolean;
|
|
201
204
|
flatMap?: boolean;
|
|
202
205
|
flat?: boolean;
|
|
206
|
+
at?: boolean;
|
|
203
207
|
};
|
|
208
|
+
at: never;
|
|
204
209
|
};
|
|
205
210
|
}[], Error>;
|
|
206
211
|
/**
|
|
@@ -227,6 +232,7 @@ export declare function useGetProduct(slug: string, options?: Omit<UseQueryOptio
|
|
|
227
232
|
siteUrl: string;
|
|
228
233
|
domain: string;
|
|
229
234
|
metaPixelId: string | null;
|
|
235
|
+
tiktokPixelId: string | null;
|
|
230
236
|
paystackPublicKey: string | null;
|
|
231
237
|
paystackSecretKey: string | null;
|
|
232
238
|
};
|
|
@@ -324,7 +330,9 @@ export declare function useGetProduct(slug: string, options?: Omit<UseQueryOptio
|
|
|
324
330
|
includes?: boolean;
|
|
325
331
|
flatMap?: boolean;
|
|
326
332
|
flat?: boolean;
|
|
333
|
+
at?: boolean;
|
|
327
334
|
};
|
|
335
|
+
at: never;
|
|
328
336
|
};
|
|
329
337
|
} | {
|
|
330
338
|
[x: number]: string | number | boolean | {
|
|
@@ -397,6 +405,8 @@ export declare function useGetProduct(slug: string, options?: Omit<UseQueryOptio
|
|
|
397
405
|
includes?: boolean;
|
|
398
406
|
flatMap?: boolean;
|
|
399
407
|
flat?: boolean;
|
|
408
|
+
at?: boolean;
|
|
400
409
|
};
|
|
410
|
+
at: never;
|
|
401
411
|
};
|
|
402
412
|
}, Error>;
|