@budibase/worker 2.1.46-alpha.12 → 2.1.46-alpha.14

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 (118) hide show
  1. package/coverage/clover.xml +397 -403
  2. package/coverage/coverage-final.json +8 -8
  3. package/coverage/lcov-report/index.html +30 -30
  4. package/coverage/lcov-report/src/api/controllers/global/auth.ts.html +1 -1
  5. package/coverage/lcov-report/src/api/controllers/global/configs.ts.html +142 -199
  6. package/coverage/lcov-report/src/api/controllers/global/email.ts.html +1 -1
  7. package/coverage/lcov-report/src/api/controllers/global/index.html +15 -15
  8. package/coverage/lcov-report/src/api/controllers/global/license.ts.html +1 -1
  9. package/coverage/lcov-report/src/api/controllers/global/roles.ts.html +1 -1
  10. package/coverage/lcov-report/src/api/controllers/global/self.ts.html +1 -1
  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 +2 -2
  13. package/coverage/lcov-report/src/api/controllers/global/workspaces.ts.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.ts.html +1 -1
  24. package/coverage/lcov-report/src/api/routes/global/configs.ts.html +1 -1
  25. package/coverage/lcov-report/src/api/routes/global/email.ts.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 +2 -2
  28. package/coverage/lcov-report/src/api/routes/global/roles.ts.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 +1 -1
  31. package/coverage/lcov-report/src/api/routes/global/users.ts.html +1 -1
  32. package/coverage/lcov-report/src/api/routes/global/workspaces.ts.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 +1 -1
  46. package/coverage/lcov-report/src/constants/index.ts.html +1 -1
  47. package/coverage/lcov-report/src/constants/templates/index.html +1 -1
  48. package/coverage/lcov-report/src/constants/templates/index.ts.html +1 -1
  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 +23 -8
  52. package/coverage/lcov-report/src/index.html +15 -15
  53. package/coverage/lcov-report/src/index.ts.html +3 -6
  54. package/coverage/lcov-report/src/middleware/cloudRestricted.ts.html +1 -1
  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 +14 -14
  67. package/coverage/lcov-report/src/sdk/users/index.ts.html +1 -1
  68. package/coverage/lcov-report/src/sdk/users/users.ts.html +60 -9
  69. package/coverage/lcov-report/src/tests/TestConfiguration.ts.html +1 -1
  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/groups.ts.html +1 -1
  77. package/coverage/lcov-report/src/tests/api/index.html +1 -1
  78. package/coverage/lcov-report/src/tests/api/index.ts.html +1 -1
  79. package/coverage/lcov-report/src/tests/api/license.ts.html +1 -1
  80. package/coverage/lcov-report/src/tests/api/migrations.ts.html +1 -1
  81. package/coverage/lcov-report/src/tests/api/restore.ts.html +1 -1
  82. package/coverage/lcov-report/src/tests/api/roles.ts.html +1 -1
  83. package/coverage/lcov-report/src/tests/api/self.ts.html +1 -1
  84. package/coverage/lcov-report/src/tests/api/status.ts.html +1 -1
  85. package/coverage/lcov-report/src/tests/api/templates.ts.html +1 -1
  86. package/coverage/lcov-report/src/tests/api/tenants.ts.html +1 -1
  87. package/coverage/lcov-report/src/tests/api/users.ts.html +1 -1
  88. package/coverage/lcov-report/src/tests/controllers.ts.html +1 -1
  89. package/coverage/lcov-report/src/tests/index.html +1 -1
  90. package/coverage/lcov-report/src/tests/index.ts.html +1 -1
  91. package/coverage/lcov-report/src/tests/mocks/{email.js.html → email.ts.html} +4 -4
  92. package/coverage/lcov-report/src/tests/mocks/index.html +2 -2
  93. package/coverage/lcov-report/src/tests/mocks/index.ts.html +2 -2
  94. package/coverage/lcov-report/src/tests/structures/configs.ts.html +3 -3
  95. package/coverage/lcov-report/src/tests/structures/groups.ts.html +1 -1
  96. package/coverage/lcov-report/src/tests/structures/index.html +1 -1
  97. package/coverage/lcov-report/src/tests/structures/index.ts.html +1 -1
  98. package/coverage/lcov-report/src/tests/structures/users.ts.html +1 -1
  99. package/coverage/lcov-report/src/utilities/appService.ts.html +1 -1
  100. package/coverage/lcov-report/src/utilities/email.ts.html +1 -1
  101. package/coverage/lcov-report/src/utilities/fileSystem.ts.html +1 -1
  102. package/coverage/lcov-report/src/utilities/index.html +1 -1
  103. package/coverage/lcov-report/src/utilities/index.ts.html +1 -1
  104. package/coverage/lcov-report/src/utilities/redis.ts.html +1 -1
  105. package/coverage/lcov-report/src/utilities/templates.ts.html +1 -1
  106. package/coverage/lcov-report/src/utilities/users.ts.html +1 -1
  107. package/coverage/lcov.info +683 -682
  108. package/package.json +8 -7
  109. package/src/api/controllers/global/configs.ts +111 -130
  110. package/src/api/controllers/global/users.ts +1 -1
  111. package/src/api/routes/global/license.ts +1 -1
  112. package/src/environment.ts +5 -0
  113. package/src/index.ts +1 -2
  114. package/src/sdk/users/users.ts +18 -1
  115. package/src/tests/jestSetup.ts +3 -1
  116. package/src/tests/mocks/{email.js → email.ts} +1 -1
  117. package/src/tests/mocks/index.ts +1 -1
  118. package/src/tests/structures/configs.ts +2 -2
@@ -1,11 +1,11 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1671055378461" clover="3.2.0">
3
- <project timestamp="1671055378461" name="All files">
4
- <metrics statements="1911" coveredstatements="1591" conditionals="636" coveredconditionals="457" methods="441" coveredmethods="347" elements="2988" coveredelements="2395" complexity="0" loc="1911" ncloc="1911" packages="22" files="81" classes="81"/>
2
+ <coverage generated="1671105249683" clover="3.2.0">
3
+ <project timestamp="1671105249683" name="All files">
4
+ <metrics statements="1905" coveredstatements="1586" conditionals="639" coveredconditionals="463" methods="443" coveredmethods="349" elements="2987" coveredelements="2398" complexity="0" loc="1905" ncloc="1905" packages="22" files="81" classes="81"/>
5
5
  <package name="src">
6
- <metrics statements="78" coveredstatements="52" conditionals="26" coveredconditionals="17" methods="16" coveredmethods="7"/>
6
+ <metrics statements="80" coveredstatements="53" conditionals="27" coveredconditionals="17" methods="16" coveredmethods="7"/>
7
7
  <file name="environment.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/environment.ts">
8
- <metrics statements="19" coveredstatements="15" conditionals="20" coveredconditionals="16" methods="5" coveredmethods="5"/>
8
+ <metrics statements="21" coveredstatements="16" conditionals="21" coveredconditionals="16" methods="5" coveredmethods="5"/>
9
9
  <line num="1" count="18" type="stmt"/>
10
10
  <line num="4" count="55" type="stmt"/>
11
11
  <line num="8" count="157" type="stmt"/>
@@ -24,7 +24,9 @@
24
24
  <line num="88" count="18" type="stmt"/>
25
25
  <line num="90" count="630" type="cond" truecount="0" falsecount="1"/>
26
26
  <line num="92" count="0" type="stmt"/>
27
- <line num="96" count="18" type="stmt"/>
27
+ <line num="95" count="630" type="cond" truecount="0" falsecount="1"/>
28
+ <line num="97" count="0" type="stmt"/>
29
+ <line num="101" count="18" type="stmt"/>
28
30
  </file>
29
31
  <file name="index.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/index.ts">
30
32
  <metrics statements="59" coveredstatements="37" conditionals="6" coveredconditionals="1" methods="11" coveredmethods="2"/>
@@ -75,18 +77,18 @@
75
77
  <line num="76" count="0" type="stmt"/>
