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

export const INVENTORY_CATEGORY_ROUTES = {
    INDEX: "/api/inventory-categories",
    BY_ID: "/api/inventory-categories/{id}",
} as const satisfies Record<string, ApiPath>

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