bruce-models 7.1.124 → 7.1.126
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 +14 -4
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +14 -4
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/entity/entity.js +13 -3
- package/dist/lib/entity/entity.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/entity/entity.d.ts +1 -0
- package/package.json +1 -1
package/dist/bruce-models.umd.js
CHANGED
|
@@ -7125,7 +7125,7 @@
|
|
|
7125
7125
|
function Update(params) {
|
|
7126
7126
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
7127
7127
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7128
|
-
let { api, entity: data, entities, override, req: reqParams, migrated, skipSourcePush } = params;
|
|
7128
|
+
let { api, entity: data, entities, override, req: reqParams, migrated, skipSourcePush, expandLocation } = params;
|
|
7129
7129
|
if (migrated == null || migrated == undefined) {
|
|
7130
7130
|
// Changed to default = true. 18th April 2025.
|
|
7131
7131
|
migrated = true;
|
|
@@ -7151,9 +7151,16 @@
|
|
|
7151
7151
|
if (!api) {
|
|
7152
7152
|
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
7153
7153
|
}
|
|
7154
|
-
|
|
7154
|
+
const urlParams = new URLSearchParams();
|
|
7155
7155
|
if (skipSourcePushParam) {
|
|
7156
|
-
|
|
7156
|
+
urlParams.set("SkipSourcePush", skipSourcePushParam);
|
|
7157
|
+
}
|
|
7158
|
+
if (expandLocation) {
|
|
7159
|
+
urlParams.set("Expand", "location");
|
|
7160
|
+
}
|
|
7161
|
+
let reqUrl = "v3/entities";
|
|
7162
|
+
if (urlParams.toString()) {
|
|
7163
|
+
reqUrl += `?${urlParams.toString()}`;
|
|
7157
7164
|
}
|
|
7158
7165
|
const reqBody = {
|
|
7159
7166
|
Items: entities,
|
|
@@ -7217,6 +7224,9 @@
|
|
|
7217
7224
|
if (skipSourcePushParam) {
|
|
7218
7225
|
reqUrl += `&SkipSourcePush=${encodeURIComponent(skipSourcePushParam)}`;
|
|
7219
7226
|
}
|
|
7227
|
+
if (expandLocation) {
|
|
7228
|
+
reqUrl += "&Expand=location";
|
|
7229
|
+
}
|
|
7220
7230
|
const res = yield api.POST(reqUrl, data, exports.Api.PrepReqParams(reqParams));
|
|
7221
7231
|
api.Cache.RemoveByContains(GetContainsKey(data.Bruce.ID));
|
|
7222
7232
|
exports.EntityHistoricData.ClearCacheByEntityIds(api, [data.Bruce.ID]);
|
|
@@ -25279,7 +25289,7 @@
|
|
|
25279
25289
|
}
|
|
25280
25290
|
|
|
25281
25291
|
// This is updated with the package.json version on build.
|
|
25282
|
-
const VERSION = "7.1.
|
|
25292
|
+
const VERSION = "7.1.126";
|
|
25283
25293
|
|
|
25284
25294
|
exports.VERSION = VERSION;
|
|
25285
25295
|
exports.AbstractApi = AbstractApi;
|