@budibase/server 1.0.207-alpha.9 → 1.0.209

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (198) hide show
  1. package/builder/assets/index.24307ca0.css +6 -0
  2. package/builder/assets/index.d3ea58e7.js +1315 -0
  3. package/builder/index.html +2 -2
  4. package/coverage/clover.xml +122 -132
  5. package/coverage/coverage-final.json +5 -5
  6. package/coverage/lcov-report/api/controllers/apikeys.js.html +1 -1
  7. package/coverage/lcov-report/api/controllers/auth.js.html +1 -1
  8. package/coverage/lcov-report/api/controllers/automation.js.html +1 -1
  9. package/coverage/lcov-report/api/controllers/backup.js.html +6 -9
  10. package/coverage/lcov-report/api/controllers/cloud.js.html +1 -1
  11. package/coverage/lcov-report/api/controllers/component.js.html +1 -1
  12. package/coverage/lcov-report/api/controllers/datasource.js.html +1 -1
  13. package/coverage/lcov-report/api/controllers/dev.js.html +1 -1
  14. package/coverage/lcov-report/api/controllers/index.html +7 -7
  15. package/coverage/lcov-report/api/controllers/integration.js.html +1 -1
  16. package/coverage/lcov-report/api/controllers/layout.js.html +1 -1
  17. package/coverage/lcov-report/api/controllers/metadata.js.html +1 -1
  18. package/coverage/lcov-report/api/controllers/migrations.js.html +1 -1
  19. package/coverage/lcov-report/api/controllers/permission.js.html +1 -1
  20. package/coverage/lcov-report/api/controllers/query/index.html +1 -1
  21. package/coverage/lcov-report/api/controllers/query/validation.js.html +1 -1
  22. package/coverage/lcov-report/api/controllers/role.js.html +1 -1
  23. package/coverage/lcov-report/api/controllers/routing.js.html +1 -1
  24. package/coverage/lcov-report/api/controllers/row/external.js.html +17 -47
  25. package/coverage/lcov-report/api/controllers/row/index.html +22 -22
  26. package/coverage/lcov-report/api/controllers/row/internal.js.html +1 -1
  27. package/coverage/lcov-report/api/controllers/row/internalSearch.js.html +2 -2
  28. package/coverage/lcov-report/api/controllers/row/staticFormula.js.html +1 -1
  29. package/coverage/lcov-report/api/controllers/row/utils.js.html +8 -17
  30. package/coverage/lcov-report/api/controllers/screen.js.html +1 -1
  31. package/coverage/lcov-report/api/controllers/script.js.html +1 -1
  32. package/coverage/lcov-report/api/controllers/table/bulkFormula.js.html +1 -1
  33. package/coverage/lcov-report/api/controllers/table/external.js.html +1 -1
  34. package/coverage/lcov-report/api/controllers/table/index.html +1 -1
  35. package/coverage/lcov-report/api/controllers/table/index.js.html +1 -1
  36. package/coverage/lcov-report/api/controllers/templates.js.html +1 -1
  37. package/coverage/lcov-report/api/controllers/user.js.html +1 -1
  38. package/coverage/lcov-report/api/controllers/view/exporters.js.html +1 -1
  39. package/coverage/lcov-report/api/controllers/view/index.html +1 -1
  40. package/coverage/lcov-report/api/controllers/view/index.js.html +1 -1
  41. package/coverage/lcov-report/api/controllers/view/utils.js.html +1 -1
  42. package/coverage/lcov-report/api/controllers/view/viewBuilder.js.html +1 -1
  43. package/coverage/lcov-report/api/controllers/webhook.js.html +1 -1
  44. package/coverage/lcov-report/api/index.html +1 -1
  45. package/coverage/lcov-report/api/index.js.html +1 -1
  46. package/coverage/lcov-report/api/routes/analytics.js.html +1 -1
  47. package/coverage/lcov-report/api/routes/apikeys.js.html +1 -1
  48. package/coverage/lcov-report/api/routes/auth.js.html +1 -1
  49. package/coverage/lcov-report/api/routes/automation.js.html +1 -1
  50. package/coverage/lcov-report/api/routes/backup.js.html +1 -1
  51. package/coverage/lcov-report/api/routes/cloud.js.html +1 -1
  52. package/coverage/lcov-report/api/routes/component.js.html +1 -1
  53. package/coverage/lcov-report/api/routes/datasource.js.html +1 -1
  54. package/coverage/lcov-report/api/routes/deploy.js.html +1 -1
  55. package/coverage/lcov-report/api/routes/dev.js.html +1 -1
  56. package/coverage/lcov-report/api/routes/index.html +1 -1
  57. package/coverage/lcov-report/api/routes/integration.js.html +1 -1
  58. package/coverage/lcov-report/api/routes/layout.js.html +1 -1
  59. package/coverage/lcov-report/api/routes/metadata.js.html +1 -1
  60. package/coverage/lcov-report/api/routes/migrations.js.html +1 -1
  61. package/coverage/lcov-report/api/routes/permission.js.html +1 -1
  62. package/coverage/lcov-report/api/routes/query.js.html +1 -1
  63. package/coverage/lcov-report/api/routes/role.js.html +1 -1
  64. package/coverage/lcov-report/api/routes/routing.js.html +1 -1
  65. package/coverage/lcov-report/api/routes/screen.js.html +1 -1
  66. package/coverage/lcov-report/api/routes/script.js.html +1 -1
  67. package/coverage/lcov-report/api/routes/table.js.html +1 -1
  68. package/coverage/lcov-report/api/routes/templates.js.html +1 -1
  69. package/coverage/lcov-report/api/routes/user.js.html +1 -1
  70. package/coverage/lcov-report/api/routes/utils/index.html +1 -1
  71. package/coverage/lcov-report/api/routes/utils/validators.js.html +1 -1
  72. package/coverage/lcov-report/api/routes/view.js.html +1 -1
  73. package/coverage/lcov-report/api/routes/webhook.js.html +1 -1
  74. package/coverage/lcov-report/automations/actions.js.html +1 -1
  75. package/coverage/lcov-report/automations/automationUtils.js.html +1 -1
  76. package/coverage/lcov-report/automations/bullboard.js.html +1 -1
  77. package/coverage/lcov-report/automations/index.html +5 -5
  78. package/coverage/lcov-report/automations/index.js.html +1 -1
  79. package/coverage/lcov-report/automations/steps/bash.js.html +1 -1
  80. package/coverage/lcov-report/automations/steps/delay.js.html +1 -1
  81. package/coverage/lcov-report/automations/steps/discord.js.html +1 -1
  82. package/coverage/lcov-report/automations/steps/executeQuery.js.html +1 -1
  83. package/coverage/lcov-report/automations/steps/executeScript.js.html +1 -1
  84. package/coverage/lcov-report/automations/steps/filter.js.html +1 -1
  85. package/coverage/lcov-report/automations/steps/index.html +1 -1
  86. package/coverage/lcov-report/automations/steps/integromat.js.html +1 -1
  87. package/coverage/lcov-report/automations/steps/loop.js.html +1 -1
  88. package/coverage/lcov-report/automations/steps/outgoingWebhook.js.html +1 -1
  89. package/coverage/lcov-report/automations/steps/queryRows.js.html +1 -1
  90. package/coverage/lcov-report/automations/steps/sendSmtpEmail.js.html +1 -1
  91. package/coverage/lcov-report/automations/steps/serverLog.js.html +1 -1
  92. package/coverage/lcov-report/automations/steps/slack.js.html +1 -1
  93. package/coverage/lcov-report/automations/steps/updateRow.js.html +1 -1
  94. package/coverage/lcov-report/automations/steps/utils.js.html +1 -1
  95. package/coverage/lcov-report/automations/steps/zapier.js.html +1 -1
  96. package/coverage/lcov-report/automations/triggerInfo/app.js.html +1 -1
  97. package/coverage/lcov-report/automations/triggerInfo/cron.js.html +1 -1
  98. package/coverage/lcov-report/automations/triggerInfo/index.html +1 -1
  99. package/coverage/lcov-report/automations/triggerInfo/index.js.html +1 -1
  100. package/coverage/lcov-report/automations/triggerInfo/rowDeleted.js.html +1 -1
  101. package/coverage/lcov-report/automations/triggerInfo/rowSaved.js.html +1 -1
  102. package/coverage/lcov-report/automations/triggerInfo/rowUpdated.js.html +1 -1
  103. package/coverage/lcov-report/automations/triggerInfo/webhook.js.html +1 -1
  104. package/coverage/lcov-report/automations/triggers.js.html +4 -4
  105. package/coverage/lcov-report/constants/index.html +1 -1
  106. package/coverage/lcov-report/constants/index.js.html +1 -1
  107. package/coverage/lcov-report/constants/layouts.js.html +1 -1
  108. package/coverage/lcov-report/constants/screens.js.html +1 -1
  109. package/coverage/lcov-report/db/inMemoryView.js.html +1 -1
  110. package/coverage/lcov-report/db/index.html +10 -10
  111. package/coverage/lcov-report/db/index.js.html +1 -1
  112. package/coverage/lcov-report/db/linkedRows/LinkController.js.html +1 -1
  113. package/coverage/lcov-report/db/linkedRows/index.html +1 -1
  114. package/coverage/lcov-report/db/linkedRows/index.js.html +1 -1
  115. package/coverage/lcov-report/db/linkedRows/linkUtils.js.html +1 -1
  116. package/coverage/lcov-report/db/newid.js.html +1 -1
  117. package/coverage/lcov-report/db/utils.js.html +6 -9
  118. package/coverage/lcov-report/events/AutomationEmitter.js.html +1 -1
  119. package/coverage/lcov-report/events/index.html +1 -1
  120. package/coverage/lcov-report/events/index.js.html +1 -1
  121. package/coverage/lcov-report/events/utils.js.html +1 -1
  122. package/coverage/lcov-report/index.html +27 -27
  123. package/coverage/lcov-report/integrations/tests/TestConfiguration.js.html +1 -1
  124. package/coverage/lcov-report/integrations/tests/index.html +1 -1
  125. package/coverage/lcov-report/middleware/appInfo.js.html +1 -1
  126. package/coverage/lcov-report/middleware/builder.js.html +1 -1
  127. package/coverage/lcov-report/middleware/currentapp.js.html +1 -1
  128. package/coverage/lcov-report/middleware/index.html +1 -1
  129. package/coverage/lcov-report/middleware/joi-validator.js.html +1 -1
  130. package/coverage/lcov-report/middleware/publicApi.js.html +1 -1
  131. package/coverage/lcov-report/middleware/resourceId.js.html +1 -1
  132. package/coverage/lcov-report/middleware/selfhost.js.html +1 -1
  133. package/coverage/lcov-report/middleware/utils.js.html +1 -1
  134. package/coverage/lcov-report/threads/automation.js.html +1 -1
  135. package/coverage/lcov-report/threads/index.html +1 -1
  136. package/coverage/lcov-report/threads/query.js.html +1 -1
  137. package/coverage/lcov-report/threads/utils.js.html +1 -1
  138. package/coverage/lcov-report/utilities/budibaseDir.js.html +1 -1
  139. package/coverage/lcov-report/utilities/centralPath.js.html +1 -1
  140. package/coverage/lcov-report/utilities/csvParser.js.html +1 -1
  141. package/coverage/lcov-report/utilities/global.js.html +1 -1
  142. package/coverage/lcov-report/utilities/index.html +1 -1
  143. package/coverage/lcov-report/utilities/index.js.html +1 -1
  144. package/coverage/lcov-report/utilities/queue/inMemoryQueue.js.html +1 -1
  145. package/coverage/lcov-report/utilities/queue/index.html +1 -1
  146. package/coverage/lcov-report/utilities/routing/index.html +1 -1
  147. package/coverage/lcov-report/utilities/routing/index.js.html +1 -1
  148. package/coverage/lcov-report/utilities/rowProcessor/index.html +1 -1
  149. package/coverage/lcov-report/utilities/rowProcessor/index.js.html +1 -1
  150. package/coverage/lcov-report/utilities/rowProcessor/utils.js.html +1 -1
  151. package/coverage/lcov-report/utilities/scriptRunner.js.html +1 -1
  152. package/coverage/lcov-report/utilities/security.js.html +1 -1
  153. package/coverage/lcov-report/utilities/statusCodes.js.html +1 -1
  154. package/coverage/lcov-report/utilities/usageQuota/index.html +1 -1
  155. package/coverage/lcov-report/utilities/usageQuota/rows.js.html +1 -1
  156. package/coverage/lcov-report/utilities/usageQuota/usageQuoteReset.js.html +1 -1
  157. package/coverage/lcov-report/utilities/users.js.html +1 -1
  158. package/coverage/lcov-report/utilities/workerRequests.js.html +1 -1
  159. package/coverage/lcov.info +220 -238
  160. package/dist/api/controllers/backup.js +2 -3
  161. package/dist/api/controllers/row/external.js +7 -19
  162. package/dist/api/controllers/row/internalSearch.js +1 -1
  163. package/dist/api/controllers/row/utils.js +0 -3
  164. package/dist/automations/triggers.js +1 -1
  165. package/dist/db/utils.js +0 -1
  166. package/dist/definitions/datasource.js +0 -1
  167. package/dist/integrations/base/sql.js +3 -20
  168. package/dist/integrations/index.js +0 -4
  169. package/dist/integrations/microsoftSqlServer.js +1 -1
  170. package/dist/integrations/mongodb.js +6 -0
  171. package/dist/integrations/mysql.js +1 -1
  172. package/dist/integrations/postgres.js +1 -1
  173. package/dist/package.json +6 -8
  174. package/dist/tsconfig.build.tsbuildinfo +1 -1
  175. package/dist/utilities/fileSystem/index.js +6 -16
  176. package/package.json +7 -9
  177. package/src/api/controllers/backup.js +2 -3
  178. package/src/api/controllers/row/external.js +9 -19
  179. package/src/api/controllers/row/internalSearch.js +1 -1
  180. package/src/api/controllers/row/utils.js +0 -3
  181. package/src/automations/triggers.js +1 -1
  182. package/src/db/utils.js +0 -1
  183. package/src/definitions/common.ts +0 -1
  184. package/src/definitions/datasource.ts +0 -1
  185. package/src/integrations/base/sql.ts +11 -25
  186. package/src/integrations/index.ts +0 -4
  187. package/src/integrations/microsoftSqlServer.ts +0 -1
  188. package/src/integrations/mongodb.ts +6 -0
  189. package/src/integrations/mysql.ts +0 -1
  190. package/src/integrations/postgres.ts +0 -1
  191. package/src/utilities/fileSystem/index.js +8 -22
  192. package/builder/assets/index.650b000d.js +0 -1312
  193. package/builder/assets/index.937e02c1.css +0 -6
  194. package/dist/integrations/snowflake.js +0 -101
  195. package/scripts/integrations/oracle/instantclient/linux/arm64/basiclite-19.10.zip +0 -0
  196. package/scripts/integrations/oracle/instantclient/linux/arm64/install.sh +0 -23
  197. package/scripts/integrations/oracle/instantclient/linux/install.sh +0 -10
  198. package/src/integrations/snowflake.ts +0 -98
