@budibase/server 1.2.58-alpha.1 → 1.2.58-alpha.4

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 (161) hide show
  1. package/builder/assets/{index.52ce947f.js → index.02b3fe06.js} +87 -87
  2. package/builder/index.html +1 -1
  3. package/coverage/clover.xml +114 -114
  4. package/coverage/coverage-final.json +11 -11
  5. package/coverage/lcov-report/api/controllers/apikeys.js.html +1 -1
  6. package/coverage/lcov-report/api/controllers/auth.js.html +1 -1
  7. package/coverage/lcov-report/api/controllers/automation.js.html +1 -1
  8. package/coverage/lcov-report/api/controllers/backup.js.html +1 -1
  9. package/coverage/lcov-report/api/controllers/cloud.js.html +1 -1
  10. package/coverage/lcov-report/api/controllers/component.js.html +1 -1
  11. package/coverage/lcov-report/api/controllers/datasource.js.html +1 -1
  12. package/coverage/lcov-report/api/controllers/dev.js.html +1 -1
  13. package/coverage/lcov-report/api/controllers/index.html +1 -1
  14. package/coverage/lcov-report/api/controllers/integration.js.html +1 -1
  15. package/coverage/lcov-report/api/controllers/layout.js.html +1 -1
  16. package/coverage/lcov-report/api/controllers/metadata.js.html +1 -1
  17. package/coverage/lcov-report/api/controllers/migrations.js.html +1 -1
  18. package/coverage/lcov-report/api/controllers/permission.js.html +1 -1
  19. package/coverage/lcov-report/api/controllers/query/index.html +1 -1
  20. package/coverage/lcov-report/api/controllers/query/validation.js.html +1 -1
  21. package/coverage/lcov-report/api/controllers/role.js.html +1 -1
  22. package/coverage/lcov-report/api/controllers/routing.js.html +1 -1
  23. package/coverage/lcov-report/api/controllers/row/external.js.html +1 -1
  24. package/coverage/lcov-report/api/controllers/row/index.html +1 -1
  25. package/coverage/lcov-report/api/controllers/row/internal.js.html +1 -1
  26. package/coverage/lcov-report/api/controllers/row/internalSearch.js.html +1 -1
  27. package/coverage/lcov-report/api/controllers/row/staticFormula.js.html +1 -1
  28. package/coverage/lcov-report/api/controllers/row/utils.js.html +1 -1
  29. package/coverage/lcov-report/api/controllers/screen.js.html +1 -1
  30. package/coverage/lcov-report/api/controllers/script.js.html +1 -1
  31. package/coverage/lcov-report/api/controllers/table/bulkFormula.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 +1 -1
  34. package/coverage/lcov-report/api/controllers/table/index.js.html +1 -1
  35. package/coverage/lcov-report/api/controllers/templates.js.html +1 -1
  36. package/coverage/lcov-report/api/controllers/user.js.html +1 -1
  37. package/coverage/lcov-report/api/controllers/view/exporters.js.html +1 -1
  38. package/coverage/lcov-report/api/controllers/view/index.html +1 -1
  39. package/coverage/lcov-report/api/controllers/view/index.js.html +1 -1
  40. package/coverage/lcov-report/api/controllers/view/utils.js.html +1 -1
  41. package/coverage/lcov-report/api/controllers/view/viewBuilder.js.html +1 -1
  42. package/coverage/lcov-report/api/controllers/webhook.js.html +1 -1
  43. package/coverage/lcov-report/api/index.html +1 -1
  44. package/coverage/lcov-report/api/index.js.html +5 -5
  45. package/coverage/lcov-report/api/routes/analytics.js.html +1 -1
  46. package/coverage/lcov-report/api/routes/apikeys.js.html +1 -1
  47. package/coverage/lcov-report/api/routes/auth.js.html +1 -1
  48. package/coverage/lcov-report/api/routes/automation.js.html +1 -1
  49. package/coverage/lcov-report/api/routes/backup.js.html +1 -1
  50. package/coverage/lcov-report/api/routes/cloud.js.html +1 -1
  51. package/coverage/lcov-report/api/routes/component.js.html +1 -1
  52. package/coverage/lcov-report/api/routes/datasource.js.html +1 -1
  53. package/coverage/lcov-report/api/routes/deploy.js.html +1 -1
  54. package/coverage/lcov-report/api/routes/dev.js.html +1 -1
  55. package/coverage/lcov-report/api/routes/index.html +1 -1
  56. package/coverage/lcov-report/api/routes/integration.js.html +1 -1
  57. package/coverage/lcov-report/api/routes/layout.js.html +1 -1
  58. package/coverage/lcov-report/api/routes/metadata.js.html +1 -1
  59. package/coverage/lcov-report/api/routes/migrations.js.html +1 -1
  60. package/coverage/lcov-report/api/routes/permission.js.html +1 -1
  61. package/coverage/lcov-report/api/routes/query.js.html +1 -1
  62. package/coverage/lcov-report/api/routes/role.js.html +1 -1
  63. package/coverage/lcov-report/api/routes/routing.js.html +1 -1
  64. package/coverage/lcov-report/api/routes/screen.js.html +1 -1
  65. package/coverage/lcov-report/api/routes/script.js.html +1 -1
  66. package/coverage/lcov-report/api/routes/table.js.html +1 -1
  67. package/coverage/lcov-report/api/routes/templates.js.html +1 -1
  68. package/coverage/lcov-report/api/routes/user.js.html +1 -1
  69. package/coverage/lcov-report/api/routes/utils/index.html +1 -1
  70. package/coverage/lcov-report/api/routes/utils/validators.js.html +1 -1
  71. package/coverage/lcov-report/api/routes/view.js.html +1 -1
  72. package/coverage/lcov-report/api/routes/webhook.js.html +1 -1
  73. package/coverage/lcov-report/automations/actions.js.html +1 -1
  74. package/coverage/lcov-report/automations/automationUtils.js.html +1 -1
  75. package/coverage/lcov-report/automations/bullboard.js.html +1 -1
  76. package/coverage/lcov-report/automations/index.html +1 -1
  77. package/coverage/lcov-report/automations/index.js.html +1 -1
  78. package/coverage/lcov-report/automations/steps/bash.js.html +1 -1
  79. package/coverage/lcov-report/automations/steps/delay.js.html +1 -1
  80. package/coverage/lcov-report/automations/steps/discord.js.html +1 -1
  81. package/coverage/lcov-report/automations/steps/executeQuery.js.html +1 -1
  82. package/coverage/lcov-report/automations/steps/executeScript.js.html +1 -1
  83. package/coverage/lcov-report/automations/steps/filter.js.html +1 -1
  84. package/coverage/lcov-report/automations/steps/index.html +1 -1
  85. package/coverage/lcov-report/automations/steps/integromat.js.html +1 -1
  86. package/coverage/lcov-report/automations/steps/loop.js.html +1 -1
  87. package/coverage/lcov-report/automations/steps/outgoingWebhook.js.html +1 -1
  88. package/coverage/lcov-report/automations/steps/queryRows.js.html +1 -1
  89. package/coverage/lcov-report/automations/steps/sendSmtpEmail.js.html +1 -1
  90. package/coverage/lcov-report/automations/steps/serverLog.js.html +1 -1
  91. package/coverage/lcov-report/automations/steps/slack.js.html +1 -1
  92. package/coverage/lcov-report/automations/steps/updateRow.js.html +1 -1
  93. package/coverage/lcov-report/automations/steps/utils.js.html +1 -1
  94. package/coverage/lcov-report/automations/steps/zapier.js.html +1 -1
  95. package/coverage/lcov-report/automations/triggerInfo/app.js.html +1 -1
  96. package/coverage/lcov-report/automations/triggerInfo/cron.js.html +1 -1
  97. package/coverage/lcov-report/automations/triggerInfo/index.html +1 -1
  98. package/coverage/lcov-report/automations/triggerInfo/index.js.html +1 -1
  99. package/coverage/lcov-report/automations/triggerInfo/rowDeleted.js.html +1 -1
  100. package/coverage/lcov-report/automations/triggerInfo/rowSaved.js.html +1 -1
  101. package/coverage/lcov-report/automations/triggerInfo/rowUpdated.js.html +1 -1
  102. package/coverage/lcov-report/automations/triggerInfo/webhook.js.html +1 -1
  103. package/coverage/lcov-report/automations/triggers.js.html +1 -1
  104. package/coverage/lcov-report/constants/index.html +1 -1
  105. package/coverage/lcov-report/constants/index.js.html +1 -1
  106. package/coverage/lcov-report/constants/layouts.js.html +1 -1
  107. package/coverage/lcov-report/constants/screens.js.html +1 -1
  108. package/coverage/lcov-report/db/inMemoryView.js.html +1 -1
  109. package/coverage/lcov-report/db/index.html +1 -1
  110. package/coverage/lcov-report/db/index.js.html +1 -1
  111. package/coverage/lcov-report/db/linkedRows/LinkController.js.html +1 -1
  112. package/coverage/lcov-report/db/linkedRows/index.html +1 -1
  113. package/coverage/lcov-report/db/linkedRows/index.js.html +1 -1
  114. package/coverage/lcov-report/db/linkedRows/linkUtils.js.html +1 -1
  115. package/coverage/lcov-report/db/newid.js.html +2 -2
  116. package/coverage/lcov-report/db/utils.js.html +13 -13
  117. package/coverage/lcov-report/events/AutomationEmitter.js.html +1 -1
  118. package/coverage/lcov-report/events/index.html +1 -1
  119. package/coverage/lcov-report/events/index.js.html +1 -1
  120. package/coverage/lcov-report/events/utils.js.html +1 -1
  121. package/coverage/lcov-report/index.html +1 -1
  122. package/coverage/lcov-report/integrations/tests/TestConfiguration.js.html +1 -1
  123. package/coverage/lcov-report/integrations/tests/index.html +1 -1
  124. package/coverage/lcov-report/middleware/appInfo.js.html +1 -1
  125. package/coverage/lcov-report/middleware/builder.js.html +11 -11
  126. package/coverage/lcov-report/middleware/currentapp.js.html +33 -33
  127. package/coverage/lcov-report/middleware/index.html +1 -1
  128. package/coverage/lcov-report/middleware/joi-validator.js.html +1 -1
  129. package/coverage/lcov-report/middleware/publicApi.js.html +1 -1
  130. package/coverage/lcov-report/middleware/resourceId.js.html +1 -1
  131. package/coverage/lcov-report/middleware/selfhost.js.html +1 -1
  132. package/coverage/lcov-report/middleware/utils.js.html +2 -2
  133. package/coverage/lcov-report/utilities/budibaseDir.js.html +1 -1
  134. package/coverage/lcov-report/utilities/centralPath.js.html +1 -1
  135. package/coverage/lcov-report/utilities/csvParser.js.html +1 -1
  136. package/coverage/lcov-report/utilities/global.js.html +16 -16
  137. package/coverage/lcov-report/utilities/index.html +1 -1
  138. package/coverage/lcov-report/utilities/index.js.html +2 -2
  139. package/coverage/lcov-report/utilities/queue/inMemoryQueue.js.html +2 -2
  140. package/coverage/lcov-report/utilities/queue/index.html +1 -1
  141. package/coverage/lcov-report/utilities/routing/index.html +1 -1
  142. package/coverage/lcov-report/utilities/routing/index.js.html +1 -1
  143. package/coverage/lcov-report/utilities/rowProcessor/index.html +1 -1
  144. package/coverage/lcov-report/utilities/rowProcessor/index.js.html +1 -1
  145. package/coverage/lcov-report/utilities/rowProcessor/utils.js.html +1 -1
  146. package/coverage/lcov-report/utilities/scriptRunner.js.html +1 -1
  147. package/coverage/lcov-report/utilities/security.js.html +1 -1
  148. package/coverage/lcov-report/utilities/statusCodes.js.html +1 -1
  149. package/coverage/lcov-report/utilities/usageQuota/index.html +1 -1
  150. package/coverage/lcov-report/utilities/usageQuota/rows.js.html +20 -20
  151. package/coverage/lcov-report/utilities/usageQuota/usageQuoteReset.js.html +1 -1
  152. package/coverage/lcov-report/utilities/users.js.html +1 -1
  153. package/coverage/lcov-report/utilities/workerRequests.js.html +13 -13
  154. package/coverage/lcov.info +205 -205
  155. package/dist/api/controllers/application.js +80 -14
  156. package/dist/package.json +6 -6
  157. package/dist/tsconfig.build.tsbuildinfo +1 -1
  158. package/package.json +7 -7
  159. package/src/api/controllers/application.ts +96 -15
  160. package/src/api/routes/tests/application.spec.js +26 -0
  161. package/src/api/routes/tests/data/old-app.txt +3 -0
