mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-04-06 07:47:20 +02:00
* feat: Add pagination interfaces and update user and group types for better data handling * fix: Update data-schemas version to 0.0.19
17 lines
349 B
TypeScript
17 lines
349 B
TypeScript
export interface CursorPaginationParams {
|
|
limit?: number;
|
|
cursor?: string;
|
|
sortBy?: string;
|
|
sortOrder?: 'asc' | 'desc';
|
|
}
|
|
|
|
export interface CursorPaginationResponse<T> {
|
|
data: T[];
|
|
pagination: {
|
|
hasNextPage: boolean;
|
|
hasPreviousPage: boolean;
|
|
nextCursor?: string;
|
|
previousCursor?: string;
|
|
totalCount?: number;
|
|
};
|
|
}
|