@budibase/worker 2.2.12-alpha.49 → 2.2.12-alpha.50

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 (114) hide show
  1. package/coverage/clover.xml +73 -66
  2. package/coverage/coverage-final.json +4 -4
  3. package/coverage/lcov-report/index.html +18 -18
  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 +1 -1
  6. package/coverage/lcov-report/src/api/controllers/global/email.ts.html +1 -1
  7. package/coverage/lcov-report/src/api/controllers/global/events.ts.html +1 -1
  8. package/coverage/lcov-report/src/api/controllers/global/index.html +15 -15
  9. package/coverage/lcov-report/src/api/controllers/global/license.ts.html +1 -1
  10. package/coverage/lcov-report/src/api/controllers/global/roles.ts.html +1 -1
  11. package/coverage/lcov-report/src/api/controllers/global/self.ts.html +1 -1
  12. package/coverage/lcov-report/src/api/controllers/global/templates.ts.html +1 -1
  13. package/coverage/lcov-report/src/api/controllers/global/users.ts.html +47 -8
  14. package/coverage/lcov-report/src/api/controllers/global/workspaces.ts.html +1 -1
  15. package/coverage/lcov-report/src/api/controllers/system/accounts.ts.html +1 -1
  16. package/coverage/lcov-report/src/api/controllers/system/environment.ts.html +1 -1
  17. package/coverage/lcov-report/src/api/controllers/system/index.html +1 -1
  18. package/coverage/lcov-report/src/api/controllers/system/migrations.ts.html +1 -1
  19. package/coverage/lcov-report/src/api/controllers/system/restore.ts.html +1 -1
  20. package/coverage/lcov-report/src/api/controllers/system/status.ts.html +1 -1
  21. package/coverage/lcov-report/src/api/controllers/system/tenants.ts.html +1 -1
  22. package/coverage/lcov-report/src/api/index.html +1 -1
  23. package/coverage/lcov-report/src/api/index.ts.html +14 -2
  24. package/coverage/lcov-report/src/api/routes/global/auth.ts.html +1 -1
  25. package/coverage/lcov-report/src/api/routes/global/configs.ts.html +1 -1
  26. package/coverage/lcov-report/src/api/routes/global/email.ts.html +1 -1
  27. package/coverage/lcov-report/src/api/routes/global/events.ts.html +1 -1
  28. package/coverage/lcov-report/src/api/routes/global/index.html +7 -7
  29. package/coverage/lcov-report/src/api/routes/global/license.ts.html +1 -1
  30. package/coverage/lcov-report/src/api/routes/global/roles.ts.html +1 -1
  31. package/coverage/lcov-report/src/api/routes/global/self.ts.html +1 -1
  32. package/coverage/lcov-report/src/api/routes/global/templates.ts.html +1 -1
  33. package/coverage/lcov-report/src/api/routes/global/users.ts.html +47 -5
  34. package/coverage/lcov-report/src/api/routes/global/workspaces.ts.html +1 -1
  35. package/coverage/lcov-report/src/api/routes/index.html +1 -1
  36. package/coverage/lcov-report/src/api/routes/index.ts.html +1 -1
  37. package/coverage/lcov-report/src/api/routes/system/accounts.ts.html +1 -1
  38. package/coverage/lcov-report/src/api/routes/system/environment.ts.html +1 -1
  39. package/coverage/lcov-report/src/api/routes/system/index.html +1 -1
  40. package/coverage/lcov-report/src/api/routes/system/migrations.ts.html +1 -1
  41. package/coverage/lcov-report/src/api/routes/system/restore.ts.html +1 -1
  42. package/coverage/lcov-report/src/api/routes/system/status.ts.html +1 -1
  43. package/coverage/lcov-report/src/api/routes/system/tenants.ts.html +1 -1
  44. package/coverage/lcov-report/src/api/routes/validation/index.html +1 -1
  45. package/coverage/lcov-report/src/api/routes/validation/index.ts.html +1 -1
  46. package/coverage/lcov-report/src/api/routes/validation/users.ts.html +1 -1
  47. package/coverage/lcov-report/src/constants/index.html +1 -1
  48. package/coverage/lcov-report/src/constants/index.ts.html +1 -1
  49. package/coverage/lcov-report/src/constants/templates/index.html +1 -1
  50. package/coverage/lcov-report/src/constants/templates/index.ts.html +1 -1
  51. package/coverage/lcov-report/src/db/index.html +1 -1
  52. package/coverage/lcov-report/src/db/index.ts.html +1 -1
  53. package/coverage/lcov-report/src/environment.ts.html +1 -1
  54. package/coverage/lcov-report/src/index.html +1 -1
  55. package/coverage/lcov-report/src/index.ts.html +1 -1
  56. package/coverage/lcov-report/src/middleware/cloudRestricted.ts.html +1 -1
  57. package/coverage/lcov-report/src/middleware/index.html +1 -1
  58. package/coverage/lcov-report/src/migrations/functions/globalInfoSyncUsers.ts.html +1 -1
  59. package/coverage/lcov-report/src/migrations/functions/index.html +1 -1
  60. package/coverage/lcov-report/src/migrations/index.html +1 -1
  61. package/coverage/lcov-report/src/migrations/index.ts.html +1 -1
  62. package/coverage/lcov-report/src/sdk/accounts/accounts.ts.html +1 -1
  63. package/coverage/lcov-report/src/sdk/accounts/index.html +1 -1
  64. package/coverage/lcov-report/src/sdk/accounts/index.ts.html +1 -1
  65. package/coverage/lcov-report/src/sdk/index.html +1 -1
  66. package/coverage/lcov-report/src/sdk/index.ts.html +1 -1
  67. package/coverage/lcov-report/src/sdk/users/events.ts.html +1 -1
  68. package/coverage/lcov-report/src/sdk/users/index.html +1 -1
  69. package/coverage/lcov-report/src/sdk/users/index.ts.html +1 -1
  70. package/coverage/lcov-report/src/sdk/users/users.ts.html +1 -1
  71. package/coverage/lcov-report/src/tests/TestConfiguration.ts.html +1 -1
  72. package/coverage/lcov-report/src/tests/api/accounts.ts.html +1 -1
  73. package/coverage/lcov-report/src/tests/api/auth.ts.html +1 -1
  74. package/coverage/lcov-report/src/tests/api/base.ts.html +1 -1
  75. package/coverage/lcov-report/src/tests/api/configs.ts.html +1 -1
  76. package/coverage/lcov-report/src/tests/api/email.ts.html +1 -1
  77. package/coverage/lcov-report/src/tests/api/environment.ts.html +1 -1
  78. package/coverage/lcov-report/src/tests/api/groups.ts.html +1 -1
  79. package/coverage/lcov-report/src/tests/api/index.html +1 -1
  80. package/coverage/lcov-report/src/tests/api/index.ts.html +1 -1
  81. package/coverage/lcov-report/src/tests/api/license.ts.html +1 -1
  82. package/coverage/lcov-report/src/tests/api/migrations.ts.html +1 -1
  83. package/coverage/lcov-report/src/tests/api/restore.ts.html +1 -1
  84. package/coverage/lcov-report/src/tests/api/roles.ts.html +1 -1
  85. package/coverage/lcov-report/src/tests/api/self.ts.html +1 -1
  86. package/coverage/lcov-report/src/tests/api/status.ts.html +1 -1
  87. package/coverage/lcov-report/src/tests/api/templates.ts.html +1 -1
  88. package/coverage/lcov-report/src/tests/api/tenants.ts.html +1 -1
  89. package/coverage/lcov-report/src/tests/api/users.ts.html +5 -2
  90. package/coverage/lcov-report/src/tests/controllers.ts.html +1 -1
  91. package/coverage/lcov-report/src/tests/index.html +1 -1
  92. package/coverage/lcov-report/src/tests/index.ts.html +1 -1
  93. package/coverage/lcov-report/src/tests/mocks/email.ts.html +1 -1
  94. package/coverage/lcov-report/src/tests/mocks/index.html +1 -1
  95. package/coverage/lcov-report/src/tests/mocks/index.ts.html +1 -1
  96. package/coverage/lcov-report/src/tests/structures/configs.ts.html +1 -1
  97. package/coverage/lcov-report/src/tests/structures/groups.ts.html +1 -1
  98. package/coverage/lcov-report/src/tests/structures/index.html +1 -1
  99. package/coverage/lcov-report/src/tests/structures/index.ts.html +1 -1
  100. package/coverage/lcov-report/src/tests/structures/users.ts.html +1 -1
  101. package/coverage/lcov-report/src/utilities/appService.ts.html +1 -1
  102. package/coverage/lcov-report/src/utilities/email.ts.html +1 -1
  103. package/coverage/lcov-report/src/utilities/fileSystem.ts.html +1 -1
  104. package/coverage/lcov-report/src/utilities/index.html +1 -1
  105. package/coverage/lcov-report/src/utilities/index.ts.html +1 -1
  106. package/coverage/lcov-report/src/utilities/redis.ts.html +1 -1
  107. package/coverage/lcov-report/src/utilities/templates.ts.html +1 -1
  108. package/coverage/lcov-report/src/utilities/users.ts.html +1 -1
  109. package/coverage/lcov.info +156 -143
  110. package/package.json +6 -6
  111. package/src/api/controllers/global/users.ts +13 -0
  112. package/src/api/index.ts +4 -0
  113. package/src/api/routes/global/users.ts +14 -0
  114. package/src/tests/api/users.ts +1 -0
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1675179823317" clover="3.2.0">
3
- <project timestamp="1675179823317" name="All files">
4
- <metrics statements="1864" coveredstatements="1536" conditionals="499" coveredconditionals="345" methods="525" coveredmethods="437" elements="2888" coveredelements="2318" complexity="0" loc="1864" ncloc="1864" packages="22" files="83" classes="83"/>
2
+ <coverage generated="1675182210316" clover="3.2.0">
3
+ <project timestamp="1675182210316" name="All files">
4
+ <metrics statements="1871" coveredstatements="1538" conditionals="499" coveredconditionals="345" methods="528" coveredmethods="439" elements="2898" coveredelements="2322" complexity="0" loc="1871" ncloc="1871" packages="22" files="83" classes="83"/>
5
5
  <package name="src">