@@ -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:13,(anonymous_1)
350
+ FN:12,(anonymous_1)
351
351
  FNF:2
352
352
  FNH:2
353
353
  FNDA:1,(anonymous_0)
@@ -361,13 +361,12 @@ DA:7,1
361
361
  DA:8,1
362
362
  DA:9,1
363
363
  DA:10,1
364
- DA:11,1
364
+ DA:12,1
365
365
  DA:13,1
366
366
  DA:14,1
367
367
  DA:15,1
368
- DA:16,1
369
- LF:14
370
- LH:14
368
+ LF:13
369
+ LH:13
371
370
  BRF:0
372
371
  BRH:0
373
372
  end_of_record
@@ -1774,9 +1773,9 @@ FN:98,(anonymous_8)
1774
1773
  FN:101,(anonymous_9)
1775
1774
  FN:152,(anonymous_10)
1776
1775
  FN:157,(anonymous_11)
1777
- FN:169,(anonymous_12)
1778
- FN:198,(anonymous_13)
1779
- FN:228,(anonymous_14)
1776
+ FN:171,(anonymous_12)
1777
+ FN:188,(anonymous_13)
1778
+ FN:218,(anonymous_14)
1780
1779
  FNF:15
1781
1780
  FNH:0
1782
1781
  FNDA:0,handleRequest
