import { AxiosResponse } from 'axios'; import { BaseEntity } from '../../../entities/core-entities/index.js'; /** * Interface for HttpService * @param TRequest Request body type */ export interface IHttpService { /** * GET request * @param url String that represent the url expect to sent to * @returns Promise with object of R structure */ get: (url: string) => Promise>; /** * POST request * @param url String that represent the url expect to sent to * @param body Payload that represent the request body * @param responseBodyType Type of the response body expected * to be returned * @returns Promise with object of R structure */ post: (url: string, body: TRequest) => Promise>; }