@budibase/worker 2.1.22-alpha.6 → 2.1.22-alpha.7

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 (123) hide show
  1. package/coverage/clover.xml +326 -305
  2. package/coverage/coverage-final.json +13 -13
  3. package/coverage/lcov-report/index.html +34 -34
  4. package/coverage/lcov-report/src/api/controllers/global/auth.ts.html +50 -38
  5. package/coverage/lcov-report/src/api/controllers/global/configs.js.html +18 -18
  6. package/coverage/lcov-report/src/api/controllers/global/email.js.html +1 -1
  7. package/coverage/lcov-report/src/api/controllers/global/index.html +10 -10
  8. package/coverage/lcov-report/src/api/controllers/global/license.ts.html +1 -1
  9. package/coverage/lcov-report/src/api/controllers/global/roles.js.html +1 -1
  10. package/coverage/lcov-report/src/api/controllers/global/self.ts.html +3 -3
  11. package/coverage/lcov-report/src/api/controllers/global/templates.ts.html +1 -1
  12. package/coverage/lcov-report/src/api/controllers/global/users.ts.html +1 -1
  13. package/coverage/lcov-report/src/api/controllers/global/workspaces.js.html +1 -1
  14. package/coverage/lcov-report/src/api/controllers/system/accounts.ts.html +1 -1
  15. package/coverage/lcov-report/src/api/controllers/system/environment.ts.html +1 -1
  16. package/coverage/lcov-report/src/api/controllers/system/index.html +1 -1
  17. package/coverage/lcov-report/src/api/controllers/system/migrations.ts.html +1 -1
  18. package/coverage/lcov-report/src/api/controllers/system/restore.ts.html +1 -1
  19. package/coverage/lcov-report/src/api/controllers/system/status.ts.html +1 -1
  20. package/coverage/lcov-report/src/api/controllers/system/tenants.ts.html +1 -1
  21. package/coverage/lcov-report/src/api/index.html +1 -1
  22. package/coverage/lcov-report/src/api/index.ts.html +1 -1
  23. package/coverage/lcov-report/src/api/routes/global/auth.js.html +1 -1
  24. package/coverage/lcov-report/src/api/routes/global/configs.js.html +10 -10
  25. package/coverage/lcov-report/src/api/routes/global/email.js.html +1 -1
  26. package/coverage/lcov-report/src/api/routes/global/index.html +1 -1
  27. package/coverage/lcov-report/src/api/routes/global/license.ts.html +1 -1
  28. package/coverage/lcov-report/src/api/routes/global/roles.js.html +1 -1
  29. package/coverage/lcov-report/src/api/routes/global/self.ts.html +1 -1
  30. package/coverage/lcov-report/src/api/routes/global/templates.ts.html +3 -3
  31. package/coverage/lcov-report/src/api/routes/global/users.js.html +1 -1
  32. package/coverage/lcov-report/src/api/routes/global/workspaces.js.html +1 -1
  33. package/coverage/lcov-report/src/api/routes/index.html +1 -1
  34. package/coverage/lcov-report/src/api/routes/index.ts.html +1 -1
  35. package/coverage/lcov-report/src/api/routes/system/accounts.ts.html +1 -1
  36. package/coverage/lcov-report/src/api/routes/system/environment.ts.html +1 -1
  37. package/coverage/lcov-report/src/api/routes/system/index.html +1 -1
  38. package/coverage/lcov-report/src/api/routes/system/migrations.ts.html +1 -1
  39. package/coverage/lcov-report/src/api/routes/system/restore.ts.html +1 -1
  40. package/coverage/lcov-report/src/api/routes/system/status.ts.html +1 -1
  41. package/coverage/lcov-report/src/api/routes/system/tenants.ts.html +1 -1
  42. package/coverage/lcov-report/src/api/routes/validation/index.html +1 -1
  43. package/coverage/lcov-report/src/api/routes/validation/index.ts.html +1 -1
  44. package/coverage/lcov-report/src/api/routes/validation/users.ts.html +1 -1
  45. package/coverage/lcov-report/src/constants/index.html +10 -10
  46. package/coverage/lcov-report/src/constants/{index.js.html → index.ts.html} +92 -113
  47. package/coverage/lcov-report/src/constants/templates/index.html +1 -1
  48. package/coverage/lcov-report/src/constants/templates/index.js.html +3 -3
  49. package/coverage/lcov-report/src/db/index.html +1 -1
  50. package/coverage/lcov-report/src/db/index.ts.html +1 -1
  51. package/coverage/lcov-report/src/environment.ts.html +1 -1
  52. package/coverage/lcov-report/src/index.html +1 -1
  53. package/coverage/lcov-report/src/index.ts.html +1 -1
  54. package/coverage/lcov-report/src/middleware/cloudRestricted.js.html +3 -3
  55. package/coverage/lcov-report/src/middleware/index.html +1 -1
  56. package/coverage/lcov-report/src/migrations/functions/globalInfoSyncUsers.ts.html +1 -1
  57. package/coverage/lcov-report/src/migrations/functions/index.html +1 -1
  58. package/coverage/lcov-report/src/migrations/index.html +1 -1
  59. package/coverage/lcov-report/src/migrations/index.ts.html +1 -1
  60. package/coverage/lcov-report/src/sdk/accounts/accounts.ts.html +1 -1
  61. package/coverage/lcov-report/src/sdk/accounts/index.html +1 -1
  62. package/coverage/lcov-report/src/sdk/accounts/index.ts.html +1 -1
  63. package/coverage/lcov-report/src/sdk/index.html +1 -1
  64. package/coverage/lcov-report/src/sdk/index.ts.html +1 -1
  65. package/coverage/lcov-report/src/sdk/users/events.ts.html +1 -1
  66. package/coverage/lcov-report/src/sdk/users/index.html +1 -1
  67. package/coverage/lcov-report/src/sdk/users/index.ts.html +1 -1
  68. package/coverage/lcov-report/src/sdk/users/users.ts.html +1 -1
  69. package/coverage/lcov-report/src/tests/TestConfiguration.ts.html +31 -22
  70. package/coverage/lcov-report/src/tests/api/accounts.ts.html +1 -1
  71. package/coverage/lcov-report/src/tests/api/auth.ts.html +1 -1
  72. package/coverage/lcov-report/src/tests/api/base.ts.html +1 -1
  73. package/coverage/lcov-report/src/tests/api/configs.ts.html +1 -1
  74. package/coverage/lcov-report/src/tests/api/email.ts.html +1 -1
  75. package/coverage/lcov-report/src/tests/api/environment.ts.html +1 -1
  76. package/coverage/lcov-report/src/tests/api/index.html +1 -1
  77. package/coverage/lcov-report/src/tests/api/index.ts.html +1 -1
  78. package/coverage/lcov-report/src/tests/api/migrations.ts.html +1 -1
  79. package/coverage/lcov-report/src/tests/api/restore.ts.html +1 -1
  80. package/coverage/lcov-report/src/tests/api/self.ts.html +1 -1
  81. package/coverage/lcov-report/src/tests/api/status.ts.html +1 -1
  82. package/coverage/lcov-report/src/tests/api/tenants.ts.html +1 -1
  83. package/coverage/lcov-report/src/tests/api/users.ts.html +1 -1
  84. package/coverage/lcov-report/src/tests/controllers.js.html +1 -1
  85. package/coverage/lcov-report/src/tests/index.html +15 -15
  86. package/coverage/lcov-report/src/tests/index.ts.html +1 -1
  87. package/coverage/lcov-report/src/tests/mocks/email.js.html +1 -1
  88. package/coverage/lcov-report/src/tests/mocks/index.html +1 -1
  89. package/coverage/lcov-report/src/tests/mocks/index.ts.html +1 -1
  90. package/coverage/lcov-report/src/tests/structures/configs.js.html +7 -7
  91. package/coverage/lcov-report/src/tests/structures/groups.ts.html +1 -1
  92. package/coverage/lcov-report/src/tests/structures/index.html +1 -1
  93. package/coverage/lcov-report/src/tests/structures/index.ts.html +1 -1
  94. package/coverage/lcov-report/src/tests/structures/users.ts.html +1 -1
  95. package/coverage/lcov-report/src/utilities/appService.js.html +4 -4
  96. package/coverage/lcov-report/src/utilities/{email.js.html → email.ts.html} +160 -61
  97. package/coverage/lcov-report/src/utilities/fileSystem.js.html +1 -1
  98. package/coverage/lcov-report/src/utilities/index.html +23 -23
  99. package/coverage/lcov-report/src/utilities/index.js.html +1 -1
  100. package/coverage/lcov-report/src/utilities/{redis.js.html → redis.ts.html} +53 -38
  101. package/coverage/lcov-report/src/utilities/{templates.js.html → templates.ts.html} +38 -38
  102. package/coverage/lcov-report/src/utilities/users.js.html +1 -1
  103. package/coverage/lcov.info +593 -529
  104. package/jest.config.ts +1 -0
  105. package/package.json +6 -6
  106. package/src/api/controllers/global/auth.ts +34 -30
  107. package/src/api/controllers/global/configs.js +17 -17
  108. package/src/api/controllers/global/self.ts +2 -2
  109. package/src/api/routes/global/configs.js +9 -9
  110. package/src/api/routes/global/templates.ts +2 -2
  111. package/src/api/routes/global/tests/configs.spec.ts +29 -29
  112. package/src/constants/{index.js → index.ts} +57 -64
  113. package/src/constants/templates/index.js +2 -2
  114. package/src/middleware/cloudRestricted.js +2 -2
  115. package/src/middleware/tests/tenancy.spec.ts +7 -7
  116. package/src/tests/TestConfiguration.ts +15 -12
  117. package/src/tests/structures/configs.js +6 -6
  118. package/src/utilities/appService.js +3 -3
  119. package/src/utilities/{email.js → email.ts} +78 -45
  120. package/src/utilities/{redis.js → redis.ts} +29 -24
  121. package/src/utilities/templates.ts +49 -0
  122. package/tsconfig.build.json +3 -3
  123. package/src/utilities/templates.js +0 -49
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1668605467465" clover="3.2.0">
3
- <project timestamp="1668605467465" name="All files">
4
- <metrics statements="1836" coveredstatements="1464" conditionals="559" coveredconditionals="377" methods="417" coveredmethods="313" elements="2812" coveredelements="2154" complexity="0" loc="1836" ncloc="1836" packages="22" files="77" classes="77"/>
2
+ <coverage generated="1668704346072" clover="3.2.0">
3
+ <project timestamp="1668704346072" name="All files">
4
+ <metrics statements="1857" coveredstatements="1483" conditionals="590" coveredconditionals="406" methods="423" coveredmethods="318" elements="2870" coveredelements="2207" complexity="0" loc="1857" ncloc="1857" packages="22" files="77" classes="77"/>
5
5
  <package name="src">