@@ -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.52ce947f.js"></script>
13
+ <script type="module" crossorigin src="/builder/assets/index.02b3fe06.js"></script>
14
14
  <link rel="modulepreload" href="/builder/assets/vendor.67dbd8fa.js">
15
15
  <link rel="stylesheet" href="/builder/assets/vendor.5e1fe644.css">
16
16
  <link rel="stylesheet" href="/builder/assets/index.fdb1647e.css">
@@ -1,6 +1,6 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1661948197095" clover="3.2.0">
3
- <project timestamp="1661948197095" name="All files">
2
+ <coverage generated="1661956700435" clover="3.2.0">
3
+ <project timestamp="1661956700435" name="All files">
4
4
  <metrics statements="4140" coveredstatements="3035" conditionals="1744" coveredconditionals="963" methods="611" coveredmethods="432" elements="6495" coveredelements="4430" complexity="0" loc="4140" ncloc="4140" packages="22" files="126" classes="126"/>
5
5
  <package name="api">
6
6
  <metrics statements="35" coveredstatements="34" conditionals="5" coveredconditionals="2" methods="4" coveredmethods="4"/>
@@ -21,11 +21,11 @@
21
21
  <line num="19" count="28" type="stmt"/>
22
22
  <line num="20" count="28" type="stmt"/>
