@instockng/api-client 1.0.36 → 1.0.39

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 (35) hide show
  1. package/dist/backend-types.d.ts +1 -1
  2. package/dist/fetchers/brands.js +1 -1
  3. package/dist/fetchers/carts.d.ts +586 -1
  4. package/dist/fetchers/carts.js +19 -3
  5. package/dist/fetchers/delivery-zones.js +1 -1
  6. package/dist/fetchers/orders.d.ts +82 -0
  7. package/dist/fetchers/orders.js +38 -1
  8. package/dist/fetchers/products.js +1 -1
  9. package/dist/hooks/admin/abandoned-carts.d.ts +8 -0
  10. package/dist/hooks/admin/brands.d.ts +4 -0
  11. package/dist/hooks/admin/customers.d.ts +27 -0
  12. package/dist/hooks/admin/delivery-zones.d.ts +4 -0
  13. package/dist/hooks/admin/discount-codes.d.ts +5 -0
  14. package/dist/hooks/admin/dispatch-riders.d.ts +59 -0
  15. package/dist/hooks/admin/dispatch-riders.js +92 -0
  16. package/dist/hooks/admin/index.d.ts +1 -0
  17. package/dist/hooks/admin/index.js +1 -0
  18. package/dist/hooks/admin/orders.d.ts +191 -0
  19. package/dist/hooks/admin/orders.js +93 -0
  20. package/dist/hooks/admin/products.d.ts +6 -0
  21. package/dist/hooks/admin/stats.d.ts +34 -0
  22. package/dist/hooks/admin/stats.js +20 -0
  23. package/dist/hooks/admin/variants.d.ts +10 -0
  24. package/dist/hooks/admin/warehouses.d.ts +2 -0
  25. package/dist/hooks/public/carts.d.ts +585 -1
  26. package/dist/hooks/public/carts.js +20 -2
  27. package/dist/hooks/public/orders.d.ts +86 -1
  28. package/dist/hooks/public/orders.js +23 -1
  29. package/dist/provider.js +1 -1
  30. package/dist/rpc-client.d.ts +5456 -1769
  31. package/dist/rpc-client.js +1 -0
  32. package/dist/rpc-types.d.ts +9 -0
  33. package/dist/utils/query-keys.d.ts +7 -0
  34. package/dist/utils/query-keys.js +7 -0
  35. package/package.json +7 -8
@@ -7,4 +7,4 @@
7
7
  * These types provide end-to-end type safety between the backend API
8
8
  * and the frontend hooks/fetchers.
9
9
  */
10
- export type { CartsRPC, OrdersRPC, ProductsRPC, DeliveryZonesRPC, BrandsRPC, AdminOrdersRPC, AdminBrandsRPC, AdminProductsRPC, AdminVariantsRPC, AdminWarehousesRPC, AdminInventoryRPC, AdminCustomersRPC, AdminStatsRPC, AdminAbandonedCartsRPC, AdminDiscountCodesRPC, AdminDeliveryZonesRPC, ProductAddonsRPC, AdminProductAddonsRPC, AdminMediaRPC, AdminSalesRPC, } from '../../../apps/backend/src/http-app';
10
+ export type { CartsRPC, OrdersRPC, ProductsRPC, DeliveryZonesRPC, BrandsRPC, AdminOrdersRPC, AdminBrandsRPC, AdminProductsRPC, AdminVariantsRPC, AdminWarehousesRPC, AdminInventoryRPC, AdminCustomersRPC, AdminStatsRPC, AdminAbandonedCartsRPC, AdminDiscountCodesRPC, AdminDeliveryZonesRPC, ProductAddonsRPC, AdminProductAddonsRPC, AdminMediaRPC, AdminSalesRPC, AdminDispatchRidersRPC, } from '../../../apps/backend/src/http-app';
@@ -5,7 +5,7 @@
5
5
  * They can also be imported directly in Server Components.
6
6
  */
7
7
  import { createRpcClients } from '../rpc-client';
8
- const API_URL = 'https://oms-api.instock.com.ng';
8
+ const API_URL = 'https://oms-api.instock.ng';
9
9
  /**
10
10
  * Fetch brand configuration by slug
11
11
  *