bruce-models 5.9.9 → 6.0.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 +13 -3
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +13 -3
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/assembly/assembly.js +4 -1
- package/dist/lib/assembly/assembly.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/entity/entity.js +8 -1
- package/dist/lib/entity/entity.js.map +1 -1
- package/dist/types/assembly/assembly.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
|
@@ -1877,7 +1877,7 @@
|
|
|
1877
1877
|
*/
|
|
1878
1878
|
function DeleteList(params) {
|
|
1879
1879
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1880
|
-
let { api, req: reqParams, assemblyIds } = params;
|
|
1880
|
+
let { api, req: reqParams, assemblyIds, lessThanSize } = params;
|
|
1881
1881
|
if (!api) {
|
|
1882
1882
|
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
1883
1883
|
}
|
|
@@ -1886,6 +1886,9 @@
|
|
|
1886
1886
|
if (params.invalidRootIds) {
|
|
1887
1887
|
urlParams.append("InvalidRootEntityID", "true");
|
|
1888
1888
|
}
|
|
1889
|
+
else if (params.lessThanSize) {
|
|
1890
|
+
urlParams.append("LessThanSize", String(lessThanSize));
|
|
1891
|
+
}
|
|
1889
1892
|
// Cannot be used with invalidRootIds.
|
|
1890
1893
|
// So if both are supplied, invalidRootIds will take precedence.
|
|
1891
1894
|
else if (params.assemblyIds) {
|
|
@@ -4023,6 +4026,9 @@
|
|
|
4023
4026
|
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
4024
4027
|
}
|
|
4025
4028
|
let requestFilter = {};
|
|
4029
|
+
if (!filter) {
|
|
4030
|
+
filter = {};
|
|
4031
|
+
}
|
|
4026
4032
|
if (filter.entityTypeConditions) {
|
|
4027
4033
|
requestFilter = Object.assign({}, filter.entityTypeConditions);
|
|
4028
4034
|
}
|
|
@@ -4193,6 +4199,10 @@
|
|
|
4193
4199
|
if (!analysis) {
|
|
4194
4200
|
entities = data.Items;
|
|
4195
4201
|
// Only caching when non-CDN.
|
|
4202
|
+
let typeIdCacheKey = null;
|
|
4203
|
+
if (filter.entityTypeId) {
|
|
4204
|
+
typeIdCacheKey = typeof filter.entityTypeId == "string" ? filter.entityTypeId : filter.entityTypeId.join(",");
|
|
4205
|
+
}
|
|
4196
4206
|
for (let i = 0; i < entities.length; i++) {
|
|
4197
4207
|
const entity = entities[i];
|
|
4198
4208
|
const id = entity.Bruce.ID;
|
|
@@ -4203,7 +4213,7 @@
|
|
|
4203
4213
|
expandLocation,
|
|
4204
4214
|
expandImports,
|
|
4205
4215
|
expandSources,
|
|
4206
|
-
entityTypeId:
|
|
4216
|
+
entityTypeId: typeIdCacheKey,
|
|
4207
4217
|
historicFrom: historicFrom,
|
|
4208
4218
|
historicKey: historicKey,
|
|
4209
4219
|
historicTo: historicTo,
|
|
@@ -15381,7 +15391,7 @@
|
|
|
15381
15391
|
})(exports.Scenario || (exports.Scenario = {}));
|
|
15382
15392
|
|
|
15383
15393
|
// This is updated with the package.json version on build.
|
|
15384
|
-
const VERSION = "
|
|
15394
|
+
const VERSION = "6.0.1";
|
|
15385
15395
|
|
|
15386
15396
|
exports.VERSION = VERSION;
|
|
15387
15397
|
exports.AbstractApi = AbstractApi;
|