import ApiCall from "./ApiCall"; import Presets, { PresetCreateSchema } from "./Presets"; export interface PresetSchema extends PresetCreateSchema { id: string; } export interface PresetDeleteSchema { id: string; } export default class Preset { constructor(private presetId: string, private apiCall: ApiCall) {} async retrieve(): Promise { return this.apiCall.get(this.endpointPath()); } async delete(): Promise { return this.apiCall.delete(this.endpointPath()); } private endpointPath(): string { return `${Presets.RESOURCEPATH}/${this.presetId}`; } }