@instockng/api-client 1.0.14 → 1.0.16
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 +0 -36
- package/dist/fetchers/orders.d.ts +0 -8
- package/dist/fetchers/products.d.ts +0 -8
- package/dist/hooks/admin/abandoned-carts.d.ts +0 -8
- package/dist/hooks/admin/customers.d.ts +0 -4
- package/dist/hooks/admin/inventory.d.ts +0 -4
- package/dist/hooks/admin/orders.d.ts +0 -32
- package/dist/hooks/admin/products.d.ts +0 -8
- package/dist/hooks/admin/stats.d.ts +0 -4
- package/dist/hooks/admin/warehouses.d.ts +0 -4
- package/dist/hooks/public/brands.d.ts +1 -0
- package/dist/hooks/public/carts.d.ts +0 -36
- package/dist/hooks/public/orders.d.ts +0 -8
- package/dist/hooks/public/products.d.ts +0 -8
- package/dist/rpc-client.d.ts +1 -124
- package/package.json +1 -1
|
@@ -153,9 +153,7 @@ export declare function useGetCart(cartId: string, options?: Omit<UseQueryOption
|
|
|
153
153
|
includes?: boolean;
|
|
154
154
|
flatMap?: boolean;
|
|
155
155
|
flat?: boolean;
|
|
156
|
-
at?: boolean;
|
|
157
156
|
};
|
|
158
|
-
at: never;
|
|
159
157
|
};
|
|
160
158
|
} | {
|
|
161
159
|
[x: number]: string | number | boolean | {
|
|
@@ -228,9 +226,7 @@ export declare function useGetCart(cartId: string, options?: Omit<UseQueryOption
|
|
|
228
226
|
includes?: boolean;
|
|
229
227
|
flatMap?: boolean;
|
|
230
228
|
flat?: boolean;
|
|
231
|
-
at?: boolean;
|
|
232
229
|
};
|
|
233
|
-
at: never;
|
|
234
230
|
};
|
|
235
231
|
};
|
|
236
232
|
id: string;
|
|
@@ -420,9 +416,7 @@ export declare function useUpdateCart(cartId: string, options?: UseMutationOptio
|
|
|
420
416
|
includes?: boolean;
|
|
421
417
|
flatMap?: boolean;
|
|
422
418
|
flat?: boolean;
|
|
423
|
-
at?: boolean;
|
|
424
419
|
};
|
|
425
|
-
at: never;
|
|
426
420
|
};
|
|
427
421
|
} | {
|
|
428
422
|
[x: number]: string | number | boolean | {
|
|
@@ -495,9 +489,7 @@ export declare function useUpdateCart(cartId: string, options?: UseMutationOptio
|
|
|
495
489
|
includes?: boolean;
|
|
496
490
|
flatMap?: boolean;
|
|
497
491
|
flat?: boolean;
|
|
498
|
-
at?: boolean;
|
|
499
492
|
};
|
|
500
|
-
at: never;
|
|
501
493
|
};
|
|
502
494
|
};
|
|
503
495
|
id: string;
|
|
@@ -695,9 +687,7 @@ export declare function useCreateCart(options?: UseMutationOptions<Awaited<Retur
|
|
|
695
687
|
includes?: boolean;
|
|
696
688
|
flatMap?: boolean;
|
|
697
689
|
flat?: boolean;
|
|
698
|
-
at?: boolean;
|
|
699
690
|
};
|
|
700
|
-
at: never;
|
|
701
691
|
};
|
|
702
692
|
} | {
|
|
703
693
|
[x: number]: string | number | boolean | {
|
|
@@ -770,9 +760,7 @@ export declare function useCreateCart(options?: UseMutationOptions<Awaited<Retur
|
|
|
770
760
|
includes?: boolean;
|
|
771
761
|
flatMap?: boolean;
|
|
772
762
|
flat?: boolean;
|
|
773
|
-
at?: boolean;
|
|
774
763
|
};
|
|
775
|
-
at: never;
|
|
776
764
|
};
|
|
777
765
|
};
|
|
778
766
|
id: string;
|
|
@@ -961,9 +949,7 @@ export declare function useApplyDiscount(cartId: string, options?: UseMutationOp
|
|
|
961
949
|
includes?: boolean;
|
|
962
950
|
flatMap?: boolean;
|
|
963
951
|
flat?: boolean;
|
|
964
|
-
at?: boolean;
|
|
965
952
|
};
|
|
966
|
-
at: never;
|
|
967
953
|
};
|
|
968
954
|
} | {
|
|
969
955
|
[x: number]: string | number | boolean | {
|
|
@@ -1036,9 +1022,7 @@ export declare function useApplyDiscount(cartId: string, options?: UseMutationOp
|
|
|
1036
1022
|
includes?: boolean;
|
|
1037
1023
|
flatMap?: boolean;
|
|
1038
1024
|
flat?: boolean;
|
|
1039
|
-
at?: boolean;
|
|
1040
1025
|
};
|
|
1041
|
-
at: never;
|
|
1042
1026
|
};
|
|
1043
1027
|
};
|
|
1044
1028
|
id: string;
|
|
@@ -1232,9 +1216,7 @@ export declare function useRemoveDiscount(cartId: string, options?: UseMutationO
|
|
|
1232
1216
|
includes?: boolean;
|
|
1233
1217
|
flatMap?: boolean;
|
|
1234
1218
|
flat?: boolean;
|
|
1235
|
-
at?: boolean;
|
|
1236
1219
|
};
|
|
1237
|
-
at: never;
|
|
1238
1220
|
};
|
|
1239
1221
|
} | {
|
|
1240
1222
|
[x: number]: string | number | boolean | {
|
|
@@ -1307,9 +1289,7 @@ export declare function useRemoveDiscount(cartId: string, options?: UseMutationO
|
|
|
1307
1289
|
includes?: boolean;
|
|
1308
1290
|
flatMap?: boolean;
|
|
1309
1291
|
flat?: boolean;
|
|
1310
|
-
at?: boolean;
|
|
1311
1292
|
};
|
|
1312
|
-
at: never;
|
|
1313
1293
|
};
|
|
1314
1294
|
};
|
|
1315
1295
|
id: string;
|
|
@@ -1506,9 +1486,7 @@ export declare function useAddCartItem(cartId: string, options?: UseMutationOpti
|
|
|
1506
1486
|
includes?: boolean;
|
|
1507
1487
|
flatMap?: boolean;
|
|
1508
1488
|
flat?: boolean;
|
|
1509
|
-
at?: boolean;
|
|
1510
1489
|
};
|
|
1511
|
-
at: never;
|
|
1512
1490
|
};
|
|
1513
1491
|
} | {
|
|
1514
1492
|
[x: number]: string | number | boolean | {
|
|
@@ -1581,9 +1559,7 @@ export declare function useAddCartItem(cartId: string, options?: UseMutationOpti
|
|
|
1581
1559
|
includes?: boolean;
|
|
1582
1560
|
flatMap?: boolean;
|
|
1583
1561
|
flat?: boolean;
|
|
1584
|
-
at?: boolean;
|
|
1585
1562
|
};
|
|
1586
|
-
at: never;
|
|
1587
1563
|
};
|
|
1588
1564
|
};
|
|
1589
1565
|
id: string;
|
|
@@ -1783,9 +1759,7 @@ export declare function useUpdateCartItem(cartId: string, options?: UseMutationO
|
|
|
1783
1759
|
includes?: boolean;
|
|
1784
1760
|
flatMap?: boolean;
|
|
1785
1761
|
flat?: boolean;
|
|
1786
|
-
at?: boolean;
|
|
1787
1762
|
};
|
|
1788
|
-
at: never;
|
|
1789
1763
|
};
|
|
1790
1764
|
} | {
|
|
1791
1765
|
[x: number]: string | number | boolean | {
|
|
@@ -1858,9 +1832,7 @@ export declare function useUpdateCartItem(cartId: string, options?: UseMutationO
|
|
|
1858
1832
|
includes?: boolean;
|
|
1859
1833
|
flatMap?: boolean;
|
|
1860
1834
|
flat?: boolean;
|
|
1861
|
-
at?: boolean;
|
|
1862
1835
|
};
|
|
1863
|
-
at: never;
|
|
1864
1836
|
};
|
|
1865
1837
|
};
|
|
1866
1838
|
id: string;
|
|
@@ -2050,9 +2022,7 @@ export declare function useRemoveCartItem(cartId: string, options?: UseMutationO
|
|
|
2050
2022
|
includes?: boolean;
|
|
2051
2023
|
flatMap?: boolean;
|
|
2052
2024
|
flat?: boolean;
|
|
2053
|
-
at?: boolean;
|
|
2054
2025
|
};
|
|
2055
|
-
at: never;
|
|
2056
2026
|
};
|
|
2057
2027
|
} | {
|
|
2058
2028
|
[x: number]: string | number | boolean | {
|
|
@@ -2125,9 +2095,7 @@ export declare function useRemoveCartItem(cartId: string, options?: UseMutationO
|
|
|
2125
2095
|
includes?: boolean;
|
|
2126
2096
|
flatMap?: boolean;
|
|
2127
2097
|
flat?: boolean;
|
|
2128
|
-
at?: boolean;
|
|
2129
2098
|
};
|
|
2130
|
-
at: never;
|
|
2131
2099
|
};
|
|
2132
2100
|
};
|
|
2133
2101
|
id: string;
|
|
@@ -2327,9 +2295,7 @@ export declare function useCheckoutCart(cartId: string, options?: UseMutationOpt
|
|
|
2327
2295
|
includes?: boolean;
|
|
2328
2296
|
flatMap?: boolean;
|
|
2329
2297
|
flat?: boolean;
|
|
2330
|
-
at?: boolean;
|
|
2331
2298
|
};
|
|
2332
|
-
at: never;
|
|
2333
2299
|
};
|
|
2334
2300
|
} | {
|
|
2335
2301
|
[x: number]: string | number | boolean | {
|
|
@@ -2402,9 +2368,7 @@ export declare function useCheckoutCart(cartId: string, options?: UseMutationOpt
|
|
|
2402
2368
|
includes?: boolean;
|
|
2403
2369
|
flatMap?: boolean;
|
|
2404
2370
|
flat?: boolean;
|
|
2405
|
-
at?: boolean;
|
|
2406
2371
|
};
|
|
2407
|
-
at: never;
|
|
2408
2372
|
};
|
|
2409
2373
|
};
|
|
2410
2374
|
id: string;
|
|
@@ -160,9 +160,7 @@ export declare function useGetOrder(orderId: string, token: string, options?: Om
|
|
|
160
160
|
includes?: boolean;
|
|
161
161
|
flatMap?: boolean;
|
|
162
162
|
flat?: boolean;
|
|
163
|
-
at?: boolean;
|
|
164
163
|
};
|
|
165
|
-
at: never;
|
|
166
164
|
};
|
|
167
165
|
} | {
|
|
168
166
|
[x: number]: string | number | boolean | {
|
|
@@ -235,9 +233,7 @@ export declare function useGetOrder(orderId: string, token: string, options?: Om
|
|
|
235
233
|
includes?: boolean;
|
|
236
234
|
flatMap?: boolean;
|
|
237
235
|
flat?: boolean;
|
|
238
|
-
at?: boolean;
|
|
239
236
|
};
|
|
240
|
-
at: never;
|
|
241
237
|
};
|
|
242
238
|
};
|
|
243
239
|
id: string;
|
|
@@ -444,9 +440,7 @@ export declare function useConfirmOrder(options?: UseMutationOptions<Awaited<Ret
|
|
|
444
440
|
includes?: boolean;
|
|
445
441
|
flatMap?: boolean;
|
|
446
442
|
flat?: boolean;
|
|
447
|
-
at?: boolean;
|
|
448
443
|
};
|
|
449
|
-
at: never;
|
|
450
444
|
};
|
|
451
445
|
} | {
|
|
452
446
|
[x: number]: string | number | boolean | {
|
|
@@ -519,9 +513,7 @@ export declare function useConfirmOrder(options?: UseMutationOptions<Awaited<Ret
|
|
|
519
513
|
includes?: boolean;
|
|
520
514
|
flatMap?: boolean;
|
|
521
515
|
flat?: boolean;
|
|
522
|
-
at?: boolean;
|
|
523
516
|
};
|
|
524
|
-
at: never;
|
|
525
517
|
};
|
|
526
518
|
};
|
|
527
519
|
id: string;
|
|
@@ -128,9 +128,7 @@ export declare function useGetProducts(brandId: string, options?: Omit<UseQueryO
|
|
|
128
128
|
includes?: boolean;
|
|
129
129
|
flatMap?: boolean;
|
|
130
130
|
flat?: boolean;
|
|
131
|
-
at?: boolean;
|
|
132
131
|
};
|
|
133
|
-
at: never;
|
|
134
132
|
};
|
|
135
133
|
} | {
|
|
136
134
|
[x: number]: string | number | boolean | {
|
|
@@ -203,9 +201,7 @@ export declare function useGetProducts(brandId: string, options?: Omit<UseQueryO
|
|
|
203
201
|
includes?: boolean;
|
|
204
202
|
flatMap?: boolean;
|
|
205
203
|
flat?: boolean;
|
|
206
|
-
at?: boolean;
|
|
207
204
|
};
|
|
208
|
-
at: never;
|
|
209
205
|
};
|
|
210
206
|
}[], Error>;
|
|
211
207
|
/**
|
|
@@ -330,9 +326,7 @@ export declare function useGetProduct(slug: string, options?: Omit<UseQueryOptio
|
|
|
330
326
|
includes?: boolean;
|
|
331
327
|
flatMap?: boolean;
|
|
332
328
|
flat?: boolean;
|
|
333
|
-
at?: boolean;
|
|
334
329
|
};
|
|
335
|
-
at: never;
|
|
336
330
|
};
|
|
337
331
|
} | {
|
|
338
332
|
[x: number]: string | number | boolean | {
|
|
@@ -405,8 +399,6 @@ export declare function useGetProduct(slug: string, options?: Omit<UseQueryOptio
|
|
|
405
399
|
includes?: boolean;
|
|
406
400
|
flatMap?: boolean;
|
|
407
401
|
flat?: boolean;
|
|
408
|
-
at?: boolean;
|
|
409
402
|
};
|
|
410
|
-
at: never;
|
|
411
403
|
};
|
|
412
404
|
}, Error>;
|