17 lines
474 B
TypeScript
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 });
|