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

59
scripts/sdk/swagger.json

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

Loading…
Cancel
Save