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.
@@ -12745,6 +12745,27 @@ var User;
12745
12745
  */
12746
12746
  var UserGroup;
12747
12747
  (function (UserGroup) {
12748
+ /**
12749
+ * Returns a user group by its ID.
12750
+ * @param params
12751
+ * @returns
12752
+ */
12753
+ function GetByID(params) {
12754
+ return __awaiter(this, void 0, void 0, function* () {
12755
+ let { api, groupId, req: reqParams } = params;
12756
+ if (!groupId) {
12757
+ throw ("ID is required.");
12758
+ }
12759
+ if (!api) {
12760
+ api = ENVIRONMENT.Api().GetGuardianApi();
12761
+ }
12762
+ const data = yield api.GET(`usergroup/${groupId}`, reqParams);
12763
+ return {
12764
+ group: data
12765
+ };
12766
+ });
12767
+ }
12768
+ UserGroup.GetByID = GetByID;
12748
12769
  /**
12749
12770
  * Returns a user group by its name.
12750
12771
  * @param params
@@ -15337,7 +15358,7 @@ var Scenario;
15337
15358
  })(Scenario || (Scenario = {}));
15338
15359
 
15339
15360
  // This is updated with the package.json version on build.
15340
- const VERSION = "5.8.4";
15361
+ const VERSION = "5.8.6";
15341
15362
 
15342
15363
  export { VERSION, AnnDocument, CustomForm, AbstractApi, Api, BruceApi, GlobalApi, GuardianApi, ApiGetters, Calculator, Bounds, BruceEvent, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, Geometry, UTC, BruceVariable, LRUCache, GeoJson, EntityAttachmentType, EntityAttachment, EntityComment, EntityLink, EntityLod, EntityLodCategory, EntityRelationType, EntityRelation, EntitySource, EntityTag, EntityType, Entity, EntityCoords, EntityAttribute, EntityHistoricData, EntityTableView, Comment, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, ProjectViewLegacy, ProjectViewLegacyBookmark, ProjectViewBookmarkGroup, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, Account, AccountInvite, AccountFeatures, AccountLimits, AccountTemplate, AccountType, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, DataLabGroup, ImportAssembly, ImportCad, ImportCsv, ImportJson, ImportGeoJson, ImportKml, ImportedFile, ExportBrz, ExportUsd, Markup, Uploader, Plugin, ENVIRONMENT, DataSource, Scenario };
15343
15364
  //# sourceMappingURL=bruce-models.es5.js.map