6
6
  <metrics statements="80" coveredstatements="53" conditionals="26" coveredconditionals="17" methods="16" coveredmethods="7"/>
7
7
  <file name="environment.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/environment.ts">
@@ -128,132 +128,131 @@
128
128
  </file>
129
129
  </package>
130
130
  <package name="src.api.controllers.global">
131
- <metrics statements="609" coveredstatements="361" conditionals="186" coveredconditionals="101" methods="136" coveredmethods="68"/>
131
+ <metrics statements="608" coveredstatements="360" conditionals="186" coveredconditionals="101" methods="136" coveredmethods="68"/>
132
132
  <file name="auth.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/controllers/global/auth.ts">
133
- <metrics statements="123" coveredstatements="76" conditionals="22" coveredconditionals="8" methods="43" coveredmethods="21"/>
133
+ <metrics statements="122" coveredstatements="75" conditionals="22" coveredconditionals="8" methods="43" coveredmethods="21"/>
134
134
  <line num="1" count="17" type="stmt"/>
135
135
  <line num="2" count="17" type="stmt"/>
136
- <line num="3" count="17" type="stmt"/>
137
- <line num="4" count="17" type="stmt"/>
138
- <line num="5" count="17" type="stmt"/>
139
- <line num="6" count="17" type="stmt"/>
140
- <line num="7" count="17" type="stmt"/>
141
136
  <line num="8" count="17" type="stmt"/>
142
137
  <line num="9" count="17" type="stmt"/>
143
138
  <line num="10" count="17" type="stmt"/>
144
139
  <line num="11" count="17" type="stmt"/>
140
+ <line num="12" count="17" type="stmt"/>
145
141
  <line num="14" count="17" type="stmt"/>
146
- <line num="15" count="0" type="stmt"/>
142
+ <line num="15" count="17" type="stmt"/>
143
+ <line num="16" count="17" type="stmt"/>
147
144
  <line num="18" count="17" type="stmt"/>
148
- <line num="19" count="3" type="stmt"/>
149
- <line num="23" count="1" type="cond" truecount="0" falsecount="1"/>
150
- <line num="24" count="0" type="stmt"/>
151
- <line num="25" count="0" type="cond" truecount="0" falsecount="2"/>
152
- <line num="28" count="1" type="cond" truecount="0" falsecount="1"/>
145
+ <line num="19" count="0" type="stmt"/>
146
+ <line num="22" count="17" type="stmt"/>
147
+ <line num="23" count="3" type="stmt"/>
148
+ <line num="27" count="1" type="cond" truecount="0" falsecount="1"/>
149
+ <line num="28" count="0" type="stmt"/>
153
150
  <line num="29" count="0" type="cond" truecount="0" falsecount="2"/>
154
- <line num="33" count="1" type="stmt"/>
155
- <line num="35" count="1" type="stmt"/>
156
- <line num="38" count="1" type="cond" truecount="0" falsecount="1"/>
157
- <line num="39" count="0" type="stmt"/>
158
- <line num="43" count="17" type="stmt"/>
159
- <line num="44" count="0" type="stmt"/>
160
- <line num="46" count="0" type="stmt"/>
161
- <line num="47" count="0" type="stmt"/>
151
+ <line num="32" count="1" type="cond" truecount="0" falsecount="1"/>
152
+ <line num="33" count="0" type="cond" truecount="0" falsecount="2"/>
153
+ <line num="37" count="1" type="stmt"/>
154
+ <line num="39" count="1" type="stmt"/>
155
+ <line num="42" count="1" type="cond" truecount="0" falsecount="1"/>
156
+ <line num="43" count="0" type="stmt"/>
157
+ <line num="47" count="17" type="stmt"/>
162
158
  <line num="48" count="0" type="stmt"/>
163
- <line num="49" count="0" type="stmt"/>
159
+ <line num="50" count="0" type="stmt"/>
164
160
  <line num="51" count="0" type="stmt"/>
