import { DefaultError } from "@tanstack/react-query";

export type TDataSourceRecords = {
  page: number;
  per_page: number;
  total_pages: number;
  total_items: number;
  items: TDataSourceRecord[];
};

export type TDataSourceRecord = {
  id?: string | number;
  [key: string]: any;
};

export type TDataSourceError = DefaultError;

export type TDataSourceVariables = Record<string, any>;

export type TDataSourceContext = unknown;
