|
|
@ -2258,6 +2258,36 @@ export class Api< |
|
|
|
...params, |
|
|
|
...params, |
|
|
|
}), |
|
|
|
}), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* No description |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* @tags DB table row |
|
|
|
|
|
|
|
* @name GroupBy |
|
|
|
|
|
|
|
* @summary Table row Group by |
|
|
|
|
|
|
|
* @request GET:/api/v1/db/data/{orgs}/{projectName}/{tableName}/groupby |
|
|
|
|
|
|
|
* @response `200` `any` OK |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
groupBy: ( |
|
|
|
|
|
|
|
orgs: string, |
|
|
|
|
|
|
|
projectName: string, |
|
|
|
|
|
|
|
tableName: string, |
|
|
|
|
|
|
|
query?: { |
|
|
|
|
|
|
|
column_name?: string; |
|
|
|
|
|
|
|
sort?: any[]; |
|
|
|
|
|
|
|
where?: string; |
|
|
|
|
|
|
|
limit?: number; |
|
|
|
|
|
|
|
offset?: number; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
params: RequestParams = {} |
|
|
|
|
|
|
|
) => |
|
|
|
|
|
|
|
this.request<any, any>({ |
|
|
|
|
|
|
|
path: `/api/v1/db/data/${orgs}/${projectName}/${tableName}/groupby`, |
|
|
|
|
|
|
|
method: 'GET', |
|
|
|
|
|
|
|
query: query, |
|
|
|
|
|
|
|
format: 'json', |
|
|
|
|
|
|
|
...params, |
|
|
|
|
|
|
|
}), |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* No description |
|
|
|
* No description |
|
|
|
* |
|
|
|
* |
|
|
@ -2664,17 +2694,23 @@ export class Api< |
|
|
|
* No description |
|
|
|
* No description |
|
|
|
* |
|
|
|
* |
|
|
|
* @tags DB view row |
|
|
|
* @tags DB view row |
|
|
|
* @name FindOne |
|
|
|
* @name GroupBy |
|
|
|
* @summary Table view row FindOne |
|
|
|
* @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}/find-one |
|
|
|
* @response `200` `any` OK |
|
|
|
* @response `200` `any` OK |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
findOne: ( |
|
|
|
groupBy: ( |
|
|
|
orgs: string, |
|
|
|
orgs: string, |
|
|
|
projectName: string, |
|
|
|
projectName: string, |
|
|
|
tableName: string, |
|
|
|
tableName: string, |
|
|
|
viewName: string, |
|
|
|
viewName: string, |
|
|
|
query?: { fields?: any[]; sort?: any[]; where?: string; nested?: any }, |
|
|
|
query?: { |
|
|
|
|
|
|
|
column_name?: string; |
|
|
|
|
|
|
|
sort?: any[]; |
|
|
|
|
|
|
|
where?: string; |
|
|
|
|
|
|
|
limit?: number; |
|
|
|
|
|
|
|
offset?: number; |
|
|
|
|
|
|
|
}, |
|
|
|
params: RequestParams = {} |
|
|
|
params: RequestParams = {} |
|
|
|
) => |
|
|
|
) => |
|
|
|
this.request<any, any>({ |
|
|
|
this.request<any, any>({ |
|
|
|