@instockng/api-client 1.0.8 → 1.0.9

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.
Files changed (27) hide show
  1. package/dist/apps/backend/src/lib/utils.d.ts +1 -1
  2. package/dist/apps/backend/src/lib/utils.js +1 -1
  3. package/dist/apps/backend/src/routes/admin/abandoned-carts.d.ts +8 -0
  4. package/dist/apps/backend/src/routes/admin/customers.d.ts +4 -0
  5. package/dist/apps/backend/src/routes/admin/inventory.d.ts +4 -0
  6. package/dist/apps/backend/src/routes/admin/orders.d.ts +24 -0
  7. package/dist/apps/backend/src/routes/admin/products.d.ts +16 -0
  8. package/dist/apps/backend/src/routes/admin/stats.d.ts +4 -0
  9. package/dist/apps/backend/src/routes/admin/warehouses.d.ts +4 -0
  10. package/dist/apps/backend/src/routes/public/carts.d.ts +36 -0
  11. package/dist/apps/backend/src/routes/public/orders.d.ts +8 -0
  12. package/dist/apps/backend/src/routes/public/products.d.ts +8 -0
  13. package/dist/packages/api-client/src/fetchers/carts.d.ts +36 -0
  14. package/dist/packages/api-client/src/fetchers/orders.d.ts +8 -0
  15. package/dist/packages/api-client/src/fetchers/products.d.ts +8 -0
  16. package/dist/packages/api-client/src/hooks/admin/abandoned-carts.d.ts +8 -0
  17. package/dist/packages/api-client/src/hooks/admin/customers.d.ts +4 -0
  18. package/dist/packages/api-client/src/hooks/admin/inventory.d.ts +4 -0
  19. package/dist/packages/api-client/src/hooks/admin/orders.d.ts +24 -0
  20. package/dist/packages/api-client/src/hooks/admin/products.d.ts +8 -0
  21. package/dist/packages/api-client/src/hooks/admin/stats.d.ts +4 -0
  22. package/dist/packages/api-client/src/hooks/admin/warehouses.d.ts +4 -0
  23. package/dist/packages/api-client/src/hooks/public/carts.d.ts +36 -0
  24. package/dist/packages/api-client/src/hooks/public/orders.d.ts +8 -0
  25. package/dist/packages/api-client/src/hooks/public/products.d.ts +8 -0
  26. package/dist/packages/api-client/src/rpc-client.d.ts +116 -0
  27. package/package.json +1 -1
@@ -150,7 +150,9 @@ export declare function useGetCart(cartId: string, options?: Omit<UseQueryOption
150
150
  includes?: boolean;
151
151
  flatMap?: boolean;
152
152
  flat?: boolean;
153
+ at?: boolean;
153
154
  };
155
+ at: never;
154
156
  };
155
157
  } | {
156
158
  [x: number]: string | number | boolean | {
@@ -223,7 +225,9 @@ export declare function useGetCart(cartId: string, options?: Omit<UseQueryOption
223
225
  includes?: boolean;
224
226
  flatMap?: boolean;
225
227
  flat?: boolean;
228
+ at?: boolean;
226
229
  };
230
+ at: never;
227
231
  };
228
232
  };
229
233
  id: string;
@@ -410,7 +414,9 @@ export declare function useUpdateCart(cartId: string, options?: UseMutationOptio
410
414
  includes?: boolean;
411
415
  flatMap?: boolean;
412
416
  flat?: boolean;
417
+ at?: boolean;
413
418
  };
419
+ at: never;
414
420
  };
415
421
  } | {
416
422
  [x: number]: string | number | boolean | {
@@ -483,7 +489,9 @@ export declare function useUpdateCart(cartId: string, options?: UseMutationOptio
483
489
  includes?: boolean;
484
490
  flatMap?: boolean;
485
491
  flat?: boolean;
492
+ at?: boolean;
486
493
  };
494
+ at: never;
487
495
  };
488
496
  };
489
497
  id: string;
@@ -678,7 +686,9 @@ export declare function useCreateCart(options?: UseMutationOptions<Awaited<Retur
678
686
  includes?: boolean;
679
687
  flatMap?: boolean;
680
688
  flat?: boolean;
689
+ at?: boolean;
681
690
  };
