bruce-models 6.9.5 → 6.9.7
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 +33 -6
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +33 -6
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/entity/entity.js +32 -4
- package/dist/lib/entity/entity.js.map +1 -1
- package/dist/lib/internal/uploader.js +0 -1
- package/dist/lib/internal/uploader.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/entity/entity.d.ts +2 -0
- package/package.json +1 -1
package/dist/bruce-models.umd.js
CHANGED
|
@@ -4329,7 +4329,7 @@
|
|
|
4329
4329
|
function GetList(params) {
|
|
4330
4330
|
var _a;
|
|
4331
4331
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4332
|
-
let { api, filter, scenario, migrated, schemaId, req: reqParams, viaCdn, viaCdnCacheToken, analysis, expandRelations, expandImports, expandLocation, expandSources, expandComments, expandEntityType, expand: expandStr, historicFrom, historicKey, historicTo, historicPoint, maxSearchTimeSec } = params;
|
|
4332
|
+
let { api, filter, scenario, migrated, schemaId, req: reqParams, viaCdn, viaCdnCacheToken, analysis, expandRelations, expandImports, expandLocation, expandSources, expandComments, expandEntityType, expand: expandStr, expandAttachments, historicFrom, historicKey, historicTo, historicPoint, maxSearchTimeSec } = params;
|
|
4333
4333
|
if (!api) {
|
|
4334
4334
|
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
4335
4335
|
}
|
|
@@ -4380,7 +4380,7 @@
|
|
|
4380
4380
|
ExpandSources: expandSources,
|
|
4381
4381
|
Scenario: scenario
|
|
4382
4382
|
};
|
|
4383
|
-
if (expandLocation || expandRelations || expandImports || expandEntityType || expandComments || expandStr) {
|
|
4383
|
+
if (expandLocation || expandRelations || expandImports || expandEntityType || expandComments || expandStr || expandAttachments) {
|
|
4384
4384
|
let expand = "";
|
|
4385
4385
|
if (expandLocation) {
|
|
4386
4386
|
expand += "location";
|
|
@@ -4409,6 +4409,12 @@
|
|
|
4409
4409
|
}
|
|
4410
4410
|
expand += "comment";
|
|
4411
4411
|
}
|
|
4412
|
+
if (expandAttachments) {
|
|
4413
|
+
if (expand) {
|
|
4414
|
+
expand += ",";
|
|
4415
|
+
}
|
|
4416
|
+
expand += "attachment";
|
|
4417
|
+
}
|
|
4412
4418
|
if (expandStr) {
|
|
4413
4419
|
if (expand) {
|
|
4414
4420
|
expand += ",";
|
|
@@ -4424,6 +4430,7 @@
|
|
|
4424
4430
|
let imports;
|
|
4425
4431
|
let sources;
|
|
4426
4432
|
let entityTypeSources;
|
|
4433
|
+
let entityTypes;
|
|
4427
4434
|
let nextPage;
|
|
4428
4435
|
let nextPageUrl;
|
|
4429
4436
|
if (analysis || expandRelations || (viaCdn && api.GetCdnBaseUrl())) {
|
|
@@ -4487,6 +4494,12 @@
|
|
|
4487
4494
|
}
|
|
4488
4495
|
expand += "Comment";
|
|
4489
4496
|
}
|
|
4497
|
+
if (expandAttachments) {
|
|
4498
|
+
if (expand.length) {
|
|
4499
|
+
expand += ",";
|
|
4500
|
+
}
|
|
4501
|
+
expand += "Attachment";
|
|
4502
|
+
}
|
|
4490
4503
|
if (expandStr) {
|
|
4491
4504
|
if (expand.length) {
|
|
4492
4505
|
expand += ",";
|
|
@@ -4532,6 +4545,7 @@
|
|
|
4532
4545
|
imports = data.Imports;
|
|
4533
4546
|
sources = data.Source;
|
|
4534
4547
|
entityTypeSources = data["EntityType.Source"];
|
|
4548
|
+
entityTypes = data["EntityType"];
|
|
4535
4549
|
nextPage = data.NextPage;
|
|
4536
4550
|
nextPageUrl = data.NextPageURL;
|
|
4537
4551
|
}
|
|
@@ -4574,6 +4588,12 @@
|
|
|
4574
4588
|
}
|
|
4575
4589
|
expand += "Comment";
|
|
4576
4590
|
}
|
|
4591
|
+
if (expandAttachments) {
|
|
4592
|
+
if (expand.length) {
|
|
4593
|
+
expand += ",";
|
|
4594
|
+
}
|
|
4595
|
+
expand += "Attachment";
|
|
4596
|
+
}
|
|
4577
4597
|
if (expandStr) {
|
|
4578
4598
|
if (expand.length) {
|
|
4579
4599
|
expand += ",";
|
|
@@ -4616,6 +4636,11 @@
|
|
|
4616
4636
|
expandLocation,
|
|
4617
4637
|
expandImports,
|
|
4618
4638
|
expandSources,
|
|
4639
|
+
expandAttachments,
|
|
4640
|
+
expandEntityType,
|
|
4641
|
+
expandComments,
|
|
4642
|
+
expand: expandStr,
|
|
4643
|
+
historicPoint: historicPoint,
|
|
4619
4644
|
entityTypeId: typeIdCacheKey,
|
|
4620
4645
|
historicFrom: historicFrom,
|
|
4621
4646
|
historicKey: historicKey,
|
|
@@ -4636,6 +4661,7 @@
|
|
|
4636
4661
|
nextPageUrl = data.NextPageURL;
|
|
4637
4662
|
sources = data.Source;
|
|
4638
4663
|
entityTypeSources = data["EntityType.Source"];
|
|
4664
|
+
entityTypes = data["EntityType"];
|
|
4639
4665
|
}
|
|
4640
4666
|
// Callback to get the next page.
|
|
4641
4667
|
let getNextPage;
|
|
@@ -4662,7 +4688,8 @@
|
|
|
4662
4688
|
nextPageUrl: data.NextPageURL,
|
|
4663
4689
|
getNextPage: nextPageUrl ? getNextPage : null,
|
|
4664
4690
|
sources: data.Source,
|
|
4665
|
-
entityTypeSources: data["EntityType.Source"]
|
|
4691
|
+
entityTypeSources: data["EntityType.Source"],
|
|
4692
|
+
entityTypes: data["EntityType"]
|
|
4666
4693
|
};
|
|
4667
4694
|
});
|
|
4668
4695
|
}
|
|
@@ -4674,7 +4701,8 @@
|
|
|
4674
4701
|
nextPageUrl,
|
|
4675
4702
|
getNextPage,
|
|
4676
4703
|
sources,
|
|
4677
|
-
entityTypeSources
|
|
4704
|
+
entityTypeSources,
|
|
4705
|
+
entityTypes
|
|
4678
4706
|
};
|
|
4679
4707
|
});
|
|
4680
4708
|
}
|
|
@@ -9072,7 +9100,6 @@
|
|
|
9072
9100
|
};
|
|
9073
9101
|
data = yield api.UPLOAD(url, partialFile, reqParams);
|
|
9074
9102
|
retryCount = 0;
|
|
9075
|
-
uploaded += partSize;
|
|
9076
9103
|
// Flush the pending upload.
|
|
9077
9104
|
const pendingLoaded = uploadedPending.get(filePartIndex) || 0;
|
|
9078
9105
|
uploaded += pendingLoaded;
|
|
@@ -16638,7 +16665,7 @@
|
|
|
16638
16665
|
}
|
|
16639
16666
|
|
|
16640
16667
|
// This is updated with the package.json version on build.
|
|
16641
|
-
const VERSION = "6.9.
|
|
16668
|
+
const VERSION = "6.9.7";
|
|
16642
16669
|
|
|
16643
16670
|
exports.VERSION = VERSION;
|
|
16644
16671
|
exports.AbstractApi = AbstractApi;
|