165
- <line num="56" count="17" type="stmt"/>
166
- <line num="57" count="0" type="stmt"/>
167
- <line num="58" count="0" type="stmt"/>
168
- <line num="59" count="0" type="stmt"/>
169
- <line num="62" count="17" type="stmt"/>
161
+ <line num="52" count="0" type="stmt"/>
162
+ <line num="53" count="0" type="stmt"/>
163
+ <line num="55" count="0" type="stmt"/>
164
+ <line num="60" count="17" type="stmt"/>
165
+ <line num="61" count="0" type="stmt"/>
166
+ <line num="62" count="0" type="stmt"/>
170
167
  <line num="63" count="0" type="stmt"/>
171
- <line num="64" count="0" type="cond" truecount="0" falsecount="2"/>
172
- <line num="66" count="0" type="stmt"/>
168
+ <line num="66" count="17" type="stmt"/>
173
169
  <line num="67" count="0" type="stmt"/>
174
- <line num="74" count="17" type="stmt"/>
175
- <line num="75" count="2" type="stmt"/>
176
- <line num="76" count="2" type="stmt"/>
177
- <line num="77" count="2" type="cond" truecount="0" falsecount="1"/>
178
- <line num="78" count="0" type="stmt"/>
179
- <line num="83" count="2" type="stmt"/>
180
- <line num="84" count="2" type="stmt"/>
181
- <line num="86" count="2" type="cond" truecount="1" falsecount="0"/>
170
+ <line num="68" count="0" type="cond" truecount="0" falsecount="2"/>
171
+ <line num="70" count="0" type="stmt"/>
172
+ <line num="71" count="0" type="stmt"/>
173
+ <line num="78" count="17" type="stmt"/>
174
+ <line num="79" count="2" type="stmt"/>
175
+ <line num="80" count="2" type="stmt"/>
176
+ <line num="81" count="2" type="cond" truecount="0" falsecount="1"/>
177
+ <line num="82" count="0" type="stmt"/>
182
178
  <line num="87" count="2" type="stmt"/>
179
+ <line num="88" count="2" type="stmt"/>
180
+ <line num="90" count="2" type="cond" truecount="1" falsecount="0"/>
183
181
  <line num="91" count="2" type="stmt"/>
184
- <line num="94" count="0" type="stmt"/>
185
- <line num="97" count="2" type="stmt"/>
186
- <line num="105" count="17" type="stmt"/>
187
- <line num="106" count="1" type="stmt"/>
188
- <line num="107" count="1" type="stmt"/>
189
- <line num="108" count="1" type="stmt"/>
190
- <line num="109" count="1" type="stmt"/>
182
+ <line num="95" count="2" type="stmt"/>
183
+ <line num="98" count="0" type="stmt"/>
184
+ <line num="101" count="2" type="stmt"/>
185
+ <line num="109" count="17" type="stmt"/>
191
186
  <line num="110" count="1" type="stmt"/>
192
187
  <line num="111" count="1" type="stmt"/>
193
188
  <line num="112" count="1" type="stmt"/>
194
189
  <line num="113" count="1" type="stmt"/>
190
+ <line num="114" count="1" type="stmt"/>
191
+ <line num="115" count="1" type="stmt"/>
192
+ <line num="116" count="1" type="stmt"/>
195
193
  <line num="117" count="1" type="stmt"/>
196
- <line num="118" count="1" type="stmt"/>
197
- <line num="120" count="0" type="stmt"/>
198
- <line num="121" count="0" type="stmt"/>
199
- <line num="125" count="17" type="stmt"/>
200
- <line num="126" count="1" type="cond" truecount="3" falsecount="0"/>
201
- <line num="127" count="1" type="stmt"/>
202
- <line num="129" count="1" type="stmt"/>
203
- <line num="132" count="17" type="stmt"/>
204
- <line num="133" count="0" type="stmt"/>
205
- <line num="134" count="0" type="stmt"/>
206
- <line num="135" count="0" type="stmt"/>
194
+ <line num="121" count="1" type="stmt"/>
195
+ <line num="122" count="1" type="stmt"/>
196
+ <line num="124" count="0" type="stmt"/>
197
+ <line num="125" count="0" type="stmt"/>
198
+ <line num="129" count="17" type="stmt"/>
199
+ <line num="130" count="1" type="cond" truecount="3" falsecount="0"/>
200
+ <line num="131" count="1" type="stmt"/>
201
+ <line num="133" count="1" type="stmt"/>
202
+ <line num="136" count="17" type="stmt"/>
207
203
  <line num="137" count="0" type="stmt"/>
208
- <line num="147" count="0" type="stmt"/>
209
- <line num="150" count="17" type="stmt"/>
204
+ <line num="138" count="0" type="stmt"/>
205
+ <line num="139" count="0" type="stmt"/>
206
+ <line num="141" count="0" type="stmt"/>
210
207
  <line num="151" count="0" type="stmt"/>
211
- <line num="152" count="0" type="stmt"/>
212
- <line num="153" count="0" type="stmt"/>
213
- <line num="154" count="0" type="stmt"/>
208
+ <line num="154" count="17" type="stmt"/>
214
209
  <line num="155" count="0" type="stmt"/>
215
- <line num="162" count="17" type="stmt"/>
216
- <line num="163" count="0" type="stmt"/>
217
- <line num="165" count="0" type="stmt"/>
210
+ <line num="156" count="0" type="stmt"/>
211
+ <line num="157" count="0" type="stmt"/>
212
+ <line num="158" count="0" type="stmt"/>
213
+ <line num="159" count="0" type="stmt"/>
214
+ <line num="166" count="17" type="stmt"/>
215
+ <line num="167" count="0" type="stmt"/>
218
216
  <line num="169" count="0" type="stmt"/>
219
- <line num="170" count="0" type="stmt"/>
220
- <line num="176" count="0" type="stmt"/>
221
- <line num="183" count="17" type="stmt"/>
222
- <line num="184" count="0" type="stmt"/>
223
- <line num="186" count="0" type="stmt"/>
217
+ <line num="173" count="0" type="stmt"/>
218
+ <line num="174" count="0" type="stmt"/>
219
+ <line num="180" count="0" type="stmt"/>
220
+ <line num="187" count="17" type="stmt"/>
221
+ <line num="188" count="0" type="stmt"/>
224
222
  <line num="190" count="0" type="stmt"/>
225
- <line num="191" count="0" type="stmt"/>
226
- <line num="197" count="0" type="stmt"/>
227
- <line num="200" count="0" type="stmt"/>
223
+ <line num="194" count="0" type="stmt"/>
224
+ <line num="195" count="0" type="stmt"/>
228
225
  <line num="201" count="0" type="stmt"/>
229
- <line num="202" count="0" type="stmt"/>
230
- <line num="203" count="0" type="stmt"/>
226
+ <line num="204" count="0" type="stmt"/>
231
227
  <line num="205" count="0" type="stmt"/>
232
- <line num="210" count="17" type="stmt"/>
233
- <line num="211" count="3" type="stmt"/>
234
- <line num="212" count="3" type="stmt"/>
235
- <line num="217" count="3" type="stmt"/>
236
- <line num="218" count="3" type="stmt"/>
228
+ <line num="206" count="0" type="stmt"/>
229
+ <line num="207" count="0" type="stmt"/>
230
+ <line num="209" count="0" type="stmt"/>
231
+ <line num="214" count="17" type="stmt"/>
232
+ <line num="215" count="3" type="stmt"/>
233
+ <line num="216" count="3" type="stmt"/>
237
234
  <line num="221" count="3" type="stmt"/>