23
23
  <line num="22" count="28" type="stmt"/>
24
- <line num="36" count="238" type="stmt"/>
25
- <line num="40" count="238" type="stmt"/>
24
+ <line num="36" count="239" type="stmt"/>
25
+ <line num="40" count="239" type="stmt"/>
26
26
  <line num="62" count="28" type="stmt"/>
27
- <line num="63" count="236" type="stmt"/>
28
- <line num="64" count="236" type="stmt"/>
27
+ <line num="63" count="237" type="stmt"/>
28
+ <line num="64" count="237" type="stmt"/>
29
29
  <line num="66" count="39" type="cond" truecount="1" falsecount="2"/>
30
30
  <line num="67" count="39" type="stmt"/>
31
31
  <line num="68" count="39" type="stmt"/>
@@ -3234,7 +3234,7 @@
3234
3234
  <metrics statements="3" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
3235
3235
  <line num="1" count="59" type="stmt"/>
3236
3236
  <line num="3" count="59" type="stmt"/>
3237
- <line num="4" count="973" type="stmt"/>
3237
+ <line num="4" count="975" type="stmt"/>
3238
3238
  </file>
3239
3239
  <file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/db/utils.js">
3240
3240
  <metrics statements="109" coveredstatements="99" conditionals="49" coveredconditionals="18" methods="31" coveredmethods="25"/>
@@ -3267,36 +3267,36 @@
3267
3267
  <line num="83" count="59" type="stmt"/>
