bruce-models 3.6.9 → 3.7.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 +536 -441
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +483 -393
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +2 -1
- package/dist/lib/bruce-models.js.map +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/bruce-models.d.ts +2 -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
|
@@ -2647,33 +2647,6 @@
|
|
|
2647
2647
|
})(exports.ObjectUtils || (exports.ObjectUtils = {}));
|
|
2648
2648
|
|
|
2649
2649
|
(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
2650
|
/**
|
|
2678
2651
|
* Gets an entity type record.
|
|
2679
2652
|
* @param params
|
|
@@ -2803,6 +2776,33 @@
|
|
|
2803
2776
|
});
|
|
2804
2777
|
}
|
|
2805
2778
|
EntityType.Update = Update;
|
|
2779
|
+
/**
|
|
2780
|
+
* Returns cache identifier for an entity type.
|
|
2781
|
+
* Example: {
|
|
2782
|
+
* const api: BruceApi.Api = ...;
|
|
2783
|
+
* const key = GetCacheKey("abc");
|
|
2784
|
+
* api.Cache.Remove(key);
|
|
2785
|
+
* }
|
|
2786
|
+
* @param typeId
|
|
2787
|
+
* @returns
|
|
2788
|
+
*/
|
|
2789
|
+
function GetCacheKey(typeId) {
|
|
2790
|
+
return `${exports.Api.ECacheKey.EntityType}${exports.Api.ECacheKey.Id}${typeId}`;
|
|
2791
|
+
}
|
|
2792
|
+
EntityType.GetCacheKey = GetCacheKey;
|
|
2793
|
+
/**
|
|
2794
|
+
* Returns cache identifier for a list of entity types.
|
|
2795
|
+
* Example: {
|
|
2796
|
+
* const api: BruceApi.Api = ...;
|
|
2797
|
+
* const key = GetListCacheKey();
|
|
2798
|
+
* api.Cache.Remove(key);
|
|
2799
|
+
* }
|
|
2800
|
+
* @returns
|
|
2801
|
+
*/
|
|
2802
|
+
function GetListCacheKey() {
|
|
2803
|
+
return exports.Api.ECacheKey.EntityType;
|
|
2804
|
+
}
|
|
2805
|
+
EntityType.GetListCacheKey = GetListCacheKey;
|
|
2806
2806
|
})(exports.EntityType || (exports.EntityType = {}));
|
|
2807
2807
|
|
|
2808
2808
|
/**
|
|
@@ -2900,38 +2900,6 @@
|
|
|
2900
2900
|
})(exports.ZoomControl || (exports.ZoomControl = {}));
|
|
2901
2901
|
|
|
2902
2902
|
(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
2903
|
/**
|
|
2936
2904
|
* Returns an entity record for the given entity id.
|
|
2937
2905
|
* @param params
|
|
@@ -3546,6 +3514,38 @@
|
|
|
3546
3514
|
};
|
|
3547
3515
|
}
|
|
3548
3516
|
Entity.ToGeoJson = ToGeoJson;
|
|
3517
|
+
/**
|
|
3518
|
+
* Returns cache identifier for an entity record.
|
|
3519
|
+
* Example: {
|
|
3520
|
+
* const api: BruceApi.Api = ...;
|
|
3521
|
+
* const key = GetCacheKey({...});
|
|
3522
|
+
* api.Cache.Remove(key);
|
|
3523
|
+
* }
|
|
3524
|
+
* @param params
|
|
3525
|
+
* @returns
|
|
3526
|
+
*/
|
|
3527
|
+
function GetCacheKey(params) {
|
|
3528
|
+
let { entityId, entityTypeId, expandLocation, expandRelations } = params;
|
|
3529
|
+
if (!entityTypeId) {
|
|
3530
|
+
entityTypeId = "";
|
|
3531
|
+
}
|
|
3532
|
+
return `${exports.Api.ECacheKey.Entity}${exports.Api.ECacheKey.Id}${entityId}${String(entityTypeId)}${String(Boolean(expandLocation))}${String(Boolean(expandRelations))}`;
|
|
3533
|
+
}
|
|
3534
|
+
Entity.GetCacheKey = GetCacheKey;
|
|
3535
|
+
/**
|
|
3536
|
+
* Returns cache identifier for an entity record.
|
|
3537
|
+
* Example: {
|
|
3538
|
+
* const api: BruceApi.Api = ...;
|
|
3539
|
+
* const key = GetCacheKey("abc");
|
|
3540
|
+
* api.Cache.Remove(key);
|
|
3541
|
+
* }
|
|
3542
|
+
* @param entityId
|
|
3543
|
+
* @returns
|
|
3544
|
+
*/
|
|
3545
|
+
function GetContainsKey(entityId) {
|
|
3546
|
+
return `${exports.Api.ECacheKey.Entity}${exports.Api.ECacheKey.Id}${entityId}`;
|
|
3547
|
+
}
|
|
3548
|
+
Entity.GetContainsKey = GetContainsKey;
|
|
3549
3549
|
})(exports.Entity || (exports.Entity = {}));
|
|
3550
3550
|
|
|
3551
3551
|
/**
|
|
@@ -4776,34 +4776,6 @@
|
|
|
4776
4776
|
})(exports.EntityAttachment || (exports.EntityAttachment = {}));
|
|
4777
4777
|
|
|
4778
4778
|
(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
4779
|
/**
|
|
4808
4780
|
* Creates or updates a comment.
|
|
4809
4781
|
* @param params
|
|
@@ -4885,25 +4857,22 @@
|
|
|
4885
4857
|
});
|
|
4886
4858
|
}
|
|
4887
4859
|
EntityComment.GetListByEntityId = GetListByEntityId;
|
|
4888
|
-
})(exports.EntityComment || (exports.EntityComment = {}));
|
|
4889
|
-
|
|
4890
|
-
(function (EntityLink) {
|
|
4891
4860
|
/**
|
|
4892
|
-
* Returns cache identifier for a
|
|
4861
|
+
* Returns cache identifier for a comment by ID.
|
|
4893
4862
|
* Example: {
|
|
4894
4863
|
* const api: BruceApi.Api = ...;
|
|
4895
|
-
* const key = GetCacheKey(
|
|
4864
|
+
* const key = GetCacheKey("123");
|
|
4896
4865
|
* api.Cache.Remove(key);
|
|
4897
4866
|
* }
|
|
4898
4867
|
* @param id
|
|
4899
4868
|
* @returns
|
|
4900
4869
|
*/
|
|
4901
4870
|
function GetCacheKey(id) {
|
|
4902
|
-
return exports.Api.ECacheKey.
|
|
4871
|
+
return exports.Api.ECacheKey.Comment + exports.Api.ECacheKey.Id + id;
|
|
4903
4872
|
}
|
|
4904
|
-
|
|
4873
|
+
EntityComment.GetCacheKey = GetCacheKey;
|
|
4905
4874
|
/**
|
|
4906
|
-
* Returns cache identifier for a list of
|
|
4875
|
+
* Returns cache identifier for a list of comments for an entity.
|
|
4907
4876
|
* Example: {
|
|
4908
4877
|
* const api: BruceApi.Api = ...;
|
|
4909
4878
|
* const key = GetListCacheKey("abc");
|
|
@@ -4913,9 +4882,12 @@
|
|
|
4913
4882
|
* @returns
|
|
4914
4883
|
*/
|
|
4915
4884
|
function GetListCacheKey(entityId) {
|
|
4916
|
-
return exports.Api.ECacheKey.
|
|
4885
|
+
return exports.Api.ECacheKey.Comment + exports.Api.ECacheKey.Entity + exports.Api.ECacheKey.Id + entityId;
|
|
4917
4886
|
}
|
|
4918
|
-
|
|
4887
|
+
EntityComment.GetListCacheKey = GetListCacheKey;
|
|
4888
|
+
})(exports.EntityComment || (exports.EntityComment = {}));
|
|
4889
|
+
|
|
4890
|
+
(function (EntityLink) {
|
|
4919
4891
|
/**
|
|
4920
4892
|
* Creates or updates a link record.
|
|
4921
4893
|
* @param params
|
|
@@ -4997,40 +4969,22 @@
|
|
|
4997
4969
|
});
|
|
4998
4970
|
}
|
|
4999
4971
|
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
4972
|
/**
|
|
5018
|
-
* Returns cache identifier for a
|
|
4973
|
+
* Returns cache identifier for a link record.
|
|
5019
4974
|
* Example: {
|
|
5020
4975
|
* const api: BruceApi.Api = ...;
|
|
5021
|
-
* const key =
|
|
4976
|
+
* const key = GetCacheKey(1);
|
|
5022
4977
|
* api.Cache.Remove(key);
|
|
5023
4978
|
* }
|
|
5024
|
-
* @param
|
|
5025
|
-
* @param group
|
|
4979
|
+
* @param id
|
|
5026
4980
|
* @returns
|
|
5027
4981
|
*/
|
|
5028
|
-
function
|
|
5029
|
-
return exports.Api.ECacheKey.
|
|
4982
|
+
function GetCacheKey(id) {
|
|
4983
|
+
return exports.Api.ECacheKey.Link + exports.Api.ECacheKey.Id + id;
|
|
5030
4984
|
}
|
|
5031
|
-
|
|
4985
|
+
EntityLink.GetCacheKey = GetCacheKey;
|
|
5032
4986
|
/**
|
|
5033
|
-
* Returns cache identifier for a list of entity
|
|
4987
|
+
* Returns cache identifier for a list of links for an entity.
|
|
5034
4988
|
* Example: {
|
|
5035
4989
|
* const api: BruceApi.Api = ...;
|
|
5036
4990
|
* const key = GetListCacheKey("abc");
|
|
@@ -5039,10 +4993,13 @@
|
|
|
5039
4993
|
* @param entityId
|
|
5040
4994
|
* @returns
|
|
5041
4995
|
*/
|
|
5042
|
-
function
|
|
5043
|
-
return exports.Api.ECacheKey.
|
|
4996
|
+
function GetListCacheKey(entityId) {
|
|
4997
|
+
return exports.Api.ECacheKey.Link + exports.Api.ECacheKey.Entity + exports.Api.ECacheKey.Id + entityId;
|
|
5044
4998
|
}
|
|
5045
|
-
|
|
4999
|
+
EntityLink.GetListCacheKey = GetListCacheKey;
|
|
5000
|
+
})(exports.EntityLink || (exports.EntityLink = {}));
|
|
5001
|
+
|
|
5002
|
+
(function (EntityLod) {
|
|
5046
5003
|
/**
|
|
5047
5004
|
* Returns a url for an entity lod record file.
|
|
5048
5005
|
* @param params
|
|
@@ -5258,36 +5215,52 @@
|
|
|
5258
5215
|
});
|
|
5259
5216
|
}
|
|
5260
5217
|
EntityLod.Delete = Delete;
|
|
5261
|
-
})(exports.EntityLod || (exports.EntityLod = {}));
|
|
5262
|
-
|
|
5263
|
-
(function (EntityLodCategory) {
|
|
5264
5218
|
/**
|
|
5265
|
-
* Returns cache identifier for an entity lod
|
|
5219
|
+
* Returns cache identifier for an entity lod record.
|
|
5266
5220
|
* Example: {
|
|
5267
5221
|
* const api: BruceApi.Api = ...;
|
|
5268
5222
|
* const key = GetCacheKey("abc");
|
|
5269
5223
|
* api.Cache.Remove(key);
|
|
5270
5224
|
* }
|
|
5271
|
-
* @param
|
|
5225
|
+
* @param url
|
|
5272
5226
|
* @returns
|
|
5273
5227
|
*/
|
|
5274
|
-
function GetCacheKey(
|
|
5275
|
-
return exports.Api.ECacheKey.
|
|
5228
|
+
function GetCacheKey(url) {
|
|
5229
|
+
return exports.Api.ECacheKey.Lod + exports.Api.ECacheKey.Id + url;
|
|
5276
5230
|
}
|
|
5277
|
-
|
|
5231
|
+
EntityLod.GetCacheKey = GetCacheKey;
|
|
5278
5232
|
/**
|
|
5279
|
-
* Returns cache identifier for a list of entity
|
|
5233
|
+
* Returns cache identifier for a list of entity lods.
|
|
5280
5234
|
* Example: {
|
|
5281
5235
|
* const api: BruceApi.Api = ...;
|
|
5282
|
-
* const key = GetListCacheKey();
|
|
5236
|
+
* const key = GetListCacheKey("abc", "def");
|
|
5283
5237
|
* api.Cache.Remove(key);
|
|
5284
5238
|
* }
|
|
5239
|
+
* @param typeId
|
|
5240
|
+
* @param group
|
|
5285
5241
|
* @returns
|
|
5286
5242
|
*/
|
|
5287
|
-
function
|
|
5288
|
-
return exports.Api.ECacheKey.
|
|
5243
|
+
function GetTypeListKey(typeId, group) {
|
|
5244
|
+
return exports.Api.ECacheKey.Lod + exports.Api.ECacheKey.EntityType + typeId + exports.Api.ECacheKey.Id + group;
|
|
5289
5245
|
}
|
|
5290
|
-
|
|
5246
|
+
EntityLod.GetTypeListKey = GetTypeListKey;
|
|
5247
|
+
/**
|
|
5248
|
+
* Returns cache identifier for a list of entity lods.
|
|
5249
|
+
* Example: {
|
|
5250
|
+
* const api: BruceApi.Api = ...;
|
|
5251
|
+
* const key = GetListCacheKey("abc");
|
|
5252
|
+
* api.Cache.Remove(key);
|
|
5253
|
+
* }
|
|
5254
|
+
* @param entityId
|
|
5255
|
+
* @returns
|
|
5256
|
+
*/
|
|
5257
|
+
function GetEntityListKey(entityId) {
|
|
5258
|
+
return exports.Api.ECacheKey.Lod + exports.Api.ECacheKey.Entity + entityId;
|
|
5259
|
+
}
|
|
5260
|
+
EntityLod.GetEntityListKey = GetEntityListKey;
|
|
5261
|
+
})(exports.EntityLod || (exports.EntityLod = {}));
|
|
5262
|
+
|
|
5263
|
+
(function (EntityLodCategory) {
|
|
5291
5264
|
/**
|
|
5292
5265
|
* Returns a list of entity lod categories.
|
|
5293
5266
|
* @param params
|
|
@@ -5403,11 +5376,8 @@
|
|
|
5403
5376
|
});
|
|
5404
5377
|
}
|
|
5405
5378
|
EntityLodCategory.Update = Update;
|
|
5406
|
-
})(exports.EntityLodCategory || (exports.EntityLodCategory = {}));
|
|
5407
|
-
|
|
5408
|
-
(function (EntityRelationType) {
|
|
5409
5379
|
/**
|
|
5410
|
-
* Returns cache identifier for an entity
|
|
5380
|
+
* Returns cache identifier for an entity lod category record.
|
|
5411
5381
|
* Example: {
|
|
5412
5382
|
* const api: BruceApi.Api = ...;
|
|
5413
5383
|
* const key = GetCacheKey("abc");
|
|
@@ -5417,11 +5387,11 @@
|
|
|
5417
5387
|
* @returns
|
|
5418
5388
|
*/
|
|
5419
5389
|
function GetCacheKey(id) {
|
|
5420
|
-
return exports.Api.ECacheKey.
|
|
5390
|
+
return exports.Api.ECacheKey.LodCategory + exports.Api.ECacheKey.Id + id;
|
|
5421
5391
|
}
|
|
5422
|
-
|
|
5392
|
+
EntityLodCategory.GetCacheKey = GetCacheKey;
|
|
5423
5393
|
/**
|
|
5424
|
-
* Returns cache identifier for a list of entity
|
|
5394
|
+
* Returns cache identifier for a list of entity lod categories.
|
|
5425
5395
|
* Example: {
|
|
5426
5396
|
* const api: BruceApi.Api = ...;
|
|
5427
5397
|
* const key = GetListCacheKey();
|
|
@@ -5430,9 +5400,12 @@
|
|
|
5430
5400
|
* @returns
|
|
5431
5401
|
*/
|
|
5432
5402
|
function GetListCacheKey() {
|
|
5433
|
-
return exports.Api.ECacheKey.
|
|
5403
|
+
return exports.Api.ECacheKey.LodCategory;
|
|
5434
5404
|
}
|
|
5435
|
-
|
|
5405
|
+
EntityLodCategory.GetListCacheKey = GetListCacheKey;
|
|
5406
|
+
})(exports.EntityLodCategory || (exports.EntityLodCategory = {}));
|
|
5407
|
+
|
|
5408
|
+
(function (EntityRelationType) {
|
|
5436
5409
|
/**
|
|
5437
5410
|
* Gets a single entity relation type record.
|
|
5438
5411
|
* @param params
|
|
@@ -5552,25 +5525,8 @@
|
|
|
5552
5525
|
});
|
|
5553
5526
|
}
|
|
5554
5527
|
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
5528
|
/**
|
|
5573
|
-
* Returns cache identifier for
|
|
5529
|
+
* Returns cache identifier for an entity relation type record.
|
|
5574
5530
|
* Example: {
|
|
5575
5531
|
* const api: BruceApi.Api = ...;
|
|
5576
5532
|
* const key = GetCacheKey("abc");
|
|
@@ -5579,28 +5535,26 @@
|
|
|
5579
5535
|
* @param id
|
|
5580
5536
|
* @returns
|
|
5581
5537
|
*/
|
|
5582
|
-
function
|
|
5583
|
-
return exports.Api.ECacheKey.
|
|
5538
|
+
function GetCacheKey(id) {
|
|
5539
|
+
return exports.Api.ECacheKey.RelationType + exports.Api.ECacheKey.Id + id;
|
|
5584
5540
|
}
|
|
5585
|
-
|
|
5541
|
+
EntityRelationType.GetCacheKey = GetCacheKey;
|
|
5586
5542
|
/**
|
|
5587
|
-
* Returns cache identifier for a list of entity
|
|
5543
|
+
* Returns cache identifier for a list of entity relation types.
|
|
5588
5544
|
* Example: {
|
|
5589
5545
|
* const api: BruceApi.Api = ...;
|
|
5590
|
-
* const key =
|
|
5546
|
+
* const key = GetListCacheKey();
|
|
5591
5547
|
* api.Cache.Remove(key);
|
|
5592
5548
|
* }
|
|
5593
|
-
* @param id
|
|
5594
5549
|
* @returns
|
|
5595
5550
|
*/
|
|
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;
|
|
5551
|
+
function GetListCacheKey() {
|
|
5552
|
+
return exports.Api.ECacheKey.RelationType;
|
|
5602
5553
|
}
|
|
5603
|
-
|
|
5554
|
+
EntityRelationType.GetListCacheKey = GetListCacheKey;
|
|
5555
|
+
})(exports.EntityRelationType || (exports.EntityRelationType = {}));
|
|
5556
|
+
|
|
5557
|
+
(function (EntityRelation) {
|
|
5604
5558
|
/**
|
|
5605
5559
|
* Creates a new entity relation.
|
|
5606
5560
|
* @param params
|
|
@@ -5759,24 +5713,55 @@
|
|
|
5759
5713
|
});
|
|
5760
5714
|
}
|
|
5761
5715
|
EntityRelation.GetByDataEntityId = GetByDataEntityId;
|
|
5762
|
-
})(exports.EntityRelation || (exports.EntityRelation = {}));
|
|
5763
|
-
|
|
5764
|
-
(function (EntitySource) {
|
|
5765
5716
|
/**
|
|
5766
|
-
* Returns cache identifier for an entity
|
|
5717
|
+
* Returns cache identifier for an entity relation record.
|
|
5767
5718
|
* Example: {
|
|
5768
5719
|
* const api: BruceApi.Api = ...;
|
|
5769
|
-
* const key = GetCacheKey(
|
|
5720
|
+
* const key = GetCacheKey("abc", "def", "ghi");
|
|
5770
5721
|
* api.Cache.Remove(key);
|
|
5771
5722
|
* }
|
|
5772
|
-
* @param
|
|
5773
|
-
* @param sourceKey
|
|
5723
|
+
* @param id
|
|
5774
5724
|
* @returns
|
|
5775
5725
|
*/
|
|
5776
|
-
function GetCacheKey(
|
|
5777
|
-
return `${exports.Api.ECacheKey.
|
|
5726
|
+
function GetCacheKey(entityA, entityB, typeId) {
|
|
5727
|
+
return `${exports.Api.ECacheKey.Relation}${exports.Api.ECacheKey.Id}${entityA}${exports.Api.ECacheKey.Id}${entityB}${exports.Api.ECacheKey.Id}${typeId}`;
|
|
5778
5728
|
}
|
|
5779
|
-
|
|
5729
|
+
EntityRelation.GetCacheKey = GetCacheKey;
|
|
5730
|
+
/**
|
|
5731
|
+
* Returns cache identifier for a list of entity relations.
|
|
5732
|
+
* Example: {
|
|
5733
|
+
* const api: BruceApi.Api = ...;
|
|
5734
|
+
* const key = GetCacheKey("abc");
|
|
5735
|
+
* api.Cache.Remove(key);
|
|
5736
|
+
* }
|
|
5737
|
+
* @param id
|
|
5738
|
+
* @returns
|
|
5739
|
+
*/
|
|
5740
|
+
function GetEntityCacheKey(entityId) {
|
|
5741
|
+
return exports.Api.ECacheKey.Relation + exports.Api.ECacheKey.Entity + exports.Api.ECacheKey.Id + entityId;
|
|
5742
|
+
}
|
|
5743
|
+
EntityRelation.GetEntityCacheKey = GetEntityCacheKey;
|
|
5744
|
+
/**
|
|
5745
|
+
* Returns cache identifier for a list of entity relations.
|
|
5746
|
+
* Example: {
|
|
5747
|
+
* const api: BruceApi.Api = ...;
|
|
5748
|
+
* const key = GetCacheKey("abc", {...});
|
|
5749
|
+
* api.Cache.Remove(key);
|
|
5750
|
+
* }
|
|
5751
|
+
* @param id
|
|
5752
|
+
* @returns
|
|
5753
|
+
*/
|
|
5754
|
+
function GetListCacheKey(entityId, params) {
|
|
5755
|
+
return exports.Api.ECacheKey.Relation + exports.Api.ECacheKey.RelationType +
|
|
5756
|
+
exports.Api.ECacheKey.Id + params.relationTypeId +
|
|
5757
|
+
exports.Api.ECacheKey.Id + params.oneWayOnly +
|
|
5758
|
+
exports.Api.ECacheKey.Id + params.loadEntityData +
|
|
5759
|
+
exports.Api.ECacheKey.Entity + exports.Api.ECacheKey.Id + entityId;
|
|
5760
|
+
}
|
|
5761
|
+
EntityRelation.GetListCacheKey = GetListCacheKey;
|
|
5762
|
+
})(exports.EntityRelation || (exports.EntityRelation = {}));
|
|
5763
|
+
|
|
5764
|
+
(function (EntitySource) {
|
|
5780
5765
|
/**
|
|
5781
5766
|
* Returns an entity source record for the given source id and source key.
|
|
5782
5767
|
* @param params
|
|
@@ -5930,40 +5915,24 @@
|
|
|
5930
5915
|
});
|
|
5931
5916
|
}
|
|
5932
5917
|
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
5918
|
/**
|
|
5951
|
-
* Returns cache identifier for
|
|
5919
|
+
* Returns cache identifier for an entity source record.
|
|
5952
5920
|
* Example: {
|
|
5953
5921
|
* const api: BruceApi.Api = ...;
|
|
5954
|
-
* const key =
|
|
5922
|
+
* const key = GetCacheKey(1, "def");
|
|
5955
5923
|
* api.Cache.Remove(key);
|
|
5956
5924
|
* }
|
|
5957
|
-
* @param
|
|
5925
|
+
* @param sourceId
|
|
5926
|
+
* @param sourceKey
|
|
5958
5927
|
* @returns
|
|
5959
5928
|
*/
|
|
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;
|
|
5929
|
+
function GetCacheKey(sourceId, sourceKey) {
|
|
5930
|
+
return `${exports.Api.ECacheKey.EntitySource}${exports.Api.ECacheKey.Id}${sourceId}${exports.Api.ECacheKey.Id}${sourceKey}`;
|
|
5965
5931
|
}
|
|
5966
|
-
|
|
5932
|
+
EntitySource.GetCacheKey = GetCacheKey;
|
|
5933
|
+
})(exports.EntitySource || (exports.EntitySource = {}));
|
|
5934
|
+
|
|
5935
|
+
(function (EntityTag) {
|
|
5967
5936
|
/**
|
|
5968
5937
|
* Returns an entity tag record for the given tag id.
|
|
5969
5938
|
* @param params
|
|
@@ -6145,6 +6114,37 @@
|
|
|
6145
6114
|
});
|
|
6146
6115
|
}
|
|
6147
6116
|
EntityTag.Update = Update;
|
|
6117
|
+
/**
|
|
6118
|
+
* Returns cache identifier for an entity tag record.
|
|
6119
|
+
* Example: {
|
|
6120
|
+
* const api: BruceApi.Api = ...;
|
|
6121
|
+
* const key = GetCacheKey(1);
|
|
6122
|
+
* api.Cache.Remove(key);
|
|
6123
|
+
* }
|
|
6124
|
+
* @param tagId
|
|
6125
|
+
* @returns
|
|
6126
|
+
*/
|
|
6127
|
+
function GetCacheKey(tagId) {
|
|
6128
|
+
return `${exports.Api.ECacheKey.Tag}${exports.Api.ECacheKey.Id}${tagId}`;
|
|
6129
|
+
}
|
|
6130
|
+
EntityTag.GetCacheKey = GetCacheKey;
|
|
6131
|
+
/**
|
|
6132
|
+
* Returns cache identifier for a list of entity tags.
|
|
6133
|
+
* Example: {
|
|
6134
|
+
* const api: BruceApi.Api = ...;
|
|
6135
|
+
* const key = GetListCacheKey("abc");
|
|
6136
|
+
* api.Cache.Remove(key);
|
|
6137
|
+
* }
|
|
6138
|
+
* @param entityTypeId
|
|
6139
|
+
* @returns
|
|
6140
|
+
*/
|
|
6141
|
+
function GetListCacheKey(entityTypeId) {
|
|
6142
|
+
if (entityTypeId) {
|
|
6143
|
+
return exports.Api.ECacheKey.Tag + exports.Api.ECacheKey.EntityType + exports.Api.ECacheKey.Id + entityTypeId;
|
|
6144
|
+
}
|
|
6145
|
+
return exports.Api.ECacheKey.Tag;
|
|
6146
|
+
}
|
|
6147
|
+
EntityTag.GetListCacheKey = GetListCacheKey;
|
|
6148
6148
|
})(exports.EntityTag || (exports.EntityTag = {}));
|
|
6149
6149
|
|
|
6150
6150
|
(function (MathUtils) {
|
|
@@ -6186,20 +6186,6 @@
|
|
|
6186
6186
|
|
|
6187
6187
|
(function (EntityCoords) {
|
|
6188
6188
|
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
6189
|
/**
|
|
6204
6190
|
* Returns an entity's location with expanded UCS information.
|
|
6205
6191
|
* @param params
|
|
@@ -6371,6 +6357,20 @@
|
|
|
6371
6357
|
});
|
|
6372
6358
|
}
|
|
6373
6359
|
EntityCoords.UnlinkCoords = UnlinkCoords;
|
|
6360
|
+
/**
|
|
6361
|
+
* Returns cache identifier for a UCS by entity id.
|
|
6362
|
+
* Example: {
|
|
6363
|
+
* const api: BruceApi.Api = ...;
|
|
6364
|
+
* const key = GetCacheKey("123");
|
|
6365
|
+
* api.Cache.Remove(key);
|
|
6366
|
+
* }
|
|
6367
|
+
* @param entityId
|
|
6368
|
+
* @returns
|
|
6369
|
+
*/
|
|
6370
|
+
function GetCacheKey(entityId) {
|
|
6371
|
+
return exports.Api.ECacheKey.EntityCoords + exports.Api.ECacheKey.Entity + exports.Api.ECacheKey.Id + entityId;
|
|
6372
|
+
}
|
|
6373
|
+
EntityCoords.GetCacheKey = GetCacheKey;
|
|
6374
6374
|
})(exports.EntityCoords || (exports.EntityCoords = {}));
|
|
6375
6375
|
|
|
6376
6376
|
/**
|
|
@@ -6902,33 +6902,6 @@
|
|
|
6902
6902
|
})(exports.ClientFile || (exports.ClientFile = {}));
|
|
6903
6903
|
|
|
6904
6904
|
(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
6905
|
/**
|
|
6933
6906
|
* Known program IDs that Nextspace applications will reference.
|
|
6934
6907
|
*/
|
|
@@ -7069,26 +7042,22 @@
|
|
|
7069
7042
|
});
|
|
7070
7043
|
}
|
|
7071
7044
|
ProgramKey.Update = Update;
|
|
7072
|
-
})(exports.ProgramKey || (exports.ProgramKey = {}));
|
|
7073
|
-
|
|
7074
|
-
(function (Tileset) {
|
|
7075
7045
|
/**
|
|
7076
|
-
* Returns cache identifier for a
|
|
7046
|
+
* Returns cache identifier for a program key.
|
|
7077
7047
|
* Example: {
|
|
7078
7048
|
* const api: BruceApi.Api = ...;
|
|
7079
|
-
* const key = GetCacheKey("abc"
|
|
7049
|
+
* const key = GetCacheKey("abc");
|
|
7080
7050
|
* api.Cache.Remove(key);
|
|
7081
7051
|
* }
|
|
7082
|
-
* @param
|
|
7083
|
-
* @param loadFiles
|
|
7052
|
+
* @param programId
|
|
7084
7053
|
* @returns
|
|
7085
7054
|
*/
|
|
7086
|
-
function GetCacheKey(
|
|
7087
|
-
return
|
|
7055
|
+
function GetCacheKey(programId) {
|
|
7056
|
+
return exports.Api.ECacheKey.ProgramKey + exports.Api.ECacheKey.Id + programId;
|
|
7088
7057
|
}
|
|
7089
|
-
|
|
7058
|
+
ProgramKey.GetCacheKey = GetCacheKey;
|
|
7090
7059
|
/**
|
|
7091
|
-
* Returns cache identifier for a list of
|
|
7060
|
+
* Returns cache identifier for a list of program keys.
|
|
7092
7061
|
* Example: {
|
|
7093
7062
|
* const api: BruceApi.Api = ...;
|
|
7094
7063
|
* const key = GetListCacheKey();
|
|
@@ -7097,9 +7066,12 @@
|
|
|
7097
7066
|
* @returns
|
|
7098
7067
|
*/
|
|
7099
7068
|
function GetListCacheKey() {
|
|
7100
|
-
return exports.Api.ECacheKey.
|
|
7069
|
+
return exports.Api.ECacheKey.ProgramKey;
|
|
7101
7070
|
}
|
|
7102
|
-
|
|
7071
|
+
ProgramKey.GetListCacheKey = GetListCacheKey;
|
|
7072
|
+
})(exports.ProgramKey || (exports.ProgramKey = {}));
|
|
7073
|
+
|
|
7074
|
+
(function (Tileset) {
|
|
7103
7075
|
/**
|
|
7104
7076
|
* Available tileset types.
|
|
7105
7077
|
*/
|
|
@@ -7683,11 +7655,39 @@
|
|
|
7683
7655
|
EExternalMapType["CustomTemplate"] = "Static";
|
|
7684
7656
|
})(EExternalMapType = Settings.EExternalMapType || (Settings.EExternalMapType = {}));
|
|
7685
7657
|
})(Settings = Tileset.Settings || (Tileset.Settings = {}));
|
|
7686
|
-
})(exports.Tileset || (exports.Tileset = {}));
|
|
7687
|
-
|
|
7688
|
-
(function (MenuItem) {
|
|
7689
7658
|
/**
|
|
7690
|
-
*
|
|
7659
|
+
* Returns cache identifier for a tileset.
|
|
7660
|
+
* Example: {
|
|
7661
|
+
* const api: BruceApi.Api = ...;
|
|
7662
|
+
* const key = GetCacheKey("abc", false);
|
|
7663
|
+
* api.Cache.Remove(key);
|
|
7664
|
+
* }
|
|
7665
|
+
* @param tilesetId
|
|
7666
|
+
* @param loadFiles
|
|
7667
|
+
* @returns
|
|
7668
|
+
*/
|
|
7669
|
+
function GetCacheKey(tilesetId, loadFiles) {
|
|
7670
|
+
return `${exports.Api.ECacheKey.Tileset}${exports.Api.ECacheKey.Id}${tilesetId}${exports.Api.ECacheKey.Id}${loadFiles}`;
|
|
7671
|
+
}
|
|
7672
|
+
Tileset.GetCacheKey = GetCacheKey;
|
|
7673
|
+
/**
|
|
7674
|
+
* Returns cache identifier for a list of tilesets.
|
|
7675
|
+
* Example: {
|
|
7676
|
+
* const api: BruceApi.Api = ...;
|
|
7677
|
+
* const key = GetListCacheKey();
|
|
7678
|
+
* api.Cache.Remove(key);
|
|
7679
|
+
* }
|
|
7680
|
+
* @returns
|
|
7681
|
+
*/
|
|
7682
|
+
function GetListCacheKey() {
|
|
7683
|
+
return exports.Api.ECacheKey.Tileset;
|
|
7684
|
+
}
|
|
7685
|
+
Tileset.GetListCacheKey = GetListCacheKey;
|
|
7686
|
+
})(exports.Tileset || (exports.Tileset = {}));
|
|
7687
|
+
|
|
7688
|
+
(function (MenuItem) {
|
|
7689
|
+
/**
|
|
7690
|
+
* Possible types of menu items.
|
|
7691
7691
|
*/
|
|
7692
7692
|
let EType;
|
|
7693
7693
|
(function (EType) {
|
|
@@ -7841,35 +7841,6 @@
|
|
|
7841
7841
|
})(exports.MenuItem || (exports.MenuItem = {}));
|
|
7842
7842
|
|
|
7843
7843
|
(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
7844
|
// This is the expected default version for the DataVersion value.
|
|
7874
7845
|
// This value should NOT be changed without looking at our API and seeing what the default value is.
|
|
7875
7846
|
ProjectViewBookmark.DEFAULT_DATA_VERSION = 2;
|
|
@@ -8028,6 +7999,35 @@
|
|
|
8028
7999
|
});
|
|
8029
8000
|
}
|
|
8030
8001
|
ProjectViewBookmark.SetOrder = SetOrder;
|
|
8002
|
+
/**
|
|
8003
|
+
* Returns cache identifier for a bookmark.
|
|
8004
|
+
* Example: {
|
|
8005
|
+
* const api: BruceApi.Api = ...;
|
|
8006
|
+
* const key = GetCacheKey("abc", "def");
|
|
8007
|
+
* api.Cache.Remove(key);
|
|
8008
|
+
* }
|
|
8009
|
+
* @param viewId
|
|
8010
|
+
* @param bookmarkId
|
|
8011
|
+
* @returns
|
|
8012
|
+
*/
|
|
8013
|
+
function GetCacheKey(viewId, bookmarkId) {
|
|
8014
|
+
return `${exports.Api.ECacheKey.ProjectViewBookmark}${exports.Api.ECacheKey.Id}${viewId}${exports.Api.ECacheKey.Id}${bookmarkId}`;
|
|
8015
|
+
}
|
|
8016
|
+
ProjectViewBookmark.GetCacheKey = GetCacheKey;
|
|
8017
|
+
/**
|
|
8018
|
+
* Returns cache identifier for a list of bookmarks.
|
|
8019
|
+
* Example: {
|
|
8020
|
+
* const api: BruceApi.Api = ...;
|
|
8021
|
+
* const key = GetListCacheKey("abc");
|
|
8022
|
+
* api.Cache.Remove(key);
|
|
8023
|
+
* }
|
|
8024
|
+
* @param viewId
|
|
8025
|
+
* @returns
|
|
8026
|
+
*/
|
|
8027
|
+
function GetListCacheKey(viewId) {
|
|
8028
|
+
return `${exports.Api.ECacheKey.ProjectViewBookmark}${exports.Api.ECacheKey.Id}${viewId}`;
|
|
8029
|
+
}
|
|
8030
|
+
ProjectViewBookmark.GetListCacheKey = GetListCacheKey;
|
|
8031
8031
|
})(exports.ProjectViewBookmark || (exports.ProjectViewBookmark = {}));
|
|
8032
8032
|
|
|
8033
8033
|
(function (ProjectView) {
|
|
@@ -8513,33 +8513,6 @@
|
|
|
8513
8513
|
})(exports.PendingAction || (exports.PendingAction = {}));
|
|
8514
8514
|
|
|
8515
8515
|
(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
8516
|
/**
|
|
8544
8517
|
* Types of styles available.
|
|
8545
8518
|
* The type will dictate what settings are available.
|
|
@@ -8680,6 +8653,33 @@
|
|
|
8680
8653
|
});
|
|
8681
8654
|
}
|
|
8682
8655
|
Style.Delete = Delete;
|
|
8656
|
+
/**
|
|
8657
|
+
* Returns cache identifier for a style.
|
|
8658
|
+
* Example: {
|
|
8659
|
+
* const api: BruceApi.Api = ...;
|
|
8660
|
+
* const key = GetCacheKey(1);
|
|
8661
|
+
* api.Cache.Remove(key);
|
|
8662
|
+
* }
|
|
8663
|
+
* @param id
|
|
8664
|
+
* @returns
|
|
8665
|
+
*/
|
|
8666
|
+
function GetCacheKey(id) {
|
|
8667
|
+
return exports.Api.ECacheKey.Style + exports.Api.ECacheKey.Id + id;
|
|
8668
|
+
}
|
|
8669
|
+
Style.GetCacheKey = GetCacheKey;
|
|
8670
|
+
/**
|
|
8671
|
+
* Returns cache identifier for a list of styles.
|
|
8672
|
+
* Example: {
|
|
8673
|
+
* const api: BruceApi.Api = ...;
|
|
8674
|
+
* const key = GetListCacheKey();
|
|
8675
|
+
* api.Cache.Remove(key);
|
|
8676
|
+
* }
|
|
8677
|
+
* @returns
|
|
8678
|
+
*/
|
|
8679
|
+
function GetListCacheKey() {
|
|
8680
|
+
return exports.Api.ECacheKey.Style;
|
|
8681
|
+
}
|
|
8682
|
+
Style.GetListCacheKey = GetListCacheKey;
|
|
8683
8683
|
})(exports.Style || (exports.Style = {}));
|
|
8684
8684
|
|
|
8685
8685
|
/**
|
|
@@ -8723,19 +8723,6 @@
|
|
|
8723
8723
|
})(exports.Permission || (exports.Permission = {}));
|
|
8724
8724
|
|
|
8725
8725
|
(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
8726
|
/**
|
|
8740
8727
|
* Gets a session record.
|
|
8741
8728
|
* @param params
|
|
@@ -8912,6 +8899,19 @@
|
|
|
8912
8899
|
});
|
|
8913
8900
|
}
|
|
8914
8901
|
Session.IsSuperAdmin = IsSuperAdmin;
|
|
8902
|
+
/**
|
|
8903
|
+
* Returns cache identifier for a session.
|
|
8904
|
+
* Example: {
|
|
8905
|
+
* const api: BruceApi.Api = ...;
|
|
8906
|
+
* const key = GetCacheKey("abc");
|
|
8907
|
+
* api.Cache.Remove(key);
|
|
8908
|
+
* }
|
|
8909
|
+
* @param sessionId
|
|
8910
|
+
* @returns
|
|
8911
|
+
*/
|
|
8912
|
+
function GetCacheKey(sessionId) {
|
|
8913
|
+
return `${exports.Api.ECacheKey.Session}${exports.Api.ECacheKey.Id}${sessionId}`;
|
|
8914
|
+
}
|
|
8915
8915
|
})(exports.Session || (exports.Session = {}));
|
|
8916
8916
|
|
|
8917
8917
|
(function (UserGroup) {
|
|
@@ -9041,57 +9041,6 @@
|
|
|
9041
9041
|
})(exports.UserGroup || (exports.UserGroup = {}));
|
|
9042
9042
|
|
|
9043
9043
|
(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
9044
|
/**
|
|
9096
9045
|
* Available user types.
|
|
9097
9046
|
*/
|
|
@@ -9635,6 +9584,57 @@
|
|
|
9635
9584
|
}
|
|
9636
9585
|
AccessToken.Create = Create;
|
|
9637
9586
|
})(AccessToken = User.AccessToken || (User.AccessToken = {}));
|
|
9587
|
+
/**
|
|
9588
|
+
* Returns cache identifier for a user.
|
|
9589
|
+
* Example: {
|
|
9590
|
+
* const api: BruceApi.Api = ...;
|
|
9591
|
+
* const key = GetCacheKey("abc", "def");
|
|
9592
|
+
* api.Cache.Remove(key);
|
|
9593
|
+
* }
|
|
9594
|
+
* @param userId
|
|
9595
|
+
* @param accountId
|
|
9596
|
+
* @returns
|
|
9597
|
+
*/
|
|
9598
|
+
function GetCacheKey(userId, accountId) {
|
|
9599
|
+
if (!accountId) {
|
|
9600
|
+
accountId = "";
|
|
9601
|
+
}
|
|
9602
|
+
return exports.Api.ECacheKey.User + exports.Api.ECacheKey.Id + userId + exports.Api.ECacheKey.Id + accountId;
|
|
9603
|
+
}
|
|
9604
|
+
User.GetCacheKey = GetCacheKey;
|
|
9605
|
+
/**
|
|
9606
|
+
* Returns cache identifier for a user.
|
|
9607
|
+
* Example: {
|
|
9608
|
+
* const api: BruceApi.Api = ...;
|
|
9609
|
+
* const key = GetCacheKey("abc", "def");
|
|
9610
|
+
* api.Cache.Remove(key);
|
|
9611
|
+
* }
|
|
9612
|
+
* @param email
|
|
9613
|
+
* @param accountId
|
|
9614
|
+
* @returns
|
|
9615
|
+
*/
|
|
9616
|
+
function GetEmailCacheKey(email, accountId) {
|
|
9617
|
+
if (!accountId) {
|
|
9618
|
+
accountId = "";
|
|
9619
|
+
}
|
|
9620
|
+
return exports.Api.ECacheKey.User + exports.Api.ECacheKey.UserEmail + email + exports.Api.ECacheKey.Id + accountId;
|
|
9621
|
+
}
|
|
9622
|
+
User.GetEmailCacheKey = GetEmailCacheKey;
|
|
9623
|
+
/**
|
|
9624
|
+
* Returns cache identifier for a user's settings.
|
|
9625
|
+
* Example: {
|
|
9626
|
+
* const api: BruceApi.Api = ...;
|
|
9627
|
+
* const key = GetCacheKey("abc", "def");
|
|
9628
|
+
* api.Cache.Remove(key);
|
|
9629
|
+
* }
|
|
9630
|
+
* @param userId
|
|
9631
|
+
* @param appId
|
|
9632
|
+
* @returns
|
|
9633
|
+
*/
|
|
9634
|
+
function GetSettingsCacheKey(userId, appId) {
|
|
9635
|
+
return exports.Api.ECacheKey.User + exports.Api.ECacheKey.UserSettings + userId + exports.Api.ECacheKey.Id + appId;
|
|
9636
|
+
}
|
|
9637
|
+
User.GetSettingsCacheKey = GetSettingsCacheKey;
|
|
9638
9638
|
})(exports.User || (exports.User = {}));
|
|
9639
9639
|
|
|
9640
9640
|
(function (AccountInvite) {
|
|
@@ -9756,6 +9756,93 @@
|
|
|
9756
9756
|
AccountInvite.Create = Create;
|
|
9757
9757
|
})(exports.AccountInvite || (exports.AccountInvite = {}));
|
|
9758
9758
|
|
|
9759
|
+
(function (AccountFeatures) {
|
|
9760
|
+
let EFeature;
|
|
9761
|
+
(function (EFeature) {
|
|
9762
|
+
// Flag to enable data to be stored in the JSON column type.
|
|
9763
|
+
// This will enable conversion of the data, and will also enable searches to use that instead.
|
|
9764
|
+
EFeature["EntityJsonData"] = "Feature_Entity_JSONData";
|
|
9765
|
+
// Flag to enable a text search against JSON data values.
|
|
9766
|
+
// 'EntityJsonData' must also be enabled.
|
|
9767
|
+
EFeature["EntityLexicalSearch"] = "Feature_Entity_Lexical_Search";
|
|
9768
|
+
})(EFeature = AccountFeatures.EFeature || (AccountFeatures.EFeature = {}));
|
|
9769
|
+
/**
|
|
9770
|
+
* Gets account features corresponding to an account ID.
|
|
9771
|
+
* @param params
|
|
9772
|
+
* @returns
|
|
9773
|
+
*/
|
|
9774
|
+
function Get(params) {
|
|
9775
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9776
|
+
let { api, accountId: id, req: reqParams } = params;
|
|
9777
|
+
if (!api) {
|
|
9778
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
9779
|
+
}
|
|
9780
|
+
const cache = yield api.GetCacheItem(GetCacheKey(id), reqParams);
|
|
9781
|
+
if (cache === null || cache === void 0 ? void 0 : cache.found) {
|
|
9782
|
+
return cache.data;
|
|
9783
|
+
}
|
|
9784
|
+
const prom = new Promise((res, rej) => __awaiter(this, void 0, void 0, function* () {
|
|
9785
|
+
try {
|
|
9786
|
+
const data = yield api.GET("features", reqParams);
|
|
9787
|
+
const features = data === null || data === void 0 ? void 0 : data.Features;
|
|
9788
|
+
res({
|
|
9789
|
+
features: features ? features : {}
|
|
9790
|
+
});
|
|
9791
|
+
}
|
|
9792
|
+
catch (e) {
|
|
9793
|
+
rej(e);
|
|
9794
|
+
}
|
|
9795
|
+
}));
|
|
9796
|
+
api.SetCacheItem({
|
|
9797
|
+
key: GetCacheKey(id),
|
|
9798
|
+
value: prom,
|
|
9799
|
+
req: reqParams
|
|
9800
|
+
});
|
|
9801
|
+
return prom;
|
|
9802
|
+
});
|
|
9803
|
+
}
|
|
9804
|
+
AccountFeatures.Get = Get;
|
|
9805
|
+
function Update(params) {
|
|
9806
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9807
|
+
let { api, accountId: id, features, req: reqParams } = params;
|
|
9808
|
+
if (!api) {
|
|
9809
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
9810
|
+
}
|
|
9811
|
+
const prom = new Promise((res, rej) => __awaiter(this, void 0, void 0, function* () {
|
|
9812
|
+
try {
|
|
9813
|
+
const data = yield api.POST("features", {
|
|
9814
|
+
Features: features
|
|
9815
|
+
}, reqParams);
|
|
9816
|
+
const updated = data === null || data === void 0 ? void 0 : data.Features;
|
|
9817
|
+
res({
|
|
9818
|
+
features: updated ? updated : {}
|
|
9819
|
+
});
|
|
9820
|
+
}
|
|
9821
|
+
catch (e) {
|
|
9822
|
+
rej(e);
|
|
9823
|
+
}
|
|
9824
|
+
}));
|
|
9825
|
+
api.Cache.Remove(GetCacheKey(id));
|
|
9826
|
+
return prom;
|
|
9827
|
+
});
|
|
9828
|
+
}
|
|
9829
|
+
AccountFeatures.Update = Update;
|
|
9830
|
+
/**
|
|
9831
|
+
* Returns cache identifier for an account by ID.
|
|
9832
|
+
* Example: {
|
|
9833
|
+
* const api: BruceApi.Api = ...;
|
|
9834
|
+
* const key = GetCacheKey("my-account-id");
|
|
9835
|
+
* api.Cache.Remove(key);
|
|
9836
|
+
* }
|
|
9837
|
+
* @param accountId
|
|
9838
|
+
* @returns
|
|
9839
|
+
*/
|
|
9840
|
+
function GetCacheKey(accountId) {
|
|
9841
|
+
return exports.Api.ECacheKey.AccountFeatures + exports.Api.ECacheKey.Id + accountId;
|
|
9842
|
+
}
|
|
9843
|
+
AccountFeatures.GetCacheKey = GetCacheKey;
|
|
9844
|
+
})(exports.AccountFeatures || (exports.AccountFeatures = {}));
|
|
9845
|
+
|
|
9759
9846
|
(function (EncryptUtils) {
|
|
9760
9847
|
// https://stackoverflow.com/questions/7616461/generate-a-hash-from-string-in-javascript
|
|
9761
9848
|
function Cyrb53Hash(str, seed = 0) {
|
|
@@ -10492,6 +10579,8 @@
|
|
|
10492
10579
|
req: req
|
|
10493
10580
|
});
|
|
10494
10581
|
}
|
|
10582
|
+
// We changed the expected plugin code without changing the API response so we need to read and reformat the file content.
|
|
10583
|
+
// TODO: Create a v3 request that gives us the plugin code in a more usable format.
|
|
10495
10584
|
let fileContent = yield fileContentProm;
|
|
10496
10585
|
const start = fileContent.indexOf("{");
|
|
10497
10586
|
const end = fileContent.lastIndexOf("}");
|
|
@@ -10541,6 +10630,7 @@
|
|
|
10541
10630
|
}
|
|
10542
10631
|
return {
|
|
10543
10632
|
run: () => {
|
|
10633
|
+
// 'eval2 = eval' stops the linter from complaining about using eval.
|
|
10544
10634
|
const eval2 = eval;
|
|
10545
10635
|
eval2(script);
|
|
10546
10636
|
// Ensure a function is returned, even if the plugin is not configured properly to return one.
|
|
@@ -10744,7 +10834,7 @@
|
|
|
10744
10834
|
})(exports.DataSource || (exports.DataSource = {}));
|
|
10745
10835
|
|
|
10746
10836
|
// This is updated with the package.json version on build.
|
|
10747
|
-
const VERSION = "3.
|
|
10837
|
+
const VERSION = "3.7.1";
|
|
10748
10838
|
|
|
10749
10839
|
exports.VERSION = VERSION;
|
|
10750
10840
|
exports.AbstractApi = AbstractApi;
|