6
6
  <metrics statements="81" coveredstatements="55" conditionals="27" coveredconditionals="15" methods="16" coveredmethods="8"/>
7
7
  <file name="environment.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/environment.ts">
@@ -103,33 +103,33 @@
103
103
  <line num="5" count="18" type="stmt"/>
104
104
  <line num="6" count="18" type="stmt"/>
105
105
  <line num="9" count="18" type="stmt"/>
106
- <line num="67" count="18" type="stmt"/>
107
- <line num="105" count="18" type="stmt"/>
108
- <line num="107" count="18" type="stmt"/>
109
- <line num="108" count="18" type="stmt"/>
110
- <line num="121" count="0" type="stmt"/>
111
- <line num="128" count="123" type="cond" truecount="1" falsecount="0"/>
112
- <line num="129" count="24" type="stmt"/>
113
- <line num="131" count="99" type="cond" truecount="1" falsecount="0"/>
114
- <line num="135" count="2" type="stmt"/>
115
- <line num="137" count="97" type="stmt"/>
116
- <line num="142" count="18" type="stmt"/>
117
- <line num="143" count="121" type="stmt"/>
118
- <line num="144" count="121" type="stmt"/>
119
- <line num="146" count="14" type="stmt"/>
120
- <line num="147" count="14" type="cond" truecount="1" falsecount="2"/>
121
- <line num="148" count="14" type="stmt"/>
122
- <line num="149" count="14" type="stmt"/>
123
- <line num="154" count="14" type="stmt"/>
124
- <line num="158" count="18" type="stmt"/>
125
- <line num="161" count="18" type="stmt"/>
126
- <line num="162" count="306" type="stmt"/>
127
- <line num="163" count="306" type="stmt"/>
128
- <line num="166" count="18" type="stmt"/>
106
+ <line num="71" count="18" type="stmt"/>
107
+ <line num="109" count="18" type="stmt"/>
108
+ <line num="111" count="18" type="stmt"/>
109
+ <line num="112" count="18" type="stmt"/>
110
+ <line num="125" count="0" type="stmt"/>
111
+ <line num="132" count="123" type="cond" truecount="1" falsecount="0"/>
112
+ <line num="133" count="24" type="stmt"/>
113
+ <line num="135" count="99" type="cond" truecount="1" falsecount="0"/>
114
+ <line num="139" count="2" type="stmt"/>
115
+ <line num="141" count="97" type="stmt"/>
116
+ <line num="146" count="18" type="stmt"/>
117
+ <line num="147" count="121" type="stmt"/>
118
+ <line num="148" count="121" type="stmt"/>
119
+ <line num="150" count="14" type="stmt"/>
120
+ <line num="151" count="14" type="cond" truecount="1" falsecount="2"/>
121
+ <line num="152" count="14" type="stmt"/>
122
+ <line num="153" count="14" type="stmt"/>
123
+ <line num="158" count="14" type="stmt"/>
124
+ <line num="162" count="18" type="stmt"/>
125
+ <line num="165" count="18" type="stmt"/>
126
+ <line num="166" count="306" type="stmt"/>
127
+ <line num="167" count="306" type="stmt"/>
128
+ <line num="170" count="18" type="stmt"/>
129
129
  </file>