235
+ <line num="222" count="3" type="stmt"/>
238
236
  <line num="225" count="3" type="stmt"/>
239
- <line num="232" count="17" type="stmt"/>
240
- <line num="233" count="2" type="stmt"/>
241
- <line num="234" count="2" type="stmt"/>
242
- <line num="236" count="2" type="stmt"/>
237
+ <line num="229" count="3" type="stmt"/>
238
+ <line num="236" count="17" type="stmt"/>
239
+ <line num="237" count="2" type="stmt"/>
243
240
  <line num="238" count="2" type="stmt"/>
244
- <line num="239" count="2" type="stmt"/>
245
- <line num="244" count="2" type="stmt"/>
246
- <line num="247" count="2" type="cond" truecount="4" falsecount="2"/>
247
- <line num="251" count="2" type="stmt"/>
248
- <line num="257" count="17" type="stmt"/>
249
- <line num="258" count="1" type="stmt"/>
250
- <line num="259" count="1" type="stmt"/>
251
- <line num="261" count="1" type="stmt"/>
252
- <line num="264" count="1" type="stmt"/>
241
+ <line num="240" count="2" type="stmt"/>
242
+ <line num="242" count="2" type="stmt"/>
243
+ <line num="243" count="2" type="stmt"/>
244
+ <line num="248" count="2" type="stmt"/>
245
+ <line num="251" count="2" type="cond" truecount="4" falsecount="2"/>
246
+ <line num="255" count="2" type="stmt"/>
247
+ <line num="261" count="17" type="stmt"/>
248
+ <line num="262" count="1" type="stmt"/>
249
+ <line num="263" count="1" type="stmt"/>
253
250
  <line num="265" count="1" type="stmt"/>
254
- <line num="266" count="1" type="stmt"/>
255
- <line num="267" count="1" type="stmt"/>
251
+ <line num="268" count="1" type="stmt"/>
256
252
  <line num="269" count="1" type="stmt"/>
253
+ <line num="270" count="1" type="stmt"/>
254
+ <line num="271" count="1" type="stmt"/>
255
+ <line num="273" count="1" type="stmt"/>
257
256
  </file>
258
257
  <file name="configs.js" path="/home/runner/work/budibase/budibase/packages/worker/src/api/controllers/global/configs.js">
259
258
  <metrics statements="175" coveredstatements="118" conditionals="103" coveredconditionals="65" methods="23" coveredmethods="16"/>
@@ -1057,26 +1056,48 @@
1057
1056
  </file>
1058
1057
  </package>
1059
1058
  <package name="src.constants">
1060
- <metrics statements="17" coveredstatements="17" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
1061
- <file name="index.js" path="/home/runner/work/budibase/budibase/packages/worker/src/constants/index.js">
1062
- <metrics statements="17" coveredstatements="17" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
1059
+ <metrics statements="39" coveredstatements="39" conditionals="10" coveredconditionals="10" methods="5" coveredmethods="5"/>
1060
+ <file name="index.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/constants/index.ts">
1061
+ <metrics statements="39" coveredstatements="39" conditionals="10" coveredconditionals="10" methods="5" coveredmethods="5"/>
1063
1062
  <line num="1" count="17" type="stmt"/>
1064
1063
  <line num="3" count="17" type="stmt"/>
1065
- <line num="6" count="17" type="stmt"/>
1064
+ <line num="6" count="17" type="cond" truecount="2" falsecount="0"/>
1065
+ <line num="7" count="17" type="stmt"/>
1066
+ <line num="8" count="17" type="stmt"/>
1066
1067
  <line num="11" count="17" type="stmt"/>
1067
- <line num="13" count="17" type="stmt"/>
1068
- <line num="18" count="17" type="stmt"/>
1069
- <line num="22" count="17" type="stmt"/>
1070
- <line num="30" count="17" type="stmt"/>
1068
+ <line num="13" count="17" type="cond" truecount="2" falsecount="0"/>
1069
+ <line num="14" count="17" type="stmt"/>
1070
+ <line num="15" count="17" type="stmt"/>
1071
+ <line num="18" count="17" type="cond" truecount="2" falsecount="0"/>
1072
+ <line num="19" count="17" type="stmt"/>
1073
+ <line num="22" count="17" type="cond" truecount="2" falsecount="0"/>
1074
+ <line num="23" count="17" type="stmt"/>
1075
+ <line num="24" count="17" type="stmt"/>
1076
+ <line num="25" count="17" type="stmt"/>
1077
+ <line num="26" count="17" type="stmt"/>
1078
+ <line num="27" count="17" type="stmt"/>
1079
+ <line num="30" count="17" type="cond" truecount="2" falsecount="0"/>
1080
+ <line num="31" count="17" type="stmt"/>
1081
+ <line num="32" count="17" type="stmt"/>
1082
+ <line num="33" count="17" type="stmt"/>
1083
+ <line num="34" count="17" type="stmt"/>
1084
+ <line num="35" count="17" type="stmt"/>
1085
+ <line num="36" count="17" type="stmt"/>
1086
+ <line num="37" count="17" type="stmt"/>
1087
+ <line num="38" count="17" type="stmt"/>
1088
+ <line num="39" count="17" type="stmt"/>
1089
+ <line num="40" count="17" type="stmt"/>
1090
+ <line num="41" count="17" type="stmt"/>
1091
+ <line num="42" count="17" type="stmt"/>
1092
+ <line num="43" count="17" type="stmt"/>
1093
+ <line num="44" count="17" type="stmt"/>
1094
+ <line num="45" count="17" type="stmt"/>
1095
+ <line num="46" count="17" type="stmt"/>
1096
+ <line num="47" count="17" type="stmt"/>
1071
1097
  <line num="50" count="17" type="stmt"/>
1072
1098
  <line num="93" count="17" type="stmt"/>
1073
1099
  <line num="175" count="17" type="stmt"/>
1074
- <line num="178" count="17" type="stmt"/>
1075
- <line num="179" count="17" type="stmt"/>
1076
- <line num="180" count="17" type="stmt"/>
1077
- <line num="181" count="17" type="stmt"/>
1078
- <line num="182" count="17" type="stmt"/>
1079
- <line num="183" count="17" type="stmt"/>
1100
+ <line num="176" count="17" type="stmt"/>
1080
1101
  </file>
1081
1102
  </package>
1082
1103
  <package name="src.constants.templates">
@@ -1563,9 +1584,9 @@
1563
1584
  </file>
1564
1585
  </package>
1565
1586
  <package name="src.tests">
1566
- <metrics statements="118" coveredstatements="111" conditionals="16" coveredconditionals="12" methods="37" coveredmethods="33"/>
1587
+ <metrics statements="120" coveredstatements="111" conditionals="16" coveredconditionals="12" methods="38" coveredmethods="33"/>
1567
1588
  <file name="TestConfiguration.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/TestConfiguration.ts">
1568
- <metrics statements="109" coveredstatements="102" conditionals="16" coveredconditionals="12" methods="37" coveredmethods="33"/>
1589
+ <metrics statements="111" coveredstatements="102" conditionals="16" coveredconditionals="12" methods="38" coveredmethods="33"/>
1569
1590
  <line num="1" count="17" type="stmt"/>
1570
1591
  <line num="2" count="17" type="stmt"/>
