From 0cfd28fe27b5c62dc4ecaea8d08d89a042b8c3ed Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Fri, 17 Dec 2021 18:59:24 +0000 Subject: [PATCH] Add pagination info to rest query fields definition --- packages/server/src/definitions/datasource.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/server/src/definitions/datasource.ts b/packages/server/src/definitions/datasource.ts index 148d8f2875..b5191bbc68 100644 --- a/packages/server/src/definitions/datasource.ts +++ b/packages/server/src/definitions/datasource.ts @@ -232,6 +232,7 @@ export interface RestQueryFields { json: object method: string authConfigId: string + pagination: PaginationConfig | null } export interface RestConfig { @@ -242,6 +243,13 @@ export interface RestConfig { authConfigs: AuthConfig[] } +export interface PaginationConfig { + type: string + pageParam: string + sizeParam: string | null + responseParam: string | null +} + export interface Query { _id?: string datasourceId: string