diff --git a/packages/nocodb-sdk/src/lib/Api.ts b/packages/nocodb-sdk/src/lib/Api.ts index 8f74448c9c..865e4c994f 100644 --- a/packages/nocodb-sdk/src/lib/Api.ts +++ b/packages/nocodb-sdk/src/lib/Api.ts @@ -2141,6 +2141,20 @@ export interface ViewReqType { 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 */ @@ -4289,10 +4303,10 @@ export class Api< * @name List * @summary List Shared Views * @request GET:/api/v1/db/meta/tables/{tableId}/share - * @response `200` `(any)[]` OK + * @response `200` `SharedViewListType` OK */ list: (tableId: IdType, params: RequestParams = {}) => - this.request({ + this.request({ path: `/api/v1/db/meta/tables/${tableId}/share`, method: 'GET', format: 'json', @@ -4380,7 +4394,7 @@ export class Api< * @request POST:/api/v1/db/meta/views/{viewId}/columns * @response `200` `void` OK */ - create: (viewId: string, data: any, params: RequestParams = {}) => + create: (viewId: string, data: ColumnReqType, params: RequestParams = {}) => this.request({ path: `/api/v1/db/meta/views/${viewId}/columns`, method: 'POST', @@ -4401,7 +4415,7 @@ export class Api< update: ( viewId: IdType, columnId: IdType, - data: any, + data: ViewColumnReqType, params: RequestParams = {} ) => this.request({