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

export const INSURANCE_TYPE_ROUTES = {
    INDEX: "/api/insurance-types",
    BY_ID: "/api/insurance-types/{id}",
} as const satisfies Record<string, ApiPath>

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