1571
1592
  <line num="3" count="17" type="stmt"/>
@@ -1574,107 +1595,109 @@
1574
1595
  <line num="6" count="17" type="stmt"/>
1575
1596
  <line num="7" count="17" type="stmt"/>
1576
1597
  <line num="8" count="17" type="stmt"/>
1598
+ <line num="16" count="17" type="stmt"/>
1577
1599
  <line num="18" count="17" type="stmt"/>
1578
- <line num="20" count="17" type="stmt"/>
1579
- <line num="22" count="17" type="cond" truecount="2" falsecount="0"/>
1580
- <line num="23" count="17" type="stmt"/>
1581
- <line num="24" count="17" type="stmt"/>
1582
- <line num="40" count="17" type="cond" truecount="1" falsecount="1"/>
1583
- <line num="41" count="17" type="stmt"/>
1584
- <line num="42" count="0" type="cond" truecount="0" falsecount="1"/>
1585
- <line num="43" count="0" type="stmt"/>
1586
- <line num="46" count="17" type="cond" truecount="1" falsecount="0"/>
1587
- <line num="47" count="17" type="stmt"/>
1600
+ <line num="20" count="17" type="cond" truecount="2" falsecount="0"/>
1601
+ <line num="21" count="17" type="stmt"/>
1602
+ <line num="22" count="17" type="stmt"/>
1603
+ <line num="38" count="17" type="cond" truecount="1" falsecount="1"/>
1604
+ <line num="39" count="17" type="stmt"/>
1605
+ <line num="40" count="0" type="cond" truecount="0" falsecount="1"/>
1606
+ <line num="41" count="0" type="stmt"/>
1607
+ <line num="44" count="17" type="cond" truecount="1" falsecount="0"/>
1608
+ <line num="45" count="17" type="stmt"/>
1609
+ <line num="46" count="17" type="stmt"/>
1588
1610
  <line num="48" count="17" type="stmt"/>
1589
- <line num="50" count="17" type="stmt"/>
1590
- <line num="53" count="17" type="stmt"/>
1591
- <line num="57" count="0" type="stmt"/>
1592
- <line num="62" count="17" type="stmt"/>
1593
- <line num="63" count="25" type="stmt"/>
1594
- <line num="64" count="25" type="stmt"/>
1595
- <line num="67" count="17" type="stmt"/>
1596
- <line num="68" count="25" type="stmt"/>
1597
- <line num="69" count="25" type="stmt"/>
1598
- <line num="72" count="17" type="stmt"/>
1599
- <line num="73" count="21" type="stmt"/>
1600
- <line num="74" count="21" type="stmt"/>
1601
- <line num="77" count="17" type="stmt"/>
1602
- <line num="78" count="4" type="stmt"/>
1603
- <line num="79" count="4" type="stmt"/>
1611
+ <line num="51" count="17" type="stmt"/>
1612
+ <line num="55" count="0" type="stmt"/>
1613
+ <line num="60" count="17" type="stmt"/>
1614
+ <line num="61" count="25" type="stmt"/>
1615
+ <line num="62" count="25" type="stmt"/>
1616
+ <line num="65" count="17" type="stmt"/>
1617
+ <line num="66" count="25" type="stmt"/>
1618
+ <line num="67" count="25" type="stmt"/>
1619
+ <line num="70" count="17" type="stmt"/>
1620
+ <line num="71" count="21" type="stmt"/>
1621
+ <line num="72" count="21" type="stmt"/>
1622
+ <line num="75" count="17" type="stmt"/>
1623
+ <line num="76" count="4" type="stmt"/>
1624
+ <line num="77" count="4" type="stmt"/>
1625
+ <line num="83" count="152" type="stmt"/>
1604
1626
  <line num="85" count="152" type="stmt"/>
1627
+ <line num="86" count="152" type="stmt"/>
1605
1628
  <line num="87" count="152" type="stmt"/>
1606
1629
  <line num="88" count="152" type="stmt"/>
1607
1630
  <line num="89" count="152" type="stmt"/>
1608
- <line num="90" count="152" type="stmt"/>
1609
- <line num="91" count="152" type="stmt"/>
1610
- <line num="94" count="152" type="stmt"/>
1611
- <line num="95" count="16" type="stmt"/>
1612
- <line num="97" count="152" type="cond" truecount="1" falsecount="0"/>
1613
- <line num="98" count="72" type="stmt"/>
1614
- <line num="100" count="152" type="stmt"/>
1615
- <line num="101" count="152" type="stmt"/>
1616
- <line num="103" count="136" type="stmt"/>
1617
- <line num="109" count="17" type="stmt"/>
1631
+ <line num="92" count="152" type="stmt"/>
1632
+ <line num="93" count="16" type="stmt"/>
1633
+ <line num="95" count="152" type="cond" truecount="1" falsecount="0"/>
1634
+ <line num="96" count="72" type="stmt"/>
1635
+ <line num="98" count="152" type="stmt"/>
1636
+ <line num="99" count="152" type="stmt"/>
1637
+ <line num="101" count="136" type="stmt"/>
1638
+ <line num="107" count="17" type="stmt"/>
1639
+ <line num="108" count="17" type="stmt"/>
1618
1640
  <line num="110" count="17" type="stmt"/>
1641
+ <line num="111" count="17" type="stmt"/>
1619
1642
  <line num="112" count="17" type="stmt"/>
1620
- <line num="113" count="17" type="stmt"/>
1621
- <line num="114" count="17" type="stmt"/>
1622
- <line num="119" count="17" type="cond" truecount="1" falsecount="0"/>
1623
- <line num="120" count="17" type="stmt"/>
1624
- <line num="126" count="17" type="stmt"/>
1625
- <line num="128" count="6" type="stmt"/>
1626
- <line num="131" count="6" type="stmt"/>
1627
- <line num="139" count="6" type="stmt"/>
1643
+ <line num="117" count="17" type="cond" truecount="1" falsecount="0"/>
1644
+ <line num="118" count="17" type="stmt"/>
1645
+ <line num="124" count="17" type="stmt"/>
1646
+ <line num="126" count="6" type="stmt"/>
1647
+ <line num="129" count="6" type="stmt"/>
1648
+ <line num="137" count="6" type="stmt"/>
1649
+ <line num="138" count="6" type="stmt"/>
1628
1650
  <line num="140" count="6" type="stmt"/>
