From 1dcf0ed2efab9bd6afa880ad550c79ade7f4d837 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Wed, 28 Sep 2022 17:35:35 +0800 Subject: [PATCH] fix(nocodb-sdk): add missing offset & limit --- packages/nocodb-sdk/src/lib/Api.ts | 8 +++++++- scripts/sdk/swagger.json | 14 ++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/packages/nocodb-sdk/src/lib/Api.ts b/packages/nocodb-sdk/src/lib/Api.ts index 6665a3b9eb..e3c4e531c9 100644 --- a/packages/nocodb-sdk/src/lib/Api.ts +++ b/packages/nocodb-sdk/src/lib/Api.ts @@ -2252,7 +2252,13 @@ export class Api< orgs: string, projectName: string, tableName: string, - query?: { fields?: any[]; sort?: any[]; where?: string }, + query?: { + fields?: any[]; + sort?: any[]; + where?: string; + offset?: string; + limit?: string; + }, params: RequestParams = {} ) => this.request({ diff --git a/scripts/sdk/swagger.json b/scripts/sdk/swagger.json index c0f2df3452..0e639602ef 100644 --- a/scripts/sdk/swagger.json +++ b/scripts/sdk/swagger.json @@ -2608,6 +2608,20 @@ }, "in": "query", "name": "where" + }, + { + "schema": { + "type": "string" + }, + "in": "query", + "name": "offset" + }, + { + "schema": { + "type": "string" + }, + "in": "query", + "name": "limit" } ], "responses": {