@budibase/server 0.9.190-alpha.7 → 1.0.1

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 (185) hide show
  1. package/builder/assets/{index.59c6065f.js → index.e95b024a.js} +140 -140
  2. package/builder/index.html +1 -1
  3. package/coverage/clover.xml +42 -45
  4. package/coverage/coverage-final.json +3 -3
  5. package/coverage/lcov-report/api/controllers/analytics.js.html +1 -1
  6. package/coverage/lcov-report/api/controllers/apikeys.js.html +1 -1
  7. package/coverage/lcov-report/api/controllers/application.js.html +1 -1
  8. package/coverage/lcov-report/api/controllers/auth.js.html +1 -1
  9. package/coverage/lcov-report/api/controllers/automation.js.html +1 -1
  10. package/coverage/lcov-report/api/controllers/backup.js.html +1 -1
  11. package/coverage/lcov-report/api/controllers/cloud.js.html +1 -1
  12. package/coverage/lcov-report/api/controllers/component.js.html +1 -1
  13. package/coverage/lcov-report/api/controllers/datasource.js.html +1 -1
  14. package/coverage/lcov-report/api/controllers/dev.js.html +1 -1
  15. package/coverage/lcov-report/api/controllers/hosting.js.html +1 -1
  16. package/coverage/lcov-report/api/controllers/index.html +1 -1
  17. package/coverage/lcov-report/api/controllers/integration.js.html +1 -1
  18. package/coverage/lcov-report/api/controllers/layout.js.html +1 -1
  19. package/coverage/lcov-report/api/controllers/metadata.js.html +1 -1
  20. package/coverage/lcov-report/api/controllers/permission.js.html +1 -1
  21. package/coverage/lcov-report/api/controllers/query.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 +1 -1
  25. package/coverage/lcov-report/api/controllers/row/index.html +1 -1
  26. package/coverage/lcov-report/api/controllers/row/index.js.html +1 -1
  27. package/coverage/lcov-report/api/controllers/row/internal.js.html +1 -1
  28. package/coverage/lcov-report/api/controllers/row/internalSearch.js.html +1 -1
  29. package/coverage/lcov-report/api/controllers/row/utils.js.html +1 -1
  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/external.js.html +1 -1
  33. package/coverage/lcov-report/api/controllers/table/index.html +14 -14
  34. package/coverage/lcov-report/api/controllers/table/index.js.html +1 -1
  35. package/coverage/lcov-report/api/controllers/table/internal.js.html +8 -20
  36. package/coverage/lcov-report/api/controllers/table/utils.js.html +1 -1
  37. package/coverage/lcov-report/api/controllers/templates.js.html +1 -1
  38. package/coverage/lcov-report/api/controllers/user.js.html +1 -1
  39. package/coverage/lcov-report/api/controllers/view/exporters.js.html +1 -1
  40. package/coverage/lcov-report/api/controllers/view/index.html +1 -1
  41. package/coverage/lcov-report/api/controllers/view/index.js.html +1 -1
  42. package/coverage/lcov-report/api/controllers/view/utils.js.html +1 -1
  43. package/coverage/lcov-report/api/controllers/view/viewBuilder.js.html +1 -1
  44. package/coverage/lcov-report/api/controllers/webhook.js.html +1 -1
  45. package/coverage/lcov-report/api/index.html +1 -1
  46. package/coverage/lcov-report/api/index.js.html +1 -1
  47. package/coverage/lcov-report/api/routes/analytics.js.html +1 -1
  48. package/coverage/lcov-report/api/routes/apikeys.js.html +1 -1
  49. package/coverage/lcov-report/api/routes/application.js.html +1 -1
  50. package/coverage/lcov-report/api/routes/auth.js.html +1 -1
  51. package/coverage/lcov-report/api/routes/automation.js.html +1 -1
  52. package/coverage/lcov-report/api/routes/backup.js.html +1 -1
  53. package/coverage/lcov-report/api/routes/cloud.js.html +1 -1
  54. package/coverage/lcov-report/api/routes/component.js.html +1 -1
  55. package/coverage/lcov-report/api/routes/datasource.js.html +1 -1
  56. package/coverage/lcov-report/api/routes/deploy.js.html +1 -1
  57. package/coverage/lcov-report/api/routes/dev.js.html +1 -1
  58. package/coverage/lcov-report/api/routes/hosting.js.html +1 -1
  59. package/coverage/lcov-report/api/routes/index.html +1 -1
  60. package/coverage/lcov-report/api/routes/index.js.html +1 -1
  61. package/coverage/lcov-report/api/routes/integration.js.html +1 -1
  62. package/coverage/lcov-report/api/routes/layout.js.html +1 -1
  63. package/coverage/lcov-report/api/routes/metadata.js.html +1 -1
  64. package/coverage/lcov-report/api/routes/permission.js.html +1 -1
  65. package/coverage/lcov-report/api/routes/query.js.html +1 -1
  66. package/coverage/lcov-report/api/routes/role.js.html +1 -1
  67. package/coverage/lcov-report/api/routes/routing.js.html +1 -1
  68. package/coverage/lcov-report/api/routes/row.js.html +536 -2
  69. package/coverage/lcov-report/api/routes/screen.js.html +1 -1
  70. package/coverage/lcov-report/api/routes/script.js.html +1 -1
  71. package/coverage/lcov-report/api/routes/static.js.html +1 -1
  72. package/coverage/lcov-report/api/routes/table.js.html +436 -7
  73. package/coverage/lcov-report/api/routes/templates.js.html +1 -1
  74. package/coverage/lcov-report/api/routes/user.js.html +1 -1
  75. package/coverage/lcov-report/api/routes/view.js.html +1 -1
  76. package/coverage/lcov-report/api/routes/webhook.js.html +1 -1
  77. package/coverage/lcov-report/automations/actions.js.html +1 -1
  78. package/coverage/lcov-report/automations/automationUtils.js.html +1 -1
  79. package/coverage/lcov-report/automations/bullboard.js.html +1 -1
  80. package/coverage/lcov-report/automations/index.html +1 -1
  81. package/coverage/lcov-report/automations/index.js.html +1 -1
  82. package/coverage/lcov-report/automations/steps/bash.js.html +1 -1
  83. package/coverage/lcov-report/automations/steps/createRow.js.html +1 -1
  84. package/coverage/lcov-report/automations/steps/delay.js.html +1 -1
  85. package/coverage/lcov-report/automations/steps/deleteRow.js.html +1 -1
  86. package/coverage/lcov-report/automations/steps/discord.js.html +1 -1
  87. package/coverage/lcov-report/automations/steps/executeQuery.js.html +1 -1
  88. package/coverage/lcov-report/automations/steps/executeScript.js.html +1 -1
  89. package/coverage/lcov-report/automations/steps/filter.js.html +1 -1
  90. package/coverage/lcov-report/automations/steps/index.html +1 -1
  91. package/coverage/lcov-report/automations/steps/integromat.js.html +1 -1
  92. package/coverage/lcov-report/automations/steps/outgoingWebhook.js.html +1 -1
  93. package/coverage/lcov-report/automations/steps/queryRows.js.html +1 -1
  94. package/coverage/lcov-report/automations/steps/sendSmtpEmail.js.html +1 -1
  95. package/coverage/lcov-report/automations/steps/serverLog.js.html +1 -1
  96. package/coverage/lcov-report/automations/steps/slack.js.html +1 -1
  97. package/coverage/lcov-report/automations/steps/updateRow.js.html +1 -1
  98. package/coverage/lcov-report/automations/steps/utils.js.html +1 -1
  99. package/coverage/lcov-report/automations/steps/zapier.js.html +1 -1
  100. package/coverage/lcov-report/automations/triggerInfo/app.js.html +1 -1
  101. package/coverage/lcov-report/automations/triggerInfo/cron.js.html +1 -1
  102. package/coverage/lcov-report/automations/triggerInfo/index.html +1 -1
  103. package/coverage/lcov-report/automations/triggerInfo/index.js.html +1 -1
  104. package/coverage/lcov-report/automations/triggerInfo/rowDeleted.js.html +1 -1
  105. package/coverage/lcov-report/automations/triggerInfo/rowSaved.js.html +1 -1
  106. package/coverage/lcov-report/automations/triggerInfo/rowUpdated.js.html +1 -1
  107. package/coverage/lcov-report/automations/triggerInfo/webhook.js.html +1 -1
  108. package/coverage/lcov-report/automations/triggers.js.html +1 -1
  109. package/coverage/lcov-report/automations/utils.js.html +1 -1
  110. package/coverage/lcov-report/constants/index.html +1 -1
  111. package/coverage/lcov-report/constants/index.js.html +1 -1
  112. package/coverage/lcov-report/constants/layouts.js.html +1 -1
  113. package/coverage/lcov-report/constants/screens.js.html +1 -1
  114. package/coverage/lcov-report/db/client.js.html +1 -1
  115. package/coverage/lcov-report/db/inMemoryView.js.html +1 -1
  116. package/coverage/lcov-report/db/index.html +1 -1
  117. package/coverage/lcov-report/db/index.js.html +1 -1
  118. package/coverage/lcov-report/db/linkedRows/LinkController.js.html +1 -1
  119. package/coverage/lcov-report/db/linkedRows/index.html +1 -1
  120. package/coverage/lcov-report/db/linkedRows/index.js.html +1 -1
  121. package/coverage/lcov-report/db/linkedRows/linkUtils.js.html +1 -1
  122. package/coverage/lcov-report/db/newid.js.html +1 -1
  123. package/coverage/lcov-report/db/utils.js.html +1 -1
  124. package/coverage/lcov-report/events/AutomationEmitter.js.html +1 -1
  125. package/coverage/lcov-report/events/index.html +1 -1
  126. package/coverage/lcov-report/events/index.js.html +1 -1
  127. package/coverage/lcov-report/events/utils.js.html +1 -1
  128. package/coverage/lcov-report/index.html +13 -13
  129. package/coverage/lcov-report/integrations/tests/TestConfiguration.js.html +1 -1
  130. package/coverage/lcov-report/integrations/tests/index.html +1 -1
  131. package/coverage/lcov-report/middleware/appInfo.js.html +1 -1
  132. package/coverage/lcov-report/middleware/authorized.js.html +1 -1
  133. package/coverage/lcov-report/middleware/builder.js.html +1 -1
  134. package/coverage/lcov-report/middleware/currentapp.js.html +1 -1
  135. package/coverage/lcov-report/middleware/index.html +1 -1
  136. package/coverage/lcov-report/middleware/joi-validator.js.html +1 -1
  137. package/coverage/lcov-report/middleware/resourceId.js.html +1 -1
  138. package/coverage/lcov-report/middleware/selfhost.js.html +1 -1
  139. package/coverage/lcov-report/middleware/usageQuota.js.html +1 -1
  140. package/coverage/lcov-report/middleware/utils.js.html +1 -1
  141. package/coverage/lcov-report/threads/automation.js.html +1 -1
  142. package/coverage/lcov-report/threads/index.html +1 -1
  143. package/coverage/lcov-report/threads/index.js.html +1 -1
  144. package/coverage/lcov-report/threads/query.js.html +1 -1
  145. package/coverage/lcov-report/utilities/bcrypt.js.html +1 -1
  146. package/coverage/lcov-report/utilities/budibaseDir.js.html +1 -1
  147. package/coverage/lcov-report/utilities/centralPath.js.html +1 -1
  148. package/coverage/lcov-report/utilities/csvParser.js.html +1 -1
  149. package/coverage/lcov-report/utilities/global.js.html +1 -1
  150. package/coverage/lcov-report/utilities/index.html +1 -1
  151. package/coverage/lcov-report/utilities/index.js.html +1 -1
  152. package/coverage/lcov-report/utilities/queue/inMemoryQueue.js.html +1 -1
  153. package/coverage/lcov-report/utilities/queue/index.html +1 -1
  154. package/coverage/lcov-report/utilities/routing/index.html +1 -1
  155. package/coverage/lcov-report/utilities/routing/index.js.html +1 -1
  156. package/coverage/lcov-report/utilities/rowProcessor/index.html +1 -1
  157. package/coverage/lcov-report/utilities/rowProcessor/index.js.html +1 -1
  158. package/coverage/lcov-report/utilities/rowProcessor/utils.js.html +1 -1
  159. package/coverage/lcov-report/utilities/scriptRunner.js.html +1 -1
  160. package/coverage/lcov-report/utilities/security.js.html +1 -1
  161. package/coverage/lcov-report/utilities/statusCodes.js.html +1 -1
  162. package/coverage/lcov-report/utilities/users.js.html +1 -1
  163. package/coverage/lcov-report/utilities/workerRequests.js.html +1 -1
  164. package/coverage/lcov.info +63 -70
  165. package/dist/api/controllers/row/ExternalRequest.js +5 -2
  166. package/dist/api/controllers/table/internal.js +0 -4
  167. package/dist/api/routes/row.js +178 -0
  168. package/dist/api/routes/table.js +148 -5
  169. package/dist/definitions/datasource.js +12 -1
  170. package/dist/integrations/base/sql.js +1 -4
  171. package/dist/integrations/oracle.js +42 -22
  172. package/dist/package.json +10 -6
  173. package/dist/tsconfig.tsbuildinfo +1 -1
  174. package/package.json +11 -7
  175. package/scripts/docs/README.md +31 -0
  176. package/scripts/docs/generate.js +74 -0
  177. package/scripts/docs/toSwagger.js +320 -0
  178. package/scripts/integrations/oracle/docker-compose.yml +1 -1
  179. package/src/api/controllers/row/ExternalRequest.ts +8 -2
  180. package/src/api/controllers/table/internal.js +0 -4
  181. package/src/api/routes/row.js +178 -0
  182. package/src/api/routes/table.js +148 -5
  183. package/src/definitions/datasource.ts +11 -0
  184. package/src/integrations/base/sql.ts +1 -3
  185. package/src/integrations/oracle.ts +41 -35