1629
- <line num="142" count="6" type="stmt"/>
1630
- <line num="146" count="440" type="stmt"/>
1631
- <line num="147" count="440" type="stmt"/>
1632
- <line num="149" count="373" type="stmt"/>
1633
- <line num="162" count="44" type="stmt"/>
1634
- <line num="170" count="44" type="stmt"/>
1635
- <line num="174" count="68" type="cond" truecount="0" falsecount="1"/>
1636
- <line num="175" count="0" type="stmt"/>
1637
- <line num="177" count="68" type="stmt"/>
1638
- <line num="183" count="67" type="stmt"/>
1639
- <line num="188" count="67" type="stmt"/>
1640
- <line num="189" count="67" type="stmt"/>
1641
- <line num="197" count="61" type="stmt"/>
1642
- <line num="198" count="61" type="cond" truecount="2" falsecount="0"/>
1643
- <line num="199" count="59" type="stmt"/>
1644
- <line num="200" count="2" type="cond" truecount="1" falsecount="1"/>
1645
- <line num="201" count="2" type="stmt"/>
1646
- <line num="203" count="0" type="stmt"/>
1647
- <line num="208" count="19" type="stmt"/>
1648
- <line num="211" count="17" type="stmt"/>
1649
- <line num="212" count="1" type="stmt"/>
1650
- <line num="218" count="17" type="stmt"/>
1651
- <line num="222" count="17" type="stmt"/>
1652
- <line num="226" count="17" type="stmt"/>
1653
- <line num="230" count="17" type="stmt"/>
1654
- <line num="234" count="68" type="stmt"/>
1655
- <line num="235" count="68" type="stmt"/>
1656
- <line num="240" count="58" type="cond" truecount="1" falsecount="0"/>
1657
- <line num="241" count="17" type="stmt"/>
1651
+ <line num="144" count="440" type="stmt"/>
1652
+ <line num="145" count="440" type="stmt"/>
1653
+ <line num="147" count="373" type="stmt"/>
1654
+ <line num="160" count="44" type="stmt"/>
1655
+ <line num="168" count="44" type="stmt"/>
1656
+ <line num="172" count="68" type="cond" truecount="0" falsecount="1"/>
1657
+ <line num="173" count="0" type="stmt"/>
1658
+ <line num="175" count="68" type="stmt"/>
1659
+ <line num="181" count="67" type="stmt"/>
1660
+ <line num="186" count="67" type="stmt"/>
1661
+ <line num="187" count="67" type="stmt"/>
1662
+ <line num="195" count="61" type="stmt"/>
1663
+ <line num="196" count="61" type="cond" truecount="2" falsecount="0"/>
1664
+ <line num="197" count="59" type="stmt"/>
1665
+ <line num="198" count="2" type="cond" truecount="1" falsecount="1"/>
1666
+ <line num="199" count="2" type="stmt"/>
1667
+ <line num="201" count="0" type="stmt"/>
1668
+ <line num="206" count="19" type="stmt"/>
1669
+ <line num="209" count="17" type="stmt"/>
1670
+ <line num="210" count="1" type="stmt"/>
1671
+ <line num="216" count="17" type="stmt"/>
1672
+ <line num="220" count="17" type="stmt"/>
1673
+ <line num="224" count="17" type="stmt"/>
1674
+ <line num="228" count="17" type="stmt"/>
1675
+ <line num="232" count="68" type="stmt"/>
1676
+ <line num="233" count="68" type="stmt"/>
1677
+ <line num="238" count="58" type="cond" truecount="1" falsecount="0"/>
1678
+ <line num="239" count="17" type="stmt"/>
1679
+ <line num="241" count="58" type="stmt"/>
1680
+ <line num="242" count="58" type="stmt"/>
1658
1681
  <line num="243" count="58" type="stmt"/>
1659
- <line num="244" count="58" type="stmt"/>
1660
- <line num="245" count="58" type="stmt"/>
1661
- <line num="251" count="36" type="stmt"/>
1662
- <line num="252" count="36" type="stmt"/>
1663
- <line num="259" count="36" type="cond" truecount="1" falsecount="0"/>
1664
- <line num="260" count="36" type="stmt"/>
1665
- <line num="277" count="8" type="stmt"/>
1666
- <line num="278" count="8" type="stmt"/>
1667
- <line num="288" count="0" type="stmt"/>
1668
- <line num="289" count="0" type="stmt"/>
1669
- <line num="295" count="2" type="stmt"/>
1670
- <line num="296" count="2" type="stmt"/>
1682
+ <line num="249" count="36" type="stmt"/>
1683
+ <line num="250" count="36" type="stmt"/>
1684
+ <line num="257" count="36" type="cond" truecount="1" falsecount="0"/>
1685
+ <line num="258" count="36" type="stmt"/>
1686
+ <line num="275" count="8" type="stmt"/>
1687
+ <line num="276" count="8" type="stmt"/>
1688
+ <line num="286" count="0" type="stmt"/>
1689
+ <line num="287" count="0" type="stmt"/>
1690
+ <line num="293" count="0" type="stmt"/>
1691
+ <line num="294" count="0" type="stmt"/>
1671
1692
  <line num="298" count="2" type="stmt"/>
1672
1693
  <line num="299" count="2" type="stmt"/>
1673
- <line num="305" count="9" type="stmt"/>
1674
- <line num="306" count="9" type="stmt"/>
1675
- <line num="310" count="3" type="stmt"/>
1676
- <line num="311" count="3" type="stmt"/>
1677
- <line num="319" count="17" type="stmt"/>
1694
+ <line num="301" count="2" type="stmt"/>
1695
+ <line num="302" count="2" type="stmt"/>
1696
+ <line num="308" count="9" type="stmt"/>
1697
+ <line num="309" count="9" type="stmt"/>
1698
+ <line num="313" count="3" type="stmt"/>
1699
+ <line num="314" count="3" type="stmt"/>
1700
+ <line num="322" count="17" type="stmt"/>
1678
1701
  </file>
1679
1702
  <file name="controllers.js" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/controllers.js">
1680
1703
  <metrics statements="1" coveredstatements="1" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
@@ -1949,7 +1972,7 @@
1949
1972
  </file>
1950
1973
  </package>
1951
1974
  <package name="src.utilities">
1952
- <metrics statements="163" coveredstatements="134" conditionals="97" coveredconditionals="57" methods="23" coveredmethods="22"/>
1975
+ <metrics statements="161" coveredstatements="132" conditionals="118" coveredconditionals="76" methods="23" coveredmethods="22"/>
1953
1976
  <file name="appService.js" path="/home/runner/work/budibase/budibase/packages/worker/src/utilities/appService.js">
1954
1977
  <metrics statements="20" coveredstatements="10" conditionals="10" coveredconditionals="3" methods="2" coveredmethods="2"/>
1955
1978
  <line num="1" count="17" type="stmt"/>
@@ -1973,80 +1996,80 @@
1973
1996
  <line num="30" count="93" type="cond" truecount="2" falsecount="2"/>
1974
1997
  <line num="31" count="0" type="stmt"/>
1975
1998
  </file>
1976
- <file name="email.js" path="/home/runner/work/budibase/budibase/packages/worker/src/utilities/email.js">
1977
- <metrics statements="72" coveredstatements="60" conditionals="59" coveredconditionals="37" methods="7" coveredmethods="7"/>
1999
+ <file name="email.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/utilities/email.ts">
2000
+ <metrics statements="72" coveredstatements="60" conditionals="85" coveredconditionals="57" methods="7" coveredmethods="7"/>
1978
2001
  <line num="1" count="17" type="stmt"/>
1979
2002
  <line num="2" count="17" type="stmt"/>
1980
2003
  <line num="3" count="17" type="stmt"/>
1981
2004
  <line num="4" count="17" type="stmt"/>
1982
2005
  <line num="5" count="17" type="stmt"/>
1983
2006
  <line num="6" count="17" type="stmt"/>
1984
- <line num="7" count="17" type="stmt"/>
1985
2007
  <line num="8" count="17" type="stmt"/>
1986
2008
  <line num="9" count="17" type="stmt"/>
