@budibase/server 2.3.2-alpha.2 → 2.3.2-alpha.3
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.b05c7fc9.js → index.bef36368.js} +1 -1
- package/builder/index.html +1 -1
- package/coverage/clover.xml +4152 -3905
- package/coverage/coverage-final.json +271 -270
- package/coverage/lcov-report/index.html +113 -98
- package/coverage/lcov-report/src/api/controllers/analytics.ts.html +6 -6
- package/coverage/lcov-report/src/api/controllers/apikeys.ts.html +5 -5
- package/coverage/lcov-report/src/api/controllers/application.ts.html +82 -82
- package/coverage/lcov-report/src/api/controllers/auth.ts.html +9 -9
- package/coverage/lcov-report/src/api/controllers/automation.ts.html +24 -24
- package/coverage/lcov-report/src/api/controllers/backup.ts.html +6 -6
- package/coverage/lcov-report/src/api/controllers/cloud.ts.html +12 -12
- package/coverage/lcov-report/src/api/controllers/component.ts.html +5 -5
- package/coverage/lcov-report/src/api/controllers/datasource.ts.html +37 -37
- package/coverage/lcov-report/src/api/controllers/deploy/Deployment.ts.html +14 -14
- package/coverage/lcov-report/src/api/controllers/deploy/index.html +1 -1
- package/coverage/lcov-report/src/api/controllers/deploy/index.ts.html +80 -80
- package/coverage/lcov-report/src/api/controllers/dev.ts.html +17 -17
- package/coverage/lcov-report/src/api/controllers/index.html +5 -5
- package/coverage/lcov-report/src/api/controllers/integration.ts.html +4 -4
- package/coverage/lcov-report/src/api/controllers/layout.ts.html +6 -6
- package/coverage/lcov-report/src/api/controllers/metadata.ts.html +9 -9
- package/coverage/lcov-report/src/api/controllers/migrations.ts.html +4 -4
- package/coverage/lcov-report/src/api/controllers/permission.ts.html +13 -13
- package/coverage/lcov-report/src/api/controllers/plugin/file.ts.html +2 -2
- package/coverage/lcov-report/src/api/controllers/plugin/github.ts.html +4 -4
- package/coverage/lcov-report/src/api/controllers/plugin/index.html +1 -1
- package/coverage/lcov-report/src/api/controllers/plugin/index.ts.html +18 -18
- package/coverage/lcov-report/src/api/controllers/plugin/npm.ts.html +5 -5
- package/coverage/lcov-report/src/api/controllers/plugin/uploaders.ts.html +5 -5
- package/coverage/lcov-report/src/api/controllers/plugin/url.ts.html +3 -3
- package/coverage/lcov-report/src/api/controllers/plugin/utils.ts.html +3 -3
- package/coverage/lcov-report/src/api/controllers/public/applications.ts.html +6 -6
- package/coverage/lcov-report/src/api/controllers/public/index.html +1 -1
- package/coverage/lcov-report/src/api/controllers/public/mapping/applications.ts.html +2 -2
- package/coverage/lcov-report/src/api/controllers/public/mapping/index.html +1 -1
- package/coverage/lcov-report/src/api/controllers/public/mapping/index.ts.html +7 -7
- package/coverage/lcov-report/src/api/controllers/public/mapping/queries.ts.html +2 -2
- package/coverage/lcov-report/src/api/controllers/public/mapping/rows.ts.html +2 -2
- package/coverage/lcov-report/src/api/controllers/public/mapping/tables.ts.html +2 -2
- package/coverage/lcov-report/src/api/controllers/public/mapping/users.ts.html +2 -2
- package/coverage/lcov-report/src/api/controllers/public/queries.ts.html +4 -4
- package/coverage/lcov-report/src/api/controllers/public/rows.ts.html +5 -5
- package/coverage/lcov-report/src/api/controllers/public/tables.ts.html +4 -4
- package/coverage/lcov-report/src/api/controllers/public/users.ts.html +6 -6
- package/coverage/lcov-report/src/api/controllers/public/utils.ts.html +4 -4
- package/coverage/lcov-report/src/api/controllers/query/import/index.html +1 -1
- package/coverage/lcov-report/src/api/controllers/query/import/index.ts.html +7 -7
- package/coverage/lcov-report/src/api/controllers/query/import/sources/base/index.html +1 -1
- package/coverage/lcov-report/src/api/controllers/query/import/sources/base/index.ts.html +3 -3
- package/coverage/lcov-report/src/api/controllers/query/import/sources/base/openapi.ts.html +5 -5
- package/coverage/lcov-report/src/api/controllers/query/import/sources/curl.ts.html +7 -7
- package/coverage/lcov-report/src/api/controllers/query/import/sources/index.html +1 -1
- package/coverage/lcov-report/src/api/controllers/query/import/sources/openapi2.ts.html +9 -9
- package/coverage/lcov-report/src/api/controllers/query/import/sources/openapi3.ts.html +13 -13
- package/coverage/lcov-report/src/api/controllers/query/import/sources/tests/curl/curl.spec.js.html +1 -1
- package/coverage/lcov-report/src/api/controllers/query/import/sources/tests/curl/index.html +1 -1
- package/coverage/lcov-report/src/api/controllers/query/import/sources/tests/openapi2/index.html +1 -1
- package/coverage/lcov-report/src/api/controllers/query/import/sources/tests/openapi2/openapi2.spec.js.html +1 -1
- package/coverage/lcov-report/src/api/controllers/query/import/sources/tests/openapi3/index.html +1 -1
- package/coverage/lcov-report/src/api/controllers/query/import/sources/tests/openapi3/openapi3.spec.js.html +1 -1
- package/coverage/lcov-report/src/api/controllers/query/import/tests/index.html +1 -1
- package/coverage/lcov-report/src/api/controllers/query/import/tests/index.spec.js.html +1 -1
- package/coverage/lcov-report/src/api/controllers/query/index.html +1 -1
- package/coverage/lcov-report/src/api/controllers/query/index.ts.html +22 -22
- package/coverage/lcov-report/src/api/controllers/query/validation.ts.html +9 -9
- package/coverage/lcov-report/src/api/controllers/role.ts.html +8 -8
- package/coverage/lcov-report/src/api/controllers/routing.ts.html +6 -6
- package/coverage/lcov-report/src/api/controllers/row/ExternalRequest.ts.html +431 -419
- package/coverage/lcov-report/src/api/controllers/row/external.ts.html +211 -175
- package/coverage/lcov-report/src/api/controllers/row/index.html +40 -40
- package/coverage/lcov-report/src/api/controllers/row/index.ts.html +77 -77
- package/coverage/lcov-report/src/api/controllers/row/internal.ts.html +19 -19
- package/coverage/lcov-report/src/api/controllers/row/internalSearch.ts.html +6 -6
- package/coverage/lcov-report/src/api/controllers/row/staticFormula.ts.html +7 -7
- package/coverage/lcov-report/src/api/controllers/row/utils.ts.html +17 -17
- package/coverage/lcov-report/src/api/controllers/screen.ts.html +7 -7
- package/coverage/lcov-report/src/api/controllers/script.ts.html +2 -2
- package/coverage/lcov-report/src/api/controllers/static/index.html +1 -1
- package/coverage/lcov-report/src/api/controllers/static/index.ts.html +22 -22
- package/coverage/lcov-report/src/api/controllers/table/bulkFormula.ts.html +10 -10
- package/coverage/lcov-report/src/api/controllers/table/external.ts.html +198 -195
- package/coverage/lcov-report/src/api/controllers/table/index.html +36 -36
- package/coverage/lcov-report/src/api/controllers/table/index.ts.html +40 -40
- package/coverage/lcov-report/src/api/controllers/table/internal.ts.html +13 -13
- package/coverage/lcov-report/src/api/controllers/table/utils.ts.html +33 -33
- package/coverage/lcov-report/src/api/controllers/templates.ts.html +7 -7
- package/coverage/lcov-report/src/api/controllers/user.ts.html +14 -14
- package/coverage/lcov-report/src/api/controllers/view/exporters.ts.html +2 -2
- package/coverage/lcov-report/src/api/controllers/view/index.html +1 -1
- package/coverage/lcov-report/src/api/controllers/view/index.ts.html +16 -16
- package/coverage/lcov-report/src/api/controllers/view/tests/index.html +1 -1
- package/coverage/lcov-report/src/api/controllers/view/tests/viewBuilder.spec.js.html +1 -1
- package/coverage/lcov-report/src/api/controllers/view/utils.ts.html +5 -5
- package/coverage/lcov-report/src/api/controllers/view/viewBuilder.ts.html +7 -7
- package/coverage/lcov-report/src/api/controllers/webhook.ts.html +14 -14
- package/coverage/lcov-report/src/api/index.html +1 -1
- package/coverage/lcov-report/src/api/index.ts.html +27 -27
- package/coverage/lcov-report/src/api/routes/analytics.ts.html +7 -7
- package/coverage/lcov-report/src/api/routes/apikeys.ts.html +8 -8
- package/coverage/lcov-report/src/api/routes/application.ts.html +10 -10
- package/coverage/lcov-report/src/api/routes/auth.ts.html +6 -6
- package/coverage/lcov-report/src/api/routes/automation.ts.html +11 -11
- package/coverage/lcov-report/src/api/routes/backup.ts.html +8 -8
- package/coverage/lcov-report/src/api/routes/cloud.ts.html +8 -8
- package/coverage/lcov-report/src/api/routes/component.ts.html +8 -8
- package/coverage/lcov-report/src/api/routes/datasource.ts.html +9 -9
- package/coverage/lcov-report/src/api/routes/deploy.ts.html +8 -8
- package/coverage/lcov-report/src/api/routes/dev.ts.html +13 -13
- package/coverage/lcov-report/src/api/routes/index.html +1 -1
- package/coverage/lcov-report/src/api/routes/index.ts.html +35 -35
- package/coverage/lcov-report/src/api/routes/integration.ts.html +8 -8
- package/coverage/lcov-report/src/api/routes/layout.ts.html +8 -8
- package/coverage/lcov-report/src/api/routes/metadata.ts.html +9 -9
- package/coverage/lcov-report/src/api/routes/migrations.ts.html +7 -7
- package/coverage/lcov-report/src/api/routes/permission.ts.html +9 -9
- package/coverage/lcov-report/src/api/routes/plugin.ts.html +8 -8
- package/coverage/lcov-report/src/api/routes/public/applications.ts.html +14 -14
- package/coverage/lcov-report/src/api/routes/public/index.html +1 -1
- package/coverage/lcov-report/src/api/routes/public/index.ts.html +52 -52
- package/coverage/lcov-report/src/api/routes/public/middleware/index.html +1 -1
- package/coverage/lcov-report/src/api/routes/public/middleware/mapper.ts.html +4 -4
- package/coverage/lcov-report/src/api/routes/public/queries.ts.html +9 -9
- package/coverage/lcov-report/src/api/routes/public/rows.ts.html +12 -12
- package/coverage/lcov-report/src/api/routes/public/tables.ts.html +12 -12
- package/coverage/lcov-report/src/api/routes/public/tests/compare.spec.js.html +2 -2
- package/coverage/lcov-report/src/api/routes/public/tests/index.html +9 -9
- package/coverage/lcov-report/src/api/routes/public/tests/users.spec.js.html +2 -2
- package/coverage/lcov-report/src/api/routes/public/tests/utils.ts.html +78 -27
- package/coverage/lcov-report/src/api/routes/public/users.ts.html +12 -12
- package/coverage/lcov-report/src/api/routes/public/utils/Endpoint.ts.html +19 -19
- package/coverage/lcov-report/src/api/routes/public/utils/index.html +1 -1
- package/coverage/lcov-report/src/api/routes/query.ts.html +11 -11
- package/coverage/lcov-report/src/api/routes/role.ts.html +9 -9
- package/coverage/lcov-report/src/api/routes/routing.ts.html +8 -8
- package/coverage/lcov-report/src/api/routes/row.ts.html +11 -11
- package/coverage/lcov-report/src/api/routes/screen.ts.html +9 -9
- package/coverage/lcov-report/src/api/routes/script.ts.html +1 -1
- package/coverage/lcov-report/src/api/routes/static.ts.html +14 -14
- package/coverage/lcov-report/src/api/routes/table.ts.html +11 -11
- package/coverage/lcov-report/src/api/routes/templates.ts.html +8 -8
- package/coverage/lcov-report/src/api/routes/tests/analytics.spec.js.html +1 -1
- package/coverage/lcov-report/src/api/routes/tests/apikeys.spec.js.html +1 -1
- package/coverage/lcov-report/src/api/routes/tests/application.spec.ts.html +1 -1
- package/coverage/lcov-report/src/api/routes/tests/auth.spec.js.html +1 -1
- package/coverage/lcov-report/src/api/routes/tests/automation.spec.js.html +1 -1
- package/coverage/lcov-report/src/api/routes/tests/backup.spec.ts.html +1 -1
- package/coverage/lcov-report/src/api/routes/tests/cloud.seq.spec.ts.html +2 -2
- package/coverage/lcov-report/src/api/routes/tests/component.spec.js.html +1 -1
- package/coverage/lcov-report/src/api/routes/tests/datasource.spec.ts.html +1 -1
- package/coverage/lcov-report/src/api/routes/tests/dev.spec.js.html +1 -1
- package/coverage/lcov-report/src/api/routes/tests/index.html +1 -1
- package/coverage/lcov-report/src/api/routes/tests/integration.spec.js.html +1 -1
- package/coverage/lcov-report/src/api/routes/tests/internalSearch.spec.js.html +1 -1
- package/coverage/lcov-report/src/api/routes/tests/layout.spec.js.html +1 -1
- package/coverage/lcov-report/src/api/routes/tests/metadata.spec.js.html +1 -1
- package/coverage/lcov-report/src/api/routes/tests/misc.spec.js.html +1 -1
- package/coverage/lcov-report/src/api/routes/tests/permissions.spec.js.html +1 -1
- package/coverage/lcov-report/src/api/routes/tests/plugin.spec.ts.html +1 -1
- package/coverage/lcov-report/src/api/routes/tests/query.seq.spec.js.html +1 -1
- package/coverage/lcov-report/src/api/routes/tests/role.spec.js.html +1 -1
- package/coverage/lcov-report/src/api/routes/tests/routing.spec.js.html +1 -1
- package/coverage/lcov-report/src/api/routes/tests/row.spec.js.html +1 -1
- package/coverage/lcov-report/src/api/routes/tests/screen.spec.js.html +1 -1
- package/coverage/lcov-report/src/api/routes/tests/static.spec.js.html +1 -1
- package/coverage/lcov-report/src/api/routes/tests/table.spec.js.html +1 -1
- package/coverage/lcov-report/src/api/routes/tests/templates.spec.js.html +1 -1
- package/coverage/lcov-report/src/api/routes/tests/user.spec.js.html +1 -1
- package/coverage/lcov-report/src/api/routes/tests/utilities/TestFunctions.ts.html +2 -2
- package/coverage/lcov-report/src/api/routes/tests/utilities/index.html +1 -1
- package/coverage/lcov-report/src/api/routes/tests/utilities/index.ts.html +14 -14
- package/coverage/lcov-report/src/api/routes/tests/view.spec.js.html +1 -1
- package/coverage/lcov-report/src/api/routes/tests/webhook.spec.js.html +1 -1
- package/coverage/lcov-report/src/api/routes/user.ts.html +9 -9
- package/coverage/lcov-report/src/api/routes/utils/index.html +1 -1
- package/coverage/lcov-report/src/api/routes/utils/validators.ts.html +42 -42
- package/coverage/lcov-report/src/api/routes/view.ts.html +10 -10
- package/coverage/lcov-report/src/api/routes/webhook.ts.html +10 -10
- package/coverage/lcov-report/src/app.ts.html +33 -33
- package/coverage/lcov-report/src/automations/actions.ts.html +24 -24
- package/coverage/lcov-report/src/automations/automationUtils.ts.html +4 -4
- package/coverage/lcov-report/src/automations/bullboard.ts.html +9 -9
- package/coverage/lcov-report/src/automations/index.html +1 -1
- package/coverage/lcov-report/src/automations/index.ts.html +9 -9
- package/coverage/lcov-report/src/automations/logging/index.html +1 -1
- package/coverage/lcov-report/src/automations/logging/index.ts.html +4 -4
- package/coverage/lcov-report/src/automations/steps/bash.ts.html +8 -8
- package/coverage/lcov-report/src/automations/steps/createRow.ts.html +7 -7
- package/coverage/lcov-report/src/automations/steps/delay.ts.html +5 -5
- package/coverage/lcov-report/src/automations/steps/deleteRow.ts.html +7 -7
- package/coverage/lcov-report/src/automations/steps/discord.ts.html +8 -8
- package/coverage/lcov-report/src/automations/steps/executeQuery.ts.html +7 -7
- package/coverage/lcov-report/src/automations/steps/executeScript.ts.html +7 -7
- package/coverage/lcov-report/src/automations/steps/filter.ts.html +6 -6
- package/coverage/lcov-report/src/automations/steps/index.html +1 -1
- package/coverage/lcov-report/src/automations/steps/integromat.ts.html +6 -6
- package/coverage/lcov-report/src/automations/steps/loop.ts.html +3 -3
- package/coverage/lcov-report/src/automations/steps/outgoingWebhook.ts.html +9 -9
- package/coverage/lcov-report/src/automations/steps/queryRows.ts.html +13 -13
- package/coverage/lcov-report/src/automations/steps/sendSmtpEmail.ts.html +6 -6
- package/coverage/lcov-report/src/automations/steps/serverLog.ts.html +4 -4
- package/coverage/lcov-report/src/automations/steps/slack.ts.html +6 -6
- package/coverage/lcov-report/src/automations/steps/updateRow.ts.html +7 -7
- package/coverage/lcov-report/src/automations/steps/utils.ts.html +1 -1
- package/coverage/lcov-report/src/automations/steps/zapier.ts.html +6 -6
- package/coverage/lcov-report/src/automations/tests/automation.spec.js.html +1 -1
- package/coverage/lcov-report/src/automations/tests/bash.spec.js.html +1 -1
- package/coverage/lcov-report/src/automations/tests/createRow.spec.ts.html +1 -1
- package/coverage/lcov-report/src/automations/tests/delay.spec.js.html +1 -1
- package/coverage/lcov-report/src/automations/tests/deleteRow.spec.ts.html +1 -1
- package/coverage/lcov-report/src/automations/tests/discord.spec.js.html +1 -1
- package/coverage/lcov-report/src/automations/tests/executeQuery.spec.js.html +1 -1
- package/coverage/lcov-report/src/automations/tests/executeScript.spec.js.html +1 -1
- package/coverage/lcov-report/src/automations/tests/filter.spec.js.html +1 -1
- package/coverage/lcov-report/src/automations/tests/index.html +1 -1
- package/coverage/lcov-report/src/automations/tests/loop.spec.ts.html +1 -1
- package/coverage/lcov-report/src/automations/tests/outgoingWebhook.spec.js.html +1 -1
- package/coverage/lcov-report/src/automations/tests/queryRows.spec.js.html +1 -1
- package/coverage/lcov-report/src/automations/tests/sendSmtpEmail.spec.js.html +1 -1
- package/coverage/lcov-report/src/automations/tests/serverLog.spec.js.html +1 -1
- package/coverage/lcov-report/src/automations/tests/updateRow.spec.js.html +1 -1
- package/coverage/lcov-report/src/automations/tests/utilities/index.html +1 -1
- package/coverage/lcov-report/src/automations/tests/utilities/index.ts.html +1 -1
- package/coverage/lcov-report/src/automations/tests/zapier.spec.js.html +1 -1
- package/coverage/lcov-report/src/automations/triggerInfo/app.ts.html +3 -3
- package/coverage/lcov-report/src/automations/triggerInfo/cron.ts.html +3 -3
- package/coverage/lcov-report/src/automations/triggerInfo/index.html +1 -1
- package/coverage/lcov-report/src/automations/triggerInfo/index.ts.html +8 -8
- package/coverage/lcov-report/src/automations/triggerInfo/rowDeleted.ts.html +3 -3
- package/coverage/lcov-report/src/automations/triggerInfo/rowSaved.ts.html +3 -3
- package/coverage/lcov-report/src/automations/triggerInfo/rowUpdated.ts.html +3 -3
- package/coverage/lcov-report/src/automations/triggerInfo/webhook.ts.html +3 -3
- package/coverage/lcov-report/src/automations/triggers.ts.html +29 -29
- package/coverage/lcov-report/src/automations/unitTests/automationUtils.spec.ts.html +1 -1
- package/coverage/lcov-report/src/automations/unitTests/index.html +1 -1
- package/coverage/lcov-report/src/automations/utils.ts.html +36 -36
- package/coverage/lcov-report/src/constants/index.html +16 -16
- package/coverage/lcov-report/src/constants/index.ts.html +33 -99
- package/coverage/lcov-report/src/constants/layouts.ts.html +4 -4
- package/coverage/lcov-report/src/constants/screens.ts.html +3 -3
- package/coverage/lcov-report/src/db/defaultData/datasource_bb_default.ts.html +33 -45
- package/coverage/lcov-report/src/db/defaultData/employeeImport.ts.html +2 -2
- package/coverage/lcov-report/src/db/defaultData/expensesImport.ts.html +2 -2
- package/coverage/lcov-report/src/db/defaultData/index.html +11 -11
- package/coverage/lcov-report/src/db/defaultData/inventoryImport.ts.html +2 -2
- package/coverage/lcov-report/src/db/defaultData/jobsImport.ts.html +2 -2
- package/coverage/lcov-report/src/db/dynamoClient.ts.html +15 -15
- package/coverage/lcov-report/src/db/inMemoryView.ts.html +4 -4
- package/coverage/lcov-report/src/db/index.html +5 -5
- package/coverage/lcov-report/src/db/index.ts.html +7 -7
- package/coverage/lcov-report/src/db/linkedRows/LinkController.ts.html +15 -12
- package/coverage/lcov-report/src/db/linkedRows/LinkDocument.ts.html +4 -4
- package/coverage/lcov-report/src/db/linkedRows/index.html +10 -10
- package/coverage/lcov-report/src/db/linkedRows/index.ts.html +9 -9
- package/coverage/lcov-report/src/db/linkedRows/linkUtils.ts.html +5 -5
- package/coverage/lcov-report/src/db/newid.ts.html +4 -4
- package/coverage/lcov-report/src/db/tests/index.html +1 -1
- package/coverage/lcov-report/src/db/tests/linkController.spec.js.html +1 -1
- package/coverage/lcov-report/src/db/tests/linkTests.spec.js.html +1 -1
- package/coverage/lcov-report/src/db/utils.ts.html +36 -36
- package/coverage/lcov-report/src/definitions/automations.ts.html +2 -2
- package/coverage/lcov-report/src/definitions/index.html +1 -1
- package/coverage/lcov-report/src/environment.ts.html +21 -21
- package/coverage/lcov-report/src/events/AutomationEmitter.ts.html +6 -6
- package/coverage/lcov-report/src/events/BudibaseEmitter.ts.html +6 -6
- package/coverage/lcov-report/src/events/index.html +1 -1
- package/coverage/lcov-report/src/events/index.ts.html +4 -4
- package/coverage/lcov-report/src/events/utils.ts.html +10 -10
- package/coverage/lcov-report/src/index.html +1 -1
- package/coverage/lcov-report/src/index.ts.html +1 -1
- package/coverage/lcov-report/src/integration-test/index.html +116 -0
- package/coverage/lcov-report/src/integration-test/postgres.spec.ts.html +2341 -0
- package/coverage/lcov-report/src/integrations/airtable.ts.html +5 -5
- package/coverage/lcov-report/src/integrations/arangodb.ts.html +5 -5
- package/coverage/lcov-report/src/integrations/base/index.html +30 -30
- package/coverage/lcov-report/src/integrations/base/query.ts.html +9 -9
- package/coverage/lcov-report/src/integrations/base/sql.ts.html +217 -187
- package/coverage/lcov-report/src/integrations/base/sqlTable.ts.html +107 -107
- package/coverage/lcov-report/src/integrations/base/utils.ts.html +5 -5
- package/coverage/lcov-report/src/integrations/couchdb.ts.html +5 -5
- package/coverage/lcov-report/src/integrations/dynamodb.ts.html +6 -6
- package/coverage/lcov-report/src/integrations/elasticsearch.ts.html +5 -5
- package/coverage/lcov-report/src/integrations/firebase.ts.html +5 -5
- package/coverage/lcov-report/src/integrations/googlesheets.ts.html +11 -11
- package/coverage/lcov-report/src/integrations/index.html +27 -27
- package/coverage/lcov-report/src/integrations/index.ts.html +37 -37
- package/coverage/lcov-report/src/integrations/microsoftSqlServer.ts.html +8 -8
- package/coverage/lcov-report/src/integrations/mongodb.ts.html +11 -11
- package/coverage/lcov-report/src/integrations/mysql.ts.html +10 -10
- package/coverage/lcov-report/src/integrations/oracle.ts.html +14 -14
- package/coverage/lcov-report/src/integrations/postgres.ts.html +65 -65
- package/coverage/lcov-report/src/integrations/queries/index.html +1 -1
- package/coverage/lcov-report/src/integrations/queries/sql.ts.html +1 -1
- package/coverage/lcov-report/src/integrations/redis.ts.html +5 -5
- package/coverage/lcov-report/src/integrations/rest.ts.html +15 -15
- package/coverage/lcov-report/src/integrations/s3.ts.html +6 -6
- package/coverage/lcov-report/src/integrations/snowflake.ts.html +5 -5
- package/coverage/lcov-report/src/integrations/tests/TestConfiguration.js.html +1 -1
- package/coverage/lcov-report/src/integrations/tests/airtable.spec.ts.html +1 -1
- package/coverage/lcov-report/src/integrations/tests/arangodb.spec.ts.html +1 -1
- package/coverage/lcov-report/src/integrations/tests/couchdb.spec.ts.html +1 -1
- package/coverage/lcov-report/src/integrations/tests/dynamodb.spec.ts.html +1 -1
- package/coverage/lcov-report/src/integrations/tests/elasticsearch.spec.ts.html +1 -1
- package/coverage/lcov-report/src/integrations/tests/firebase.spec.ts.html +1 -1
- package/coverage/lcov-report/src/integrations/tests/index.html +1 -1
- package/coverage/lcov-report/src/integrations/tests/microsoftSqlServer.spec.ts.html +1 -1
- package/coverage/lcov-report/src/integrations/tests/mongo.spec.ts.html +1 -1
- package/coverage/lcov-report/src/integrations/tests/mysql.spec.ts.html +1 -1
- package/coverage/lcov-report/src/integrations/tests/oracle.spec.ts.html +1 -1
- package/coverage/lcov-report/src/integrations/tests/postgres.spec.ts.html +1 -1
- package/coverage/lcov-report/src/integrations/tests/redis.spec.ts.html +1 -1
- package/coverage/lcov-report/src/integrations/tests/rest.spec.ts.html +1 -1
- package/coverage/lcov-report/src/integrations/tests/s3.spec.ts.html +1 -1
- package/coverage/lcov-report/src/integrations/tests/sql.spec.ts.html +1 -1
- package/coverage/lcov-report/src/integrations/utils.ts.html +74 -74
- package/coverage/lcov-report/src/middleware/appInfo.ts.html +5 -5
- package/coverage/lcov-report/src/middleware/authorized.ts.html +29 -29
- package/coverage/lcov-report/src/middleware/builder.ts.html +17 -17
- package/coverage/lcov-report/src/middleware/currentapp.ts.html +39 -39
- package/coverage/lcov-report/src/middleware/index.html +1 -1
- package/coverage/lcov-report/src/middleware/joi-validator.ts.html +1 -1
- package/coverage/lcov-report/src/middleware/publicApi.ts.html +4 -4
- package/coverage/lcov-report/src/middleware/resourceId.ts.html +28 -28
- package/coverage/lcov-report/src/middleware/selfhost.ts.html +1 -1
- package/coverage/lcov-report/src/middleware/tests/authorized.spec.js.html +1 -1
- package/coverage/lcov-report/src/middleware/tests/currentapp.spec.js.html +1 -1
- package/coverage/lcov-report/src/middleware/tests/index.html +1 -1
- package/coverage/lcov-report/src/middleware/tests/resourceId.spec.js.html +1 -1
- package/coverage/lcov-report/src/middleware/tests/selfhost.spec.js.html +1 -1
- package/coverage/lcov-report/src/middleware/utils.ts.html +4 -4
- package/coverage/lcov-report/src/migrations/functions/appUrls.ts.html +4 -4
- package/coverage/lcov-report/src/migrations/functions/backfill/app/automations.ts.html +5 -5
- package/coverage/lcov-report/src/migrations/functions/backfill/app/datasources.ts.html +5 -5
- package/coverage/lcov-report/src/migrations/functions/backfill/app/index.html +1 -1
- package/coverage/lcov-report/src/migrations/functions/backfill/app/layouts.ts.html +5 -5
- package/coverage/lcov-report/src/migrations/functions/backfill/app/queries.ts.html +7 -7
- package/coverage/lcov-report/src/migrations/functions/backfill/app/roles.ts.html +5 -5
- package/coverage/lcov-report/src/migrations/functions/backfill/app/screens.ts.html +5 -5
- package/coverage/lcov-report/src/migrations/functions/backfill/app/tables.ts.html +4 -4
- package/coverage/lcov-report/src/migrations/functions/backfill/app.ts.html +19 -19
- package/coverage/lcov-report/src/migrations/functions/backfill/global/configs.ts.html +6 -6
- package/coverage/lcov-report/src/migrations/functions/backfill/global/index.html +1 -1
- package/coverage/lcov-report/src/migrations/functions/backfill/global/quotas.ts.html +7 -7
- package/coverage/lcov-report/src/migrations/functions/backfill/global/users.ts.html +6 -6
- package/coverage/lcov-report/src/migrations/functions/backfill/global.ts.html +15 -15
- package/coverage/lcov-report/src/migrations/functions/backfill/index.html +1 -1
- package/coverage/lcov-report/src/migrations/functions/backfill/index.ts.html +5 -5
- package/coverage/lcov-report/src/migrations/functions/backfill/installation.ts.html +8 -8
- package/coverage/lcov-report/src/migrations/functions/index.html +1 -1
- package/coverage/lcov-report/src/migrations/functions/syncQuotas.ts.html +6 -6
- package/coverage/lcov-report/src/migrations/functions/tableSettings.ts.html +6 -6
- package/coverage/lcov-report/src/migrations/functions/tests/appUrls.spec.js.html +1 -1
- package/coverage/lcov-report/src/migrations/functions/tests/index.html +1 -1
- package/coverage/lcov-report/src/migrations/functions/tests/syncQuotas.spec.js.html +1 -1
- package/coverage/lcov-report/src/migrations/functions/tests/tableSettings.spec.ts.html +1 -1
- package/coverage/lcov-report/src/migrations/functions/tests/userEmailViewCasing.spec.js.html +1 -1
- package/coverage/lcov-report/src/migrations/functions/usageQuotas/index.html +1 -1
- package/coverage/lcov-report/src/migrations/functions/usageQuotas/index.ts.html +2 -2
- package/coverage/lcov-report/src/migrations/functions/usageQuotas/syncApps.ts.html +5 -5
- package/coverage/lcov-report/src/migrations/functions/usageQuotas/syncPlugins.ts.html +4 -4
- package/coverage/lcov-report/src/migrations/functions/usageQuotas/syncRows.ts.html +6 -6
- package/coverage/lcov-report/src/migrations/functions/usageQuotas/tests/index.html +1 -1
- package/coverage/lcov-report/src/migrations/functions/usageQuotas/tests/syncApps.spec.ts.html +1 -1
- package/coverage/lcov-report/src/migrations/functions/usageQuotas/tests/syncRows.spec.ts.html +1 -1
- package/coverage/lcov-report/src/migrations/functions/userEmailViewCasing.ts.html +3 -3
- package/coverage/lcov-report/src/migrations/index.html +1 -1
- package/coverage/lcov-report/src/migrations/index.ts.html +32 -32
- package/coverage/lcov-report/src/migrations/tests/helpers.ts.html +1 -1
- package/coverage/lcov-report/src/migrations/tests/index.html +1 -1
- package/coverage/lcov-report/src/migrations/tests/index.spec.ts.html +1 -1
- package/coverage/lcov-report/src/migrations/tests/structures.ts.html +1 -1
- package/coverage/lcov-report/src/sdk/app/applications/index.html +1 -1
- package/coverage/lcov-report/src/sdk/app/applications/index.ts.html +4 -4
- package/coverage/lcov-report/src/sdk/app/applications/sync.ts.html +22 -22
- package/coverage/lcov-report/src/sdk/app/applications/utils.ts.html +9 -9
- package/coverage/lcov-report/src/sdk/app/automations/index.html +1 -1
- package/coverage/lcov-report/src/sdk/app/automations/index.ts.html +3 -3
- package/coverage/lcov-report/src/sdk/app/automations/webhook.ts.html +3 -3
- package/coverage/lcov-report/src/sdk/app/backups/constants.ts.html +3 -3
- package/coverage/lcov-report/src/sdk/app/backups/exports.ts.html +17 -17
- package/coverage/lcov-report/src/sdk/app/backups/imports.ts.html +18 -18
- package/coverage/lcov-report/src/sdk/app/backups/index.html +1 -1
- package/coverage/lcov-report/src/sdk/app/backups/index.ts.html +5 -5
- package/coverage/lcov-report/src/sdk/app/backups/statistics.ts.html +7 -7
- package/coverage/lcov-report/src/sdk/app/datasources/datasources.ts.html +39 -39
- package/coverage/lcov-report/src/sdk/app/datasources/index.html +1 -1
- package/coverage/lcov-report/src/sdk/app/datasources/index.ts.html +3 -3
- package/coverage/lcov-report/src/sdk/app/queries/index.html +1 -1
- package/coverage/lcov-report/src/sdk/app/queries/index.ts.html +3 -3
- package/coverage/lcov-report/src/sdk/app/queries/queries.ts.html +4 -4
- package/coverage/lcov-report/src/sdk/app/rows/attachments.ts.html +6 -6
- package/coverage/lcov-report/src/sdk/app/rows/index.html +1 -1
- package/coverage/lcov-report/src/sdk/app/rows/index.ts.html +4 -4
- package/coverage/lcov-report/src/sdk/app/rows/rows.ts.html +4 -4
- package/coverage/lcov-report/src/sdk/app/tables/index.html +1 -1
- package/coverage/lcov-report/src/sdk/app/tables/index.ts.html +6 -6
- package/coverage/lcov-report/src/sdk/index.html +1 -1
- package/coverage/lcov-report/src/sdk/index.ts.html +11 -11
- package/coverage/lcov-report/src/sdk/tests/attachments.spec.ts.html +1 -1
- package/coverage/lcov-report/src/sdk/tests/index.html +1 -1
- package/coverage/lcov-report/src/sdk/users/index.html +1 -1
- package/coverage/lcov-report/src/sdk/users/index.ts.html +3 -3
- package/coverage/lcov-report/src/sdk/users/utils.ts.html +26 -26
- package/coverage/lcov-report/src/sdk/utils/index.html +1 -1
- package/coverage/lcov-report/src/sdk/utils/index.ts.html +11 -11
- package/coverage/lcov-report/src/startup.ts.html +41 -41
- package/coverage/lcov-report/src/tests/utilities/TestConfiguration.ts.html +176 -146
- package/coverage/lcov-report/src/tests/utilities/controllers.ts.html +15 -15
- package/coverage/lcov-report/src/tests/utilities/index.html +14 -14
- package/coverage/lcov-report/src/tests/utilities/index.ts.html +1 -1
- package/coverage/lcov-report/src/tests/utilities/structures.ts.html +16 -10
- package/coverage/lcov-report/src/threads/automation.ts.html +22 -22
- package/coverage/lcov-report/src/threads/index.html +1 -1
- package/coverage/lcov-report/src/threads/index.ts.html +10 -10
- package/coverage/lcov-report/src/threads/query.ts.html +1 -1
- package/coverage/lcov-report/src/threads/utils.ts.html +9 -9
- package/coverage/lcov-report/src/utilities/budibaseDir.ts.html +3 -3
- package/coverage/lcov-report/src/utilities/centralPath.ts.html +2 -2
- package/coverage/lcov-report/src/utilities/fileSystem/app.ts.html +17 -17
- package/coverage/lcov-report/src/utilities/fileSystem/clientLibrary.ts.html +8 -8
- package/coverage/lcov-report/src/utilities/fileSystem/filesystem.ts.html +25 -25
- package/coverage/lcov-report/src/utilities/fileSystem/index.html +1 -1
- package/coverage/lcov-report/src/utilities/fileSystem/index.ts.html +6 -6
- package/coverage/lcov-report/src/utilities/fileSystem/plugin.ts.html +8 -8
- package/coverage/lcov-report/src/utilities/fileSystem/processor.ts.html +1 -1
- package/coverage/lcov-report/src/utilities/fileSystem/template.ts.html +7 -7
- package/coverage/lcov-report/src/utilities/global.ts.html +35 -35
- package/coverage/lcov-report/src/utilities/index.html +1 -1
- package/coverage/lcov-report/src/utilities/index.ts.html +11 -11
- package/coverage/lcov-report/src/utilities/redis.ts.html +12 -12
- package/coverage/lcov-report/src/utilities/retry.ts.html +1 -1
- package/coverage/lcov-report/src/utilities/routing/index.html +1 -1
- package/coverage/lcov-report/src/utilities/routing/index.ts.html +4 -4
- package/coverage/lcov-report/src/utilities/rowProcessor/index.html +19 -19
- package/coverage/lcov-report/src/utilities/rowProcessor/index.ts.html +9 -9
- package/coverage/lcov-report/src/utilities/rowProcessor/map.ts.html +2 -2
- package/coverage/lcov-report/src/utilities/rowProcessor/tests/index.html +1 -1
- package/coverage/lcov-report/src/utilities/rowProcessor/tests/utils.spec.ts.html +1 -1
- package/coverage/lcov-report/src/utilities/rowProcessor/utils.ts.html +38 -38
- package/coverage/lcov-report/src/utilities/schema.ts.html +3 -3
- package/coverage/lcov-report/src/utilities/scriptRunner.ts.html +5 -5
- package/coverage/lcov-report/src/utilities/security.ts.html +4 -4
- package/coverage/lcov-report/src/utilities/usageQuota/index.html +1 -1
- package/coverage/lcov-report/src/utilities/usageQuota/rows.ts.html +4 -4
- package/coverage/lcov-report/src/utilities/usageQuota/usageQuoteReset.ts.html +1 -1
- package/coverage/lcov-report/src/utilities/users.ts.html +4 -4
- package/coverage/lcov-report/src/utilities/workerRequests.ts.html +1 -1
- package/coverage/lcov-report/src/watch.ts.html +7 -7
- package/coverage/lcov-report/src/websocket.ts.html +5 -5
- package/coverage/lcov.info +6276 -5874
- package/dist/api/controllers/row/ExternalRequest.js +4 -2
- package/dist/api/controllers/row/external.js +12 -1
- package/dist/api/controllers/table/external.js +8 -8
- package/dist/api/routes/public/tests/utils.js +29 -2
- package/dist/api/routes/tests/utilities/index.js +131 -0
- package/dist/constants/index.js +4 -24
- package/dist/db/defaultData/datasource_bb_default.js +6 -5
- package/dist/db/linkedRows/LinkController.js +9 -8
- package/dist/integrations/base/sql.js +10 -3
- package/dist/package.json +6 -6
- package/dist/tests/utilities/TestConfiguration.js +618 -0
- package/dist/tests/utilities/controllers.js +40 -0
- package/dist/tests/utilities/structures.js +226 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +7 -7
- package/specs/openapi.json +6 -6
- package/specs/openapi.yaml +3 -3
- package/src/api/controllers/row/ExternalRequest.ts +6 -2
- package/src/api/controllers/row/external.ts +13 -1
- package/src/api/controllers/table/external.ts +3 -2
- package/src/api/routes/public/tests/compare.spec.js +1 -1
- package/src/api/routes/public/tests/users.spec.js +1 -1
- package/src/api/routes/public/tests/utils.ts +25 -8
- package/src/api/routes/tests/cloud.seq.spec.ts +1 -1
- package/src/constants/index.ts +1 -23
- package/src/db/defaultData/datasource_bb_default.ts +6 -10
- package/src/db/linkedRows/LinkController.ts +2 -1
- package/src/integration-test/postgres.spec.ts +752 -0
- package/src/integrations/base/sql.ts +15 -5
- package/src/integrations/oracle.ts +1 -1
- package/src/tests/utilities/TestConfiguration.ts +22 -12
- package/src/tests/utilities/structures.ts +4 -2
|
@@ -90,10 +90,15 @@ function parseFilters(filters: SearchFilters | undefined): SearchFilters {
|
|
|
90
90
|
function generateSelectStatement(
|
|
91
91
|
json: QueryJson,
|
|
92
92
|
knex: Knex
|
|
93
|
-
): (string | Knex.Raw)[] {
|
|
93
|
+
): (string | Knex.Raw)[] | "*" {
|
|
94
94
|
const { resource, meta } = json
|
|
95
|
+
|
|
96
|
+
if (!resource) {
|
|
97
|
+
return "*"
|
|
98
|
+
}
|
|
99
|
+
|
|
95
100
|
const schema = meta?.table?.schema
|
|
96
|
-
return resource
|
|
101
|
+
return resource.fields.map(field => {
|
|
97
102
|
const fieldNames = field.split(/\./g)
|
|
98
103
|
const tableName = fieldNames[0]
|
|
99
104
|
const columnName = fieldNames[1]
|
|
@@ -392,11 +397,14 @@ class InternalBuilder {
|
|
|
392
397
|
delete parsedBody[key]
|
|
393
398
|
}
|
|
394
399
|
}
|
|
400
|
+
|
|
395
401
|
// mysql can't use returning
|
|
396
402
|
if (opts.disableReturning) {
|
|
397
403
|
return query.insert(parsedBody)
|
|
398
404
|
} else {
|
|
399
|
-
return query
|
|
405
|
+
return query
|
|
406
|
+
.insert(parsedBody)
|
|
407
|
+
.returning(generateSelectStatement(json, knex))
|
|
400
408
|
}
|
|
401
409
|
}
|
|
402
410
|
|
|
@@ -481,7 +489,9 @@ class InternalBuilder {
|
|
|
481
489
|
if (opts.disableReturning) {
|
|
482
490
|
return query.update(parsedBody)
|
|
483
491
|
} else {
|
|
484
|
-
return query
|
|
492
|
+
return query
|
|
493
|
+
.update(parsedBody)
|
|
494
|
+
.returning(generateSelectStatement(json, knex))
|
|
485
495
|
}
|
|
486
496
|
}
|
|
487
497
|
|
|
@@ -496,7 +506,7 @@ class InternalBuilder {
|
|
|
496
506
|
if (opts.disableReturning) {
|
|
497
507
|
return query.delete()
|
|
498
508
|
} else {
|
|
499
|
-
return query.delete().returning(
|
|
509
|
+
return query.delete().returning(generateSelectStatement(json, knex))
|
|
500
510
|
}
|
|
501
511
|
}
|
|
502
512
|
}
|
|
@@ -247,7 +247,7 @@ class OracleIntegration extends Sql implements DatasourcePlus {
|
|
|
247
247
|
)
|
|
248
248
|
}
|
|
249
249
|
|
|
250
|
-
private internalConvertType(column: OracleColumn): { type:
|
|
250
|
+
private internalConvertType(column: OracleColumn): { type: FieldTypes } {
|
|
251
251
|
if (this.isBooleanType(column)) {
|
|
252
252
|
return { type: FieldTypes.BOOLEAN }
|
|
253
253
|
}
|
|
@@ -39,8 +39,15 @@ import { cleanup } from "../../utilities/fileSystem"
|
|
|
39
39
|
import newid from "../../db/newid"
|
|
40
40
|
import { generateUserMetadataID } from "../../db/utils"
|
|
41
41
|
import { startup } from "../../startup"
|
|
42
|
-
import
|
|
43
|
-
|
|
42
|
+
import supertest from "supertest"
|
|
43
|
+
import {
|
|
44
|
+
AuthToken,
|
|
45
|
+
Database,
|
|
46
|
+
Datasource,
|
|
47
|
+
Row,
|
|
48
|
+
SourceName,
|
|
49
|
+
Table,
|
|
50
|
+
} from "@budibase/types"
|
|
44
51
|
|
|
45
52
|
type DefaultUserValues = {
|
|
46
53
|
globalUserId: string
|
|
@@ -52,7 +59,7 @@ type DefaultUserValues = {
|
|
|
52
59
|
|
|
53
60
|
class TestConfiguration {
|
|
54
61
|
server: any
|
|
55
|
-
request:
|
|
62
|
+
request: supertest.SuperTest<supertest.Test> | undefined
|
|
56
63
|
started: boolean
|
|
57
64
|
appId: string | null
|
|
58
65
|
allApps: any[]
|
|
@@ -197,7 +204,7 @@ class TestConfiguration {
|
|
|
197
204
|
|
|
198
205
|
// UTILS
|
|
199
206
|
|
|
200
|
-
|
|
207
|
+
_req(body: any, params: any, controlFunc: any) {
|
|
201
208
|
// create a fake request ctx
|
|
202
209
|
const request: any = {}
|
|
203
210
|
const appId = this.appId
|
|
@@ -360,6 +367,7 @@ class TestConfiguration {
|
|
|
360
367
|
[constants.Header.CSRF_TOKEN]: this.defaultUserValues.csrfToken,
|
|
361
368
|
...extras,
|
|
362
369
|
}
|
|
370
|
+
|
|
363
371
|
if (this.appId) {
|
|
364
372
|
headers[constants.Header.APP_ID] = this.appId
|
|
365
373
|
}
|
|
@@ -464,13 +472,13 @@ class TestConfiguration {
|
|
|
464
472
|
|
|
465
473
|
// TABLE
|
|
466
474
|
|
|
467
|
-
async updateTable(config?: any) {
|
|
475
|
+
async updateTable(config?: any): Promise<Table> {
|
|
468
476
|
config = config || basicTable()
|
|
469
477
|
this.table = await this._req(config, null, controllers.table.save)
|
|
470
478
|
return this.table
|
|
471
479
|
}
|
|
472
480
|
|
|
473
|
-
async createTable(config?:
|
|
481
|
+
async createTable(config?: Table) {
|
|
474
482
|
if (config != null && config._id) {
|
|
475
483
|
delete config._id
|
|
476
484
|
}
|
|
@@ -514,7 +522,7 @@ class TestConfiguration {
|
|
|
514
522
|
|
|
515
523
|
// ROW
|
|
516
524
|
|
|
517
|
-
async createRow(config:
|
|
525
|
+
async createRow(config?: Row): Promise<Row> {
|
|
518
526
|
if (!this.table) {
|
|
519
527
|
throw "Test requires table to be configured."
|
|
520
528
|
}
|
|
@@ -523,7 +531,7 @@ class TestConfiguration {
|
|
|
523
531
|
return this._req(config, { tableId }, controllers.row.save)
|
|
524
532
|
}
|
|
525
533
|
|
|
526
|
-
async getRow(tableId: string, rowId: string) {
|
|
534
|
+
async getRow(tableId: string, rowId: string): Promise<Row> {
|
|
527
535
|
return this._req(null, { tableId, rowId }, controllers.row.find)
|
|
528
536
|
}
|
|
529
537
|
|
|
@@ -605,7 +613,9 @@ class TestConfiguration {
|
|
|
605
613
|
|
|
606
614
|
// DATASOURCE
|
|
607
615
|
|
|
608
|
-
async createDatasource(config?:
|
|
616
|
+
async createDatasource(config?: {
|
|
617
|
+
datasource: Datasource
|
|
618
|
+
}): Promise<Datasource> {
|
|
609
619
|
config = config || basicDatasource()
|
|
610
620
|
const response = await this._req(config, null, controllers.datasource.save)
|
|
611
621
|
this.datasource = response.datasource
|
|
@@ -626,7 +636,7 @@ class TestConfiguration {
|
|
|
626
636
|
return this.createDatasource({
|
|
627
637
|
datasource: {
|
|
628
638
|
...basicDatasource().datasource,
|
|
629
|
-
source:
|
|
639
|
+
source: SourceName.REST,
|
|
630
640
|
config: cfg || {},
|
|
631
641
|
},
|
|
632
642
|
})
|
|
@@ -635,7 +645,7 @@ class TestConfiguration {
|
|
|
635
645
|
async dynamicVariableDatasource() {
|
|
636
646
|
let datasource = await this.restDatasource()
|
|
637
647
|
const basedOnQuery = await this.createQuery({
|
|
638
|
-
...basicQuery(datasource._id),
|
|
648
|
+
...basicQuery(datasource._id!),
|
|
639
649
|
fields: {
|
|
640
650
|
path: "www.google.com",
|
|
641
651
|
},
|
|
@@ -663,7 +673,7 @@ class TestConfiguration {
|
|
|
663
673
|
datasource: any,
|
|
664
674
|
fields: any,
|
|
665
675
|
params: any,
|
|
666
|
-
verb
|
|
676
|
+
verb?: string
|
|
667
677
|
) {
|
|
668
678
|
return request
|
|
669
679
|
.post(`/api/queries/preview`)
|
|
@@ -7,6 +7,8 @@ import {
|
|
|
7
7
|
Automation,
|
|
8
8
|
AutomationActionStepId,
|
|
9
9
|
AutomationTriggerStepId,
|
|
10
|
+
Datasource,
|
|
11
|
+
SourceName,
|
|
10
12
|
} from "@budibase/types"
|
|
11
13
|
|
|
12
14
|
const { v4: uuidv4 } = require("uuid")
|
|
@@ -207,12 +209,12 @@ export function basicRole() {
|
|
|
207
209
|
}
|
|
208
210
|
}
|
|
209
211
|
|
|
210
|
-
export function basicDatasource() {
|
|
212
|
+
export function basicDatasource(): { datasource: Datasource } {
|
|
211
213
|
return {
|
|
212
214
|
datasource: {
|
|
213
215
|
type: "datasource",
|
|
214
216
|
name: "Test",
|
|
215
|
-
source:
|
|
217
|
+
source: SourceName.POSTGRES,
|
|
216
218
|
config: {},
|
|
217
219
|
},
|
|
218
220
|
}
|