diff --git a/packages/nocodb-sdk/src/lib/Api.ts b/packages/nocodb-sdk/src/lib/Api.ts index 535f255ea0..748b959145 100644 --- a/packages/nocodb-sdk/src/lib/Api.ts +++ b/packages/nocodb-sdk/src/lib/Api.ts @@ -130,6 +130,7 @@ export interface ViewType { order?: number; fk_model_id?: string; slug?: string; + uuid?: string; show_system_fields?: boolean; lock_type?: 'collaborative' | 'locked' | 'personal'; } @@ -3083,14 +3084,15 @@ export class Api< * @tags Public * @name SharedViewMetaGet * @request GET:/api/v1/db/public/shared-view/{sharedViewUuid}/meta - * @response `200` `(ViewType & { relatedMetas?: any, client?: string, columns?: (GridColumnType | FormColumnType | GalleryColumnType), model?: TableType } & { view?: (FormType | GridType | GalleryType) })` OK + * @response `200` `(ViewType & { relatedMetas?: any, client?: string, columns?: ((GridColumnType | FormColumnType | GalleryColumnType) & ColumnType), model?: TableType } & { view?: (FormType | GridType | GalleryType) })` OK */ sharedViewMetaGet: (sharedViewUuid: string, params: RequestParams = {}) => this.request< ViewType & { relatedMetas?: any; client?: string; - columns?: GridColumnType | FormColumnType | GalleryColumnType; + columns?: (GridColumnType | FormColumnType | GalleryColumnType) & + ColumnType; model?: TableType; } & { view?: FormType | GridType | GalleryType }, any diff --git a/scripts/sdk/swagger.json b/scripts/sdk/swagger.json index 6df846ef2d..dae305d759 100644 --- a/scripts/sdk/swagger.json +++ b/scripts/sdk/swagger.json @@ -4441,15 +4441,22 @@ "type": "string" }, "columns": { - "oneOf": [ - { - "$ref": "#/components/schemas/GridColumn" - }, + "allOf": [ { - "$ref": "#/components/schemas/FormColumn" + "oneOf": [ + { + "$ref": "#/components/schemas/GridColumn" + }, + { + "$ref": "#/components/schemas/FormColumn" + }, + { + "$ref": "#/components/schemas/GalleryColumn" + } + ] }, { - "$ref": "#/components/schemas/GalleryColumn" + "$ref": "#/components/schemas/Column" } ] }, @@ -4459,6 +4466,7 @@ } }, { + "type": "object", "properties": { "view": { "oneOf": [ @@ -4473,8 +4481,7 @@ } ] } - }, - "type": "object" + } } ] } @@ -6139,6 +6146,9 @@ "slug": { "type": "string" }, + "uuid": { + "type": "string" + }, "show_system_fields": { "type": "boolean" },