1987
- <line num="11" count="17" type="stmt"/>
1988
- <line num="12" count="17" type="stmt"/>
1989
- <line num="14" count="17" type="stmt"/>
1990
- <line num="23" count="22" type="stmt"/>
1991
- <line num="25" count="22" type="cond" truecount="1" falsecount="1"/>
1992
- <line num="26" count="0" type="stmt"/>
1993
- <line num="28" count="22" type="cond" truecount="1" falsecount="1"/>
1994
- <line num="29" count="22" type="stmt"/>
1995
- <line num="35" count="22" type="stmt"/>
1996
- <line num="38" count="22" type="cond" truecount="2" falsecount="0"/>
1997
- <line num="39" count="3" type="stmt"/>
1998
- <line num="42" count="0" type="stmt"/>
1999
- <line num="52" count="22" type="stmt"/>
2000
- <line num="56" count="7" type="cond" truecount="2" falsecount="1"/>
2001
- <line num="58" count="2" type="stmt"/>
2002
- <line num="60" count="5" type="stmt"/>
2003
- <line num="62" count="0" type="stmt"/>
2004
- <line num="77" count="7" type="cond" truecount="1" falsecount="1"/>
2005
- <line num="78" count="0" type="stmt"/>
2006
- <line num="80" count="7" type="stmt"/>
2007
- <line num="84" count="7" type="cond" truecount="3" falsecount="1"/>
2009
+ <line num="29" count="17" type="stmt"/>
2010
+ <line num="30" count="17" type="stmt"/>
2011
+ <line num="32" count="17" type="stmt"/>
2012
+ <line num="41" count="22" type="stmt"/>
2013
+ <line num="43" count="22" type="cond" truecount="0" falsecount="1"/>
2014
+ <line num="44" count="0" type="stmt"/>
2015
+ <line num="46" count="22" type="cond" truecount="1" falsecount="1"/>
2016
+ <line num="47" count="22" type="stmt"/>
2017
+ <line num="53" count="22" type="stmt"/>
2018
+ <line num="56" count="22" type="cond" truecount="1" falsecount="0"/>
2019
+ <line num="57" count="3" type="stmt"/>
2020
+ <line num="60" count="0" type="stmt"/>
2021
+ <line num="70" count="22" type="stmt"/>
2022
+ <line num="79" count="7" type="cond" truecount="2" falsecount="1"/>
2023
+ <line num="81" count="2" type="stmt"/>
2024
+ <line num="83" count="5" type="stmt"/>
2008
2025
  <line num="85" count="0" type="stmt"/>
2009
- <line num="87" count="7" type="stmt"/>
2010
- <line num="88" count="7" type="stmt"/>
2011
- <line num="89" count="7" type="cond" truecount="2" falsecount="0"/>
2012
- <line num="90" count="7" type="cond" truecount="4" falsecount="1"/>
2013
- <line num="91" count="0" type="cond" truecount="0" falsecount="2"/>
2014
- <line num="93" count="7" type="stmt"/>
2015
- <line num="101" count="7" type="stmt"/>
2016
- <line num="103" count="7" type="stmt"/>
2017
- <line num="117" count="9" type="stmt"/>
2018
- <line num="120" count="9" type="cond" truecount="1" falsecount="1"/>
2019
- <line num="121" count="0" type="stmt"/>
2020
- <line num="124" count="9" type="stmt"/>
2021
- <line num="126" count="9" type="cond" truecount="1" falsecount="1"/>
2022
- <line num="127" count="9" type="stmt"/>
2023
- <line num="131" count="0" type="cond" truecount="0" falsecount="4"/>
2024
- <line num="132" count="0" type="stmt"/>
2025
- <line num="149" count="17" type="cond" truecount="1" falsecount="0"/>
2026
- <line num="151" count="2" type="cond" truecount="3" falsecount="1"/>
2027
- <line num="152" count="0" type="stmt"/>
2028
- <line num="154" count="2" type="stmt"/>
2029
- <line num="155" count="2" type="stmt"/>
2030
- <line num="156" count="2" type="stmt"/>
2031
- <line num="174" count="17" type="stmt"/>
2032
- <line num="179" count="7" type="stmt"/>
2033
- <line num="180" count="7" type="cond" truecount="1" falsecount="1"/>
2034
- <line num="181" count="7" type="cond" truecount="2" falsecount="2"/>
2035
- <line num="182" count="0" type="stmt"/>
2036
- <line num="184" count="7" type="stmt"/>
2037
- <line num="186" count="7" type="stmt"/>
2038
- <line num="187" count="7" type="stmt"/>
2039
- <line num="189" count="7" type="stmt"/>
2040
- <line num="197" count="7" type="stmt"/>
2041
- <line num="204" count="7" type="cond" truecount="3" falsecount="1"/>
2042
- <line num="205" count="7" type="cond" truecount="2" falsecount="0"/>
2043
- <line num="207" count="7" type="stmt"/>
2044
- <line num="208" count="7" type="cond" truecount="1" falsecount="1"/>
2026
+ <line num="105" count="7" type="cond" truecount="0" falsecount="1"/>
2027
+ <line num="106" count="0" type="stmt"/>
2028
+ <line num="108" count="7" type="stmt"/>
2029
+ <line num="112" count="7" type="cond" truecount="2" falsecount="1"/>
2030
+ <line num="113" count="0" type="stmt"/>
2031
+ <line num="115" count="7" type="stmt"/>
2032
+ <line num="116" count="7" type="stmt"/>
2033
+ <line num="117" count="7" type="cond" truecount="2" falsecount="0"/>
2034
+ <line num="118" count="7" type="cond" truecount="3" falsecount="1"/>
2035
+ <line num="119" count="0" type="cond" truecount="0" falsecount="2"/>
2036
+ <line num="121" count="7" type="stmt"/>
2037
+ <line num="129" count="7" type="stmt"/>
2038
+ <line num="131" count="7" type="stmt"/>
2039
+ <line num="149" count="9" type="stmt"/>
2040
+ <line num="152" count="9" type="cond" truecount="0" falsecount="1"/>
2041
+ <line num="153" count="0" type="stmt"/>
2042
+ <line num="156" count="9" type="stmt"/>
2043
+ <line num="158" count="9" type="cond" truecount="1" falsecount="0"/>
2044
+ <line num="159" count="9" type="stmt"/>
2045
+ <line num="163" count="0" type="cond" truecount="0" falsecount="3"/>
2046
+ <line num="164" count="0" type="stmt"/>
2047
+ <line num="181" count="17" type="stmt"/>
2048
+ <line num="183" count="2" type="cond" truecount="2" falsecount="1"/>
2049
+ <line num="184" count="0" type="stmt"/>
2050
+ <line num="186" count="2" type="stmt"/>
2051
+ <line num="187" count="2" type="stmt"/>
2052
+ <line num="188" count="2" type="stmt"/>
2053
+ <line num="200" count="17" type="stmt"/>
2054
+ <line num="205" count="7" type="stmt"/>
2055
+ <line num="207" count="7" type="cond" truecount="7" falsecount="3"/>
2056
+ <line num="208" count="7" type="cond" truecount="1" falsecount="2"/>
2045
2057
  <line num="209" count="0" type="stmt"/>
2046
2058
  <line num="211" count="7" type="stmt"/>
