|
|
@ -2141,6 +2141,20 @@ export interface ViewReqType { |
|
|
|
show_system_fields?: BoolType; |
|
|
|
show_system_fields?: BoolType; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Model for View Column Request |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
export interface ViewColumnReqType { |
|
|
|
|
|
|
|
/** View Title */ |
|
|
|
|
|
|
|
show?: BoolType; |
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* The order of the list of views. |
|
|
|
|
|
|
|
* @min 0 |
|
|
|
|
|
|
|
* @example 1 |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
order?: number; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Model for Visibility Rule Request |
|
|
|
* Model for Visibility Rule Request |
|
|
|
*/ |
|
|
|
*/ |
|
|
@ -4289,10 +4303,10 @@ export class Api< |
|
|
|
* @name List |
|
|
|
* @name List |
|
|
|
* @summary List Shared Views |
|
|
|
* @summary List Shared Views |
|
|
|
* @request GET:/api/v1/db/meta/tables/{tableId}/share |
|
|
|
* @request GET:/api/v1/db/meta/tables/{tableId}/share |
|
|
|
* @response `200` `(any)[]` OK |
|
|
|
* @response `200` `SharedViewListType` OK |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
list: (tableId: IdType, params: RequestParams = {}) => |
|
|
|
list: (tableId: IdType, params: RequestParams = {}) => |
|
|
|
this.request<any[], any>({ |
|
|
|
this.request<SharedViewListType, any>({ |
|
|
|
path: `/api/v1/db/meta/tables/${tableId}/share`, |
|
|
|
path: `/api/v1/db/meta/tables/${tableId}/share`, |
|
|
|
method: 'GET', |
|
|
|
method: 'GET', |
|
|
|
format: 'json', |
|
|
|
format: 'json', |
|
|
@ -4380,7 +4394,7 @@ export class Api< |
|
|
|
* @request POST:/api/v1/db/meta/views/{viewId}/columns |
|
|
|
* @request POST:/api/v1/db/meta/views/{viewId}/columns |
|
|
|
* @response `200` `void` OK |
|
|
|
* @response `200` `void` OK |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
create: (viewId: string, data: any, params: RequestParams = {}) => |
|
|
|
create: (viewId: string, data: ColumnReqType, params: RequestParams = {}) => |
|
|
|
this.request<void, any>({ |
|
|
|
this.request<void, any>({ |
|
|
|
path: `/api/v1/db/meta/views/${viewId}/columns`, |
|
|
|
path: `/api/v1/db/meta/views/${viewId}/columns`, |
|
|
|
method: 'POST', |
|
|
|
method: 'POST', |
|
|
@ -4401,7 +4415,7 @@ export class Api< |
|
|
|
update: ( |
|
|
|
update: ( |
|
|
|
viewId: IdType, |
|
|
|
viewId: IdType, |
|
|
|
columnId: IdType, |
|
|
|
columnId: IdType, |
|
|
|
data: any, |
|
|
|
data: ViewColumnReqType, |
|
|
|
params: RequestParams = {} |
|
|
|
params: RequestParams = {} |
|
|
|
) => |
|
|
|
) => |
|
|
|
this.request<void, any>({ |
|
|
|
this.request<void, any>({ |
|
|
|