@budibase/server 1.0.204 → 1.0.207-alpha.0
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.c6df2367.css +6 -0
- package/builder/assets/index.e9b8dfce.js +1313 -0
- package/builder/index.html +2 -2
- package/coverage/clover.xml +123 -121
- package/coverage/coverage-final.json +5 -5
- 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 +9 -6
- 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 +7 -7
- 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 +8 -23
- package/coverage/lcov-report/api/controllers/row/index.html +16 -16
- 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 +17 -8
- 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 +5 -5
- 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 +4 -4
- 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 +10 -10
- 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 +9 -6
- 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 +22 -22
- 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/threads/automation.js.html +1 -1
- package/coverage/lcov-report/threads/index.html +1 -1
- package/coverage/lcov-report/threads/query.js.html +1 -1
- package/coverage/lcov-report/threads/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 +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/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 +221 -215
- package/dist/api/controllers/backup.js +3 -2
- package/dist/api/controllers/row/external.js +2 -4
- package/dist/api/controllers/row/utils.js +3 -0
- package/dist/api/controllers/static/index.js +6 -6
- package/dist/automations/triggers.js +1 -1
- package/dist/db/utils.js +1 -0
- package/dist/definitions/datasource.js +1 -0
- package/dist/integrations/index.js +4 -0
- package/dist/integrations/snowflake.js +101 -0
- package/dist/package.json +7 -6
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/utilities/fileSystem/index.js +16 -6
- package/package.json +8 -7
- package/src/api/controllers/backup.js +3 -2
- package/src/api/controllers/row/external.js +2 -7
- package/src/api/controllers/row/utils.js +3 -0
- package/src/api/controllers/static/index.js +3 -3
- package/src/automations/triggers.js +1 -1
- package/src/db/utils.js +1 -0
- package/src/definitions/datasource.ts +1 -0
- package/src/integrations/index.ts +4 -0
- package/src/integrations/snowflake.ts +98 -0
- package/src/migrations/tests/index.spec.ts +2 -0
- package/src/utilities/fileSystem/index.js +22 -8
- package/builder/assets/index.24307ca0.css +0 -6
- package/builder/assets/index.9ea3d49e.js +0 -1315
package/coverage/lcov.info
CHANGED
|
@@ -347,7 +347,7 @@ end_of_record
|
|
|
347
347
|
TN:
|
|
348
348
|
SF:src/api/controllers/backup.js
|
|
349
349
|
FN:5,(anonymous_0)
|
|
350
|
-
FN:
|
|
350
|
+
FN:13,(anonymous_1)
|
|
351
351
|
FNF:2
|
|
352
352
|
FNH:2
|
|
353
353
|
FNDA:1,(anonymous_0)
|
|
@@ -361,12 +361,13 @@ DA:7,1
|
|
|
361
361
|
DA:8,1
|
|
362
362
|
DA:9,1
|
|
363
363
|
DA:10,1
|
|
364
|
-
DA:
|
|
364
|
+
DA:11,1
|
|
365
365
|
DA:13,1
|
|
366
366
|
DA:14,1
|
|
367
367
|
DA:15,1
|
|
368
|
-
|
|
369
|
-
|
|
368
|
+
DA:16,1
|
|
369
|
+
LF:14
|
|
370
|
+
LH:14
|
|
370
371
|
BRF:0
|
|
371
372
|
BRH:0
|
|
372
373
|
end_of_record
|
|
@@ -1773,9 +1774,9 @@ FN:98,(anonymous_8)
|
|
|
1773
1774
|
FN:101,(anonymous_9)
|
|
1774
1775
|
FN:152,(anonymous_10)
|
|
1775
1776
|
FN:157,(anonymous_11)
|
|
1776
|
-
FN:
|
|
1777
|
-
FN:
|
|
1778
|
-
FN:
|
|
1777
|
+
FN:168,(anonymous_12)
|
|
1778
|
+
FN:183,(anonymous_13)
|
|
1779
|
+
FN:213,(anonymous_14)
|
|
1779
1780
|
FNF:15
|
|
1780
1781
|
FNH:0
|
|
1781
1782
|
FNDA:0,handleRequest
|
|
@@ -1873,37 +1874,35 @@ DA:161,0
|
|
|
1873
1874
|
DA:162,0
|
|
1874
1875
|
DA:163,0
|
|
1875
1876
|
DA:165,0
|
|
1876
|
-
DA:
|
|
1877
|
-
DA:
|
|
1878
|
-
DA:
|
|
1879
|
-
DA:
|
|
1877
|
+
DA:168,0
|
|
1878
|
+
DA:173,0
|
|
1879
|
+
DA:174,0
|
|
1880
|
+
DA:175,0
|
|
1881
|
+
DA:176,0
|
|
1880
1882
|
DA:179,0
|
|
1881
1883
|
DA:180,0
|
|
1882
|
-
DA:
|
|
1884
|
+
DA:183,44
|
|
1883
1885
|
DA:184,0
|
|
1884
1886
|
DA:185,0
|
|
1885
|
-
DA:
|
|
1887
|
+
DA:186,0
|
|
1888
|
+
DA:187,0
|
|
1889
|
+
DA:188,0
|
|
1886
1890
|
DA:189,0
|
|
1887
1891
|
DA:190,0
|
|
1888
|
-
DA:191,0
|
|
1889
1892
|
DA:192,0
|
|
1890
1893
|
DA:193,0
|
|
1891
|
-
DA:194,0
|
|
1892
|
-
DA:195,0
|
|
1893
1894
|
DA:197,0
|
|
1894
1895
|
DA:198,0
|
|
1896
|
+
DA:201,0
|
|
1895
1897
|
DA:202,0
|
|
1896
|
-
DA:203,0
|
|
1897
|
-
DA:206,0
|
|
1898
1898
|
DA:207,0
|
|
1899
|
-
DA:
|
|
1899
|
+
DA:209,0
|
|
1900
|
+
DA:210,0
|
|
1901
|
+
DA:211,0
|
|
1902
|
+
DA:213,0
|
|
1900
1903
|
DA:214,0
|
|
1901
|
-
DA:
|
|
1902
|
-
|
|
1903
|
-
DA:218,0
|
|
1904
|
-
DA:219,0
|
|
1905
|
-
DA:232,0
|
|
1906
|
-
LF:110
|
|
1904
|
+
DA:227,0
|
|
1905
|
+
LF:108
|
|
1907
1906
|
LH:18
|
|
1908
1907
|
BRDA:16,0,0,0
|
|
1909
1908
|
BRDA:18,1,0,0
|
|
@@ -1942,15 +1941,15 @@ BRDA:162,17,0,0
|
|
|
1942
1941
|
BRDA:162,17,1,0
|
|
1943
1942
|
BRDA:162,18,0,0
|
|
1944
1943
|
BRDA:162,18,1,0
|
|
1945
|
-
BRDA:
|
|
1946
|
-
BRDA:
|
|
1947
|
-
BRDA:
|
|
1948
|
-
BRDA:
|
|
1949
|
-
BRDA:
|
|
1950
|
-
BRDA:
|
|
1951
|
-
BRDA:
|
|
1952
|
-
BRDA:
|
|
1953
|
-
BRDA:
|
|
1944
|
+
BRDA:189,19,0,0
|
|
1945
|
+
BRDA:189,19,1,0
|
|
1946
|
+
BRDA:189,20,0,0
|
|
1947
|
+
BRDA:189,20,1,0
|
|
1948
|
+
BRDA:202,21,0,0
|
|
1949
|
+
BRDA:202,21,1,0
|
|
1950
|
+
BRDA:203,22,0,0
|
|
1951
|
+
BRDA:203,22,1,0
|
|
1952
|
+
BRDA:203,22,2,0
|
|
1954
1953
|
BRF:46
|
|
1955
1954
|
BRH:0
|
|
1956
1955
|
end_of_record
|
|
@@ -2737,7 +2736,7 @@ FN:14,(anonymous_1)
|
|
|
2737
2736
|
FN:19,(anonymous_2)
|
|
2738
2737
|
FN:26,(anonymous_3)
|
|
2739
2738
|
FN:45,(anonymous_4)
|
|
2740
|
-
FN:
|
|
2739
|
+
FN:70,(anonymous_5)
|
|
2741
2740
|
FNF:6
|
|
2742
2741
|
FNH:4
|
|
2743
2742
|
FNDA:2,(anonymous_0)
|
|
@@ -2787,17 +2786,19 @@ DA:65,224
|
|
|
2787
2786
|
DA:66,0
|
|
2788
2787
|
DA:67,0
|
|
2789
2788
|
DA:68,0
|
|
2790
|
-
DA:
|
|
2789
|
+
DA:70,0
|
|
2790
|
+
DA:71,0
|
|
2791
2791
|
DA:75,0
|
|
2792
|
-
DA:
|
|
2793
|
-
DA:
|
|
2794
|
-
DA:
|
|
2795
|
-
DA:82,0
|
|
2792
|
+
DA:78,0
|
|
2793
|
+
DA:80,0
|
|
2794
|
+
DA:82,224
|
|
2796
2795
|
DA:84,0
|
|
2797
|
-
DA:
|
|
2798
|
-
DA:
|
|
2799
|
-
DA:
|
|
2800
|
-
|
|
2796
|
+
DA:85,0
|
|
2797
|
+
DA:87,0
|
|
2798
|
+
DA:90,224
|
|
2799
|
+
DA:92,224
|
|
2800
|
+
DA:94,83
|
|
2801
|
+
LF:53
|
|
2801
2802
|
LH:35
|
|
2802
2803
|
BRDA:30,0,0,0
|
|
2803
2804
|
BRDA:30,0,1,26
|
|
@@ -2817,21 +2818,23 @@ BRDA:65,7,0,224
|
|
|
2817
2818
|
BRDA:65,7,1,0
|
|
2818
2819
|
BRDA:66,8,0,0
|
|
2819
2820
|
BRDA:66,8,1,0
|
|
2820
|
-
BRDA:
|
|
2821
|
-
BRDA:
|
|
2822
|
-
BRDA:
|
|
2823
|
-
BRDA:
|
|
2824
|
-
BRDA:
|
|
2825
|
-
BRDA:
|
|
2826
|
-
BRDA:
|
|
2827
|
-
BRDA:
|
|
2828
|
-
BRDA:
|
|
2829
|
-
BRDA:
|
|
2830
|
-
BRDA:
|
|
2831
|
-
BRDA:
|
|
2832
|
-
BRDA:
|
|
2833
|
-
BRDA:
|
|
2834
|
-
|
|
2821
|
+
BRDA:67,9,0,0
|
|
2822
|
+
BRDA:67,9,1,0
|
|
2823
|
+
BRDA:71,10,0,0
|
|
2824
|
+
BRDA:71,10,1,0
|
|
2825
|
+
BRDA:72,11,0,0
|
|
2826
|
+
BRDA:72,11,1,0
|
|
2827
|
+
BRDA:78,12,0,0
|
|
2828
|
+
BRDA:78,12,1,0
|
|
2829
|
+
BRDA:78,13,0,0
|
|
2830
|
+
BRDA:78,13,1,0
|
|
2831
|
+
BRDA:82,14,0,0
|
|
2832
|
+
BRDA:82,14,1,224
|
|
2833
|
+
BRDA:82,15,0,224
|
|
2834
|
+
BRDA:82,15,1,0
|
|
2835
|
+
BRDA:92,16,0,2
|
|
2836
|
+
BRDA:92,16,1,222
|
|
2837
|
+
BRF:34
|
|
2835
2838
|
BRH:13
|
|
2836
2839
|
end_of_record
|
|
2837
2840
|
TN:
|
|
@@ -4653,10 +4656,12 @@ BRDA:91,9,1,6
|
|
|
4653
4656
|
BRDA:91,9,2,6
|
|
4654
4657
|
BRDA:91,9,3,1
|
|
4655
4658
|
BRDA:91,9,4,1
|
|
4656
|
-
BRDA:
|
|
4657
|
-
BRDA:
|
|
4658
|
-
|
|
4659
|
-
|
|
4659
|
+
BRDA:100,10,0,1
|
|
4660
|
+
BRDA:100,10,1,0
|
|
4661
|
+
BRDA:106,11,0,2
|
|
4662
|
+
BRDA:106,11,1,4
|
|
4663
|
+
BRF:27
|
|
4664
|
+
BRH:22
|
|
4660
4665
|
end_of_record
|
|
4661
4666
|
TN:
|
|
4662
4667
|
SF:src/automations/steps/bash.js
|
|
@@ -5362,36 +5367,36 @@ BRH:0
|
|
|
5362
5367
|
end_of_record
|
|
5363
5368
|
TN:
|
|
5364
5369
|
SF:src/db/utils.js
|
|
5365
|
-
FN:
|
|
5366
|
-
FN:
|
|
5367
|
-
FN:
|
|
5368
|
-
FN:
|
|
5369
|
-
FN:
|
|
5370
|
-
FN:
|
|
5371
|
-
FN:
|
|
5372
|
-
FN:
|
|
5373
|
-
FN:
|
|
5374
|
-
FN:
|
|
5375
|
-
FN:
|
|
5376
|
-
FN:
|
|
5377
|
-
FN:
|
|
5378
|
-
FN:
|
|
5379
|
-
FN:
|
|
5380
|
-
FN:
|
|
5381
|
-
FN:
|
|
5382
|
-
FN:
|
|
5383
|
-
FN:
|
|
5384
|
-
FN:
|
|
5385
|
-
FN:
|
|
5386
|
-
FN:
|
|
5387
|
-
FN:
|
|
5388
|
-
FN:
|
|
5389
|
-
FN:
|
|
5390
|
-
FN:
|
|
5391
|
-
FN:
|
|
5392
|
-
FN:
|
|
5393
|
-
FN:
|
|
5394
|
-
FN:
|
|
5370
|
+
FN:92,(anonymous_0)
|
|
5371
|
+
FN:108,getDocParams
|
|
5372
|
+
FN:124,(anonymous_2)
|
|
5373
|
+
FN:132,(anonymous_3)
|
|
5374
|
+
FN:144,(anonymous_4)
|
|
5375
|
+
FN:159,(anonymous_5)
|
|
5376
|
+
FN:172,(anonymous_6)
|
|
5377
|
+
FN:180,(anonymous_7)
|
|
5378
|
+
FN:189,(anonymous_8)
|
|
5379
|
+
FN:196,(anonymous_9)
|
|
5380
|
+
FN:207,(anonymous_10)
|
|
5381
|
+
FN:215,(anonymous_11)
|
|
5382
|
+
FN:230,(anonymous_12)
|
|
5383
|
+
FN:247,(anonymous_13)
|
|
5384
|
+
FN:255,(anonymous_14)
|
|
5385
|
+
FN:262,(anonymous_15)
|
|
5386
|
+
FN:270,(anonymous_16)
|
|
5387
|
+
FN:277,(anonymous_17)
|
|
5388
|
+
FN:285,(anonymous_18)
|
|
5389
|
+
FN:292,(anonymous_19)
|
|
5390
|
+
FN:300,(anonymous_20)
|
|
5391
|
+
FN:309,(anonymous_21)
|
|
5392
|
+
FN:317,(anonymous_22)
|
|
5393
|
+
FN:326,(anonymous_23)
|
|
5394
|
+
FN:342,(anonymous_24)
|
|
5395
|
+
FN:346,(anonymous_25)
|
|
5396
|
+
FN:350,(anonymous_26)
|
|
5397
|
+
FN:358,(anonymous_27)
|
|
5398
|
+
FN:362,(anonymous_28)
|
|
5399
|
+
FN:369,(anonymous_29)
|
|
5395
5400
|
FNF:30
|
|
5396
5401
|
FNH:25
|
|
5397
5402
|
FNDA:74,(anonymous_0)
|
|
@@ -5450,136 +5455,137 @@ DA:83,57
|
|
|
5450
5455
|
DA:84,57
|
|
5451
5456
|
DA:85,57
|
|
5452
5457
|
DA:86,57
|
|
5453
|
-
DA:
|
|
5458
|
+
DA:87,57
|
|
5454
5459
|
DA:89,57
|
|
5455
|
-
DA:
|
|
5456
|
-
DA:92,
|
|
5457
|
-
DA:
|
|
5458
|
-
DA:109,
|
|
5459
|
-
DA:
|
|
5460
|
-
DA:
|
|
5461
|
-
DA:
|
|
5462
|
-
DA:124,
|
|
5463
|
-
DA:
|
|
5464
|
-
DA:132,
|
|
5465
|
-
DA:
|
|
5466
|
-
DA:144,
|
|
5467
|
-
DA:145,
|
|
5468
|
-
DA:
|
|
5469
|
-
DA:
|
|
5470
|
-
DA:
|
|
5471
|
-
DA:159,
|
|
5472
|
-
DA:
|
|
5473
|
-
DA:
|
|
5474
|
-
DA:172,
|
|
5460
|
+
DA:90,57
|
|
5461
|
+
DA:92,57
|
|
5462
|
+
DA:93,74
|
|
5463
|
+
DA:109,1077
|
|
5464
|
+
DA:110,1060
|
|
5465
|
+
DA:112,1077
|
|
5466
|
+
DA:119,57
|
|
5467
|
+
DA:124,57
|
|
5468
|
+
DA:125,267
|
|
5469
|
+
DA:132,57
|
|
5470
|
+
DA:133,128
|
|
5471
|
+
DA:144,57
|
|
5472
|
+
DA:145,41
|
|
5473
|
+
DA:146,27
|
|
5474
|
+
DA:149,14
|
|
5475
|
+
DA:151,14
|
|
5476
|
+
DA:159,57
|
|
5477
|
+
DA:160,0
|
|
5478
|
+
DA:163,0
|
|
5479
|
+
DA:172,57
|
|
5475
5480
|
DA:173,309
|
|
5476
|
-
DA:
|
|
5477
|
-
DA:180,
|
|
5478
|
-
DA:
|
|
5479
|
-
DA:189,
|
|
5480
|
-
DA:
|
|
5481
|
-
DA:196,
|
|
5481
|
+
DA:174,309
|
|
5482
|
+
DA:180,57
|
|
5483
|
+
DA:181,3
|
|
5484
|
+
DA:189,57
|
|
5485
|
+
DA:190,231
|
|
5486
|
+
DA:196,57
|
|
5482
5487
|
DA:197,3
|
|
5483
|
-
DA:198,
|
|
5484
|
-
DA:
|
|
5485
|
-
DA:
|
|
5486
|
-
DA:207,
|
|
5487
|
-
DA:
|
|
5488
|
-
DA:215,
|
|
5489
|
-
DA:
|
|
5490
|
-
DA:
|
|
5488
|
+
DA:198,3
|
|
5489
|
+
DA:199,1
|
|
5490
|
+
DA:201,2
|
|
5491
|
+
DA:207,57
|
|
5492
|
+
DA:208,261
|
|
5493
|
+
DA:215,57
|
|
5494
|
+
DA:216,27
|
|
5495
|
+
DA:230,57
|
|
5491
5496
|
DA:238,9
|
|
5492
5497
|
DA:239,9
|
|
5493
5498
|
DA:240,9
|
|
5494
|
-
DA:
|
|
5495
|
-
DA:247,
|
|
5496
|
-
DA:
|
|
5497
|
-
DA:255,
|
|
5498
|
-
DA:
|
|
5499
|
-
DA:262,
|
|
5500
|
-
DA:
|
|
5501
|
-
DA:270,
|
|
5502
|
-
DA:
|
|
5503
|
-
DA:277,
|
|
5504
|
-
DA:
|
|
5505
|
-
DA:285,
|
|
5506
|
-
DA:
|
|
5507
|
-
DA:292,
|
|
5508
|
-
DA:
|
|
5509
|
-
DA:300,
|
|
5510
|
-
DA:
|
|
5511
|
-
DA:309,
|
|
5512
|
-
DA:
|
|
5513
|
-
DA:317,
|
|
5514
|
-
DA:
|
|
5515
|
-
DA:326,
|
|
5516
|
-
DA:327,
|
|
5517
|
-
DA:
|
|
5518
|
-
DA:
|
|
5519
|
-
DA:342,
|
|
5520
|
-
DA:
|
|
5521
|
-
DA:346,
|
|
5522
|
-
DA:
|
|
5523
|
-
DA:350,
|
|
5499
|
+
DA:241,9
|
|
5500
|
+
DA:247,57
|
|
5501
|
+
DA:248,0
|
|
5502
|
+
DA:255,57
|
|
5503
|
+
DA:256,6
|
|
5504
|
+
DA:262,57
|
|
5505
|
+
DA:263,247
|
|
5506
|
+
DA:270,57
|
|
5507
|
+
DA:271,23
|
|
5508
|
+
DA:277,57
|
|
5509
|
+
DA:278,249
|
|
5510
|
+
DA:285,57
|
|
5511
|
+
DA:286,10
|
|
5512
|
+
DA:292,57
|
|
5513
|
+
DA:293,2
|
|
5514
|
+
DA:300,57
|
|
5515
|
+
DA:301,52
|
|
5516
|
+
DA:309,57
|
|
5517
|
+
DA:310,5
|
|
5518
|
+
DA:317,57
|
|
5519
|
+
DA:318,135
|
|
5520
|
+
DA:326,57
|
|
5521
|
+
DA:327,5
|
|
5522
|
+
DA:328,4
|
|
5523
|
+
DA:331,1
|
|
5524
|
+
DA:342,57
|
|
5525
|
+
DA:343,0
|
|
5526
|
+
DA:346,57
|
|
5527
|
+
DA:347,10
|
|
5528
|
+
DA:350,57
|
|
5524
5529
|
DA:351,0
|
|
5525
5530
|
DA:352,0
|
|
5526
|
-
DA:
|
|
5527
|
-
DA:
|
|
5528
|
-
DA:358,
|
|
5529
|
-
DA:
|
|
5530
|
-
DA:362,
|
|
5531
|
-
DA:
|
|
5532
|
-
DA:369,
|
|
5533
|
-
|
|
5534
|
-
|
|
5535
|
-
|
|
5536
|
-
BRDA:
|
|
5537
|
-
BRDA:108,
|
|
5538
|
-
BRDA:
|
|
5539
|
-
BRDA:
|
|
5540
|
-
BRDA:
|
|
5541
|
-
BRDA:
|
|
5542
|
-
BRDA:
|
|
5543
|
-
BRDA:
|
|
5544
|
-
BRDA:144,
|
|
5545
|
-
BRDA:
|
|
5546
|
-
BRDA:
|
|
5547
|
-
BRDA:
|
|
5548
|
-
BRDA:
|
|
5549
|
-
BRDA:172,
|
|
5550
|
-
BRDA:
|
|
5551
|
-
BRDA:
|
|
5552
|
-
BRDA:
|
|
5553
|
-
BRDA:
|
|
5554
|
-
BRDA:
|
|
5555
|
-
BRDA:
|
|
5556
|
-
BRDA:
|
|
5557
|
-
BRDA:
|
|
5558
|
-
BRDA:
|
|
5559
|
-
BRDA:
|
|
5560
|
-
BRDA:
|
|
5561
|
-
BRDA:
|
|
5562
|
-
BRDA:
|
|
5563
|
-
BRDA:
|
|
5564
|
-
BRDA:
|
|
5565
|
-
BRDA:
|
|
5566
|
-
BRDA:
|
|
5567
|
-
BRDA:
|
|
5568
|
-
BRDA:
|
|
5569
|
-
BRDA:
|
|
5570
|
-
BRDA:
|
|
5571
|
-
BRDA:
|
|
5572
|
-
BRDA:
|
|
5573
|
-
BRDA:
|
|
5574
|
-
BRDA:
|
|
5575
|
-
BRDA:
|
|
5576
|
-
BRDA:326,
|
|
5577
|
-
BRDA:
|
|
5578
|
-
BRDA:
|
|
5579
|
-
BRDA:
|
|
5580
|
-
BRDA:
|
|
5581
|
-
BRDA:
|
|
5582
|
-
BRDA:
|
|
5531
|
+
DA:353,0
|
|
5532
|
+
DA:355,0
|
|
5533
|
+
DA:358,57
|
|
5534
|
+
DA:359,1
|
|
5535
|
+
DA:362,57
|
|
5536
|
+
DA:363,0
|
|
5537
|
+
DA:369,57
|
|
5538
|
+
DA:370,60
|
|
5539
|
+
LF:107
|
|
5540
|
+
LH:98
|
|
5541
|
+
BRDA:108,0,0,0
|
|
5542
|
+
BRDA:108,1,0,0
|
|
5543
|
+
BRDA:109,2,0,1060
|
|
5544
|
+
BRDA:109,2,1,17
|
|
5545
|
+
BRDA:124,3,0,0
|
|
5546
|
+
BRDA:124,4,0,0
|
|
5547
|
+
BRDA:144,5,0,0
|
|
5548
|
+
BRDA:144,6,0,0
|
|
5549
|
+
BRDA:144,7,0,0
|
|
5550
|
+
BRDA:145,8,0,27
|
|
5551
|
+
BRDA:145,8,1,14
|
|
5552
|
+
BRDA:149,9,0,14
|
|
5553
|
+
BRDA:149,9,1,0
|
|
5554
|
+
BRDA:172,10,0,78
|
|
5555
|
+
BRDA:173,11,0,309
|
|
5556
|
+
BRDA:173,11,1,78
|
|
5557
|
+
BRDA:180,12,0,0
|
|
5558
|
+
BRDA:180,13,0,0
|
|
5559
|
+
BRDA:198,14,0,1
|
|
5560
|
+
BRDA:198,14,1,2
|
|
5561
|
+
BRDA:198,15,0,3
|
|
5562
|
+
BRDA:198,15,1,3
|
|
5563
|
+
BRDA:207,16,0,0
|
|
5564
|
+
BRDA:207,17,0,0
|
|
5565
|
+
BRDA:247,18,0,0
|
|
5566
|
+
BRDA:256,19,0,6
|
|
5567
|
+
BRDA:256,19,1,6
|
|
5568
|
+
BRDA:262,20,0,0
|
|
5569
|
+
BRDA:262,21,0,0
|
|
5570
|
+
BRDA:277,22,0,0
|
|
5571
|
+
BRDA:277,23,0,0
|
|
5572
|
+
BRDA:292,24,0,0
|
|
5573
|
+
BRDA:292,25,0,0
|
|
5574
|
+
BRDA:300,26,0,0
|
|
5575
|
+
BRDA:300,27,0,52
|
|
5576
|
+
BRDA:302,28,0,0
|
|
5577
|
+
BRDA:302,28,1,52
|
|
5578
|
+
BRDA:309,29,0,0
|
|
5579
|
+
BRDA:309,30,0,0
|
|
5580
|
+
BRDA:326,31,0,0
|
|
5581
|
+
BRDA:326,32,0,0
|
|
5582
|
+
BRDA:327,33,0,4
|
|
5583
|
+
BRDA:327,33,1,1
|
|
5584
|
+
BRDA:350,34,0,0
|
|
5585
|
+
BRDA:350,35,0,0
|
|
5586
|
+
BRDA:352,36,0,0
|
|
5587
|
+
BRDA:352,36,1,0
|
|
5588
|
+
BRDA:362,37,0,0
|
|
5583
5589
|
BRF:48
|
|
5584
5590
|
BRH:18
|
|
5585
5591
|
end_of_record
|
|
@@ -13,11 +13,12 @@ const { events, context } = require("@budibase/backend-core");
|
|
|
13
13
|
const { DocumentTypes } = require("../../db/utils");
|
|
14
14
|
exports.exportAppDump = function (ctx) {
|
|
15
15
|
return __awaiter(this, void 0, void 0, function* () {
|
|
16
|
-
|
|
16
|
+
let { appId, excludeRows } = ctx.query;
|
|
17
17
|
const appName = decodeURI(ctx.query.appname);
|
|
18
|
+
excludeRows = excludeRows === "true";
|
|
18
19
|
const backupIdentifier = `${appName}-export-${new Date().getTime()}.txt`;
|
|
19
20
|
ctx.attachment(backupIdentifier);
|
|
20
|
-
ctx.body = yield streamBackup(appId);
|
|
21
|
+
ctx.body = yield streamBackup(appId, excludeRows);
|
|
21
22
|
yield context.doInAppContext(appId, () => __awaiter(this, void 0, void 0, function* () {
|
|
22
23
|
const appDb = context.getAppDB();
|
|
23
24
|
const app = yield appDb.get(DocumentTypes.APP_METADATA);
|
|
@@ -155,19 +155,17 @@ exports.validate = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
|
155
155
|
return { valid: true };
|
|
156
156
|
});
|
|
157
157
|
exports.exportRows = (ctx) => __awaiter(void 0, void 0, void 0, function* () {
|
|
158
|
-
const { datasourceId
|
|
158
|
+
const { datasourceId } = breakExternalTableId(ctx.params.tableId);
|
|
159
159
|
const db = getAppDB();
|
|
160
160
|
let format = ctx.query.format;
|
|
161
161
|
const datasource = yield db.get(datasourceId);
|
|
162
162
|
if (!datasource || !datasource.entities) {
|
|
163
163
|
ctx.throw(400, "Datasource has not been configured for plus API.");
|
|
164
164
|
}
|
|
165
|
-
const tables = datasource.entities;
|
|
166
|
-
const table = tables[tableName];
|
|
167
165
|
ctx.request.body = {
|
|
168
166
|
query: {
|
|
169
167
|
oneOf: {
|
|
170
|
-
|
|
168
|
+
_id: ctx.request.body.rows.map(row => JSON.parse(decodeURI(row))[0]),
|
|
171
169
|
},
|
|
172
170
|
},
|
|
173
171
|
};
|
|
@@ -70,6 +70,9 @@ exports.validate = ({ tableId, row, table }) => __awaiter(void 0, void 0, void 0
|
|
|
70
70
|
// Validate.js doesn't seem to handle array
|
|
71
71
|
if (type === FieldTypes.ARRAY && row[fieldName]) {
|
|
72
72
|
if (row[fieldName].length) {
|
|
73
|
+
if (!Array.isArray(row[fieldName])) {
|
|
74
|
+
row[fieldName] = row[fieldName].split(",");
|
|
75
|
+
}
|
|
73
76
|
row[fieldName].map(val => {
|
|
74
77
|
if (!constraints.inclusion.includes(val) &&
|
|
75
78
|
constraints.inclusion.length !== 0) {
|
|
@@ -22,7 +22,6 @@ const { attachmentsRelativeURL } = require("../../../utilities");
|
|
|
22
22
|
const { DocumentTypes, isDevAppID } = require("../../../db/utils");
|
|
23
23
|
const { getAppDB, getAppId } = require("@budibase/backend-core/context");
|
|
24
24
|
const AWS = require("aws-sdk");
|
|
25
|
-
const AWS_REGION = env.AWS_REGION ? env.AWS_REGION : "eu-west-1";
|
|
26
25
|
const { events } = require("@budibase/backend-core");
|
|
27
26
|
function prepareUpload({ s3Key, bucket, metadata, file }) {
|
|
28
27
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -111,7 +110,7 @@ exports.serveClientLibrary = function (ctx) {
|
|
|
111
110
|
});
|
|
112
111
|
};
|
|
113
112
|
exports.getSignedUploadURL = function (ctx) {
|
|
114
|
-
var _a, _b, _c;
|
|
113
|
+
var _a, _b, _c, _d;
|
|
115
114
|
return __awaiter(this, void 0, void 0, function* () {
|
|
116
115
|
const database = getAppDB();
|
|
117
116
|
// Ensure datasource is valid
|
|
@@ -133,6 +132,7 @@ exports.getSignedUploadURL = function (ctx) {
|
|
|
133
132
|
// Determine type of datasource and generate signed URL
|
|
134
133
|
let signedUrl;
|
|
135
134
|
let publicUrl;
|
|
135
|
+
const awsRegion = ((_b = datasource === null || datasource === void 0 ? void 0 : datasource.config) === null || _b === void 0 ? void 0 : _b.region) || "eu-west-1";
|
|
136
136
|
if (datasource.source === "S3") {
|
|
137
137
|
const { bucket, key } = ctx.request.body || {};
|
|
138
138
|
if (!bucket || !key) {
|
|
@@ -141,15 +141,15 @@ exports.getSignedUploadURL = function (ctx) {
|
|
|
141
141
|
}
|
|
142
142
|
try {
|
|
143
143
|
const s3 = new AWS.S3({
|
|
144
|
-
region:
|
|
145
|
-
accessKeyId: (
|
|
146
|
-
secretAccessKey: (
|
|
144
|
+
region: awsRegion,
|
|
145
|
+
accessKeyId: (_c = datasource === null || datasource === void 0 ? void 0 : datasource.config) === null || _c === void 0 ? void 0 : _c.accessKeyId,
|
|
146
|
+
secretAccessKey: (_d = datasource === null || datasource === void 0 ? void 0 : datasource.config) === null || _d === void 0 ? void 0 : _d.secretAccessKey,
|
|
147
147
|
apiVersion: "2006-03-01",
|
|
148
148
|
signatureVersion: "v4",
|
|
149
149
|
});
|
|
150
150
|
const params = { Bucket: bucket, Key: key };
|
|
151
151
|
signedUrl = s3.getSignedUrl("putObject", params);
|
|
152
|
-
publicUrl = `https://${bucket}.s3.${
|
|
152
|
+
publicUrl = `https://${bucket}.s3.${awsRegion}.amazonaws.com/${key}`;
|
|
153
153
|
}
|
|
154
154
|
catch (error) {
|
|
155
155
|
ctx.throw(400, error);
|
|
@@ -95,7 +95,7 @@ exports.externalTrigger = function (automation, params, { getResponses } = {}) {
|
|
|
95
95
|
// values are likely to be submitted as strings, so we shall convert to correct type
|
|
96
96
|
const coercedFields = {};
|
|
97
97
|
const fields = automation.definition.trigger.inputs.fields;
|
|
98
|
-
for (let key of Object.keys(fields)) {
|
|
98
|
+
for (let key of Object.keys(fields || {})) {
|
|
99
99
|
coercedFields[key] = coerce(params.fields[key], fields[key]);
|
|
100
100
|
}
|
|
101
101
|
params.fields = coercedFields;
|
package/dist/db/utils.js
CHANGED
|
@@ -54,6 +54,7 @@ exports.isDevAppID = isDevAppID;
|
|
|
54
54
|
exports.isProdAppID = isProdAppID;
|
|
55
55
|
exports.USER_METDATA_PREFIX = `${DocumentTypes.ROW}${SEPARATOR}${InternalTables.USER_METADATA}${SEPARATOR}`;
|
|
56
56
|
exports.LINK_USER_METADATA_PREFIX = `${DocumentTypes.LINK}${SEPARATOR}${InternalTables.USER_METADATA}${SEPARATOR}`;
|
|
57
|
+
exports.TABLE_ROW_PREFIX = `${DocumentTypes.ROW}${SEPARATOR}${DocumentTypes.TABLE}`;
|
|
57
58
|
exports.ViewNames = ViewNames;
|
|
58
59
|
exports.InternalTables = InternalTables;
|
|
59
60
|
exports.DocumentTypes = DocumentTypes;
|
|
@@ -52,6 +52,7 @@ var SourceNames;
|
|
|
52
52
|
SourceNames["GOOGLE_SHEETS"] = "GOOGLE_SHEETS";
|
|
53
53
|
SourceNames["FIRESTORE"] = "FIRESTORE";
|
|
54
54
|
SourceNames["REDIS"] = "REDIS";
|
|
55
|
+
SourceNames["SNOWFLAKE"] = "SNOWFLAKE";
|
|
55
56
|
})(SourceNames = exports.SourceNames || (exports.SourceNames = {}));
|
|
56
57
|
var IncludeRelationships;
|
|
57
58
|
(function (IncludeRelationships) {
|