bruce-models 5.4.8 → 5.5.0

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.
@@ -10048,6 +10048,8 @@ var MenuItem;
10048
10048
  EType["GoogleAirQuality"] = "GoogleAirQuality";
10049
10049
  // Renders a ArcGIS I3S scene.
10050
10050
  EType["I3sTileset"] = "I3STileset";
10051
+ // performs a query
10052
+ EType["DataLab"] = "DataLab";
10051
10053
  })(EType = MenuItem.EType || (MenuItem.EType = {}));
10052
10054
  /**
10053
10055
  * Creates a menu item for a single entity.
@@ -11141,7 +11143,7 @@ var Account;
11141
11143
  */
11142
11144
  function GetRelatedList(params) {
11143
11145
  return __awaiter(this, void 0, void 0, function* () {
11144
- let { api, req: reqParams, owned } = params;
11146
+ let { api, req: reqParams, owned, userId } = params;
11145
11147
  if (!api) {
11146
11148
  api = ENVIRONMENT.Api().GetGuardianApi();
11147
11149
  }
@@ -11149,7 +11151,15 @@ var Account;
11149
11151
  if (cache === null || cache === void 0 ? void 0 : cache.found) {
11150
11152
  return cache.data;
11151
11153
  }
11152
- const req = api.GET(owned ? "user/ownedClientAccounts" : "user/relatedClientAccounts", reqParams);
11154
+ const urlParams = new URLSearchParams();
11155
+ if (userId) {
11156
+ urlParams.append("UserID", userId);
11157
+ }
11158
+ let url = owned ? "user/ownedClientAccounts" : "user/relatedClientAccounts";
11159
+ if (urlParams.toString()) {
11160
+ url += "?" + urlParams.toString();
11161
+ }
11162
+ const req = api.GET(url, reqParams);
11153
11163
  const prom = new Promise((res, rej) => __awaiter(this, void 0, void 0, function* () {
11154
11164
  try {
11155
11165
  const data = yield req;
@@ -14992,7 +15002,7 @@ var DataSource;
14992
15002
  })(DataSource || (DataSource = {}));
14993
15003
 
14994
15004
  // This is updated with the package.json version on build.
14995
- const VERSION = "5.4.8";
15005
+ const VERSION = "5.5.0";
14996
15006
 
14997
15007
  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
15008
  //# sourceMappingURL=bruce-models.es5.js.map