@budibase/server 1.0.207-alpha.2 → 1.0.208

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 (184) hide show
  1. package/builder/assets/index.24307ca0.css +6 -0
  2. package/builder/assets/index.cd64626e.js +1315 -0
  3. package/builder/index.html +2 -2
  4. package/coverage/clover.xml +121 -123
  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 +23 -8
  25. package/coverage/lcov-report/api/controllers/row/index.html +16 -16
  26. package/coverage/lcov-report/api/controllers/row/internal.js.html +1 -1
  27. package/coverage/lcov-report/api/controllers/row/internalSearch.js.html +1 -1
  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 +22 -22
  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 +215 -221
  160. package/dist/api/controllers/backup.js +2 -3
  161. package/dist/api/controllers/row/external.js +4 -2
  162. package/dist/api/controllers/row/utils.js +0 -3
  163. package/dist/automations/triggers.js +1 -1
  164. package/dist/db/utils.js +0 -1
  165. package/dist/definitions/datasource.js +0 -1
  166. package/dist/integrations/index.js +0 -4
  167. package/dist/integrations/mongodb.js +6 -0
  168. package/dist/package.json +6 -7
  169. package/dist/tsconfig.build.tsbuildinfo +1 -1
  170. package/dist/utilities/fileSystem/index.js +6 -16
  171. package/package.json +7 -8
  172. package/src/api/controllers/backup.js +2 -3
  173. package/src/api/controllers/row/external.js +7 -2
  174. package/src/api/controllers/row/utils.js +0 -3
  175. package/src/automations/triggers.js +1 -1
  176. package/src/db/utils.js +0 -1
  177. package/src/definitions/datasource.ts +0 -1
  178. package/src/integrations/index.ts +0 -4
  179. package/src/integrations/mongodb.ts +6 -0
  180. package/src/utilities/fileSystem/index.js +8 -22
  181. package/builder/assets/index.c6df2367.css +0 -6
  182. package/builder/assets/index.ec376520.js +0 -1313
  183. package/dist/integrations/snowflake.js +0 -101
  184. 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:168,(anonymous_12)
1778
- FN:183,(anonymous_13)
1779
- FN:213,(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
@@ -1874,35 +1873,37 @@ DA:161,0
1874
1873
  DA:162,0
1875
1874
  DA:163,0
1876
1875
  DA:165,0
1877
- DA:168,0
1878
- DA:173,0
1879
- DA:174,0
1880
- DA:175,0
1881
- DA:176,0
1876
+ DA:166,0
1877
+ DA:167,0
1878
+ DA:171,0
1879
+ DA:177,0
1882
1880
  DA:179,0
1883
1881
  DA:180,0
1884
- DA:183,44
1882
+ DA:181,0
1885
1883
  DA:184,0
1886
1884
  DA:185,0
1887
- DA:186,0
1888
- DA:187,0
1889
- DA:188,0
1885
+ DA:188,44
1890
1886
  DA:189,0
1891
1887
  DA:190,0
1888
+ DA:191,0
1892
1889
  DA:192,0
1893
1890
  DA:193,0
1891
+ DA:194,0
1892
+ DA:195,0
1894
1893
  DA:197,0
1895
1894
  DA:198,0
1896
- DA:201,0
1897
1895
  DA:202,0
1896
+ DA:203,0
1897
+ DA:206,0
1898
1898
  DA:207,0
1899
- DA:209,0
1900
- DA:210,0
1901
- DA:211,0
1902
- DA:213,0
1899
+ DA:212,0
1903
1900
  DA:214,0
1904
- DA:227,0
1905
- LF:108
1901
+ DA:215,0
1902
+ DA:216,0
1903
+ DA:218,0
1904
+ DA:219,0
1905
+ DA:232,0
1906
+ LF:110
1906
1907
  LH:18
1907
1908
  BRDA:16,0,0,0
1908
1909
  BRDA:18,1,0,0
@@ -1941,15 +1942,15 @@ BRDA:162,17,0,0
1941
1942
  BRDA:162,17,1,0
1942
1943
  BRDA:162,18,0,0
1943
1944
  BRDA:162,18,1,0
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
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
1953
1954
  BRF:46
1954
1955
  BRH:0
1955
1956
  end_of_record
@@ -2736,7 +2737,7 @@ FN:14,(anonymous_1)
2736
2737
  FN:19,(anonymous_2)
2737
2738
  FN:26,(anonymous_3)
2738
2739
  FN:45,(anonymous_4)
2739
- FN:70,(anonymous_5)
2740
+ FN:67,(anonymous_5)
2740
2741
  FNF:6
2741
2742
  FNH:4
2742
2743
  FNDA:2,(anonymous_0)
@@ -2786,19 +2787,17 @@ DA:65,224
2786
2787
  DA:66,0
2787
2788
  DA:67,0
2788
2789
  DA:68,0
2789
- DA:70,0
2790
- DA:71,0
2790
+ DA:72,0
2791
2791
  DA:75,0
2792
- DA:78,0
2793
- DA:80,0
2794
- DA:82,224
2792
+ DA:77,0
2793
+ DA:79,224
2794
+ DA:81,0
2795
+ DA:82,0
2795
2796
  DA:84,0
2796
- DA:85,0
2797
- DA:87,0
2798
- DA:90,224
2799
- DA:92,224
2800
- DA:94,83
2801
- LF:53
2797
+ DA:87,224
2798
+ DA:89,224
2799
+ DA:91,83
2800
+ LF:51
2802
2801
  LH:35
2803
2802
  BRDA:30,0,0,0
2804
2803
  BRDA:30,0,1,26
@@ -2818,23 +2817,21 @@ BRDA:65,7,0,224
2818
2817
  BRDA:65,7,1,0
2819
2818
  BRDA:66,8,0,0
2820
2819
  BRDA:66,8,1,0
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
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
2838
2835
  BRH:13
2839
2836
  end_of_record
2840
2837
  TN:
@@ -4656,12 +4653,10 @@ BRDA:91,9,1,6
4656
4653
  BRDA:91,9,2,6
4657
4654
  BRDA:91,9,3,1
4658
4655
  BRDA:91,9,4,1
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
4656
+ BRDA:106,10,0,2
4657
+ BRDA:106,10,1,4
4658
+ BRF:25
4659
+ BRH:21
4665
4660
  end_of_record
4666
4661
  TN:
4667
4662
  SF:src/automations/steps/bash.js
@@ -5367,36 +5362,36 @@ BRH:0
5367
5362
  end_of_record
5368
5363
  TN:
5369
5364
  SF:src/db/utils.js
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)
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)
5400
5395
  FNF:30