691
+ at: never;
682
692
  };
683
693
  } | {
684
694
  [x: number]: string | number | boolean | {
@@ -751,7 +761,9 @@ export declare function useCreateCart(options?: UseMutationOptions<Awaited<Retur
751
761
  includes?: boolean;
752
762
  flatMap?: boolean;
753
763
  flat?: boolean;
764
+ at?: boolean;
754
765
  };
766
+ at: never;
755
767
  };
756
768
  };
757
769
  id: string;
@@ -937,7 +949,9 @@ export declare function useApplyDiscount(cartId: string, options?: UseMutationOp
937
949
  includes?: boolean;
938
950
  flatMap?: boolean;
939
951
  flat?: boolean;
952
+ at?: boolean;
940
953
  };
954
+ at: never;
941
955
  };
942
956
  } | {
943
957
  [x: number]: string | number | boolean | {
@@ -1010,7 +1024,9 @@ export declare function useApplyDiscount(cartId: string, options?: UseMutationOp
1010
1024
  includes?: boolean;
1011
1025
  flatMap?: boolean;
1012
1026
  flat?: boolean;
1027
+ at?: boolean;
1013
1028
  };
1029
+ at: never;
1014
1030
  };
1015
1031
  };
1016
1032
  id: string;
@@ -1201,7 +1217,9 @@ export declare function useRemoveDiscount(cartId: string, options?: UseMutationO
1201
1217
  includes?: boolean;
1202
1218
  flatMap?: boolean;
1203
1219
  flat?: boolean;
1220
+ at?: boolean;
1204
1221
  };
1222
+ at: never;
1205
1223
  };
1206
1224
  } | {
1207
1225
  [x: number]: string | number | boolean | {
@@ -1274,7 +1292,9 @@ export declare function useRemoveDiscount(cartId: string, options?: UseMutationO
1274
1292
  includes?: boolean;
1275
1293
  flatMap?: boolean;
1276
1294
  flat?: boolean;
1295
+ at?: boolean;
1277
1296
  };
1297
+ at: never;
1278
1298
  };
1279
1299
  };
1280
1300
  id: string;
@@ -1468,7 +1488,9 @@ export declare function useAddCartItem(cartId: string, options?: UseMutationOpti
1468
1488
  includes?: boolean;
1469
1489
  flatMap?: boolean;
1470
1490
  flat?: boolean;
1491
+ at?: boolean;
1471
1492
  };
1493
+ at: never;
1472
1494
  };
1473
1495
  } | {
1474
1496
  [x: number]: string | number | boolean | {
@@ -1541,7 +1563,9 @@ export declare function useAddCartItem(cartId: string, options?: UseMutationOpti
1541
1563
  includes?: boolean;
1542
1564
  flatMap?: boolean;
1543
1565
  flat?: boolean;
1566
+ at?: boolean;
1544
1567
  };
1568
+ at: never;
1545
1569
  };
1546
1570
  };
1547
1571
  id: string;
@@ -1738,7 +1762,9 @@ export declare function useUpdateCartItem(cartId: string, options?: UseMutationO
1738
1762
  includes?: boolean;
1739
1763
  flatMap?: boolean;
1740
1764
  flat?: boolean;
1765
+ at?: boolean;
1741
1766
  };
1767
+ at: never;
1742
1768
  };
1743
1769
  } | {
1744
1770
  [x: number]: string | number | boolean | {
@@ -1811,7 +1837,9 @@ export declare function useUpdateCartItem(cartId: string, options?: UseMutationO
1811
1837
  includes?: boolean;
1812
1838
  flatMap?: boolean;
1813
1839
  flat?: boolean;
1840
+ at?: boolean;
1814
1841
  };
1842
+ at: never;
1815
1843
  };
1816
1844
  };
1817
1845
  id: string;
@@ -1998,7 +2026,9 @@ export declare function useRemoveCartItem(cartId: string, options?: UseMutationO
1998
2026
  includes?: boolean;
1999
2027
  flatMap?: boolean;
2000
2028
  flat?: boolean;
2029
+ at?: boolean;
2001
2030
  };
2031
+ at: never;
2002
2032
  };
