bruce-models 5.4.7 → 5.4.9

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.
@@ -628,7 +628,7 @@ var MessageBroker;
628
628
  // Protocol matching the Bruce API one.
629
629
  // In almost all cases it will be wss, in a localhost BruceAPI then it might be ws.
630
630
  const protocol = currentUrl.protocol === "http:" ? "ws:" : "wss:";
631
- let full = protocol + "://" + currentUrl.host + currentUrl.pathname + "websocket";
631
+ let full = protocol + "//" + currentUrl.host + currentUrl.pathname + "websocket";
632
632
  // Check if we have a queryParam for accountId.
633
633
  const accountId = currentUrl.searchParams.get("accountId");
634
634
  if (accountId) {
@@ -11141,7 +11141,7 @@ var Account;
11141
11141
  */
11142
11142
  function GetRelatedList(params) {
11143
11143
  return __awaiter(this, void 0, void 0, function* () {
11144
- let { api, req: reqParams, owned } = params;
11144
+ let { api, req: reqParams, owned, userId } = params;
11145
11145
  if (!api) {
11146
11146
  api = ENVIRONMENT.Api().GetGuardianApi();
11147
11147
  }
@@ -11149,7 +11149,15 @@ var Account;
11149
11149
  if (cache === null || cache === void 0 ? void 0 : cache.found) {
11150
11150
  return cache.data;
11151
11151
  }
11152
- const req = api.GET(owned ? "user/ownedClientAccounts" : "user/relatedClientAccounts", reqParams);
11152
+ const urlParams = new URLSearchParams();
11153
+ if (userId) {
11154
+ urlParams.append("UserID", userId);
11155
+ }
11156
+ let url = owned ? "user/ownedClientAccounts" : "user/relatedClientAccounts";
11157
+ if (urlParams.toString()) {
11158
+ url += "?" + urlParams.toString();
11159
+ }
11160
+ const req = api.GET(url, reqParams);
11153
11161
  const prom = new Promise((res, rej) => __awaiter(this, void 0, void 0, function* () {
11154
11162
  try {
11155
11163
  const data = yield req;
@@ -14992,7 +15000,7 @@ var DataSource;
14992
15000
  })(DataSource || (DataSource = {}));
14993
15001
 
14994
15002
  // This is updated with the package.json version on build.
14995
- const VERSION = "5.4.7";
15003
+ const VERSION = "5.4.9";
14996
15004
 
14997
15005
  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, EntityTypeVisualSettings, EntityAttribute, EntityHistoricData, EntityTableView, Comment, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, ProjectViewLegacy, ProjectViewLegacyBookmark, 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 };
14998
15006
  //# sourceMappingURL=bruce-models.es5.js.map