@budibase/server 2.3.18-alpha.17 → 2.3.18-alpha.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/builder/assets/{index.57df7f7b.js → index.db0385d0.js} +300 -300
- package/builder/index.html +1 -1
- package/dist/api/routes/public/applications.js +7 -7
- package/dist/api/routes/public/queries.js +2 -2
- package/dist/api/routes/public/rows.js +5 -5
- package/dist/api/routes/public/tables.js +5 -5
- package/dist/api/routes/public/users.js +5 -5
- package/dist/package.json +7 -7
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +8 -8
- package/specs/{generate.js → generate.ts} +7 -9
- package/specs/openapi.json +24 -24
- package/specs/openapi.yaml +24 -24
- package/specs/{parameters.js → parameters.ts} +6 -6
- package/specs/resources/{application.js → application.ts} +4 -4
- package/specs/resources/{index.js → index.ts} +8 -8
- package/specs/resources/{misc.js → misc.ts} +3 -3
- package/specs/resources/{query.js → query.ts} +4 -4
- package/specs/resources/{row.js → row.ts} +3 -4
- package/specs/resources/{table.js → table.ts} +5 -5
- package/specs/resources/{user.js → user.ts} +3 -3
- package/specs/resources/utils/Resource.ts +39 -0
- package/specs/resources/utils/{index.js → index.ts} +1 -1
- package/specs/{security.js → security.ts} +1 -1
- package/src/api/routes/public/applications.ts +7 -7
- package/src/api/routes/public/queries.ts +2 -2
- package/src/api/routes/public/rows.ts +5 -5
- package/src/api/routes/public/tables.ts +5 -5
- package/src/api/routes/public/tests/{compare.spec.js → compare.spec.ts} +44 -25
- package/src/api/routes/public/users.ts +5 -5
- package/src/definitions/openapi.ts +449 -63
- package/specs/resources/utils/Resource.js +0 -26
package/builder/index.html
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap"
|
|
11
11
|
rel="stylesheet"
|
|
12
12
|
/>
|
|
13
|
-
<script type="module" crossorigin src="/builder/assets/index.
|
|
13
|
+
<script type="module" crossorigin src="/builder/assets/index.db0385d0.js"></script>
|
|
14
14
|
<link rel="stylesheet" href="/builder/assets/index.dc0472d8.css">
|
|
15
15
|
</head>
|
|
16
16
|
<body id="app">
|
|
@@ -11,7 +11,7 @@ const read = [], write = [];
|
|
|
11
11
|
* @openapi
|
|
12
12
|
* /applications:
|
|
13
13
|
* post:
|
|
14
|
-
* operationId:
|
|
14
|
+
* operationId: appCreate
|
|
15
15
|
* summary: Create an application
|
|
16
16
|
* tags:
|
|
17
17
|
* - applications
|
|
@@ -39,7 +39,7 @@ write.push(new Endpoint_1.default("post", "/applications", applications_1.defaul
|
|
|
39
39
|
* @openapi
|
|
40
40
|
* /applications/{appId}:
|
|
41
41
|
* put:
|
|
42
|
-
* operationId:
|
|
42
|
+
* operationId: appUpdate
|
|
43
43
|
* summary: Update an application
|
|
44
44
|
* tags:
|
|
45
45
|
* - applications
|
|
@@ -67,7 +67,7 @@ write.push(new Endpoint_1.default("put", "/applications/:appId", applications_1.
|
|
|
67
67
|
* @openapi
|
|
68
68
|
* /applications/{appId}:
|
|
69
69
|
* delete:
|
|
70
|
-
* operationId:
|
|
70
|
+
* operationId: appDestroy
|
|
71
71
|
* summary: Delete an application
|
|
72
72
|
* tags:
|
|
73
73
|
* - applications
|
|
@@ -89,7 +89,7 @@ write.push(new Endpoint_1.default("delete", "/applications/:appId", applications
|
|
|
89
89
|
* @openapi
|
|
90
90
|
* /applications/{appId}/unpublish:
|
|
91
91
|
* post:
|
|
92
|
-
* operationId:
|
|
92
|
+
* operationId: appUnpublish
|
|
93
93
|
* summary: Unpublish an application
|
|
94
94
|
* tags:
|
|
95
95
|
* - applications
|
|
@@ -104,7 +104,7 @@ write.push(new Endpoint_1.default("post", "/applications/:appId/unpublish", appl
|
|
|
104
104
|
* @openapi
|
|
105
105
|
* /applications/{appId}/publish:
|
|
106
106
|
* post:
|
|
107
|
-
* operationId:
|
|
107
|
+
* operationId: appPublish
|
|
108
108
|
* summary: Unpublish an application
|
|
109
109
|
* tags:
|
|
110
110
|
* - applications
|
|
@@ -126,7 +126,7 @@ write.push(new Endpoint_1.default("post", "/applications/:appId/publish", applic
|
|
|
126
126
|
* @openapi
|
|
127
127
|
* /applications/{appId}:
|
|
128
128
|
* get:
|
|
129
|
-
* operationId:
|
|
129
|
+
* operationId: appGetById
|
|
130
130
|
* summary: Retrieve an application
|
|
131
131
|
* tags:
|
|
132
132
|
* - applications
|
|
@@ -148,7 +148,7 @@ read.push(new Endpoint_1.default("get", "/applications/:appId", applications_1.d
|
|
|
148
148
|
* @openapi
|
|
149
149
|
* /applications/search:
|
|
150
150
|
* post:
|
|
151
|
-
* operationId:
|
|
151
|
+
* operationId: appSearch
|
|
152
152
|
* summary: Search for applications
|
|
153
153
|
* description: Based on application properties (currently only name) search for applications.
|
|
154
154
|
* tags:
|
|
@@ -11,7 +11,7 @@ const read = [], write = [];
|
|
|
11
11
|
* @openapi
|
|
12
12
|
* /queries/{queryId}:
|
|
13
13
|
* post:
|
|
14
|
-
* operationId:
|
|
14
|
+
* operationId: queryExecute
|
|
15
15
|
* summary: Execute a query
|
|
16
16
|
* description: Queries which have been created within a Budibase app can be executed using this,
|
|
17
17
|
* tags:
|
|
@@ -44,7 +44,7 @@ write.push(new Endpoint_1.default("post", "/queries/:queryId", queries_1.default
|
|
|
44
44
|
* @openapi
|
|
45
45
|
* /queries/search:
|
|
46
46
|
* post:
|
|
47
|
-
* operationId:
|
|
47
|
+
* operationId: querySearch
|
|
48
48
|
* summary: Search for queries
|
|
49
49
|
* description: Based on query properties (currently only name) search for queries.
|
|
50
50
|
* tags:
|
|
@@ -11,7 +11,7 @@ const read = [], write = [];
|
|
|
11
11
|
* @openapi
|
|
12
12
|
* /tables/{tableId}/rows:
|
|
13
13
|
* post:
|
|
14
|
-
* operationId:
|
|
14
|
+
* operationId: rowCreate
|
|
15
15
|
* summary: Create a row
|
|
16
16
|
* description: Creates a row within the specified table.
|
|
17
17
|
* tags:
|
|
@@ -45,7 +45,7 @@ write.push(new Endpoint_1.default("post", "/tables/:tableId/rows", rows_1.defaul
|
|
|
45
45
|
* @openapi
|
|
46
46
|
* /tables/{tableId}/rows/{rowId}:
|
|
47
47
|
* put:
|
|
48
|
-
* operationId:
|
|
48
|
+
* operationId: rowUpdate
|
|
49
49
|
* summary: Update a row
|
|
50
50
|
* description: Updates a row within the specified table.
|
|
51
51
|
* tags:
|
|
@@ -79,7 +79,7 @@ write.push(new Endpoint_1.default("put", "/tables/:tableId/rows/:rowId", rows_1.
|
|
|
79
79
|
* @openapi
|
|
80
80
|
* /tables/{tableId}/rows/{rowId}:
|
|
81
81
|
* delete:
|
|
82
|
-
* operationId:
|
|
82
|
+
* operationId: rowDestroy
|
|
83
83
|
* summary: Delete a row
|
|
84
84
|
* description: Deletes a row within the specified table.
|
|
85
85
|
* tags:
|
|
@@ -104,7 +104,7 @@ write.push(new Endpoint_1.default("delete", "/tables/:tableId/rows/:rowId", rows
|
|
|
104
104
|
* @openapi
|
|
105
105
|
* /tables/{tableId}/rows/{rowId}:
|
|
106
106
|
* get:
|
|
107
|
-
* operationId:
|
|
107
|
+
* operationId: rowGetById
|
|
108
108
|
* summary: Retrieve a row
|
|
109
109
|
* description: This gets a single row, it will be enriched with the full related rows, rather than
|
|
110
110
|
* the squashed "primaryDisplay" format returned by the search endpoint.
|
|
@@ -130,7 +130,7 @@ read.push(new Endpoint_1.default("get", "/tables/:tableId/rows/:rowId", rows_1.d
|
|
|
130
130
|
* @openapi
|
|
131
131
|
* /tables/{tableId}/rows/search:
|
|
132
132
|
* post:
|
|
133
|
-
* operationId:
|
|
133
|
+
* operationId: rowSearch
|
|
134
134
|
* summary: Search for rows
|
|
135
135
|
* tags:
|
|
136
136
|
* - rows
|
|
@@ -11,7 +11,7 @@ const read = [], write = [];
|
|
|
11
11
|
* @openapi
|
|
12
12
|
* /tables:
|
|
13
13
|
* post:
|
|
14
|
-
* operationId:
|
|
14
|
+
* operationId: tableCreate
|
|
15
15
|
* summary: Create a table
|
|
16
16
|
* description: Create a table, this could be internal or external.
|
|
17
17
|
* tags:
|
|
@@ -43,7 +43,7 @@ write.push(new Endpoint_1.default("post", "/tables", tables_1.default.create).ad
|
|
|
43
43
|
* @openapi
|
|
44
44
|
* /tables/{tableId}:
|
|
45
45
|
* put:
|
|
46
|
-
* operationId:
|
|
46
|
+
* operationId: tableUpdate
|
|
47
47
|
* summary: Update a table
|
|
48
48
|
* description: Update a table, this could be internal or external.
|
|
49
49
|
* tags:
|
|
@@ -75,7 +75,7 @@ write.push(new Endpoint_1.default("put", "/tables/:tableId", tables_1.default.up
|
|
|
75
75
|
* @openapi
|
|
76
76
|
* /tables/{tableId}:
|
|
77
77
|
* delete:
|
|
78
|
-
* operationId:
|
|
78
|
+
* operationId: tableDestroy
|
|
79
79
|
* summary: Delete a table
|
|
80
80
|
* description: Delete a table, this could be internal or external.
|
|
81
81
|
* tags:
|
|
@@ -99,7 +99,7 @@ write.push(new Endpoint_1.default("delete", "/tables/:tableId", tables_1.default
|
|
|
99
99
|
* @openapi
|
|
100
100
|
* /tables/{tableId}:
|
|
101
101
|
* get:
|
|
102
|
-
* operationId:
|
|
102
|
+
* operationId: tableGetById
|
|
103
103
|
* summary: Retrieve a table
|
|
104
104
|
* description: Lookup a table, this could be internal or external.
|
|
105
105
|
* tags:
|
|
@@ -123,7 +123,7 @@ read.push(new Endpoint_1.default("get", "/tables/:tableId", tables_1.default.rea
|
|
|
123
123
|
* @openapi
|
|
124
124
|
* /tables/search:
|
|
125
125
|
* post:
|
|
126
|
-
* operationId:
|
|
126
|
+
* operationId: tableSearch
|
|
127
127
|
* summary: Search for tables
|
|
128
128
|
* description: Based on table properties (currently only name) search for tables. This could be
|
|
129
129
|
* an internal or an external table.
|
|
@@ -11,7 +11,7 @@ const read = [], write = [];
|
|
|
11
11
|
* @openapi
|
|
12
12
|
* /users:
|
|
13
13
|
* post:
|
|
14
|
-
* operationId:
|
|
14
|
+
* operationId: userCreate
|
|
15
15
|
* summary: Create a user
|
|
16
16
|
* tags:
|
|
17
17
|
* - users
|
|
@@ -37,7 +37,7 @@ write.push(new Endpoint_1.default("post", "/users", users_1.default.create));
|
|
|
37
37
|
* @openapi
|
|
38
38
|
* /users/{userId}:
|
|
39
39
|
* put:
|
|
40
|
-
* operationId:
|
|
40
|
+
* operationId: userUpdate
|
|
41
41
|
* summary: Update a user
|
|
42
42
|
* tags:
|
|
43
43
|
* - users
|
|
@@ -65,7 +65,7 @@ write.push(new Endpoint_1.default("put", "/users/:userId", users_1.default.updat
|
|
|
65
65
|
* @openapi
|
|
66
66
|
* /users/{userId}:
|
|
67
67
|
* delete:
|
|
68
|
-
* operationId:
|
|
68
|
+
* operationId: userDestroy
|
|
69
69
|
* summary: Delete a user
|
|
70
70
|
* tags:
|
|
71
71
|
* - users
|
|
@@ -87,7 +87,7 @@ write.push(new Endpoint_1.default("delete", "/users/:userId", users_1.default.de
|
|
|
87
87
|
* @openapi
|
|
88
88
|
* /users/{userId}:
|
|
89
89
|
* get:
|
|
90
|
-
* operationId:
|
|
90
|
+
* operationId: userGetById
|
|
91
91
|
* summary: Retrieve a user
|
|
92
92
|
* tags:
|
|
93
93
|
* - users
|
|
@@ -109,7 +109,7 @@ read.push(new Endpoint_1.default("get", "/users/:userId", users_1.default.read))
|
|
|
109
109
|
* @openapi
|
|
110
110
|
* /users/search:
|
|
111
111
|
* post:
|
|
112
|
-
* operationId:
|
|
112
|
+
* operationId: userSearch
|
|
113
113
|
* summary: Search for users
|
|
114
114
|
* description: Based on user properties (currently only name) search for users.
|
|
115
115
|
* tags:
|
package/dist/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/server",
|
|
3
3
|
"email": "hi@budibase.com",
|
|
4
|
-
"version": "2.3.18-alpha.
|
|
4
|
+
"version": "2.3.18-alpha.18",
|
|
5
5
|
"description": "Budibase Web Server",
|
|
6
6
|
"main": "src/index.ts",
|
|
7
7
|
"repository": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"dev:stack:down": "node scripts/dev/manage.js down",
|
|
26
26
|
"dev:stack:nuke": "node scripts/dev/manage.js nuke",
|
|
27
27
|
"dev:builder": "yarn run dev:stack:up && nodemon",
|
|
28
|
-
"specs": "node specs/generate.
|
|
28
|
+
"specs": "ts-node specs/generate.ts && openapi-typescript specs/openapi.yaml --output src/definitions/openapi.ts",
|
|
29
29
|
"initialise": "node scripts/initialise.js",
|
|
30
30
|
"env:multi:enable": "node scripts/multiTenancy.js enable",
|
|
31
31
|
"env:multi:disable": "node scripts/multiTenancy.js disable",
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"license": "GPL-3.0",
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@apidevtools/swagger-parser": "10.0.3",
|
|
46
|
-
"@budibase/backend-core": "2.3.18-alpha.
|
|
47
|
-
"@budibase/client": "2.3.18-alpha.
|
|
48
|
-
"@budibase/pro": "2.3.18-alpha.
|
|
49
|
-
"@budibase/string-templates": "2.3.18-alpha.
|
|
50
|
-
"@budibase/types": "2.3.18-alpha.
|
|
46
|
+
"@budibase/backend-core": "2.3.18-alpha.18",
|
|
47
|
+
"@budibase/client": "2.3.18-alpha.18",
|
|
48
|
+
"@budibase/pro": "2.3.18-alpha.18",
|
|
49
|
+
"@budibase/string-templates": "2.3.18-alpha.18",
|
|
50
|
+
"@budibase/types": "2.3.18-alpha.18",
|
|
51
51
|
"@bull-board/api": "3.7.0",
|
|
52
52
|
"@bull-board/koa": "3.9.4",
|
|
53
53
|
"@elastic/elasticsearch": "7.10.0",
|