frontend / api/inventory/mutations
api/inventory/mutations
File
mutations.ts
Enterprise
- Single import location for all mutations and queries
- Backward compatible with existing imports
- Clear separation of concerns across modules
- Full TypeDoc documentation inheritance
Usage
// Import specific mutations
import { upsertItem, adjustQuantity, changePrice } from '@/api/inventory/mutations';
// Or import types
import type { UpsertItemRequest, AdjustQuantityRequest } from '@/api/inventory/mutations';
// Or import suppliers
import { listSuppliers, searchItemsBySupplier } from '@/api/inventory/mutations';References
adjustQuantity
Re-exports adjustQuantity
AdjustQuantityRequest
Re-exports AdjustQuantityRequest
changePrice
Re-exports changePrice
ChangePriceRequest
Re-exports ChangePriceRequest
deleteItem
Re-exports deleteItem
INVENTORY_BASE
Re-exports INVENTORY_BASE
listSuppliers
Re-exports listSuppliers
normalizeInventoryRow
Re-exports normalizeInventoryRow
renameItem
Re-exports renameItem
searchItemsBySupplier
Re-exports searchItemsBySupplier
SUPPLIERS_BASE
Re-exports SUPPLIERS_BASE
upsertItem
Re-exports upsertItem
UpsertItemRequest
Re-exports UpsertItemRequest
UpsertItemResponse
Re-exports UpsertItemResponse