import{t as e}from"./api-Dal_nT4z.js";var{useGetStockRecordsQuery:t,useGetStockRecordQuery:n,useGetStockMovementsQuery:r,useGetStockMovementQuery:i,useCreateStockMovementMutation:a,useConfirmStockMovementMutation:o,useCreateStockTransferMutation:s,useCreateStockAdjustmentMutation:c,useGetValuationSummaryQuery:l,useGetValuationDetailQuery:u,useGetStockLedgerQuery:d}=e.injectEndpoints({endpoints:e=>({getStockRecords:e.query({query:e=>({url:`/inventory/stock-records/`,params:e||void 0}),providesTags:[`Inventory`],transformResponse:e=>Array.isArray(e)?e:e.results||[]}),getStockRecord:e.query({query:e=>`/inventory/stock-records/${e}/`,providesTags:[`Inventory`]}),getStockMovements:e.query({query:e=>({url:`/inventory/stock-movements/`,params:e||void 0}),providesTags:[`Inventory`],transformResponse:e=>Array.isArray(e)?e:e.results||[]}),getStockMovement:e.query({query:e=>`/inventory/stock-movements/${e}/`,providesTags:[`Inventory`]}),createStockMovement:e.mutation({query:e=>({url:`/inventory/stock-movements/`,method:`POST`,body:e}),invalidatesTags:[`Inventory`]}),confirmStockMovement:e.mutation({query:e=>({url:`/inventory/stock-movements/${e}/confirm/`,method:`POST`}),invalidatesTags:[`Inventory`]}),createStockTransfer:e.mutation({query:e=>({url:`/inventory/stock-transfers/`,method:`POST`,body:e}),invalidatesTags:[`Inventory`]}),createStockAdjustment:e.mutation({query:e=>({url:`/inventory/stock-adjustments/`,method:`POST`,body:e}),invalidatesTags:[`Inventory`]}),getValuationSummary:e.query({query:e=>({url:`/inventory/valuation/summary/`,params:e||void 0}),providesTags:[`Inventory`],transformResponse:e=>Array.isArray(e)?e:e.results||[]}),getValuationDetail:e.query({query:e=>({url:`/inventory/valuation/detail/`,params:e||void 0}),providesTags:[`Inventory`],transformResponse:e=>Array.isArray(e)?e:e.results||[]}),getStockLedger:e.query({query:e=>({url:`/inventory/stock-ledger/report/`,params:e}),providesTags:[`Inventory`]})}),overrideExisting:!1});export{r as a,u as c,i,l,s as n,n as o,d as r,t as s,c as t};