3268
3268
  <line num="84" count="59" type="stmt"/>
3269
3269
  <line num="86" count="59" type="stmt"/>
3270
- <line num="101" count="868" type="cond" truecount="2" falsecount="0"/>
3271
- <line num="102" count="851" type="stmt"/>
3272
- <line num="104" count="868" type="stmt"/>
3270
+ <line num="101" count="875" type="cond" truecount="2" falsecount="0"/>
3271
+ <line num="102" count="858" type="stmt"/>
3272
+ <line num="104" count="875" type="stmt"/>
3273
3273
  <line num="111" count="59" type="stmt"/>
3274
3274
  <line num="116" count="59" type="cond" truecount="0" falsecount="2"/>
3275
3275
  <line num="117" count="271" type="stmt"/>
3276
3276
  <line num="124" count="59" type="stmt"/>
3277
3277
  <line num="125" count="130" type="stmt"/>
3278
3278
  <line num="136" count="59" type="cond" truecount="0" falsecount="3"/>
3279
- <line num="137" count="41" type="cond" truecount="2" falsecount="0"/>
3280
- <line num="138" count="27" type="stmt"/>
3279
+ <line num="137" count="44" type="cond" truecount="2" falsecount="0"/>
3280
+ <line num="138" count="30" type="stmt"/>
3281
3281
  <line num="141" count="14" type="cond" truecount="1" falsecount="1"/>
3282
3282
  <line num="143" count="14" type="stmt"/>
3283
3283
  <line num="151" count="59" type="stmt"/>
3284
3284
  <line num="152" count="0" type="stmt"/>
3285
3285
  <line num="155" count="0" type="stmt"/>
3286
3286
  <line num="164" count="59" type="cond" truecount="1" falsecount="0"/>
3287
- <line num="165" count="322" type="cond" truecount="2" falsecount="0"/>
3288
- <line num="166" count="322" type="stmt"/>
3287
+ <line num="165" count="323" type="cond" truecount="2" falsecount="0"/>
3288
+ <line num="166" count="323" type="stmt"/>
3289
3289
  <line num="172" count="59" type="cond" truecount="0" falsecount="2"/>
3290
3290
  <line num="173" count="3" type="stmt"/>
3291
3291
  <line num="181" count="59" type="stmt"/>
3292
- <line num="182" count="243" type="stmt"/>
3292
+ <line num="182" count="244" type="stmt"/>
3293
3293
  <line num="188" count="59" type="stmt"/>
3294
3294
  <line num="189" count="3" type="stmt"/>
3295
3295
  <line num="190" count="3" type="cond" truecount="4" falsecount="0"/>
3296
3296
  <line num="191" count="1" type="stmt"/>
3297
3297
  <line num="193" count="2" type="stmt"/>
3298
3298
  <line num="199" count="59" type="cond" truecount="0" falsecount="2"/>
3299
- <line num="200" count="273" type="stmt"/>
3299
+ <line num="200" count="274" type="stmt"/>
3300
3300
  <line num="207" count="59" type="stmt"/>
3301
3301
  <line num="208" count="27" type="stmt"/>
3302
3302
  <line num="222" count="59" type="stmt"/>
@@ -3309,11 +3309,11 @@
3309
3309
  <line num="247" count="59" type="stmt"/>
3310
3310
  <line num="248" count="6" type="cond" truecount="2" falsecount="0"/>
3311
3311
  <line num="254" count="59" type="cond" truecount="0" falsecount="2"/>
3312
- <line num="255" count="8" type="stmt"/>
3312
+ <line num="255" count="9" type="stmt"/>
3313
3313
  <line num="262" count="59" type="stmt"/>
3314
3314
  <line num="263" count="23" type="stmt"/>
3315
3315
  <line num="269" count="59" type="cond" truecount="0" falsecount="2"/>
3316
- <line num="270" count="10" type="stmt"/>
3316
+ <line num="270" count="11" type="stmt"/>
3317
3317
  <line num="277" count="59" type="stmt"/>
3318
3318
  <line num="278" count="10" type="stmt"/>
3319
3319
  <line num="284" count="59" type="cond" truecount="0" falsecount="2"/>
@@ -3327,7 +3327,7 @@
3327
3327
  <line num="319" count="59" type="stmt"/>
3328
3328
  <line num="320" count="0" type="stmt"/>
3329
3329
  <line num="326" count="59" type="cond" truecount="0" falsecount="1"/>
3330
- <line num="327" count="253" type="stmt"/>
3330
+ <line num="327" count="254" type="stmt"/>
3331
3331
  <line num="333" count="59" type="cond" truecount="0" falsecount="2"/>
3332
3332
  <line num="334" count="5" type="cond" truecount="2" falsecount="0"/>
3333
3333
  <line num="335" count="4" type="stmt"/>
@@ -3759,19 +3759,19 @@
3759
3759
  <line num="59" count="1" type="stmt"/>
3760
3760
  <line num="61" count="1" type="stmt"/>
3761
3761
  <line num="65" count="29" type="stmt"/>
3762
- <line num="66" count="224" type="stmt"/>
3763
- <line num="68" count="224" type="cond" truecount="2" falsecount="0"/>
3762
+ <line num="66" count="225" type="stmt"/>
3763
+ <line num="68" count="225" type="cond" truecount="2" falsecount="0"/>
3764
3764
  <line num="69" count="5" type="stmt"/>