76
78
  <line num="80" count="18" type="stmt"/>
77
79
  <line num="81" count="0" type="stmt"/>
78
- <line num="83" count="0" type="stmt"/>
79
- <line num="86" count="18" type="cond" truecount="1" falsecount="1"/>
80
+ <line num="82" count="0" type="stmt"/>
81
+ <line num="85" count="18" type="cond" truecount="1" falsecount="1"/>
82
+ <line num="86" count="18" type="stmt"/>
80
83
  <line num="87" count="18" type="stmt"/>
81
- <line num="88" count="18" type="stmt"/>
82
- <line num="91" count="18" type="stmt"/>
84
+ <line num="90" count="18" type="stmt"/>
85
+ <line num="91" count="0" type="stmt"/>
83
86
  <line num="92" count="0" type="stmt"/>
84
87
  <line num="93" count="0" type="stmt"/>
85
- <line num="94" count="0" type="stmt"/>
86
- <line num="97" count="18" type="stmt"/>
87
- <line num="98" count="0" type="stmt"/>
88
- <line num="101" count="18" type="stmt"/>
89
- <line num="102" count="0" type="stmt"/>
88
+ <line num="96" count="18" type="stmt"/>
89
+ <line num="97" count="0" type="stmt"/>
90
+ <line num="100" count="18" type="stmt"/>
91
+ <line num="101" count="0" type="stmt"/>
90
92
  </file>
91
93
  </package>
92
94
  <package name="src.api">
@@ -126,7 +128,7 @@
126
128
  </file>
127
129
  </package>
128
130
  <package name="src.api.controllers.global">
129
- <metrics statements="608" coveredstatements="404" conditionals="172" coveredconditionals="95" methods="137" coveredmethods="77"/>
131
+ <metrics statements="596" coveredstatements="394" conditionals="174" coveredconditionals="101" methods="137" coveredmethods="77"/>
130
132
  <file name="auth.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/controllers/global/auth.ts">
131
133
  <metrics statements="122" coveredstatements="75" conditionals="22" coveredconditionals="8" methods="41" coveredmethods="20"/>
132
134
  <line num="1" count="18" type="stmt"/>
@@ -253,186 +255,174 @@
253
255
  <line num="277" count="1" type="stmt"/>
254
256
  </file>
255
257
  <file name="configs.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/controllers/global/configs.ts">
256
- <metrics statements="179" coveredstatements="122" conditionals="92" coveredconditionals="57" methods="25" coveredmethods="18"/>
258
+ <metrics statements="167" coveredstatements="112" conditionals="94" coveredconditionals="63" methods="25" coveredmethods="18"/>
257
259
  <line num="1" count="18" type="stmt"/>
258
260
  <line num="2" count="18" type="stmt"/>
259
261
  <line num="3" count="18" type="stmt"/>
260
262
  <line num="4" count="18" type="stmt"/>
261
- <line num="11" count="18" type="stmt"/>
262
263
  <line num="12" count="18" type="stmt"/>
263
- <line num="23" count="41" type="stmt"/>
264
- <line num="24" count="41" type="stmt"/>
265
- <line num="25" count="41" type="stmt"/>
266
- <line num="28" count="41" type="cond" truecount="1" falsecount="0"/>
267
- <line num="29" count="6" type="stmt"/>
268
- <line num="32" count="41" type="stmt"/>
269
- <line num="33" count="41" type="cond" truecount="2" falsecount="0"/>
270
- <line num="34" count="35" type="cond" truecount="4" falsecount="0"/>
271
- <line num="36" count="14" type="stmt"/>
272
- <line num="37" count="14" type="stmt"/>
273
- <line num="40" count="4" type="stmt"/>
264
+ <line num="13" count="18" type="stmt"/>
265
+ <line num="29" count="41" type="stmt"/>
266
+ <line num="30" count="41" type="stmt"/>
267
+ <line num="33" count="41" type="cond" truecount="1" falsecount="0"/>
268
+ <line num="34" count="6" type="stmt"/>
269
+ <line num="37" count="41" type="cond" truecount="2" falsecount="0"/>
270
+ <line num="38" count="35" type="cond" truecount="2" falsecount="0"/>
271
+ <line num="39" count="14" type="stmt"/>
272
+ <line num="40" count="21" type="cond" truecount="2" falsecount="0"/>
274
273
  <line num="41" count="4" type="stmt"/>
275
274
  <line num="42" count="4" type="cond" truecount="1" falsecount="0"/>
276
275
  <line num="43" count="2" type="stmt"/>
277
- <line num="45" count="4" type="stmt"/>
278
- <line num="48" count="6" type="stmt"/>
279
- <line num="49" count="6" type="stmt"/>
280
- <line num="50" count="6" type="cond" truecount="1" falsecount="0"/>
281
- <line num="51" count="4" type="stmt"/>
282
- <line num="53" count="6" type="stmt"/>
283
- <line num="57" count="11" type="stmt"/>
276
+ <line num="45" count="17" type="cond" truecount="2" falsecount="0"/>
277
+ <line num="46" count="6" type="stmt"/>
278
+ <line num="47" count="6" type="cond" truecount="1" falsecount="0"/>
279
+ <line num="48" count="4" type="stmt"/>
280
+ <line num="50" count="11" type="cond" truecount="1" falsecount="0"/>
281
+ <line num="52" count="11" type="stmt"/>
282
+ <line num="53" count="11" type="cond" truecount="3" falsecount="0"/>
283
+ <line num="54" count="1" type="stmt"/>
284
284
  <line num="58" count="11" type="stmt"/>
285
- <line num="59" count="11" type="cond" truecount="3" falsecount="0"/>
285
+ <line num="59" count="11" type="cond" truecount="1" falsecount="0"/>
286
286
  <line num="60" count="1" type="stmt"/>
287
287
  <line num="64" count="11" type="stmt"/>
288
288
  <line num="65" count="11" type="cond" truecount="1" falsecount="0"/>