5401
5396
  FNH:25
5402
5397
  FNDA:74,(anonymous_0)
@@ -5455,137 +5450,136 @@ DA:83,57
5455
5450
  DA:84,57
5456
5451
  DA:85,57
5457
5452
  DA:86,57
5458
- DA:87,57
5453
+ DA:88,57
5459
5454
  DA:89,57
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
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
5480
5475
  DA:173,309
5481
- DA:174,309
5482
- DA:180,57
5483
- DA:181,3
5484
- DA:189,57
5485
- DA:190,231
5486
- 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
5487
5482
  DA:197,3
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
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
5496
5491
  DA:238,9
5497
5492
  DA:239,9
5498
5493
  DA:240,9
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
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
5529
5524
  DA:351,0
5530
5525
  DA:352,0
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
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
5589
5583
  BRF:48
5590
5584
  BRH:18
5591
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,17 +155,19 @@ 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
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];
165
167
  ctx.request.body = {
166
168
  query: {
167
169
  oneOf: {
168
- _id: ctx.request.body.rows.map(row => JSON.parse(decodeURI(row))[0]),
170
+ [table.primaryDisplay]: ctx.request.body.rows.map(id => breakRowIdField(id)[0]),
169
171
  },
170
172
  },
171
173
  };
@@ -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) {
@@ -13,7 +13,6 @@ const rest = require("./rest");
13
13
  const googlesheets = require("./googlesheets");
14
14
  const firebase = require("./firebase");
15
15
  const redis = require("./redis");
16
- const snowflake = require("./snowflake");
17
16
  const { SourceNames } = require("../definitions/datasource");
18
17
  const environment = require("../environment");
19
18
  const DEFINITIONS = {
@@ -30,7 +29,6 @@ const DEFINITIONS = {
30
29
  [SourceNames.REST]: rest.schema,
31
30
  [SourceNames.FIRESTORE]: firebase.schema,
32
31
  [SourceNames.REDIS]: redis.schema,
33
- [SourceNames.SNOWFLAKE]: snowflake.schema,
34
32
  };
35
33
  const INTEGRATIONS = {
36
34
  [SourceNames.POSTGRES]: postgres.integration,
@@ -47,8 +45,6 @@ const INTEGRATIONS = {
47
45
  [SourceNames.FIRESTORE]: firebase.integration,
48
46
  [SourceNames.GOOGLE_SHEETS]: googlesheets.integration,
49
47
  [SourceNames.REDIS]: redis.integration,
50
- [SourceNames.FIREBASE]: firebase.integration,
51
- [SourceNames.SNOWFLAKE]: snowflake.integration,
52
48
  };
53
49
  // optionally add oracle integration if the oracle binary can be installed
54
50
  if (!(process.arch === "arm64" && process.platform === "darwin")) {
@@ -224,6 +224,12 @@ var MongoDBModule;
224
224
  queryJson = this.parseQueryParams(queryJson, "delete");
225
225
  }
226
226
  let json = this.createObjectIds(queryJson);
227
+ if (!json.options) {
228
+ json = {
229
+ filter: json,
230
+ options: {},
231
+ };
232
+ }
227
233
  switch (query.extra.actionTypes) {
228
234
  case "deleteOne": {
229
235
  return yield collection.deleteOne(json.filter, json.options);