3765
- <line num="71" count="219" type="stmt"/>
3766
- <line num="72" count="219" type="stmt"/>
3767
- <line num="74" count="219" type="stmt"/>
3768
- <line num="75" count="219" type="cond" truecount="2" falsecount="0"/>
3769
- <line num="76" count="219" type="cond" truecount="1" falsecount="1"/>
3765
+ <line num="71" count="220" type="stmt"/>
3766
+ <line num="72" count="220" type="stmt"/>
3767
+ <line num="74" count="220" type="stmt"/>
3768
+ <line num="75" count="220" type="cond" truecount="2" falsecount="0"/>
3769
+ <line num="76" count="220" type="cond" truecount="1" falsecount="1"/>
3770
3770
  <line num="77" count="0" type="stmt"/>
3771
- <line num="80" count="219" type="cond" truecount="2" falsecount="0"/>
3772
- <line num="81" count="219" type="cond" truecount="2" falsecount="0"/>
3773
- <line num="83" count="219" type="cond" truecount="4" falsecount="0"/>
3774
- <line num="84" count="218" type="stmt"/>
3771
+ <line num="80" count="220" type="cond" truecount="2" falsecount="0"/>
3772
+ <line num="81" count="220" type="cond" truecount="2" falsecount="0"/>
3773
+ <line num="83" count="220" type="cond" truecount="4" falsecount="0"/>
3774
+ <line num="84" count="219" type="stmt"/>
3775
3775
  <line num="87" count="1" type="stmt"/>
3776
3776
  <line num="89" count="1" type="stmt"/>
3777
3777
  </file>
@@ -3789,59 +3789,59 @@
3789
3789
  <line num="15" count="33" type="stmt"/>
3790
3790
  <line num="16" count="33" type="stmt"/>
3791
3791
  <line num="18" count="33" type="stmt"/>
3792
- <line num="20" count="243" type="stmt"/>
3793
- <line num="22" count="243" type="stmt"/>
3794
- <line num="23" count="243" type="stmt"/>
3795
- <line num="24" count="243" type="stmt"/>
3792
+ <line num="20" count="244" type="stmt"/>
3793
+ <line num="22" count="244" type="stmt"/>
3794
+ <line num="23" count="244" type="stmt"/>
3795
+ <line num="24" count="244" type="stmt"/>
3796
3796
  <line num="26" count="0" type="stmt"/>
3797
- <line num="28" count="243" type="cond" truecount="4" falsecount="0"/>
3797
+ <line num="28" count="244" type="cond" truecount="4" falsecount="0"/>
3798
3798
  <line num="29" count="1" type="stmt"/>
3799
- <line num="32" count="242" type="cond" truecount="2" falsecount="0"/>
3800
- <line num="33" count="236" type="stmt"/>
3801
- <line num="34" count="236" type="stmt"/>
3802
- <line num="35" count="236" type="cond" truecount="1" falsecount="1"/>
3799
+ <line num="32" count="243" type="cond" truecount="2" falsecount="0"/>
3800
+ <line num="33" count="237" type="stmt"/>
3801
+ <line num="34" count="237" type="stmt"/>
3802
+ <line num="35" count="237" type="cond" truecount="1" falsecount="1"/>
3803
3803
  <line num="36" count="0" type="stmt"/>
3804
3804
  <line num="37" count="0" type="stmt"/>
3805
- <line num="40" count="236" type="cond" truecount="1" falsecount="1"/>
3806
- <line num="44" count="242" type="cond" truecount="2" falsecount="0"/>
3805
+ <line num="40" count="237" type="cond" truecount="1" falsecount="1"/>
3806
+ <line num="44" count="243" type="cond" truecount="2" falsecount="0"/>
3807
3807
  <line num="45" count="2" type="cond" truecount="1" falsecount="1"/>
3808
3808
  <line num="50" count="2" type="stmt"/>
3809
3809
  <line num="51" count="2" type="stmt"/>
3810
- <line num="56" count="240" type="stmt"/>
3811
- <line num="57" count="240" type="cond" truecount="2" falsecount="0"/>
3810
+ <line num="56" count="241" type="stmt"/>
3811
+ <line num="57" count="241" type="cond" truecount="2" falsecount="0"/>
3812
3812
  <line num="59" count="5" type="stmt"/>
3813
- <line num="60" count="235" type="cond" truecount="1" falsecount="1"/>
3814
- <line num="62" count="235" type="stmt"/>
3815
- <line num="63" count="235" type="stmt"/>
3816
- <line num="65" count="235" type="cond" truecount="2" falsecount="0"/>
3817
- <line num="69" count="235" type="cond" truecount="3" falsecount="0"/>
3818
- <line num="70" count="235" type="cond" truecount="2" falsecount="0"/>
3819
- <line num="71" count="235" type="cond" truecount="2" falsecount="0"/>
3820
- <line num="72" count="235" type="cond" truecount="4" falsecount="1"/>
3813
+ <line num="60" count="236" type="cond" truecount="1" falsecount="1"/>
3814
+ <line num="62" count="236" type="stmt"/>
3815
+ <line num="63" count="236" type="stmt"/>
3816
+ <line num="65" count="236" type="cond" truecount="2" falsecount="0"/>
3817
+ <line num="69" count="236" type="cond" truecount="3" falsecount="0"/>
3818
+ <line num="70" count="236" type="cond" truecount="2" falsecount="0"/>
3819
+ <line num="71" count="236" type="cond" truecount="2" falsecount="0"/>
3820
+ <line num="72" count="236" type="cond" truecount="4" falsecount="1"/>
3821
3821
  <line num="74" count="0" type="stmt"/>