289
- <line num="66" count="1" type="stmt"/>
290
- <line num="70" count="11" type="stmt"/>
291
- <line num="71" count="11" type="cond" truecount="1" falsecount="0"/>
292
- <line num="76" count="1" type="stmt"/>
293
- <line num="78" count="11" type="stmt"/>
294
- <line num="82" count="6" type="cond" truecount="4" falsecount="0"/>
295
- <line num="84" count="1" type="stmt"/>
296
- <line num="85" count="1" type="stmt"/>
297
- <line num="88" count="2" type="stmt"/>
298
- <line num="89" count="2" type="stmt"/>
299
- <line num="90" count="2" type="cond" truecount="4" falsecount="0"/>
300
- <line num="91" count="1" type="stmt"/>
301
- <line num="92" count="1" type="cond" truecount="3" falsecount="0"/>
302
- <line num="93" count="1" type="stmt"/>
303
- <line num="95" count="2" type="stmt"/>
304
- <line num="98" count="2" type="stmt"/>
305
- <line num="99" count="2" type="stmt"/>
306
- <line num="100" count="2" type="cond" truecount="2" falsecount="0"/>
307
- <line num="104" count="1" type="stmt"/>
308
- <line num="105" count="1" type="cond" truecount="1" falsecount="0"/>
309
- <line num="109" count="1" type="stmt"/>
310
- <line num="111" count="2" type="stmt"/>
311
- <line num="115" count="1" type="stmt"/>
312
- <line num="116" count="1" type="stmt"/>
313
- <line num="117" count="1" type="stmt"/>
314
- <line num="118" count="1" type="cond" truecount="4" falsecount="0"/>
315
- <line num="119" count="1" type="stmt"/>
316
- <line num="123" count="1" type="stmt"/>
317
- <line num="124" count="1" type="stmt"/>
318
- <line num="125" count="1" type="cond" truecount="3" falsecount="0"/>
319
- <line num="126" count="1" type="stmt"/>
320
- <line num="130" count="1" type="stmt"/>
321
- <line num="131" count="1" type="stmt"/>
322
- <line num="132" count="1" type="cond" truecount="1" falsecount="0"/>
323
- <line num="138" count="1" type="stmt"/>
324
- <line num="140" count="1" type="stmt"/>
325
- <line num="145" count="41" type="stmt"/>
326
- <line num="148" count="18" type="stmt"/>
327
- <line num="149" count="41" type="stmt"/>
328
- <line num="150" count="41" type="stmt"/>
329
- <line num="151" count="41" type="stmt"/>
330
- <line num="153" count="41" type="cond" truecount="1" falsecount="0"/>
331
- <line num="154" count="35" type="stmt"/>
332
- <line num="160" count="41" type="stmt"/>
333
- <line num="162" count="41" type="cond" truecount="1" falsecount="0"/>
334
- <line num="164" count="15" type="stmt"/>
335
- <line num="165" count="12" type="stmt"/>
336
- <line num="168" count="3" type="stmt"/>
337
- <line num="171" count="38" type="stmt"/>
338
- <line num="172" count="38" type="stmt"/>
339
- <line num="173" count="38" type="stmt"/>
340
- <line num="174" count="38" type="stmt"/>
341
- <line num="176" count="38" type="stmt"/>
342
- <line num="177" count="42" type="stmt"/>
343
- <line num="180" count="38" type="stmt"/>
344
- <line num="186" count="0" type="stmt"/>
345
- <line num="190" count="18" type="stmt"/>
346
- <line num="191" count="0" type="stmt"/>
289
+ <line num="70" count="1" type="stmt"/>
290
+ <line num="74" count="6" type="cond" truecount="2" falsecount="0"/>
291
+ <line num="75" count="1" type="stmt"/>
292
+ <line num="76" count="5" type="cond" truecount="2" falsecount="0"/>
293
+ <line num="77" count="2" type="stmt"/>
294
+ <line num="78" count="2" type="cond" truecount="4" falsecount="0"/>
295
+ <line num="79" count="1" type="stmt"/>
296
+ <line num="80" count="1" type="cond" truecount="3" falsecount="0"/>
297
+ <line num="81" count="1" type="stmt"/>
298
+ <line num="83" count="3" type="cond" truecount="2" falsecount="0"/>
299
+ <line num="84" count="2" type="stmt"/>
300
+ <line num="85" count="2" type="cond" truecount="2" falsecount="0"/>
301
+ <line num="89" count="1" type="stmt"/>
302
+ <line num="90" count="1" type="cond" truecount="1" falsecount="0"/>
303
+ <line num="94" count="1" type="stmt"/>
304
+ <line num="96" count="1" type="cond" truecount="1" falsecount="0"/>
305
+ <line num="98" count="1" type="stmt"/>
306
+ <line num="99" count="1" type="stmt"/>
307
+ <line num="100" count="1" type="cond" truecount="4" falsecount="0"/>
308
+ <line num="101" count="1" type="stmt"/>
309
+ <line num="105" count="1" type="stmt"/>
310
+ <line num="106" count="1" type="stmt"/>
311
+ <line num="107" count="1" type="cond" truecount="3" falsecount="0"/>
312
+ <line num="108" count="1" type="stmt"/>
313
+ <line num="112" count="1" type="stmt"/>
314
+ <line num="113" count="1" type="stmt"/>
315
+ <line num="114" count="1" type="cond" truecount="1" falsecount="0"/>
316
+ <line num="120" count="1" type="stmt"/>
317
+ <line num="125" count="41" type="stmt"/>
318
+ <line num="128" count="18" type="stmt"/>
319
+ <line num="129" count="41" type="stmt"/>
320
+ <line num="130" count="41" type="stmt"/>
321
+ <line num="131" count="41" type="stmt"/>
322
+ <line num="133" count="41" type="cond" truecount="1" falsecount="0"/>
323
+ <line num="134" count="35" type="stmt"/>
324
+ <line num="140" count="41" type="stmt"/>
325
+ <line num="142" count="41" type="cond" truecount="1" falsecount="0"/>
326
+ <line num="144" count="15" type="stmt"/>
327
+ <line num="145" count="12" type="stmt"/>
328
+ <line num="148" count="3" type="stmt"/>
329
+ <line num="151" count="38" type="stmt"/>
330
+ <line num="152" count="38" type="stmt"/>
331
+ <line num="153" count="38" type="stmt"/>
332
+ <line num="154" count="38" type="stmt"/>
333
+ <line num="156" count="38" type="stmt"/>
334
+ <line num="157" count="42" type="stmt"/>
335
+ <line num="160" count="38" type="stmt"/>
336
+ <line num="166" count="0" type="stmt"/>
337
+ <line num="170" count="18" type="stmt"/>
338
+ <line num="171" count="0" type="stmt"/>
339
+ <line num="172" count="0" type="stmt"/>
340
+ <line num="180" count="0" type="stmt"/>
341
+ <line num="187" count="18" type="stmt"/>
342
+ <line num="188" count="36" type="stmt"/>
343
+ <line num="190" count="36" type="stmt"/>
344
+ <line num="191" count="36" type="cond" truecount="1" falsecount="2"/>
347
345
  <line num="192" count="0" type="stmt"/>
348
- <line num="200" count="0" type="stmt"/>
349
- <line num="207" count="18" type="stmt"/>
350
- <line num="208" count="36" type="stmt"/>
351
- <line num="210" count="36" type="stmt"/>
352
- <line num="211" count="36" type="cond" truecount="1" falsecount="2"/>
353
- <line num="212" count="0" type="stmt"/>
354
- <line num="213" count="0" type="stmt"/>
355
- <line num="214" count="0" type="stmt"/>
356
- <line num="216" count="0" type="cond" truecount="0" falsecount="3"/>
357
- <line num="217" count="0" type="stmt"/>
358
- <line num="221" count="36" type="stmt"/>
359
- <line num="223" count="36" type="stmt"/>
360
- <line num="229" count="36" type="cond" truecount="2" falsecount="0"/>
361
- <line num="230" count="27" type="stmt"/>
362
- <line num="233" count="9" type="stmt"/>
363
- <line num="236" count="0" type="cond" truecount="0" falsecount="6"/>
364
- <line num="240" count="18" type="stmt"/>
365
- <line num="241" count="0" type="stmt"/>
366
- <line num="242" count="0" type="stmt"/>
367
- <line num="244" count="0" type="stmt"/>
368
- <line num="248" count="0" type="cond" truecount="0" falsecount="2"/>
369
- <line num="249" count="0" type="stmt"/>
346
+ <line num="193" count="0" type="stmt"/>
347
+ <line num="194" count="0" type="stmt"/>
348
+ <line num="196" count="0" type="cond" truecount="0" falsecount="3"/>
349
+ <line num="197" count="0" type="stmt"/>
350
+ <line num="201" count="36" type="stmt"/>
351
+ <line num="203" count="36" type="stmt"/>
352
+ <line num="209" count="36" type="cond" truecount="2" falsecount="0"/>
353
+ <line num="210" count="27" type="stmt"/>
354
+ <line num="213" count="9" type="stmt"/>
355
+ <line num="216" count="0" type="cond" truecount="0" falsecount="6"/>
356
+ <line num="220" count="18" type="stmt"/>
357
+ <line num="221" count="0" type="stmt"/>
358
+ <line num="222" count="0" type="stmt"/>
359
+ <line num="224" count="0" type="stmt"/>
360
+ <line num="228" count="0" type="cond" truecount="0" falsecount="2"/>
361
+ <line num="229" count="0" type="stmt"/>
362
+ <line num="231" count="0" type="stmt"/>
363
+ <line num="238" count="0" type="stmt"/>
364
+ <line num="242" count="18" type="stmt"/>
365
+ <line num="243" count="0" type="stmt"/>
366
+ <line num="245" count="0" type="stmt"/>
367
+ <line num="247" count="0" type="stmt"/>
370
368
  <line num="251" count="0" type="stmt"/>