@@ -10,7 +10,7 @@
10
10
  href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap"
11
11
  rel="stylesheet"
12
12
  />
13
- <script type="module" crossorigin src="/builder/assets/index.59c6065f.js"></script>
13
+ <script type="module" crossorigin src="/builder/assets/index.e95b024a.js"></script>
14
14
  <link rel="modulepreload" href="/builder/assets/vendor.470042a4.js">
15
15
  <link rel="stylesheet" href="/builder/assets/vendor.5e1fe644.css">
16
16
  <link rel="stylesheet" href="/builder/assets/index.4fb3f887.css">
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1637937198310" clover="3.2.0">
3
- <project timestamp="1637937198310" name="All files">
4
- <metrics statements="4379" coveredstatements="3235" conditionals="1748" coveredconditionals="951" methods="619" coveredmethods="440" elements="6746" coveredelements="4626" complexity="0" loc="4379" ncloc="4379" packages="20" files="138" classes="138"/>
2
+ <coverage generated="1638286938006" clover="3.2.0">
3
+ <project timestamp="1638286938007" name="All files">
4
+ <metrics statements="4376" coveredstatements="3233" conditionals="1744" coveredconditionals="948" methods="619" coveredmethods="440" elements="6739" coveredelements="4621" complexity="0" loc="4376" ncloc="4376" packages="20" files="138" classes="138"/>
5
5
  <package name="api">
