Browse Source

refactor: role to enum

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5222/head
Pranav C 2 years ago
parent
commit
a3fa9501e1
  1. 69
      packages/nocodb/src/schema/swagger.json

69
packages/nocodb/src/schema/swagger.json

@ -1783,7 +1783,6 @@
"parameters": [ "parameters": [
{ {
"schema": { "schema": {
"$ref": "#/components/schemas/Id" "$ref": "#/components/schemas/Id"
}, },
"name": "tableId", "name": "tableId",
@ -1958,7 +1957,6 @@
"parameters": [ "parameters": [
{ {
"schema": { "schema": {
"$ref": "#/components/schemas/Id" "$ref": "#/components/schemas/Id"
}, },
"name": "tableId", "name": "tableId",
@ -1997,7 +1995,6 @@
"parameters": [ "parameters": [
{ {
"schema": { "schema": {
"$ref": "#/components/schemas/Id" "$ref": "#/components/schemas/Id"
}, },
"name": "tableId", "name": "tableId",
@ -2119,7 +2116,6 @@
"parameters": [ "parameters": [
{ {
"schema": { "schema": {
"$ref": "#/components/schemas/Id" "$ref": "#/components/schemas/Id"
}, },
"name": "tableId", "name": "tableId",
@ -2258,7 +2254,6 @@
"parameters": [ "parameters": [
{ {
"schema": { "schema": {
"$ref": "#/components/schemas/Id" "$ref": "#/components/schemas/Id"
}, },
"name": "tableId", "name": "tableId",
@ -2409,7 +2404,6 @@
"parameters": [ "parameters": [
{ {
"schema": { "schema": {
"$ref": "#/components/schemas/Id" "$ref": "#/components/schemas/Id"
}, },
"name": "viewId", "name": "viewId",
@ -2418,7 +2412,6 @@
}, },
{ {
"schema": { "schema": {
"$ref": "#/components/schemas/Id" "$ref": "#/components/schemas/Id"
}, },
"name": "columnId", "name": "columnId",
@ -2796,7 +2789,6 @@
"parameters": [ "parameters": [
{ {
"schema": { "schema": {
"$ref": "#/components/schemas/Id" "$ref": "#/components/schemas/Id"
}, },
"name": "tableId", "name": "tableId",
@ -2837,7 +2829,6 @@
"parameters": [ "parameters": [
{ {
"schema": { "schema": {
"$ref": "#/components/schemas/Id" "$ref": "#/components/schemas/Id"
}, },
"name": "tableId", "name": "tableId",
@ -2931,7 +2922,6 @@
"parameters": [ "parameters": [
{ {
"schema": { "schema": {
"$ref": "#/components/schemas/Id" "$ref": "#/components/schemas/Id"
}, },
"name": "formViewColumnId", "name": "formViewColumnId",
@ -3044,7 +3034,6 @@
"parameters": [ "parameters": [
{ {
"schema": { "schema": {
"$ref": "#/components/schemas/Id" "$ref": "#/components/schemas/Id"
}, },
"name": "columnId", "name": "columnId",
@ -3083,7 +3072,6 @@
"parameters": [ "parameters": [
{ {
"schema": { "schema": {
"$ref": "#/components/schemas/Id" "$ref": "#/components/schemas/Id"
}, },
"name": "tableId", "name": "tableId",
@ -3177,7 +3165,6 @@
"parameters": [ "parameters": [
{ {
"schema": { "schema": {
"$ref": "#/components/schemas/Id" "$ref": "#/components/schemas/Id"
}, },
"name": "tableId", "name": "tableId",
@ -3271,7 +3258,6 @@
"parameters": [ "parameters": [
{ {
"schema": { "schema": {
"$ref": "#/components/schemas/Id" "$ref": "#/components/schemas/Id"
}, },
"name": "tableId", "name": "tableId",
@ -3773,7 +3759,6 @@
"parameters": [ "parameters": [
{ {
"schema": { "schema": {
"$ref": "#/components/schemas/Id" "$ref": "#/components/schemas/Id"
}, },
"name": "orgs", "name": "orgs",
@ -3806,7 +3791,6 @@
}, },
{ {
"schema": { "schema": {
"$ref": "#/components/schemas/Id" "$ref": "#/components/schemas/Id"
}, },
"name": "columnId", "name": "columnId",
@ -3890,7 +3874,6 @@
}, },
{ {
"schema": { "schema": {
"$ref": "#/components/schemas/Id" "$ref": "#/components/schemas/Id"
}, },
"name": "columnId", "name": "columnId",
@ -5270,7 +5253,6 @@
}, },
{ {
"schema": { "schema": {
"$ref": "#/components/schemas/Id" "$ref": "#/components/schemas/Id"
}, },
"name": "columnId", "name": "columnId",
@ -5768,7 +5750,6 @@
}, },
{ {
"schema": { "schema": {
"$ref": "#/components/schemas/Id" "$ref": "#/components/schemas/Id"
}, },
"in": "query", "in": "query",
@ -5833,7 +5814,6 @@
}, },
{ {
"schema": { "schema": {
"$ref": "#/components/schemas/Id" "$ref": "#/components/schemas/Id"
}, },
"in": "query", "in": "query",
@ -5950,7 +5930,7 @@
"parameters": [ "parameters": [
{ {
"schema": { "schema": {
"$ref": "#/components/schemas/Id" "$ref": "#/components/schemas/Id"
}, },
"name": "tableId", "name": "tableId",
"in": "path", "in": "path",
@ -6067,7 +6047,6 @@
"parameters": [ "parameters": [
{ {
"schema": { "schema": {
"$ref": "#/components/schemas/Id" "$ref": "#/components/schemas/Id"
}, },
"name": "tableId", "name": "tableId",
@ -6322,7 +6301,6 @@
"content": { "content": {
"application/json": { "application/json": {
"schema": { "schema": {
"$ref": "#/components/schemas/PluginReq" "$ref": "#/components/schemas/PluginReq"
} }
} }
@ -7650,7 +7628,6 @@
"type": "number" "type": "number"
}, },
"fk_model_id": { "fk_model_id": {
"$ref": "#/components/schemas/Id" "$ref": "#/components/schemas/Id"
}, },
"slug": { "slug": {
@ -7796,11 +7773,9 @@
"type": "string" "type": "string"
}, },
"fk_project_id": { "fk_project_id": {
"$ref": "#/components/schemas/Id" "$ref": "#/components/schemas/Id"
}, },
"fk_base_id": { "fk_base_id": {
"$ref": "#/components/schemas/Id" "$ref": "#/components/schemas/Id"
}, },
"title": { "title": {
@ -7951,11 +7926,9 @@
"type": "string" "type": "string"
}, },
"fk_model_id": { "fk_model_id": {
"$ref": "#/components/schemas/Id" "$ref": "#/components/schemas/Id"
}, },
"fk_column_id": { "fk_column_id": {
"$ref": "#/components/schemas/Id" "$ref": "#/components/schemas/Id"
}, },
"logical_op": { "logical_op": {
@ -7993,7 +7966,6 @@
"readOnly": true "readOnly": true
}, },
"fk_parent_id": { "fk_parent_id": {
"$ref": "#/components/schemas/Id" "$ref": "#/components/schemas/Id"
}, },
"fk_view_id": { "fk_view_id": {
@ -8010,7 +7982,6 @@
"title": "Filter", "title": "Filter",
"properties": { "properties": {
"fk_column_id": { "fk_column_id": {
"$ref": "#/components/schemas/Id" "$ref": "#/components/schemas/Id"
}, },
"logical_op": { "logical_op": {
@ -8051,7 +8022,6 @@
"$ref": "#/components/schemas/Bool" "$ref": "#/components/schemas/Bool"
}, },
"fk_parent_id": { "fk_parent_id": {
"$ref": "#/components/schemas/Id" "$ref": "#/components/schemas/Id"
} }
}, },
@ -8119,12 +8089,10 @@
"type": "string" "type": "string"
}, },
"fk_model_id": { "fk_model_id": {
"$ref": "#/components/schemas/Id"
"$ref": "#/components/schemas/Id"
}, },
"fk_column_id": { "fk_column_id": {
"$ref": "#/components/schemas/Id"
"$ref": "#/components/schemas/Id"
}, },
"direction": { "direction": {
"type": "string" "type": "string"
@ -8147,7 +8115,7 @@
"type": "object", "type": "object",
"properties": { "properties": {
"fk_column_id": { "fk_column_id": {
"$ref": "#/components/schemas/Id" "$ref": "#/components/schemas/Id"
}, },
"direction": { "direction": {
"type": "string", "type": "string",
@ -10187,12 +10155,10 @@
"$ref": "#/components/schemas/Bool" "$ref": "#/components/schemas/Bool"
}, },
"parentId": { "parentId": {
"$ref": "#/components/schemas/Id"
"$ref": "#/components/schemas/Id"
}, },
"childId": { "childId": {
"$ref": "#/components/schemas/Id"
"$ref": "#/components/schemas/Id"
}, },
"type": { "type": {
"type": "string", "type": "string",
@ -10225,12 +10191,10 @@
"maxLength": 255 "maxLength": 255
}, },
"fk_relation_column_id": { "fk_relation_column_id": {
"$ref": "#/components/schemas/Id"
"$ref": "#/components/schemas/Id"
}, },
"fk_rollup_column_id": { "fk_rollup_column_id": {
"$ref": "#/components/schemas/Id"
"$ref": "#/components/schemas/Id"
}, },
"rollup_function": { "rollup_function": {
"type": "string", "type": "string",
@ -10267,12 +10231,10 @@
"maxLength": 255 "maxLength": 255
}, },
"fk_relation_column_id": { "fk_relation_column_id": {
"$ref": "#/components/schemas/Id"
"$ref": "#/components/schemas/Id"
}, },
"fk_lookup_column_id": { "fk_lookup_column_id": {
"$ref": "#/components/schemas/Id"
"$ref": "#/components/schemas/Id"
} }
}, },
"required": [ "required": [
@ -10497,10 +10459,15 @@
"type": "object", "type": "object",
"properties": { "properties": {
"email": { "email": {
"type": "string" "type": "string",
"format": "email"
}, },
"roles": { "roles": {
"type": "string" "type": "string",
"enum": [
"org-level-creator",
"org-level-viewer"
]
} }
} }
}, },
@ -10595,7 +10562,7 @@
} }
} }
}, },
"SharedViewReq":{ "SharedViewReq": {
"type": "object", "type": "object",
"properties": { "properties": {
"password": { "password": {

Loading…
Cancel
Save