@@ -1873,44 +1872,38 @@ DA:160,0
1873
1872
  DA:161,0
1874
1873
  DA:162,0
1875
1874
  DA:163,0
1876
- DA:164,0
1875
+ DA:165,0
1877
1876
  DA:166,0
1878
- DA:169,0
1879
- DA:174,0
1880
- DA:175,0
1881
- DA:178,0
1877
+ DA:167,0
1878
+ DA:171,0
1879
+ DA:177,0
1882
1880
  DA:179,0
1883
1881
  DA:180,0
1884
1882
  DA:181,0
1885
- DA:182,0
1886
- DA:186,0
1883
+ DA:184,0
1884
+ DA:185,0
1885
+ DA:188,44
1887
1886
  DA:189,0
1888
1887
  DA:190,0
1889
1888
  DA:191,0
1889
+ DA:192,0
1890
+ DA:193,0
1890
1891
  DA:194,0
1891
1892
  DA:195,0
1892
- DA:198,44
1893
- DA:199,0
1894
- DA:200,0
1895
- DA:201,0
1893
+ DA:197,0
1894
+ DA:198,0
1896
1895
  DA:202,0
1897
1896
  DA:203,0
1898
- DA:204,0
1899
- DA:205,0
1897
+ DA:206,0
1900
1898
  DA:207,0
