import { AxiosInstance } from 'axios'; import { Methods, PingData } from '../types'; export class Raw { api: AxiosInstance; constructor(api: AxiosInstance) { this.api = api; this.ping = this.ping.bind(this); } async ping(): Promise { const { data } = await this.api.request({ url: '/ping', method: Methods.GET, }); return data; } } export interface RawRelations {} export type RawWithRelations = Raw & RawRelations;