bruce-models 5.4.0 → 5.4.1
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 +5 -5
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +5 -5
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/account/account.js +2 -2
- package/dist/lib/account/account.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/user/user.js +2 -2
- package/dist/lib/user/user.js.map +1 -1
- package/dist/types/account/account.d.ts +1 -0
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/server/database-server.d.ts +2 -2
- package/dist/types/user/user.d.ts +1 -0
- package/package.json +1 -1
package/dist/bruce-models.umd.js
CHANGED
|
@@ -10982,11 +10982,11 @@
|
|
|
10982
10982
|
*/
|
|
10983
10983
|
function UpdateAppSettings(params) {
|
|
10984
10984
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10985
|
-
let { api, accountId: id, appId, settings: data, req: reqParams } = params;
|
|
10985
|
+
let { api, accountId: id, appId, settings: data, req: reqParams, override } = params;
|
|
10986
10986
|
if (!api) {
|
|
10987
10987
|
api = exports.ENVIRONMENT.Api().GetGuardianApi();
|
|
10988
10988
|
}
|
|
10989
|
-
const res = yield api.POST(`account/${id}/applicationSettings/${appId}`, data, reqParams);
|
|
10989
|
+
const res = yield api.POST(`account/${id}/applicationSettings/${appId}?Override=${override ? "true" : "false"}`, data, reqParams);
|
|
10990
10990
|
api.Cache.RemoveByStartsWith(exports.Api.ECacheKey.Account + exports.Api.ECacheKey.Id + id);
|
|
10991
10991
|
return {
|
|
10992
10992
|
settings: res
|
|
@@ -11882,7 +11882,7 @@
|
|
|
11882
11882
|
*/
|
|
11883
11883
|
function UpdateSettings(params) {
|
|
11884
11884
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11885
|
-
let { api, accId, userId, appId, settings, req } = params;
|
|
11885
|
+
let { api, accId, userId, appId, settings, req, override } = params;
|
|
11886
11886
|
if (!userId || !appId) {
|
|
11887
11887
|
throw ("UserId and appId are required.");
|
|
11888
11888
|
}
|
|
@@ -11895,7 +11895,7 @@
|
|
|
11895
11895
|
ClientAccountID: accId,
|
|
11896
11896
|
UserID: userId
|
|
11897
11897
|
};
|
|
11898
|
-
const prom = api.POST(`user/${userId}/application/${appId}/settings`, postBody, req);
|
|
11898
|
+
const prom = api.POST(`user/${userId}/application/${appId}/settings?Override=${override ? "true" : "false"}`, postBody, req);
|
|
11899
11899
|
api.Cache.Remove(GetSettingsCacheKey(userId, appId));
|
|
11900
11900
|
return prom;
|
|
11901
11901
|
});
|
|
@@ -14460,7 +14460,7 @@
|
|
|
14460
14460
|
})(exports.DataSource || (exports.DataSource = {}));
|
|
14461
14461
|
|
|
14462
14462
|
// This is updated with the package.json version on build.
|
|
14463
|
-
const VERSION = "5.4.
|
|
14463
|
+
const VERSION = "5.4.1";
|
|
14464
14464
|
|
|
14465
14465
|
exports.VERSION = VERSION;
|
|
14466
14466
|
exports.AbstractApi = AbstractApi;
|