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;
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

26
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"
},

Loading…
Cancel
Save