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

export const MAKE_AND_MODEL_ROUTES = {
    INDEX: "/api/make-and-models",
    BY_ID: "/api/make-and-models/{id}",
} as const satisfies Record<string, ApiPath>

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