@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
package/dist/fetchers/carts.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ export declare function fetchCart(cartId: string): Promise<{
|
|
|
25
25
|
siteUrl: string;
|
|
26
26
|
domain: string;
|
|
27
27
|
metaPixelId: string | null;
|
|
28
|
+
tiktokPixelId: string | null;
|
|
28
29
|
paystackPublicKey: string | null;
|
|
29
30
|
paystackSecretKey: string | null;
|
|
30
31
|
};
|
|
@@ -146,7 +147,9 @@ export declare function fetchCart(cartId: string): Promise<{
|
|
|
146
147
|
includes?: boolean;
|
|
147
148
|
flatMap?: boolean;
|
|
148
149
|
flat?: boolean;
|
|
150
|
+
at?: boolean;
|
|
149
151
|
};
|
|
152
|
+
at: never;
|
|
150
153
|
};
|
|
151
154
|
} | {
|
|
152
155
|
[x: number]: string | number | boolean | {
|
|
@@ -219,7 +222,9 @@ export declare function fetchCart(cartId: string): Promise<{
|
|
|
219
222
|
includes?: boolean;
|
|
220
223
|
flatMap?: boolean;
|
|
221
224
|
flat?: boolean;
|
|
225
|
+
at?: boolean;
|
|
222
226
|
};
|
|
227
|
+
at: never;
|
|
223
228
|
};
|
|
224
229
|
};
|
|
225
230
|
id: string;
|
|
@@ -283,6 +288,7 @@ export declare function createCart(brandSlug: string): Promise<{
|
|
|
283
288
|
siteUrl: string;
|
|
284
289
|
domain: string;
|
|
285
290
|
metaPixelId: string | null;
|
|
291
|
+
tiktokPixelId: string | null;
|
|
286
292
|
paystackPublicKey: string | null;
|
|
287
293
|
paystackSecretKey: string | null;
|
|
288
294
|
};
|
|
@@ -404,7 +410,9 @@ export declare function createCart(brandSlug: string): Promise<{
|
|
|
404
410
|
includes?: boolean;
|
|
405
411
|
flatMap?: boolean;
|
|
406
412
|
flat?: boolean;
|
|
413
|
+
at?: boolean;
|
|
407
414
|
};
|
|
415
|
+
at: never;
|
|
408
416
|
};
|
|
409
417
|
} | {
|
|
410
418
|
[x: number]: string | number | boolean | {
|
|
@@ -477,7 +485,9 @@ export declare function createCart(brandSlug: string): Promise<{
|
|
|
477
485
|
includes?: boolean;
|
|
478
486
|
flatMap?: boolean;
|
|
479
487
|
flat?: boolean;
|
|
488
|
+
at?: boolean;
|
|
480
489
|
};
|
|
490
|
+
at: never;
|
|
481
491
|
};
|
|
482
492
|
};
|
|
483
493
|
id: string;
|
|
@@ -544,6 +554,7 @@ export declare function updateCart(cartId: string, data: {
|
|
|
544
554
|
siteUrl: string;
|
|
545
555
|
domain: string;
|
|
546
556
|
metaPixelId: string | null;
|
|
557
|
+
tiktokPixelId: string | null;
|
|
547
558
|
paystackPublicKey: string | null;
|
|
548
559
|
paystackSecretKey: string | null;
|
|
549
560
|
};
|
|
@@ -665,7 +676,9 @@ export declare function updateCart(cartId: string, data: {
|
|
|
665
676
|
includes?: boolean;
|
|
666
677
|
flatMap?: boolean;
|
|
667
678
|
flat?: boolean;
|
|
679
|
+
at?: boolean;
|
|
668
680
|
};
|
|
681
|
+
at: never;
|
|
669
682
|
};
|
|
670
683
|
} | {
|
|
671
684
|
[x: number]: string | number | boolean | {
|
|
@@ -738,7 +751,9 @@ export declare function updateCart(cartId: string, data: {
|
|
|
738
751
|
includes?: boolean;
|
|
739
752
|
flatMap?: boolean;
|
|
740
753
|
flat?: boolean;
|
|
754
|
+
at?: boolean;
|
|
741
755
|
};
|
|
756
|
+
at: never;
|
|
742
757
|
};
|
|
743
758
|
};
|
|
744
759
|
id: string;
|
|
@@ -806,6 +821,7 @@ export declare function addCartItem(cartId: string, sku: string, quantity: numbe
|
|
|
806
821
|
siteUrl: string;
|
|
807
822
|
domain: string;
|
|
808
823
|
metaPixelId: string | null;
|
|
824
|
+
tiktokPixelId: string | null;
|
|
809
825
|
paystackPublicKey: string | null;
|
|
810
826
|
paystackSecretKey: string | null;
|
|
811
827
|
};
|
|
@@ -927,7 +943,9 @@ export declare function addCartItem(cartId: string, sku: string, quantity: numbe
|
|
|
927
943
|
includes?: boolean;
|
|
928
944
|
flatMap?: boolean;
|
|
929
945
|
flat?: boolean;
|
|
946
|
+
at?: boolean;
|
|
930
947
|
};
|
|
948
|
+
at: never;
|
|
931
949
|
};
|
|
932
950
|
} | {
|
|
933
951
|
[x: number]: string | number | boolean | {
|
|
@@ -1000,7 +1018,9 @@ export declare function addCartItem(cartId: string, sku: string, quantity: numbe
|
|
|
1000
1018
|
includes?: boolean;
|
|
1001
1019
|
flatMap?: boolean;
|
|
1002
1020
|
flat?: boolean;
|
|
1021
|
+
at?: boolean;
|
|
1003
1022
|
};
|
|
1023
|
+
at: never;
|
|
1004
1024
|
};
|
|
1005
1025
|
};
|
|
1006
1026
|
id: string;
|
|
@@ -1066,6 +1086,7 @@ export declare function updateCartItem(cartId: string, itemId: string, quantity:
|
|
|
1066
1086
|
siteUrl: string;
|
|
1067
1087
|
domain: string;
|
|
1068
1088
|
metaPixelId: string | null;
|
|
1089
|
+
tiktokPixelId: string | null;
|
|
1069
1090
|
paystackPublicKey: string | null;
|
|
1070
1091
|
paystackSecretKey: string | null;
|
|
1071
1092
|
};
|
|
@@ -1187,7 +1208,9 @@ export declare function updateCartItem(cartId: string, itemId: string, quantity:
|
|
|
1187
1208
|
includes?: boolean;
|
|
1188
1209
|
flatMap?: boolean;
|
|
1189
1210
|
flat?: boolean;
|
|
1211
|
+
at?: boolean;
|
|
1190
1212
|
};
|
|
1213
|
+
at: never;
|
|
1191
1214
|
};
|
|
1192
1215
|
} | {
|
|
1193
1216
|
[x: number]: string | number | boolean | {
|
|
@@ -1260,7 +1283,9 @@ export declare function updateCartItem(cartId: string, itemId: string, quantity:
|
|
|
1260
1283
|
includes?: boolean;
|
|
1261
1284
|
flatMap?: boolean;
|
|
1262
1285
|
flat?: boolean;
|
|
1286
|
+
at?: boolean;
|
|
1263
1287
|
};
|
|
1288
|
+
at: never;
|
|
1264
1289
|
};
|
|
1265
1290
|
};
|
|
1266
1291
|
id: string;
|
|
@@ -1320,6 +1345,7 @@ export declare function removeCartItem(cartId: string, itemId: string): Promise<
|
|
|
1320
1345
|
siteUrl: string;
|
|
1321
1346
|
domain: string;
|
|
1322
1347
|
metaPixelId: string | null;
|
|
1348
|
+
tiktokPixelId: string | null;
|
|
1323
1349
|
paystackPublicKey: string | null;
|
|
1324
1350
|
paystackSecretKey: string | null;
|
|
1325
1351
|
};
|
|
@@ -1441,7 +1467,9 @@ export declare function removeCartItem(cartId: string, itemId: string): Promise<
|
|
|
1441
1467
|
includes?: boolean;
|
|
1442
1468
|
flatMap?: boolean;
|
|
1443
1469
|
flat?: boolean;
|
|
1470
|
+
at?: boolean;
|
|
1444
1471
|
};
|
|
1472
|
+
at: never;
|
|
1445
1473
|
};
|
|
1446
1474
|
} | {
|
|
1447
1475
|
[x: number]: string | number | boolean | {
|
|
@@ -1514,7 +1542,9 @@ export declare function removeCartItem(cartId: string, itemId: string): Promise<
|
|
|
1514
1542
|
includes?: boolean;
|
|
1515
1543
|
flatMap?: boolean;
|
|
1516
1544
|
flat?: boolean;
|
|
1545
|
+
at?: boolean;
|
|
1517
1546
|
};
|
|
1547
|
+
at: never;
|
|
1518
1548
|
};
|
|
1519
1549
|
};
|
|
1520
1550
|
id: string;
|
|
@@ -1574,6 +1604,7 @@ export declare function applyDiscount(cartId: string, code: string): Promise<{
|
|
|
1574
1604
|
siteUrl: string;
|
|
1575
1605
|
domain: string;
|
|
1576
1606
|
metaPixelId: string | null;
|
|
1607
|
+
tiktokPixelId: string | null;
|
|
1577
1608
|
paystackPublicKey: string | null;
|
|
1578
1609
|
paystackSecretKey: string | null;
|
|
1579
1610
|
};
|
|
@@ -1695,7 +1726,9 @@ export declare function applyDiscount(cartId: string, code: string): Promise<{
|
|
|
1695
1726
|
includes?: boolean;
|
|
1696
1727
|
flatMap?: boolean;
|
|
1697
1728
|
flat?: boolean;
|
|
1729
|
+
at?: boolean;
|
|
1698
1730
|
};
|
|
1731
|
+
at: never;
|
|
1699
1732
|
};
|
|
1700
1733
|
} | {
|
|
1701
1734
|
[x: number]: string | number | boolean | {
|
|
@@ -1768,7 +1801,9 @@ export declare function applyDiscount(cartId: string, code: string): Promise<{
|
|
|
1768
1801
|
includes?: boolean;
|
|
1769
1802
|
flatMap?: boolean;
|
|
1770
1803
|
flat?: boolean;
|
|
1804
|
+
at?: boolean;
|
|
1771
1805
|
};
|
|
1806
|
+
at: never;
|
|
1772
1807
|
};
|
|
1773
1808
|
};
|
|
1774
1809
|
id: string;
|
|
@@ -1832,6 +1867,7 @@ export declare function removeDiscount(cartId: string): Promise<{
|
|
|
1832
1867
|
siteUrl: string;
|
|
1833
1868
|
domain: string;
|
|
1834
1869
|
metaPixelId: string | null;
|
|
1870
|
+
tiktokPixelId: string | null;
|
|
1835
1871
|
paystackPublicKey: string | null;
|
|
1836
1872
|
paystackSecretKey: string | null;
|
|
1837
1873
|
};
|
|
@@ -1953,7 +1989,9 @@ export declare function removeDiscount(cartId: string): Promise<{
|
|
|
1953
1989
|
includes?: boolean;
|
|
1954
1990
|
flatMap?: boolean;
|
|
1955
1991
|
flat?: boolean;
|
|
1992
|
+
at?: boolean;
|
|
1956
1993
|
};
|
|
1994
|
+
at: never;
|
|
1957
1995
|
};
|
|
1958
1996
|
} | {
|
|
1959
1997
|
[x: number]: string | number | boolean | {
|
|
@@ -2026,7 +2064,9 @@ export declare function removeDiscount(cartId: string): Promise<{
|
|
|
2026
2064
|
includes?: boolean;
|
|
2027
2065
|
flatMap?: boolean;
|
|
2028
2066
|
flat?: boolean;
|
|
2067
|
+
at?: boolean;
|
|
2029
2068
|
};
|
|
2069
|
+
at: never;
|
|
2030
2070
|
};
|
|
2031
2071
|
};
|
|
2032
2072
|
id: string;
|
|
@@ -2112,6 +2152,7 @@ export declare function checkoutCart(cartId: string, checkoutData: {
|
|
|
2112
2152
|
siteUrl: string;
|
|
2113
2153
|
domain: string;
|
|
2114
2154
|
metaPixelId: string | null;
|
|
2155
|
+
tiktokPixelId: string | null;
|
|
2115
2156
|
paystackPublicKey: string | null;
|
|
2116
2157
|
paystackSecretKey: string | null;
|
|
2117
2158
|
};
|
|
@@ -2229,7 +2270,9 @@ export declare function checkoutCart(cartId: string, checkoutData: {
|
|
|
2229
2270
|
includes?: boolean;
|
|
2230
2271
|
flatMap?: boolean;
|
|
2231
2272
|
flat?: boolean;
|
|
2273
|
+
at?: boolean;
|
|
2232
2274
|
};
|
|
2275
|
+
at: never;
|
|
2233
2276
|
};
|
|
2234
2277
|
} | {
|
|
2235
2278
|
[x: number]: string | number | boolean | {
|
|
@@ -2302,7 +2345,9 @@ export declare function checkoutCart(cartId: string, checkoutData: {
|
|
|
2302
2345
|
includes?: boolean;
|
|
2303
2346
|
flatMap?: boolean;
|
|
2304
2347
|
flat?: boolean;
|
|
2348
|
+
at?: boolean;
|
|
2305
2349
|
};
|
|
2350
|
+
at: never;
|
|
2306
2351
|
};
|
|
2307
2352
|
};
|
|
2308
2353
|
id: string;
|
|
@@ -36,6 +36,7 @@ export declare function fetchOrder(orderId: string, token: string): Promise<{
|
|
|
36
36
|
siteUrl: string;
|
|
37
37
|
domain: string;
|
|
38
38
|
metaPixelId: string | null;
|
|
39
|
+
tiktokPixelId: string | null;
|
|
39
40
|
paystackPublicKey: string | null;
|
|
40
41
|
paystackSecretKey: string | null;
|
|
41
42
|
};
|
|
@@ -153,7 +154,9 @@ export declare function fetchOrder(orderId: string, token: string): Promise<{
|
|
|
153
154
|
includes?: boolean;
|
|
154
155
|
flatMap?: boolean;
|
|
155
156
|
flat?: boolean;
|
|
157
|
+
at?: boolean;
|
|
156
158
|
};
|
|
159
|
+
at: never;
|
|
157
160
|
};
|
|
158
161
|
} | {
|
|
159
162
|
[x: number]: string | number | boolean | {
|
|
@@ -226,7 +229,9 @@ export declare function fetchOrder(orderId: string, token: string): Promise<{
|
|
|
226
229
|
includes?: boolean;
|
|
227
230
|
flatMap?: boolean;
|
|
228
231
|
flat?: boolean;
|
|
232
|
+
at?: boolean;
|
|
229
233
|
};
|
|
234
|
+
at: never;
|
|
230
235
|
};
|
|
231
236
|
};
|
|
232
237
|
id: string;
|
|
@@ -305,6 +310,7 @@ export declare function confirmOrder(orderId: string, token: string): Promise<{
|
|
|
305
310
|
siteUrl: string;
|
|
306
311
|
domain: string;
|
|
307
312
|
metaPixelId: string | null;
|
|
313
|
+
tiktokPixelId: string | null;
|
|
308
314
|
paystackPublicKey: string | null;
|
|
309
315
|
paystackSecretKey: string | null;
|
|
310
316
|
};
|
|
@@ -422,7 +428,9 @@ export declare function confirmOrder(orderId: string, token: string): Promise<{
|
|
|
422
428
|
includes?: boolean;
|
|
423
429
|
flatMap?: boolean;
|
|
424
430
|
flat?: boolean;
|
|
431
|
+
at?: boolean;
|
|
425
432
|
};
|
|
433
|
+
at: never;
|
|
426
434
|
};
|
|
427
435
|
} | {
|
|
428
436
|
[x: number]: string | number | boolean | {
|
|
@@ -495,7 +503,9 @@ export declare function confirmOrder(orderId: string, token: string): Promise<{
|
|
|
495
503
|
includes?: boolean;
|
|
496
504
|
flatMap?: boolean;
|
|
497
505
|
flat?: boolean;
|
|
506
|
+
at?: boolean;
|
|
498
507
|
};
|
|
508
|
+
at: never;
|
|
499
509
|
};
|
|
500
510
|
};
|
|
501
511
|
id: string;
|
|
@@ -24,6 +24,7 @@ export declare function fetchProductsByBrand(brandId: string): Promise<{
|
|
|
24
24
|
siteUrl: string;
|
|
25
25
|
domain: string;
|
|
26
26
|
metaPixelId: string | null;
|
|
27
|
+
tiktokPixelId: string | null;
|
|
27
28
|
paystackPublicKey: string | null;
|
|
28
29
|
paystackSecretKey: string | null;
|
|
29
30
|
};
|
|
@@ -121,7 +122,9 @@ export declare function fetchProductsByBrand(brandId: string): Promise<{
|
|
|
121
122
|
includes?: boolean;
|
|
122
123
|
flatMap?: boolean;
|
|
123
124
|
flat?: boolean;
|
|
125
|
+
at?: boolean;
|
|
124
126
|
};
|
|
127
|
+
at: never;
|
|
125
128
|
};
|
|
126
129
|
} | {
|
|
127
130
|
[x: number]: string | number | boolean | {
|
|
@@ -194,7 +197,9 @@ export declare function fetchProductsByBrand(brandId: string): Promise<{
|
|
|
194
197
|
includes?: boolean;
|
|
195
198
|
flatMap?: boolean;
|
|
196
199
|
flat?: boolean;
|
|
200
|
+
at?: boolean;
|
|
197
201
|
};
|
|
202
|
+
at: never;
|
|
198
203
|
};
|
|
199
204
|
}[]>;
|
|
200
205
|
/**
|
|
@@ -215,6 +220,7 @@ export declare function fetchProductBySlug(slug: string): Promise<{
|
|
|
215
220
|
siteUrl: string;
|
|
216
221
|
domain: string;
|
|
217
222
|
metaPixelId: string | null;
|
|
223
|
+
tiktokPixelId: string | null;
|
|
218
224
|
paystackPublicKey: string | null;
|
|
219
225
|
paystackSecretKey: string | null;
|
|
220
226
|
};
|
|
@@ -312,7 +318,9 @@ export declare function fetchProductBySlug(slug: string): Promise<{
|
|
|
312
318
|
includes?: boolean;
|
|
313
319
|
flatMap?: boolean;
|
|
314
320
|
flat?: boolean;
|
|
321
|
+
at?: boolean;
|
|
315
322
|
};
|
|
323
|
+
at: never;
|
|
316
324
|
};
|
|
317
325
|
} | {
|
|
318
326
|
[x: number]: string | number | boolean | {
|
|
@@ -385,6 +393,8 @@ export declare function fetchProductBySlug(slug: string): Promise<{
|
|
|
385
393
|
includes?: boolean;
|
|
386
394
|
flatMap?: boolean;
|
|
387
395
|
flat?: boolean;
|
|
396
|
+
at?: boolean;
|
|
388
397
|
};
|
|
398
|
+
at: never;
|
|
389
399
|
};
|
|
390
400
|
}>;
|
|
@@ -23,6 +23,7 @@ export declare function useListAbandonedCarts(params?: {
|
|
|
23
23
|
siteUrl: string;
|
|
24
24
|
domain: string;
|
|
25
25
|
metaPixelId: string | null;
|
|
26
|
+
tiktokPixelId: string | null;
|
|
26
27
|
paystackPublicKey: string | null;
|
|
27
28
|
paystackSecretKey: string | null;
|
|
28
29
|
};
|
|
@@ -144,7 +145,9 @@ export declare function useListAbandonedCarts(params?: {
|
|
|
144
145
|
includes?: boolean;
|
|
145
146
|
flatMap?: boolean;
|
|
146
147
|
flat?: boolean;
|
|
148
|
+
at?: boolean;
|
|
147
149
|
};
|
|
150
|
+
at: never;
|
|
148
151
|
};
|
|
149
152
|
} | {
|
|
150
153
|
[x: number]: string | number | boolean | {
|
|
@@ -217,7 +220,9 @@ export declare function useListAbandonedCarts(params?: {
|
|
|
217
220
|
includes?: boolean;
|
|
218
221
|
flatMap?: boolean;
|
|
219
222
|
flat?: boolean;
|
|
223
|
+
at?: boolean;
|
|
220
224
|
};
|
|
225
|
+
at: never;
|
|
221
226
|
};
|
|
222
227
|
};
|
|
223
228
|
id: string;
|
|
@@ -291,6 +296,7 @@ export declare function useGetAbandonedCart(cartId: string, options?: Omit<UseQu
|
|
|
291
296
|
siteUrl: string;
|
|
292
297
|
domain: string;
|
|
293
298
|
metaPixelId: string | null;
|
|
299
|
+
tiktokPixelId: string | null;
|
|
294
300
|
paystackPublicKey: string | null;
|
|
295
301
|
paystackSecretKey: string | null;
|
|
296
302
|
};
|
|
@@ -412,7 +418,9 @@ export declare function useGetAbandonedCart(cartId: string, options?: Omit<UseQu
|
|
|
412
418
|
includes?: boolean;
|
|
413
419
|
flatMap?: boolean;
|
|
414
420
|
flat?: boolean;
|
|
421
|
+
at?: boolean;
|
|
415
422
|
};
|
|
423
|
+
at: never;
|
|
416
424
|
};
|
|
417
425
|
} | {
|
|
418
426
|
[x: number]: string | number | boolean | {
|
|
@@ -485,7 +493,9 @@ export declare function useGetAbandonedCart(cartId: string, options?: Omit<UseQu
|
|
|
485
493
|
includes?: boolean;
|
|
486
494
|
flatMap?: boolean;
|
|
487
495
|
flat?: boolean;
|
|
496
|
+
at?: boolean;
|
|
488
497
|
};
|
|
498
|
+
at: never;
|
|
489
499
|
};
|
|
490
500
|
};
|
|
491
501
|
id: string;
|
|
@@ -14,6 +14,7 @@ export declare function useListBrands(options?: Omit<UseQueryOptions<Awaited<Ret
|
|
|
14
14
|
siteUrl: string;
|
|
15
15
|
domain: string;
|
|
16
16
|
metaPixelId: string | null;
|
|
17
|
+
tiktokPixelId: string | null;
|
|
17
18
|
paystackPublicKey: string | null;
|
|
18
19
|
paystackSecretKey: string | null;
|
|
19
20
|
createdAt: string;
|
|
@@ -31,6 +32,7 @@ export declare function useGetBrand(brandId: string, options?: Omit<UseQueryOpti
|
|
|
31
32
|
siteUrl: string;
|
|
32
33
|
domain: string;
|
|
33
34
|
metaPixelId: string | null;
|
|
35
|
+
tiktokPixelId: string | null;
|
|
34
36
|
paystackPublicKey: string | null;
|
|
35
37
|
paystackSecretKey: string | null;
|
|
36
38
|
createdAt: string;
|
|
@@ -48,6 +50,7 @@ export declare function useCreateBrand(options?: UseMutationOptions<Awaited<Retu
|
|
|
48
50
|
siteUrl: string;
|
|
49
51
|
domain: string;
|
|
50
52
|
metaPixelId: string | null;
|
|
53
|
+
tiktokPixelId: string | null;
|
|
51
54
|
paystackPublicKey: string | null;
|
|
52
55
|
paystackSecretKey: string | null;
|
|
53
56
|
createdAt: string;
|
|
@@ -70,6 +73,7 @@ export declare function useUpdateBrand(brandId: string, options?: UseMutationOpt
|
|
|
70
73
|
siteUrl: string;
|
|
71
74
|
domain: string;
|
|
72
75
|
metaPixelId: string | null;
|
|
76
|
+
tiktokPixelId: string | null;
|
|
73
77
|
paystackPublicKey: string | null;
|
|
74
78
|
paystackSecretKey: string | null;
|
|
75
79
|
createdAt: string;
|
|
@@ -38,6 +38,7 @@ export declare function useGetCustomerHistory(phone: string, options?: Omit<UseQ
|
|
|
38
38
|
siteUrl: string;
|
|
39
39
|
domain: string;
|
|
40
40
|
metaPixelId: string | null;
|
|
41
|
+
tiktokPixelId: string | null;
|
|
41
42
|
paystackPublicKey: string | null;
|
|
42
43
|
paystackSecretKey: string | null;
|
|
43
44
|
};
|
|
@@ -155,7 +156,9 @@ export declare function useGetCustomerHistory(phone: string, options?: Omit<UseQ
|
|
|
155
156
|
includes?: boolean;
|
|
156
157
|
flatMap?: boolean;
|
|
157
158
|
flat?: boolean;
|
|
159
|
+
at?: boolean;
|
|
158
160
|
};
|
|
161
|
+
at: never;
|
|
159
162
|
};
|
|
160
163
|
} | {
|
|
161
164
|
[x: number]: string | number | boolean | {
|
|
@@ -228,7 +231,9 @@ export declare function useGetCustomerHistory(phone: string, options?: Omit<UseQ
|
|
|
228
231
|
includes?: boolean;
|
|
229
232
|
flatMap?: boolean;
|
|
230
233
|
flat?: boolean;
|
|
234
|
+
at?: boolean;
|
|
231
235
|
};
|
|
236
|
+
at: never;
|
|
232
237
|
};
|
|
233
238
|
};
|
|
234
239
|
id: string;
|
|
@@ -24,6 +24,7 @@ export declare function useListStates(options?: Omit<UseQueryOptions<Awaited<Ret
|
|
|
24
24
|
siteUrl: string;
|
|
25
25
|
domain: string;
|
|
26
26
|
metaPixelId: string | null;
|
|
27
|
+
tiktokPixelId: string | null;
|
|
27
28
|
paystackPublicKey: string | null;
|
|
28
29
|
paystackSecretKey: string | null;
|
|
29
30
|
};
|
|
@@ -135,6 +136,7 @@ export declare function useListDeliveryZones(params?: {
|
|
|
135
136
|
siteUrl: string;
|
|
136
137
|
domain: string;
|
|
137
138
|
metaPixelId: string | null;
|
|
139
|
+
tiktokPixelId: string | null;
|
|
138
140
|
paystackPublicKey: string | null;
|
|
139
141
|
paystackSecretKey: string | null;
|
|
140
142
|
};
|
|
@@ -180,6 +182,7 @@ export declare function useCreateDeliveryZone(options?: UseMutationOptions<Await
|
|
|
180
182
|
siteUrl: string;
|
|
181
183
|
domain: string;
|
|
182
184
|
metaPixelId: string | null;
|
|
185
|
+
tiktokPixelId: string | null;
|
|
183
186
|
paystackPublicKey: string | null;
|
|
184
187
|
paystackSecretKey: string | null;
|
|
185
188
|
};
|
|
@@ -240,6 +243,7 @@ export declare function useUpdateDeliveryZone(zoneId: string, options?: UseMutat
|
|
|
240
243
|
siteUrl: string;
|
|
241
244
|
domain: string;
|
|
242
245
|
metaPixelId: string | null;
|
|
246
|
+
tiktokPixelId: string | null;
|
|
243
247
|
paystackPublicKey: string | null;
|
|
244
248
|
paystackSecretKey: string | null;
|
|
245
249
|
};
|
|
@@ -32,6 +32,7 @@ export declare function useListDiscountCodes(params?: {
|
|
|
32
32
|
siteUrl: string;
|
|
33
33
|
domain: string;
|
|
34
34
|
metaPixelId: string | null;
|
|
35
|
+
tiktokPixelId: string | null;
|
|
35
36
|
paystackPublicKey: string | null;
|
|
36
37
|
paystackSecretKey: string | null;
|
|
37
38
|
};
|
|
@@ -84,6 +85,7 @@ export declare function useGetDiscountCode(codeId: string, options?: Omit<UseQue
|
|
|
84
85
|
siteUrl: string;
|
|
85
86
|
domain: string;
|
|
86
87
|
metaPixelId: string | null;
|
|
88
|
+
tiktokPixelId: string | null;
|
|
87
89
|
paystackPublicKey: string | null;
|
|
88
90
|
paystackSecretKey: string | null;
|
|
89
91
|
};
|
|
@@ -135,6 +137,7 @@ export declare function useCreateDiscountCode(options?: UseMutationOptions<Await
|
|
|
135
137
|
siteUrl: string;
|
|
136
138
|
domain: string;
|
|
137
139
|
metaPixelId: string | null;
|
|
140
|
+
tiktokPixelId: string | null;
|
|
138
141
|
paystackPublicKey: string | null;
|
|
139
142
|
paystackSecretKey: string | null;
|
|
140
143
|
};
|
|
@@ -181,6 +184,7 @@ export declare function useUpdateDiscountCode(codeId: string, options?: UseMutat
|
|
|
181
184
|
siteUrl: string;
|
|
182
185
|
domain: string;
|
|
183
186
|
metaPixelId: string | null;
|
|
187
|
+
tiktokPixelId: string | null;
|
|
184
188
|
paystackPublicKey: string | null;
|
|
185
189
|
paystackSecretKey: string | null;
|
|
186
190
|
};
|
|
@@ -262,6 +266,7 @@ export declare function useGetDiscountCodeAnalytics(codeId: string, options?: Om
|
|
|
262
266
|
siteUrl: string;
|
|
263
267
|
domain: string;
|
|
264
268
|
metaPixelId: string | null;
|
|
269
|
+
tiktokPixelId: string | null;
|
|
265
270
|
paystackPublicKey: string | null;
|
|
266
271
|
paystackSecretKey: string | null;
|
|
267
272
|
};
|
|
@@ -121,7 +121,9 @@ export declare function useGetInventoryTransactions(params?: {
|
|
|
121
121
|
includes?: boolean;
|
|
122
122
|
flatMap?: boolean;
|
|
123
123
|
flat?: boolean;
|
|
124
|
+
at?: boolean;
|
|
124
125
|
};
|
|
126
|
+
at: never;
|
|
125
127
|
};
|
|
126
128
|
} | {
|
|
127
129
|
[x: number]: string | number | boolean | {
|
|
@@ -194,7 +196,9 @@ export declare function useGetInventoryTransactions(params?: {
|
|
|
194
196
|
includes?: boolean;
|
|
195
197
|
flatMap?: boolean;
|
|
196
198
|
flat?: boolean;
|
|
199
|
+
at?: boolean;
|
|
197
200
|
};
|
|
201
|
+
at: never;
|
|
198
202
|
};
|
|
199
203
|
createdAt: string;
|
|
200
204
|
variant: {
|