|
|
@ -1449,23 +1449,6 @@ export class Api< |
|
|
|
}), |
|
|
|
}), |
|
|
|
}; |
|
|
|
}; |
|
|
|
dbTableColumn = { |
|
|
|
dbTableColumn = { |
|
|
|
/** |
|
|
|
|
|
|
|
* @description Read project details |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* @tags DB Table column |
|
|
|
|
|
|
|
* @name List |
|
|
|
|
|
|
|
* @summary Column List |
|
|
|
|
|
|
|
* @request GET:/api/v1/db/meta/tables/{tableId}/columns |
|
|
|
|
|
|
|
* @response `200` `ColumnListType` |
|
|
|
|
|
|
|
* @response `201` `ColumnType` Created |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
list: (tableId: string, params: RequestParams = {}) => |
|
|
|
|
|
|
|
this.request<ColumnListType, any>({ |
|
|
|
|
|
|
|
path: `/api/v1/db/meta/tables/${tableId}/columns`, |
|
|
|
|
|
|
|
method: 'GET', |
|
|
|
|
|
|
|
...params, |
|
|
|
|
|
|
|
}), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* No description |
|
|
|
* No description |
|
|
|
* |
|
|
|
* |
|
|
@ -1488,23 +1471,6 @@ export class Api< |
|
|
|
...params, |
|
|
|
...params, |
|
|
|
}), |
|
|
|
}), |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* @description Read project details |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* @tags DB Table column |
|
|
|
|
|
|
|
* @name Read |
|
|
|
|
|
|
|
* @summary Column Read |
|
|
|
|
|
|
|
* @request GET:/api/v1/db/meta/columns/{columnId} |
|
|
|
|
|
|
|
* @response `200` `ColumnType` OK |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
read: (columnId: string, params: RequestParams = {}) => |
|
|
|
|
|
|
|
this.request<ColumnType, any>({ |
|
|
|
|
|
|
|
path: `/api/v1/db/meta/columns/${columnId}`, |
|
|
|
|
|
|
|
method: 'GET', |
|
|
|
|
|
|
|
format: 'json', |
|
|
|
|
|
|
|
...params, |
|
|
|
|
|
|
|
}), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* No description |
|
|
|
* No description |
|
|
|
* |
|
|
|
* |
|
|
@ -1620,7 +1586,7 @@ export class Api< |
|
|
|
* |
|
|
|
* |
|
|
|
* @tags DB View |
|
|
|
* @tags DB View |
|
|
|
* @name ShowAllColumn |
|
|
|
* @name ShowAllColumn |
|
|
|
* @request POST:/api/v1/db/meta/views/{viewId}/showAll |
|
|
|
* @request POST:/api/v1/db/meta/views/{viewId}/show-all |
|
|
|
* @response `200` `void` OK |
|
|
|
* @response `200` `void` OK |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
showAllColumn: ( |
|
|
|
showAllColumn: ( |
|
|
@ -1629,7 +1595,7 @@ export class Api< |
|
|
|
params: RequestParams = {} |
|
|
|
params: RequestParams = {} |
|
|
|
) => |
|
|
|
) => |
|
|
|
this.request<void, any>({ |
|
|
|
this.request<void, any>({ |
|
|
|
path: `/api/v1/db/meta/views/${viewId}/showAll`, |
|
|
|
path: `/api/v1/db/meta/views/${viewId}/show-all`, |
|
|
|
method: 'POST', |
|
|
|
method: 'POST', |
|
|
|
query: query, |
|
|
|
query: query, |
|
|
|
...params, |
|
|
|
...params, |
|
|
@ -1640,7 +1606,7 @@ export class Api< |
|
|
|
* |
|
|
|
* |
|
|
|
* @tags DB View |
|
|
|
* @tags DB View |
|
|
|
* @name HideAllColumn |
|
|
|
* @name HideAllColumn |
|
|
|
* @request POST:/api/v1/db/meta/views/{viewId}/hideAll |
|
|
|
* @request POST:/api/v1/db/meta/views/{viewId}/hide-all |
|
|
|
* @response `200` `void` OK |
|
|
|
* @response `200` `void` OK |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
hideAllColumn: ( |
|
|
|
hideAllColumn: ( |
|
|
@ -1649,7 +1615,7 @@ export class Api< |
|
|
|
params: RequestParams = {} |
|
|
|
params: RequestParams = {} |
|
|
|
) => |
|
|
|
) => |
|
|
|
this.request<void, any>({ |
|
|
|
this.request<void, any>({ |
|
|
|
path: `/api/v1/db/meta/views/${viewId}/hideAll`, |
|
|
|
path: `/api/v1/db/meta/views/${viewId}/hide-all`, |
|
|
|
method: 'POST', |
|
|
|
method: 'POST', |
|
|
|
query: query, |
|
|
|
query: query, |
|
|
|
...params, |
|
|
|
...params, |
|
|
@ -1842,28 +1808,6 @@ export class Api< |
|
|
|
format: 'json', |
|
|
|
format: 'json', |
|
|
|
...params, |
|
|
|
...params, |
|
|
|
}), |
|
|
|
}), |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* No description |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* @tags DB View |
|
|
|
|
|
|
|
* @name Upload |
|
|
|
|
|
|
|
* @summary Attachment |
|
|
|
|
|
|
|
* @request POST:/projects/{projectId}/views/{viewId}/upload |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
upload: ( |
|
|
|
|
|
|
|
projectId: string, |
|
|
|
|
|
|
|
viewId: string, |
|
|
|
|
|
|
|
data: { files?: any; json?: string }, |
|
|
|
|
|
|
|
params: RequestParams = {} |
|
|
|
|
|
|
|
) => |
|
|
|
|
|
|
|
this.request<any, any>({ |
|
|
|
|
|
|
|
path: `/projects/${projectId}/views/${viewId}/upload`, |
|
|
|
|
|
|
|
method: 'POST', |
|
|
|
|
|
|
|
body: data, |
|
|
|
|
|
|
|
type: ContentType.FormData, |
|
|
|
|
|
|
|
...params, |
|
|
|
|
|
|
|
}), |
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
dbViewShare = { |
|
|
|
dbViewShare = { |
|
|
|
/** |
|
|
|
/** |
|
|
@ -1968,22 +1912,6 @@ export class Api< |
|
|
|
...params, |
|
|
|
...params, |
|
|
|
}), |
|
|
|
}), |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* No description |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* @tags DB View Column |
|
|
|
|
|
|
|
* @name Read |
|
|
|
|
|
|
|
* @request GET:/api/v1/db/meta/views/{viewId}/columns/{columnId} |
|
|
|
|
|
|
|
* @response `200` `any` OK |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
read: (viewId: string, columnId: string, params: RequestParams = {}) => |
|
|
|
|
|
|
|
this.request<any, any>({ |
|
|
|
|
|
|
|
path: `/api/v1/db/meta/views/${viewId}/columns/${columnId}`, |
|
|
|
|
|
|
|
method: 'GET', |
|
|
|
|
|
|
|
format: 'json', |
|
|
|
|
|
|
|
...params, |
|
|
|
|
|
|
|
}), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* No description |
|
|
|
* No description |
|
|
|
* |
|
|
|
* |
|
|
@ -2850,6 +2778,30 @@ export class Api< |
|
|
|
wrapped: true, |
|
|
|
wrapped: true, |
|
|
|
...params, |
|
|
|
...params, |
|
|
|
}), |
|
|
|
}), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* No description |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* @tags DB View row |
|
|
|
|
|
|
|
* @name Upload |
|
|
|
|
|
|
|
* @summary Attachment |
|
|
|
|
|
|
|
* @request POST:/api/v1/db/data-attachment/{orgs}/{projectName}/{tableName}/{columnName} |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
upload: ( |
|
|
|
|
|
|
|
orgs: string, |
|
|
|
|
|
|
|
projectName: string, |
|
|
|
|
|
|
|
tableName: string, |
|
|
|
|
|
|
|
columnName: string, |
|
|
|
|
|
|
|
data: { files?: any; json?: string }, |
|
|
|
|
|
|
|
params: RequestParams = {} |
|
|
|
|
|
|
|
) => |
|
|
|
|
|
|
|
this.request<any, any>({ |
|
|
|
|
|
|
|
path: `/api/v1/db/data-attachment/${orgs}/${projectName}/${tableName}/${columnName}`, |
|
|
|
|
|
|
|
method: 'POST', |
|
|
|
|
|
|
|
body: data, |
|
|
|
|
|
|
|
type: ContentType.FormData, |
|
|
|
|
|
|
|
...params, |
|
|
|
|
|
|
|
}), |
|
|
|
}; |
|
|
|
}; |
|
|
|
public = { |
|
|
|
public = { |
|
|
|
/** |
|
|
|
/** |
|
|
@ -2883,14 +2835,14 @@ export class Api< |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
dataCreate: ( |
|
|
|
dataCreate: ( |
|
|
|
sharedViewUuid: string, |
|
|
|
sharedViewUuid: string, |
|
|
|
data: any, |
|
|
|
data: object, |
|
|
|
params: RequestParams = {} |
|
|
|
params: RequestParams = {} |
|
|
|
) => |
|
|
|
) => |
|
|
|
this.request<any, any>({ |
|
|
|
this.request<any, any>({ |
|
|
|
path: `/api/v1/db/public/shared-view/${sharedViewUuid}/rows`, |
|
|
|
path: `/api/v1/db/public/shared-view/${sharedViewUuid}/rows`, |
|
|
|
method: 'POST', |
|
|
|
method: 'POST', |
|
|
|
body: data, |
|
|
|
body: data, |
|
|
|
type: ContentType.Json, |
|
|
|
type: ContentType.FormData, |
|
|
|
format: 'json', |
|
|
|
format: 'json', |
|
|
|
...params, |
|
|
|
...params, |
|
|
|
}), |
|
|
|
}), |
|
|
@ -2919,30 +2871,6 @@ export class Api< |
|
|
|
...params, |
|
|
|
...params, |
|
|
|
}), |
|
|
|
}), |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* No description |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* @tags Public |
|
|
|
|
|
|
|
* @name DataNestedExcludedList |
|
|
|
|
|
|
|
* @request GET:/api/v1/db/public/shared-view/{sharedViewUuid}/rows/{rowId}/{relationType}/{columnName}/exclude |
|
|
|
|
|
|
|
* @response `200` `any` OK |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
dataNestedExcludedList: ( |
|
|
|
|
|
|
|
sharedViewUuid: string, |
|
|
|
|
|
|
|
rowId: string, |
|
|
|
|
|
|
|
relationType: 'mm' | 'hm', |
|
|
|
|
|
|
|
columnName: string, |
|
|
|
|
|
|
|
query?: { limit?: string; offset?: string }, |
|
|
|
|
|
|
|
params: RequestParams = {} |
|
|
|
|
|
|
|
) => |
|
|
|
|
|
|
|
this.request<any, any>({ |
|
|
|
|
|
|
|
path: `/api/v1/db/public/shared-view/${sharedViewUuid}/rows/${rowId}/${relationType}/${columnName}/exclude`, |
|
|
|
|
|
|
|
method: 'GET', |
|
|
|
|
|
|
|
query: query, |
|
|
|
|
|
|
|
format: 'json', |
|
|
|
|
|
|
|
...params, |
|
|
|
|
|
|
|
}), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* No description |
|
|
|
* No description |
|
|
|
* |
|
|
|
* |
|
|
|