1901
- DA:208,0
1902
1899
  DA:212,0
1903
- DA:213,0
1900
+ DA:214,0
1901
+ DA:215,0
1904
1902
  DA:216,0
1905
- DA:217,0
1906
- DA:222,0
1907
- DA:224,0
1908
- DA:225,0
1909
- DA:226,0
1910
- DA:228,0
1911
- DA:229,0
1912
- DA:242,0
1913
- LF:116
1903
+ DA:218,0
1904
+ DA:219,0
1905
+ DA:232,0
1906
+ LF:110
1914
1907
  LH:18
1915
1908
  BRDA:16,0,0,0
1916
1909
  BRDA:18,1,0,0
@@ -1945,24 +1938,20 @@ BRDA:137,15,0,0
1945
1938
  BRDA:137,15,1,0
1946
1939
  BRDA:137,16,0,0
1947
1940
  BRDA:137,16,1,0
1948
- BRDA:163,17,0,0
1949
- BRDA:163,17,1,0
1950
- BRDA:163,18,0,0
1951
- BRDA:163,18,1,0
1952
- BRDA:178,19,0,0
1953
- BRDA:178,19,1,0
1954
- BRDA:178,20,0,0
1955
- BRDA:178,20,1,0
1956
- BRDA:204,21,0,0
1957
- BRDA:204,21,1,0
1958
- BRDA:204,22,0,0
1959
- BRDA:204,22,1,0
1960
- BRDA:217,23,0,0
1961
- BRDA:217,23,1,0
1962
- BRDA:218,24,0,0
1963
- BRDA:218,24,1,0
1964
- BRDA:218,24,2,0
1965
- BRF:50
1941
+ BRDA:162,17,0,0
1942
+ BRDA:162,17,1,0
1943
+ BRDA:162,18,0,0
1944
+ BRDA:162,18,1,0
1945
+ BRDA:194,19,0,0
1946
+ BRDA:194,19,1,0
1947
+ BRDA:194,20,0,0
1948
+ BRDA:194,20,1,0
1949
+ BRDA:207,21,0,0
1950
+ BRDA:207,21,1,0
1951
+ BRDA:208,22,0,0
1952
+ BRDA:208,22,1,0
1953
+ BRDA:208,22,2,0
1954
+ BRF:46
1966
1955
  BRH:0