130
130
  </package>
131
131
  <package name="src.api.controllers.global">
132
- <metrics statements="600" coveredstatements="393" conditionals="160" coveredconditionals="92" methods="155" coveredmethods="110"/>
132
+ <metrics statements="606" coveredstatements="394" conditionals="160" coveredconditionals="92" methods="157" coveredmethods="111"/>
133
133
  <file name="auth.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/controllers/global/auth.ts">
134
134
  <metrics statements="119" coveredstatements="72" conditionals="18" coveredconditionals="5" methods="39" coveredmethods="24"/>
135
135
  <line num="10" count="18" type="stmt"/>
@@ -622,7 +622,7 @@
622
622
  <line num="76" count="0" type="stmt"/>
623
623
  </file>
624
624
  <file name="users.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/controllers/global/users.ts">
625
- <metrics statements="107" coveredstatements="79" conditionals="32" coveredconditionals="17" methods="29" coveredmethods="25"/>
625
+ <metrics statements="113" coveredstatements="80" conditionals="32" coveredconditionals="17" methods="31" coveredmethods="26"/>
626
626
  <line num="1" count="18" type="stmt"/>
627
627
  <line num="2" count="18" type="stmt"/>
628
628
  <line num="3" count="18" type="stmt"/>
@@ -718,18 +718,24 @@
718
718
  <line num="209" count="2" type="stmt"/>