371
- <line num="258" count="0" type="stmt"/>
372
- <line num="262" count="18" type="stmt"/>
373
- <line num="263" count="0" type="stmt"/>
369
+ <line num="255" count="0" type="stmt"/>
370
+ <line num="260" count="0" type="cond" truecount="0" falsecount="2"/>
371
+ <line num="261" count="0" type="stmt"/>
374
372
  <line num="265" count="0" type="stmt"/>
375
- <line num="267" count="0" type="stmt"/>
373
+ <line num="270" count="0" type="cond" truecount="0" falsecount="1"/>
376
374
  <line num="271" count="0" type="stmt"/>
377
- <line num="275" count="0" type="stmt"/>
378
- <line num="280" count="0" type="cond" truecount="0" falsecount="2"/>
375
+ <line num="279" count="0" type="cond" truecount="0" falsecount="4"/>
379
376
  <line num="281" count="0" type="stmt"/>
380
- <line num="285" count="0" type="stmt"/>
381
- <line num="289" count="0" type="cond" truecount="0" falsecount="4"/>
382
- <line num="291" count="0" type="stmt"/>
383
- <line num="294" count="0" type="stmt"/>
377
+ <line num="284" count="0" type="stmt"/>
378
+ <line num="288" count="0" type="stmt"/>
379
+ <line num="289" count="0" type="stmt"/>
380
+ <line num="292" count="0" type="cond" truecount="0" falsecount="4"/>
381
+ <line num="293" count="0" type="stmt"/>
382
+ <line num="295" count="0" type="stmt"/>
384
383
  <line num="298" count="0" type="stmt"/>
385
- <line num="299" count="0" type="stmt"/>
386
- <line num="302" count="0" type="cond" truecount="0" falsecount="4"/>
387
- <line num="303" count="0" type="stmt"/>
388
- <line num="305" count="0" type="stmt"/>
384
+ <line num="300" count="0" type="stmt"/>
385
+ <line num="304" count="18" type="stmt"/>
386
+ <line num="305" count="0" type="cond" truecount="0" falsecount="3"/>
387
+ <line num="306" count="0" type="stmt"/>
389
388
  <line num="308" count="0" type="stmt"/>
390
- <line num="310" count="0" type="stmt"/>
391
- <line num="314" count="18" type="stmt"/>
392
- <line num="315" count="0" type="cond" truecount="0" falsecount="3"/>
393
- <line num="316" count="0" type="stmt"/>
394
- <line num="318" count="0" type="stmt"/>
395
- <line num="319" count="0" type="stmt"/>
396
- <line num="322" count="0" type="cond" truecount="0" falsecount="2"/>
389
+ <line num="309" count="0" type="stmt"/>
390
+ <line num="311" count="0" type="stmt"/>
391
+ <line num="312" count="0" type="stmt"/>
392
+ <line num="314" count="0" type="stmt"/>
397
393
  <line num="323" count="0" type="stmt"/>
398
- <line num="325" count="0" type="stmt"/>
399
- <line num="329" count="0" type="cond" truecount="0" falsecount="2"/>
400
- <line num="330" count="0" type="stmt"/>
401
- <line num="332" count="0" type="stmt"/>
394
+ <line num="324" count="0" type="stmt"/>
395
+ <line num="325" count="0" type="cond" truecount="0" falsecount="1"/>
396
+ <line num="326" count="0" type="stmt"/>
397
+ <line num="333" count="0" type="stmt"/>
398
+ <line num="334" count="0" type="cond" truecount="0" falsecount="1"/>
402
399
  <line num="335" count="0" type="stmt"/>
400
+ <line num="339" count="0" type="stmt"/>
401
+ <line num="342" count="0" type="stmt"/>
403
402
  <line num="344" count="0" type="stmt"/>
404
- <line num="345" count="0" type="stmt"/>
405
- <line num="346" count="0" type="cond" truecount="0" falsecount="1"/>
406
- <line num="347" count="0" type="stmt"/>
407
- <line num="353" count="0" type="cond" truecount="0" falsecount="2"/>
408
- <line num="354" count="0" type="stmt"/>
409
- <line num="356" count="0" type="stmt"/>
410
- <line num="359" count="0" type="stmt"/>
411
- <line num="361" count="0" type="stmt"/>
412
- <line num="363" count="0" type="stmt"/>
413
- <line num="369" count="18" type="stmt"/>
414
- <line num="370" count="36" type="stmt"/>
415
- <line num="371" count="36" type="stmt"/>
416
- <line num="372" count="36" type="stmt"/>
417
- <line num="373" count="36" type="stmt"/>
418
- <line num="374" count="23" type="stmt"/>
419
- <line num="375" count="23" type="stmt"/>
420
- <line num="377" count="13" type="stmt"/>
421
- <line num="381" count="18" type="stmt"/>
422
- <line num="382" count="4" type="stmt"/>
403
+ <line num="350" count="18" type="stmt"/>
404
+ <line num="351" count="36" type="stmt"/>
405
+ <line num="352" count="36" type="stmt"/>
406
+ <line num="353" count="36" type="stmt"/>
407
+ <line num="354" count="36" type="stmt"/>
408
+ <line num="355" count="23" type="stmt"/>
409
+ <line num="356" count="23" type="stmt"/>
410
+ <line num="358" count="13" type="stmt"/>
411
+ <line num="362" count="18" type="stmt"/>
412
+ <line num="363" count="4" type="stmt"/>
413
+ <line num="364" count="4" type="stmt"/>
414
+ <line num="366" count="4" type="stmt"/>
415
+ <line num="367" count="4" type="stmt"/>
416
+ <line num="370" count="4" type="stmt"/>
417
+ <line num="371" count="4" type="stmt"/>
418
+ <line num="372" count="4" type="cond" truecount="3" falsecount="0"/>
419
+ <line num="374" count="4" type="stmt"/>
420
+ <line num="378" count="4" type="stmt"/>
423
421
  <line num="383" count="4" type="stmt"/>
424
- <line num="385" count="4" type="stmt"/>
425
- <line num="386" count="4" type="stmt"/>
426
- <line num="389" count="4" type="stmt"/>
427
- <line num="390" count="4" type="stmt"/>
428
- <line num="391" count="4" type="cond" truecount="3" falsecount="0"/>
422
+ <line num="388" count="4" type="stmt"/>
429
423
  <line num="393" count="4" type="stmt"/>
430
- <line num="397" count="4" type="stmt"/>
431
- <line num="402" count="4" type="stmt"/>
432
- <line num="407" count="4" type="stmt"/>
433
- <line num="412" count="4" type="stmt"/>
434
- <line num="413" count="4" type="stmt"/>
435
- <line num="438" count="0" type="stmt"/>
424
+ <line num="394" count="4" type="stmt"/>
425
+ <line num="419" count="0" type="stmt"/>
436
426
  </file>
437
427
  <file name="email.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/controllers/global/email.ts">
438
428
  <metrics statements="9" coveredstatements="7" conditionals="1" coveredconditionals="0" methods="1" coveredmethods="1"/>
@@ -1255,7 +1245,7 @@
1255
1245
  </file>
1256
1246
  </package>
1257
1247
  <package name="src.sdk.users">
1258
- <metrics statements="328" coveredstatements="297" conditionals="121" coveredconditionals="103" methods="76" coveredmethods="70"/>
1248
+ <metrics statements="332" coveredstatements="301" conditionals="121" coveredconditionals="103" methods="78" coveredmethods="72"/>
1259
1249
  <file name="events.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/sdk/users/events.ts">
1260
1250
  <metrics statements="69" coveredstatements="68" conditionals="37" coveredconditionals="36" methods="18" coveredmethods="18"/>
1261
1251
  <line num="1" count="18" type="stmt"/>
@@ -1333,265 +1323,269 @@
1333
1323
  <line num="1" count="18" type="stmt"/>
1334
1324
  </file>
1335
1325
  <file name="users.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/sdk/users/users.ts">
1336
- <metrics statements="258" coveredstatements="228" conditionals="84" coveredconditionals="67" methods="58" coveredmethods="52"/>
1326
+ <metrics statements="262" coveredstatements="232" conditionals="84" coveredconditionals="67" methods="60" coveredmethods="54"/>
1337
1327
  <line num="1" count="18" type="stmt"/>