3822
3822
  <line num="75" count="0" type="stmt"/>
3823
3823
  <line num="76" count="0" type="stmt"/>
3824
3824
  <line num="79" count="0" type="stmt"/>
3825
3825
  <line num="80" count="0" type="stmt"/>
3826
- <line num="88" count="240" type="cond" truecount="1" falsecount="1"/>
3826
+ <line num="88" count="241" type="cond" truecount="1" falsecount="1"/>
3827
3827
  <line num="89" count="0" type="stmt"/>
3828
- <line num="92" count="240" type="stmt"/>
3829
- <line num="93" count="240" type="stmt"/>
3830
- <line num="96" count="240" type="cond" truecount="1" falsecount="1"/>
3828
+ <line num="92" count="241" type="stmt"/>
3829
+ <line num="93" count="241" type="stmt"/>
3830
+ <line num="96" count="241" type="cond" truecount="1" falsecount="1"/>
3831
3831
  <line num="103" count="0" type="stmt"/>
3832
3832
  <line num="104" count="0" type="stmt"/>
3833
3833
  <line num="105" count="0" type="stmt"/>
3834
3834
  <line num="106" count="0" type="stmt"/>
3835
3835
  <line num="107" count="0" type="stmt"/>
3836
3836
  <line num="108" count="0" type="stmt"/>
3837
- <line num="111" count="240" type="stmt"/>
3838
- <line num="112" count="240" type="cond" truecount="1" falsecount="1"/>
3839
- <line num="113" count="240" type="stmt"/>
3840
- <line num="114" count="240" type="cond" truecount="2" falsecount="0"/>
3841
- <line num="115" count="240" type="stmt"/>
3842
- <line num="124" count="240" type="cond" truecount="2" falsecount="0"/>
3837
+ <line num="111" count="241" type="stmt"/>
3838
+ <line num="112" count="241" type="cond" truecount="1" falsecount="1"/>
3839
+ <line num="113" count="241" type="stmt"/>
3840
+ <line num="114" count="241" type="cond" truecount="2" falsecount="0"/>
3841
+ <line num="115" count="241" type="stmt"/>
3842
+ <line num="124" count="241" type="cond" truecount="2" falsecount="0"/>
3843
3843
  <line num="130" count="10" type="stmt"/>
3844
- <line num="133" count="240" type="stmt"/>
3844
+ <line num="133" count="241" type="stmt"/>
3845
3845
  </file>
3846
3846
  <file name="joi-validator.js" path="/home/runner/work/budibase/budibase/packages/server/src/middleware/joi-validator.js">
3847
3847
  <metrics statements="20" coveredstatements="0" conditionals="10" coveredconditionals="0" methods="4" coveredmethods="0"/>
@@ -3924,7 +3924,7 @@
3924
3924
  <metrics statements="3" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
3925
3925
  <line num="1" count="34" type="stmt"/>
3926
3926
  <line num="5" count="34" type="stmt"/>
3927
- <line num="6" count="228" type="stmt"/>
3927
+ <line num="6" count="229" type="stmt"/>
3928
3928
  </file>
3929
3929
  </package>
3930
3930
  <package name="utilities">
@@ -4029,35 +4029,35 @@
4029
4029
  <line num="14" count="51" type="stmt"/>
4030
4030
  <line num="15" count="51" type="stmt"/>
4031
4031
  <line num="17" count="51" type="cond" truecount="1" falsecount="0"/>
4032
- <line num="18" count="244" type="cond" truecount="2" falsecount="0"/>
4033
- <line num="20" count="244" type="cond" truecount="4" falsecount="0"/>
4032
+ <line num="18" count="245" type="cond" truecount="2" falsecount="0"/>
4033
+ <line num="20" count="245" type="cond" truecount="4" falsecount="0"/>
4034
4034
  <line num="21" count="3" type="stmt"/>
4035
- <line num="24" count="241" type="cond" truecount="2" falsecount="2"/>
4035
+ <line num="24" count="242" type="cond" truecount="2" falsecount="2"/>
4036
4036
  <line num="25" count="0" type="stmt"/>
4037
4037
  <line num="26" count="0" type="stmt"/>
4038
4038
  <line num="27" count="0" type="stmt"/>
4039
4039
  <line num="28" count="0" type="stmt"/>
4040
- <line num="31" count="241" type="stmt"/>
4041
- <line num="33" count="241" type="cond" truecount="5" falsecount="0"/>
4042
- <line num="34" count="209" type="stmt"/>
4040
+ <line num="31" count="242" type="stmt"/>
4041
+ <line num="33" count="242" type="cond" truecount="5" falsecount="0"/>
4042
+ <line num="34" count="210" type="stmt"/>
4043
4043
  <line num="35" count="32" type="cond" truecount="4" falsecount="0"/>
