Add all the original files from the deleted 0.2.8 npm package

This commit is contained in:
daniel nakov
2025-02-26 19:31:54 -05:00
parent 8bf1bb8913
commit ca97a02201
323 changed files with 26218 additions and 2 deletions

27
vendor/sdk/pagination.d.ts vendored Normal file
View File

@@ -0,0 +1,27 @@
import { AbstractPage, Response, APIClient, FinalRequestOptions, PageInfo } from "./core.js";
export interface PageResponse<Item> {
data: Array<Item>;
has_more: boolean;
first_id: string | null;
last_id: string | null;
}
export interface PageParams {
/**
* Number of items per page.
*/
limit?: number;
before_id?: string;
after_id?: string;
}
export declare class Page<Item> extends AbstractPage<Item> implements PageResponse<Item> {
data: Array<Item>;
has_more: boolean;
first_id: string | null;
last_id: string | null;
constructor(client: APIClient, response: Response, body: PageResponse<Item>, options: FinalRequestOptions);
getPaginatedItems(): Item[];
hasNextPage(): boolean;
nextPageParams(): Partial<PageParams> | null;
nextPageInfo(): PageInfo | null;
}
//# sourceMappingURL=pagination.d.ts.map