@budibase/server 1.3.19-alpha.3 → 1.3.19-alpha.4
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.c361a9cc.js → index.79081ecb.js} +1 -1
- package/builder/index.html +1 -1
- package/coverage/clover.xml +8 -5
- package/coverage/coverage-final.json +1 -1
- package/coverage/lcov-report/api/controllers/apikeys.js.html +1 -1
- package/coverage/lcov-report/api/controllers/auth.js.html +1 -1
- package/coverage/lcov-report/api/controllers/automation.js.html +1 -1
- package/coverage/lcov-report/api/controllers/backup.js.html +1 -1
- package/coverage/lcov-report/api/controllers/cloud.js.html +1 -1
- package/coverage/lcov-report/api/controllers/component.js.html +1 -1
- package/coverage/lcov-report/api/controllers/datasource.js.html +1 -1
- package/coverage/lcov-report/api/controllers/dev.js.html +1 -1
- package/coverage/lcov-report/api/controllers/index.html +1 -1
- package/coverage/lcov-report/api/controllers/integration.js.html +1 -1
- package/coverage/lcov-report/api/controllers/layout.js.html +1 -1
- package/coverage/lcov-report/api/controllers/metadata.js.html +1 -1
- package/coverage/lcov-report/api/controllers/migrations.js.html +1 -1
- package/coverage/lcov-report/api/controllers/permission.js.html +1 -1
- package/coverage/lcov-report/api/controllers/query/index.html +1 -1
- package/coverage/lcov-report/api/controllers/query/validation.js.html +1 -1
- package/coverage/lcov-report/api/controllers/role.js.html +1 -1
- package/coverage/lcov-report/api/controllers/routing.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/external.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/index.html +1 -1
- package/coverage/lcov-report/api/controllers/row/internal.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/internalSearch.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/staticFormula.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/utils.js.html +1 -1
- package/coverage/lcov-report/api/controllers/screen.js.html +1 -1
- package/coverage/lcov-report/api/controllers/script.js.html +1 -1
- package/coverage/lcov-report/api/controllers/table/bulkFormula.js.html +1 -1
- package/coverage/lcov-report/api/controllers/table/external.js.html +1 -1
- package/coverage/lcov-report/api/controllers/table/index.html +1 -1
- package/coverage/lcov-report/api/controllers/table/index.js.html +1 -1
- package/coverage/lcov-report/api/controllers/templates.js.html +1 -1
- package/coverage/lcov-report/api/controllers/user.js.html +1 -1
- package/coverage/lcov-report/api/controllers/view/exporters.js.html +1 -1
- package/coverage/lcov-report/api/controllers/view/index.html +1 -1
- package/coverage/lcov-report/api/controllers/view/index.js.html +1 -1
- package/coverage/lcov-report/api/controllers/view/utils.js.html +1 -1
- package/coverage/lcov-report/api/controllers/view/viewBuilder.js.html +1 -1
- package/coverage/lcov-report/api/controllers/webhook.js.html +1 -1
- package/coverage/lcov-report/api/index.html +1 -1
- package/coverage/lcov-report/api/index.js.html +1 -1
- package/coverage/lcov-report/api/routes/analytics.js.html +1 -1
- package/coverage/lcov-report/api/routes/apikeys.js.html +1 -1
- package/coverage/lcov-report/api/routes/auth.js.html +1 -1
- package/coverage/lcov-report/api/routes/automation.js.html +1 -1
- package/coverage/lcov-report/api/routes/backup.js.html +1 -1
- package/coverage/lcov-report/api/routes/cloud.js.html +1 -1
- package/coverage/lcov-report/api/routes/component.js.html +1 -1
- package/coverage/lcov-report/api/routes/datasource.js.html +1 -1
- package/coverage/lcov-report/api/routes/deploy.js.html +1 -1
- package/coverage/lcov-report/api/routes/dev.js.html +1 -1
- package/coverage/lcov-report/api/routes/index.html +1 -1
- package/coverage/lcov-report/api/routes/integration.js.html +1 -1
- package/coverage/lcov-report/api/routes/layout.js.html +1 -1
- package/coverage/lcov-report/api/routes/metadata.js.html +1 -1
- package/coverage/lcov-report/api/routes/migrations.js.html +1 -1
- package/coverage/lcov-report/api/routes/permission.js.html +1 -1
- package/coverage/lcov-report/api/routes/query.js.html +1 -1
- package/coverage/lcov-report/api/routes/role.js.html +1 -1
- package/coverage/lcov-report/api/routes/routing.js.html +1 -1
- package/coverage/lcov-report/api/routes/screen.js.html +1 -1
- package/coverage/lcov-report/api/routes/script.js.html +1 -1
- package/coverage/lcov-report/api/routes/table.js.html +1 -1
- package/coverage/lcov-report/api/routes/templates.js.html +1 -1
- package/coverage/lcov-report/api/routes/user.js.html +1 -1
- package/coverage/lcov-report/api/routes/utils/index.html +1 -1
- package/coverage/lcov-report/api/routes/utils/validators.js.html +1 -1
- package/coverage/lcov-report/api/routes/view.js.html +1 -1
- package/coverage/lcov-report/api/routes/webhook.js.html +1 -1
- package/coverage/lcov-report/automations/actions.js.html +1 -1
- package/coverage/lcov-report/automations/automationUtils.js.html +1 -1
- package/coverage/lcov-report/automations/bullboard.js.html +1 -1
- package/coverage/lcov-report/automations/index.html +1 -1
- package/coverage/lcov-report/automations/index.js.html +1 -1
- package/coverage/lcov-report/automations/steps/bash.js.html +1 -1
- package/coverage/lcov-report/automations/steps/delay.js.html +1 -1
- package/coverage/lcov-report/automations/steps/discord.js.html +1 -1
- package/coverage/lcov-report/automations/steps/executeQuery.js.html +1 -1
- package/coverage/lcov-report/automations/steps/executeScript.js.html +1 -1
- package/coverage/lcov-report/automations/steps/filter.js.html +1 -1
- package/coverage/lcov-report/automations/steps/index.html +1 -1
- package/coverage/lcov-report/automations/steps/integromat.js.html +1 -1
- package/coverage/lcov-report/automations/steps/loop.js.html +1 -1
- package/coverage/lcov-report/automations/steps/outgoingWebhook.js.html +1 -1
- package/coverage/lcov-report/automations/steps/queryRows.js.html +1 -1
- package/coverage/lcov-report/automations/steps/sendSmtpEmail.js.html +1 -1
- package/coverage/lcov-report/automations/steps/serverLog.js.html +1 -1
- package/coverage/lcov-report/automations/steps/slack.js.html +1 -1
- package/coverage/lcov-report/automations/steps/updateRow.js.html +1 -1
- package/coverage/lcov-report/automations/steps/utils.js.html +1 -1
- package/coverage/lcov-report/automations/steps/zapier.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/app.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/cron.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/index.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/index.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/rowDeleted.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/rowSaved.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/rowUpdated.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/webhook.js.html +1 -1
- package/coverage/lcov-report/automations/triggers.js.html +1 -1
- package/coverage/lcov-report/constants/index.html +1 -1
- package/coverage/lcov-report/constants/index.js.html +1 -1
- package/coverage/lcov-report/constants/layouts.js.html +1 -1
- package/coverage/lcov-report/constants/screens.js.html +1 -1
- package/coverage/lcov-report/db/inMemoryView.js.html +1 -1
- package/coverage/lcov-report/db/index.html +1 -1
- package/coverage/lcov-report/db/index.js.html +1 -1
- package/coverage/lcov-report/db/linkedRows/LinkController.js.html +1 -1
- package/coverage/lcov-report/db/linkedRows/index.html +1 -1
- package/coverage/lcov-report/db/linkedRows/index.js.html +1 -1
- package/coverage/lcov-report/db/linkedRows/linkUtils.js.html +1 -1
- package/coverage/lcov-report/db/newid.js.html +1 -1
- package/coverage/lcov-report/db/utils.js.html +1 -1
- package/coverage/lcov-report/events/AutomationEmitter.js.html +1 -1
- package/coverage/lcov-report/events/index.html +1 -1
- package/coverage/lcov-report/events/index.js.html +1 -1
- package/coverage/lcov-report/events/utils.js.html +1 -1
- package/coverage/lcov-report/index.html +14 -14
- package/coverage/lcov-report/integrations/tests/TestConfiguration.js.html +1 -1
- package/coverage/lcov-report/integrations/tests/index.html +1 -1
- package/coverage/lcov-report/middleware/appInfo.js.html +1 -1
- package/coverage/lcov-report/middleware/builder.js.html +1 -1
- package/coverage/lcov-report/middleware/currentapp.js.html +1 -1
- package/coverage/lcov-report/middleware/index.html +1 -1
- package/coverage/lcov-report/middleware/joi-validator.js.html +1 -1
- package/coverage/lcov-report/middleware/publicApi.js.html +1 -1
- package/coverage/lcov-report/middleware/resourceId.js.html +1 -1
- package/coverage/lcov-report/middleware/selfhost.js.html +1 -1
- package/coverage/lcov-report/middleware/utils.js.html +1 -1
- package/coverage/lcov-report/utilities/budibaseDir.js.html +1 -1
- package/coverage/lcov-report/utilities/centralPath.js.html +1 -1
- package/coverage/lcov-report/utilities/csvParser.js.html +1 -1
- package/coverage/lcov-report/utilities/global.js.html +1 -1
- package/coverage/lcov-report/utilities/index.html +15 -15
- package/coverage/lcov-report/utilities/index.js.html +1 -1
- package/coverage/lcov-report/utilities/queue/inMemoryQueue.js.html +1 -1
- package/coverage/lcov-report/utilities/queue/index.html +1 -1
- package/coverage/lcov-report/utilities/routing/index.html +1 -1
- package/coverage/lcov-report/utilities/routing/index.js.html +1 -1
- package/coverage/lcov-report/utilities/rowProcessor/index.html +1 -1
- package/coverage/lcov-report/utilities/rowProcessor/index.js.html +1 -1
- package/coverage/lcov-report/utilities/rowProcessor/utils.js.html +1 -1
- package/coverage/lcov-report/utilities/scriptRunner.js.html +1 -1
- package/coverage/lcov-report/utilities/security.js.html +1 -1
- package/coverage/lcov-report/utilities/statusCodes.js.html +1 -1
- package/coverage/lcov-report/utilities/usageQuota/index.html +1 -1
- package/coverage/lcov-report/utilities/usageQuota/rows.js.html +1 -1
- package/coverage/lcov-report/utilities/usageQuota/usageQuoteReset.js.html +1 -1
- package/coverage/lcov-report/utilities/users.js.html +1 -1
- package/coverage/lcov-report/utilities/workerRequests.js.html +32 -8
- package/coverage/lcov.info +8 -3
- package/dist/api/routes/public/rows.js +1 -82
- package/dist/app.js +5 -1
- package/dist/package.json +6 -6
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/utilities/workerRequests.js +4 -0
- package/package.json +7 -7
- package/specs/openapi.json +112 -109
- package/specs/openapi.yaml +93 -91
- package/specs/resources/misc.js +116 -0
- package/src/api/controllers/public/mapping/types.ts +8 -0
- package/src/api/routes/public/rows.ts +1 -82
- package/src/app.ts +11 -2
- package/src/definitions/openapi.ts +53 -52
- package/src/utilities/workerRequests.js +8 -0
|
@@ -481,7 +481,7 @@ module.exports = async (ctx, next) => {
|
|
|
481
481
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
482
482
|
Code coverage generated by
|
|
483
483
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
484
|
-
at Thu Sep 15 2022
|
|
484
|
+
at Thu Sep 15 2022 20:22:03 GMT+0000 (Coordinated Universal Time)
|
|
485
485
|
</div>
|
|
486
486
|
<script src="../prettify.js"></script>
|
|
487
487
|
<script>
|
|
@@ -206,7 +206,7 @@
|
|
|
206
206
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
207
207
|
Code coverage generated by
|
|
208
208
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
209
|
-
at Thu Sep 15 2022
|
|
209
|
+
at Thu Sep 15 2022 20:22:03 GMT+0000 (Coordinated Universal Time)
|
|
210
210
|
</div>
|
|
211
211
|
<script src="../prettify.js"></script>
|
|
212
212
|
<script>
|
|
@@ -187,7 +187,7 @@ function <span class="fstat-no" title="function not covered" >validate(</span>sc
|
|
|
187
187
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
188
188
|
Code coverage generated by
|
|
189
189
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
190
|
-
at Thu Sep 15 2022
|
|
190
|
+
at Thu Sep 15 2022 20:22:03 GMT+0000 (Coordinated Universal Time)
|
|
191
191
|
</div>
|
|
192
192
|
<script src="../prettify.js"></script>
|
|
193
193
|
<script>
|
|
@@ -133,7 +133,7 @@ module.exports = function ({ requiresAppId } = <span class="branch-0 cbranch-no"
|
|
|
133
133
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
134
134
|
Code coverage generated by
|
|
135
135
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
136
|
-
at Thu Sep 15 2022
|
|
136
|
+
at Thu Sep 15 2022 20:22:03 GMT+0000 (Coordinated Universal Time)
|
|
137
137
|
</div>
|
|
138
138
|
<script src="../prettify.js"></script>
|
|
139
139
|
<script>
|
|
@@ -253,7 +253,7 @@ module.exports.bodySubResource = (main, sub) => {
|
|
|
253
253
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
254
254
|
Code coverage generated by
|
|
255
255
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
256
|
-
at Thu Sep 15 2022
|
|
256
|
+
at Thu Sep 15 2022 20:22:03 GMT+0000 (Coordinated Universal Time)
|
|
257
257
|
</div>
|
|
258
258
|
<script src="../prettify.js"></script>
|
|
259
259
|
<script>
|
|
@@ -100,7 +100,7 @@ module.exports = async (ctx, next) => {
|
|
|
100
100
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
101
101
|
Code coverage generated by
|
|
102
102
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
103
|
-
at Thu Sep 15 2022
|
|
103
|
+
at Thu Sep 15 2022 20:22:03 GMT+0000 (Coordinated Universal Time)
|
|
104
104
|
</div>
|
|
105
105
|
<script src="../prettify.js"></script>
|
|
106
106
|
<script>
|
|
@@ -91,7 +91,7 @@ exports.isWebhookEndpoint = ctx => {
|
|
|
91
91
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
92
92
|
Code coverage generated by
|
|
93
93
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
94
|
-
at Thu Sep 15 2022
|
|
94
|
+
at Thu Sep 15 2022 20:22:03 GMT+0000 (Coordinated Universal Time)
|
|
95
95
|
</div>
|
|
96
96
|
<script src="../prettify.js"></script>
|
|
97
97
|
<script>
|
|
@@ -79,7 +79,7 @@ module.exports.budibaseTempDir = budibaseTempDir
|
|
|
79
79
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
80
80
|
Code coverage generated by
|
|
81
81
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
82
|
-
at Thu Sep 15 2022
|
|
82
|
+
at Thu Sep 15 2022 20:22:03 GMT+0000 (Coordinated Universal Time)
|
|
83
83
|
</div>
|
|
84
84
|
<script src="../prettify.js"></script>
|
|
85
85
|
<script>
|
|
@@ -136,7 +136,7 @@ exports.resolve = function (...args) {
|
|
|
136
136
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
137
137
|
Code coverage generated by
|
|
138
138
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
139
|
-
at Thu Sep 15 2022
|
|
139
|
+
at Thu Sep 15 2022 20:22:03 GMT+0000 (Coordinated Universal Time)
|
|
140
140
|
</div>
|
|
141
141
|
<script src="../prettify.js"></script>
|
|
142
142
|
<script>
|
|
@@ -502,7 +502,7 @@ module.exports = {
|
|
|
502
502
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
503
503
|
Code coverage generated by
|
|
504
504
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
505
|
-
at Thu Sep 15 2022
|
|
505
|
+
at Thu Sep 15 2022 20:22:03 GMT+0000 (Coordinated Universal Time)
|
|
506
506
|
</div>
|
|
507
507
|
<script src="../prettify.js"></script>
|
|
508
508
|
<script>
|
|
@@ -445,7 +445,7 @@ exports.getGlobalUsersFromMetadata = async users => {
|
|
|
445
445
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
446
446
|
Code coverage generated by
|
|
447
447
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
448
|
-
at Thu Sep 15 2022
|
|
448
|
+
at Thu Sep 15 2022 20:22:03 GMT+0000 (Coordinated Universal Time)
|
|
449
449
|
</div>
|
|
450
450
|
<script src="../prettify.js"></script>
|
|
451
451
|
<script>
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">72.
|
|
26
|
+
<span class="strong">72.6% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>265/365</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
@@ -37,16 +37,16 @@
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">
|
|
40
|
+
<span class="strong">70% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>49/
|
|
42
|
+
<span class='fraction'>49/70</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">72.
|
|
47
|
+
<span class="strong">72.34% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>259/358</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -215,17 +215,17 @@
|
|
|
215
215
|
|
|
216
216
|
<tr>
|
|
217
217
|
<td class="file low" data-value="workerRequests.js"><a href="workerRequests.js.html">workerRequests.js</a></td>
|
|
218
|
-
<td data-value="
|
|
219
|
-
<div class="chart"><div class="cover-fill" style="width:
|
|
218
|
+
<td data-value="47.69" class="pic low">
|
|
219
|
+
<div class="chart"><div class="cover-fill" style="width: 47%"></div><div class="cover-empty" style="width: 53%"></div></div>
|
|
220
220
|
</td>
|
|
221
|
-
<td data-value="
|
|
222
|
-
<td data-value="
|
|
221
|
+
<td data-value="47.69" class="pct low">47.69%</td>
|
|
222
|
+
<td data-value="65" class="abs low">31/65</td>
|
|
223
223
|
<td data-value="38.46" class="pct low">38.46%</td>
|
|
224
224
|
<td data-value="26" class="abs low">10/26</td>
|
|
225
|
-
<td data-value="
|
|
226
|
-
<td data-value="
|
|
227
|
-
<td data-value="
|
|
228
|
-
<td data-value="
|
|
225
|
+
<td data-value="25" class="pct low">25%</td>
|
|
226
|
+
<td data-value="12" class="abs low">3/12</td>
|
|
227
|
+
<td data-value="47.69" class="pct low">47.69%</td>
|
|
228
|
+
<td data-value="65" class="abs low">31/65</td>
|
|
229
229
|
</tr>
|
|
230
230
|
|
|
231
231
|
</tbody>
|
|
@@ -236,7 +236,7 @@
|
|
|
236
236
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
237
237
|
Code coverage generated by
|
|
238
238
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
239
|
-
at Thu Sep 15 2022
|
|
239
|
+
at Thu Sep 15 2022 20:22:03 GMT+0000 (Coordinated Universal Time)
|
|
240
240
|
</div>
|
|
241
241
|
<script src="../prettify.js"></script>
|
|
242
242
|
<script>
|
|
@@ -586,7 +586,7 @@ exports.isQsTrue = param => {
|
|
|
586
586
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
587
587
|
Code coverage generated by
|
|
588
588
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
589
|
-
at Thu Sep 15 2022
|
|
589
|
+
at Thu Sep 15 2022 20:22:03 GMT+0000 (Coordinated Universal Time)
|
|
590
590
|
</div>
|
|
591
591
|
<script src="../prettify.js"></script>
|
|
592
592
|
<script>
|
|
@@ -436,7 +436,7 @@ module.exports = InMemoryQueue
|
|
|
436
436
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
437
437
|
Code coverage generated by
|
|
438
438
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
439
|
-
at Thu Sep 15 2022
|
|
439
|
+
at Thu Sep 15 2022 20:22:03 GMT+0000 (Coordinated Universal Time)
|
|
440
440
|
</div>
|
|
441
441
|
<script src="../../prettify.js"></script>
|
|
442
442
|
<script>
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
102
102
|
Code coverage generated by
|
|
103
103
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
104
|
-
at Thu Sep 15 2022
|
|
104
|
+
at Thu Sep 15 2022 20:22:03 GMT+0000 (Coordinated Universal Time)
|
|
105
105
|
</div>
|
|
106
106
|
<script src="../../prettify.js"></script>
|
|
107
107
|
<script>
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
102
102
|
Code coverage generated by
|
|
103
103
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
104
|
-
at Thu Sep 15 2022
|
|
104
|
+
at Thu Sep 15 2022 20:22:03 GMT+0000 (Coordinated Universal Time)
|
|
105
105
|
</div>
|
|
106
106
|
<script src="../../prettify.js"></script>
|
|
107
107
|
<script>
|
|
@@ -145,7 +145,7 @@ exports.createRoutingView = createRoutingView
|
|
|
145
145
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
146
146
|
Code coverage generated by
|
|
147
147
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
148
|
-
at Thu Sep 15 2022
|
|
148
|
+
at Thu Sep 15 2022 20:22:03 GMT+0000 (Coordinated Universal Time)
|
|
149
149
|
</div>
|
|
150
150
|
<script src="../../prettify.js"></script>
|
|
151
151
|
<script>
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
117
117
|
Code coverage generated by
|
|
118
118
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
119
|
-
at Thu Sep 15 2022
|
|
119
|
+
at Thu Sep 15 2022 20:22:03 GMT+0000 (Coordinated Universal Time)
|
|
120
120
|
</div>
|
|
121
121
|
<script src="../../prettify.js"></script>
|
|
122
122
|
<script>
|
|
@@ -1096,7 +1096,7 @@ exports.cleanupAttachments = async (table, { row, rows, oldRow, oldTable }) =>
|
|
|
1096
1096
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
1097
1097
|
Code coverage generated by
|
|
1098
1098
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
1099
|
-
at Thu Sep 15 2022
|
|
1099
|
+
at Thu Sep 15 2022 20:22:03 GMT+0000 (Coordinated Universal Time)
|
|
1100
1100
|
</div>
|
|
1101
1101
|
<script src="../../prettify.js"></script>
|
|
1102
1102
|
<script>
|
|
@@ -346,7 +346,7 @@ exports.processDates = <span class="fstat-no" title="function not covered" >(t</
|
|
|
346
346
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
347
347
|
Code coverage generated by
|
|
348
348
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
349
|
-
at Thu Sep 15 2022
|
|
349
|
+
at Thu Sep 15 2022 20:22:03 GMT+0000 (Coordinated Universal Time)
|
|
350
350
|
</div>
|
|
351
351
|
<script src="../../prettify.js"></script>
|
|
352
352
|
<script>
|
|
@@ -142,7 +142,7 @@ module.exports = ScriptRunner
|
|
|
142
142
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
143
143
|
Code coverage generated by
|
|
144
144
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
145
|
-
at Thu Sep 15 2022
|
|
145
|
+
at Thu Sep 15 2022 20:22:03 GMT+0000 (Coordinated Universal Time)
|
|
146
146
|
</div>
|
|
147
147
|
<script src="../prettify.js"></script>
|
|
148
148
|
<script>
|
|
@@ -283,7 +283,7 @@ exports.CURRENTLY_SUPPORTED_LEVELS = CURRENTLY_SUPPORTED_LEVELS
|
|
|
283
283
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
284
284
|
Code coverage generated by
|
|
285
285
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
286
|
-
at Thu Sep 15 2022
|
|
286
|
+
at Thu Sep 15 2022 20:22:03 GMT+0000 (Coordinated Universal Time)
|
|
287
287
|
</div>
|
|
288
288
|
<script src="../prettify.js"></script>
|
|
289
289
|
<script>
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
92
92
|
Code coverage generated by
|
|
93
93
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
94
|
-
at Thu Sep 15 2022
|
|
94
|
+
at Thu Sep 15 2022 20:22:03 GMT+0000 (Coordinated Universal Time)
|
|
95
95
|
</div>
|
|
96
96
|
<script src="../prettify.js"></script>
|
|
97
97
|
<script>
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
117
117
|
Code coverage generated by
|
|
118
118
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
119
|
-
at Thu Sep 15 2022
|
|
119
|
+
at Thu Sep 15 2022 20:22:03 GMT+0000 (Coordinated Universal Time)
|
|
120
120
|
</div>
|
|
121
121
|
<script src="../../prettify.js"></script>
|
|
122
122
|
<script>
|
|
@@ -310,7 +310,7 @@ exports.getUniqueRows = async appIds => {
|
|
|
310
310
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
311
311
|
Code coverage generated by
|
|
312
312
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
313
|
-
at Thu Sep 15 2022
|
|
313
|
+
at Thu Sep 15 2022 20:22:03 GMT+0000 (Coordinated Universal Time)
|
|
314
314
|
</div>
|
|
315
315
|
<script src="../../prettify.js"></script>
|
|
316
316
|
<script>
|
|
@@ -124,7 +124,7 @@ function <span class="fstat-no" title="function not covered" >resetQuotasIfRequi
|
|
|
124
124
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
125
125
|
Code coverage generated by
|
|
126
126
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
127
|
-
at Thu Sep 15 2022
|
|
127
|
+
at Thu Sep 15 2022 20:22:03 GMT+0000 (Coordinated Universal Time)
|
|
128
128
|
</div>
|
|
129
129
|
<script src="../../prettify.js"></script>
|
|
130
130
|
<script>
|
|
@@ -205,7 +205,7 @@ exports.publicApiUserFix = ctx => {
|
|
|
205
205
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
206
206
|
Code coverage generated by
|
|
207
207
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
208
|
-
at Thu Sep 15 2022
|
|
208
|
+
at Thu Sep 15 2022 20:22:03 GMT+0000 (Coordinated Universal Time)
|
|
209
209
|
</div>
|
|
210
210
|
<script src="../prettify.js"></script>
|
|
211
211
|
<script>
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">47.69% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>31/65</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
@@ -37,16 +37,16 @@
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">
|
|
40
|
+
<span class="strong">25% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>3/
|
|
42
|
+
<span class='fraction'>3/12</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">47.69% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>31/65</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -218,7 +218,15 @@
|
|
|
218
218
|
<a name='L153'></a><a href='#L153'>153</a>
|
|
219
219
|
<a name='L154'></a><a href='#L154'>154</a>
|
|
220
220
|
<a name='L155'></a><a href='#L155'>155</a>
|
|
221
|
-
<a name='L156'></a><a href='#L156'>156</a
|
|
221
|
+
<a name='L156'></a><a href='#L156'>156</a>
|
|
222
|
+
<a name='L157'></a><a href='#L157'>157</a>
|
|
223
|
+
<a name='L158'></a><a href='#L158'>158</a>
|
|
224
|
+
<a name='L159'></a><a href='#L159'>159</a>
|
|
225
|
+
<a name='L160'></a><a href='#L160'>160</a>
|
|
226
|
+
<a name='L161'></a><a href='#L161'>161</a>
|
|
227
|
+
<a name='L162'></a><a href='#L162'>162</a>
|
|
228
|
+
<a name='L163'></a><a href='#L163'>163</a>
|
|
229
|
+
<a name='L164'></a><a href='#L164'>164</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">45x</span>
|
|
222
230
|
<span class="cline-any cline-yes">45x</span>
|
|
223
231
|
<span class="cline-any cline-yes">45x</span>
|
|
224
232
|
<span class="cline-any cline-yes">45x</span>
|
|
@@ -373,6 +381,14 @@
|
|
|
373
381
|
<span class="cline-any cline-neutral"> </span>
|
|
374
382
|
<span class="cline-any cline-no"> </span>
|
|
375
383
|
<span class="cline-any cline-neutral"> </span>
|
|
384
|
+
<span class="cline-any cline-neutral"> </span>
|
|
385
|
+
<span class="cline-any cline-yes">45x</span>
|
|
386
|
+
<span class="cline-any cline-no"> </span>
|
|
387
|
+
<span class="cline-any cline-neutral"> </span>
|
|
388
|
+
<span class="cline-any cline-neutral"> </span>
|
|
389
|
+
<span class="cline-any cline-neutral"> </span>
|
|
390
|
+
<span class="cline-any cline-no"> </span>
|
|
391
|
+
<span class="cline-any cline-neutral"> </span>
|
|
376
392
|
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">const fetch = require("node-fetch")
|
|
377
393
|
const env = require("../environment")
|
|
378
394
|
const { checkSlashesInUrl } = require("./index")
|
|
@@ -528,6 +544,14 @@ exports.getChecklist = <span class="fstat-no" title="function not covered" >as</
|
|
|
528
544
|
)
|
|
529
545
|
<span class="cstat-no" title="statement not covered" > return checkResponse(response, "get checklist")</span>
|
|
530
546
|
}
|
|
547
|
+
|
|
548
|
+
exports.generateApiKey = <span class="fstat-no" title="function not covered" >as</span>ync userId => {
|
|
549
|
+
const response = <span class="cstat-no" title="statement not covered" >await fetch(</span>
|
|
550
|
+
checkSlashesInUrl(env.WORKER_URL + "/api/global/self/api_key"),
|
|
551
|
+
request(null, { method: "POST", body: { userId } })
|
|
552
|
+
)
|
|
553
|
+
<span class="cstat-no" title="statement not covered" > return checkResponse(response, "generate API key")</span>
|
|
554
|
+
}
|
|
531
555
|
</pre></td></tr></table></pre>
|
|
532
556
|
|
|
533
557
|
<div class='push'></div><!-- for sticky footer -->
|
|
@@ -535,7 +559,7 @@ exports.getChecklist = <span class="fstat-no" title="function not covered" >as</
|
|
|
535
559
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
536
560
|
Code coverage generated by
|
|
537
561
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
538
|
-
at Thu Sep 15 2022
|
|
562
|
+
at Thu Sep 15 2022 20:22:03 GMT+0000 (Coordinated Universal Time)
|
|
539
563
|
</div>
|
|
540
564
|
<script src="../prettify.js"></script>
|
|
541
565
|
<script>
|
package/coverage/lcov.info
CHANGED
|
@@ -7742,7 +7742,8 @@ FN:119,(anonymous_7)
|
|
|
7742
7742
|
FN:130,(anonymous_8)
|
|
7743
7743
|
FN:141,(anonymous_9)
|
|
7744
7744
|
FN:149,(anonymous_10)
|
|
7745
|
-
|
|
7745
|
+
FN:157,(anonymous_11)
|
|
7746
|
+
FNF:12
|
|
7746
7747
|
FNH:3
|
|
7747
7748
|
FNDA:22,request
|
|
7748
7749
|
FNDA:22,checkResponse
|
|
@@ -7755,6 +7756,7 @@ FNDA:0,(anonymous_7)
|
|
|
7755
7756
|
FNDA:0,(anonymous_8)
|
|
7756
7757
|
FNDA:0,(anonymous_9)
|
|
7757
7758
|
FNDA:0,(anonymous_10)
|
|
7759
|
+
FNDA:0,(anonymous_11)
|
|
7758
7760
|
DA:1,45
|
|
7759
7761
|
DA:2,45
|
|
7760
7762
|
DA:3,45
|
|
@@ -7817,8 +7819,11 @@ DA:146,0
|
|
|
7817
7819
|
DA:149,45
|
|
7818
7820
|
DA:150,0
|
|
7819
7821
|
DA:154,0
|
|
7820
|
-
|
|
7821
|
-
|
|
7822
|
+
DA:157,45
|
|
7823
|
+
DA:158,0
|
|
7824
|
+
DA:162,0
|
|
7825
|
+
LF:65
|
|
7826
|
+
LH:31
|
|
7822
7827
|
BRDA:10,0,0,22
|
|
7823
7828
|
BRDA:10,0,1,0
|
|
7824
7829
|
BRDA:13,1,0,0
|
|
@@ -137,88 +137,7 @@ read.push(new Endpoint_1.default("get", "/tables/:tableId/rows/:rowId", rows_1.d
|
|
|
137
137
|
* content:
|
|
138
138
|
* application/json:
|
|
139
139
|
* schema:
|
|
140
|
-
*
|
|
141
|
-
* required:
|
|
142
|
-
* - query
|
|
143
|
-
* properties:
|
|
144
|
-
* query:
|
|
145
|
-
* type: object
|
|
146
|
-
* properties:
|
|
147
|
-
* allOr:
|
|
148
|
-
* type: boolean
|
|
149
|
-
* description: Specifies that a row should be returned if it satisfies
|
|
150
|
-
* any of the specified options, rather than requiring it to fulfill all
|
|
151
|
-
* the search parameters. This defaults to false, meaning AND logic will be used.
|
|
152
|
-
* string:
|
|
153
|
-
* type: object
|
|
154
|
-
* example:
|
|
155
|
-
* columnName1: value
|
|
156
|
-
* columnName2: value
|
|
157
|
-
* description: A map of field name to the string to search for,
|
|
158
|
-
* this will look for rows that have a value starting with the
|
|
159
|
-
* string value.
|
|
160
|
-
* additionalProperties:
|
|
161
|
-
* type: string
|
|
162
|
-
* description: The value to search for in the column.
|
|
163
|
-
* fuzzy:
|
|
164
|
-
* type: object
|
|
165
|
-
* description: A fuzzy search, only supported by internal tables.
|
|
166
|
-
* range:
|
|
167
|
-
* type: object
|
|
168
|
-
* description: Searches within a range, the format of this must be
|
|
169
|
-
* in the format of an object with a "low" and "high" property.
|
|
170
|
-
* example:
|
|
171
|
-
* columnName1: { low: 10, high: 20 }
|
|
172
|
-
* equal:
|
|
173
|
-
* type: object
|
|
174
|
-
* description: Searches for rows that have a column value that is
|
|
175
|
-
* exactly the value set.
|
|
176
|
-
* notEqual:
|
|
177
|
-
* type: object
|
|
178
|
-
* description: Searches for any row which does not contain the specified
|
|
179
|
-
* column value.
|
|
180
|
-
* empty:
|
|
181
|
-
* type: object
|
|
182
|
-
* description: Searches for rows which do not contain the specified column.
|
|
183
|
-
* The object should simply contain keys of the column names, these
|
|
184
|
-
* can map to any value.
|
|
185
|
-
* example:
|
|
186
|
-
* columnName1: ""
|
|
187
|
-
* notEmpty:
|
|
188
|
-
* type: object
|
|
189
|
-
* description: Searches for rows which have the specified column.
|
|
190
|
-
* oneOf:
|
|
191
|
-
* type: object
|
|
192
|
-
* description: Searches for rows which have a column value that is any
|
|
193
|
-
* of the specified values. The format of this must be columnName -> [value1, value2].
|
|
194
|
-
* paginate:
|
|
195
|
-
* type: boolean
|
|
196
|
-
* description: Enables pagination, by default this is disabled.
|
|
197
|
-
* bookmark:
|
|
198
|
-
* oneOf:
|
|
199
|
-
* - type: string
|
|
200
|
-
* - type: integer
|
|
201
|
-
* description: If retrieving another page, the bookmark from the previous request must be supplied.
|
|
202
|
-
* limit:
|
|
203
|
-
* type: integer
|
|
204
|
-
* description: The maximum number of rows to return, useful when paginating, for internal tables this
|
|
205
|
-
* will be limited to 1000, for SQL tables it will be 5000.
|
|
206
|
-
* sort:
|
|
207
|
-
* type: object
|
|
208
|
-
* description: A set of parameters describing the sort behaviour of the search.
|
|
209
|
-
* properties:
|
|
210
|
-
* order:
|
|
211
|
-
* type: string
|
|
212
|
-
* enum: [ascending, descending]
|
|
213
|
-
* description: The order of the sort, by default this is ascending.
|
|
214
|
-
* column:
|
|
215
|
-
* type: string
|
|
216
|
-
* description: The name of the column by which the rows will be sorted.
|
|
217
|
-
* type:
|
|
218
|
-
* type: string
|
|
219
|
-
* enum: [string, number]
|
|
220
|
-
* description: Defines whether the column should be treated as a string
|
|
221
|
-
* or as numbers when sorting.
|
|
140
|
+
* $ref: '#/components/schemas/rowSearch'
|
|
222
141
|
* responses:
|
|
223
142
|
* 200:
|
|
224
143
|
* description: The response will contain an array of rows that match the search parameters.
|
package/dist/app.js
CHANGED
|
@@ -145,7 +145,11 @@ module.exports = server.listen(env.PORT || 0, () => __awaiter(void 0, void 0, vo
|
|
|
145
145
|
if (!((_a = checklist === null || checklist === void 0 ? void 0 : checklist.adminUser) === null || _a === void 0 ? void 0 : _a.checked)) {
|
|
146
146
|
try {
|
|
147
147
|
const tenantId = backend_core_1.tenancy.getTenantId();
|
|
148
|
-
yield (0, workerRequests_1.createAdminUser)(env.BB_ADMIN_USER_EMAIL, env.BB_ADMIN_USER_PASSWORD, tenantId);
|
|
148
|
+
const user = yield (0, workerRequests_1.createAdminUser)(env.BB_ADMIN_USER_EMAIL, env.BB_ADMIN_USER_PASSWORD, tenantId);
|
|
149
|
+
// Need to set up an API key for automated integration tests
|
|
150
|
+
if (env.isTest()) {
|
|
151
|
+
yield (0, workerRequests_1.generateApiKey)(user._id);
|
|
152
|
+
}
|
|
149
153
|
console.log("Admin account automatically created for", env.BB_ADMIN_USER_EMAIL);
|
|
150
154
|
}
|
|
151
155
|
catch (e) {
|
package/dist/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/server",
|
|
3
3
|
"email": "hi@budibase.com",
|
|
4
|
-
"version": "1.3.19-alpha.
|
|
4
|
+
"version": "1.3.19-alpha.3",
|
|
5
5
|
"description": "Budibase Web Server",
|
|
6
6
|
"main": "src/index.ts",
|
|
7
7
|
"repository": {
|
|
@@ -77,11 +77,11 @@
|
|
|
77
77
|
"license": "GPL-3.0",
|
|
78
78
|
"dependencies": {
|
|
79
79
|
"@apidevtools/swagger-parser": "10.0.3",
|
|
80
|
-
"@budibase/backend-core": "1.3.19-alpha.
|
|
81
|
-
"@budibase/client": "1.3.19-alpha.
|
|
82
|
-
"@budibase/pro": "1.3.19-alpha.
|
|
83
|
-
"@budibase/string-templates": "1.3.19-alpha.
|
|
84
|
-
"@budibase/types": "1.3.19-alpha.
|
|
80
|
+
"@budibase/backend-core": "1.3.19-alpha.3",
|
|
81
|
+
"@budibase/client": "1.3.19-alpha.3",
|
|
82
|
+
"@budibase/pro": "1.3.19-alpha.3",
|
|
83
|
+
"@budibase/string-templates": "1.3.19-alpha.3",
|
|
84
|
+
"@budibase/types": "1.3.19-alpha.3",
|
|
85
85
|
"@bull-board/api": "3.7.0",
|
|
86
86
|
"@bull-board/koa": "3.9.4",
|
|
87
87
|
"@elastic/elasticsearch": "7.10.0",
|