erp-pos-ecommerce-shared 0.2.15 → 0.2.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/hooks.js CHANGED
@@ -893,6 +893,16 @@ var batches = {
893
893
  queryKey: batchQueryKeys.list(params),
894
894
  staleTime: 3e4
895
895
  }),
896
+ getBatchesForTable: (params) => queryOptions({
897
+ queryFn: () => getBatches({
898
+ skip: params.skip ?? 0,
899
+ limit: params.limit ?? 10,
900
+ query: (params.query ?? "").trim() || void 0,
901
+ productId: params.productId
902
+ }),
903
+ queryKey: batchQueryKeys.list(params),
904
+ staleTime: 3e4
905
+ }),
896
906
  getBatchesForSelect: () => queryOptions({
897
907
  queryFn: getBatchesForSelect,
898
908
  queryKey: batchQueryKeys.forSelect(),