mirror of
https://github.com/Onewon/claude-code.git
synced 2026-04-26 14:51:23 +03:00
Add all the original files from the deleted 0.2.8 npm package
This commit is contained in:
27
vendor/sdk/pagination.d.ts
vendored
Normal file
27
vendor/sdk/pagination.d.ts
vendored
Normal 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
|
||||
Reference in New Issue
Block a user