bruce-models 5.3.9 → 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 +9 -5
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +9 -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/entity/entity-attribute.js +4 -0
- package/dist/lib/entity/entity-attribute.js.map +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/entity/entity-attribute.d.ts +3 -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
|
@@ -2247,6 +2247,10 @@
|
|
|
2247
2247
|
EType["Boolean"] = "Boolean";
|
|
2248
2248
|
// String User ID.
|
|
2249
2249
|
EType["User"] = "User";
|
|
2250
|
+
// String Group ID.
|
|
2251
|
+
EType["UserGroup"] = "UserGroup";
|
|
2252
|
+
// String Entity ID.
|
|
2253
|
+
EType["Entity"] = "Entity";
|
|
2250
2254
|
})(EType = EntityAttribute.EType || (EntityAttribute.EType = {}));
|
|
2251
2255
|
/**
|
|
2252
2256
|
* Returns an attribute from a provided hierarchy of attributes.
|
|
@@ -10978,11 +10982,11 @@
|
|
|
10978
10982
|
*/
|
|
10979
10983
|
function UpdateAppSettings(params) {
|
|
10980
10984
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10981
|
-
let { api, accountId: id, appId, settings: data, req: reqParams } = params;
|
|
10985
|
+
let { api, accountId: id, appId, settings: data, req: reqParams, override } = params;
|
|
10982
10986
|
if (!api) {
|
|
10983
10987
|
api = exports.ENVIRONMENT.Api().GetGuardianApi();
|
|
10984
10988
|
}
|
|
10985
|
-
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);
|
|
10986
10990
|
api.Cache.RemoveByStartsWith(exports.Api.ECacheKey.Account + exports.Api.ECacheKey.Id + id);
|
|
10987
10991
|
return {
|
|
10988
10992
|
settings: res
|
|
@@ -11878,7 +11882,7 @@
|
|
|
11878
11882
|
*/
|
|
11879
11883
|
function UpdateSettings(params) {
|
|
11880
11884
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11881
|
-
let { api, accId, userId, appId, settings, req } = params;
|
|
11885
|
+
let { api, accId, userId, appId, settings, req, override } = params;
|
|
11882
11886
|
if (!userId || !appId) {
|
|
11883
11887
|
throw ("UserId and appId are required.");
|
|
11884
11888
|
}
|
|
@@ -11891,7 +11895,7 @@
|
|
|
11891
11895
|
ClientAccountID: accId,
|
|
11892
11896
|
UserID: userId
|
|
11893
11897
|
};
|
|
11894
|
-
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);
|
|
11895
11899
|
api.Cache.Remove(GetSettingsCacheKey(userId, appId));
|
|
11896
11900
|
return prom;
|
|
11897
11901
|
});
|
|
@@ -14456,7 +14460,7 @@
|
|
|
14456
14460
|
})(exports.DataSource || (exports.DataSource = {}));
|
|
14457
14461
|
|
|
14458
14462
|
// This is updated with the package.json version on build.
|
|
14459
|
-
const VERSION = "5.
|
|
14463
|
+
const VERSION = "5.4.1";
|
|
14460
14464
|
|
|
14461
14465
|
exports.VERSION = VERSION;
|
|
14462
14466
|
exports.AbstractApi = AbstractApi;
|