6
6
  <metrics statements="29" coveredstatements="27" conditionals="5" coveredconditionals="2" methods="5" coveredmethods="4"/>
7
7
  <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/index.js">
@@ -1821,7 +1821,7 @@
1821
1821
  </file>
1822
1822
  </package>
1823
1823
  <package name="api.controllers.table">
1824
- <metrics statements="425" coveredstatements="220" conditionals="225" coveredconditionals="84" methods="56" coveredmethods="27"/>
1824
+ <metrics statements="422" coveredstatements="218" conditionals="221" coveredconditionals="81" methods="56" coveredmethods="27"/>
1825
1825
  <file name="external.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/table/external.js">
1826
1826
  <metrics statements="137" coveredstatements="11" conditionals="76" coveredconditionals="0" methods="14" coveredmethods="0"/>
1827
1827
  <line num="1" count="34" type="stmt"/>
@@ -2019,7 +2019,7 @@
2019
2019
  <line num="105" count="1" type="stmt"/>
2020
2020
  </file>
2021
2021
  <file name="internal.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/table/internal.js">
2022
- <metrics statements="63" coveredstatements="49" conditionals="36" coveredconditionals="26" methods="5" coveredmethods="3"/>
2022
+ <metrics statements="60" coveredstatements="47" conditionals="32" coveredconditionals="23" methods="5" coveredmethods="3"/>
2023
2023
  <line num="1" count="34" type="stmt"/>
