abowire
Version:
This is the official **Abowire Javascript SDK**, which makes it easy to connect to the Abowire **GraphQL API** and includes all the required dependencies you need.
23 lines (22 loc) • 437 B
TypeScript
export type Pagination = {
currentPage: number;
itemCount: number;
itemsPerPage: number;
totalItems: number;
totalPages: number;
};
export type QueryPrams = {
id: string;
page?: number;
itemsPerPage?: number;
};
export type PaginatedResult<T> = {
items: T[];
meta: Pagination;
};
export type IdQuery = {
id: string;
};
export type PaginationQuery<T> = {
pagination: PaginatedResult<T>;
};