@instockng/api-client 1.0.10 → 1.0.12
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 +18 -36
- package/dist/fetchers/orders.d.ts +4 -8
- package/dist/fetchers/products.d.ts +4 -8
- package/dist/hooks/admin/abandoned-carts.d.ts +4 -8
- package/dist/hooks/admin/brands.d.ts +8 -0
- package/dist/hooks/admin/customers.d.ts +2 -4
- package/dist/hooks/admin/delivery-zones.d.ts +8 -0
- package/dist/hooks/admin/discount-codes.d.ts +10 -0
- package/dist/hooks/admin/inventory.d.ts +0 -4
- package/dist/hooks/admin/orders.d.ts +12 -24
- package/dist/hooks/admin/products.d.ts +4 -8
- package/dist/hooks/admin/stats.d.ts +2 -4
- package/dist/hooks/admin/warehouses.d.ts +2 -4
- package/dist/hooks/public/brands.d.ts +1 -0
- package/dist/hooks/public/carts.d.ts +18 -36
- package/dist/hooks/public/orders.d.ts +4 -8
- package/dist/hooks/public/products.d.ts +4 -8
- package/dist/rpc-client.d.ts +83 -116
- package/package.json +2 -2
package/dist/fetchers/carts.d.ts
CHANGED
|
@@ -25,6 +25,8 @@ export declare function fetchCart(cartId: string): Promise<{
|
|
|
25
25
|
siteUrl: string;
|
|
26
26
|
domain: string;
|
|
27
27
|
metaPixelId: string | null;
|
|
28
|
+
paystackPublicKey: string | null;
|
|
29
|
+
paystackSecretKey: string | null;
|
|
28
30
|
};
|
|
29
31
|
customerPhone: string;
|
|
30
32
|
customerEmail: string;
|
|
@@ -144,9 +146,7 @@ export declare function fetchCart(cartId: string): Promise<{
|
|
|
144
146
|
includes?: boolean;
|
|
145
147
|
flatMap?: boolean;
|
|
146
148
|
flat?: boolean;
|
|
147
|
-
at?: boolean;
|
|
148
149
|
};
|
|
149
|
-
at: never;
|
|
150
150
|
};
|
|
151
151
|
} | {
|
|
152
152
|
[x: number]: string | number | boolean | {
|
|
@@ -219,9 +219,7 @@ export declare function fetchCart(cartId: string): Promise<{
|
|
|
219
219
|
includes?: boolean;
|
|
220
220
|
flatMap?: boolean;
|
|
221
221
|
flat?: boolean;
|
|
222
|
-
at?: boolean;
|
|
223
222
|
};
|
|
224
|
-
at: never;
|
|
225
223
|
};
|
|
226
224
|
};
|
|
227
225
|
id: string;
|
|
@@ -285,6 +283,8 @@ export declare function createCart(brandSlug: string): Promise<{
|
|
|
285
283
|
siteUrl: string;
|
|
286
284
|
domain: string;
|
|
287
285
|
metaPixelId: string | null;
|
|
286
|
+
paystackPublicKey: string | null;
|
|
287
|
+
paystackSecretKey: string | null;
|
|
288
288
|
};
|
|
289
289
|
customerPhone: string;
|
|
290
290
|
customerEmail: string;
|
|
@@ -404,9 +404,7 @@ export declare function createCart(brandSlug: string): Promise<{
|
|
|
404
404
|
includes?: boolean;
|
|
405
405
|
flatMap?: boolean;
|
|
406
406
|
flat?: boolean;
|
|
407
|
-
at?: boolean;
|
|
408
407
|
};
|
|
409
|
-
at: never;
|
|
410
408
|
};
|
|
411
409
|
} | {
|
|
412
410
|
[x: number]: string | number | boolean | {
|
|
@@ -479,9 +477,7 @@ export declare function createCart(brandSlug: string): Promise<{
|
|
|
479
477
|
includes?: boolean;
|
|
480
478
|
flatMap?: boolean;
|
|
481
479
|
flat?: boolean;
|
|
482
|
-
at?: boolean;
|
|
483
480
|
};
|
|
484
|
-
at: never;
|
|
485
481
|
};
|
|
486
482
|
};
|
|
487
483
|
id: string;
|
|
@@ -548,6 +544,8 @@ export declare function updateCart(cartId: string, data: {
|
|
|
548
544
|
siteUrl: string;
|
|
549
545
|
domain: string;
|
|
550
546
|
metaPixelId: string | null;
|
|
547
|
+
paystackPublicKey: string | null;
|
|
548
|
+
paystackSecretKey: string | null;
|
|
551
549
|
};
|
|
552
550
|
customerPhone: string;
|
|
553
551
|
customerEmail: string;
|
|
@@ -667,9 +665,7 @@ export declare function updateCart(cartId: string, data: {
|
|
|
667
665
|
includes?: boolean;
|
|
668
666
|
flatMap?: boolean;
|
|
669
667
|
flat?: boolean;
|
|
670
|
-
at?: boolean;
|
|
671
668
|
};
|
|
672
|
-
at: never;
|
|
673
669
|
};
|
|
674
670
|
} | {
|
|
675
671
|
[x: number]: string | number | boolean | {
|
|
@@ -742,9 +738,7 @@ export declare function updateCart(cartId: string, data: {
|
|
|
742
738
|
includes?: boolean;
|
|
743
739
|
flatMap?: boolean;
|
|
744
740
|
flat?: boolean;
|
|
745
|
-
at?: boolean;
|
|
746
741
|
};
|
|
747
|
-
at: never;
|
|
748
742
|
};
|
|
749
743
|
};
|
|
750
744
|
id: string;
|
|
@@ -812,6 +806,8 @@ export declare function addCartItem(cartId: string, sku: string, quantity: numbe
|
|
|
812
806
|
siteUrl: string;
|
|
813
807
|
domain: string;
|
|
814
808
|
metaPixelId: string | null;
|
|
809
|
+
paystackPublicKey: string | null;
|
|
810
|
+
paystackSecretKey: string | null;
|
|
815
811
|
};
|
|
816
812
|
customerPhone: string;
|
|
817
813
|
customerEmail: string;
|
|
@@ -931,9 +927,7 @@ export declare function addCartItem(cartId: string, sku: string, quantity: numbe
|
|
|
931
927
|
includes?: boolean;
|
|
932
928
|
flatMap?: boolean;
|
|
933
929
|
flat?: boolean;
|
|
934
|
-
at?: boolean;
|
|
935
930
|
};
|
|
936
|
-
at: never;
|
|
937
931
|
};
|
|
938
932
|
} | {
|
|
939
933
|
[x: number]: string | number | boolean | {
|
|
@@ -1006,9 +1000,7 @@ export declare function addCartItem(cartId: string, sku: string, quantity: numbe
|
|
|
1006
1000
|
includes?: boolean;
|
|
1007
1001
|
flatMap?: boolean;
|
|
1008
1002
|
flat?: boolean;
|
|
1009
|
-
at?: boolean;
|
|
1010
1003
|
};
|
|
1011
|
-
at: never;
|
|
1012
1004
|
};
|
|
1013
1005
|
};
|
|
1014
1006
|
id: string;
|
|
@@ -1074,6 +1066,8 @@ export declare function updateCartItem(cartId: string, itemId: string, quantity:
|
|
|
1074
1066
|
siteUrl: string;
|
|
1075
1067
|
domain: string;
|
|
1076
1068
|
metaPixelId: string | null;
|
|
1069
|
+
paystackPublicKey: string | null;
|
|
1070
|
+
paystackSecretKey: string | null;
|
|
1077
1071
|
};
|
|
1078
1072
|
customerPhone: string;
|
|
1079
1073
|
customerEmail: string;
|
|
@@ -1193,9 +1187,7 @@ export declare function updateCartItem(cartId: string, itemId: string, quantity:
|
|
|
1193
1187
|
includes?: boolean;
|
|
1194
1188
|
flatMap?: boolean;
|
|
1195
1189
|
flat?: boolean;
|
|
1196
|
-
at?: boolean;
|
|
1197
1190
|
};
|
|
1198
|
-
at: never;
|
|
1199
1191
|
};
|
|
1200
1192
|
} | {
|
|
1201
1193
|
[x: number]: string | number | boolean | {
|
|
@@ -1268,9 +1260,7 @@ export declare function updateCartItem(cartId: string, itemId: string, quantity:
|
|
|
1268
1260
|
includes?: boolean;
|
|
1269
1261
|
flatMap?: boolean;
|
|
1270
1262
|
flat?: boolean;
|
|
1271
|
-
at?: boolean;
|
|
1272
1263
|
};
|
|
1273
|
-
at: never;
|
|
1274
1264
|
};
|
|
1275
1265
|
};
|
|
1276
1266
|
id: string;
|
|
@@ -1330,6 +1320,8 @@ export declare function removeCartItem(cartId: string, itemId: string): Promise<
|
|
|
1330
1320
|
siteUrl: string;
|
|
1331
1321
|
domain: string;
|
|
1332
1322
|
metaPixelId: string | null;
|
|
1323
|
+
paystackPublicKey: string | null;
|
|
1324
|
+
paystackSecretKey: string | null;
|
|
1333
1325
|
};
|
|
1334
1326
|
customerPhone: string;
|
|
1335
1327
|
customerEmail: string;
|
|
@@ -1449,9 +1441,7 @@ export declare function removeCartItem(cartId: string, itemId: string): Promise<
|
|
|
1449
1441
|
includes?: boolean;
|
|
1450
1442
|
flatMap?: boolean;
|
|
1451
1443
|
flat?: boolean;
|
|
1452
|
-
at?: boolean;
|
|
1453
1444
|
};
|
|
1454
|
-
at: never;
|
|
1455
1445
|
};
|
|
1456
1446
|
} | {
|
|
1457
1447
|
[x: number]: string | number | boolean | {
|
|
@@ -1524,9 +1514,7 @@ export declare function removeCartItem(cartId: string, itemId: string): Promise<
|
|
|
1524
1514
|
includes?: boolean;
|
|
1525
1515
|
flatMap?: boolean;
|
|
1526
1516
|
flat?: boolean;
|
|
1527
|
-
at?: boolean;
|
|
1528
1517
|
};
|
|
1529
|
-
at: never;
|
|
1530
1518
|
};
|
|
1531
1519
|
};
|
|
1532
1520
|
id: string;
|
|
@@ -1586,6 +1574,8 @@ export declare function applyDiscount(cartId: string, code: string): Promise<{
|
|
|
1586
1574
|
siteUrl: string;
|
|
1587
1575
|
domain: string;
|
|
1588
1576
|
metaPixelId: string | null;
|
|
1577
|
+
paystackPublicKey: string | null;
|
|
1578
|
+
paystackSecretKey: string | null;
|
|
1589
1579
|
};
|
|
1590
1580
|
customerPhone: string;
|
|
1591
1581
|
customerEmail: string;
|
|
@@ -1705,9 +1695,7 @@ export declare function applyDiscount(cartId: string, code: string): Promise<{
|
|
|
1705
1695
|
includes?: boolean;
|
|
1706
1696
|
flatMap?: boolean;
|
|
1707
1697
|
flat?: boolean;
|
|
1708
|
-
at?: boolean;
|
|
1709
1698
|
};
|
|
1710
|
-
at: never;
|
|
1711
1699
|
};
|
|
1712
1700
|
} | {
|
|
1713
1701
|
[x: number]: string | number | boolean | {
|
|
@@ -1780,9 +1768,7 @@ export declare function applyDiscount(cartId: string, code: string): Promise<{
|
|
|
1780
1768
|
includes?: boolean;
|
|
1781
1769
|
flatMap?: boolean;
|
|
1782
1770
|
flat?: boolean;
|
|
1783
|
-
at?: boolean;
|
|
1784
1771
|
};
|
|
1785
|
-
at: never;
|
|
1786
1772
|
};
|
|
1787
1773
|
};
|
|
1788
1774
|
id: string;
|
|
@@ -1846,6 +1832,8 @@ export declare function removeDiscount(cartId: string): Promise<{
|
|
|
1846
1832
|
siteUrl: string;
|
|
1847
1833
|
domain: string;
|
|
1848
1834
|
metaPixelId: string | null;
|
|
1835
|
+
paystackPublicKey: string | null;
|
|
1836
|
+
paystackSecretKey: string | null;
|
|
1849
1837
|
};
|
|
1850
1838
|
customerPhone: string;
|
|
1851
1839
|
customerEmail: string;
|
|
@@ -1965,9 +1953,7 @@ export declare function removeDiscount(cartId: string): Promise<{
|
|
|
1965
1953
|
includes?: boolean;
|
|
1966
1954
|
flatMap?: boolean;
|
|
1967
1955
|
flat?: boolean;
|
|
1968
|
-
at?: boolean;
|
|
1969
1956
|
};
|
|
1970
|
-
at: never;
|
|
1971
1957
|
};
|
|
1972
1958
|
} | {
|
|
1973
1959
|
[x: number]: string | number | boolean | {
|
|
@@ -2040,9 +2026,7 @@ export declare function removeDiscount(cartId: string): Promise<{
|
|
|
2040
2026
|
includes?: boolean;
|
|
2041
2027
|
flatMap?: boolean;
|
|
2042
2028
|
flat?: boolean;
|
|
2043
|
-
at?: boolean;
|
|
2044
2029
|
};
|
|
2045
|
-
at: never;
|
|
2046
2030
|
};
|
|
2047
2031
|
};
|
|
2048
2032
|
id: string;
|
|
@@ -2128,6 +2112,8 @@ export declare function checkoutCart(cartId: string, checkoutData: {
|
|
|
2128
2112
|
siteUrl: string;
|
|
2129
2113
|
domain: string;
|
|
2130
2114
|
metaPixelId: string | null;
|
|
2115
|
+
paystackPublicKey: string | null;
|
|
2116
|
+
paystackSecretKey: string | null;
|
|
2131
2117
|
};
|
|
2132
2118
|
deliveryZone: {
|
|
2133
2119
|
deliveryCost: number;
|
|
@@ -2243,9 +2229,7 @@ export declare function checkoutCart(cartId: string, checkoutData: {
|
|
|
2243
2229
|
includes?: boolean;
|
|
2244
2230
|
flatMap?: boolean;
|
|
2245
2231
|
flat?: boolean;
|
|
2246
|
-
at?: boolean;
|
|
2247
2232
|
};
|
|
2248
|
-
at: never;
|
|
2249
2233
|
};
|
|
2250
2234
|
} | {
|
|
2251
2235
|
[x: number]: string | number | boolean | {
|
|
@@ -2318,9 +2302,7 @@ export declare function checkoutCart(cartId: string, checkoutData: {
|
|
|
2318
2302
|
includes?: boolean;
|
|
2319
2303
|
flatMap?: boolean;
|
|
2320
2304
|
flat?: boolean;
|
|
2321
|
-
at?: boolean;
|
|
2322
2305
|
};
|
|
2323
|
-
at: never;
|
|
2324
2306
|
};
|
|
2325
2307
|
};
|
|
2326
2308
|
id: string;
|
|
@@ -36,6 +36,8 @@ export declare function fetchOrder(orderId: string, token: string): Promise<{
|
|
|
36
36
|
siteUrl: string;
|
|
37
37
|
domain: string;
|
|
38
38
|
metaPixelId: string | null;
|
|
39
|
+
paystackPublicKey: string | null;
|
|
40
|
+
paystackSecretKey: string | null;
|
|
39
41
|
};
|
|
40
42
|
deliveryZone: {
|
|
41
43
|
deliveryCost: number;
|
|
@@ -151,9 +153,7 @@ export declare function fetchOrder(orderId: string, token: string): Promise<{
|
|
|
151
153
|
includes?: boolean;
|
|
152
154
|
flatMap?: boolean;
|
|
153
155
|
flat?: boolean;
|
|
154
|
-
at?: boolean;
|
|
155
156
|
};
|
|
156
|
-
at: never;
|
|
157
157
|
};
|
|
158
158
|
} | {
|
|
159
159
|
[x: number]: string | number | boolean | {
|
|
@@ -226,9 +226,7 @@ export declare function fetchOrder(orderId: string, token: string): Promise<{
|
|
|
226
226
|
includes?: boolean;
|
|
227
227
|
flatMap?: boolean;
|
|
228
228
|
flat?: boolean;
|
|
229
|
-
at?: boolean;
|
|
230
229
|
};
|
|
231
|
-
at: never;
|
|
232
230
|
};
|
|
233
231
|
};
|
|
234
232
|
id: string;
|
|
@@ -307,6 +305,8 @@ export declare function confirmOrder(orderId: string, token: string): Promise<{
|
|
|
307
305
|
siteUrl: string;
|
|
308
306
|
domain: string;
|
|
309
307
|
metaPixelId: string | null;
|
|
308
|
+
paystackPublicKey: string | null;
|
|
309
|
+
paystackSecretKey: string | null;
|
|
310
310
|
};
|
|
311
311
|
deliveryZone: {
|
|
312
312
|
deliveryCost: number;
|
|
@@ -422,9 +422,7 @@ export declare function confirmOrder(orderId: string, token: string): Promise<{
|
|
|
422
422
|
includes?: boolean;
|
|
423
423
|
flatMap?: boolean;
|
|
424
424
|
flat?: boolean;
|
|
425
|
-
at?: boolean;
|
|
426
425
|
};
|
|
427
|
-
at: never;
|
|
428
426
|
};
|
|
429
427
|
} | {
|
|
430
428
|
[x: number]: string | number | boolean | {
|
|
@@ -497,9 +495,7 @@ export declare function confirmOrder(orderId: string, token: string): Promise<{
|
|
|
497
495
|
includes?: boolean;
|
|
498
496
|
flatMap?: boolean;
|
|
499
497
|
flat?: boolean;
|
|
500
|
-
at?: boolean;
|
|
501
498
|
};
|
|
502
|
-
at: never;
|
|
503
499
|
};
|
|
504
500
|
};
|
|
505
501
|
id: string;
|
|
@@ -24,6 +24,8 @@ export declare function fetchProductsByBrand(brandId: string): Promise<{
|
|
|
24
24
|
siteUrl: string;
|
|
25
25
|
domain: string;
|
|
26
26
|
metaPixelId: string | null;
|
|
27
|
+
paystackPublicKey: string | null;
|
|
28
|
+
paystackSecretKey: string | null;
|
|
27
29
|
};
|
|
28
30
|
variants: {
|
|
29
31
|
createdAt: string;
|
|
@@ -119,9 +121,7 @@ export declare function fetchProductsByBrand(brandId: string): Promise<{
|
|
|
119
121
|
includes?: boolean;
|
|
120
122
|
flatMap?: boolean;
|
|
121
123
|
flat?: boolean;
|
|
122
|
-
at?: boolean;
|
|
123
124
|
};
|
|
124
|
-
at: never;
|
|
125
125
|
};
|
|
126
126
|
} | {
|
|
127
127
|
[x: number]: string | number | boolean | {
|
|
@@ -194,9 +194,7 @@ export declare function fetchProductsByBrand(brandId: string): Promise<{
|
|
|
194
194
|
includes?: boolean;
|
|
195
195
|
flatMap?: boolean;
|
|
196
196
|
flat?: boolean;
|
|
197
|
-
at?: boolean;
|
|
198
197
|
};
|
|
199
|
-
at: never;
|
|
200
198
|
};
|
|
201
199
|
}[]>;
|
|
202
200
|
/**
|
|
@@ -217,6 +215,8 @@ export declare function fetchProductBySlug(slug: string): Promise<{
|
|
|
217
215
|
siteUrl: string;
|
|
218
216
|
domain: string;
|
|
219
217
|
metaPixelId: string | null;
|
|
218
|
+
paystackPublicKey: string | null;
|
|
219
|
+
paystackSecretKey: string | null;
|
|
220
220
|
};
|
|
221
221
|
variants: {
|
|
222
222
|
createdAt: string;
|
|
@@ -312,9 +312,7 @@ export declare function fetchProductBySlug(slug: string): Promise<{
|
|
|
312
312
|
includes?: boolean;
|
|
313
313
|
flatMap?: boolean;
|
|
314
314
|
flat?: boolean;
|
|
315
|
-
at?: boolean;
|
|
316
315
|
};
|
|
317
|
-
at: never;
|
|
318
316
|
};
|
|
319
317
|
} | {
|
|
320
318
|
[x: number]: string | number | boolean | {
|
|
@@ -387,8 +385,6 @@ export declare function fetchProductBySlug(slug: string): Promise<{
|
|
|
387
385
|
includes?: boolean;
|
|
388
386
|
flatMap?: boolean;
|
|
389
387
|
flat?: boolean;
|
|
390
|
-
at?: boolean;
|
|
391
388
|
};
|
|
392
|
-
at: never;
|
|
393
389
|
};
|
|
394
390
|
}>;
|
|
@@ -23,6 +23,8 @@ export declare function useListAbandonedCarts(params?: {
|
|
|
23
23
|
siteUrl: string;
|
|
24
24
|
domain: string;
|
|
25
25
|
metaPixelId: string | null;
|
|
26
|
+
paystackPublicKey: string | null;
|
|
27
|
+
paystackSecretKey: string | null;
|
|
26
28
|
};
|
|
27
29
|
customerPhone: string;
|
|
28
30
|
customerEmail: string;
|
|
@@ -142,9 +144,7 @@ export declare function useListAbandonedCarts(params?: {
|
|
|
142
144
|
includes?: boolean;
|
|
143
145
|
flatMap?: boolean;
|
|
144
146
|
flat?: boolean;
|
|
145
|
-
at?: boolean;
|
|
146
147
|
};
|
|
147
|
-
at: never;
|
|
148
148
|
};
|
|
149
149
|
} | {
|
|
150
150
|
[x: number]: string | number | boolean | {
|
|
@@ -217,9 +217,7 @@ export declare function useListAbandonedCarts(params?: {
|
|
|
217
217
|
includes?: boolean;
|
|
218
218
|
flatMap?: boolean;
|
|
219
219
|
flat?: boolean;
|
|
220
|
-
at?: boolean;
|
|
221
220
|
};
|
|
222
|
-
at: never;
|
|
223
221
|
};
|
|
224
222
|
};
|
|
225
223
|
id: string;
|
|
@@ -293,6 +291,8 @@ export declare function useGetAbandonedCart(cartId: string, options?: Omit<UseQu
|
|
|
293
291
|
siteUrl: string;
|
|
294
292
|
domain: string;
|
|
295
293
|
metaPixelId: string | null;
|
|
294
|
+
paystackPublicKey: string | null;
|
|
295
|
+
paystackSecretKey: string | null;
|
|
296
296
|
};
|
|
297
297
|
customerPhone: string;
|
|
298
298
|
customerEmail: string;
|
|
@@ -412,9 +412,7 @@ export declare function useGetAbandonedCart(cartId: string, options?: Omit<UseQu
|
|
|
412
412
|
includes?: boolean;
|
|
413
413
|
flatMap?: boolean;
|
|
414
414
|
flat?: boolean;
|
|
415
|
-
at?: boolean;
|
|
416
415
|
};
|
|
417
|
-
at: never;
|
|
418
416
|
};
|
|
419
417
|
} | {
|
|
420
418
|
[x: number]: string | number | boolean | {
|
|
@@ -487,9 +485,7 @@ export declare function useGetAbandonedCart(cartId: string, options?: Omit<UseQu
|
|
|
487
485
|
includes?: boolean;
|
|
488
486
|
flatMap?: boolean;
|
|
489
487
|
flat?: boolean;
|
|
490
|
-
at?: boolean;
|
|
491
488
|
};
|
|
492
|
-
at: never;
|
|
493
489
|
};
|
|
494
490
|
};
|
|
495
491
|
id: string;
|
|
@@ -14,6 +14,8 @@ export declare function useListBrands(options?: Omit<UseQueryOptions<Awaited<Ret
|
|
|
14
14
|
siteUrl: string;
|
|
15
15
|
domain: string;
|
|
16
16
|
metaPixelId: string | null;
|
|
17
|
+
paystackPublicKey: string | null;
|
|
18
|
+
paystackSecretKey: string | null;
|
|
17
19
|
createdAt: string;
|
|
18
20
|
updatedAt: string;
|
|
19
21
|
deletedAt: string;
|
|
@@ -29,6 +31,8 @@ export declare function useGetBrand(brandId: string, options?: Omit<UseQueryOpti
|
|
|
29
31
|
siteUrl: string;
|
|
30
32
|
domain: string;
|
|
31
33
|
metaPixelId: string | null;
|
|
34
|
+
paystackPublicKey: string | null;
|
|
35
|
+
paystackSecretKey: string | null;
|
|
32
36
|
createdAt: string;
|
|
33
37
|
updatedAt: string;
|
|
34
38
|
deletedAt: string;
|
|
@@ -44,6 +48,8 @@ export declare function useCreateBrand(options?: UseMutationOptions<Awaited<Retu
|
|
|
44
48
|
siteUrl: string;
|
|
45
49
|
domain: string;
|
|
46
50
|
metaPixelId: string | null;
|
|
51
|
+
paystackPublicKey: string | null;
|
|
52
|
+
paystackSecretKey: string | null;
|
|
47
53
|
createdAt: string;
|
|
48
54
|
updatedAt: string;
|
|
49
55
|
deletedAt: string;
|
|
@@ -64,6 +70,8 @@ export declare function useUpdateBrand(brandId: string, options?: UseMutationOpt
|
|
|
64
70
|
siteUrl: string;
|
|
65
71
|
domain: string;
|
|
66
72
|
metaPixelId: string | null;
|
|
73
|
+
paystackPublicKey: string | null;
|
|
74
|
+
paystackSecretKey: string | null;
|
|
67
75
|
createdAt: string;
|
|
68
76
|
updatedAt: string;
|
|
69
77
|
deletedAt: string;
|
|
@@ -38,6 +38,8 @@ export declare function useGetCustomerHistory(phone: string, options?: Omit<UseQ
|
|
|
38
38
|
siteUrl: string;
|
|
39
39
|
domain: string;
|
|
40
40
|
metaPixelId: string | null;
|
|
41
|
+
paystackPublicKey: string | null;
|
|
42
|
+
paystackSecretKey: string | null;
|
|
41
43
|
};
|
|
42
44
|
deliveryZone: {
|
|
43
45
|
deliveryCost: number;
|
|
@@ -153,9 +155,7 @@ export declare function useGetCustomerHistory(phone: string, options?: Omit<UseQ
|
|
|
153
155
|
includes?: boolean;
|
|
154
156
|
flatMap?: boolean;
|
|
155
157
|
flat?: boolean;
|
|
156
|
-
at?: boolean;
|
|
157
158
|
};
|
|
158
|
-
at: never;
|
|
159
159
|
};
|
|
160
160
|
} | {
|
|
161
161
|
[x: number]: string | number | boolean | {
|
|
@@ -228,9 +228,7 @@ export declare function useGetCustomerHistory(phone: string, options?: Omit<UseQ
|
|
|
228
228
|
includes?: boolean;
|
|
229
229
|
flatMap?: boolean;
|
|
230
230
|
flat?: boolean;
|
|
231
|
-
at?: boolean;
|
|
232
231
|
};
|
|
233
|
-
at: never;
|
|
234
232
|
};
|
|
235
233
|
};
|
|
236
234
|
id: string;
|
|
@@ -24,6 +24,8 @@ export declare function useListStates(options?: Omit<UseQueryOptions<Awaited<Ret
|
|
|
24
24
|
siteUrl: string;
|
|
25
25
|
domain: string;
|
|
26
26
|
metaPixelId: string | null;
|
|
27
|
+
paystackPublicKey: string | null;
|
|
28
|
+
paystackSecretKey: string | null;
|
|
27
29
|
};
|
|
28
30
|
stateName: string;
|
|
29
31
|
brandName: string;
|
|
@@ -133,6 +135,8 @@ export declare function useListDeliveryZones(params?: {
|
|
|
133
135
|
siteUrl: string;
|
|
134
136
|
domain: string;
|
|
135
137
|
metaPixelId: string | null;
|
|
138
|
+
paystackPublicKey: string | null;
|
|
139
|
+
paystackSecretKey: string | null;
|
|
136
140
|
};
|
|
137
141
|
stateName: string;
|
|
138
142
|
brandName: string;
|
|
@@ -176,6 +180,8 @@ export declare function useCreateDeliveryZone(options?: UseMutationOptions<Await
|
|
|
176
180
|
siteUrl: string;
|
|
177
181
|
domain: string;
|
|
178
182
|
metaPixelId: string | null;
|
|
183
|
+
paystackPublicKey: string | null;
|
|
184
|
+
paystackSecretKey: string | null;
|
|
179
185
|
};
|
|
180
186
|
stateName: string;
|
|
181
187
|
brandName: string;
|
|
@@ -234,6 +240,8 @@ export declare function useUpdateDeliveryZone(zoneId: string, options?: UseMutat
|
|
|
234
240
|
siteUrl: string;
|
|
235
241
|
domain: string;
|
|
236
242
|
metaPixelId: string | null;
|
|
243
|
+
paystackPublicKey: string | null;
|
|
244
|
+
paystackSecretKey: string | null;
|
|
237
245
|
};
|
|
238
246
|
stateName: string;
|
|
239
247
|
brandName: string;
|
|
@@ -32,6 +32,8 @@ export declare function useListDiscountCodes(params?: {
|
|
|
32
32
|
siteUrl: string;
|
|
33
33
|
domain: string;
|
|
34
34
|
metaPixelId: string | null;
|
|
35
|
+
paystackPublicKey: string | null;
|
|
36
|
+
paystackSecretKey: string | null;
|
|
35
37
|
};
|
|
36
38
|
isExpired: boolean;
|
|
37
39
|
usagePercentage: number;
|
|
@@ -82,6 +84,8 @@ export declare function useGetDiscountCode(codeId: string, options?: Omit<UseQue
|
|
|
82
84
|
siteUrl: string;
|
|
83
85
|
domain: string;
|
|
84
86
|
metaPixelId: string | null;
|
|
87
|
+
paystackPublicKey: string | null;
|
|
88
|
+
paystackSecretKey: string | null;
|
|
85
89
|
};
|
|
86
90
|
isExpired: boolean;
|
|
87
91
|
usagePercentage: number;
|
|
@@ -131,6 +135,8 @@ export declare function useCreateDiscountCode(options?: UseMutationOptions<Await
|
|
|
131
135
|
siteUrl: string;
|
|
132
136
|
domain: string;
|
|
133
137
|
metaPixelId: string | null;
|
|
138
|
+
paystackPublicKey: string | null;
|
|
139
|
+
paystackSecretKey: string | null;
|
|
134
140
|
};
|
|
135
141
|
isExpired: boolean;
|
|
136
142
|
usagePercentage: number;
|
|
@@ -175,6 +181,8 @@ export declare function useUpdateDiscountCode(codeId: string, options?: UseMutat
|
|
|
175
181
|
siteUrl: string;
|
|
176
182
|
domain: string;
|
|
177
183
|
metaPixelId: string | null;
|
|
184
|
+
paystackPublicKey: string | null;
|
|
185
|
+
paystackSecretKey: string | null;
|
|
178
186
|
};
|
|
179
187
|
isExpired: boolean;
|
|
180
188
|
usagePercentage: number;
|
|
@@ -254,6 +262,8 @@ export declare function useGetDiscountCodeAnalytics(codeId: string, options?: Om
|
|
|
254
262
|
siteUrl: string;
|
|
255
263
|
domain: string;
|
|
256
264
|
metaPixelId: string | null;
|
|
265
|
+
paystackPublicKey: string | null;
|
|
266
|
+
paystackSecretKey: string | null;
|
|
257
267
|
};
|
|
258
268
|
isExpired: boolean;
|
|
259
269
|
id: string;
|
|
@@ -121,9 +121,7 @@ export declare function useGetInventoryTransactions(params?: {
|
|
|
121
121
|
includes?: boolean;
|
|
122
122
|
flatMap?: boolean;
|
|
123
123
|
flat?: boolean;
|
|
124
|
-
at?: boolean;
|
|
125
124
|
};
|
|
126
|
-
at: never;
|
|
127
125
|
};
|
|
128
126
|
} | {
|
|
129
127
|
[x: number]: string | number | boolean | {
|
|
@@ -196,9 +194,7 @@ export declare function useGetInventoryTransactions(params?: {
|
|
|
196
194
|
includes?: boolean;
|
|
197
195
|
flatMap?: boolean;
|
|
198
196
|
flat?: boolean;
|
|
199
|
-
at?: boolean;
|
|
200
197
|
};
|
|
201
|
-
at: never;
|
|
202
198
|
};
|
|
203
199
|
createdAt: string;
|
|
204
200
|
variant: {
|