1967
1956
  end_of_record
1968
1957
  TN:
@@ -2748,7 +2737,7 @@ FN:14,(anonymous_1)
2748
2737
  FN:19,(anonymous_2)
2749
2738
  FN:26,(anonymous_3)
2750
2739
  FN:45,(anonymous_4)
2751
- FN:70,(anonymous_5)
2740
+ FN:67,(anonymous_5)
2752
2741
  FNF:6
2753
2742
  FNH:4
2754
2743
  FNDA:2,(anonymous_0)
@@ -2798,19 +2787,17 @@ DA:65,224
2798
2787
  DA:66,0
2799
2788
  DA:67,0
2800
2789
  DA:68,0
2801
- DA:70,0
2802
- DA:71,0
2790
+ DA:72,0
2803
2791
  DA:75,0
2804
- DA:78,0
2805
- DA:80,0
2806
- DA:82,224
2792
+ DA:77,0
2793
+ DA:79,224
2794
+ DA:81,0
2795
+ DA:82,0
2807
2796
  DA:84,0
2808
- DA:85,0
2809
- DA:87,0
2810
- DA:90,224
2811
- DA:92,224
2812
- DA:94,83
2813
- LF:53
2797
+ DA:87,224
2798
+ DA:89,224
2799
+ DA:91,83
2800
+ LF:51
2814
2801
  LH:35
2815
2802
  BRDA:30,0,0,0
2816
2803
  BRDA:30,0,1,26
@@ -2830,23 +2817,21 @@ BRDA:65,7,0,224
2830
2817
  BRDA:65,7,1,0
2831
2818
  BRDA:66,8,0,0
2832
2819
  BRDA:66,8,1,0
2833
- BRDA:67,9,0,0
2834
- BRDA:67,9,1,0
2835
- BRDA:71,10,0,0
2836
- BRDA:71,10,1,0
2837
- BRDA:72,11,0,0
2838
- BRDA:72,11,1,0
2839
- BRDA:78,12,0,0
2840
- BRDA:78,12,1,0
2841
- BRDA:78,13,0,0
2842
- BRDA:78,13,1,0
2843
- BRDA:82,14,0,0
2844
- BRDA:82,14,1,224
2845
- BRDA:82,15,0,224
2846
- BRDA:82,15,1,0
2847
- BRDA:92,16,0,2
2848
- BRDA:92,16,1,222
2849
- BRF:34
2820
+ BRDA:68,9,0,0
2821
+ BRDA:68,9,1,0
2822
+ BRDA:69,10,0,0
2823
+ BRDA:69,10,1,0
2824
+ BRDA:75,11,0,0
2825
+ BRDA:75,11,1,0
2826
+ BRDA:75,12,0,0
2827
+ BRDA:75,12,1,0
2828
+ BRDA:79,13,0,0
2829
+ BRDA:79,13,1,224
2830
+ BRDA:79,14,0,224
2831
+ BRDA:79,14,1,0
2832
+ BRDA:89,15,0,2
2833
+ BRDA:89,15,1,222
2834
+ BRF:32
2850
2835
  BRH:13
2851
2836
  end_of_record
2852
2837
  TN:
@@ -4668,12 +4653,10 @@ BRDA:91,9,1,6
4668
4653
  BRDA:91,9,2,6
4669
4654
  BRDA:91,9,3,1
4670
4655
  BRDA:91,9,4,1
4671
- BRDA:100,10,0,1
4672
- BRDA:100,10,1,0
4673
- BRDA:106,11,0,2
4674
- BRDA:106,11,1,4
4675
- BRF:27
4676
- BRH:22
4656
+ BRDA:106,10,0,2
4657
+ BRDA:106,10,1,4
4658
+ BRF:25
4659
+ BRH:21
4677
4660
  end_of_record
4678
4661
  TN:
4679
4662
  SF:src/automations/steps/bash.js
@@ -5379,36 +5362,36 @@ BRH:0
5379
5362
  end_of_record
5380
5363
  TN:
5381
5364
  SF:src/db/utils.js
