From 28a56b87bce459f6e768d1c5a3ee467571858315 Mon Sep 17 00:00:00 2001 From: Juergen Kunz Date: Mon, 28 Jul 2025 15:00:42 +0000 Subject: [PATCH] update --- ts/index.ts | 2 +- ts/modern/types/pagination.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ts/index.ts b/ts/index.ts index 7e61bff..9ae8b0a 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -5,7 +5,7 @@ export * from './legacy/index.js'; export * from './modern/index.js'; // Core exports for advanced usage -export { SmartResponse, type ICoreRequestOptions, type ICoreResponse } from './core/index.js'; +export { CoreResponse, type ICoreRequestOptions, type ICoreResponse } from './core/index.js'; // Default export for easier importing import { SmartRequestClient } from './modern/smartrequestclient.js'; diff --git a/ts/modern/types/pagination.ts b/ts/modern/types/pagination.ts index f5f9422..0cf7993 100644 --- a/ts/modern/types/pagination.ts +++ b/ts/modern/types/pagination.ts @@ -1,4 +1,4 @@ -import { type SmartResponse } from '../../core/index.js'; +import { type CoreResponse } from '../../core/index.js'; /** * Pagination strategy options @@ -45,8 +45,8 @@ export interface LinkPaginationConfig { */ export interface CustomPaginationConfig { strategy: PaginationStrategy.CUSTOM; - hasNextPage: (response: SmartResponse) => boolean; - getNextPageParams: (response: SmartResponse, currentParams: Record) => Record; + hasNextPage: (response: CoreResponse) => boolean; + getNextPageParams: (response: CoreResponse, currentParams: Record) => Record; } /** @@ -62,5 +62,5 @@ export interface TPaginatedResponse { hasNextPage: boolean; // Whether there are more pages getNextPage: () => Promise>; // Function to get the next page getAllPages: () => Promise; // Function to get all remaining pages and combine - response: SmartResponse; // Original response + response: CoreResponse; // Original response } \ No newline at end of file