bruce-models 3.7.0 → 3.7.2
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 +524 -494
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +474 -444
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/account/account.js.map +1 -1
- package/dist/lib/api/bruce-api.js +81 -53
- package/dist/lib/api/bruce-api.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/entity/entity-comment.js +28 -28
- package/dist/lib/entity/entity-comment.js.map +1 -1
- package/dist/lib/entity/entity-coords.js +14 -14
- package/dist/lib/entity/entity-coords.js.map +1 -1
- package/dist/lib/entity/entity-link.js +28 -28
- package/dist/lib/entity/entity-link.js.map +1 -1
- package/dist/lib/entity/entity-lod-category.js +27 -27
- package/dist/lib/entity/entity-lod-category.js.map +1 -1
- package/dist/lib/entity/entity-lod.js +43 -43
- package/dist/lib/entity/entity-lod.js.map +1 -1
- package/dist/lib/entity/entity-relation-type.js +27 -27
- package/dist/lib/entity/entity-relation-type.js.map +1 -1
- package/dist/lib/entity/entity-relation.js +46 -46
- package/dist/lib/entity/entity-relation.js.map +1 -1
- package/dist/lib/entity/entity-source.js +15 -15
- package/dist/lib/entity/entity-source.js.map +1 -1
- package/dist/lib/entity/entity-tag.js +31 -31
- package/dist/lib/entity/entity-tag.js.map +1 -1
- package/dist/lib/entity/entity-type.js +27 -27
- package/dist/lib/entity/entity-type.js.map +1 -1
- package/dist/lib/entity/entity.js +32 -32
- package/dist/lib/entity/entity.js.map +1 -1
- package/dist/lib/plugin/plugin.js +4 -0
- package/dist/lib/plugin/plugin.js.map +1 -1
- package/dist/lib/program-key/program-key.js +27 -27
- package/dist/lib/program-key/program-key.js.map +1 -1
- package/dist/lib/project/menu-item.js.map +1 -1
- package/dist/lib/project/project-view-bookmark.js +29 -29
- package/dist/lib/project/project-view-bookmark.js.map +1 -1
- package/dist/lib/style/style.js +27 -27
- package/dist/lib/style/style.js.map +1 -1
- package/dist/lib/tileset/tileset.js +28 -28
- package/dist/lib/tileset/tileset.js.map +1 -1
- package/dist/lib/user/session.js +13 -13
- package/dist/lib/user/session.js.map +1 -1
- package/dist/lib/user/user.js +51 -51
- package/dist/lib/user/user.js.map +1 -1
- package/dist/types/account/account.d.ts +8 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/entity/entity-comment.d.ts +22 -22
- package/dist/types/entity/entity-coords.d.ts +11 -11
- package/dist/types/entity/entity-link.d.ts +22 -22
- package/dist/types/entity/entity-lod-category.d.ts +21 -21
- package/dist/types/entity/entity-lod.d.ts +34 -34
- package/dist/types/entity/entity-relation-type.d.ts +21 -21
- package/dist/types/entity/entity-relation.d.ts +33 -33
- package/dist/types/entity/entity-source.d.ts +12 -12
- package/dist/types/entity/entity-tag.d.ts +22 -22
- package/dist/types/entity/entity-type.d.ts +21 -21
- package/dist/types/entity/entity.d.ts +27 -27
- package/dist/types/program-key/program-key.d.ts +21 -21
- package/dist/types/project/menu-item.d.ts +1 -0
- package/dist/types/project/project-view-bookmark.d.ts +23 -23
- package/dist/types/style/style.d.ts +21 -21
- package/dist/types/tileset/tileset.d.ts +22 -22
- package/dist/types/user/user.d.ts +36 -36
- package/package.json +1 -1
package/dist/bruce-models.umd.js
CHANGED
|
@@ -1382,69 +1382,96 @@
|
|
|
1382
1382
|
env: this.env
|
|
1383
1383
|
});
|
|
1384
1384
|
}
|
|
1385
|
-
const
|
|
1386
|
-
const domain = this.getDomain();
|
|
1387
|
-
const host = yield exports.HostingLocation.GetByAccountId({
|
|
1385
|
+
const { account } = yield exports.Account.Get({
|
|
1388
1386
|
accountId: this.accountId,
|
|
1389
1387
|
api: guardian
|
|
1390
1388
|
});
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1389
|
+
// Precalculated URLs exist.
|
|
1390
|
+
// Soon this will be a stable requirement for any account record.
|
|
1391
|
+
if (account.URL) {
|
|
1392
|
+
const urls = account.URL;
|
|
1393
|
+
if (urls === null || urls === void 0 ? void 0 : urls.Base) {
|
|
1394
|
+
this.baseUrl = urls.Base;
|
|
1395
|
+
}
|
|
1396
|
+
if (urls === null || urls === void 0 ? void 0 : urls.CDNEntities) {
|
|
1397
|
+
this.EntityCdnUrl = urls.CDNEntities;
|
|
1398
|
+
}
|
|
1399
|
+
if (urls === null || urls === void 0 ? void 0 : urls.CDNTileset) {
|
|
1400
|
+
this.TilesetCdnUrl = urls.CDNTileset;
|
|
1401
|
+
}
|
|
1402
|
+
if (urls === null || urls === void 0 ? void 0 : urls.CDNLegacyTileset) {
|
|
1403
|
+
this.LegacyTilesetCdnUrl = urls.CDNLegacyTileset;
|
|
1404
|
+
}
|
|
1405
|
+
if (urls === null || urls === void 0 ? void 0 : urls.CDNBase) {
|
|
1406
|
+
this.cdnBaseUrl = urls.CDNBase;
|
|
1407
|
+
}
|
|
1408
|
+
}
|
|
1409
|
+
// Deprecated and will eventually stop working at all.
|
|
1410
|
+
else {
|
|
1411
|
+
const env = this.env.toUpperCase();
|
|
1412
|
+
const domain = this.getDomain();
|
|
1413
|
+
const host = yield exports.HostingLocation.GetByAccountId({
|
|
1414
|
+
accountId: this.accountId,
|
|
1415
|
+
api: guardian
|
|
1416
|
+
});
|
|
1417
|
+
if (host === null || host === void 0 ? void 0 : host.location) {
|
|
1418
|
+
const settings = host.location.Settings;
|
|
1419
|
+
if (!this.loadCancelled) {
|
|
1420
|
+
// Attempt to load regional base url.
|
|
1421
|
+
// First try go through settings.
|
|
1422
|
+
let urlSet = false;
|
|
1423
|
+
if (settings === null || settings === void 0 ? void 0 : settings.BruceAPIURL) {
|
|
1424
|
+
let envUrl = settings.BruceAPIURL[env];
|
|
1425
|
+
if (envUrl) {
|
|
1426
|
+
envUrl = envUrl
|
|
1427
|
+
.replace("<ACCOUNTID>", this.accountId)
|
|
1428
|
+
.replace("<ACCOUNT>", this.accountId);
|
|
1429
|
+
if (envUrl && envUrl.length > 1) {
|
|
1430
|
+
this.baseUrl = envUrl;
|
|
1431
|
+
urlSet = true;
|
|
1432
|
+
}
|
|
1433
|
+
}
|
|
1434
|
+
}
|
|
1435
|
+
// Try go through host location's base url.
|
|
1436
|
+
// This may be wrong env which is why it's used as fallback right now.
|
|
1437
|
+
if (!urlSet && host.location.BruceAPIURL) {
|
|
1438
|
+
const regionalUrl = host.location.BruceAPIURL
|
|
1401
1439
|
.replace("<ACCOUNTID>", this.accountId)
|
|
1402
|
-
.replace("<ACCOUNT>", this.accountId)
|
|
1403
|
-
|
|
1404
|
-
|
|
1440
|
+
.replace("<ACCOUNT>", this.accountId)
|
|
1441
|
+
.replace("<DOMAIN>", domain);
|
|
1442
|
+
if (regionalUrl && regionalUrl.length > 1) {
|
|
1443
|
+
this.baseUrl = regionalUrl;
|
|
1405
1444
|
urlSet = true;
|
|
1406
1445
|
}
|
|
1407
1446
|
}
|
|
1408
1447
|
}
|
|
1409
|
-
//
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
.
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
}
|
|
1421
|
-
}
|
|
1422
|
-
// Attempt to load CDN settings.
|
|
1423
|
-
if (settings === null || settings === void 0 ? void 0 : settings.CDN) {
|
|
1424
|
-
this.EntityCdnUrl = (_a = settings.CDN.entityURL) === null || _a === void 0 ? void 0 : _a[env];
|
|
1425
|
-
// We need to fix our configs.
|
|
1426
|
-
if (this.EntityCdnUrl) {
|
|
1427
|
-
if (this.EntityCdnUrl.includes("entitiesListForCDN")) {
|
|
1428
|
-
this.EntityCdnUrl = this.EntityCdnUrl.replace("<ACCOUNT>", this.accountId);
|
|
1429
|
-
}
|
|
1430
|
-
else {
|
|
1431
|
-
this.EntityCdnUrl = this.EntityCdnUrl.replace("<ACCOUNT>", "entitiesListForCDN/" + this.accountId);
|
|
1448
|
+
// Attempt to load CDN settings.
|
|
1449
|
+
if (settings === null || settings === void 0 ? void 0 : settings.CDN) {
|
|
1450
|
+
this.EntityCdnUrl = (_a = settings.CDN.entityURL) === null || _a === void 0 ? void 0 : _a[env];
|
|
1451
|
+
// We need to fix our configs.
|
|
1452
|
+
if (this.EntityCdnUrl) {
|
|
1453
|
+
if (this.EntityCdnUrl.includes("entitiesListForCDN")) {
|
|
1454
|
+
this.EntityCdnUrl = this.EntityCdnUrl.replace("<ACCOUNT>", this.accountId);
|
|
1455
|
+
}
|
|
1456
|
+
else {
|
|
1457
|
+
this.EntityCdnUrl = this.EntityCdnUrl.replace("<ACCOUNT>", "entitiesListForCDN/" + this.accountId);
|
|
1458
|
+
}
|
|
1432
1459
|
}
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
this.TilesetCdnUrl = this.TilesetCdnUrl.replace("<ACCOUNT>", this.accountId);
|
|
1438
|
-
}
|
|
1439
|
-
// TilesetCdnUrl example: "https://blah.cloudfront.net/tilesets/<TILESETID>/files/<FILEPATH>?accountId=<ACCOUNT>".
|
|
1440
|
-
// Lazy at the moment to go around updating every region we have, I'll interpret the url from tilesetCdnUrl.
|
|
1441
|
-
if (this.TilesetCdnUrl) {
|
|
1442
|
-
try {
|
|
1443
|
-
const url = new URL(this.TilesetCdnUrl);
|
|
1444
|
-
this.cdnBaseUrl = `${url.protocol}//${url.hostname}/`;
|
|
1460
|
+
this.LegacyTilesetCdnUrl = (_b = settings.CDN.legacyTilesetURL) === null || _b === void 0 ? void 0 : _b[env];
|
|
1461
|
+
this.TilesetCdnUrl = (_c = settings.CDN.tilesetURL) === null || _c === void 0 ? void 0 : _c[env];
|
|
1462
|
+
if (this.TilesetCdnUrl) {
|
|
1463
|
+
this.TilesetCdnUrl = this.TilesetCdnUrl.replace("<ACCOUNT>", this.accountId);
|
|
1445
1464
|
}
|
|
1446
|
-
|
|
1447
|
-
|
|
1465
|
+
// TilesetCdnUrl example: "https://blah.cloudfront.net/tilesets/<TILESETID>/files/<FILEPATH>?accountId=<ACCOUNT>".
|
|
1466
|
+
// Lazy at the moment to go around updating every region we have, I'll interpret the url from tilesetCdnUrl.
|
|
1467
|
+
if (this.TilesetCdnUrl) {
|
|
1468
|
+
try {
|
|
1469
|
+
const url = new URL(this.TilesetCdnUrl);
|
|
1470
|
+
this.cdnBaseUrl = `${url.protocol}//${url.hostname}/`;
|
|
1471
|
+
}
|
|
1472
|
+
catch (e) {
|
|
1473
|
+
console.error(e);
|
|
1474
|
+
}
|
|
1448
1475
|
}
|
|
1449
1476
|
}
|
|
1450
1477
|
}
|
|
@@ -2647,33 +2674,6 @@
|
|
|
2647
2674
|
})(exports.ObjectUtils || (exports.ObjectUtils = {}));
|
|
2648
2675
|
|
|
2649
2676
|
(function (EntityType) {
|
|
2650
|
-
/**
|
|
2651
|
-
* Returns cache identifier for an entity type.
|
|
2652
|
-
* Example: {
|
|
2653
|
-
* const api: BruceApi.Api = ...;
|
|
2654
|
-
* const key = GetCacheKey("abc");
|
|
2655
|
-
* api.Cache.Remove(key);
|
|
2656
|
-
* }
|
|
2657
|
-
* @param typeId
|
|
2658
|
-
* @returns
|
|
2659
|
-
*/
|
|
2660
|
-
function GetCacheKey(typeId) {
|
|
2661
|
-
return `${exports.Api.ECacheKey.EntityType}${exports.Api.ECacheKey.Id}${typeId}`;
|
|
2662
|
-
}
|
|
2663
|
-
EntityType.GetCacheKey = GetCacheKey;
|
|
2664
|
-
/**
|
|
2665
|
-
* Returns cache identifier for a list of entity types.
|
|
2666
|
-
* Example: {
|
|
2667
|
-
* const api: BruceApi.Api = ...;
|
|
2668
|
-
* const key = GetListCacheKey();
|
|
2669
|
-
* api.Cache.Remove(key);
|
|
2670
|
-
* }
|
|
2671
|
-
* @returns
|
|
2672
|
-
*/
|
|
2673
|
-
function GetListCacheKey() {
|
|
2674
|
-
return exports.Api.ECacheKey.EntityType;
|
|
2675
|
-
}
|
|
2676
|
-
EntityType.GetListCacheKey = GetListCacheKey;
|
|
2677
2677
|
/**
|
|
2678
2678
|
* Gets an entity type record.
|
|
2679
2679
|
* @param params
|
|
@@ -2803,6 +2803,33 @@
|
|
|
2803
2803
|
});
|
|
2804
2804
|
}
|
|
2805
2805
|
EntityType.Update = Update;
|
|
2806
|
+
/**
|
|
2807
|
+
* Returns cache identifier for an entity type.
|
|
2808
|
+
* Example: {
|
|
2809
|
+
* const api: BruceApi.Api = ...;
|
|
2810
|
+
* const key = GetCacheKey("abc");
|
|
2811
|
+
* api.Cache.Remove(key);
|
|
2812
|
+
* }
|
|
2813
|
+
* @param typeId
|
|
2814
|
+
* @returns
|
|
2815
|
+
*/
|
|
2816
|
+
function GetCacheKey(typeId) {
|
|
2817
|
+
return `${exports.Api.ECacheKey.EntityType}${exports.Api.ECacheKey.Id}${typeId}`;
|
|
2818
|
+
}
|
|
2819
|
+
EntityType.GetCacheKey = GetCacheKey;
|
|
2820
|
+
/**
|
|
2821
|
+
* Returns cache identifier for a list of entity types.
|
|
2822
|
+
* Example: {
|
|
2823
|
+
* const api: BruceApi.Api = ...;
|
|
2824
|
+
* const key = GetListCacheKey();
|
|
2825
|
+
* api.Cache.Remove(key);
|
|
2826
|
+
* }
|
|
2827
|
+
* @returns
|
|
2828
|
+
*/
|
|
2829
|
+
function GetListCacheKey() {
|
|
2830
|
+
return exports.Api.ECacheKey.EntityType;
|
|
2831
|
+
}
|
|
2832
|
+
EntityType.GetListCacheKey = GetListCacheKey;
|
|
2806
2833
|
})(exports.EntityType || (exports.EntityType = {}));
|
|
2807
2834
|
|
|
2808
2835
|
/**
|
|
@@ -2900,38 +2927,6 @@
|
|
|
2900
2927
|
})(exports.ZoomControl || (exports.ZoomControl = {}));
|
|
2901
2928
|
|
|
2902
2929
|
(function (Entity) {
|
|
2903
|
-
/**
|
|
2904
|
-
* Returns cache identifier for an entity record.
|
|
2905
|
-
* Example: {
|
|
2906
|
-
* const api: BruceApi.Api = ...;
|
|
2907
|
-
* const key = GetCacheKey({...});
|
|
2908
|
-
* api.Cache.Remove(key);
|
|
2909
|
-
* }
|
|
2910
|
-
* @param params
|
|
2911
|
-
* @returns
|
|
2912
|
-
*/
|
|
2913
|
-
function GetCacheKey(params) {
|
|
2914
|
-
let { entityId, entityTypeId, expandLocation, expandRelations } = params;
|
|
2915
|
-
if (!entityTypeId) {
|
|
2916
|
-
entityTypeId = "";
|
|
2917
|
-
}
|
|
2918
|
-
return `${exports.Api.ECacheKey.Entity}${exports.Api.ECacheKey.Id}${entityId}${String(entityTypeId)}${String(Boolean(expandLocation))}${String(Boolean(expandRelations))}`;
|
|
2919
|
-
}
|
|
2920
|
-
Entity.GetCacheKey = GetCacheKey;
|
|
2921
|
-
/**
|
|
2922
|
-
* Returns cache identifier for an entity record.
|
|
2923
|
-
* Example: {
|
|
2924
|
-
* const api: BruceApi.Api = ...;
|
|
2925
|
-
* const key = GetCacheKey("abc");
|
|
2926
|
-
* api.Cache.Remove(key);
|
|
2927
|
-
* }
|
|
2928
|
-
* @param entityId
|
|
2929
|
-
* @returns
|
|
2930
|
-
*/
|
|
2931
|
-
function GetContainsKey(entityId) {
|
|
2932
|
-
return `${exports.Api.ECacheKey.Entity}${exports.Api.ECacheKey.Id}${entityId}`;
|
|
2933
|
-
}
|
|
2934
|
-
Entity.GetContainsKey = GetContainsKey;
|
|
2935
2930
|
/**
|
|
2936
2931
|
* Returns an entity record for the given entity id.
|
|
2937
2932
|
* @param params
|
|
@@ -3546,6 +3541,38 @@
|
|
|
3546
3541
|
};
|
|
3547
3542
|
}
|
|
3548
3543
|
Entity.ToGeoJson = ToGeoJson;
|
|
3544
|
+
/**
|
|
3545
|
+
* Returns cache identifier for an entity record.
|
|
3546
|
+
* Example: {
|
|
3547
|
+
* const api: BruceApi.Api = ...;
|
|
3548
|
+
* const key = GetCacheKey({...});
|
|
3549
|
+
* api.Cache.Remove(key);
|
|
3550
|
+
* }
|
|
3551
|
+
* @param params
|
|
3552
|
+
* @returns
|
|
3553
|
+
*/
|
|
3554
|
+
function GetCacheKey(params) {
|
|
3555
|
+
let { entityId, entityTypeId, expandLocation, expandRelations } = params;
|
|
3556
|
+
if (!entityTypeId) {
|
|
3557
|
+
entityTypeId = "";
|
|
3558
|
+
}
|
|
3559
|
+
return `${exports.Api.ECacheKey.Entity}${exports.Api.ECacheKey.Id}${entityId}${String(entityTypeId)}${String(Boolean(expandLocation))}${String(Boolean(expandRelations))}`;
|
|
3560
|
+
}
|
|
3561
|
+
Entity.GetCacheKey = GetCacheKey;
|
|
3562
|
+
/**
|
|
3563
|
+
* Returns cache identifier for an entity record.
|
|
3564
|
+
* Example: {
|
|
3565
|
+
* const api: BruceApi.Api = ...;
|
|
3566
|
+
* const key = GetCacheKey("abc");
|
|
3567
|
+
* api.Cache.Remove(key);
|
|
3568
|
+
* }
|
|
3569
|
+
* @param entityId
|
|
3570
|
+
* @returns
|
|
3571
|
+
*/
|
|
3572
|
+
function GetContainsKey(entityId) {
|
|
3573
|
+
return `${exports.Api.ECacheKey.Entity}${exports.Api.ECacheKey.Id}${entityId}`;
|
|
3574
|
+
}
|
|
3575
|
+
Entity.GetContainsKey = GetContainsKey;
|
|
3549
3576
|
})(exports.Entity || (exports.Entity = {}));
|
|
3550
3577
|
|
|
3551
3578
|
/**
|
|
@@ -4776,34 +4803,6 @@
|
|
|
4776
4803
|
})(exports.EntityAttachment || (exports.EntityAttachment = {}));
|
|
4777
4804
|
|
|
4778
4805
|
(function (EntityComment) {
|
|
4779
|
-
/**
|
|
4780
|
-
* Returns cache identifier for a comment by ID.
|
|
4781
|
-
* Example: {
|
|
4782
|
-
* const api: BruceApi.Api = ...;
|
|
4783
|
-
* const key = GetCacheKey("123");
|
|
4784
|
-
* api.Cache.Remove(key);
|
|
4785
|
-
* }
|
|
4786
|
-
* @param id
|
|
4787
|
-
* @returns
|
|
4788
|
-
*/
|
|
4789
|
-
function GetCacheKey(id) {
|
|
4790
|
-
return exports.Api.ECacheKey.Comment + exports.Api.ECacheKey.Id + id;
|
|
4791
|
-
}
|
|
4792
|
-
EntityComment.GetCacheKey = GetCacheKey;
|
|
4793
|
-
/**
|
|
4794
|
-
* Returns cache identifier for a list of comments for an entity.
|
|
4795
|
-
* Example: {
|
|
4796
|
-
* const api: BruceApi.Api = ...;
|
|
4797
|
-
* const key = GetListCacheKey("abc");
|
|
4798
|
-
* api.Cache.Remove(key);
|
|
4799
|
-
* }
|
|
4800
|
-
* @param entityId
|
|
4801
|
-
* @returns
|
|
4802
|
-
*/
|
|
4803
|
-
function GetListCacheKey(entityId) {
|
|
4804
|
-
return exports.Api.ECacheKey.Comment + exports.Api.ECacheKey.Entity + exports.Api.ECacheKey.Id + entityId;
|
|
4805
|
-
}
|
|
4806
|
-
EntityComment.GetListCacheKey = GetListCacheKey;
|
|
4807
4806
|
/**
|
|
4808
4807
|
* Creates or updates a comment.
|
|
4809
4808
|
* @param params
|
|
@@ -4885,25 +4884,22 @@
|
|
|
4885
4884
|
});
|
|
4886
4885
|
}
|
|
4887
4886
|
EntityComment.GetListByEntityId = GetListByEntityId;
|
|
4888
|
-
})(exports.EntityComment || (exports.EntityComment = {}));
|
|
4889
|
-
|
|
4890
|
-
(function (EntityLink) {
|
|
4891
4887
|
/**
|
|
4892
|
-
* Returns cache identifier for a
|
|
4888
|
+
* Returns cache identifier for a comment by ID.
|
|
4893
4889
|
* Example: {
|
|
4894
4890
|
* const api: BruceApi.Api = ...;
|
|
4895
|
-
* const key = GetCacheKey(
|
|
4891
|
+
* const key = GetCacheKey("123");
|
|
4896
4892
|
* api.Cache.Remove(key);
|
|
4897
4893
|
* }
|
|
4898
4894
|
* @param id
|
|
4899
4895
|
* @returns
|
|
4900
4896
|
*/
|
|
4901
4897
|
function GetCacheKey(id) {
|
|
4902
|
-
return exports.Api.ECacheKey.
|
|
4898
|
+
return exports.Api.ECacheKey.Comment + exports.Api.ECacheKey.Id + id;
|
|
4903
4899
|
}
|
|
4904
|
-
|
|
4900
|
+
EntityComment.GetCacheKey = GetCacheKey;
|
|
4905
4901
|
/**
|
|
4906
|
-
* Returns cache identifier for a list of
|
|
4902
|
+
* Returns cache identifier for a list of comments for an entity.
|
|
4907
4903
|
* Example: {
|
|
4908
4904
|
* const api: BruceApi.Api = ...;
|
|
4909
4905
|
* const key = GetListCacheKey("abc");
|
|
@@ -4913,9 +4909,12 @@
|
|
|
4913
4909
|
* @returns
|
|
4914
4910
|
*/
|
|
4915
4911
|
function GetListCacheKey(entityId) {
|
|
4916
|
-
return exports.Api.ECacheKey.
|
|
4912
|
+
return exports.Api.ECacheKey.Comment + exports.Api.ECacheKey.Entity + exports.Api.ECacheKey.Id + entityId;
|
|
4917
4913
|
}
|
|
4918
|
-
|
|
4914
|
+
EntityComment.GetListCacheKey = GetListCacheKey;
|
|
4915
|
+
})(exports.EntityComment || (exports.EntityComment = {}));
|
|
4916
|
+
|
|
4917
|
+
(function (EntityLink) {
|
|
4919
4918
|
/**
|
|
4920
4919
|
* Creates or updates a link record.
|
|
4921
4920
|
* @param params
|
|
@@ -4997,40 +4996,22 @@
|
|
|
4997
4996
|
});
|
|
4998
4997
|
}
|
|
4999
4998
|
EntityLink.GetListByEntityId = GetListByEntityId;
|
|
5000
|
-
})(exports.EntityLink || (exports.EntityLink = {}));
|
|
5001
|
-
|
|
5002
|
-
(function (EntityLod) {
|
|
5003
|
-
/**
|
|
5004
|
-
* Returns cache identifier for an entity lod record.
|
|
5005
|
-
* Example: {
|
|
5006
|
-
* const api: BruceApi.Api = ...;
|
|
5007
|
-
* const key = GetCacheKey("abc");
|
|
5008
|
-
* api.Cache.Remove(key);
|
|
5009
|
-
* }
|
|
5010
|
-
* @param url
|
|
5011
|
-
* @returns
|
|
5012
|
-
*/
|
|
5013
|
-
function GetCacheKey(url) {
|
|
5014
|
-
return exports.Api.ECacheKey.Lod + exports.Api.ECacheKey.Id + url;
|
|
5015
|
-
}
|
|
5016
|
-
EntityLod.GetCacheKey = GetCacheKey;
|
|
5017
4999
|
/**
|
|
5018
|
-
* Returns cache identifier for a
|
|
5000
|
+
* Returns cache identifier for a link record.
|
|
5019
5001
|
* Example: {
|
|
5020
5002
|
* const api: BruceApi.Api = ...;
|
|
5021
|
-
* const key =
|
|
5003
|
+
* const key = GetCacheKey(1);
|
|
5022
5004
|
* api.Cache.Remove(key);
|
|
5023
5005
|
* }
|
|
5024
|
-
* @param
|
|
5025
|
-
* @param group
|
|
5006
|
+
* @param id
|
|
5026
5007
|
* @returns
|
|
5027
5008
|
*/
|
|
5028
|
-
function
|
|
5029
|
-
return exports.Api.ECacheKey.
|
|
5009
|
+
function GetCacheKey(id) {
|
|
5010
|
+
return exports.Api.ECacheKey.Link + exports.Api.ECacheKey.Id + id;
|
|
5030
5011
|
}
|
|
5031
|
-
|
|
5012
|
+
EntityLink.GetCacheKey = GetCacheKey;
|
|
5032
5013
|
/**
|
|
5033
|
-
* Returns cache identifier for a list of entity
|
|
5014
|
+
* Returns cache identifier for a list of links for an entity.
|
|
5034
5015
|
* Example: {
|
|
5035
5016
|
* const api: BruceApi.Api = ...;
|
|
5036
5017
|
* const key = GetListCacheKey("abc");
|
|
@@ -5039,10 +5020,13 @@
|
|
|
5039
5020
|
* @param entityId
|
|
5040
5021
|
* @returns
|
|
5041
5022
|
*/
|
|
5042
|
-
function
|
|
5043
|
-
return exports.Api.ECacheKey.
|
|
5023
|
+
function GetListCacheKey(entityId) {
|
|
5024
|
+
return exports.Api.ECacheKey.Link + exports.Api.ECacheKey.Entity + exports.Api.ECacheKey.Id + entityId;
|
|
5044
5025
|
}
|
|
5045
|
-
|
|
5026
|
+
EntityLink.GetListCacheKey = GetListCacheKey;
|
|
5027
|
+
})(exports.EntityLink || (exports.EntityLink = {}));
|
|
5028
|
+
|
|
5029
|
+
(function (EntityLod) {
|
|
5046
5030
|
/**
|
|
5047
5031
|
* Returns a url for an entity lod record file.
|
|
5048
5032
|
* @param params
|
|
@@ -5258,39 +5242,55 @@
|
|
|
5258
5242
|
});
|
|
5259
5243
|
}
|
|
5260
5244
|
EntityLod.Delete = Delete;
|
|
5261
|
-
})(exports.EntityLod || (exports.EntityLod = {}));
|
|
5262
|
-
|
|
5263
|
-
(function (EntityLodCategory) {
|
|
5264
5245
|
/**
|
|
5265
|
-
* Returns cache identifier for an entity lod
|
|
5246
|
+
* Returns cache identifier for an entity lod record.
|
|
5266
5247
|
* Example: {
|
|
5267
5248
|
* const api: BruceApi.Api = ...;
|
|
5268
5249
|
* const key = GetCacheKey("abc");
|
|
5269
5250
|
* api.Cache.Remove(key);
|
|
5270
5251
|
* }
|
|
5271
|
-
* @param
|
|
5252
|
+
* @param url
|
|
5272
5253
|
* @returns
|
|
5273
5254
|
*/
|
|
5274
|
-
function GetCacheKey(
|
|
5275
|
-
return exports.Api.ECacheKey.
|
|
5255
|
+
function GetCacheKey(url) {
|
|
5256
|
+
return exports.Api.ECacheKey.Lod + exports.Api.ECacheKey.Id + url;
|
|
5276
5257
|
}
|
|
5277
|
-
|
|
5258
|
+
EntityLod.GetCacheKey = GetCacheKey;
|
|
5278
5259
|
/**
|
|
5279
|
-
* Returns cache identifier for a list of entity
|
|
5260
|
+
* Returns cache identifier for a list of entity lods.
|
|
5280
5261
|
* Example: {
|
|
5281
5262
|
* const api: BruceApi.Api = ...;
|
|
5282
|
-
* const key = GetListCacheKey();
|
|
5263
|
+
* const key = GetListCacheKey("abc", "def");
|
|
5283
5264
|
* api.Cache.Remove(key);
|
|
5284
5265
|
* }
|
|
5266
|
+
* @param typeId
|
|
5267
|
+
* @param group
|
|
5285
5268
|
* @returns
|
|
5286
5269
|
*/
|
|
5287
|
-
function
|
|
5288
|
-
return exports.Api.ECacheKey.
|
|
5270
|
+
function GetTypeListKey(typeId, group) {
|
|
5271
|
+
return exports.Api.ECacheKey.Lod + exports.Api.ECacheKey.EntityType + typeId + exports.Api.ECacheKey.Id + group;
|
|
5289
5272
|
}
|
|
5290
|
-
|
|
5273
|
+
EntityLod.GetTypeListKey = GetTypeListKey;
|
|
5291
5274
|
/**
|
|
5292
|
-
* Returns a list of entity
|
|
5293
|
-
*
|
|
5275
|
+
* Returns cache identifier for a list of entity lods.
|
|
5276
|
+
* Example: {
|
|
5277
|
+
* const api: BruceApi.Api = ...;
|
|
5278
|
+
* const key = GetListCacheKey("abc");
|
|
5279
|
+
* api.Cache.Remove(key);
|
|
5280
|
+
* }
|
|
5281
|
+
* @param entityId
|
|
5282
|
+
* @returns
|
|
5283
|
+
*/
|
|
5284
|
+
function GetEntityListKey(entityId) {
|
|
5285
|
+
return exports.Api.ECacheKey.Lod + exports.Api.ECacheKey.Entity + entityId;
|
|
5286
|
+
}
|
|
5287
|
+
EntityLod.GetEntityListKey = GetEntityListKey;
|
|
5288
|
+
})(exports.EntityLod || (exports.EntityLod = {}));
|
|
5289
|
+
|
|
5290
|
+
(function (EntityLodCategory) {
|
|
5291
|
+
/**
|
|
5292
|
+
* Returns a list of entity lod categories.
|
|
5293
|
+
* @param params
|
|
5294
5294
|
* @returns
|
|
5295
5295
|
*/
|
|
5296
5296
|
function GetList(params) {
|
|
@@ -5403,11 +5403,8 @@
|
|
|
5403
5403
|
});
|
|
5404
5404
|
}
|
|
5405
5405
|
EntityLodCategory.Update = Update;
|
|
5406
|
-
})(exports.EntityLodCategory || (exports.EntityLodCategory = {}));
|
|
5407
|
-
|
|
5408
|
-
(function (EntityRelationType) {
|
|
5409
5406
|
/**
|
|
5410
|
-
* Returns cache identifier for an entity
|
|
5407
|
+
* Returns cache identifier for an entity lod category record.
|
|
5411
5408
|
* Example: {
|
|
5412
5409
|
* const api: BruceApi.Api = ...;
|
|
5413
5410
|
* const key = GetCacheKey("abc");
|
|
@@ -5417,11 +5414,11 @@
|
|
|
5417
5414
|
* @returns
|
|
5418
5415
|
*/
|
|
5419
5416
|
function GetCacheKey(id) {
|
|
5420
|
-
return exports.Api.ECacheKey.
|
|
5417
|
+
return exports.Api.ECacheKey.LodCategory + exports.Api.ECacheKey.Id + id;
|
|
5421
5418
|
}
|
|
5422
|
-
|
|
5419
|
+
EntityLodCategory.GetCacheKey = GetCacheKey;
|
|
5423
5420
|
/**
|
|
5424
|
-
* Returns cache identifier for a list of entity
|
|
5421
|
+
* Returns cache identifier for a list of entity lod categories.
|
|
5425
5422
|
* Example: {
|
|
5426
5423
|
* const api: BruceApi.Api = ...;
|
|
5427
5424
|
* const key = GetListCacheKey();
|
|
@@ -5430,9 +5427,12 @@
|
|
|
5430
5427
|
* @returns
|
|
5431
5428
|
*/
|
|
5432
5429
|
function GetListCacheKey() {
|
|
5433
|
-
return exports.Api.ECacheKey.
|
|
5430
|
+
return exports.Api.ECacheKey.LodCategory;
|
|
5434
5431
|
}
|
|
5435
|
-
|
|
5432
|
+
EntityLodCategory.GetListCacheKey = GetListCacheKey;
|
|
5433
|
+
})(exports.EntityLodCategory || (exports.EntityLodCategory = {}));
|
|
5434
|
+
|
|
5435
|
+
(function (EntityRelationType) {
|
|
5436
5436
|
/**
|
|
5437
5437
|
* Gets a single entity relation type record.
|
|
5438
5438
|
* @param params
|
|
@@ -5552,25 +5552,8 @@
|
|
|
5552
5552
|
});
|
|
5553
5553
|
}
|
|
5554
5554
|
EntityRelationType.Update = Update;
|
|
5555
|
-
})(exports.EntityRelationType || (exports.EntityRelationType = {}));
|
|
5556
|
-
|
|
5557
|
-
(function (EntityRelation) {
|
|
5558
|
-
/**
|
|
5559
|
-
* Returns cache identifier for an entity relation record.
|
|
5560
|
-
* Example: {
|
|
5561
|
-
* const api: BruceApi.Api = ...;
|
|
5562
|
-
* const key = GetCacheKey("abc", "def", "ghi");
|
|
5563
|
-
* api.Cache.Remove(key);
|
|
5564
|
-
* }
|
|
5565
|
-
* @param id
|
|
5566
|
-
* @returns
|
|
5567
|
-
*/
|
|
5568
|
-
function GetCacheKey(entityA, entityB, typeId) {
|
|
5569
|
-
return `${exports.Api.ECacheKey.Relation}${exports.Api.ECacheKey.Id}${entityA}${exports.Api.ECacheKey.Id}${entityB}${exports.Api.ECacheKey.Id}${typeId}`;
|
|
5570
|
-
}
|
|
5571
|
-
EntityRelation.GetCacheKey = GetCacheKey;
|
|
5572
5555
|
/**
|
|
5573
|
-
* Returns cache identifier for
|
|
5556
|
+
* Returns cache identifier for an entity relation type record.
|
|
5574
5557
|
* Example: {
|
|
5575
5558
|
* const api: BruceApi.Api = ...;
|
|
5576
5559
|
* const key = GetCacheKey("abc");
|
|
@@ -5579,28 +5562,26 @@
|
|
|
5579
5562
|
* @param id
|
|
5580
5563
|
* @returns
|
|
5581
5564
|
*/
|
|
5582
|
-
function
|
|
5583
|
-
return exports.Api.ECacheKey.
|
|
5565
|
+
function GetCacheKey(id) {
|
|
5566
|
+
return exports.Api.ECacheKey.RelationType + exports.Api.ECacheKey.Id + id;
|
|
5584
5567
|
}
|
|
5585
|
-
|
|
5568
|
+
EntityRelationType.GetCacheKey = GetCacheKey;
|
|
5586
5569
|
/**
|
|
5587
|
-
* Returns cache identifier for a list of entity
|
|
5570
|
+
* Returns cache identifier for a list of entity relation types.
|
|
5588
5571
|
* Example: {
|
|
5589
5572
|
* const api: BruceApi.Api = ...;
|
|
5590
|
-
* const key =
|
|
5573
|
+
* const key = GetListCacheKey();
|
|
5591
5574
|
* api.Cache.Remove(key);
|
|
5592
5575
|
* }
|
|
5593
|
-
* @param id
|
|
5594
5576
|
* @returns
|
|
5595
5577
|
*/
|
|
5596
|
-
function GetListCacheKey(
|
|
5597
|
-
return exports.Api.ECacheKey.
|
|
5598
|
-
exports.Api.ECacheKey.Id + params.relationTypeId +
|
|
5599
|
-
exports.Api.ECacheKey.Id + params.oneWayOnly +
|
|
5600
|
-
exports.Api.ECacheKey.Id + params.loadEntityData +
|
|
5601
|
-
exports.Api.ECacheKey.Entity + exports.Api.ECacheKey.Id + entityId;
|
|
5578
|
+
function GetListCacheKey() {
|
|
5579
|
+
return exports.Api.ECacheKey.RelationType;
|
|
5602
5580
|
}
|
|
5603
|
-
|
|
5581
|
+
EntityRelationType.GetListCacheKey = GetListCacheKey;
|
|
5582
|
+
})(exports.EntityRelationType || (exports.EntityRelationType = {}));
|
|
5583
|
+
|
|
5584
|
+
(function (EntityRelation) {
|
|
5604
5585
|
/**
|
|
5605
5586
|
* Creates a new entity relation.
|
|
5606
5587
|
* @param params
|
|
@@ -5759,24 +5740,55 @@
|
|
|
5759
5740
|
});
|
|
5760
5741
|
}
|
|
5761
5742
|
EntityRelation.GetByDataEntityId = GetByDataEntityId;
|
|
5762
|
-
})(exports.EntityRelation || (exports.EntityRelation = {}));
|
|
5763
|
-
|
|
5764
|
-
(function (EntitySource) {
|
|
5765
5743
|
/**
|
|
5766
|
-
* Returns cache identifier for an entity
|
|
5744
|
+
* Returns cache identifier for an entity relation record.
|
|
5767
5745
|
* Example: {
|
|
5768
5746
|
* const api: BruceApi.Api = ...;
|
|
5769
|
-
* const key = GetCacheKey(
|
|
5747
|
+
* const key = GetCacheKey("abc", "def", "ghi");
|
|
5770
5748
|
* api.Cache.Remove(key);
|
|
5771
5749
|
* }
|
|
5772
|
-
* @param
|
|
5773
|
-
* @param sourceKey
|
|
5750
|
+
* @param id
|
|
5774
5751
|
* @returns
|
|
5775
5752
|
*/
|
|
5776
|
-
function GetCacheKey(
|
|
5777
|
-
return `${exports.Api.ECacheKey.
|
|
5753
|
+
function GetCacheKey(entityA, entityB, typeId) {
|
|
5754
|
+
return `${exports.Api.ECacheKey.Relation}${exports.Api.ECacheKey.Id}${entityA}${exports.Api.ECacheKey.Id}${entityB}${exports.Api.ECacheKey.Id}${typeId}`;
|
|
5778
5755
|
}
|
|
5779
|
-
|
|
5756
|
+
EntityRelation.GetCacheKey = GetCacheKey;
|
|
5757
|
+
/**
|
|
5758
|
+
* Returns cache identifier for a list of entity relations.
|
|
5759
|
+
* Example: {
|
|
5760
|
+
* const api: BruceApi.Api = ...;
|
|
5761
|
+
* const key = GetCacheKey("abc");
|
|
5762
|
+
* api.Cache.Remove(key);
|
|
5763
|
+
* }
|
|
5764
|
+
* @param id
|
|
5765
|
+
* @returns
|
|
5766
|
+
*/
|
|
5767
|
+
function GetEntityCacheKey(entityId) {
|
|
5768
|
+
return exports.Api.ECacheKey.Relation + exports.Api.ECacheKey.Entity + exports.Api.ECacheKey.Id + entityId;
|
|
5769
|
+
}
|
|
5770
|
+
EntityRelation.GetEntityCacheKey = GetEntityCacheKey;
|
|
5771
|
+
/**
|
|
5772
|
+
* Returns cache identifier for a list of entity relations.
|
|
5773
|
+
* Example: {
|
|
5774
|
+
* const api: BruceApi.Api = ...;
|
|
5775
|
+
* const key = GetCacheKey("abc", {...});
|
|
5776
|
+
* api.Cache.Remove(key);
|
|
5777
|
+
* }
|
|
5778
|
+
* @param id
|
|
5779
|
+
* @returns
|
|
5780
|
+
*/
|
|
5781
|
+
function GetListCacheKey(entityId, params) {
|
|
5782
|
+
return exports.Api.ECacheKey.Relation + exports.Api.ECacheKey.RelationType +
|
|
5783
|
+
exports.Api.ECacheKey.Id + params.relationTypeId +
|
|
5784
|
+
exports.Api.ECacheKey.Id + params.oneWayOnly +
|
|
5785
|
+
exports.Api.ECacheKey.Id + params.loadEntityData +
|
|
5786
|
+
exports.Api.ECacheKey.Entity + exports.Api.ECacheKey.Id + entityId;
|
|
5787
|
+
}
|
|
5788
|
+
EntityRelation.GetListCacheKey = GetListCacheKey;
|
|
5789
|
+
})(exports.EntityRelation || (exports.EntityRelation = {}));
|
|
5790
|
+
|
|
5791
|
+
(function (EntitySource) {
|
|
5780
5792
|
/**
|
|
5781
5793
|
* Returns an entity source record for the given source id and source key.
|
|
5782
5794
|
* @param params
|
|
@@ -5930,40 +5942,24 @@
|
|
|
5930
5942
|
});
|
|
5931
5943
|
}
|
|
5932
5944
|
EntitySource.CreateLink = CreateLink;
|
|
5933
|
-
})(exports.EntitySource || (exports.EntitySource = {}));
|
|
5934
|
-
|
|
5935
|
-
(function (EntityTag) {
|
|
5936
|
-
/**
|
|
5937
|
-
* Returns cache identifier for an entity tag record.
|
|
5938
|
-
* Example: {
|
|
5939
|
-
* const api: BruceApi.Api = ...;
|
|
5940
|
-
* const key = GetCacheKey(1);
|
|
5941
|
-
* api.Cache.Remove(key);
|
|
5942
|
-
* }
|
|
5943
|
-
* @param tagId
|
|
5944
|
-
* @returns
|
|
5945
|
-
*/
|
|
5946
|
-
function GetCacheKey(tagId) {
|
|
5947
|
-
return `${exports.Api.ECacheKey.Tag}${exports.Api.ECacheKey.Id}${tagId}`;
|
|
5948
|
-
}
|
|
5949
|
-
EntityTag.GetCacheKey = GetCacheKey;
|
|
5950
5945
|
/**
|
|
5951
|
-
* Returns cache identifier for
|
|
5946
|
+
* Returns cache identifier for an entity source record.
|
|
5952
5947
|
* Example: {
|
|
5953
5948
|
* const api: BruceApi.Api = ...;
|
|
5954
|
-
* const key =
|
|
5949
|
+
* const key = GetCacheKey(1, "def");
|
|
5955
5950
|
* api.Cache.Remove(key);
|
|
5956
5951
|
* }
|
|
5957
|
-
* @param
|
|
5952
|
+
* @param sourceId
|
|
5953
|
+
* @param sourceKey
|
|
5958
5954
|
* @returns
|
|
5959
5955
|
*/
|
|
5960
|
-
function
|
|
5961
|
-
|
|
5962
|
-
return exports.Api.ECacheKey.Tag + exports.Api.ECacheKey.EntityType + exports.Api.ECacheKey.Id + entityTypeId;
|
|
5963
|
-
}
|
|
5964
|
-
return exports.Api.ECacheKey.Tag;
|
|
5956
|
+
function GetCacheKey(sourceId, sourceKey) {
|
|
5957
|
+
return `${exports.Api.ECacheKey.EntitySource}${exports.Api.ECacheKey.Id}${sourceId}${exports.Api.ECacheKey.Id}${sourceKey}`;
|
|
5965
5958
|
}
|
|
5966
|
-
|
|
5959
|
+
EntitySource.GetCacheKey = GetCacheKey;
|
|
5960
|
+
})(exports.EntitySource || (exports.EntitySource = {}));
|
|
5961
|
+
|
|
5962
|
+
(function (EntityTag) {
|
|
5967
5963
|
/**
|
|
5968
5964
|
* Returns an entity tag record for the given tag id.
|
|
5969
5965
|
* @param params
|
|
@@ -6145,6 +6141,37 @@
|
|
|
6145
6141
|
});
|
|
6146
6142
|
}
|
|
6147
6143
|
EntityTag.Update = Update;
|
|
6144
|
+
/**
|
|
6145
|
+
* Returns cache identifier for an entity tag record.
|
|
6146
|
+
* Example: {
|
|
6147
|
+
* const api: BruceApi.Api = ...;
|
|
6148
|
+
* const key = GetCacheKey(1);
|
|
6149
|
+
* api.Cache.Remove(key);
|
|
6150
|
+
* }
|
|
6151
|
+
* @param tagId
|
|
6152
|
+
* @returns
|
|
6153
|
+
*/
|
|
6154
|
+
function GetCacheKey(tagId) {
|
|
6155
|
+
return `${exports.Api.ECacheKey.Tag}${exports.Api.ECacheKey.Id}${tagId}`;
|
|
6156
|
+
}
|
|
6157
|
+
EntityTag.GetCacheKey = GetCacheKey;
|
|
6158
|
+
/**
|
|
6159
|
+
* Returns cache identifier for a list of entity tags.
|
|
6160
|
+
* Example: {
|
|
6161
|
+
* const api: BruceApi.Api = ...;
|
|
6162
|
+
* const key = GetListCacheKey("abc");
|
|
6163
|
+
* api.Cache.Remove(key);
|
|
6164
|
+
* }
|
|
6165
|
+
* @param entityTypeId
|
|
6166
|
+
* @returns
|
|
6167
|
+
*/
|
|
6168
|
+
function GetListCacheKey(entityTypeId) {
|
|
6169
|
+
if (entityTypeId) {
|
|
6170
|
+
return exports.Api.ECacheKey.Tag + exports.Api.ECacheKey.EntityType + exports.Api.ECacheKey.Id + entityTypeId;
|
|
6171
|
+
}
|
|
6172
|
+
return exports.Api.ECacheKey.Tag;
|
|
6173
|
+
}
|
|
6174
|
+
EntityTag.GetListCacheKey = GetListCacheKey;
|
|
6148
6175
|
})(exports.EntityTag || (exports.EntityTag = {}));
|
|
6149
6176
|
|
|
6150
6177
|
(function (MathUtils) {
|
|
@@ -6186,20 +6213,6 @@
|
|
|
6186
6213
|
|
|
6187
6214
|
(function (EntityCoords) {
|
|
6188
6215
|
EntityCoords.UCS_ENTITY_TYPE_ID = "Bruce_UCS_Type";
|
|
6189
|
-
/**
|
|
6190
|
-
* Returns cache identifier for a UCS by entity id.
|
|
6191
|
-
* Example: {
|
|
6192
|
-
* const api: BruceApi.Api = ...;
|
|
6193
|
-
* const key = GetCacheKey("123");
|
|
6194
|
-
* api.Cache.Remove(key);
|
|
6195
|
-
* }
|
|
6196
|
-
* @param entityId
|
|
6197
|
-
* @returns
|
|
6198
|
-
*/
|
|
6199
|
-
function GetCacheKey(entityId) {
|
|
6200
|
-
return exports.Api.ECacheKey.EntityCoords + exports.Api.ECacheKey.Entity + exports.Api.ECacheKey.Id + entityId;
|
|
6201
|
-
}
|
|
6202
|
-
EntityCoords.GetCacheKey = GetCacheKey;
|
|
6203
6216
|
/**
|
|
6204
6217
|
* Returns an entity's location with expanded UCS information.
|
|
6205
6218
|
* @param params
|
|
@@ -6371,6 +6384,20 @@
|
|
|
6371
6384
|
});
|
|
6372
6385
|
}
|
|
6373
6386
|
EntityCoords.UnlinkCoords = UnlinkCoords;
|
|
6387
|
+
/**
|
|
6388
|
+
* Returns cache identifier for a UCS by entity id.
|
|
6389
|
+
* Example: {
|
|
6390
|
+
* const api: BruceApi.Api = ...;
|
|
6391
|
+
* const key = GetCacheKey("123");
|
|
6392
|
+
* api.Cache.Remove(key);
|
|
6393
|
+
* }
|
|
6394
|
+
* @param entityId
|
|
6395
|
+
* @returns
|
|
6396
|
+
*/
|
|
6397
|
+
function GetCacheKey(entityId) {
|
|
6398
|
+
return exports.Api.ECacheKey.EntityCoords + exports.Api.ECacheKey.Entity + exports.Api.ECacheKey.Id + entityId;
|
|
6399
|
+
}
|
|
6400
|
+
EntityCoords.GetCacheKey = GetCacheKey;
|
|
6374
6401
|
})(exports.EntityCoords || (exports.EntityCoords = {}));
|
|
6375
6402
|
|
|
6376
6403
|
/**
|
|
@@ -6902,33 +6929,6 @@
|
|
|
6902
6929
|
})(exports.ClientFile || (exports.ClientFile = {}));
|
|
6903
6930
|
|
|
6904
6931
|
(function (ProgramKey) {
|
|
6905
|
-
/**
|
|
6906
|
-
* Returns cache identifier for a program key.
|
|
6907
|
-
* Example: {
|
|
6908
|
-
* const api: BruceApi.Api = ...;
|
|
6909
|
-
* const key = GetCacheKey("abc");
|
|
6910
|
-
* api.Cache.Remove(key);
|
|
6911
|
-
* }
|
|
6912
|
-
* @param programId
|
|
6913
|
-
* @returns
|
|
6914
|
-
*/
|
|
6915
|
-
function GetCacheKey(programId) {
|
|
6916
|
-
return exports.Api.ECacheKey.ProgramKey + exports.Api.ECacheKey.Id + programId;
|
|
6917
|
-
}
|
|
6918
|
-
ProgramKey.GetCacheKey = GetCacheKey;
|
|
6919
|
-
/**
|
|
6920
|
-
* Returns cache identifier for a list of program keys.
|
|
6921
|
-
* Example: {
|
|
6922
|
-
* const api: BruceApi.Api = ...;
|
|
6923
|
-
* const key = GetListCacheKey();
|
|
6924
|
-
* api.Cache.Remove(key);
|
|
6925
|
-
* }
|
|
6926
|
-
* @returns
|
|
6927
|
-
*/
|
|
6928
|
-
function GetListCacheKey() {
|
|
6929
|
-
return exports.Api.ECacheKey.ProgramKey;
|
|
6930
|
-
}
|
|
6931
|
-
ProgramKey.GetListCacheKey = GetListCacheKey;
|
|
6932
6932
|
/**
|
|
6933
6933
|
* Known program IDs that Nextspace applications will reference.
|
|
6934
6934
|
*/
|
|
@@ -7069,26 +7069,22 @@
|
|
|
7069
7069
|
});
|
|
7070
7070
|
}
|
|
7071
7071
|
ProgramKey.Update = Update;
|
|
7072
|
-
})(exports.ProgramKey || (exports.ProgramKey = {}));
|
|
7073
|
-
|
|
7074
|
-
(function (Tileset) {
|
|
7075
7072
|
/**
|
|
7076
|
-
* Returns cache identifier for a
|
|
7073
|
+
* Returns cache identifier for a program key.
|
|
7077
7074
|
* Example: {
|
|
7078
7075
|
* const api: BruceApi.Api = ...;
|
|
7079
|
-
* const key = GetCacheKey("abc"
|
|
7076
|
+
* const key = GetCacheKey("abc");
|
|
7080
7077
|
* api.Cache.Remove(key);
|
|
7081
7078
|
* }
|
|
7082
|
-
* @param
|
|
7083
|
-
* @param loadFiles
|
|
7079
|
+
* @param programId
|
|
7084
7080
|
* @returns
|
|
7085
7081
|
*/
|
|
7086
|
-
function GetCacheKey(
|
|
7087
|
-
return
|
|
7082
|
+
function GetCacheKey(programId) {
|
|
7083
|
+
return exports.Api.ECacheKey.ProgramKey + exports.Api.ECacheKey.Id + programId;
|
|
7088
7084
|
}
|
|
7089
|
-
|
|
7085
|
+
ProgramKey.GetCacheKey = GetCacheKey;
|
|
7090
7086
|
/**
|
|
7091
|
-
* Returns cache identifier for a list of
|
|
7087
|
+
* Returns cache identifier for a list of program keys.
|
|
7092
7088
|
* Example: {
|
|
7093
7089
|
* const api: BruceApi.Api = ...;
|
|
7094
7090
|
* const key = GetListCacheKey();
|
|
@@ -7097,9 +7093,12 @@
|
|
|
7097
7093
|
* @returns
|
|
7098
7094
|
*/
|
|
7099
7095
|
function GetListCacheKey() {
|
|
7100
|
-
return exports.Api.ECacheKey.
|
|
7096
|
+
return exports.Api.ECacheKey.ProgramKey;
|
|
7101
7097
|
}
|
|
7102
|
-
|
|
7098
|
+
ProgramKey.GetListCacheKey = GetListCacheKey;
|
|
7099
|
+
})(exports.ProgramKey || (exports.ProgramKey = {}));
|
|
7100
|
+
|
|
7101
|
+
(function (Tileset) {
|
|
7103
7102
|
/**
|
|
7104
7103
|
* Available tileset types.
|
|
7105
7104
|
*/
|
|
@@ -7683,6 +7682,34 @@
|
|
|
7683
7682
|
EExternalMapType["CustomTemplate"] = "Static";
|
|
7684
7683
|
})(EExternalMapType = Settings.EExternalMapType || (Settings.EExternalMapType = {}));
|
|
7685
7684
|
})(Settings = Tileset.Settings || (Tileset.Settings = {}));
|
|
7685
|
+
/**
|
|
7686
|
+
* Returns cache identifier for a tileset.
|
|
7687
|
+
* Example: {
|
|
7688
|
+
* const api: BruceApi.Api = ...;
|
|
7689
|
+
* const key = GetCacheKey("abc", false);
|
|
7690
|
+
* api.Cache.Remove(key);
|
|
7691
|
+
* }
|
|
7692
|
+
* @param tilesetId
|
|
7693
|
+
* @param loadFiles
|
|
7694
|
+
* @returns
|
|
7695
|
+
*/
|
|
7696
|
+
function GetCacheKey(tilesetId, loadFiles) {
|
|
7697
|
+
return `${exports.Api.ECacheKey.Tileset}${exports.Api.ECacheKey.Id}${tilesetId}${exports.Api.ECacheKey.Id}${loadFiles}`;
|
|
7698
|
+
}
|
|
7699
|
+
Tileset.GetCacheKey = GetCacheKey;
|
|
7700
|
+
/**
|
|
7701
|
+
* Returns cache identifier for a list of tilesets.
|
|
7702
|
+
* Example: {
|
|
7703
|
+
* const api: BruceApi.Api = ...;
|
|
7704
|
+
* const key = GetListCacheKey();
|
|
7705
|
+
* api.Cache.Remove(key);
|
|
7706
|
+
* }
|
|
7707
|
+
* @returns
|
|
7708
|
+
*/
|
|
7709
|
+
function GetListCacheKey() {
|
|
7710
|
+
return exports.Api.ECacheKey.Tileset;
|
|
7711
|
+
}
|
|
7712
|
+
Tileset.GetListCacheKey = GetListCacheKey;
|
|
7686
7713
|
})(exports.Tileset || (exports.Tileset = {}));
|
|
7687
7714
|
|
|
7688
7715
|
(function (MenuItem) {
|
|
@@ -7841,35 +7868,6 @@
|
|
|
7841
7868
|
})(exports.MenuItem || (exports.MenuItem = {}));
|
|
7842
7869
|
|
|
7843
7870
|
(function (ProjectViewBookmark) {
|
|
7844
|
-
/**
|
|
7845
|
-
* Returns cache identifier for a bookmark.
|
|
7846
|
-
* Example: {
|
|
7847
|
-
* const api: BruceApi.Api = ...;
|
|
7848
|
-
* const key = GetCacheKey("abc", "def");
|
|
7849
|
-
* api.Cache.Remove(key);
|
|
7850
|
-
* }
|
|
7851
|
-
* @param viewId
|
|
7852
|
-
* @param bookmarkId
|
|
7853
|
-
* @returns
|
|
7854
|
-
*/
|
|
7855
|
-
function GetCacheKey(viewId, bookmarkId) {
|
|
7856
|
-
return `${exports.Api.ECacheKey.ProjectViewBookmark}${exports.Api.ECacheKey.Id}${viewId}${exports.Api.ECacheKey.Id}${bookmarkId}`;
|
|
7857
|
-
}
|
|
7858
|
-
ProjectViewBookmark.GetCacheKey = GetCacheKey;
|
|
7859
|
-
/**
|
|
7860
|
-
* Returns cache identifier for a list of bookmarks.
|
|
7861
|
-
* Example: {
|
|
7862
|
-
* const api: BruceApi.Api = ...;
|
|
7863
|
-
* const key = GetListCacheKey("abc");
|
|
7864
|
-
* api.Cache.Remove(key);
|
|
7865
|
-
* }
|
|
7866
|
-
* @param viewId
|
|
7867
|
-
* @returns
|
|
7868
|
-
*/
|
|
7869
|
-
function GetListCacheKey(viewId) {
|
|
7870
|
-
return `${exports.Api.ECacheKey.ProjectViewBookmark}${exports.Api.ECacheKey.Id}${viewId}`;
|
|
7871
|
-
}
|
|
7872
|
-
ProjectViewBookmark.GetListCacheKey = GetListCacheKey;
|
|
7873
7871
|
// This is the expected default version for the DataVersion value.
|
|
7874
7872
|
// This value should NOT be changed without looking at our API and seeing what the default value is.
|
|
7875
7873
|
ProjectViewBookmark.DEFAULT_DATA_VERSION = 2;
|
|
@@ -8028,6 +8026,35 @@
|
|
|
8028
8026
|
});
|
|
8029
8027
|
}
|
|
8030
8028
|
ProjectViewBookmark.SetOrder = SetOrder;
|
|
8029
|
+
/**
|
|
8030
|
+
* Returns cache identifier for a bookmark.
|
|
8031
|
+
* Example: {
|
|
8032
|
+
* const api: BruceApi.Api = ...;
|
|
8033
|
+
* const key = GetCacheKey("abc", "def");
|
|
8034
|
+
* api.Cache.Remove(key);
|
|
8035
|
+
* }
|
|
8036
|
+
* @param viewId
|
|
8037
|
+
* @param bookmarkId
|
|
8038
|
+
* @returns
|
|
8039
|
+
*/
|
|
8040
|
+
function GetCacheKey(viewId, bookmarkId) {
|
|
8041
|
+
return `${exports.Api.ECacheKey.ProjectViewBookmark}${exports.Api.ECacheKey.Id}${viewId}${exports.Api.ECacheKey.Id}${bookmarkId}`;
|
|
8042
|
+
}
|
|
8043
|
+
ProjectViewBookmark.GetCacheKey = GetCacheKey;
|
|
8044
|
+
/**
|
|
8045
|
+
* Returns cache identifier for a list of bookmarks.
|
|
8046
|
+
* Example: {
|
|
8047
|
+
* const api: BruceApi.Api = ...;
|
|
8048
|
+
* const key = GetListCacheKey("abc");
|
|
8049
|
+
* api.Cache.Remove(key);
|
|
8050
|
+
* }
|
|
8051
|
+
* @param viewId
|
|
8052
|
+
* @returns
|
|
8053
|
+
*/
|
|
8054
|
+
function GetListCacheKey(viewId) {
|
|
8055
|
+
return `${exports.Api.ECacheKey.ProjectViewBookmark}${exports.Api.ECacheKey.Id}${viewId}`;
|
|
8056
|
+
}
|
|
8057
|
+
ProjectViewBookmark.GetListCacheKey = GetListCacheKey;
|
|
8031
8058
|
})(exports.ProjectViewBookmark || (exports.ProjectViewBookmark = {}));
|
|
8032
8059
|
|
|
8033
8060
|
(function (ProjectView) {
|
|
@@ -8513,33 +8540,6 @@
|
|
|
8513
8540
|
})(exports.PendingAction || (exports.PendingAction = {}));
|
|
8514
8541
|
|
|
8515
8542
|
(function (Style) {
|
|
8516
|
-
/**
|
|
8517
|
-
* Returns cache identifier for a style.
|
|
8518
|
-
* Example: {
|
|
8519
|
-
* const api: BruceApi.Api = ...;
|
|
8520
|
-
* const key = GetCacheKey(1);
|
|
8521
|
-
* api.Cache.Remove(key);
|
|
8522
|
-
* }
|
|
8523
|
-
* @param id
|
|
8524
|
-
* @returns
|
|
8525
|
-
*/
|
|
8526
|
-
function GetCacheKey(id) {
|
|
8527
|
-
return exports.Api.ECacheKey.Style + exports.Api.ECacheKey.Id + id;
|
|
8528
|
-
}
|
|
8529
|
-
Style.GetCacheKey = GetCacheKey;
|
|
8530
|
-
/**
|
|
8531
|
-
* Returns cache identifier for a list of styles.
|
|
8532
|
-
* Example: {
|
|
8533
|
-
* const api: BruceApi.Api = ...;
|
|
8534
|
-
* const key = GetListCacheKey();
|
|
8535
|
-
* api.Cache.Remove(key);
|
|
8536
|
-
* }
|
|
8537
|
-
* @returns
|
|
8538
|
-
*/
|
|
8539
|
-
function GetListCacheKey() {
|
|
8540
|
-
return exports.Api.ECacheKey.Style;
|
|
8541
|
-
}
|
|
8542
|
-
Style.GetListCacheKey = GetListCacheKey;
|
|
8543
8543
|
/**
|
|
8544
8544
|
* Types of styles available.
|
|
8545
8545
|
* The type will dictate what settings are available.
|
|
@@ -8680,6 +8680,33 @@
|
|
|
8680
8680
|
});
|
|
8681
8681
|
}
|
|
8682
8682
|
Style.Delete = Delete;
|
|
8683
|
+
/**
|
|
8684
|
+
* Returns cache identifier for a style.
|
|
8685
|
+
* Example: {
|
|
8686
|
+
* const api: BruceApi.Api = ...;
|
|
8687
|
+
* const key = GetCacheKey(1);
|
|
8688
|
+
* api.Cache.Remove(key);
|
|
8689
|
+
* }
|
|
8690
|
+
* @param id
|
|
8691
|
+
* @returns
|
|
8692
|
+
*/
|
|
8693
|
+
function GetCacheKey(id) {
|
|
8694
|
+
return exports.Api.ECacheKey.Style + exports.Api.ECacheKey.Id + id;
|
|
8695
|
+
}
|
|
8696
|
+
Style.GetCacheKey = GetCacheKey;
|
|
8697
|
+
/**
|
|
8698
|
+
* Returns cache identifier for a list of styles.
|
|
8699
|
+
* Example: {
|
|
8700
|
+
* const api: BruceApi.Api = ...;
|
|
8701
|
+
* const key = GetListCacheKey();
|
|
8702
|
+
* api.Cache.Remove(key);
|
|
8703
|
+
* }
|
|
8704
|
+
* @returns
|
|
8705
|
+
*/
|
|
8706
|
+
function GetListCacheKey() {
|
|
8707
|
+
return exports.Api.ECacheKey.Style;
|
|
8708
|
+
}
|
|
8709
|
+
Style.GetListCacheKey = GetListCacheKey;
|
|
8683
8710
|
})(exports.Style || (exports.Style = {}));
|
|
8684
8711
|
|
|
8685
8712
|
/**
|
|
@@ -8723,19 +8750,6 @@
|
|
|
8723
8750
|
})(exports.Permission || (exports.Permission = {}));
|
|
8724
8751
|
|
|
8725
8752
|
(function (Session) {
|
|
8726
|
-
/**
|
|
8727
|
-
* Returns cache identifier for a session.
|
|
8728
|
-
* Example: {
|
|
8729
|
-
* const api: BruceApi.Api = ...;
|
|
8730
|
-
* const key = GetCacheKey("abc");
|
|
8731
|
-
* api.Cache.Remove(key);
|
|
8732
|
-
* }
|
|
8733
|
-
* @param sessionId
|
|
8734
|
-
* @returns
|
|
8735
|
-
*/
|
|
8736
|
-
function GetCacheKey(sessionId) {
|
|
8737
|
-
return `${exports.Api.ECacheKey.Session}${exports.Api.ECacheKey.Id}${sessionId}`;
|
|
8738
|
-
}
|
|
8739
8753
|
/**
|
|
8740
8754
|
* Gets a session record.
|
|
8741
8755
|
* @param params
|
|
@@ -8912,6 +8926,19 @@
|
|
|
8912
8926
|
});
|
|
8913
8927
|
}
|
|
8914
8928
|
Session.IsSuperAdmin = IsSuperAdmin;
|
|
8929
|
+
/**
|
|
8930
|
+
* Returns cache identifier for a session.
|
|
8931
|
+
* Example: {
|
|
8932
|
+
* const api: BruceApi.Api = ...;
|
|
8933
|
+
* const key = GetCacheKey("abc");
|
|
8934
|
+
* api.Cache.Remove(key);
|
|
8935
|
+
* }
|
|
8936
|
+
* @param sessionId
|
|
8937
|
+
* @returns
|
|
8938
|
+
*/
|
|
8939
|
+
function GetCacheKey(sessionId) {
|
|
8940
|
+
return `${exports.Api.ECacheKey.Session}${exports.Api.ECacheKey.Id}${sessionId}`;
|
|
8941
|
+
}
|
|
8915
8942
|
})(exports.Session || (exports.Session = {}));
|
|
8916
8943
|
|
|
8917
8944
|
(function (UserGroup) {
|
|
@@ -9041,57 +9068,6 @@
|
|
|
9041
9068
|
})(exports.UserGroup || (exports.UserGroup = {}));
|
|
9042
9069
|
|
|
9043
9070
|
(function (User) {
|
|
9044
|
-
/**
|
|
9045
|
-
* Returns cache identifier for a user.
|
|
9046
|
-
* Example: {
|
|
9047
|
-
* const api: BruceApi.Api = ...;
|
|
9048
|
-
* const key = GetCacheKey("abc", "def");
|
|
9049
|
-
* api.Cache.Remove(key);
|
|
9050
|
-
* }
|
|
9051
|
-
* @param userId
|
|
9052
|
-
* @param accountId
|
|
9053
|
-
* @returns
|
|
9054
|
-
*/
|
|
9055
|
-
function GetCacheKey(userId, accountId) {
|
|
9056
|
-
if (!accountId) {
|
|
9057
|
-
accountId = "";
|
|
9058
|
-
}
|
|
9059
|
-
return exports.Api.ECacheKey.User + exports.Api.ECacheKey.Id + userId + exports.Api.ECacheKey.Id + accountId;
|
|
9060
|
-
}
|
|
9061
|
-
User.GetCacheKey = GetCacheKey;
|
|
9062
|
-
/**
|
|
9063
|
-
* Returns cache identifier for a user.
|
|
9064
|
-
* Example: {
|
|
9065
|
-
* const api: BruceApi.Api = ...;
|
|
9066
|
-
* const key = GetCacheKey("abc", "def");
|
|
9067
|
-
* api.Cache.Remove(key);
|
|
9068
|
-
* }
|
|
9069
|
-
* @param email
|
|
9070
|
-
* @param accountId
|
|
9071
|
-
* @returns
|
|
9072
|
-
*/
|
|
9073
|
-
function GetEmailCacheKey(email, accountId) {
|
|
9074
|
-
if (!accountId) {
|
|
9075
|
-
accountId = "";
|
|
9076
|
-
}
|
|
9077
|
-
return exports.Api.ECacheKey.User + exports.Api.ECacheKey.UserEmail + email + exports.Api.ECacheKey.Id + accountId;
|
|
9078
|
-
}
|
|
9079
|
-
User.GetEmailCacheKey = GetEmailCacheKey;
|
|
9080
|
-
/**
|
|
9081
|
-
* Returns cache identifier for a user's settings.
|
|
9082
|
-
* Example: {
|
|
9083
|
-
* const api: BruceApi.Api = ...;
|
|
9084
|
-
* const key = GetCacheKey("abc", "def");
|
|
9085
|
-
* api.Cache.Remove(key);
|
|
9086
|
-
* }
|
|
9087
|
-
* @param userId
|
|
9088
|
-
* @param appId
|
|
9089
|
-
* @returns
|
|
9090
|
-
*/
|
|
9091
|
-
function GetSettingsCacheKey(userId, appId) {
|
|
9092
|
-
return exports.Api.ECacheKey.User + exports.Api.ECacheKey.UserSettings + userId + exports.Api.ECacheKey.Id + appId;
|
|
9093
|
-
}
|
|
9094
|
-
User.GetSettingsCacheKey = GetSettingsCacheKey;
|
|
9095
9071
|
/**
|
|
9096
9072
|
* Available user types.
|
|
9097
9073
|
*/
|
|
@@ -9635,6 +9611,57 @@
|
|
|
9635
9611
|
}
|
|
9636
9612
|
AccessToken.Create = Create;
|
|
9637
9613
|
})(AccessToken = User.AccessToken || (User.AccessToken = {}));
|
|
9614
|
+
/**
|
|
9615
|
+
* Returns cache identifier for a user.
|
|
9616
|
+
* Example: {
|
|
9617
|
+
* const api: BruceApi.Api = ...;
|
|
9618
|
+
* const key = GetCacheKey("abc", "def");
|
|
9619
|
+
* api.Cache.Remove(key);
|
|
9620
|
+
* }
|
|
9621
|
+
* @param userId
|
|
9622
|
+
* @param accountId
|
|
9623
|
+
* @returns
|
|
9624
|
+
*/
|
|
9625
|
+
function GetCacheKey(userId, accountId) {
|
|
9626
|
+
if (!accountId) {
|
|
9627
|
+
accountId = "";
|
|
9628
|
+
}
|
|
9629
|
+
return exports.Api.ECacheKey.User + exports.Api.ECacheKey.Id + userId + exports.Api.ECacheKey.Id + accountId;
|
|
9630
|
+
}
|
|
9631
|
+
User.GetCacheKey = GetCacheKey;
|
|
9632
|
+
/**
|
|
9633
|
+
* Returns cache identifier for a user.
|
|
9634
|
+
* Example: {
|
|
9635
|
+
* const api: BruceApi.Api = ...;
|
|
9636
|
+
* const key = GetCacheKey("abc", "def");
|
|
9637
|
+
* api.Cache.Remove(key);
|
|
9638
|
+
* }
|
|
9639
|
+
* @param email
|
|
9640
|
+
* @param accountId
|
|
9641
|
+
* @returns
|
|
9642
|
+
*/
|
|
9643
|
+
function GetEmailCacheKey(email, accountId) {
|
|
9644
|
+
if (!accountId) {
|
|
9645
|
+
accountId = "";
|
|
9646
|
+
}
|
|
9647
|
+
return exports.Api.ECacheKey.User + exports.Api.ECacheKey.UserEmail + email + exports.Api.ECacheKey.Id + accountId;
|
|
9648
|
+
}
|
|
9649
|
+
User.GetEmailCacheKey = GetEmailCacheKey;
|
|
9650
|
+
/**
|
|
9651
|
+
* Returns cache identifier for a user's settings.
|
|
9652
|
+
* Example: {
|
|
9653
|
+
* const api: BruceApi.Api = ...;
|
|
9654
|
+
* const key = GetCacheKey("abc", "def");
|
|
9655
|
+
* api.Cache.Remove(key);
|
|
9656
|
+
* }
|
|
9657
|
+
* @param userId
|
|
9658
|
+
* @param appId
|
|
9659
|
+
* @returns
|
|
9660
|
+
*/
|
|
9661
|
+
function GetSettingsCacheKey(userId, appId) {
|
|
9662
|
+
return exports.Api.ECacheKey.User + exports.Api.ECacheKey.UserSettings + userId + exports.Api.ECacheKey.Id + appId;
|
|
9663
|
+
}
|
|
9664
|
+
User.GetSettingsCacheKey = GetSettingsCacheKey;
|
|
9638
9665
|
})(exports.User || (exports.User = {}));
|
|
9639
9666
|
|
|
9640
9667
|
(function (AccountInvite) {
|
|
@@ -10579,6 +10606,8 @@
|
|
|
10579
10606
|
req: req
|
|
10580
10607
|
});
|
|
10581
10608
|
}
|
|
10609
|
+
// We changed the expected plugin code without changing the API response so we need to read and reformat the file content.
|
|
10610
|
+
// TODO: Create a v3 request that gives us the plugin code in a more usable format.
|
|
10582
10611
|
let fileContent = yield fileContentProm;
|
|
10583
10612
|
const start = fileContent.indexOf("{");
|
|
10584
10613
|
const end = fileContent.lastIndexOf("}");
|
|
@@ -10628,6 +10657,7 @@
|
|
|
10628
10657
|
}
|
|
10629
10658
|
return {
|
|
10630
10659
|
run: () => {
|
|
10660
|
+
// 'eval2 = eval' stops the linter from complaining about using eval.
|
|
10631
10661
|
const eval2 = eval;
|
|
10632
10662
|
eval2(script);
|
|
10633
10663
|
// Ensure a function is returned, even if the plugin is not configured properly to return one.
|
|
@@ -10831,7 +10861,7 @@
|
|
|
10831
10861
|
})(exports.DataSource || (exports.DataSource = {}));
|
|
10832
10862
|
|
|
10833
10863
|
// This is updated with the package.json version on build.
|
|
10834
|
-
const VERSION = "3.7.
|
|
10864
|
+
const VERSION = "3.7.2";
|
|
10835
10865
|
|
|
10836
10866
|
exports.VERSION = VERSION;
|
|
10837
10867
|
exports.AbstractApi = AbstractApi;
|