From 5702c31dd1ec9fb3d1bcd17b3ce9fabaadc29070 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Wed, 25 May 2022 08:35:30 +0530 Subject: [PATCH] chore: nocodb-sdk build Signed-off-by: Pranav C --- packages/nocodb-sdk/src/lib/Api.ts | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/packages/nocodb-sdk/src/lib/Api.ts b/packages/nocodb-sdk/src/lib/Api.ts index 9c31847787..a5dc2e7ebf 100644 --- a/packages/nocodb-sdk/src/lib/Api.ts +++ b/packages/nocodb-sdk/src/lib/Api.ts @@ -2690,13 +2690,38 @@ export class Api< ...params, }), + /** + * No description + * + * @tags DB view row + * @name FindOne + * @summary Table view row FindOne + * @request GET:/api/v1/db/data/{orgs}/{projectName}/{tableName}/views/{viewName}/find-one + * @response `200` `any` OK + */ + findOne: ( + orgs: string, + projectName: string, + tableName: string, + viewName: string, + query?: { fields?: any[]; sort?: any[]; where?: string; nested?: any }, + params: RequestParams = {} + ) => + this.request({ + path: `/api/v1/db/data/${orgs}/${projectName}/${tableName}/views/${viewName}/find-one`, + method: 'GET', + query: query, + format: 'json', + ...params, + }), + /** * No description * * @tags DB view row * @name GroupBy * @summary Table view row Group by - * @request GET:/api/v1/db/data/{orgs}/{projectName}/{tableName}/views/{viewName}/find-one + * @request GET:/api/v1/db/data/{orgs}/{projectName}/{tableName}/views/{viewName}/groupby * @response `200` `any` OK */ groupBy: ( @@ -2714,7 +2739,7 @@ export class Api< params: RequestParams = {} ) => this.request({ - path: `/api/v1/db/data/${orgs}/${projectName}/${tableName}/views/${viewName}/find-one`, + path: `/api/v1/db/data/${orgs}/${projectName}/${tableName}/views/${viewName}/groupby`, method: 'GET', query: query, format: 'json',