Browse Source

fix: add missing schema

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5174/head
Pranav C 2 years ago
parent
commit
ad92b58952
  1. 15
      packages/nocodb-sdk/src/lib/Api.ts
  2. 59
      scripts/sdk/swagger.json

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

@ -198,7 +198,7 @@ export interface FilterType {
logical_op?: string;
comparison_op?: string;
value?: string | number | boolean | null;
is_group?: boolean;
is_group?: string | number | null;
children?: FilterType[];
project_id?: string;
base_id?: string;
@ -214,7 +214,7 @@ export interface FilterReqType {
logical_op?: string;
comparison_op?: string;
value?: string | number | boolean | null;
is_group?: boolean;
is_group?: string | number | null;
children?: FilterType[];
project_id?: string;
base_id?: string;
@ -239,6 +239,11 @@ export interface SortType {
base_id?: string;
}
export interface SortReqType {
fk_column_id?: string;
direction?: string;
}
export interface SortListType {
sorts: {
list: SharedViewType[];
@ -473,6 +478,10 @@ export interface MapColumnType {
fk_gallery_id?: string;
}
export interface LicenseReqType {
key?: string;
}
export interface KanbanReqType {
title: string;
fk_grp_col_id?: string | null;
@ -625,7 +634,7 @@ export interface HookReqType {
env?: string;
event: 'after' | 'before';
operation: 'insert' | 'delete' | 'update';
async?: boolean;
async?: string | number | null;
payload?: string;
url?: string;
headers?: string;

59
scripts/sdk/swagger.json

@ -8103,7 +8103,17 @@
]
},
"is_group": {
"type": "boolean"
"oneOf": [
{
"type": "string"
},
{
"type": "integer"
},
{
"type": "null"
}
]
},
"children": {
"type": "array",
@ -8160,7 +8170,17 @@
]
},
"is_group": {
"type": "boolean"
"oneOf": [
{
"type": "string"
},
{
"type": "integer"
},
{
"type": "null"
}
]
},
"children": {
"type": "array",
@ -8271,6 +8291,19 @@
}
}
},
"SortReq": {
"title": "Sort",
"type": "object",
"properties": {
"fk_column_id": {
"type": "string"
},
"direction": {
"type": "string"
}
},
"minProperties": "1"
},
"SortList": {
"description": "",
"type": "object",
@ -9108,6 +9141,16 @@
}
}
},
"LicenseReq": {
"title": "License Key",
"type": "object",
"description": "",
"properties": {
"key": {
"type": "string"
}
}
},
"KanbanReq": {
"title": "Kanban",
"type": "object",
@ -9709,7 +9752,17 @@
]
},
"async": {
"type": "boolean"
"oneOf": [
{
"type": "string"
},
{
"type": "integer"
},
{
"type": "null"
}
]
},
"payload": {
"type": "string"

Loading…
Cancel
Save