5382
- FN:92,(anonymous_0)
5383
- FN:108,getDocParams
5384
- FN:124,(anonymous_2)
5385
- FN:132,(anonymous_3)
5386
- FN:144,(anonymous_4)
5387
- FN:159,(anonymous_5)
5388
- FN:172,(anonymous_6)
5389
- FN:180,(anonymous_7)
5390
- FN:189,(anonymous_8)
5391
- FN:196,(anonymous_9)
5392
- FN:207,(anonymous_10)
5393
- FN:215,(anonymous_11)
5394
- FN:230,(anonymous_12)
5395
- FN:247,(anonymous_13)
5396
- FN:255,(anonymous_14)
5397
- FN:262,(anonymous_15)
5398
- FN:270,(anonymous_16)
5399
- FN:277,(anonymous_17)
5400
- FN:285,(anonymous_18)
5401
- FN:292,(anonymous_19)
5402
- FN:300,(anonymous_20)
5403
- FN:309,(anonymous_21)
5404
- FN:317,(anonymous_22)
5405
- FN:326,(anonymous_23)
5406
- FN:342,(anonymous_24)
5407
- FN:346,(anonymous_25)
5408
- FN:350,(anonymous_26)
5409
- FN:358,(anonymous_27)
5410
- FN:362,(anonymous_28)
5411
- FN:369,(anonymous_29)
5365
+ FN:91,(anonymous_0)
5366
+ FN:107,getDocParams
5367
+ FN:123,(anonymous_2)
5368
+ FN:131,(anonymous_3)
5369
+ FN:143,(anonymous_4)
5370
+ FN:158,(anonymous_5)
5371
+ FN:171,(anonymous_6)
5372
+ FN:179,(anonymous_7)
5373
+ FN:188,(anonymous_8)
5374
+ FN:195,(anonymous_9)
5375
+ FN:206,(anonymous_10)
5376
+ FN:214,(anonymous_11)
5377
+ FN:229,(anonymous_12)
5378
+ FN:246,(anonymous_13)
5379
+ FN:254,(anonymous_14)
5380
+ FN:261,(anonymous_15)
5381
+ FN:269,(anonymous_16)
5382
+ FN:276,(anonymous_17)
5383
+ FN:284,(anonymous_18)
5384
+ FN:291,(anonymous_19)
5385
+ FN:299,(anonymous_20)
5386
+ FN:308,(anonymous_21)
5387
+ FN:316,(anonymous_22)
5388
+ FN:325,(anonymous_23)
5389
+ FN:341,(anonymous_24)
5390
+ FN:345,(anonymous_25)
5391
+ FN:349,(anonymous_26)
5392
+ FN:357,(anonymous_27)
5393
+ FN:361,(anonymous_28)
5394
+ FN:368,(anonymous_29)
5412
5395
  FNF:30
5413
5396
  FNH:25
5414
5397
  FNDA:74,(anonymous_0)
@@ -5467,137 +5450,136 @@ DA:83,57
5467
5450
  DA:84,57
5468
5451
  DA:85,57
5469
5452
  DA:86,57
5470
- DA:87,57
5453
+ DA:88,57
5471
5454
  DA:89,57
5472
- DA:90,57
5473
- DA:92,57
5474
- DA:93,74
5475
- DA:109,1077
5476
- DA:110,1060
5477
- DA:112,1077
5478
- DA:119,57
5479
- DA:124,57
5480
- DA:125,267
5481
- DA:132,57
5482
- DA:133,128
5483
- DA:144,57
5484
- DA:145,41
5485
- DA:146,27
5486
- DA:149,14
5487
- DA:151,14
5488
- DA:159,57
5489
- DA:160,0
5490
- DA:163,0
5491
- DA:172,57
5455
+ DA:91,57
5456
+ DA:92,74
5457
+ DA:108,1077
5458
+ DA:109,1060
5459
+ DA:111,1077
5460
+ DA:118,57
5461
+ DA:123,57
5462
+ DA:124,267
5463
+ DA:131,57
5464
+ DA:132,128
5465
+ DA:143,57
5466
+ DA:144,41
5467
+ DA:145,27
5468
+ DA:148,14
5469
+ DA:150,14
5470
+ DA:158,57
5471
+ DA:159,0
5472
+ DA:162,0
5473
+ DA:171,57
5474
+ DA:172,309
5492
5475
  DA:173,309
5493
- DA:174,309
5494
- DA:180,57
5495
- DA:181,3
5496
- DA:189,57
5497
- DA:190,231
5498
- DA:196,57
5476
+ DA:179,57
5477
+ DA:180,3
5478
+ DA:188,57
5479
+ DA:189,231
5480
+ DA:195,57
5481
+ DA:196,3
5499
5482
  DA:197,3
5500
- DA:198,3
5501
- DA:199,1
5502
- DA:201,2
5503
- DA:207,57
5504
- DA:208,261
5505
- DA:215,57
5506
- DA:216,27
5507
- DA:230,57
5483
+ DA:198,1
5484
+ DA:200,2
5485
+ DA:206,57
5486
+ DA:207,261
5487
+ DA:214,57
5488
+ DA:215,27
5489
+ DA:229,57
5490
+ DA:237,9
5508
5491
  DA:238,9
5509
5492
  DA:239,9
5510
5493
  DA:240,9
