Files
ctms/frontend/src/api/impInventory.ts
T
2025-12-17 12:46:58 +08:00

17 lines
474 B
TypeScript

import { apiGet } from "./axios";
import type { AxiosResponse } from "axios";
import type { ApiListResponse } from "../types/api";
export interface ImpInventoryRow {
site_id: string;
batch_id: string;
quantity_on_hand: number;
updated_at: string;
}
export const fetchImpInventory = (
studyId: string,
params?: Record<string, any>
): Promise<AxiosResponse<ApiListResponse<ImpInventoryRow>>> =>
apiGet(`/api/v1/studies/${studyId}/imp/inventory/`, { params });