@budibase/server 2.3.18-alpha.18 → 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.
Files changed (32) hide show
  1. package/builder/assets/{index.6c226955.js → index.db0385d0.js} +238 -238
  2. package/builder/index.html +1 -1
  3. package/dist/api/routes/public/applications.js +7 -7
  4. package/dist/api/routes/public/queries.js +2 -2
  5. package/dist/api/routes/public/rows.js +5 -5
  6. package/dist/api/routes/public/tables.js +5 -5
  7. package/dist/api/routes/public/users.js +5 -5
  8. package/dist/package.json +7 -7
  9. package/dist/tsconfig.build.tsbuildinfo +1 -1
  10. package/package.json +8 -8
  11. package/specs/{generate.js → generate.ts} +7 -9
  12. package/specs/openapi.json +24 -24
  13. package/specs/openapi.yaml +24 -24
  14. package/specs/{parameters.js → parameters.ts} +6 -6
  15. package/specs/resources/{application.js → application.ts} +4 -4
  16. package/specs/resources/{index.js → index.ts} +8 -8
  17. package/specs/resources/{misc.js → misc.ts} +3 -3
  18. package/specs/resources/{query.js → query.ts} +4 -4
  19. package/specs/resources/{row.js → row.ts} +3 -4
  20. package/specs/resources/{table.js → table.ts} +5 -5
  21. package/specs/resources/{user.js → user.ts} +3 -3
  22. package/specs/resources/utils/Resource.ts +39 -0
  23. package/specs/resources/utils/{index.js → index.ts} +1 -1
  24. package/specs/{security.js → security.ts} +1 -1
  25. package/src/api/routes/public/applications.ts +7 -7
  26. package/src/api/routes/public/queries.ts +2 -2
  27. package/src/api/routes/public/rows.ts +5 -5
  28. package/src/api/routes/public/tables.ts +5 -5
  29. package/src/api/routes/public/tests/{compare.spec.js → compare.spec.ts} +44 -25
  30. package/src/api/routes/public/users.ts +5 -5
  31. package/src/definitions/openapi.ts +449 -63
  32. package/specs/resources/utils/Resource.js +0 -26
@@ -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.6c226955.js"></script>
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: create
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: update
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: destroy
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: unpublish
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: publish
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: getById
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: search
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: execute
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: search
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: create
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: update
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: destroy
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: getById
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: search
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: create
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: update
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: destroy
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: getById
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: search
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: create
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: update
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: destroy
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: getById
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: search
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.17",
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.js && openapi-typescript specs/openapi.yaml --output src/definitions/openapi.ts",
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.17",
47
- "@budibase/client": "2.3.18-alpha.17",
48
- "@budibase/pro": "2.3.18-alpha.17",
49
- "@budibase/string-templates": "2.3.18-alpha.17",
50
- "@budibase/types": "2.3.18-alpha.17",
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",