import APIUrl from "../helpers/ApiUrl";
import MakeRequest from "../helpers/makeRequest";
import { ICMISearchObj } from "../interfaces/Interfaces";

export default class CMI {
    static async searchCMIs(searchParam: ICMISearchObj) {
        const postData = null;
        const fullPIList = await MakeRequest.httpRequest(APIUrl.getCMIListAPI(), "GET", postData, searchParam);
        return fullPIList;
    }

    static async getCMIDetails(cmiId: string) {
        const postData = null;
        let params = null;
        const fullPIDetails = await MakeRequest.httpRequest(APIUrl.getCMIDetailsAPI(cmiId), "GET", postData, params);
        return fullPIDetails;
    }
}