2024
2024
  <line num="2" count="34" type="stmt"/>
2025
2025
  <line num="3" count="34" type="stmt"/>
@@ -2039,50 +2039,47 @@
2039
2039
  <line num="45" count="99" type="cond" truecount="4" falsecount="0"/>
2040
2040
  <line num="46" count="4" type="stmt"/>
2041
2041
  <line num="47" count="13" type="stmt"/>
2042
- <line num="48" count="13" type="stmt"/>
2043
- <line num="49" count="13" type="cond" truecount="3" falsecount="1"/>
2044
- <line num="50" count="0" type="stmt"/>
2045
- <line num="52" count="13" type="cond" truecount="3" falsecount="1"/>
2046
- <line num="53" count="0" type="stmt"/>
2047
- <line num="59" count="99" type="stmt"/>
2048
- <line num="72" count="99" type="stmt"/>
2049
- <line num="75" count="99" type="stmt"/>
2042
+ <line num="48" count="13" type="cond" truecount="3" falsecount="1"/>
2043
+ <line num="49" count="0" type="stmt"/>
2044
+ <line num="55" count="99" type="stmt"/>
2045
+ <line num="68" count="99" type="stmt"/>
2046
+ <line num="71" count="99" type="stmt"/>
2047
+ <line num="72" count="0" type="stmt"/>
2048
+ <line num="73" count="0" type="cond" truecount="0" falsecount="2"/>
2049
+ <line num="75" count="0" type="cond" truecount="0" falsecount="4"/>
2050
2050
  <line num="76" count="0" type="stmt"/>
