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

export const INVOICE_SEQUENCE_ROUTES = {
    INDEX: "/api/invoice-sequences",
    BY_ID: "/api/invoice-sequences/{id}",
} as const satisfies Record<string, ApiPath>

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