@budibase/server 1.0.56 → 1.0.59
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.e2695470.js → index.2f16a22b.js} +240 -239
- package/builder/assets/index.38a1fb0a.css +6 -0
- package/builder/assets/{vendor.5ad9695a.js → vendor.20f80cec.js} +215 -189
- package/builder/index.html +3 -3
- package/coverage/clover.xml +32 -32
- package/coverage/coverage-final.json +3 -3
- package/coverage/lcov-report/api/controllers/analytics.js.html +1 -1
- package/coverage/lcov-report/api/controllers/apikeys.js.html +1 -1
- package/coverage/lcov-report/api/controllers/application.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 +2 -5
- 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/index.js.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/index.js.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/table/internal.js.html +1 -1
- package/coverage/lcov-report/api/controllers/table/utils.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 +13 -4
- 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/application.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/index.js.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/row.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/static.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/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/createRow.js.html +1 -1
- package/coverage/lcov-report/automations/steps/delay.js.html +1 -1
- package/coverage/lcov-report/automations/steps/deleteRow.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/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/automations/utils.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/client.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 +1 -1
- 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/authorized.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/resourceId.js.html +1 -1
- package/coverage/lcov-report/middleware/selfhost.js.html +1 -1
- package/coverage/lcov-report/middleware/usageQuota.js.html +1 -1
- package/coverage/lcov-report/middleware/utils.js.html +1 -1
- package/coverage/lcov-report/threads/automation.js.html +1 -1
- package/coverage/lcov-report/threads/index.html +1 -1
- package/coverage/lcov-report/threads/index.js.html +1 -1
- package/coverage/lcov-report/threads/query.js.html +27 -6
- package/coverage/lcov-report/threads/utils.js.html +1 -1
- package/coverage/lcov-report/utilities/bcrypt.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 +1 -1
- 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/index.js.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 +1 -1
- package/coverage/lcov.info +53 -53
- package/dist/api/controllers/integration.js +0 -1
- package/dist/api/controllers/row/ExternalRequest.js +2 -1
- package/dist/api/controllers/view/exporters.js +5 -2
- package/dist/integrations/base/sql.js +6 -6
- package/dist/integrations/dynamodb.js +4 -6
- package/dist/integrations/index.js +5 -2
- package/dist/package.json +4 -4
- package/dist/threads/query.js +3 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -5
- package/scripts/dev/manage.js +6 -6
- package/scripts/integrations/mssql/data/setup.sql +2 -6
- package/scripts/integrations/mysql/init.sql +6 -0
- package/scripts/likeCypress.ts +1 -1
- package/src/api/controllers/integration.js +0 -1
- package/src/api/controllers/row/ExternalRequest.ts +1 -1
- package/src/api/controllers/view/exporters.js +5 -2
- package/src/api/routes/tests/query.spec.js +0 -1
- package/src/integrations/base/sql.ts +28 -40
- package/src/integrations/dynamodb.ts +4 -6
- package/src/integrations/index.ts +6 -2
- package/src/threads/query.js +11 -4
- package/builder/assets/index.c0cc369d.css +0 -6
|
@@ -181,7 +181,7 @@ exports.processFormulas = (
|
|
|
181
181
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
182
182
|
Code coverage generated by
|
|
183
183
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
184
|
-
at
|
|
184
|
+
at Fri Feb 11 2022 18:25:20 GMT+0000 (Coordinated Universal Time)
|
|
185
185
|
</div>
|
|
186
186
|
</div>
|
|
187
187
|
<script src="../../prettify.js"></script>
|
|
@@ -136,7 +136,7 @@ module.exports = ScriptRunner
|
|
|
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">istanbul</a>
|
|
139
|
-
at
|
|
139
|
+
at Fri Feb 11 2022 18:25:20 GMT+0000 (Coordinated Universal Time)
|
|
140
140
|
</div>
|
|
141
141
|
</div>
|
|
142
142
|
<script src="../prettify.js"></script>
|
|
@@ -274,7 +274,7 @@ exports.CURRENTLY_SUPPORTED_LEVELS = CURRENTLY_SUPPORTED_LEVELS
|
|
|
274
274
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
275
275
|
Code coverage generated by
|
|
276
276
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
277
|
-
at
|
|
277
|
+
at Fri Feb 11 2022 18:25:20 GMT+0000 (Coordinated Universal Time)
|
|
278
278
|
</div>
|
|
279
279
|
</div>
|
|
280
280
|
<script src="../prettify.js"></script>
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
86
86
|
Code coverage generated by
|
|
87
87
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
88
|
-
at
|
|
88
|
+
at Fri Feb 11 2022 18:25:20 GMT+0000 (Coordinated Universal Time)
|
|
89
89
|
</div>
|
|
90
90
|
</div>
|
|
91
91
|
<script src="../prettify.js"></script>
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
126
126
|
Code coverage generated by
|
|
127
127
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
128
|
-
at
|
|
128
|
+
at Fri Feb 11 2022 18:25:20 GMT+0000 (Coordinated Universal Time)
|
|
129
129
|
</div>
|
|
130
130
|
</div>
|
|
131
131
|
<script src="../../prettify.js"></script>
|
|
@@ -343,7 +343,7 @@ exports.update = async (property, usage, opts = { dryRun: false }) => {
|
|
|
343
343
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
344
344
|
Code coverage generated by
|
|
345
345
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
346
|
-
at
|
|
346
|
+
at Fri Feb 11 2022 18:25:20 GMT+0000 (Coordinated Universal Time)
|
|
347
347
|
</div>
|
|
348
348
|
</div>
|
|
349
349
|
<script src="../../prettify.js"></script>
|
|
@@ -289,7 +289,7 @@ exports.getUniqueRows = async appIds => {
|
|
|
289
289
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
290
290
|
Code coverage generated by
|
|
291
291
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
292
|
-
at
|
|
292
|
+
at Fri Feb 11 2022 18:25:20 GMT+0000 (Coordinated Universal Time)
|
|
293
293
|
</div>
|
|
294
294
|
</div>
|
|
295
295
|
<script src="../../prettify.js"></script>
|
|
@@ -118,7 +118,7 @@ function <span class="fstat-no" title="function not covered" >resetQuotasIfRequi
|
|
|
118
118
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
119
119
|
Code coverage generated by
|
|
120
120
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
121
|
-
at
|
|
121
|
+
at Fri Feb 11 2022 18:25:20 GMT+0000 (Coordinated Universal Time)
|
|
122
122
|
</div>
|
|
123
123
|
</div>
|
|
124
124
|
<script src="../../prettify.js"></script>
|
|
@@ -136,7 +136,7 @@ exports.getFullUser = async (ctx, userId) => {
|
|
|
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">istanbul</a>
|
|
139
|
-
at
|
|
139
|
+
at Fri Feb 11 2022 18:25:20 GMT+0000 (Coordinated Universal Time)
|
|
140
140
|
</div>
|
|
141
141
|
</div>
|
|
142
142
|
<script src="../prettify.js"></script>
|
|
@@ -334,7 +334,7 @@ exports.removeAppFromUserRoles = async (ctx, appId) => {
|
|
|
334
334
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
335
335
|
Code coverage generated by
|
|
336
336
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
337
|
-
at
|
|
337
|
+
at Fri Feb 11 2022 18:25:20 GMT+0000 (Coordinated Universal Time)
|
|
338
338
|
</div>
|
|
339
339
|
</div>
|
|
340
340
|
<script src="../prettify.js"></script>
|
package/coverage/lcov.info
CHANGED
|
@@ -1175,18 +1175,18 @@ end_of_record
|
|
|
1175
1175
|
TN:
|
|
1176
1176
|
SF:src/api/controllers/integration.js
|
|
1177
1177
|
FN:3,(anonymous_0)
|
|
1178
|
-
FN:
|
|
1178
|
+
FN:8,(anonymous_1)
|
|
1179
1179
|
FNF:2
|
|
1180
1180
|
FNH:2
|
|
1181
1181
|
FNDA:1,(anonymous_0)
|
|
1182
1182
|
FNDA:1,(anonymous_1)
|
|
1183
1183
|
DA:1,23
|
|
1184
1184
|
DA:3,23
|
|
1185
|
+
DA:4,1
|
|
1185
1186
|
DA:5,1
|
|
1186
|
-
DA:
|
|
1187
|
-
DA:9,
|
|
1187
|
+
DA:8,23
|
|
1188
|
+
DA:9,1
|
|
1188
1189
|
DA:10,1
|
|
1189
|
-
DA:11,1
|
|
1190
1190
|
LF:7
|
|
1191
1191
|
LH:7
|
|
1192
1192
|
BRF:0
|
|
@@ -4393,7 +4393,7 @@ SF:src/api/controllers/view/exporters.js
|
|
|
4393
4393
|
FN:1,(anonymous_0)
|
|
4394
4394
|
FN:2,(anonymous_1)
|
|
4395
4395
|
FN:6,(anonymous_2)
|
|
4396
|
-
FN:
|
|
4396
|
+
FN:19,(anonymous_3)
|
|
4397
4397
|
FNF:4
|
|
4398
4398
|
FNH:4
|
|
4399
4399
|
FNDA:1,(anonymous_0)
|
|
@@ -4406,15 +4406,15 @@ DA:4,1
|
|
|
4406
4406
|
DA:5,1
|
|
4407
4407
|
DA:7,2
|
|
4408
4408
|
DA:8,2
|
|
4409
|
-
DA:
|
|
4410
|
-
DA:
|
|
4411
|
-
DA:
|
|
4412
|
-
DA:
|
|
4413
|
-
DA:
|
|
4409
|
+
DA:12,2
|
|
4410
|
+
DA:16,1
|
|
4411
|
+
DA:19,38
|
|
4412
|
+
DA:20,1
|
|
4413
|
+
DA:23,38
|
|
4414
4414
|
LF:11
|
|
4415
4415
|
LH:11
|
|
4416
|
-
BRDA:
|
|
4417
|
-
BRDA:
|
|
4416
|
+
BRDA:9,0,0,0
|
|
4417
|
+
BRDA:9,0,1,2
|
|
4418
4418
|
BRF:2
|
|
4419
4419
|
BRH:1
|
|
4420
4420
|
end_of_record
|
|
@@ -8212,11 +8212,11 @@ FN:118,(anonymous_5)
|
|
|
8212
8212
|
FN:136,(anonymous_6)
|
|
8213
8213
|
FN:151,(anonymous_7)
|
|
8214
8214
|
FN:160,(anonymous_8)
|
|
8215
|
-
FN:
|
|
8216
|
-
FN:
|
|
8217
|
-
FN:
|
|
8218
|
-
FN:
|
|
8219
|
-
FN:
|
|
8215
|
+
FN:181,(anonymous_9)
|
|
8216
|
+
FN:223,(anonymous_10)
|
|
8217
|
+
FN:224,(anonymous_11)
|
|
8218
|
+
FN:227,(anonymous_12)
|
|
8219
|
+
FN:230,(anonymous_13)
|
|
8220
8220
|
FNF:14
|
|
8221
8221
|
FNH:13
|
|
8222
8222
|
FNDA:15,(anonymous_0)
|
|
@@ -8320,28 +8320,28 @@ DA:161,11
|
|
|
8320
8320
|
DA:162,11
|
|
8321
8321
|
DA:163,6
|
|
8322
8322
|
DA:164,6
|
|
8323
|
-
DA:
|
|
8324
|
-
DA:
|
|
8325
|
-
DA:
|
|
8326
|
-
DA:
|
|
8327
|
-
DA:180,19
|
|
8328
|
-
DA:181,0
|
|
8329
|
-
DA:183,19
|
|
8330
|
-
DA:185,0
|
|
8323
|
+
DA:175,6
|
|
8324
|
+
DA:178,16
|
|
8325
|
+
DA:182,16
|
|
8326
|
+
DA:185,16
|
|
8331
8327
|
DA:186,19
|
|
8332
|
-
DA:
|
|
8333
|
-
DA:
|
|
8334
|
-
DA:
|
|
8335
|
-
DA:
|
|
8336
|
-
DA:
|
|
8337
|
-
DA:
|
|
8338
|
-
DA:
|
|
8339
|
-
DA:
|
|
8340
|
-
DA:
|
|
8341
|
-
DA:
|
|
8342
|
-
DA:219,
|
|
8343
|
-
DA:
|
|
8344
|
-
DA:224,
|
|
8328
|
+
DA:187,0
|
|
8329
|
+
DA:189,19
|
|
8330
|
+
DA:191,0
|
|
8331
|
+
DA:192,19
|
|
8332
|
+
DA:194,19
|
|
8333
|
+
DA:200,0
|
|
8334
|
+
DA:203,16
|
|
8335
|
+
DA:208,0
|
|
8336
|
+
DA:209,0
|
|
8337
|
+
DA:217,0
|
|
8338
|
+
DA:219,16
|
|
8339
|
+
DA:223,2
|
|
8340
|
+
DA:224,10
|
|
8341
|
+
DA:225,10
|
|
8342
|
+
DA:226,10
|
|
8343
|
+
DA:228,8
|
|
8344
|
+
DA:231,2
|
|
8345
8345
|
LF:109
|
|
8346
8346
|
LH:95
|
|
8347
8347
|
BRDA:9,0,0,10
|
|
@@ -8385,21 +8385,21 @@ BRDA:148,18,0,11
|
|
|
8385
8385
|
BRDA:148,18,1,5
|
|
8386
8386
|
BRDA:153,19,0,0
|
|
8387
8387
|
BRDA:153,19,1,6
|
|
8388
|
-
BRDA:
|
|
8389
|
-
BRDA:
|
|
8390
|
-
BRDA:
|
|
8391
|
-
BRDA:
|
|
8392
|
-
BRDA:
|
|
8393
|
-
BRDA:
|
|
8394
|
-
BRDA:
|
|
8395
|
-
BRDA:
|
|
8396
|
-
BRDA:
|
|
8397
|
-
BRDA:
|
|
8398
|
-
BRDA:
|
|
8399
|
-
BRDA:
|
|
8400
|
-
BRDA:
|
|
8401
|
-
BRDA:
|
|
8402
|
-
BRDA:
|
|
8388
|
+
BRDA:181,20,0,0
|
|
8389
|
+
BRDA:186,21,0,0
|
|
8390
|
+
BRDA:186,21,1,19
|
|
8391
|
+
BRDA:189,22,0,0
|
|
8392
|
+
BRDA:189,22,1,19
|
|
8393
|
+
BRDA:192,23,0,19
|
|
8394
|
+
BRDA:192,23,1,0
|
|
8395
|
+
BRDA:203,24,0,0
|
|
8396
|
+
BRDA:203,24,1,16
|
|
8397
|
+
BRDA:204,25,0,16
|
|
8398
|
+
BRDA:204,25,1,16
|
|
8399
|
+
BRDA:204,25,2,16
|
|
8400
|
+
BRDA:210,26,0,0
|
|
8401
|
+
BRDA:210,26,1,0
|
|
8402
|
+
BRDA:210,26,2,0
|
|
8403
8403
|
BRF:56
|
|
8404
8404
|
BRH:39
|
|
8405
8405
|
end_of_record
|
|
@@ -11,7 +11,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
const { definitions } = require("../../integrations");
|
|
12
12
|
exports.fetch = function (ctx) {
|
|
13
13
|
return __awaiter(this, void 0, void 0, function* () {
|
|
14
|
-
// TODO: fetch these from a github repo etc
|
|
15
14
|
ctx.status = 200;
|
|
16
15
|
ctx.body = definitions;
|
|
17
16
|
});
|
|
@@ -447,6 +447,7 @@ var External;
|
|
|
447
447
|
* all and then re-create, as theres no chance of losing data (e.g. delete succeed, but write fail).
|
|
448
448
|
*/
|
|
449
449
|
handleManyRelationships(mainTableId, row, relationships) {
|
|
450
|
+
var _a;
|
|
450
451
|
return __awaiter(this, void 0, void 0, function* () {
|
|
451
452
|
// if we're creating (in a through table) need to wipe the existing ones first
|
|
452
453
|
const promises = [];
|
|
@@ -460,7 +461,7 @@ var External;
|
|
|
460
461
|
if (!linkTable || !linkPrimary) {
|
|
461
462
|
return;
|
|
462
463
|
}
|
|
463
|
-
const rows = related[key].rows || [];
|
|
464
|
+
const rows = ((_a = related[key]) === null || _a === void 0 ? void 0 : _a.rows) || [];
|
|
464
465
|
const found = rows.find((row) => row[linkPrimary] === relationship.id ||
|
|
465
466
|
row[linkPrimary] === (body === null || body === void 0 ? void 0 : body[linkPrimary]));
|
|
466
467
|
const operation = isUpdate
|
|
@@ -5,8 +5,11 @@ exports.csv = function (headers, rows) {
|
|
|
5
5
|
csv = `${csv}\n${headers
|
|
6
6
|
.map(header => {
|
|
7
7
|
let val = row[header];
|
|
8
|
-
val =
|
|
9
|
-
|
|
8
|
+
val =
|
|
9
|
+
typeof val === "object"
|
|
10
|
+
? `"${JSON.stringify(val).replace(/"/g, "'")}"`
|
|
11
|
+
: `"${val}"`;
|
|
12
|
+
return val.trim();
|
|
10
13
|
})
|
|
11
14
|
.join(",")}`;
|
|
12
15
|
}
|
|
@@ -198,33 +198,33 @@ class InternalBuilder {
|
|
|
198
198
|
const { toTable, throughTable } = JSON.parse(key);
|
|
199
199
|
if (!throughTable) {
|
|
200
200
|
// @ts-ignore
|
|
201
|
-
query = query.
|
|
201
|
+
query = query.leftJoin(toTable, function () {
|
|
202
202
|
for (let relationship of relationships) {
|
|
203
203
|
const from = relationship.from, to = relationship.to;
|
|
204
204
|
// @ts-ignore
|
|
205
205
|
this.orOn(`${fromTable}.${from}`, "=", `${toTable}.${to}`);
|
|
206
206
|
}
|
|
207
|
-
}
|
|
207
|
+
});
|
|
208
208
|
}
|
|
209
209
|
else {
|
|
210
210
|
query = query
|
|
211
211
|
// @ts-ignore
|
|
212
|
-
.
|
|
212
|
+
.leftJoin(throughTable, function () {
|
|
213
213
|
for (let relationship of relationships) {
|
|
214
214
|
const fromPrimary = relationship.fromPrimary;
|
|
215
215
|
const from = relationship.from;
|
|
216
216
|
// @ts-ignore
|
|
217
217
|
this.orOn(`${fromTable}.${fromPrimary}`, "=", `${throughTable}.${from}`);
|
|
218
218
|
}
|
|
219
|
-
}
|
|
220
|
-
.
|
|
219
|
+
})
|
|
220
|
+
.leftJoin(toTable, function () {
|
|
221
221
|
for (let relationship of relationships) {
|
|
222
222
|
const toPrimary = relationship.toPrimary;
|
|
223
223
|
const to = relationship.to;
|
|
224
224
|
// @ts-ignore
|
|
225
225
|
this.orOn(`${toTable}.${toPrimary}`, `${throughTable}.${to}`);
|
|
226
226
|
}
|
|
227
|
-
}
|
|
227
|
+
});
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
230
|
return query.limit(BASE_LIMIT);
|
|
@@ -153,13 +153,11 @@ var DynamoModule;
|
|
|
153
153
|
read(query) {
|
|
154
154
|
return __awaiter(this, void 0, void 0, function* () {
|
|
155
155
|
const params = Object.assign({ TableName: query.table, IndexName: query.index ? query.index : undefined }, query.json);
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
return response.Items;
|
|
160
|
-
}
|
|
161
|
-
return response;
|
|
156
|
+
const response = yield this.client.query(params).promise();
|
|
157
|
+
if (response.Items) {
|
|
158
|
+
return response.Items;
|
|
162
159
|
}
|
|
160
|
+
return response;
|
|
163
161
|
});
|
|
164
162
|
}
|
|
165
163
|
scan(query) {
|
|
@@ -12,6 +12,7 @@ const arangodb = require("./arangodb");
|
|
|
12
12
|
const rest = require("./rest");
|
|
13
13
|
const googlesheets = require("./googlesheets");
|
|
14
14
|
const { SourceNames } = require("../definitions/datasource");
|
|
15
|
+
const environment = require("../environment");
|
|
15
16
|
const DEFINITIONS = {
|
|
16
17
|
[SourceNames.POSTGRES]: postgres.schema,
|
|
17
18
|
[SourceNames.DYNAMODB]: dynamodb.schema,
|
|
@@ -24,7 +25,6 @@ const DEFINITIONS = {
|
|
|
24
25
|
[SourceNames.MYSQL]: mysql.schema,
|
|
25
26
|
[SourceNames.ARANGODB]: arangodb.schema,
|
|
26
27
|
[SourceNames.REST]: rest.schema,
|
|
27
|
-
[SourceNames.GOOGLE_SHEETS]: googlesheets.schema,
|
|
28
28
|
};
|
|
29
29
|
const INTEGRATIONS = {
|
|
30
30
|
[SourceNames.POSTGRES]: postgres.integration,
|
|
@@ -38,7 +38,6 @@ const INTEGRATIONS = {
|
|
|
38
38
|
[SourceNames.MYSQL]: mysql.integration,
|
|
39
39
|
[SourceNames.ARANGODB]: arangodb.integration,
|
|
40
40
|
[SourceNames.REST]: rest.integration,
|
|
41
|
-
[SourceNames.GOOGLE_SHEETS]: googlesheets.integration,
|
|
42
41
|
};
|
|
43
42
|
// optionally add oracle integration if the oracle binary can be installed
|
|
44
43
|
if (!(process.arch === "arm64" && process.platform === "darwin")) {
|
|
@@ -46,6 +45,10 @@ if (!(process.arch === "arm64" && process.platform === "darwin")) {
|
|
|
46
45
|
DEFINITIONS[SourceNames.ORACLE] = oracle.schema;
|
|
47
46
|
INTEGRATIONS[SourceNames.ORACLE] = oracle.integration;
|
|
48
47
|
}
|
|
48
|
+
if (environment.SELF_HOSTED) {
|
|
49
|
+
DEFINITIONS[SourceNames.GOOGLE_SHEETS] = googlesheets.schema;
|
|
50
|
+
INTEGRATIONS[SourceNames.GOOGLE_SHEETS] = googlesheets.integration;
|
|
51
|
+
}
|
|
49
52
|
module.exports = {
|
|
50
53
|
definitions: DEFINITIONS,
|
|
51
54
|
integrations: INTEGRATIONS,
|
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.0.
|
|
4
|
+
"version": "1.0.58",
|
|
5
5
|
"description": "Budibase Web Server",
|
|
6
6
|
"main": "src/index.ts",
|
|
7
7
|
"repository": {
|
|
@@ -70,9 +70,9 @@
|
|
|
70
70
|
"license": "GPL-3.0",
|
|
71
71
|
"dependencies": {
|
|
72
72
|
"@apidevtools/swagger-parser": "^10.0.3",
|
|
73
|
-
"@budibase/backend-core": "^1.0.
|
|
74
|
-
"@budibase/client": "^1.0.
|
|
75
|
-
"@budibase/string-templates": "^1.0.
|
|
73
|
+
"@budibase/backend-core": "^1.0.58",
|
|
74
|
+
"@budibase/client": "^1.0.58",
|
|
75
|
+
"@budibase/string-templates": "^1.0.58",
|
|
76
76
|
"@bull-board/api": "^3.7.0",
|
|
77
77
|
"@bull-board/koa": "^3.7.0",
|
|
78
78
|
"@elastic/elasticsearch": "7.10.0",
|
package/dist/threads/query.js
CHANGED
|
@@ -157,6 +157,8 @@ class QueryRunner {
|
|
|
157
157
|
parameters[variable.name] = processStringSync(variable.value, {
|
|
158
158
|
data: responses[i].rows,
|
|
159
159
|
info: responses[i].extra,
|
|
160
|
+
}, {
|
|
161
|
+
escapeNewlines: true,
|
|
160
162
|
});
|
|
161
163
|
// make sure its known that this uses dynamic variables in case it fails
|
|
162
164
|
this.hasDynamicVariables = true;
|
|
@@ -181,6 +183,7 @@ class QueryRunner {
|
|
|
181
183
|
enrichedQuery[key] = processStringSync(fields[key], parameters, {
|
|
182
184
|
noEscaping: true,
|
|
183
185
|
noHelpers: true,
|
|
186
|
+
escapeNewlines: true,
|
|
184
187
|
});
|
|
185
188
|
}
|
|
186
189
|
else {
|