|
|
@ -2690,13 +2690,38 @@ export class Api< |
|
|
|
...params, |
|
|
|
...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 |
|
|
|
* No description |
|
|
|
* |
|
|
|
* |
|
|
|
* @tags DB view row |
|
|
|
* @tags DB view row |
|
|
|
* @name GroupBy |
|
|
|
* @name GroupBy |
|
|
|
* @summary Table view row Group by |
|
|
|
* @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 |
|
|
|
* @response `200` `any` OK |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
groupBy: ( |
|
|
|
groupBy: ( |
|
|
@ -2714,7 +2739,7 @@ export class Api< |
|
|
|
params: RequestParams = {} |
|
|
|
params: RequestParams = {} |
|
|
|
) => |
|
|
|
) => |
|
|
|
this.request<any, any>({ |
|
|
|
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', |
|
|
|
method: 'GET', |
|
|
|
query: query, |
|
|
|
query: query, |
|
|
|
format: 'json', |
|
|
|
format: 'json', |
|
|
|