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

export const QUICK_NOTE_ROUTES = {
    INDEX: "/api/quick-notes",
    BY_ID: "/api/quick-notes/{id}",
} as const satisfies Record<string, ApiPath>

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