bruce-models 5.4.8 → 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.
@@ -10926,7 +10926,7 @@
10926
10926
  */
10927
10927
  function GetRelatedList(params) {
10928
10928
  return __awaiter(this, void 0, void 0, function* () {
10929
- let { api, req: reqParams, owned } = params;
10929
+ let { api, req: reqParams, owned, userId } = params;
10930
10930
  if (!api) {
10931
10931
  api = exports.ENVIRONMENT.Api().GetGuardianApi();
10932
10932
  }
@@ -10934,7 +10934,15 @@
10934
10934
  if (cache === null || cache === void 0 ? void 0 : cache.found) {
10935
10935
  return cache.data;
10936
10936
  }
10937
- const req = api.GET(owned ? "user/ownedClientAccounts" : "user/relatedClientAccounts", reqParams);
10937
+ const urlParams = new URLSearchParams();
10938
+ if (userId) {
10939
+ urlParams.append("UserID", userId);
10940
+ }
10941
+ let url = owned ? "user/ownedClientAccounts" : "user/relatedClientAccounts";
10942
+ if (urlParams.toString()) {
10943
+ url += "?" + urlParams.toString();
10944
+ }
10945
+ const req = api.GET(url, reqParams);
10938
10946
  const prom = new Promise((res, rej) => __awaiter(this, void 0, void 0, function* () {
10939
10947
  try {
10940
10948
  const data = yield req;
@@ -14700,7 +14708,7 @@
14700
14708
  })(exports.DataSource || (exports.DataSource = {}));
14701
14709
 
14702
14710
  // This is updated with the package.json version on build.
14703
- const VERSION = "5.4.8";
14711
+ const VERSION = "5.4.9";
14704
14712
 
14705
14713
  exports.VERSION = VERSION;
14706
14714
  exports.AbstractApi = AbstractApi;