719
719
  <line num="210" count="2" type="stmt"/>
720
720
  <line num="213" count="18" type="stmt"/>
721
- <line num="214" count="1" type="stmt"/>
722
- <line num="215" count="1" type="stmt"/>
723
- <line num="217" count="1" type="stmt"/>
724
- <line num="218" count="1" type="stmt"/>
725
- <line num="219" count="1" type="stmt"/>
726
- <line num="226" count="1" type="stmt"/>
721
+ <line num="214" count="0" type="stmt"/>
722
+ <line num="216" count="0" type="stmt"/>
723
+ <line num="217" count="0" type="stmt"/>
724
+ <line num="219" count="0" type="stmt"/>
725
+ <line num="221" count="0" type="stmt"/>
726
+ <line num="226" count="18" type="stmt"/>
727
727
  <line num="227" count="1" type="stmt"/>
728
728
  <line num="228" count="1" type="stmt"/>
729
- <line num="229" count="1" type="stmt"/>
730
- <line num="232" count="0" type="cond" truecount="0" falsecount="1"/>
731
- <line num="234" count="0" type="stmt"/>
732
- <line num="236" count="0" type="stmt"/>
729
+ <line num="230" count="1" type="stmt"/>
730
+ <line num="231" count="1" type="stmt"/>
731
+ <line num="232" count="1" type="stmt"/>
732
+ <line num="239" count="1" type="stmt"/>
733
+ <line num="240" count="1" type="stmt"/>
734
+ <line num="241" count="1" type="stmt"/>
735
+ <line num="242" count="1" type="stmt"/>
736
+ <line num="245" count="0" type="cond" truecount="0" falsecount="1"/>
737
+ <line num="247" count="0" type="stmt"/>
738
+ <line num="249" count="0" type="stmt"/>
733
739
  </file>
734
740
  <file name="workspaces.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/controllers/global/workspaces.ts">
735
741
  <metrics statements="26" coveredstatements="5" conditionals="1" coveredconditionals="0" methods="9" coveredmethods="4"/>
@@ -858,7 +864,7 @@
858
864
  </file>
859
865
  </package>
860
866
  <package name="src.api.routes.global">
861
- <metrics statements="93" coveredstatements="93" conditionals="2" coveredconditionals="2" methods="28" coveredmethods="28"/>
867
+ <metrics statements="94" coveredstatements="94" conditionals="2" coveredconditionals="2" methods="29" coveredmethods="29"/>
862
868
  <file name="auth.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/routes/global/auth.ts">
863
869
  <metrics statements="10" coveredstatements="10" conditionals="0" coveredconditionals="0" methods="4" coveredmethods="4"/>
864
870
  <line num="1" count="18" type="stmt"/>
@@ -951,7 +957,7 @@
951
957
  <line num="37" count="18" type="stmt"/>
952
958
  </file>
953
959
  <file name="users.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/routes/global/users.ts">
954
- <metrics statements="18" coveredstatements="18" conditionals="2" coveredconditionals="2" methods="6" coveredmethods="6"/>
960
+ <metrics statements="19" coveredstatements="19" conditionals="2" coveredconditionals="2" methods="7" coveredmethods="7"/>
955
961
  <line num="1" count="18" type="stmt"/>