2003
2033
  } | {
2004
2034
  [x: number]: string | number | boolean | {
@@ -2071,7 +2101,9 @@ export declare function useRemoveCartItem(cartId: string, options?: UseMutationO
2071
2101
  includes?: boolean;
2072
2102
  flatMap?: boolean;
2073
2103
  flat?: boolean;
2104
+ at?: boolean;
2074
2105
  };
2106
+ at: never;
2075
2107
  };
2076
2108
  };
2077
2109
  id: string;
@@ -2268,7 +2300,9 @@ export declare function useCheckoutCart(cartId: string, options?: UseMutationOpt
2268
2300
  includes?: boolean;
2269
2301
  flatMap?: boolean;
2270
2302
  flat?: boolean;
2303
+ at?: boolean;
2271
2304
  };
2305
+ at: never;
2272
2306
  };
2273
2307
  } | {
2274
2308
  [x: number]: string | number | boolean | {
@@ -2341,7 +2375,9 @@ export declare function useCheckoutCart(cartId: string, options?: UseMutationOpt
2341
2375
  includes?: boolean;
2342
2376
  flatMap?: boolean;
2343
2377
  flat?: boolean;
2378
+ at?: boolean;
2344
2379
  };
2380
+ at: never;
2345
2381
  };
2346
2382
  };
2347
2383
  id: string;
@@ -157,7 +157,9 @@ export declare function useGetOrder(orderId: string, token: string, options?: Om
157
157
  includes?: boolean;
158
158
  flatMap?: boolean;
159
159
  flat?: boolean;
160
+ at?: boolean;
160
161
  };
162
+ at: never;
161
163
  };
162
164
  } | {
163
165
  [x: number]: string | number | boolean | {
@@ -230,7 +232,9 @@ export declare function useGetOrder(orderId: string, token: string, options?: Om
230
232
  includes?: boolean;
231
233
  flatMap?: boolean;
232
234
  flat?: boolean;
235
+ at?: boolean;
233
236
  };
237
+ at: never;
234
238
  };
235
239
  };
236
240
  id: string;
@@ -434,7 +438,9 @@ export declare function useConfirmOrder(options?: UseMutationOptions<Awaited<Ret
434
438
  includes?: boolean;
435
439
  flatMap?: boolean;
436
440
  flat?: boolean;
441
+ at?: boolean;
437
442
  };
443
+ at: never;
438
444
  };
439
445
  } | {
440
446
  [x: number]: string | number | boolean | {
@@ -507,7 +513,9 @@ export declare function useConfirmOrder(options?: UseMutationOptions<Awaited<Ret
507
513
  includes?: boolean;
508
514
  flatMap?: boolean;
509
515
  flat?: boolean;
516
+ at?: boolean;
510
517
  };
518
+ at: never;
511
519
  };
512
520
  };
513
521
  id: string;
@@ -125,7 +125,9 @@ export declare function useGetProducts(brandId: string, options?: Omit<UseQueryO
125
125
  includes?: boolean;
126
126
  flatMap?: boolean;
127
127
  flat?: boolean;
128
+ at?: boolean;
128
129
  };
130
+ at: never;
129
131
  };
130
132
  } | {
131
133
  [x: number]: string | number | boolean | {
@@ -198,7 +200,9 @@ export declare function useGetProducts(brandId: string, options?: Omit<UseQueryO
198
200
  includes?: boolean;
199
201
  flatMap?: boolean;
200
202
  flat?: boolean;
203
+ at?: boolean;
201
204
  };
205
+ at: never;
202
206
  };
203
207
  }[], Error>;
204
208
  /**
@@ -320,7 +324,9 @@ export declare function useGetProduct(slug: string, options?: Omit<UseQueryOptio
320
324
  includes?: boolean;
321
325
  flatMap?: boolean;
322
326
  flat?: boolean;
327
+ at?: boolean;
323
328
  };
329
+ at: never;
324
330
  };
325
331
  } | {
326
332
  [x: number]: string | number | boolean | {
@@ -393,6 +399,8 @@ export declare function useGetProduct(slug: string, options?: Omit<UseQueryOptio
393
399
  includes?: boolean;
394
400
  flatMap?: boolean;
395
401
  flat?: boolean;
402
+ at?: boolean;
396
403
  };
404
+ at: never;
397
405
  };
398
406
  }, Error>;