4044
4044
  <line num="36" count="27" type="stmt"/>
4045
4045
  <line num="37" count="5" type="cond" truecount="1" falsecount="1"/>
4046
4046
  <line num="38" count="0" type="stmt"/>
4047
- <line num="41" count="241" type="stmt"/>
4048
- <line num="42" count="241" type="stmt"/>
4047
+ <line num="41" count="242" type="stmt"/>
4048
+ <line num="42" count="242" type="stmt"/>
4049
4049
  <line num="46" count="0" type="stmt"/>
4050
4050
  <line num="47" count="0" type="stmt"/>
4051
4051
  <line num="49" count="0" type="stmt"/>
4052
- <line num="53" count="237" type="cond" truecount="1" falsecount="1"/>
4053
- <line num="54" count="237" type="stmt"/>
4054
- <line num="56" count="237" type="stmt"/>
4055
- <line num="57" count="237" type="cond" truecount="3" falsecount="1"/>
4052
+ <line num="53" count="238" type="cond" truecount="1" falsecount="1"/>
4053
+ <line num="54" count="238" type="stmt"/>
4054
+ <line num="56" count="238" type="stmt"/>
4055
+ <line num="57" count="238" type="cond" truecount="3" falsecount="1"/>
4056
4056
  <line num="58" count="0" type="stmt"/>
4057
- <line num="61" count="237" type="stmt"/>
4057
+ <line num="61" count="238" type="stmt"/>
4058
4058
  <line num="64" count="51" type="stmt"/>
4059
- <line num="67" count="235" type="stmt"/>
4060
- <line num="68" count="235" type="stmt"/>
4059
+ <line num="67" count="236" type="stmt"/>
4060
+ <line num="68" count="236" type="stmt"/>
4061
4061
  <line num="71" count="51" type="stmt"/>
4062
4062
  <line num="72" count="2" type="stmt"/>
4063
4063
  <line num="73" count="2" type="stmt"/>
@@ -4106,7 +4106,7 @@
4106
4106
  <line num="19" count="1" type="stmt"/>
4107
4107
  <line num="21" count="1" type="stmt"/>
4108
4108
  <line num="30" count="49" type="stmt"/>
4109
- <line num="31" count="43" type="stmt"/>
4109
+ <line num="31" count="45" type="stmt"/>
4110
4110
  <line num="38" count="49" type="stmt"/>
4111
4111
  <line num="39" count="2" type="cond" truecount="2" falsecount="2"/>
4112
4112
  <line num="41" count="2" type="stmt"/>
@@ -4254,20 +4254,20 @@
4254
4254
  <line num="5" count="45" type="stmt"/>
4255
4255
  <line num="6" count="45" type="stmt"/>
4256
4256
  <line num="7" count="45" type="stmt"/>
4257
- <line num="10" count="20" type="cond" truecount="1" falsecount="1"/>
4258
- <line num="11" count="20" type="stmt"/>
4259
- <line num="13" count="20" type="cond" truecount="1" falsecount="1"/>
4257
+ <line num="10" count="22" type="cond" truecount="1" falsecount="1"/>
4258
+ <line num="11" count="22" type="stmt"/>
4259
+ <line num="13" count="22" type="cond" truecount="1" falsecount="1"/>
4260
4260
  <line num="14" count="0" type="stmt"/>
4261
4261
  <line num="15" count="0" type="cond" truecount="0" falsecount="2"/>
4262
4262
  <line num="16" count="0" type="stmt"/>
4263
- <line num="19" count="20" type="cond" truecount="2" falsecount="2"/>
4263
+ <line num="19" count="22" type="cond" truecount="2" falsecount="2"/>
4264
4264
  <line num="20" count="0" type="stmt"/>
4265
4265
  <line num="21" count="0" type="stmt"/>
4266
- <line num="26" count="20" type="stmt"/>
4267
- <line num="28" count="20" type="cond" truecount="4" falsecount="0"/>
4266
+ <line num="26" count="22" type="stmt"/>
4267
+ <line num="28" count="22" type="cond" truecount="4" falsecount="0"/>
4268
4268
  <line num="29" count="2" type="stmt"/>
4269
- <line num="31" count="20" type="stmt"/>
4270
- <line num="35" count="20" type="cond" truecount="1" falsecount="1"/>
4269
+ <line num="31" count="22" type="stmt"/>
4270
+ <line num="35" count="22" type="cond" truecount="1" falsecount="1"/>
4271
4271
  <line num="37" count="0" type="stmt"/>
4272
4272
  <line num="38" count="0" type="stmt"/>
4273
4273
  <line num="40" count="0" type="stmt"/>
@@ -4275,7 +4275,7 @@
4275
4275
  <line num="45" count="0" type="cond" truecount="0" falsecount="2"/>
4276
4276
  <line num="46" count="0" type="stmt"/>
4277
4277
  <line num="48" count="0" type="stmt"/>
4278
- <line num="51" count="20" type="stmt"/>
4278
+ <line num="51" count="22" type="stmt"/>
4279
4279
  <line num="54" count="45" type="stmt"/>
4280
4280
  <line num="57" count="45" type="stmt"/>
4281
4281
  <line num="59" count="0" type="stmt"/>
@@ -4288,9 +4288,9 @@
4288
4288
  <line num="85" count="0" type="stmt"/>