1338
1328
  <line num="2" count="18" type="stmt"/>
1339
1329
  <line num="3" count="18" type="stmt"/>
1340
1330
  <line num="4" count="18" type="stmt"/>
1341
1331
  <line num="19" count="18" type="stmt"/>
1342
- <line num="34" count="18" type="stmt"/>
1343
1332
  <line num="35" count="18" type="stmt"/>
1344
1333
  <line num="36" count="18" type="stmt"/>
1345
- <line num="38" count="18" type="stmt"/>
1346
- <line num="40" count="18" type="stmt"/>
1347
- <line num="41" count="1" type="stmt"/>
1334
+ <line num="37" count="18" type="stmt"/>
1335
+ <line num="39" count="18" type="stmt"/>
1336
+ <line num="41" count="18" type="stmt"/>
1348
1337
  <line num="42" count="1" type="stmt"/>
1349
- <line num="47" count="2" type="stmt"/>
1350
- <line num="50" count="18" type="stmt"/>
1351
- <line num="51" count="0" type="stmt"/>
1338
+ <line num="43" count="1" type="stmt"/>
1339
+ <line num="48" count="2" type="stmt"/>
1340
+ <line num="51" count="18" type="stmt"/>
1352
1341
  <line num="52" count="0" type="stmt"/>
1353
- <line num="57" count="18" type="cond" truecount="0" falsecount="1"/>
1354
- <line num="62" count="0" type="stmt"/>
1342
+ <line num="53" count="0" type="stmt"/>
1343
+ <line num="58" count="18" type="cond" truecount="0" falsecount="1"/>
1355
1344
  <line num="63" count="0" type="stmt"/>
1356
- <line num="65" count="0" type="stmt"/>
1357
- <line num="70" count="0" type="cond" truecount="0" falsecount="1"/>
1358
- <line num="71" count="0" type="stmt"/>
1359
- <line num="75" count="0" type="stmt"/>
1360
- <line num="77" count="0" type="cond" truecount="0" falsecount="2"/>
1361
- <line num="78" count="0" type="stmt"/>
1345
+ <line num="64" count="0" type="stmt"/>
1346
+ <line num="66" count="0" type="stmt"/>
1347
+ <line num="71" count="0" type="cond" truecount="0" falsecount="1"/>
1348
+ <line num="72" count="0" type="stmt"/>
1349
+ <line num="76" count="0" type="stmt"/>
1350
+ <line num="78" count="0" type="cond" truecount="0" falsecount="2"/>
1362
1351
  <line num="79" count="0" type="stmt"/>
1363
- <line num="80" count="0" type="cond" truecount="0" falsecount="2"/>
1364
- <line num="81" count="0" type="stmt"/>
1352
+ <line num="80" count="0" type="stmt"/>
1353
+ <line num="81" count="0" type="cond" truecount="0" falsecount="2"/>
1365
1354
  <line num="82" count="0" type="stmt"/>
1366
- <line num="85" count="0" type="stmt"/>
1355
+ <line num="83" count="0" type="stmt"/>
1367
1356
  <line num="86" count="0" type="stmt"/>
1368
- <line num="88" count="0" type="stmt"/>
1369
- <line num="98" count="18" type="stmt"/>
1370
- <line num="99" count="10" type="stmt"/>
1357
+ <line num="87" count="0" type="stmt"/>
1358
+ <line num="89" count="0" type="stmt"/>
1359
+ <line num="99" count="18" type="stmt"/>
1371
1360
  <line num="100" count="10" type="stmt"/>
1372
- <line num="101" count="10" type="cond" truecount="1" falsecount="0"/>
1373
- <line num="102" count="10" type="stmt"/>
1374
- <line num="104" count="10" type="stmt"/>
1375
- <line num="113" count="18" type="stmt"/>
1376
- <line num="121" count="95" type="stmt"/>
1361
+ <line num="101" count="10" type="stmt"/>
1362
+ <line num="102" count="10" type="cond" truecount="1" falsecount="0"/>
1363
+ <line num="103" count="10" type="stmt"/>
1364
+ <line num="105" count="10" type="stmt"/>
1365
+ <line num="114" count="18" type="stmt"/>
1377
1366
  <line num="122" count="95" type="stmt"/>
1378
1367
  <line num="123" count="95" type="stmt"/>
