Browse Source

chore(swagger): shared meta api type correction

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3188/head
Pranav C 2 years ago
parent
commit
277aad310e
  1. 6
      packages/nocodb-sdk/src/lib/Api.ts
  2. 26
      scripts/sdk/swagger.json

6
packages/nocodb-sdk/src/lib/Api.ts

@ -130,6 +130,7 @@ export interface ViewType {
order?: number; order?: number;
fk_model_id?: string; fk_model_id?: string;
slug?: string; slug?: string;
uuid?: string;
show_system_fields?: boolean; show_system_fields?: boolean;
lock_type?: 'collaborative' | 'locked' | 'personal'; lock_type?: 'collaborative' | 'locked' | 'personal';
} }
@ -3083,14 +3084,15 @@ export class Api<
* @tags Public * @tags Public
* @name SharedViewMetaGet * @name SharedViewMetaGet
* @request GET:/api/v1/db/public/shared-view/{sharedViewUuid}/meta * @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 = {}) => sharedViewMetaGet: (sharedViewUuid: string, params: RequestParams = {}) =>
this.request< this.request<
ViewType & { ViewType & {
relatedMetas?: any; relatedMetas?: any;
client?: string; client?: string;
columns?: GridColumnType | FormColumnType | GalleryColumnType; columns?: (GridColumnType | FormColumnType | GalleryColumnType) &
ColumnType;
model?: TableType; model?: TableType;
} & { view?: FormType | GridType | GalleryType }, } & { view?: FormType | GridType | GalleryType },
any any

26
scripts/sdk/swagger.json

@ -4441,15 +4441,22 @@
"type": "string" "type": "string"
}, },
"columns": { "columns": {
"oneOf": [ "allOf": [
{
"$ref": "#/components/schemas/GridColumn"
},
{ {
"$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": { "properties": {
"view": { "view": {
"oneOf": [ "oneOf": [
@ -4473,8 +4481,7 @@
} }
] ]
} }
}, }
"type": "object"
} }
] ]
} }
@ -6139,6 +6146,9 @@
"slug": { "slug": {
"type": "string" "type": "string"
}, },
"uuid": {
"type": "string"
},
"show_system_fields": { "show_system_fields": {
"type": "boolean" "type": "boolean"
}, },

Loading…
Cancel
Save