import { Options } from "@/lib/client";

export type BaseEntity = {
    id: number;
    name: string;
    lexorank?: string;
};

export type CreateMutationOptions = Options<{
    body: any;
    query: undefined;
    path: undefined;
    url: string;
}>;

export type UpdateMutationOptions = Options<{
    body: any;
    query: undefined;
    path: {
        pk: number;
    };
    url: string;
}>;

export type DeleteMutationOptions = Options<{
    body: undefined;
    query: undefined;
    path: {
        pk: number;
    };
    url: string;
}>;