1379
- <line num="126" count="95" type="cond" truecount="2" falsecount="0"/>
1380
- <line num="127" count="93" type="cond" truecount="1" falsecount="1"/>
1381
- <line num="128" count="2" type="cond" truecount="2" falsecount="0"/>
1382
- <line num="129" count="1" type="stmt"/>
1383
- <line num="130" count="1" type="cond" truecount="0" falsecount="1"/>
1384
- <line num="131" count="0" type="stmt"/>
1385
- <line num="134" count="95" type="cond" truecount="2" falsecount="0"/>
1386
- <line num="136" count="95" type="stmt"/>
1387
- <line num="145" count="95" type="cond" truecount="1" falsecount="0"/>
1388
- <line num="146" count="1" type="stmt"/>
1389
- <line num="149" count="95" type="cond" truecount="1" falsecount="0"/>
1390
- <line num="150" count="84" type="stmt"/>
1391
- <line num="153" count="95" type="stmt"/>
1392
- <line num="156" count="91" type="stmt"/>
1393
- <line num="158" count="91" type="cond" truecount="1" falsecount="0"/>
1394
- <line num="159" count="91" type="stmt"/>
1395
- <line num="160" count="91" type="cond" truecount="3" falsecount="0"/>
1396
- <line num="161" count="1" type="stmt"/>
1397
- <line num="166" count="90" type="cond" truecount="3" falsecount="0"/>
1398
- <line num="167" count="90" type="stmt"/>
1399
- <line num="168" count="90" type="cond" truecount="4" falsecount="0"/>
1400
- <line num="169" count="1" type="stmt"/>
1401
- <line num="174" count="18" type="stmt"/>
1402
- <line num="177" count="94" type="stmt"/>
1403
- <line num="179" count="94" type="cond" truecount="1" falsecount="0"/>
1404
- <line num="180" count="87" type="stmt"/>
1405
- <line num="182" count="94" type="cond" truecount="1" falsecount="0"/>
1406
- <line num="183" count="87" type="stmt"/>
1407
- <line num="185" count="94" type="stmt"/>
1408
- <line num="186" count="94" type="stmt"/>
1409
- <line num="188" count="94" type="cond" truecount="1" falsecount="0"/>
1410
- <line num="190" count="94" type="cond" truecount="1" falsecount="2"/>
1411
- <line num="191" count="0" type="stmt"/>
1412
- <line num="195" count="94" type="cond" truecount="1" falsecount="0"/>
1413
- <line num="197" count="13" type="stmt"/>
1414
- <line num="198" count="13" type="stmt"/>
1415
- <line num="199" count="12" type="cond" truecount="3" falsecount="0"/>
1416
- <line num="200" count="1" type="stmt"/>
1417
- <line num="202" count="11" type="stmt"/>
1418
- <line num="204" count="2" type="cond" truecount="2" falsecount="0"/>
1419
- <line num="207" count="1" type="stmt"/>
1420
- <line num="212" count="93" type="cond" truecount="3" falsecount="0"/>
1421
- <line num="214" count="82" type="stmt"/>
1422
- <line num="215" count="82" type="cond" truecount="3" falsecount="0"/>
1423
- <line num="216" count="2" type="stmt"/>
1424
- <line num="220" count="91" type="stmt"/>
1425
- <line num="222" count="89" type="stmt"/>
1426
- <line num="224" count="89" type="cond" truecount="7" falsecount="0"/>
1427
- <line num="225" count="1" type="stmt"/>
1428
- <line num="226" count="1" type="stmt"/>
1429
- <line num="227" count="1" type="stmt"/>
1430
- <line num="232" count="89" type="stmt"/>
1431
- <line num="233" count="89" type="cond" truecount="1" falsecount="0"/>
1432
- <line num="234" count="77" type="stmt"/>
1433
- <line num="236" count="77" type="cond" truecount="0" falsecount="1"/>
1434
- <line num="237" count="0" type="stmt"/>
1435
- <line num="238" count="0" type="stmt"/>
1436
- <line num="243" count="89" type="stmt"/>
1437
- <line num="245" count="89" type="stmt"/>
1438
- <line num="246" count="89" type="stmt"/>
1439
- <line num="248" count="89" type="stmt"/>
1368
+ <line num="124" count="95" type="stmt"/>
1369
+ <line num="127" count="95" type="cond" truecount="2" falsecount="0"/>
1370
+ <line num="128" count="93" type="cond" truecount="1" falsecount="1"/>
1371
+ <line num="129" count="2" type="cond" truecount="2" falsecount="0"/>
1372
+ <line num="130" count="1" type="stmt"/>
1373
+ <line num="131" count="1" type="cond" truecount="0" falsecount="1"/>
1374
+ <line num="132" count="0" type="stmt"/>
1375
+ <line num="135" count="95" type="cond" truecount="2" falsecount="0"/>
1376
+ <line num="137" count="95" type="stmt"/>
1377
+ <line num="146" count="95" type="cond" truecount="1" falsecount="0"/>
1378
+ <line num="147" count="1" type="stmt"/>
1379
+ <line num="150" count="95" type="cond" truecount="1" falsecount="0"/>
1380
+ <line num="151" count="84" type="stmt"/>
1381
+ <line num="154" count="95" type="stmt"/>
1382
+ <line num="158" count="18" type="stmt"/>
1383
+ <line num="160" count="91" type="stmt"/>
1384
+ <line num="163" count="91" type="stmt"/>
1385
+ <line num="170" count="91" type="stmt"/>
1386
+ <line num="173" count="91" type="stmt"/>
1387
+ <line num="175" count="91" type="cond" truecount="1" falsecount="0"/>
1388
+ <line num="176" count="91" type="stmt"/>
1389
+ <line num="177" count="91" type="cond" truecount="3" falsecount="0"/>
1390
+ <line num="178" count="1" type="stmt"/>
1391
+ <line num="183" count="90" type="cond" truecount="3" falsecount="0"/>
1392
+ <line num="184" count="90" type="stmt"/>
1393
+ <line num="185" count="90" type="cond" truecount="4" falsecount="0"/>
1394
+ <line num="186" count="1" type="stmt"/>
1395
+ <line num="191" count="18" type="stmt"/>
1396
+ <line num="194" count="94" type="stmt"/>
1397
+ <line num="196" count="94" type="cond" truecount="1" falsecount="0"/>
1398
+ <line num="197" count="87" type="stmt"/>
1399
+ <line num="199" count="94" type="cond" truecount="1" falsecount="0"/>
1400
+ <line num="200" count="87" type="stmt"/>
1401
+ <line num="202" count="94" type="stmt"/>
1402
+ <line num="203" count="94" type="stmt"/>
1403
+ <line num="205" count="94" type="cond" truecount="1" falsecount="0"/>
1404
+ <line num="207" count="94" type="cond" truecount="1" falsecount="2"/>
1405
+ <line num="208" count="0" type="stmt"/>
1406
+ <line num="212" count="94" type="cond" truecount="1" falsecount="0"/>
1407
+ <line num="214" count="13" type="stmt"/>
1408
+ <line num="215" count="13" type="stmt"/>
1409
+ <line num="216" count="12" type="cond" truecount="3" falsecount="0"/>
1410
+ <line num="217" count="1" type="stmt"/>
1411
+ <line num="219" count="11" type="stmt"/>
1412
+ <line num="221" count="2" type="cond" truecount="2" falsecount="0"/>
1413
+ <line num="224" count="1" type="stmt"/>
1414
+ <line num="229" count="93" type="cond" truecount="3" falsecount="0"/>
1415
+ <line num="231" count="82" type="stmt"/>
1416
+ <line num="232" count="82" type="cond" truecount="3" falsecount="0"/>
1417
+ <line num="233" count="2" type="stmt"/>
1418
+ <line num="237" count="91" type="stmt"/>
1419
+ <line num="239" count="89" type="stmt"/>
1420
+ <line num="241" count="89" type="cond" truecount="7" falsecount="0"/>
1421
+ <line num="242" count="1" type="stmt"/>
1422
+ <line num="243" count="1" type="stmt"/>
1423
+ <line num="244" count="1" type="stmt"/>
1440
1424
  <line num="249" count="89" type="stmt"/>
1441
- <line num="250" count="89" type="stmt"/>
1442
- <line num="252" count="89" type="stmt"/>
1443
- <line num="254" count="89" type="stmt"/>
1444
- <line num="256" count="89" type="stmt"/>
1445
- <line num="262" count="0" type="cond" truecount="0" falsecount="2"/>
1446
- <line num="263" count="0" type="stmt"/>
1447
- <line num="265" count="0" type="stmt"/>
1448
- <line num="270" count="18" type="stmt"/>
1449
- <line num="274" count="95" type="stmt"/>
1450
- <line num="275" count="95" type="cond" truecount="1" falsecount="0"/>
1451
- <line num="276" count="95" type="stmt"/>
1452
- <line num="277" count="42" type="stmt"/>
1453
- <line num="281" count="95" type="stmt"/>
1454
- <line num="285" count="18" type="stmt"/>
1455
- <line num="286" count="16" type="stmt"/>
1456
- <line num="287" count="11" type="stmt"/>
1457
- <line num="292" count="11" type="stmt"/>
1458
- <line num="296" count="11" type="stmt"/>
1459
- <line num="304" count="18" type="stmt"/>
1460
- <line num="306" count="11" type="stmt"/>
1461
- <line num="307" count="16" type="stmt"/>
1462
- <line num="308" count="11" type="stmt"/>
1425
+ <line num="250" count="89" type="cond" truecount="1" falsecount="0"/>
1426
+ <line num="251" count="77" type="stmt"/>
1427
+ <line num="253" count="77" type="cond" truecount="0" falsecount="1"/>
1428
+ <line num="254" count="0" type="stmt"/>
1429
+ <line num="255" count="0" type="stmt"/>
1430
+ <line num="260" count="89" type="stmt"/>
1431
+ <line num="262" count="89" type="stmt"/>
1432
+ <line num="263" count="89" type="stmt"/>
1433
+ <line num="265" count="89" type="stmt"/>
1434
+ <line num="266" count="89" type="stmt"/>
1435
+ <line num="267" count="89" type="stmt"/>
1436
+ <line num="269" count="89" type="stmt"/>
1437
+ <line num="271" count="89" type="stmt"/>
1438
+ <line num="273" count="89" type="stmt"/>
1439
+ <line num="279" count="0" type="cond" truecount="0" falsecount="2"/>
1440
+ <line num="280" count="0" type="stmt"/>
1441
+ <line num="282" count="0" type="stmt"/>
1442
+ <line num="287" count="18" type="stmt"/>
1443
+ <line num="291" count="95" type="stmt"/>
1444
+ <line num="292" count="95" type="cond" truecount="1" falsecount="0"/>
1445
+ <line num="293" count="95" type="stmt"/>
1446
+ <line num="294" count="42" type="stmt"/>
1447
+ <line num="298" count="95" type="stmt"/>
1448
+ <line num="302" count="18" type="stmt"/>
1449
+ <line num="303" count="16" type="stmt"/>
1450
+ <line num="304" count="11" type="stmt"/>
1451
+ <line num="309" count="11" type="stmt"/>
1463
1452
  <line num="313" count="11" type="stmt"/>
1464
- <line num="316" count="11" type="stmt"/>
1465
- <line num="323" count="18" type="stmt"/>
1453
+ <line num="321" count="18" type="stmt"/>
1454
+ <line num="323" count="11" type="stmt"/>
1455
+ <line num="324" count="16" type="stmt"/>
1466
1456
  <line num="325" count="11" type="stmt"/>
