import { BaseAPI, UrlBuilder } from '../base'; import { Details, OutType, Results } from './types'; export type LabelCreate = Details & { color: string; }; export type LabelUpdate = LabelCreate; export type Label = LabelCreate & OutType; export class LabelsApi extends BaseAPI { async getAll() { return this.http.get>(UrlBuilder('/labels')); } async create(label: LabelCreate) { return this.http.post(UrlBuilder('/labels'), label); } async get(id: string) { return this.http.get