2051
- <line num="77" count="0" type="cond" truecount="0" falsecount="2"/>
2052
- <line num="79" count="0" type="cond" truecount="0" falsecount="4"/>
2053
- <line num="80" count="0" type="stmt"/>
2054
- <line num="84" count="99" type="stmt"/>
2055
- <line num="85" count="99" type="stmt"/>
2056
- <line num="93" count="99" type="cond" truecount="4" falsecount="0"/>
2057
- <line num="94" count="4" type="stmt"/>
2058
- <line num="97" count="0" type="stmt"/>
2051
+ <line num="80" count="99" type="stmt"/>
2052
+ <line num="81" count="99" type="stmt"/>
2053
+ <line num="89" count="99" type="cond" truecount="4" falsecount="0"/>
2054
+ <line num="90" count="4" type="stmt"/>
2055
+ <line num="93" count="0" type="stmt"/>
2056
+ <line num="98" count="99" type="stmt"/>
2057
+ <line num="99" count="99" type="cond" truecount="4" falsecount="0"/>
2058
+ <line num="100" count="1" type="stmt"/>
2059
2059
  <line num="102" count="99" type="stmt"/>
2060
- <line num="103" count="99" type="cond" truecount="4" falsecount="0"/>
2061
- <line num="104" count="1" type="stmt"/>
2062
- <line num="106" count="99" type="stmt"/>
2060
+ <line num="103" count="99" type="stmt"/>
2061
+ <line num="105" count="99" type="stmt"/>
2063
2062
  <line num="107" count="99" type="stmt"/>