1467
- <line num="326" count="16" type="stmt"/>
1468
- <line num="327" count="11" type="stmt"/>
1469
- <line num="332" count="11" type="stmt"/>
1470
- <line num="336" count="11" type="stmt"/>
1471
- <line num="350" count="18" type="stmt"/>
1472
- <line num="351" count="11" type="stmt"/>
1457
+ <line num="330" count="11" type="stmt"/>
1458
+ <line num="333" count="11" type="stmt"/>
1459
+ <line num="340" count="18" type="stmt"/>
1460
+ <line num="342" count="11" type="stmt"/>
1461
+ <line num="343" count="16" type="stmt"/>
1462
+ <line num="344" count="11" type="stmt"/>
1463
+ <line num="349" count="11" type="stmt"/>
1473
1464
  <line num="353" count="11" type="stmt"/>
1474
- <line num="354" count="11" type="stmt"/>
1475
- <line num="356" count="11" type="stmt"/>
1476
- <line num="357" count="11" type="stmt"/>
1477
- <line num="359" count="11" type="stmt"/>
1478
- <line num="360" count="11" type="stmt"/>
1479
- <line num="362" count="11" type="stmt"/>
1480
- <line num="365" count="18" type="stmt"/>
1481
- <line num="368" count="6" type="stmt"/>
1482
- <line num="369" count="6" type="stmt"/>
1483
- <line num="371" count="6" type="stmt"/>
1484
- <line num="372" count="6" type="stmt"/>
1485
- <line num="374" count="10" type="stmt"/>
1486
- <line num="375" count="6" type="stmt"/>
1487
- <line num="376" count="6" type="stmt"/>
1488
- <line num="378" count="6" type="stmt"/>
1489
- <line num="379" count="10" type="cond" truecount="1" falsecount="0"/>
1490
- <line num="381" count="6" type="stmt"/>
1491
- <line num="385" count="4" type="stmt"/>
1492
- <line num="389" count="4" type="stmt"/>
1493
- <line num="391" count="6" type="stmt"/>
1465
+ <line num="367" count="18" type="stmt"/>
1466
+ <line num="368" count="11" type="stmt"/>
1467
+ <line num="370" count="11" type="stmt"/>
1468
+ <line num="371" count="11" type="stmt"/>
1469
+ <line num="373" count="11" type="stmt"/>
1470
+ <line num="374" count="11" type="stmt"/>
1471
+ <line num="376" count="11" type="stmt"/>
1472
+ <line num="377" count="11" type="stmt"/>
1473
+ <line num="379" count="11" type="stmt"/>
1474
+ <line num="382" count="18" type="stmt"/>
1475
+ <line num="385" count="6" type="stmt"/>
1476
+ <line num="386" count="6" type="stmt"/>
1477
+ <line num="388" count="6" type="stmt"/>
1478
+ <line num="389" count="6" type="stmt"/>
1479
+ <line num="391" count="10" type="stmt"/>
1494
1480
  <line num="392" count="6" type="stmt"/>
1495
- <line num="396" count="6" type="stmt"/>
1496
- <line num="397" count="6" type="stmt"/>
1481
+ <line num="393" count="6" type="stmt"/>
1482
+ <line num="395" count="6" type="stmt"/>
1483
+ <line num="396" count="10" type="cond" truecount="1" falsecount="0"/>
1484
+ <line num="398" count="6" type="stmt"/>
1485
+ <line num="402" count="4" type="stmt"/>
1486
+ <line num="406" count="4" type="stmt"/>
1487
+ <line num="408" count="6" type="stmt"/>
1497
1488
  <line num="409" count="6" type="stmt"/>
1498
- <line num="410" count="6" type="stmt"/>
1499
1489
  <line num="413" count="6" type="stmt"/>
1500
- <line num="416" count="6" type="stmt"/>
1501
- <line num="417" count="6" type="stmt"/>
1502
- <line num="418" count="6" type="stmt"/>
1503
- <line num="421" count="6" type="stmt"/>
1504
- <line num="422" count="6" type="stmt"/>
1505
- <line num="429" count="6" type="cond" truecount="3" falsecount="0"/>
1490
+ <line num="414" count="6" type="stmt"/>
1491
+ <line num="426" count="6" type="stmt"/>
1492
+ <line num="427" count="6" type="stmt"/>
1506
1493
  <line num="430" count="6" type="stmt"/>
1507
- <line num="431" count="6" type="stmt"/>
1508
- <line num="432" count="6" type="stmt"/>
1509
- <line num="433" count="0" type="stmt"/>
1494
+ <line num="433" count="6" type="stmt"/>
1495
+ <line num="434" count="6" type="stmt"/>
1510
1496
  <line num="435" count="6" type="stmt"/>
1511
1497
  <line num="438" count="6" type="stmt"/>
1512
- <line num="447" count="18" type="stmt"/>
1513
- <line num="449" count="2" type="stmt"/>
1514
- <line num="450" count="2" type="cond" truecount="3" falsecount="0"/>
1515
- <line num="451" count="2" type="stmt"/>
1516
- <line num="452" count="2" type="stmt"/>
1517
- <line num="453" count="2" type="cond" truecount="0" falsecount="1"/>
1518
- <line num="454" count="0" type="stmt"/>
1519
- <line num="457" count="2" type="stmt"/>
1520
- <line num="458" count="2" type="cond" truecount="1" falsecount="0"/>
1521
- <line num="459" count="1" type="stmt"/>
1498
+ <line num="439" count="6" type="stmt"/>
1499
+ <line num="446" count="6" type="cond" truecount="3" falsecount="0"/>
1500
+ <line num="447" count="6" type="stmt"/>
1501
+ <line num="448" count="6" type="stmt"/>
1502
+ <line num="449" count="6" type="stmt"/>
1503
+ <line num="450" count="0" type="stmt"/>
1504
+ <line num="452" count="6" type="stmt"/>
1505
+ <line num="455" count="6" type="stmt"/>
1522
1506
  <line num="464" count="18" type="stmt"/>
1523
1507
  <line num="466" count="2" type="stmt"/>
1524
- <line num="467" count="2" type="stmt"/>
1508
+ <line num="467" count="2" type="cond" truecount="3" falsecount="0"/>
1509
+ <line num="468" count="2" type="stmt"/>
1525
1510
  <line num="469" count="2" type="stmt"/>