4289
4289
  <line num="87" count="0" type="stmt"/>
4290
4290
  <line num="90" count="45" type="stmt"/>
4291
- <line num="91" count="20" type="stmt"/>
4292
- <line num="92" count="20" type="stmt"/>
4293
- <line num="98" count="20" type="stmt"/>
4291
+ <line num="91" count="22" type="stmt"/>
4292
+ <line num="92" count="22" type="stmt"/>
4293
+ <line num="98" count="22" type="stmt"/>
4294
4294
  <line num="101" count="45" type="stmt"/>
4295
4295
  <line num="102" count="0" type="stmt"/>
4296
4296
  <line num="107" count="0" type="stmt"/>
@@ -4334,7 +4334,7 @@
4334
4334
  <line num="75" count="8" type="stmt"/>
4335
4335
  <line num="82" count="0" type="stmt"/>
4336
4336
  <line num="91" count="0" type="stmt"/>
4337
- <line num="98" count="254" type="stmt"/>
4337
+ <line num="98" count="255" type="stmt"/>
4338
4338
  <line num="110" count="0" type="stmt"/>
4339
4339
  <line num="114" count="0" type="stmt"/>
4340
4340
  <line num="122" count="45" type="stmt"/>
@@ -4545,37 +4545,37 @@
4545
4545
  <line num="6" count="44" type="stmt"/>
4546
4546
  <line num="8" count="44" type="stmt"/>
4547
4547
  <line num="10" count="44" type="stmt"/>
4548
- <line num="13" count="24" type="stmt"/>
4549
- <line num="14" count="24" type="stmt"/>
4550
- <line num="15" count="27" type="stmt"/>
4551
- <line num="16" count="27" type="cond" truecount="2" falsecount="0"/>
4552
- <line num="17" count="25" type="stmt"/>
4553
- <line num="19" count="27" type="cond" truecount="2" falsecount="0"/>
4554
- <line num="20" count="24" type="stmt"/>
4548
+ <line num="13" count="27" type="stmt"/>
4549
+ <line num="14" count="27" type="stmt"/>
4550
+ <line num="15" count="30" type="stmt"/>
4551
+ <line num="16" count="30" type="cond" truecount="2" falsecount="0"/>
4552
+ <line num="17" count="28" type="stmt"/>
4553
+ <line num="19" count="30" type="cond" truecount="2" falsecount="0"/>
4554
+ <line num="20" count="27" type="stmt"/>
4555
4555
  <line num="22" count="3" type="stmt"/>
4556
- <line num="25" count="24" type="stmt"/>
4556
+ <line num="25" count="27" type="stmt"/>
4557
4557
  <line num="28" count="44" type="stmt"/>
4558
- <line num="30" count="27" type="stmt"/>
4559
- <line num="31" count="27" type="stmt"/>
4560
- <line num="36" count="27" type="stmt"/>
4558
+ <line num="30" count="30" type="stmt"/>
4559
+ <line num="31" count="30" type="stmt"/>
4560
+ <line num="36" count="30" type="stmt"/>
4561
4561
  <line num="37" count="3" type="stmt"/>
4562
4562
  <line num="39" count="3" type="stmt"/>
4563
4563
  <line num="40" count="3" type="cond" truecount="1" falsecount="1"/>
4564
4564
  <line num="41" count="0" type="stmt"/>
4565
4565
  <line num="44" count="3" type="stmt"/>
4566
4566
  <line num="54" count="44" type="stmt"/>
4567
- <line num="55" count="24" type="stmt"/>
4568
- <line num="56" count="24" type="stmt"/>
4569
- <line num="58" count="24" type="stmt"/>
4570
- <line num="59" count="25" type="stmt"/>
4571
- <line num="60" count="25" type="stmt"/>
4572
- <line num="61" count="50" type="cond" truecount="2" falsecount="0"/>
4573
- <line num="62" count="23" type="stmt"/>
4574
- <line num="64" count="27" type="stmt"/>
4575
- <line num="65" count="27" type="stmt"/>
4567
+ <line num="55" count="27" type="stmt"/>
4568
+ <line num="56" count="27" type="stmt"/>
4569
+ <line num="58" count="27" type="stmt"/>
4570
+ <line num="59" count="28" type="stmt"/>
4571
+ <line num="60" count="28" type="stmt"/>
4572
+ <line num="61" count="56" type="cond" truecount="2" falsecount="0"/>
4573
+ <line num="62" count="26" type="stmt"/>
4574
+ <line num="64" count="30" type="stmt"/>
4575
+ <line num="65" count="30" type="stmt"/>
4576
4576
  <line num="67" count="0" type="stmt"/>
4577
- <line num="75" count="25" type="stmt"/>
4578
- <line num="78" count="24" type="stmt"/>
4577
+ <line num="75" count="28" type="stmt"/>
4578
+ <line num="78" count="27" type="stmt"/>
4579
4579
  </file>
4580
4580
  <file name="usageQuoteReset.js" path="/home/runner/work/budibase/budibase/packages/server/src/utilities/usageQuota/usageQuoteReset.js">
4581
4581
  <metrics statements="5" coveredstatements="0" conditionals="2" coveredconditionals="0" methods="2" coveredmethods="0"/>