5511
- DA:241,9
5512
- DA:247,57
5513
- DA:248,0
5514
- DA:255,57
5515
- DA:256,6
5516
- DA:262,57
5517
- DA:263,247
5518
- DA:270,57
5519
- DA:271,23
5520
- DA:277,57
5521
- DA:278,249
5522
- DA:285,57
5523
- DA:286,10
5524
- DA:292,57
5525
- DA:293,2
5526
- DA:300,57
5527
- DA:301,52
5528
- DA:309,57
5529
- DA:310,5
5530
- DA:317,57
5531
- DA:318,135
5532
- DA:326,57
5533
- DA:327,5
5534
- DA:328,4
5535
- DA:331,1
5536
- DA:342,57
5537
- DA:343,0
5538
- DA:346,57
5539
- DA:347,10
5540
- DA:350,57
5494
+ DA:246,57
5495
+ DA:247,0
5496
+ DA:254,57
5497
+ DA:255,6
5498
+ DA:261,57
5499
+ DA:262,247
5500
+ DA:269,57
5501
+ DA:270,23
5502
+ DA:276,57
5503
+ DA:277,249
5504
+ DA:284,57
5505
+ DA:285,10
5506
+ DA:291,57
5507
+ DA:292,2
5508
+ DA:299,57
5509
+ DA:300,52
5510
+ DA:308,57
5511
+ DA:309,5
5512
+ DA:316,57
5513
+ DA:317,135
5514
+ DA:325,57
5515
+ DA:326,5
5516
+ DA:327,4
5517
+ DA:330,1
5518
+ DA:341,57
5519
+ DA:342,0
5520
+ DA:345,57
5521
+ DA:346,10
5522
+ DA:349,57
5523
+ DA:350,0
5541
5524
  DA:351,0
5542
5525
  DA:352,0
5543
- DA:353,0
5544
- DA:355,0
5545
- DA:358,57
5546
- DA:359,1
5547
- DA:362,57
5548
- DA:363,0
5549
- DA:369,57
5550
- DA:370,60
5551
- LF:107
5552
- LH:98
5553
- BRDA:108,0,0,0
5554
- BRDA:108,1,0,0
5555
- BRDA:109,2,0,1060
5556
- BRDA:109,2,1,17
5557
- BRDA:124,3,0,0
5558
- BRDA:124,4,0,0
5559
- BRDA:144,5,0,0
5560
- BRDA:144,6,0,0
5561
- BRDA:144,7,0,0
5562
- BRDA:145,8,0,27
5563
- BRDA:145,8,1,14
5564
- BRDA:149,9,0,14
5565
- BRDA:149,9,1,0
5566
- BRDA:172,10,0,78
5567
- BRDA:173,11,0,309
5568
- BRDA:173,11,1,78
5569
- BRDA:180,12,0,0
5570
- BRDA:180,13,0,0
5571
- BRDA:198,14,0,1
5572
- BRDA:198,14,1,2
5573
- BRDA:198,15,0,3
5574
- BRDA:198,15,1,3
5575
- BRDA:207,16,0,0
5576
- BRDA:207,17,0,0
5577
- BRDA:247,18,0,0
5578
- BRDA:256,19,0,6
5579
- BRDA:256,19,1,6
5580
- BRDA:262,20,0,0
5581
- BRDA:262,21,0,0
5582
- BRDA:277,22,0,0
5583
- BRDA:277,23,0,0
5584
- BRDA:292,24,0,0
5585
- BRDA:292,25,0,0
5586
- BRDA:300,26,0,0
5587
- BRDA:300,27,0,52
5588
- BRDA:302,28,0,0
5589
- BRDA:302,28,1,52
5590
- BRDA:309,29,0,0
5591
- BRDA:309,30,0,0
5592
- BRDA:326,31,0,0
5593
- BRDA:326,32,0,0
5594
- BRDA:327,33,0,4
5595
- BRDA:327,33,1,1
5596
- BRDA:350,34,0,0
5597
- BRDA:350,35,0,0
5598
- BRDA:352,36,0,0
5599
- BRDA:352,36,1,0
5600
- BRDA:362,37,0,0
5526
+ DA:354,0
5527
+ DA:357,57
5528
+ DA:358,1
5529
+ DA:361,57
5530
+ DA:362,0
5531
+ DA:368,57
5532
+ DA:369,60
5533
+ LF:106
5534
+ LH:97
5535
+ BRDA:107,0,0,0
5536
+ BRDA:107,1,0,0
5537
+ BRDA:108,2,0,1060
5538
+ BRDA:108,2,1,17
5539
+ BRDA:123,3,0,0
5540
+ BRDA:123,4,0,0
5541
+ BRDA:143,5,0,0
5542
+ BRDA:143,6,0,0
5543
+ BRDA:143,7,0,0
5544
+ BRDA:144,8,0,27
5545
+ BRDA:144,8,1,14
5546
+ BRDA:148,9,0,14
5547
+ BRDA:148,9,1,0
5548
+ BRDA:171,10,0,78
5549
+ BRDA:172,11,0,309
5550
+ BRDA:172,11,1,78
5551
+ BRDA:179,12,0,0
5552
+ BRDA:179,13,0,0
5553
+ BRDA:197,14,0,1
5554
+ BRDA:197,14,1,2
5555
+ BRDA:197,15,0,3
5556
+ BRDA:197,15,1,3
5557
+ BRDA:206,16,0,0
5558
+ BRDA:206,17,0,0
5559
+ BRDA:246,18,0,0
5560
+ BRDA:255,19,0,6
5561
+ BRDA:255,19,1,6
5562
+ BRDA:261,20,0,0
5563
+ BRDA:261,21,0,0
5564
+ BRDA:276,22,0,0
5565
+ BRDA:276,23,0,0
5566
+ BRDA:291,24,0,0
5567
+ BRDA:291,25,0,0
5568
+ BRDA:299,26,0,0
5569
+ BRDA:299,27,0,52
5570
+ BRDA:301,28,0,0
5571
+ BRDA:301,28,1,52
5572
+ BRDA:308,29,0,0
5573
+ BRDA:308,30,0,0
5574
+ BRDA:325,31,0,0
5575
+ BRDA:325,32,0,0
5576
+ BRDA:326,33,0,4
5577
+ BRDA:326,33,1,1
5578
+ BRDA:349,34,0,0
5579
+ BRDA:349,35,0,0
5580
+ BRDA:351,36,0,0
5581
+ BRDA:351,36,1,0
5582
+ BRDA:361,37,0,0
5601
5583
  BRF:48