1526
- <line num="475" count="2" type="stmt"/>
1527
- <line num="476" count="2" type="cond" truecount="1" falsecount="0"/>
1528
- <line num="477" count="1" type="stmt"/>
1529
- <line num="479" count="1" type="stmt"/>
1530
- <line num="487" count="2" type="stmt"/>
1531
- <line num="491" count="2" type="stmt"/>
1532
- <line num="493" count="3" type="stmt"/>
1533
- <line num="498" count="3" type="stmt"/>
1534
- <line num="502" count="2" type="stmt"/>
1535
- <line num="503" count="2" type="stmt"/>
1536
- <line num="504" count="3" type="stmt"/>
1537
- <line num="509" count="2" type="stmt"/>
1538
- <line num="510" count="2" type="stmt"/>
1539
- <line num="511" count="3" type="stmt"/>
1540
- <line num="512" count="3" type="stmt"/>
1541
- <line num="516" count="2" type="stmt"/>
1542
- <line num="517" count="3" type="stmt"/>
1543
- <line num="518" count="3" type="cond" truecount="1" falsecount="1"/>
1544
- <line num="519" count="3" type="stmt"/>
1545
- <line num="521" count="0" type="stmt"/>
1546
- <line num="529" count="2" type="stmt"/>
1547
- <line num="532" count="18" type="stmt"/>
1548
- <line num="533" count="4" type="stmt"/>
1549
- <line num="534" count="4" type="stmt"/>
1550
- <line num="535" count="4" type="stmt"/>
1551
- <line num="537" count="4" type="cond" truecount="3" falsecount="0"/>
1552
- <line num="539" count="4" type="stmt"/>
1553
- <line num="540" count="4" type="stmt"/>
1554
- <line num="541" count="4" type="cond" truecount="1" falsecount="0"/>
1555
- <line num="542" count="1" type="cond" truecount="1" falsecount="1"/>
1556
- <line num="543" count="0" type="stmt"/>
1557
- <line num="545" count="1" type="stmt"/>
1558
- <line num="550" count="3" type="stmt"/>
1559
- <line num="552" count="3" type="stmt"/>
1560
- <line num="554" count="3" type="stmt"/>
1561
- <line num="555" count="3" type="stmt"/>
1562
- <line num="556" count="3" type="stmt"/>
1563
- <line num="558" count="3" type="stmt"/>
1564
- <line num="561" count="18" type="stmt"/>
1565
- <line num="562" count="3" type="stmt"/>
1566
- <line num="563" count="3" type="stmt"/>
1567
- <line num="564" count="3" type="stmt"/>
1568
- <line num="565" count="3" type="stmt"/>
1569
- <line num="566" count="3" type="stmt"/>
1570
- <line num="568" count="3" type="stmt"/>
1571
- <line num="571" count="18" type="stmt"/>
1572
- <line num="573" count="5" type="stmt"/>
1573
- <line num="574" count="5" type="stmt"/>
1574
- <line num="579" count="6" type="stmt"/>
1575
- <line num="580" count="5" type="stmt"/>
1576
- <line num="583" count="5" type="stmt"/>
1577
- <line num="584" count="6" type="cond" truecount="2" falsecount="0"/>
1578
- <line num="585" count="2" type="stmt"/>
1579
- <line num="587" count="4" type="stmt"/>
1511
+ <line num="470" count="2" type="cond" truecount="0" falsecount="1"/>
1512
+ <line num="471" count="0" type="stmt"/>
1513
+ <line num="474" count="2" type="stmt"/>
1514
+ <line num="475" count="2" type="cond" truecount="1" falsecount="0"/>
1515
+ <line num="476" count="1" type="stmt"/>
1516
+ <line num="481" count="18" type="stmt"/>
1517
+ <line num="483" count="2" type="stmt"/>
1518
+ <line num="484" count="2" type="stmt"/>
1519
+ <line num="486" count="2" type="stmt"/>
1520
+ <line num="492" count="2" type="stmt"/>
1521
+ <line num="493" count="2" type="cond" truecount="1" falsecount="0"/>
1522
+ <line num="494" count="1" type="stmt"/>
1523
+ <line num="496" count="1" type="stmt"/>
1524
+ <line num="504" count="2" type="stmt"/>
1525
+ <line num="508" count="2" type="stmt"/>
1526
+ <line num="510" count="3" type="stmt"/>
1527
+ <line num="515" count="3" type="stmt"/>
1528
+ <line num="519" count="2" type="stmt"/>
1529
+ <line num="520" count="2" type="stmt"/>
1530
+ <line num="521" count="3" type="stmt"/>
1531
+ <line num="526" count="2" type="stmt"/>
1532
+ <line num="527" count="2" type="stmt"/>
1533
+ <line num="528" count="3" type="stmt"/>
1534
+ <line num="529" count="3" type="stmt"/>
1535
+ <line num="533" count="2" type="stmt"/>
1536
+ <line num="534" count="3" type="stmt"/>
1537
+ <line num="535" count="3" type="cond" truecount="1" falsecount="1"/>
1538
+ <line num="536" count="3" type="stmt"/>
1539
+ <line num="538" count="0" type="stmt"/>
1540
+ <line num="546" count="2" type="stmt"/>
1541
+ <line num="549" count="18" type="stmt"/>
1542
+ <line num="550" count="4" type="stmt"/>
1543
+ <line num="551" count="4" type="stmt"/>
1544
+ <line num="552" count="4" type="stmt"/>
1545
+ <line num="554" count="4" type="cond" truecount="3" falsecount="0"/>
1546
+ <line num="556" count="4" type="stmt"/>
1547
+ <line num="557" count="4" type="stmt"/>
1548
+ <line num="558" count="4" type="cond" truecount="1" falsecount="0"/>
1549
+ <line num="559" count="1" type="cond" truecount="1" falsecount="1"/>
1550
+ <line num="560" count="0" type="stmt"/>
1551
+ <line num="562" count="1" type="stmt"/>
1552
+ <line num="567" count="3" type="stmt"/>
1553
+ <line num="569" count="3" type="stmt"/>
1554
+ <line num="571" count="3" type="stmt"/>
1555
+ <line num="572" count="3" type="stmt"/>
1556
+ <line num="573" count="3" type="stmt"/>
1557
+ <line num="575" count="3" type="stmt"/>
1558
+ <line num="578" count="18" type="stmt"/>
1559
+ <line num="579" count="3" type="stmt"/>
1560
+ <line num="580" count="3" type="stmt"/>
1561
+ <line num="581" count="3" type="stmt"/>
1562
+ <line num="582" count="3" type="stmt"/>
1563
+ <line num="583" count="3" type="stmt"/>
1564
+ <line num="585" count="3" type="stmt"/>
1565
+ <line num="588" count="18" type="stmt"/>
1566
+ <line num="590" count="5" type="stmt"/>
1580
1567
  <line num="591" count="5" type="stmt"/>
1581
- <line num="594" count="5" type="stmt"/>
1582
- <line num="595" count="5" type="stmt"/>
1583
- <line num="596" count="4" type="stmt"/>
1584
- <line num="597" count="4" type="stmt"/>
1585
- <line num="598" count="4" type="cond" truecount="1" falsecount="0"/>
1586
- <line num="599" count="2" type="stmt"/>
1587
- <line num="601" count="4" type="stmt"/>
1588
- <line num="602" count="4" type="stmt"/>
1589
- <line num="606" count="4" type="stmt"/>
1590
- <line num="607" count="4" type="stmt"/>
1591
- <line num="608" count="4" type="stmt"/>
1592
- <line num="610" count="0" type="stmt"/>
1593
- <line num="611" count="0" type="stmt"/>
1594
- <line num="618" count="5" type="stmt"/>
1568
+ <line num="596" count="6" type="stmt"/>
1569
+ <line num="597" count="5" type="stmt"/>
1570
+ <line num="600" count="5" type="stmt"/>
1571
+ <line num="601" count="6" type="cond" truecount="2" falsecount="0"/>
1572
+ <line num="602" count="2" type="stmt"/>
1573
+ <line num="604" count="4" type="stmt"/>
1574
+ <line num="608" count="5" type="stmt"/>
1575
+ <line num="611" count="5" type="stmt"/>
1576
+ <line num="612" count="5" type="stmt"/>
1577
+ <line num="613" count="4" type="stmt"/>
1578
+ <line num="614" count="4" type="stmt"/>
1579
+ <line num="615" count="4" type="cond" truecount="1" falsecount="0"/>
1580
+ <line num="616" count="2" type="stmt"/>
1581
+ <line num="618" count="4" type="stmt"/>
1582
+ <line num="619" count="4" type="stmt"/>
1583
+ <line num="623" count="4" type="stmt"/>
1584
+ <line num="624" count="4" type="stmt"/>
1585
+ <line num="625" count="4" type="stmt"/>
1586
+ <line num="627" count="0" type="stmt"/>
1587
+ <line num="628" count="0" type="stmt"/>
1588
+ <line num="635" count="5" type="stmt"/>
1595
1589
  </file>
1596
1590
  </package>
1597
1591
  <package name="src.tests">
@@ -1974,7 +1968,7 @@
1974
1968
  </package>
1975
1969
  <package name="src.tests.mocks">
1976
1970
  <metrics statements="8" coveredstatements="8" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
1977
- <file name="email.js" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/mocks/email.js">
1971
+ <file name="email.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/mocks/email.ts">
1978
1972
  <metrics statements="5" coveredstatements="5" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
1979
1973
  <line num="1" count="18" type="stmt"/>
1980
1974
  <line num="3" count="4" type="stmt"/>