Browse Source

chore: nocodb-sdk build

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/2165/head
Pranav C 3 years ago
parent
commit
b669f0daba
  1. 29
      packages/nocodb-sdk/src/lib/Api.ts

29
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<any, any>({
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<any, any>({
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',

Loading…
Cancel
Save