@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
|
@@ -48,6 +48,8 @@ export declare function useListOrders(filters?: {
|
|
|
48
48
|
siteUrl: string;
|
|
49
49
|
domain: string;
|
|
50
50
|
metaPixelId: string | null;
|
|
51
|
+
paystackPublicKey: string | null;
|
|
52
|
+
paystackSecretKey: string | null;
|
|
51
53
|
};
|
|
52
54
|
deliveryZone: {
|
|
53
55
|
deliveryCost: number;
|
|
@@ -163,9 +165,7 @@ export declare function useListOrders(filters?: {
|
|
|
163
165
|
includes?: boolean;
|
|
164
166
|
flatMap?: boolean;
|
|
165
167
|
flat?: boolean;
|
|
166
|
-
at?: boolean;
|
|
167
168
|
};
|
|
168
|
-
at: never;
|
|
169
169
|
};
|
|
170
170
|
} | {
|
|
171
171
|
[x: number]: string | number | boolean | {
|
|
@@ -238,9 +238,7 @@ export declare function useListOrders(filters?: {
|
|
|
238
238
|
includes?: boolean;
|
|
239
239
|
flatMap?: boolean;
|
|
240
240
|
flat?: boolean;
|
|
241
|
-
at?: boolean;
|
|
242
241
|
};
|
|
243
|
-
at: never;
|
|
244
242
|
};
|
|
245
243
|
};
|
|
246
244
|
id: string;
|
|
@@ -330,6 +328,8 @@ export declare function useGetOrder(orderId: string, options?: Omit<UseQueryOpti
|
|
|
330
328
|
siteUrl: string;
|
|
331
329
|
domain: string;
|
|
332
330
|
metaPixelId: string | null;
|
|
331
|
+
paystackPublicKey: string | null;
|
|
332
|
+
paystackSecretKey: string | null;
|
|
333
333
|
};
|
|
334
334
|
deliveryZone: {
|
|
335
335
|
deliveryCost: number;
|
|
@@ -445,9 +445,7 @@ export declare function useGetOrder(orderId: string, options?: Omit<UseQueryOpti
|
|
|
445
445
|
includes?: boolean;
|
|
446
446
|
flatMap?: boolean;
|
|
447
447
|
flat?: boolean;
|
|
448
|
-
at?: boolean;
|
|
449
448
|
};
|
|
450
|
-
at: never;
|
|
451
449
|
};
|
|
452
450
|
} | {
|
|
453
451
|
[x: number]: string | number | boolean | {
|
|
@@ -520,9 +518,7 @@ export declare function useGetOrder(orderId: string, options?: Omit<UseQueryOpti
|
|
|
520
518
|
includes?: boolean;
|
|
521
519
|
flatMap?: boolean;
|
|
522
520
|
flat?: boolean;
|
|
523
|
-
at?: boolean;
|
|
524
521
|
};
|
|
525
|
-
at: never;
|
|
526
522
|
};
|
|
527
523
|
};
|
|
528
524
|
id: string;
|
|
@@ -609,6 +605,8 @@ export declare function useCreateOrder(options?: UseMutationOptions<Awaited<Retu
|
|
|
609
605
|
siteUrl: string;
|
|
610
606
|
domain: string;
|
|
611
607
|
metaPixelId: string | null;
|
|
608
|
+
paystackPublicKey: string | null;
|
|
609
|
+
paystackSecretKey: string | null;
|
|
612
610
|
};
|
|
613
611
|
deliveryZone: {
|
|
614
612
|
deliveryCost: number;
|
|
@@ -724,9 +722,7 @@ export declare function useCreateOrder(options?: UseMutationOptions<Awaited<Retu
|
|
|
724
722
|
includes?: boolean;
|
|
725
723
|
flatMap?: boolean;
|
|
726
724
|
flat?: boolean;
|
|
727
|
-
at?: boolean;
|
|
728
725
|
};
|
|
729
|
-
at: never;
|
|
730
726
|
};
|
|
731
727
|
} | {
|
|
732
728
|
[x: number]: string | number | boolean | {
|
|
@@ -799,9 +795,7 @@ export declare function useCreateOrder(options?: UseMutationOptions<Awaited<Retu
|
|
|
799
795
|
includes?: boolean;
|
|
800
796
|
flatMap?: boolean;
|
|
801
797
|
flat?: boolean;
|
|
802
|
-
at?: boolean;
|
|
803
798
|
};
|
|
804
|
-
at: never;
|
|
805
799
|
};
|
|
806
800
|
};
|
|
807
801
|
id: string;
|
|
@@ -889,6 +883,8 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
889
883
|
siteUrl: string;
|
|
890
884
|
domain: string;
|
|
891
885
|
metaPixelId: string | null;
|
|
886
|
+
paystackPublicKey: string | null;
|
|
887
|
+
paystackSecretKey: string | null;
|
|
892
888
|
};
|
|
893
889
|
deliveryZone: {
|
|
894
890
|
deliveryCost: number;
|
|
@@ -1004,9 +1000,7 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
1004
1000
|
includes?: boolean;
|
|
1005
1001
|
flatMap?: boolean;
|
|
1006
1002
|
flat?: boolean;
|
|
1007
|
-
at?: boolean;
|
|
1008
1003
|
};
|
|
1009
|
-
at: never;
|
|
1010
1004
|
};
|
|
1011
1005
|
} | {
|
|
1012
1006
|
[x: number]: string | number | boolean | {
|
|
@@ -1079,9 +1073,7 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
1079
1073
|
includes?: boolean;
|
|
1080
1074
|
flatMap?: boolean;
|
|
1081
1075
|
flat?: boolean;
|
|
1082
|
-
at?: boolean;
|
|
1083
1076
|
};
|
|
1084
|
-
at: never;
|
|
1085
1077
|
};
|
|
1086
1078
|
};
|
|
1087
1079
|
id: string;
|
|
@@ -1145,6 +1137,8 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
1145
1137
|
siteUrl: string;
|
|
1146
1138
|
domain: string;
|
|
1147
1139
|
metaPixelId: string | null;
|
|
1140
|
+
paystackPublicKey: string | null;
|
|
1141
|
+
paystackSecretKey: string | null;
|
|
1148
1142
|
createdAt: string;
|
|
1149
1143
|
updatedAt: string;
|
|
1150
1144
|
deletedAt: string;
|
|
@@ -1269,9 +1263,7 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
1269
1263
|
includes?: boolean;
|
|
1270
1264
|
flatMap?: boolean;
|
|
1271
1265
|
flat?: boolean;
|
|
1272
|
-
at?: boolean;
|
|
1273
1266
|
};
|
|
1274
|
-
at: never;
|
|
1275
1267
|
};
|
|
1276
1268
|
} | {
|
|
1277
1269
|
[x: number]: string | number | boolean | {
|
|
@@ -1344,9 +1336,7 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
1344
1336
|
includes?: boolean;
|
|
1345
1337
|
flatMap?: boolean;
|
|
1346
1338
|
flat?: boolean;
|
|
1347
|
-
at?: boolean;
|
|
1348
1339
|
};
|
|
1349
|
-
at: never;
|
|
1350
1340
|
};
|
|
1351
1341
|
};
|
|
1352
1342
|
id: string;
|
|
@@ -1431,6 +1421,8 @@ export declare function useUpdateOrderStatus(orderId: string, options?: UseMutat
|
|
|
1431
1421
|
siteUrl: string;
|
|
1432
1422
|
domain: string;
|
|
1433
1423
|
metaPixelId: string | null;
|
|
1424
|
+
paystackPublicKey: string | null;
|
|
1425
|
+
paystackSecretKey: string | null;
|
|
1434
1426
|
};
|
|
1435
1427
|
deliveryZone: {
|
|
1436
1428
|
deliveryCost: number;
|
|
@@ -1546,9 +1538,7 @@ export declare function useUpdateOrderStatus(orderId: string, options?: UseMutat
|
|
|
1546
1538
|
includes?: boolean;
|
|
1547
1539
|
flatMap?: boolean;
|
|
1548
1540
|
flat?: boolean;
|
|
1549
|
-
at?: boolean;
|
|
1550
1541
|
};
|
|
1551
|
-
at: never;
|
|
1552
1542
|
};
|
|
1553
1543
|
} | {
|
|
1554
1544
|
[x: number]: string | number | boolean | {
|
|
@@ -1621,9 +1611,7 @@ export declare function useUpdateOrderStatus(orderId: string, options?: UseMutat
|
|
|
1621
1611
|
includes?: boolean;
|
|
1622
1612
|
flatMap?: boolean;
|
|
1623
1613
|
flat?: boolean;
|
|
1624
|
-
at?: boolean;
|
|
1625
1614
|
};
|
|
1626
|
-
at: never;
|
|
1627
1615
|
};
|
|
1628
1616
|
};
|
|
1629
1617
|
id: string;
|
|
@@ -15,6 +15,8 @@ export declare function useListProducts(brandId?: string, options?: Omit<UseQuer
|
|
|
15
15
|
siteUrl: string;
|
|
16
16
|
domain: string;
|
|
17
17
|
metaPixelId: string | null;
|
|
18
|
+
paystackPublicKey: string | null;
|
|
19
|
+
paystackSecretKey: string | null;
|
|
18
20
|
};
|
|
19
21
|
variants: {
|
|
20
22
|
createdAt: string;
|
|
@@ -110,9 +112,7 @@ export declare function useListProducts(brandId?: string, options?: Omit<UseQuer
|
|
|
110
112
|
includes?: boolean;
|
|
111
113
|
flatMap?: boolean;
|
|
112
114
|
flat?: boolean;
|
|
113
|
-
at?: boolean;
|
|
114
115
|
};
|
|
115
|
-
at: never;
|
|
116
116
|
};
|
|
117
117
|
} | {
|
|
118
118
|
[x: number]: string | number | boolean | {
|
|
@@ -185,9 +185,7 @@ export declare function useListProducts(brandId?: string, options?: Omit<UseQuer
|
|
|
185
185
|
includes?: boolean;
|
|
186
186
|
flatMap?: boolean;
|
|
187
187
|
flat?: boolean;
|
|
188
|
-
at?: boolean;
|
|
189
188
|
};
|
|
190
|
-
at: never;
|
|
191
189
|
};
|
|
192
190
|
}[], Error>;
|
|
193
191
|
export declare function useGetProduct(productId: string, options?: Omit<UseQueryOptions<Awaited<ReturnType<Awaited<ReturnType<ReturnType<typeof createAdminRpcClients>['products'][':id']['$get']>>['json']>>, Error>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<{
|
|
@@ -202,6 +200,8 @@ export declare function useGetProduct(productId: string, options?: Omit<UseQuery
|
|
|
202
200
|
siteUrl: string;
|
|
203
201
|
domain: string;
|
|
204
202
|
metaPixelId: string | null;
|
|
203
|
+
paystackPublicKey: string | null;
|
|
204
|
+
paystackSecretKey: string | null;
|
|
205
205
|
};
|
|
206
206
|
variants: {
|
|
207
207
|
createdAt: string;
|
|
@@ -297,9 +297,7 @@ export declare function useGetProduct(productId: string, options?: Omit<UseQuery
|
|
|
297
297
|
includes?: boolean;
|
|
298
298
|
flatMap?: boolean;
|
|
299
299
|
flat?: boolean;
|
|
300
|
-
at?: boolean;
|
|
301
300
|
};
|
|
302
|
-
at: never;
|
|
303
301
|
};
|
|
304
302
|
} | {
|
|
305
303
|
[x: number]: string | number | boolean | {
|
|
@@ -372,9 +370,7 @@ export declare function useGetProduct(productId: string, options?: Omit<UseQuery
|
|
|
372
370
|
includes?: boolean;
|
|
373
371
|
flatMap?: boolean;
|
|
374
372
|
flat?: boolean;
|
|
375
|
-
at?: boolean;
|
|
376
373
|
};
|
|
377
|
-
at: never;
|
|
378
374
|
};
|
|
379
375
|
}, Error>;
|
|
380
376
|
export declare function useCreateProduct(options?: UseMutationOptions<any, Error, any>): import("@tanstack/react-query").UseMutationResult<any, Error, any, unknown>;
|
|
@@ -37,6 +37,8 @@ export declare function useGetStats(params?: {
|
|
|
37
37
|
siteUrl: string;
|
|
38
38
|
domain: string;
|
|
39
39
|
metaPixelId: string | null;
|
|
40
|
+
paystackPublicKey: string | null;
|
|
41
|
+
paystackSecretKey: string | null;
|
|
40
42
|
};
|
|
41
43
|
deliveryZone: {
|
|
42
44
|
deliveryCost: number;
|
|
@@ -152,9 +154,7 @@ export declare function useGetStats(params?: {
|
|
|
152
154
|
includes?: boolean;
|
|
153
155
|
flatMap?: boolean;
|
|
154
156
|
flat?: boolean;
|
|
155
|
-
at?: boolean;
|
|
156
157
|
};
|
|
157
|
-
at: never;
|
|
158
158
|
};
|
|
159
159
|
} | {
|
|
160
160
|
[x: number]: string | number | boolean | {
|
|
@@ -227,9 +227,7 @@ export declare function useGetStats(params?: {
|
|
|
227
227
|
includes?: boolean;
|
|
228
228
|
flatMap?: boolean;
|
|
229
229
|
flat?: boolean;
|
|
230
|
-
at?: boolean;
|
|
231
230
|
};
|
|
232
|
-
at: never;
|
|
233
231
|
};
|
|
234
232
|
};
|
|
235
233
|
id: string;
|
|
@@ -71,6 +71,8 @@ export declare function useGetWarehouseInventory(warehouseId: string, options?:
|
|
|
71
71
|
siteUrl: string;
|
|
72
72
|
domain: string;
|
|
73
73
|
metaPixelId: string | null;
|
|
74
|
+
paystackPublicKey: string | null;
|
|
75
|
+
paystackSecretKey: string | null;
|
|
74
76
|
createdAt: string;
|
|
75
77
|
updatedAt: string;
|
|
76
78
|
deletedAt: string;
|
|
@@ -155,9 +157,7 @@ export declare function useGetWarehouseInventory(warehouseId: string, options?:
|
|
|
155
157
|
includes?: boolean;
|
|
156
158
|
flatMap?: boolean;
|
|
157
159
|
flat?: boolean;
|
|
158
|
-
at?: boolean;
|
|
159
160
|
};
|
|
160
|
-
at: never;
|
|
161
161
|
};
|
|
162
162
|
} | {
|
|
163
163
|
[x: number]: string | number | boolean | {
|
|
@@ -230,9 +230,7 @@ export declare function useGetWarehouseInventory(warehouseId: string, options?:
|
|
|
230
230
|
includes?: boolean;
|
|
231
231
|
flatMap?: boolean;
|
|
232
232
|
flat?: boolean;
|
|
233
|
-
at?: boolean;
|
|
234
233
|
};
|
|
235
|
-
at: never;
|
|
236
234
|
};
|
|
237
235
|
};
|
|
238
236
|
id: string;
|
|
@@ -31,6 +31,8 @@ export declare function useGetCart(cartId: string, options?: Omit<UseQueryOption
|
|
|
31
31
|
siteUrl: string;
|
|
32
32
|
domain: string;
|
|
33
33
|
metaPixelId: string | null;
|
|
34
|
+
paystackPublicKey: string | null;
|
|
35
|
+
paystackSecretKey: string | null;
|
|
34
36
|
};
|
|
35
37
|
customerPhone: string;
|
|
36
38
|
customerEmail: string;
|
|
@@ -150,9 +152,7 @@ export declare function useGetCart(cartId: string, options?: Omit<UseQueryOption
|
|
|
150
152
|
includes?: boolean;
|
|
151
153
|
flatMap?: boolean;
|
|
152
154
|
flat?: boolean;
|
|
153
|
-
at?: boolean;
|
|
154
155
|
};
|
|
155
|
-
at: never;
|
|
156
156
|
};
|
|
157
157
|
} | {
|
|
158
158
|
[x: number]: string | number | boolean | {
|
|
@@ -225,9 +225,7 @@ export declare function useGetCart(cartId: string, options?: Omit<UseQueryOption
|
|
|
225
225
|
includes?: boolean;
|
|
226
226
|
flatMap?: boolean;
|
|
227
227
|
flat?: boolean;
|
|
228
|
-
at?: boolean;
|
|
229
228
|
};
|
|
230
|
-
at: never;
|
|
231
229
|
};
|
|
232
230
|
};
|
|
233
231
|
id: string;
|
|
@@ -295,6 +293,8 @@ export declare function useUpdateCart(cartId: string, options?: UseMutationOptio
|
|
|
295
293
|
siteUrl: string;
|
|
296
294
|
domain: string;
|
|
297
295
|
metaPixelId: string | null;
|
|
296
|
+
paystackPublicKey: string | null;
|
|
297
|
+
paystackSecretKey: string | null;
|
|
298
298
|
};
|
|
299
299
|
customerPhone: string;
|
|
300
300
|
customerEmail: string;
|
|
@@ -414,9 +414,7 @@ export declare function useUpdateCart(cartId: string, options?: UseMutationOptio
|
|
|
414
414
|
includes?: boolean;
|
|
415
415
|
flatMap?: boolean;
|
|
416
416
|
flat?: boolean;
|
|
417
|
-
at?: boolean;
|
|
418
417
|
};
|
|
419
|
-
at: never;
|
|
420
418
|
};
|
|
421
419
|
} | {
|
|
422
420
|
[x: number]: string | number | boolean | {
|
|
@@ -489,9 +487,7 @@ export declare function useUpdateCart(cartId: string, options?: UseMutationOptio
|
|
|
489
487
|
includes?: boolean;
|
|
490
488
|
flatMap?: boolean;
|
|
491
489
|
flat?: boolean;
|
|
492
|
-
at?: boolean;
|
|
493
490
|
};
|
|
494
|
-
at: never;
|
|
495
491
|
};
|
|
496
492
|
};
|
|
497
493
|
id: string;
|
|
@@ -567,6 +563,8 @@ export declare function useCreateCart(options?: UseMutationOptions<Awaited<Retur
|
|
|
567
563
|
siteUrl: string;
|
|
568
564
|
domain: string;
|
|
569
565
|
metaPixelId: string | null;
|
|
566
|
+
paystackPublicKey: string | null;
|
|
567
|
+
paystackSecretKey: string | null;
|
|
570
568
|
};
|
|
571
569
|
customerPhone: string;
|
|
572
570
|
customerEmail: string;
|
|
@@ -686,9 +684,7 @@ export declare function useCreateCart(options?: UseMutationOptions<Awaited<Retur
|
|
|
686
684
|
includes?: boolean;
|
|
687
685
|
flatMap?: boolean;
|
|
688
686
|
flat?: boolean;
|
|
689
|
-
at?: boolean;
|
|
690
687
|
};
|
|
691
|
-
at: never;
|
|
692
688
|
};
|
|
693
689
|
} | {
|
|
694
690
|
[x: number]: string | number | boolean | {
|
|
@@ -761,9 +757,7 @@ export declare function useCreateCart(options?: UseMutationOptions<Awaited<Retur
|
|
|
761
757
|
includes?: boolean;
|
|
762
758
|
flatMap?: boolean;
|
|
763
759
|
flat?: boolean;
|
|
764
|
-
at?: boolean;
|
|
765
760
|
};
|
|
766
|
-
at: never;
|
|
767
761
|
};
|
|
768
762
|
};
|
|
769
763
|
id: string;
|
|
@@ -830,6 +824,8 @@ export declare function useApplyDiscount(cartId: string, options?: UseMutationOp
|
|
|
830
824
|
siteUrl: string;
|
|
831
825
|
domain: string;
|
|
832
826
|
metaPixelId: string | null;
|
|
827
|
+
paystackPublicKey: string | null;
|
|
828
|
+
paystackSecretKey: string | null;
|
|
833
829
|
};
|
|
834
830
|
customerPhone: string;
|
|
835
831
|
customerEmail: string;
|
|
@@ -949,9 +945,7 @@ export declare function useApplyDiscount(cartId: string, options?: UseMutationOp
|
|
|
949
945
|
includes?: boolean;
|
|
950
946
|
flatMap?: boolean;
|
|
951
947
|
flat?: boolean;
|
|
952
|
-
at?: boolean;
|
|
953
948
|
};
|
|
954
|
-
at: never;
|
|
955
949
|
};
|
|
956
950
|
} | {
|
|
957
951
|
[x: number]: string | number | boolean | {
|
|
@@ -1024,9 +1018,7 @@ export declare function useApplyDiscount(cartId: string, options?: UseMutationOp
|
|
|
1024
1018
|
includes?: boolean;
|
|
1025
1019
|
flatMap?: boolean;
|
|
1026
1020
|
flat?: boolean;
|
|
1027
|
-
at?: boolean;
|
|
1028
1021
|
};
|
|
1029
|
-
at: never;
|
|
1030
1022
|
};
|
|
1031
1023
|
};
|
|
1032
1024
|
id: string;
|
|
@@ -1098,6 +1090,8 @@ export declare function useRemoveDiscount(cartId: string, options?: UseMutationO
|
|
|
1098
1090
|
siteUrl: string;
|
|
1099
1091
|
domain: string;
|
|
1100
1092
|
metaPixelId: string | null;
|
|
1093
|
+
paystackPublicKey: string | null;
|
|
1094
|
+
paystackSecretKey: string | null;
|
|
1101
1095
|
};
|
|
1102
1096
|
customerPhone: string;
|
|
1103
1097
|
customerEmail: string;
|
|
@@ -1217,9 +1211,7 @@ export declare function useRemoveDiscount(cartId: string, options?: UseMutationO
|
|
|
1217
1211
|
includes?: boolean;
|
|
1218
1212
|
flatMap?: boolean;
|
|
1219
1213
|
flat?: boolean;
|
|
1220
|
-
at?: boolean;
|
|
1221
1214
|
};
|
|
1222
|
-
at: never;
|
|
1223
1215
|
};
|
|
1224
1216
|
} | {
|
|
1225
1217
|
[x: number]: string | number | boolean | {
|
|
@@ -1292,9 +1284,7 @@ export declare function useRemoveDiscount(cartId: string, options?: UseMutationO
|
|
|
1292
1284
|
includes?: boolean;
|
|
1293
1285
|
flatMap?: boolean;
|
|
1294
1286
|
flat?: boolean;
|
|
1295
|
-
at?: boolean;
|
|
1296
1287
|
};
|
|
1297
|
-
at: never;
|
|
1298
1288
|
};
|
|
1299
1289
|
};
|
|
1300
1290
|
id: string;
|
|
@@ -1369,6 +1359,8 @@ export declare function useAddCartItem(cartId: string, options?: UseMutationOpti
|
|
|
1369
1359
|
siteUrl: string;
|
|
1370
1360
|
domain: string;
|
|
1371
1361
|
metaPixelId: string | null;
|
|
1362
|
+
paystackPublicKey: string | null;
|
|
1363
|
+
paystackSecretKey: string | null;
|
|
1372
1364
|
};
|
|
1373
1365
|
customerPhone: string;
|
|
1374
1366
|
customerEmail: string;
|
|
@@ -1488,9 +1480,7 @@ export declare function useAddCartItem(cartId: string, options?: UseMutationOpti
|
|
|
1488
1480
|
includes?: boolean;
|
|
1489
1481
|
flatMap?: boolean;
|
|
1490
1482
|
flat?: boolean;
|
|
1491
|
-
at?: boolean;
|
|
1492
1483
|
};
|
|
1493
|
-
at: never;
|
|
1494
1484
|
};
|
|
1495
1485
|
} | {
|
|
1496
1486
|
[x: number]: string | number | boolean | {
|
|
@@ -1563,9 +1553,7 @@ export declare function useAddCartItem(cartId: string, options?: UseMutationOpti
|
|
|
1563
1553
|
includes?: boolean;
|
|
1564
1554
|
flatMap?: boolean;
|
|
1565
1555
|
flat?: boolean;
|
|
1566
|
-
at?: boolean;
|
|
1567
1556
|
};
|
|
1568
|
-
at: never;
|
|
1569
1557
|
};
|
|
1570
1558
|
};
|
|
1571
1559
|
id: string;
|
|
@@ -1643,6 +1631,8 @@ export declare function useUpdateCartItem(cartId: string, options?: UseMutationO
|
|
|
1643
1631
|
siteUrl: string;
|
|
1644
1632
|
domain: string;
|
|
1645
1633
|
metaPixelId: string | null;
|
|
1634
|
+
paystackPublicKey: string | null;
|
|
1635
|
+
paystackSecretKey: string | null;
|
|
1646
1636
|
};
|
|
1647
1637
|
customerPhone: string;
|
|
1648
1638
|
customerEmail: string;
|
|
@@ -1762,9 +1752,7 @@ export declare function useUpdateCartItem(cartId: string, options?: UseMutationO
|
|
|
1762
1752
|
includes?: boolean;
|
|
1763
1753
|
flatMap?: boolean;
|
|
1764
1754
|
flat?: boolean;
|
|
1765
|
-
at?: boolean;
|
|
1766
1755
|
};
|
|
1767
|
-
at: never;
|
|
1768
1756
|
};
|
|
1769
1757
|
} | {
|
|
1770
1758
|
[x: number]: string | number | boolean | {
|
|
@@ -1837,9 +1825,7 @@ export declare function useUpdateCartItem(cartId: string, options?: UseMutationO
|
|
|
1837
1825
|
includes?: boolean;
|
|
1838
1826
|
flatMap?: boolean;
|
|
1839
1827
|
flat?: boolean;
|
|
1840
|
-
at?: boolean;
|
|
1841
1828
|
};
|
|
1842
|
-
at: never;
|
|
1843
1829
|
};
|
|
1844
1830
|
};
|
|
1845
1831
|
id: string;
|
|
@@ -1907,6 +1893,8 @@ export declare function useRemoveCartItem(cartId: string, options?: UseMutationO
|
|
|
1907
1893
|
siteUrl: string;
|
|
1908
1894
|
domain: string;
|
|
1909
1895
|
metaPixelId: string | null;
|
|
1896
|
+
paystackPublicKey: string | null;
|
|
1897
|
+
paystackSecretKey: string | null;
|
|
1910
1898
|
};
|
|
1911
1899
|
customerPhone: string;
|
|
1912
1900
|
customerEmail: string;
|
|
@@ -2026,9 +2014,7 @@ export declare function useRemoveCartItem(cartId: string, options?: UseMutationO
|
|
|
2026
2014
|
includes?: boolean;
|
|
2027
2015
|
flatMap?: boolean;
|
|
2028
2016
|
flat?: boolean;
|
|
2029
|
-
at?: boolean;
|
|
2030
2017
|
};
|
|
2031
|
-
at: never;
|
|
2032
2018
|
};
|
|
2033
2019
|
} | {
|
|
2034
2020
|
[x: number]: string | number | boolean | {
|
|
@@ -2101,9 +2087,7 @@ export declare function useRemoveCartItem(cartId: string, options?: UseMutationO
|
|
|
2101
2087
|
includes?: boolean;
|
|
2102
2088
|
flatMap?: boolean;
|
|
2103
2089
|
flat?: boolean;
|
|
2104
|
-
at?: boolean;
|
|
2105
2090
|
};
|
|
2106
|
-
at: never;
|
|
2107
2091
|
};
|
|
2108
2092
|
};
|
|
2109
2093
|
id: string;
|
|
@@ -2185,6 +2169,8 @@ export declare function useCheckoutCart(cartId: string, options?: UseMutationOpt
|
|
|
2185
2169
|
siteUrl: string;
|
|
2186
2170
|
domain: string;
|
|
2187
2171
|
metaPixelId: string | null;
|
|
2172
|
+
paystackPublicKey: string | null;
|
|
2173
|
+
paystackSecretKey: string | null;
|
|
2188
2174
|
};
|
|
2189
2175
|
deliveryZone: {
|
|
2190
2176
|
deliveryCost: number;
|
|
@@ -2300,9 +2286,7 @@ export declare function useCheckoutCart(cartId: string, options?: UseMutationOpt
|
|
|
2300
2286
|
includes?: boolean;
|
|
2301
2287
|
flatMap?: boolean;
|
|
2302
2288
|
flat?: boolean;
|
|
2303
|
-
at?: boolean;
|
|
2304
2289
|
};
|
|
2305
|
-
at: never;
|
|
2306
2290
|
};
|
|
2307
2291
|
} | {
|
|
2308
2292
|
[x: number]: string | number | boolean | {
|
|
@@ -2375,9 +2359,7 @@ export declare function useCheckoutCart(cartId: string, options?: UseMutationOpt
|
|
|
2375
2359
|
includes?: boolean;
|
|
2376
2360
|
flatMap?: boolean;
|
|
2377
2361
|
flat?: boolean;
|
|
2378
|
-
at?: boolean;
|
|
2379
2362
|
};
|
|
2380
|
-
at: never;
|
|
2381
2363
|
};
|
|
2382
2364
|
};
|
|
2383
2365
|
id: string;
|
|
@@ -42,6 +42,8 @@ export declare function useGetOrder(orderId: string, token: string, options?: Om
|
|
|
42
42
|
siteUrl: string;
|
|
43
43
|
domain: string;
|
|
44
44
|
metaPixelId: string | null;
|
|
45
|
+
paystackPublicKey: string | null;
|
|
46
|
+
paystackSecretKey: string | null;
|
|
45
47
|
};
|
|
46
48
|
deliveryZone: {
|
|
47
49
|
deliveryCost: number;
|
|
@@ -157,9 +159,7 @@ export declare function useGetOrder(orderId: string, token: string, options?: Om
|
|
|
157
159
|
includes?: boolean;
|
|
158
160
|
flatMap?: boolean;
|
|
159
161
|
flat?: boolean;
|
|
160
|
-
at?: boolean;
|
|
161
162
|
};
|
|
162
|
-
at: never;
|
|
163
163
|
};
|
|
164
164
|
} | {
|
|
165
165
|
[x: number]: string | number | boolean | {
|
|
@@ -232,9 +232,7 @@ export declare function useGetOrder(orderId: string, token: string, options?: Om
|
|
|
232
232
|
includes?: boolean;
|
|
233
233
|
flatMap?: boolean;
|
|
234
234
|
flat?: boolean;
|
|
235
|
-
at?: boolean;
|
|
236
235
|
};
|
|
237
|
-
at: never;
|
|
238
236
|
};
|
|
239
237
|
};
|
|
240
238
|
id: string;
|
|
@@ -323,6 +321,8 @@ export declare function useConfirmOrder(options?: UseMutationOptions<Awaited<Ret
|
|
|
323
321
|
siteUrl: string;
|
|
324
322
|
domain: string;
|
|
325
323
|
metaPixelId: string | null;
|
|
324
|
+
paystackPublicKey: string | null;
|
|
325
|
+
paystackSecretKey: string | null;
|
|
326
326
|
};
|
|
327
327
|
deliveryZone: {
|
|
328
328
|
deliveryCost: number;
|
|
@@ -438,9 +438,7 @@ export declare function useConfirmOrder(options?: UseMutationOptions<Awaited<Ret
|
|
|
438
438
|
includes?: boolean;
|
|
439
439
|
flatMap?: boolean;
|
|
440
440
|
flat?: boolean;
|
|
441
|
-
at?: boolean;
|
|
442
441
|
};
|
|
443
|
-
at: never;
|
|
444
442
|
};
|
|
445
443
|
} | {
|
|
446
444
|
[x: number]: string | number | boolean | {
|
|
@@ -513,9 +511,7 @@ export declare function useConfirmOrder(options?: UseMutationOptions<Awaited<Ret
|
|
|
513
511
|
includes?: boolean;
|
|
514
512
|
flatMap?: boolean;
|
|
515
513
|
flat?: boolean;
|
|
516
|
-
at?: boolean;
|
|
517
514
|
};
|
|
518
|
-
at: never;
|
|
519
515
|
};
|
|
520
516
|
};
|
|
521
517
|
id: string;
|
|
@@ -30,6 +30,8 @@ export declare function useGetProducts(brandId: string, options?: Omit<UseQueryO
|
|
|
30
30
|
siteUrl: string;
|
|
31
31
|
domain: string;
|
|
32
32
|
metaPixelId: string | null;
|
|
33
|
+
paystackPublicKey: string | null;
|
|
34
|
+
paystackSecretKey: string | null;
|
|
33
35
|
};
|
|
34
36
|
variants: {
|
|
35
37
|
createdAt: string;
|
|
@@ -125,9 +127,7 @@ export declare function useGetProducts(brandId: string, options?: Omit<UseQueryO
|
|
|
125
127
|
includes?: boolean;
|
|
126
128
|
flatMap?: boolean;
|
|
127
129
|
flat?: boolean;
|
|
128
|
-
at?: boolean;
|
|
129
130
|
};
|
|
130
|
-
at: never;
|
|
131
131
|
};
|
|
132
132
|
} | {
|
|
133
133
|
[x: number]: string | number | boolean | {
|
|
@@ -200,9 +200,7 @@ export declare function useGetProducts(brandId: string, options?: Omit<UseQueryO
|
|
|
200
200
|
includes?: boolean;
|
|
201
201
|
flatMap?: boolean;
|
|
202
202
|
flat?: boolean;
|
|
203
|
-
at?: boolean;
|
|
204
203
|
};
|
|
205
|
-
at: never;
|
|
206
204
|
};
|
|
207
205
|
}[], Error>;
|
|
208
206
|
/**
|
|
@@ -229,6 +227,8 @@ export declare function useGetProduct(slug: string, options?: Omit<UseQueryOptio
|
|
|
229
227
|
siteUrl: string;
|
|
230
228
|
domain: string;
|
|
231
229
|
metaPixelId: string | null;
|
|
230
|
+
paystackPublicKey: string | null;
|
|
231
|
+
paystackSecretKey: string | null;
|
|
232
232
|
};
|
|
233
233
|
variants: {
|
|
234
234
|
createdAt: string;
|
|
@@ -324,9 +324,7 @@ export declare function useGetProduct(slug: string, options?: Omit<UseQueryOptio
|
|
|
324
324
|
includes?: boolean;
|
|
325
325
|
flatMap?: boolean;
|
|
326
326
|
flat?: boolean;
|
|
327
|
-
at?: boolean;
|
|
328
327
|
};
|
|
329
|
-
at: never;
|
|
330
328
|
};
|
|
331
329
|
} | {
|
|
332
330
|
[x: number]: string | number | boolean | {
|
|
@@ -399,8 +397,6 @@ export declare function useGetProduct(slug: string, options?: Omit<UseQueryOptio
|
|
|
399
397
|
includes?: boolean;
|
|
400
398
|
flatMap?: boolean;
|
|
401
399
|
flat?: boolean;
|
|
402
|
-
at?: boolean;
|
|
403
400
|
};
|
|
404
|
-
at: never;
|
|
405
401
|
};
|
|
406
402
|
}, Error>;
|