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.
- package/dist/bruce-models.es5.js +12 -4
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +12 -4
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/account/account.js +10 -2
- package/dist/lib/account/account.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/server/message-broker.js +1 -1
- package/dist/lib/server/message-broker.js.map +1 -1
- package/dist/types/account/account.d.ts +1 -0
- package/dist/types/bruce-models.d.ts +1 -1
- package/package.json +1 -1
package/dist/bruce-models.umd.js
CHANGED
|
@@ -629,7 +629,7 @@
|
|
|
629
629
|
// Protocol matching the Bruce API one.
|
|
630
630
|
// In almost all cases it will be wss, in a localhost BruceAPI then it might be ws.
|
|
631
631
|
const protocol = currentUrl.protocol === "http:" ? "ws:" : "wss:";
|
|
632
|
-
let full = protocol + "
|
|
632
|
+
let full = protocol + "//" + currentUrl.host + currentUrl.pathname + "websocket";
|
|
633
633
|
// Check if we have a queryParam for accountId.
|
|
634
634
|
const accountId = currentUrl.searchParams.get("accountId");
|
|
635
635
|
if (accountId) {
|
|
@@ -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
|
|
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.
|
|
14711
|
+
const VERSION = "5.4.9";
|
|
14704
14712
|
|
|
14705
14713
|
exports.VERSION = VERSION;
|
|
14706
14714
|
exports.AbstractApi = AbstractApi;
|