bruce-models 6.9.6 → 6.9.8
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 +44 -9
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +44 -9
- 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/plugin/plugin.js +11 -4
- package/dist/lib/plugin/plugin.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/entity/entity.d.ts +2 -0
- package/dist/types/plugin/plugin.d.ts +1 -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
|
}
|
|
@@ -15703,7 +15731,7 @@
|
|
|
15703
15731
|
* @returns
|
|
15704
15732
|
*/
|
|
15705
15733
|
function GetLoadUrl(params) {
|
|
15706
|
-
let { api, pluginId, cacheKey } = params;
|
|
15734
|
+
let { api, pluginId, cacheKey, viaCdn } = params;
|
|
15707
15735
|
if (!api) {
|
|
15708
15736
|
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
15709
15737
|
}
|
|
@@ -15716,7 +15744,7 @@
|
|
|
15716
15744
|
urlParams: {
|
|
15717
15745
|
"version": String(cacheKey)
|
|
15718
15746
|
},
|
|
15719
|
-
cdn:
|
|
15747
|
+
cdn: viaCdn
|
|
15720
15748
|
})
|
|
15721
15749
|
};
|
|
15722
15750
|
}
|
|
@@ -15827,7 +15855,8 @@
|
|
|
15827
15855
|
const { indexFileUrl } = GetLoadUrl({
|
|
15828
15856
|
api,
|
|
15829
15857
|
pluginId,
|
|
15830
|
-
cacheKey: plugin.Version
|
|
15858
|
+
cacheKey: plugin.Version,
|
|
15859
|
+
viaCdn: !plugin.IsLoginRequired
|
|
15831
15860
|
});
|
|
15832
15861
|
req = exports.Api.PrepReqParams(req);
|
|
15833
15862
|
const cacheData = api.GetCacheItem(GetIndexFileCacheKey(pluginId, indexFileUrl), req);
|
|
@@ -15836,7 +15865,13 @@
|
|
|
15836
15865
|
fileContentProm = cacheData.data;
|
|
15837
15866
|
}
|
|
15838
15867
|
else {
|
|
15839
|
-
|
|
15868
|
+
const headers = {};
|
|
15869
|
+
if (plugin.IsLoginRequired) {
|
|
15870
|
+
headers[api.GetSessionHeader()] = api.GetSessionId();
|
|
15871
|
+
}
|
|
15872
|
+
fileContentProm = fetch(indexFileUrl, {
|
|
15873
|
+
headers: headers
|
|
15874
|
+
}).then((res) => res.text());
|
|
15840
15875
|
api.SetCacheItem({
|
|
15841
15876
|
key: GetIndexFileCacheKey(pluginId, indexFileUrl),
|
|
15842
15877
|
value: fileContentProm,
|
|
@@ -16637,7 +16672,7 @@
|
|
|
16637
16672
|
}
|
|
16638
16673
|
|
|
16639
16674
|
// This is updated with the package.json version on build.
|
|
16640
|
-
const VERSION = "6.9.
|
|
16675
|
+
const VERSION = "6.9.8";
|
|
16641
16676
|
|
|
16642
16677
|
exports.VERSION = VERSION;
|
|
16643
16678
|
exports.AbstractApi = AbstractApi;
|