956
962
  <line num="2" count="18" type="stmt"/>
957
963
  <line num="3" count="18" type="stmt"/>
@@ -963,13 +969,14 @@
963
969
  <line num="12" count="18" type="stmt"/>
964
970
  <line num="25" count="18" type="stmt"/>
965
971
  <line num="33" count="18" type="stmt"/>
966
- <line num="41" count="18" type="stmt"/>
967
- <line num="42" count="23" type="cond" truecount="2" falsecount="0"/>
968
- <line num="43" count="11" type="stmt"/>
969
- <line num="45" count="12" type="stmt"/>
970
- <line num="51" count="18" type="stmt"/>
971
- <line num="57" count="18" type="stmt"/>
972
- <line num="116" count="18" type="stmt"/>
972
+ <line num="43" count="18" type="stmt"/>
973
+ <line num="48" count="18" type="stmt"/>
974
+ <line num="49" count="23" type="cond" truecount="2" falsecount="0"/>
975
+ <line num="50" count="11" type="stmt"/>
976
+ <line num="52" count="12" type="stmt"/>
977
+ <line num="58" count="18" type="stmt"/>
978
+ <line num="66" count="18" type="stmt"/>
979
+ <line num="130" count="18" type="stmt"/>
973
980
  </file>
974
981
  <file name="workspaces.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/routes/global/workspaces.ts">
975
982
  <metrics statements="8" coveredstatements="8" conditionals="0" coveredconditionals="0" methods="2" coveredmethods="2"/>
@@ -1904,29 +1911,29 @@
1904
1911
  <line num="42" count="2" type="stmt"/>
1905
1912
  <line num="45" count="18" type="stmt"/>
1906
1913
  <line num="46" count="1" type="stmt"/>
1907
- <line num="56" count="18" type="cond" truecount="1" falsecount="0"/>
1908
- <line num="57" count="2" type="stmt"/>
1914
+ <line num="57" count="18" type="cond" truecount="1" falsecount="0"/>
1909
1915
  <line num="58" count="2" type="stmt"/>
1910
1916
  <line num="59" count="2" type="stmt"/>
1911
- <line num="69" count="18" type="cond" truecount="1" falsecount="0"/>
1912
- <line num="70" count="6" type="stmt"/>
1917
+ <line num="60" count="2" type="stmt"/>
1918
+ <line num="70" count="18" type="cond" truecount="1" falsecount="0"/>
1913
1919
  <line num="71" count="6" type="stmt"/>
1914
- <line num="78" count="6" type="stmt"/>
1915
- <line num="81" count="18" type="stmt"/>
1916
- <line num="82" count="3" type="stmt"/>
1920
+ <line num="72" count="6" type="stmt"/>
1921
+ <line num="79" count="6" type="stmt"/>
1922
+ <line num="82" count="18" type="stmt"/>
1917
1923
  <line num="83" count="3" type="stmt"/>
1918
- <line num="89" count="3" type="stmt"/>
1919
- <line num="94" count="18" type="stmt"/>
1920
- <line num="98" count="6" type="cond" truecount="1" falsecount="0"/>
1921
- <line num="99" count="6" type="stmt"/>
1922
- <line num="105" count="6" type="stmt"/>
1923
- <line num="112" count="6" type="stmt"/>
1924
- <line num="118" count="18" type="stmt"/>
1925
- <line num="119" count="23" type="stmt"/>
1926
- <line num="127" count="18" type="stmt"/>
1927
- <line num="128" count="5" type="stmt"/>
1928
- <line num="135" count="18" type="stmt"/>
1929
- <line num="136" count="9" type="stmt"/>
1924
+ <line num="84" count="3" type="stmt"/>
1925
+ <line num="90" count="3" type="stmt"/>
1926
+ <line num="95" count="18" type="stmt"/>
1927
+ <line num="99" count="6" type="cond" truecount="1" falsecount="0"/>
1928
+ <line num="100" count="6" type="stmt"/>
1929
+ <line num="106" count="6" type="stmt"/>
1930
+ <line num="113" count="6" type="stmt"/>
1931
+ <line num="119" count="18" type="stmt"/>
1932
+ <line num="120" count="23" type="stmt"/>
1933
+ <line num="128" count="18" type="stmt"/>
1934
+ <line num="129" count="5" type="stmt"/>
1935
+ <line num="136" count="18" type="stmt"/>
1936
+ <line num="137" count="9" type="stmt"/>
1930
1937
  </file>
1931
1938
  </package>
1932
1939
  <package name="src.tests.mocks">