bruce-models 5.8.4 → 5.8.6

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.
@@ -12500,6 +12500,27 @@
12500
12500
  })(exports.User || (exports.User = {}));
12501
12501
 
12502
12502
  (function (UserGroup) {
12503
+ /**
12504
+ * Returns a user group by its ID.
12505
+ * @param params
12506
+ * @returns
12507
+ */
12508
+ function GetByID(params) {
12509
+ return __awaiter(this, void 0, void 0, function* () {
12510
+ let { api, groupId, req: reqParams } = params;
12511
+ if (!groupId) {
12512
+ throw ("ID is required.");
12513
+ }
12514
+ if (!api) {
12515
+ api = exports.ENVIRONMENT.Api().GetGuardianApi();
12516
+ }
12517
+ const data = yield api.GET(`usergroup/${groupId}`, reqParams);
12518
+ return {
12519
+ group: data
12520
+ };
12521
+ });
12522
+ }
12523
+ UserGroup.GetByID = GetByID;
12503
12524
  /**
12504
12525
  * Returns a user group by its name.
12505
12526
  * @param params
@@ -15034,7 +15055,7 @@
15034
15055
  })(exports.Scenario || (exports.Scenario = {}));
15035
15056
 
15036
15057
  // This is updated with the package.json version on build.
15037
- const VERSION = "5.8.4";
15058
+ const VERSION = "5.8.6";
15038
15059
 
15039
15060
  exports.VERSION = VERSION;
15040
15061
  exports.AbstractApi = AbstractApi;