5602
5584
  BRH:18
5603
5585
  end_of_record
@@ -13,12 +13,11 @@ 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
- let { appId, excludeRows } = ctx.query;
16
+ const { appId } = ctx.query;
17
17
  const appName = decodeURI(ctx.query.appname);
18
- excludeRows = excludeRows === "true";
19
18
  const backupIdentifier = `${appName}-export-${new Date().getTime()}.txt`;
20
19
  ctx.attachment(backupIdentifier);
21
- ctx.body = yield streamBackup(appId, excludeRows);
20
+ ctx.body = yield streamBackup(appId);
22
21
  yield context.doInAppContext(appId, () => __awaiter(this, void 0, void 0, function* () {
23
22
  const appDb = context.getAppDB();
24
23
  const app = yield appDb.get(DocumentTypes.APP_METADATA);
@@ -155,41 +155,29 @@ 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 } = breakExternalTableId(ctx.params.tableId);
158
+ const { datasourceId, tableName } = breakExternalTableId(ctx.params.tableId);
159
159
  const db = getAppDB();
160
- const format = ctx.query.format;
161
- const { columns } = ctx.request.body;
160
+ let format = ctx.query.format;
162
161
  const datasource = yield db.get(datasourceId);
163
162
  if (!datasource || !datasource.entities) {
164
163
  ctx.throw(400, "Datasource has not been configured for plus API.");
165
164
  }
165
+ const tables = datasource.entities;
166
+ const table = tables[tableName];
166
167
  ctx.request.body = {
167
168
  query: {
168
169
  oneOf: {
169
- _id: ctx.request.body.rows.map(row => JSON.parse(decodeURI(row))[0]),
170
+ [table.primaryDisplay]: ctx.request.body.rows.map(id => breakRowIdField(id)[0]),
170
171
  },
171
172
  },
172
173
  };
173
174
  let result = yield exports.search(ctx);
174
- let rows = [];
175
- // Filter data to only specified columns if required
176
- if (columns && columns.length) {
177
- for (let i = 0; i < result.rows.length; i++) {
178
- rows[i] = {};
179
- for (let column of columns) {
180
- rows[i][column] = result.rows[i][column];
181
- }
182
- }
183
- }
184
- else {
185
- rows = result.rows;
186
- }
187
- let headers = Object.keys(rows[0]);
175
+ let headers = Object.keys(result.rows[0]);
188
176
  const exporter = exporters[format];
189
177
  const filename = `export.${format}`;
190
178
  // send down the file
191
179
  ctx.attachment(filename);
192
- return apiFileReturn(exporter(headers, rows));
180
+ return apiFileReturn(exporter(headers, result.rows));
193
181
  });
194
182
  exports.fetchEnrichedRow = (ctx) => __awaiter(void 0, void 0, void 0, function* () {
195
183
  const id = ctx.params.rowId;
@@ -127,7 +127,7 @@ class QueryBuilder {
127
127
  const allPreProcessingOpts = { escape: true, lowercase: true, wrap: true };
128
128
  function build(structure, queryFn) {
129
129
  for (let [key, value] of Object.entries(structure)) {
130
- key = builder.preprocess(key.replace(/ /, "_"), {
130
+ key = builder.preprocess(key.replace(/ /g, "_"), {
131
131
  escape: true,
132
132
  });
133
133
  const expression = queryFn(key, value);
@@ -70,9 +70,6 @@ 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
- }
76
73
  row[fieldName].map(val => {
77
74
  if (!constraints.inclusion.includes(val) &&
78
75
  constraints.inclusion.length !== 0) {
@@ -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,7 +54,6 @@ 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}`;
58
57
  exports.ViewNames = ViewNames;
59
58
  exports.InternalTables = InternalTables;
60
59
  exports.DocumentTypes = DocumentTypes;
@@ -52,7 +52,6 @@ var SourceNames;
52
52
  SourceNames["GOOGLE_SHEETS"] = "GOOGLE_SHEETS";
53
53
  SourceNames["FIRESTORE"] = "FIRESTORE";
54
54
  SourceNames["REDIS"] = "REDIS";
55
- SourceNames["SNOWFLAKE"] = "SNOWFLAKE";
56
55
  })(SourceNames = exports.SourceNames || (exports.SourceNames = {}));
57
56
  var IncludeRelationships;
58
57
  (function (IncludeRelationships) {