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.
@@ -9866,6 +9866,8 @@
9866
9866
  EType["GoogleAirQuality"] = "GoogleAirQuality";
9867
9867
  // Renders a ArcGIS I3S scene.
9868
9868
  EType["I3sTileset"] = "I3STileset";
9869
+ // performs a query
9870
+ EType["DataLab"] = "DataLab";
9869
9871
  })(EType = MenuItem.EType || (MenuItem.EType = {}));
9870
9872
  /**
9871
9873
  * Creates a menu item for a single entity.
@@ -10926,7 +10928,7 @@
10926
10928
  */
10927
10929
  function GetRelatedList(params) {
10928
10930
  return __awaiter(this, void 0, void 0, function* () {
10929
- let { api, req: reqParams, owned } = params;
10931
+ let { api, req: reqParams, owned, userId } = params;
10930
10932
  if (!api) {
10931
10933
  api = exports.ENVIRONMENT.Api().GetGuardianApi();
10932
10934
  }
@@ -10934,7 +10936,15 @@
10934
10936
  if (cache === null || cache === void 0 ? void 0 : cache.found) {
10935
10937
  return cache.data;
10936
10938
  }
10937
- const req = api.GET(owned ? "user/ownedClientAccounts" : "user/relatedClientAccounts", reqParams);
10939
+ const urlParams = new URLSearchParams();
10940
+ if (userId) {
10941
+ urlParams.append("UserID", userId);
10942
+ }
10943
+ let url = owned ? "user/ownedClientAccounts" : "user/relatedClientAccounts";
10944
+ if (urlParams.toString()) {
10945
+ url += "?" + urlParams.toString();
10946
+ }
10947
+ const req = api.GET(url, reqParams);
10938
10948
  const prom = new Promise((res, rej) => __awaiter(this, void 0, void 0, function* () {
10939
10949
  try {
10940
10950
  const data = yield req;
@@ -14700,7 +14710,7 @@
14700
14710
  })(exports.DataSource || (exports.DataSource = {}));
14701
14711
 
14702
14712
  // This is updated with the package.json version on build.
14703
- const VERSION = "5.4.8";
14713
+ const VERSION = "5.5.0";
14704
14714
 
14705
14715
  exports.VERSION = VERSION;
14706
14716
  exports.AbstractApi = AbstractApi;