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

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

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