2064
- <line num="109" count="99" type="stmt"/>
2065
- <line num="111" count="99" type="stmt"/>
2066
- <line num="114" count="34" type="stmt"/>
2067
- <line num="115" count="2" type="stmt"/>
2063
+ <line num="110" count="34" type="stmt"/>
2064
+ <line num="111" count="2" type="stmt"/>
2065
+ <line num="112" count="2" type="stmt"/>
2066
+ <line num="113" count="2" type="stmt"/>
2068
2067
  <line num="116" count="2" type="stmt"/>
2069
- <line num="117" count="2" type="stmt"/>
2070
- <line num="120" count="2" type="stmt"/>
2071
- <line num="125" count="2" type="stmt"/>
2072
- <line num="128" count="2" type="stmt"/>
2068
+ <line num="121" count="2" type="stmt"/>
2069
+ <line num="124" count="2" type="stmt"/>
2070
+ <line num="131" count="2" type="stmt"/>
2071
+ <line num="134" count="2" type="stmt"/>
2073
2072
  <line num="135" count="2" type="stmt"/>
2074
- <line num="138" count="2" type="stmt"/>
2075
- <line num="139" count="2" type="stmt"/>
2076
- <line num="140" count="2" type="stmt"/>
2077
- <line num="142" count="2" type="cond" truecount="1" falsecount="1"/>
2078
- <line num="143" count="0" type="stmt"/>
2079
- <line num="146" count="2" type="stmt"/>
2080
- <line num="149" count="34" type="stmt"/>
2073
+ <line num="136" count="2" type="stmt"/>
2074
+ <line num="138" count="2" type="cond" truecount="1" falsecount="1"/>
2075
+ <line num="139" count="0" type="stmt"/>
2076
+ <line num="142" count="2" type="stmt"/>
2077
+ <line num="145" count="34" type="stmt"/>
2078
+ <line num="146" count="0" type="stmt"/>
2079
+ <line num="147" count="0" type="stmt"/>
2080
+ <line num="148" count="0" type="stmt"/>
2081
+ <line num="149" count="0" type="stmt"/>
2081
2082
  <line num="150" count="0" type="stmt"/>
2082
- <line num="151" count="0" type="stmt"/>
2083
- <line num="152" count="0" type="stmt"/>
2084
- <line num="153" count="0" type="stmt"/>
2085
- <line num="154" count="0" type="stmt"/>
2086
2083
  </file>
2087
2084
  <file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/table/utils.js">
2088
2085
  <metrics statements="172" coveredstatements="116" conditionals="90" coveredconditionals="41" methods="27" coveredmethods="17"/>
@@ -2717,7 +2714,7 @@
2717
2714
  <line num="12" count="23" type="stmt"/>
2718
2715
  <line num="14" count="23" type="stmt"/>
2719
2716
  <line num="16" count="23" type="stmt"/>
2720
- <line num="76" count="23" type="stmt"/>
2717
+ <line num="254" count="23" type="stmt"/>
2721
2718
  </file>
2722
2719
  <file name="screen.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/routes/screen.js">
2723
2720
  <metrics statements="10" coveredstatements="10" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
@@ -2769,7 +2766,7 @@
2769
2766
  <line num="13" count="23" type="stmt"/>
2770
2767
  <line num="17" count="23" type="stmt"/>
2771
2768
  <line num="29" count="23" type="stmt"/>
2772
- <line num="68" count="23" type="stmt"/>
2769
+ <line num="211" count="23" type="stmt"/>
2773
2770
  </file>
2774
2771
  <file name="templates.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/routes/templates.js">
2775
2772
  <metrics statements="7" coveredstatements="7" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>