2047
- <line num="219" count="17" type="stmt"/>
2048
- <line num="220" count="15" type="stmt"/>
2049
- <line num="221" count="15" type="stmt"/>
2059
+ <line num="213" count="7" type="cond" truecount="3" falsecount="1"/>
2060
+ <line num="215" count="7" type="cond" truecount="1" falsecount="0"/>
2061
+ <line num="216" count="7" type="stmt"/>
2062
+ <line num="219" count="7" type="stmt"/>
2063
+ <line num="227" count="7" type="stmt"/>
2064
+ <line num="234" count="7" type="cond" truecount="6" falsecount="1"/>
2065
+ <line num="235" count="7" type="stmt"/>
2066
+ <line num="240" count="7" type="stmt"/>
2067
+ <line num="241" count="7" type="cond" truecount="0" falsecount="1"/>
2068
+ <line num="242" count="0" type="stmt"/>
2069
+ <line num="244" count="7" type="stmt"/>
2070
+ <line num="252" count="17" type="stmt"/>
2071
+ <line num="253" count="15" type="stmt"/>
2072
+ <line num="254" count="15" type="stmt"/>
2050
2073
  </file>
2051
2074
  <file name="fileSystem.js" path="/home/runner/work/budibase/budibase/packages/worker/src/utilities/fileSystem.js">
2052
2075
  <metrics statements="3" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
@@ -2059,58 +2082,56 @@
2059
2082
  <line num="7" count="17" type="stmt"/>
2060
2083
  <line num="8" count="21" type="stmt"/>
2061
2084
  </file>
2062
- <file name="redis.js" path="/home/runner/work/budibase/budibase/packages/worker/src/utilities/redis.js">
2063
- <metrics statements="40" coveredstatements="34" conditionals="15" coveredconditionals="8" methods="10" coveredmethods="9"/>
2085
+ <file name="redis.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/utilities/redis.ts">
2086
+ <metrics statements="39" coveredstatements="33" conditionals="11" coveredconditionals="7" methods="10" coveredmethods="9"/>
2064
2087
  <line num="1" count="17" type="stmt"/>
2065
- <line num="2" count="17" type="stmt"/>
2066
- <line num="5" count="7" type="cond" truecount="2" falsecount="0"/>
2067
- <line num="8" count="2" type="stmt"/>
2068
- <line num="11" count="5" type="stmt"/>
2069
- <line num="18" count="9" type="cond" truecount="2" falsecount="0"/>
2070
- <line num="20" count="3" type="stmt"/>
2071
- <line num="22" count="6" type="stmt"/>
2088
+ <line num="4" count="7" type="cond" truecount="2" falsecount="0"/>
2089
+ <line num="7" count="2" type="stmt"/>
2090
+ <line num="10" count="5" type="stmt"/>
2091
+ <line num="17" count="9" type="cond" truecount="2" falsecount="0"/>
2092
+ <line num="19" count="3" type="stmt"/>
2093
+ <line num="21" count="6" type="stmt"/>
2094
+ <line num="26" count="7" type="stmt"/>
2072
2095
  <line num="27" count="7" type="stmt"/>
2073
2096
  <line num="28" count="7" type="stmt"/>
2074
2097
  <line num="29" count="7" type="stmt"/>
2075
- <line num="30" count="7" type="stmt"/>
2098
+ <line num="33" count="2" type="stmt"/>
2076
2099
  <line num="34" count="2" type="stmt"/>
2077
- <line num="35" count="2" type="stmt"/>
2078
- <line num="36" count="2" type="cond" truecount="1" falsecount="1"/>
2079
- <line num="37" count="0" type="stmt"/>
2080
- <line num="39" count="2" type="cond" truecount="1" falsecount="1"/>
2081
- <line num="40" count="2" type="stmt"/>
2082
- <line num="42" count="2" type="stmt"/>
2100
+ <line num="35" count="2" type="cond" truecount="0" falsecount="1"/>
2101
+ <line num="36" count="0" type="stmt"/>
2102
+ <line num="38" count="2" type="cond" truecount="1" falsecount="0"/>
2103
+ <line num="39" count="2" type="stmt"/>
2104
+ <line num="41" count="2" type="stmt"/>
2105
+ <line num="44" count="17" type="stmt"/>
2083
2106
  <line num="45" count="17" type="stmt"/>
2084
2107
  <line num="46" count="17" type="stmt"/>
2085
2108
  <line num="47" count="17" type="stmt"/>
2086
2109
  <line num="48" count="17" type="stmt"/>
2087
- <line num="49" count="17" type="stmt"/>
2088
- <line num="55" count="17" type="stmt"/>
2089
- <line num="56" count="0" type="cond" truecount="0" falsecount="2"/>
2090
- <line num="57" count="0" type="cond" truecount="0" falsecount="2"/>
2091
- <line num="58" count="0" type="stmt"/>
2092
- <line num="68" count="17" type="stmt"/>
2093
- <line num="69" count="2" type="stmt"/>
2094
- <line num="78" count="17" type="cond" truecount="1" falsecount="0"/>
2095
- <line num="79" count="1" type="stmt"/>
2096
- <line num="80" count="1" type="stmt"/>
2097
- <line num="82" count="0" type="stmt"/>
2098
- <line num="92" count="17" type="stmt"/>
2099
- <line num="93" count="5" type="stmt"/>
2100
- <line num="102" count="17" type="cond" truecount="1" falsecount="0"/>
2101
- <line num="103" count="1" type="stmt"/>
2102
- <line num="104" count="1" type="stmt"/>
2103
- <line num="106" count="0" type="stmt"/>
2110
+ <line num="54" count="17" type="stmt"/>
2111
+ <line num="55" count="0" type="cond" truecount="0" falsecount="1"/>
2112
+ <line num="56" count="0" type="cond" truecount="0" falsecount="1"/>
2113
+ <line num="57" count="0" type="stmt"/>
2114
+ <line num="67" count="17" type="stmt"/>
2115
+ <line num="68" count="2" type="stmt"/>
2116
+ <line num="77" count="17" type="stmt"/>
2117
+ <line num="81" count="1" type="stmt"/>
2118
+ <line num="82" count="1" type="stmt"/>
2119
+ <line num="84" count="0" type="stmt"/>
2120
+ <line num="94" count="17" type="stmt"/>
2121
+ <line num="95" count="5" type="stmt"/>
2122
+ <line num="104" count="17" type="stmt"/>
2123
+ <line num="108" count="1" type="stmt"/>
2124
+ <line num="109" count="1" type="stmt"/>
2125
+ <line num="111" count="0" type="stmt"/>
2104
2126
  </file>
2105
- <file name="templates.js" path="/home/runner/work/budibase/budibase/packages/worker/src/utilities/templates.js">
2106
- <metrics statements="18" coveredstatements="18" conditionals="11" coveredconditionals="7" methods="1" coveredmethods="1"/>
2127
+ <file name="templates.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/utilities/templates.ts">
2128
+ <metrics statements="17" coveredstatements="17" conditionals="10" coveredconditionals="7" methods="1" coveredmethods="1"/>
2107
2129
  <line num="1" count="17" type="stmt"/>
2108
- <line num="7" count="17" type="stmt"/>
2130
+ <line num="2" count="17" type="stmt"/>
2109
2131
  <line num="8" count="17" type="stmt"/>
2110
- <line num="12" count="17" type="stmt"/>
2111
- <line num="13" count="17" type="stmt"/>
2112
- <line num="15" count="17" type="cond" truecount="0" falsecount="1"/>
2113
- <line num="16" count="7" type="stmt"/>
2132
+ <line num="9" count="17" type="stmt"/>
2133
+ <line num="11" count="17" type="stmt"/>
2134
+ <line num="15" count="7" type="stmt"/>
2114
2135
  <line num="18" count="7" type="cond" truecount="1" falsecount="1"/>
2115
2136
  <line num="19" count="7" type="stmt"/>
2116
2137
  <line num="20" count="7" type="stmt"/>