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

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

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