import { CrudClient } from "../infra/crud-client"
import type { ApiClientOptions } from "../infra/client"
import type { ApiPath } from "../infra/types"

export const LABEL_ROUTES = {
    INDEX: "/api/labels",
    BY_ID: "/api/labels/{id}",
} as const satisfies Record<string, ApiPath>

export class LabelsClient extends CrudClient<
    typeof LABEL_ROUTES.INDEX,
    typeof LABEL_ROUTES.BY_ID
> {
    constructor(baseUrl?: string, defaultOptions?: ApiClientOptions) {
        super(baseUrl, defaultOptions, LABEL_ROUTES.INDEX, LABEL_ROUTES.BY_ID)
    }
}
