bruce-models 3.7.0 → 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.
Files changed (61) hide show
  1. package/dist/bruce-models.es5.js +442 -439
  2. package/dist/bruce-models.es5.js.map +1 -1
  3. package/dist/bruce-models.umd.js +396 -393
  4. package/dist/bruce-models.umd.js.map +1 -1
  5. package/dist/lib/bruce-models.js +1 -1
  6. package/dist/lib/entity/entity-comment.js +28 -28
  7. package/dist/lib/entity/entity-comment.js.map +1 -1
  8. package/dist/lib/entity/entity-coords.js +14 -14
  9. package/dist/lib/entity/entity-coords.js.map +1 -1
  10. package/dist/lib/entity/entity-link.js +28 -28
  11. package/dist/lib/entity/entity-link.js.map +1 -1
  12. package/dist/lib/entity/entity-lod-category.js +27 -27
  13. package/dist/lib/entity/entity-lod-category.js.map +1 -1
  14. package/dist/lib/entity/entity-lod.js +43 -43
  15. package/dist/lib/entity/entity-lod.js.map +1 -1
  16. package/dist/lib/entity/entity-relation-type.js +27 -27
  17. package/dist/lib/entity/entity-relation-type.js.map +1 -1
  18. package/dist/lib/entity/entity-relation.js +46 -46
  19. package/dist/lib/entity/entity-relation.js.map +1 -1
  20. package/dist/lib/entity/entity-source.js +15 -15
  21. package/dist/lib/entity/entity-source.js.map +1 -1
  22. package/dist/lib/entity/entity-tag.js +31 -31
  23. package/dist/lib/entity/entity-tag.js.map +1 -1
  24. package/dist/lib/entity/entity-type.js +27 -27
  25. package/dist/lib/entity/entity-type.js.map +1 -1
  26. package/dist/lib/entity/entity.js +32 -32
  27. package/dist/lib/entity/entity.js.map +1 -1
  28. package/dist/lib/plugin/plugin.js +4 -0
  29. package/dist/lib/plugin/plugin.js.map +1 -1
  30. package/dist/lib/program-key/program-key.js +27 -27
  31. package/dist/lib/program-key/program-key.js.map +1 -1
  32. package/dist/lib/project/menu-item.js.map +1 -1
  33. package/dist/lib/project/project-view-bookmark.js +29 -29
  34. package/dist/lib/project/project-view-bookmark.js.map +1 -1
  35. package/dist/lib/style/style.js +27 -27
  36. package/dist/lib/style/style.js.map +1 -1
  37. package/dist/lib/tileset/tileset.js +28 -28
  38. package/dist/lib/tileset/tileset.js.map +1 -1
  39. package/dist/lib/user/session.js +13 -13
  40. package/dist/lib/user/session.js.map +1 -1
  41. package/dist/lib/user/user.js +51 -51
  42. package/dist/lib/user/user.js.map +1 -1
  43. package/dist/types/bruce-models.d.ts +1 -1
  44. package/dist/types/entity/entity-comment.d.ts +22 -22
  45. package/dist/types/entity/entity-coords.d.ts +11 -11
  46. package/dist/types/entity/entity-link.d.ts +22 -22
  47. package/dist/types/entity/entity-lod-category.d.ts +21 -21
  48. package/dist/types/entity/entity-lod.d.ts +34 -34
  49. package/dist/types/entity/entity-relation-type.d.ts +21 -21
  50. package/dist/types/entity/entity-relation.d.ts +33 -33
  51. package/dist/types/entity/entity-source.d.ts +12 -12
  52. package/dist/types/entity/entity-tag.d.ts +22 -22
  53. package/dist/types/entity/entity-type.d.ts +21 -21
  54. package/dist/types/entity/entity.d.ts +27 -27
  55. package/dist/types/program-key/program-key.d.ts +21 -21
  56. package/dist/types/project/menu-item.d.ts +1 -0
  57. package/dist/types/project/project-view-bookmark.d.ts +23 -23
  58. package/dist/types/style/style.d.ts +21 -21
  59. package/dist/types/tileset/tileset.d.ts +22 -22
  60. package/dist/types/user/user.d.ts +36 -36
  61. package/package.json +1 -1
@@ -2692,33 +2692,6 @@ var ObjectUtils;
2692
2692
  */
2693
2693
  var EntityType;
2694
2694
  (function (EntityType) {
2695
- /**
2696
- * Returns cache identifier for an entity type.
2697
- * Example: {
2698
- * const api: BruceApi.Api = ...;
2699
- * const key = GetCacheKey("abc");
2700
- * api.Cache.Remove(key);
2701
- * }
2702
- * @param typeId
2703
- * @returns
2704
- */
2705
- function GetCacheKey(typeId) {
2706
- return `${Api.ECacheKey.EntityType}${Api.ECacheKey.Id}${typeId}`;
2707
- }
2708
- EntityType.GetCacheKey = GetCacheKey;
2709
- /**
2710
- * Returns cache identifier for a list of entity types.
2711
- * Example: {
2712
- * const api: BruceApi.Api = ...;
2713
- * const key = GetListCacheKey();
2714
- * api.Cache.Remove(key);
2715
- * }
2716
- * @returns
2717
- */
2718
- function GetListCacheKey() {
2719
- return Api.ECacheKey.EntityType;
2720
- }
2721
- EntityType.GetListCacheKey = GetListCacheKey;
2722
2695
  /**
2723
2696
  * Gets an entity type record.
2724
2697
  * @param params
@@ -2848,6 +2821,33 @@ var EntityType;
2848
2821
  });
2849
2822
  }
2850
2823
  EntityType.Update = Update;
2824
+ /**
2825
+ * Returns cache identifier for an entity type.
2826
+ * Example: {
2827
+ * const api: BruceApi.Api = ...;
2828
+ * const key = GetCacheKey("abc");
2829
+ * api.Cache.Remove(key);
2830
+ * }
2831
+ * @param typeId
2832
+ * @returns
2833
+ */
2834
+ function GetCacheKey(typeId) {
2835
+ return `${Api.ECacheKey.EntityType}${Api.ECacheKey.Id}${typeId}`;
2836
+ }
2837
+ EntityType.GetCacheKey = GetCacheKey;
2838
+ /**
2839
+ * Returns cache identifier for a list of entity types.
2840
+ * Example: {
2841
+ * const api: BruceApi.Api = ...;
2842
+ * const key = GetListCacheKey();
2843
+ * api.Cache.Remove(key);
2844
+ * }
2845
+ * @returns
2846
+ */
2847
+ function GetListCacheKey() {
2848
+ return Api.ECacheKey.EntityType;
2849
+ }
2850
+ EntityType.GetListCacheKey = GetListCacheKey;
2851
2851
  })(EntityType || (EntityType = {}));
2852
2852
 
2853
2853
  /**
@@ -2953,38 +2953,6 @@ var ZoomControl;
2953
2953
  */
2954
2954
  var Entity;
2955
2955
  (function (Entity) {
2956
- /**
2957
- * Returns cache identifier for an entity record.
2958
- * Example: {
2959
- * const api: BruceApi.Api = ...;
2960
- * const key = GetCacheKey({...});
2961
- * api.Cache.Remove(key);
2962
- * }
2963
- * @param params
2964
- * @returns
2965
- */
2966
- function GetCacheKey(params) {
2967
- let { entityId, entityTypeId, expandLocation, expandRelations } = params;
2968
- if (!entityTypeId) {
2969
- entityTypeId = "";
2970
- }
2971
- return `${Api.ECacheKey.Entity}${Api.ECacheKey.Id}${entityId}${String(entityTypeId)}${String(Boolean(expandLocation))}${String(Boolean(expandRelations))}`;
2972
- }
2973
- Entity.GetCacheKey = GetCacheKey;
2974
- /**
2975
- * Returns cache identifier for an entity record.
2976
- * Example: {
2977
- * const api: BruceApi.Api = ...;
2978
- * const key = GetCacheKey("abc");
2979
- * api.Cache.Remove(key);
2980
- * }
2981
- * @param entityId
2982
- * @returns
2983
- */
2984
- function GetContainsKey(entityId) {
2985
- return `${Api.ECacheKey.Entity}${Api.ECacheKey.Id}${entityId}`;
2986
- }
2987
- Entity.GetContainsKey = GetContainsKey;
2988
2956
  /**
2989
2957
  * Returns an entity record for the given entity id.
2990
2958
  * @param params
@@ -3599,6 +3567,38 @@ var Entity;
3599
3567
  };
3600
3568
  }
3601
3569
  Entity.ToGeoJson = ToGeoJson;
3570
+ /**
3571
+ * Returns cache identifier for an entity record.
3572
+ * Example: {
3573
+ * const api: BruceApi.Api = ...;
3574
+ * const key = GetCacheKey({...});
3575
+ * api.Cache.Remove(key);
3576
+ * }
3577
+ * @param params
3578
+ * @returns
3579
+ */
3580
+ function GetCacheKey(params) {
3581
+ let { entityId, entityTypeId, expandLocation, expandRelations } = params;
3582
+ if (!entityTypeId) {
3583
+ entityTypeId = "";
3584
+ }
3585
+ return `${Api.ECacheKey.Entity}${Api.ECacheKey.Id}${entityId}${String(entityTypeId)}${String(Boolean(expandLocation))}${String(Boolean(expandRelations))}`;
3586
+ }
3587
+ Entity.GetCacheKey = GetCacheKey;
3588
+ /**
3589
+ * Returns cache identifier for an entity record.
3590
+ * Example: {
3591
+ * const api: BruceApi.Api = ...;
3592
+ * const key = GetCacheKey("abc");
3593
+ * api.Cache.Remove(key);
3594
+ * }
3595
+ * @param entityId
3596
+ * @returns
3597
+ */
3598
+ function GetContainsKey(entityId) {
3599
+ return `${Api.ECacheKey.Entity}${Api.ECacheKey.Id}${entityId}`;
3600
+ }
3601
+ Entity.GetContainsKey = GetContainsKey;
3602
3602
  })(Entity || (Entity = {}));
3603
3603
 
3604
3604
  /**
@@ -4865,34 +4865,6 @@ var EntityAttachment;
4865
4865
  */
4866
4866
  var EntityComment;
4867
4867
  (function (EntityComment) {
4868
- /**
4869
- * Returns cache identifier for a comment by ID.
4870
- * Example: {
4871
- * const api: BruceApi.Api = ...;
4872
- * const key = GetCacheKey("123");
4873
- * api.Cache.Remove(key);
4874
- * }
4875
- * @param id
4876
- * @returns
4877
- */
4878
- function GetCacheKey(id) {
4879
- return Api.ECacheKey.Comment + Api.ECacheKey.Id + id;
4880
- }
4881
- EntityComment.GetCacheKey = GetCacheKey;
4882
- /**
4883
- * Returns cache identifier for a list of comments for an entity.
4884
- * Example: {
4885
- * const api: BruceApi.Api = ...;
4886
- * const key = GetListCacheKey("abc");
4887
- * api.Cache.Remove(key);
4888
- * }
4889
- * @param entityId
4890
- * @returns
4891
- */
4892
- function GetListCacheKey(entityId) {
4893
- return Api.ECacheKey.Comment + Api.ECacheKey.Entity + Api.ECacheKey.Id + entityId;
4894
- }
4895
- EntityComment.GetListCacheKey = GetListCacheKey;
4896
4868
  /**
4897
4869
  * Creates or updates a comment.
4898
4870
  * @param params
@@ -4974,30 +4946,22 @@ var EntityComment;
4974
4946
  });
4975
4947
  }
4976
4948
  EntityComment.GetListByEntityId = GetListByEntityId;
4977
- })(EntityComment || (EntityComment = {}));
4978
-
4979
- /**
4980
- * Describes the "Entity Link" concept within Nextspace.
4981
- * An entity link is an external URL linked to an entity record.
4982
- */
4983
- var EntityLink;
4984
- (function (EntityLink) {
4985
4949
  /**
4986
- * Returns cache identifier for a link record.
4950
+ * Returns cache identifier for a comment by ID.
4987
4951
  * Example: {
4988
4952
  * const api: BruceApi.Api = ...;
4989
- * const key = GetCacheKey(1);
4953
+ * const key = GetCacheKey("123");
4990
4954
  * api.Cache.Remove(key);
4991
4955
  * }
4992
4956
  * @param id
4993
4957
  * @returns
4994
4958
  */
4995
4959
  function GetCacheKey(id) {
4996
- return Api.ECacheKey.Link + Api.ECacheKey.Id + id;
4960
+ return Api.ECacheKey.Comment + Api.ECacheKey.Id + id;
4997
4961
  }
4998
- EntityLink.GetCacheKey = GetCacheKey;
4962
+ EntityComment.GetCacheKey = GetCacheKey;
4999
4963
  /**
5000
- * Returns cache identifier for a list of links for an entity.
4964
+ * Returns cache identifier for a list of comments for an entity.
5001
4965
  * Example: {
5002
4966
  * const api: BruceApi.Api = ...;
5003
4967
  * const key = GetListCacheKey("abc");
@@ -5007,9 +4971,17 @@ var EntityLink;
5007
4971
  * @returns
5008
4972
  */
5009
4973
  function GetListCacheKey(entityId) {
5010
- return Api.ECacheKey.Link + Api.ECacheKey.Entity + Api.ECacheKey.Id + entityId;
4974
+ return Api.ECacheKey.Comment + Api.ECacheKey.Entity + Api.ECacheKey.Id + entityId;
5011
4975
  }
5012
- EntityLink.GetListCacheKey = GetListCacheKey;
4976
+ EntityComment.GetListCacheKey = GetListCacheKey;
4977
+ })(EntityComment || (EntityComment = {}));
4978
+
4979
+ /**
4980
+ * Describes the "Entity Link" concept within Nextspace.
4981
+ * An entity link is an external URL linked to an entity record.
4982
+ */
4983
+ var EntityLink;
4984
+ (function (EntityLink) {
5013
4985
  /**
5014
4986
  * Creates or updates a link record.
5015
4987
  * @param params
@@ -5091,47 +5063,22 @@ var EntityLink;
5091
5063
  });
5092
5064
  }
5093
5065
  EntityLink.GetListByEntityId = GetListByEntityId;
5094
- })(EntityLink || (EntityLink = {}));
5095
-
5096
- /**
5097
- * Describes the "Entity LOD" concept within Nextspace.
5098
- * LOD stands for Level of Detail.
5099
- * An lod record is a possible 2d/3d visualization of the entity record.
5100
- * The most common kind is a GLB.
5101
- */
5102
- var EntityLod;
5103
- (function (EntityLod) {
5104
- /**
5105
- * Returns cache identifier for an entity lod record.
5106
- * Example: {
5107
- * const api: BruceApi.Api = ...;
5108
- * const key = GetCacheKey("abc");
5109
- * api.Cache.Remove(key);
5110
- * }
5111
- * @param url
5112
- * @returns
5113
- */
5114
- function GetCacheKey(url) {
5115
- return Api.ECacheKey.Lod + Api.ECacheKey.Id + url;
5116
- }
5117
- EntityLod.GetCacheKey = GetCacheKey;
5118
5066
  /**
5119
- * Returns cache identifier for a list of entity lods.
5067
+ * Returns cache identifier for a link record.
5120
5068
  * Example: {
5121
5069
  * const api: BruceApi.Api = ...;
5122
- * const key = GetListCacheKey("abc", "def");
5070
+ * const key = GetCacheKey(1);
5123
5071
  * api.Cache.Remove(key);
5124
5072
  * }
5125
- * @param typeId
5126
- * @param group
5073
+ * @param id
5127
5074
  * @returns
5128
5075
  */
5129
- function GetTypeListKey(typeId, group) {
5130
- return Api.ECacheKey.Lod + Api.ECacheKey.EntityType + typeId + Api.ECacheKey.Id + group;
5076
+ function GetCacheKey(id) {
5077
+ return Api.ECacheKey.Link + Api.ECacheKey.Id + id;
5131
5078
  }
5132
- EntityLod.GetTypeListKey = GetTypeListKey;
5079
+ EntityLink.GetCacheKey = GetCacheKey;
5133
5080
  /**
5134
- * Returns cache identifier for a list of entity lods.
5081
+ * Returns cache identifier for a list of links for an entity.
5135
5082
  * Example: {
5136
5083
  * const api: BruceApi.Api = ...;
5137
5084
  * const key = GetListCacheKey("abc");
@@ -5140,10 +5087,20 @@ var EntityLod;
5140
5087
  * @param entityId
5141
5088
  * @returns
5142
5089
  */
5143
- function GetEntityListKey(entityId) {
5144
- return Api.ECacheKey.Lod + Api.ECacheKey.Entity + entityId;
5090
+ function GetListCacheKey(entityId) {
5091
+ return Api.ECacheKey.Link + Api.ECacheKey.Entity + Api.ECacheKey.Id + entityId;
5145
5092
  }
5146
- EntityLod.GetEntityListKey = GetEntityListKey;
5093
+ EntityLink.GetListCacheKey = GetListCacheKey;
5094
+ })(EntityLink || (EntityLink = {}));
5095
+
5096
+ /**
5097
+ * Describes the "Entity LOD" concept within Nextspace.
5098
+ * LOD stands for Level of Detail.
5099
+ * An lod record is a possible 2d/3d visualization of the entity record.
5100
+ * The most common kind is a GLB.
5101
+ */
5102
+ var EntityLod;
5103
+ (function (EntityLod) {
5147
5104
  /**
5148
5105
  * Returns a url for an entity lod record file.
5149
5106
  * @param params
@@ -5359,42 +5316,58 @@ var EntityLod;
5359
5316
  });
5360
5317
  }
5361
5318
  EntityLod.Delete = Delete;
5362
- })(EntityLod || (EntityLod = {}));
5363
-
5364
- /**
5365
- * Describes the "Entity LOD Category" concept within Nextspace.
5366
- * An LOD category is a level of categorization for LODs.
5367
- * This is typically used to group LODs by their extension.
5368
- */
5369
- var EntityLodCategory;
5370
- (function (EntityLodCategory) {
5371
5319
  /**
5372
- * Returns cache identifier for an entity lod category record.
5320
+ * Returns cache identifier for an entity lod record.
5373
5321
  * Example: {
5374
5322
  * const api: BruceApi.Api = ...;
5375
5323
  * const key = GetCacheKey("abc");
5376
5324
  * api.Cache.Remove(key);
5377
5325
  * }
5378
- * @param id
5326
+ * @param url
5379
5327
  * @returns
5380
5328
  */
5381
- function GetCacheKey(id) {
5382
- return Api.ECacheKey.LodCategory + Api.ECacheKey.Id + id;
5329
+ function GetCacheKey(url) {
5330
+ return Api.ECacheKey.Lod + Api.ECacheKey.Id + url;
5383
5331
  }
5384
- EntityLodCategory.GetCacheKey = GetCacheKey;
5332
+ EntityLod.GetCacheKey = GetCacheKey;
5385
5333
  /**
5386
- * Returns cache identifier for a list of entity lod categories.
5334
+ * Returns cache identifier for a list of entity lods.
5387
5335
  * Example: {
5388
5336
  * const api: BruceApi.Api = ...;
5389
- * const key = GetListCacheKey();
5337
+ * const key = GetListCacheKey("abc", "def");
5390
5338
  * api.Cache.Remove(key);
5391
5339
  * }
5340
+ * @param typeId
5341
+ * @param group
5392
5342
  * @returns
5393
5343
  */
5394
- function GetListCacheKey() {
5395
- return Api.ECacheKey.LodCategory;
5344
+ function GetTypeListKey(typeId, group) {
5345
+ return Api.ECacheKey.Lod + Api.ECacheKey.EntityType + typeId + Api.ECacheKey.Id + group;
5396
5346
  }
5397
- EntityLodCategory.GetListCacheKey = GetListCacheKey;
5347
+ EntityLod.GetTypeListKey = GetTypeListKey;
5348
+ /**
5349
+ * Returns cache identifier for a list of entity lods.
5350
+ * Example: {
5351
+ * const api: BruceApi.Api = ...;
5352
+ * const key = GetListCacheKey("abc");
5353
+ * api.Cache.Remove(key);
5354
+ * }
5355
+ * @param entityId
5356
+ * @returns
5357
+ */
5358
+ function GetEntityListKey(entityId) {
5359
+ return Api.ECacheKey.Lod + Api.ECacheKey.Entity + entityId;
5360
+ }
5361
+ EntityLod.GetEntityListKey = GetEntityListKey;
5362
+ })(EntityLod || (EntityLod = {}));
5363
+
5364
+ /**
5365
+ * Describes the "Entity LOD Category" concept within Nextspace.
5366
+ * An LOD category is a level of categorization for LODs.
5367
+ * This is typically used to group LODs by their extension.
5368
+ */
5369
+ var EntityLodCategory;
5370
+ (function (EntityLodCategory) {
5398
5371
  /**
5399
5372
  * Returns a list of entity lod categories.
5400
5373
  * @param params
@@ -5510,16 +5483,8 @@ var EntityLodCategory;
5510
5483
  });
5511
5484
  }
5512
5485
  EntityLodCategory.Update = Update;
5513
- })(EntityLodCategory || (EntityLodCategory = {}));
5514
-
5515
- /**
5516
- * Describes the "Entity Relationship Type" concept within Nextspace.
5517
- * A relationship type record describes the purpose of a relationship.
5518
- */
5519
- var EntityRelationType;
5520
- (function (EntityRelationType) {
5521
5486
  /**
5522
- * Returns cache identifier for an entity relation type record.
5487
+ * Returns cache identifier for an entity lod category record.
5523
5488
  * Example: {
5524
5489
  * const api: BruceApi.Api = ...;
5525
5490
  * const key = GetCacheKey("abc");
@@ -5529,11 +5494,11 @@ var EntityRelationType;
5529
5494
  * @returns
5530
5495
  */
5531
5496
  function GetCacheKey(id) {
5532
- return Api.ECacheKey.RelationType + Api.ECacheKey.Id + id;
5497
+ return Api.ECacheKey.LodCategory + Api.ECacheKey.Id + id;
5533
5498
  }
5534
- EntityRelationType.GetCacheKey = GetCacheKey;
5499
+ EntityLodCategory.GetCacheKey = GetCacheKey;
5535
5500
  /**
5536
- * Returns cache identifier for a list of entity relation types.
5501
+ * Returns cache identifier for a list of entity lod categories.
5537
5502
  * Example: {
5538
5503
  * const api: BruceApi.Api = ...;
5539
5504
  * const key = GetListCacheKey();
@@ -5542,9 +5507,17 @@ var EntityRelationType;
5542
5507
  * @returns
5543
5508
  */
5544
5509
  function GetListCacheKey() {
5545
- return Api.ECacheKey.RelationType;
5510
+ return Api.ECacheKey.LodCategory;
5546
5511
  }
5547
- EntityRelationType.GetListCacheKey = GetListCacheKey;
5512
+ EntityLodCategory.GetListCacheKey = GetListCacheKey;
5513
+ })(EntityLodCategory || (EntityLodCategory = {}));
5514
+
5515
+ /**
5516
+ * Describes the "Entity Relationship Type" concept within Nextspace.
5517
+ * A relationship type record describes the purpose of a relationship.
5518
+ */
5519
+ var EntityRelationType;
5520
+ (function (EntityRelationType) {
5548
5521
  /**
5549
5522
  * Gets a single entity relation type record.
5550
5523
  * @param params
@@ -5664,31 +5637,8 @@ var EntityRelationType;
5664
5637
  });
5665
5638
  }
5666
5639
  EntityRelationType.Update = Update;
5667
- })(EntityRelationType || (EntityRelationType = {}));
5668
-
5669
- /**
5670
- * Describes the "Entity Relationship" concept within Nextspace.
5671
- * An entity relationship is an arbitrary link between two entity records.
5672
- * The relationship can have a "data entity" linked to it as well for the relationship to store arbitrary data about itself.
5673
- */
5674
- var EntityRelation;
5675
- (function (EntityRelation) {
5676
5640
  /**
5677
- * Returns cache identifier for an entity relation record.
5678
- * Example: {
5679
- * const api: BruceApi.Api = ...;
5680
- * const key = GetCacheKey("abc", "def", "ghi");
5681
- * api.Cache.Remove(key);
5682
- * }
5683
- * @param id
5684
- * @returns
5685
- */
5686
- function GetCacheKey(entityA, entityB, typeId) {
5687
- return `${Api.ECacheKey.Relation}${Api.ECacheKey.Id}${entityA}${Api.ECacheKey.Id}${entityB}${Api.ECacheKey.Id}${typeId}`;
5688
- }
5689
- EntityRelation.GetCacheKey = GetCacheKey;
5690
- /**
5691
- * Returns cache identifier for a list of entity relations.
5641
+ * Returns cache identifier for an entity relation type record.
5692
5642
  * Example: {
5693
5643
  * const api: BruceApi.Api = ...;
5694
5644
  * const key = GetCacheKey("abc");
@@ -5697,28 +5647,32 @@ var EntityRelation;
5697
5647
  * @param id
5698
5648
  * @returns
5699
5649
  */
5700
- function GetEntityCacheKey(entityId) {
5701
- return Api.ECacheKey.Relation + Api.ECacheKey.Entity + Api.ECacheKey.Id + entityId;
5650
+ function GetCacheKey(id) {
5651
+ return Api.ECacheKey.RelationType + Api.ECacheKey.Id + id;
5702
5652
  }
5703
- EntityRelation.GetEntityCacheKey = GetEntityCacheKey;
5653
+ EntityRelationType.GetCacheKey = GetCacheKey;
5704
5654
  /**
5705
- * Returns cache identifier for a list of entity relations.
5655
+ * Returns cache identifier for a list of entity relation types.
5706
5656
  * Example: {
5707
5657
  * const api: BruceApi.Api = ...;
5708
- * const key = GetCacheKey("abc", {...});
5658
+ * const key = GetListCacheKey();
5709
5659
  * api.Cache.Remove(key);
5710
5660
  * }
5711
- * @param id
5712
5661
  * @returns
5713
5662
  */
5714
- function GetListCacheKey(entityId, params) {
5715
- return Api.ECacheKey.Relation + Api.ECacheKey.RelationType +
5716
- Api.ECacheKey.Id + params.relationTypeId +
5717
- Api.ECacheKey.Id + params.oneWayOnly +
5718
- Api.ECacheKey.Id + params.loadEntityData +
5719
- Api.ECacheKey.Entity + Api.ECacheKey.Id + entityId;
5663
+ function GetListCacheKey() {
5664
+ return Api.ECacheKey.RelationType;
5720
5665
  }
5721
- EntityRelation.GetListCacheKey = GetListCacheKey;
5666
+ EntityRelationType.GetListCacheKey = GetListCacheKey;
5667
+ })(EntityRelationType || (EntityRelationType = {}));
5668
+
5669
+ /**
5670
+ * Describes the "Entity Relationship" concept within Nextspace.
5671
+ * An entity relationship is an arbitrary link between two entity records.
5672
+ * The relationship can have a "data entity" linked to it as well for the relationship to store arbitrary data about itself.
5673
+ */
5674
+ var EntityRelation;
5675
+ (function (EntityRelation) {
5722
5676
  /**
5723
5677
  * Creates a new entity relation.
5724
5678
  * @param params
@@ -5877,6 +5831,52 @@ var EntityRelation;
5877
5831
  });
5878
5832
  }
5879
5833
  EntityRelation.GetByDataEntityId = GetByDataEntityId;
5834
+ /**
5835
+ * Returns cache identifier for an entity relation record.
5836
+ * Example: {
5837
+ * const api: BruceApi.Api = ...;
5838
+ * const key = GetCacheKey("abc", "def", "ghi");
5839
+ * api.Cache.Remove(key);
5840
+ * }
5841
+ * @param id
5842
+ * @returns
5843
+ */
5844
+ function GetCacheKey(entityA, entityB, typeId) {
5845
+ return `${Api.ECacheKey.Relation}${Api.ECacheKey.Id}${entityA}${Api.ECacheKey.Id}${entityB}${Api.ECacheKey.Id}${typeId}`;
5846
+ }
5847
+ EntityRelation.GetCacheKey = GetCacheKey;
5848
+ /**
5849
+ * Returns cache identifier for a list of entity relations.
5850
+ * Example: {
5851
+ * const api: BruceApi.Api = ...;
5852
+ * const key = GetCacheKey("abc");
5853
+ * api.Cache.Remove(key);
5854
+ * }
5855
+ * @param id
5856
+ * @returns
5857
+ */
5858
+ function GetEntityCacheKey(entityId) {
5859
+ return Api.ECacheKey.Relation + Api.ECacheKey.Entity + Api.ECacheKey.Id + entityId;
5860
+ }
5861
+ EntityRelation.GetEntityCacheKey = GetEntityCacheKey;
5862
+ /**
5863
+ * Returns cache identifier for a list of entity relations.
5864
+ * Example: {
5865
+ * const api: BruceApi.Api = ...;
5866
+ * const key = GetCacheKey("abc", {...});
5867
+ * api.Cache.Remove(key);
5868
+ * }
5869
+ * @param id
5870
+ * @returns
5871
+ */
5872
+ function GetListCacheKey(entityId, params) {
5873
+ return Api.ECacheKey.Relation + Api.ECacheKey.RelationType +
5874
+ Api.ECacheKey.Id + params.relationTypeId +
5875
+ Api.ECacheKey.Id + params.oneWayOnly +
5876
+ Api.ECacheKey.Id + params.loadEntityData +
5877
+ Api.ECacheKey.Entity + Api.ECacheKey.Id + entityId;
5878
+ }
5879
+ EntityRelation.GetListCacheKey = GetListCacheKey;
5880
5880
  })(EntityRelation || (EntityRelation = {}));
5881
5881
 
5882
5882
  /**
@@ -5886,21 +5886,6 @@ var EntityRelation;
5886
5886
  */
5887
5887
  var EntitySource;
5888
5888
  (function (EntitySource) {
5889
- /**
5890
- * Returns cache identifier for an entity source record.
5891
- * Example: {
5892
- * const api: BruceApi.Api = ...;
5893
- * const key = GetCacheKey(1, "def");
5894
- * api.Cache.Remove(key);
5895
- * }
5896
- * @param sourceId
5897
- * @param sourceKey
5898
- * @returns
5899
- */
5900
- function GetCacheKey(sourceId, sourceKey) {
5901
- return `${Api.ECacheKey.EntitySource}${Api.ECacheKey.Id}${sourceId}${Api.ECacheKey.Id}${sourceKey}`;
5902
- }
5903
- EntitySource.GetCacheKey = GetCacheKey;
5904
5889
  /**
5905
5890
  * Returns an entity source record for the given source id and source key.
5906
5891
  * @param params
@@ -6054,6 +6039,21 @@ var EntitySource;
6054
6039
  });
6055
6040
  }
6056
6041
  EntitySource.CreateLink = CreateLink;
6042
+ /**
6043
+ * Returns cache identifier for an entity source record.
6044
+ * Example: {
6045
+ * const api: BruceApi.Api = ...;
6046
+ * const key = GetCacheKey(1, "def");
6047
+ * api.Cache.Remove(key);
6048
+ * }
6049
+ * @param sourceId
6050
+ * @param sourceKey
6051
+ * @returns
6052
+ */
6053
+ function GetCacheKey(sourceId, sourceKey) {
6054
+ return `${Api.ECacheKey.EntitySource}${Api.ECacheKey.Id}${sourceId}${Api.ECacheKey.Id}${sourceKey}`;
6055
+ }
6056
+ EntitySource.GetCacheKey = GetCacheKey;
6057
6057
  })(EntitySource || (EntitySource = {}));
6058
6058
 
6059
6059
  /**
@@ -6063,37 +6063,6 @@ var EntitySource;
6063
6063
  */
6064
6064
  var EntityTag;
6065
6065
  (function (EntityTag) {
6066
- /**
6067
- * Returns cache identifier for an entity tag record.
6068
- * Example: {
6069
- * const api: BruceApi.Api = ...;
6070
- * const key = GetCacheKey(1);
6071
- * api.Cache.Remove(key);
6072
- * }
6073
- * @param tagId
6074
- * @returns
6075
- */
6076
- function GetCacheKey(tagId) {
6077
- return `${Api.ECacheKey.Tag}${Api.ECacheKey.Id}${tagId}`;
6078
- }
6079
- EntityTag.GetCacheKey = GetCacheKey;
6080
- /**
6081
- * Returns cache identifier for a list of entity tags.
6082
- * Example: {
6083
- * const api: BruceApi.Api = ...;
6084
- * const key = GetListCacheKey("abc");
6085
- * api.Cache.Remove(key);
6086
- * }
6087
- * @param entityTypeId
6088
- * @returns
6089
- */
6090
- function GetListCacheKey(entityTypeId) {
6091
- if (entityTypeId) {
6092
- return Api.ECacheKey.Tag + Api.ECacheKey.EntityType + Api.ECacheKey.Id + entityTypeId;
6093
- }
6094
- return Api.ECacheKey.Tag;
6095
- }
6096
- EntityTag.GetListCacheKey = GetListCacheKey;
6097
6066
  /**
6098
6067
  * Returns an entity tag record for the given tag id.
6099
6068
  * @param params
@@ -6275,6 +6244,37 @@ var EntityTag;
6275
6244
  });
6276
6245
  }
6277
6246
  EntityTag.Update = Update;
6247
+ /**
6248
+ * Returns cache identifier for an entity tag record.
6249
+ * Example: {
6250
+ * const api: BruceApi.Api = ...;
6251
+ * const key = GetCacheKey(1);
6252
+ * api.Cache.Remove(key);
6253
+ * }
6254
+ * @param tagId
6255
+ * @returns
6256
+ */
6257
+ function GetCacheKey(tagId) {
6258
+ return `${Api.ECacheKey.Tag}${Api.ECacheKey.Id}${tagId}`;
6259
+ }
6260
+ EntityTag.GetCacheKey = GetCacheKey;
6261
+ /**
6262
+ * Returns cache identifier for a list of entity tags.
6263
+ * Example: {
6264
+ * const api: BruceApi.Api = ...;
6265
+ * const key = GetListCacheKey("abc");
6266
+ * api.Cache.Remove(key);
6267
+ * }
6268
+ * @param entityTypeId
6269
+ * @returns
6270
+ */
6271
+ function GetListCacheKey(entityTypeId) {
6272
+ if (entityTypeId) {
6273
+ return Api.ECacheKey.Tag + Api.ECacheKey.EntityType + Api.ECacheKey.Id + entityTypeId;
6274
+ }
6275
+ return Api.ECacheKey.Tag;
6276
+ }
6277
+ EntityTag.GetListCacheKey = GetListCacheKey;
6278
6278
  })(EntityTag || (EntityTag = {}));
6279
6279
 
6280
6280
  var MathUtils;
@@ -6321,20 +6321,6 @@ var MathUtils;
6321
6321
  var EntityCoords;
6322
6322
  (function (EntityCoords) {
6323
6323
  EntityCoords.UCS_ENTITY_TYPE_ID = "Bruce_UCS_Type";
6324
- /**
6325
- * Returns cache identifier for a UCS by entity id.
6326
- * Example: {
6327
- * const api: BruceApi.Api = ...;
6328
- * const key = GetCacheKey("123");
6329
- * api.Cache.Remove(key);
6330
- * }
6331
- * @param entityId
6332
- * @returns
6333
- */
6334
- function GetCacheKey(entityId) {
6335
- return Api.ECacheKey.EntityCoords + Api.ECacheKey.Entity + Api.ECacheKey.Id + entityId;
6336
- }
6337
- EntityCoords.GetCacheKey = GetCacheKey;
6338
6324
  /**
6339
6325
  * Returns an entity's location with expanded UCS information.
6340
6326
  * @param params
@@ -6506,6 +6492,20 @@ var EntityCoords;
6506
6492
  });
6507
6493
  }
6508
6494
  EntityCoords.UnlinkCoords = UnlinkCoords;
6495
+ /**
6496
+ * Returns cache identifier for a UCS by entity id.
6497
+ * Example: {
6498
+ * const api: BruceApi.Api = ...;
6499
+ * const key = GetCacheKey("123");
6500
+ * api.Cache.Remove(key);
6501
+ * }
6502
+ * @param entityId
6503
+ * @returns
6504
+ */
6505
+ function GetCacheKey(entityId) {
6506
+ return Api.ECacheKey.EntityCoords + Api.ECacheKey.Entity + Api.ECacheKey.Id + entityId;
6507
+ }
6508
+ EntityCoords.GetCacheKey = GetCacheKey;
6509
6509
  })(EntityCoords || (EntityCoords = {}));
6510
6510
 
6511
6511
  /**
@@ -7053,33 +7053,6 @@ var ClientFile;
7053
7053
  */
7054
7054
  var ProgramKey;
7055
7055
  (function (ProgramKey) {
7056
- /**
7057
- * Returns cache identifier for a program key.
7058
- * Example: {
7059
- * const api: BruceApi.Api = ...;
7060
- * const key = GetCacheKey("abc");
7061
- * api.Cache.Remove(key);
7062
- * }
7063
- * @param programId
7064
- * @returns
7065
- */
7066
- function GetCacheKey(programId) {
7067
- return Api.ECacheKey.ProgramKey + Api.ECacheKey.Id + programId;
7068
- }
7069
- ProgramKey.GetCacheKey = GetCacheKey;
7070
- /**
7071
- * Returns cache identifier for a list of program keys.
7072
- * Example: {
7073
- * const api: BruceApi.Api = ...;
7074
- * const key = GetListCacheKey();
7075
- * api.Cache.Remove(key);
7076
- * }
7077
- * @returns
7078
- */
7079
- function GetListCacheKey() {
7080
- return Api.ECacheKey.ProgramKey;
7081
- }
7082
- ProgramKey.GetListCacheKey = GetListCacheKey;
7083
7056
  /**
7084
7057
  * Known program IDs that Nextspace applications will reference.
7085
7058
  */
@@ -7220,37 +7193,22 @@ var ProgramKey;
7220
7193
  });
7221
7194
  }
7222
7195
  ProgramKey.Update = Update;
7223
- })(ProgramKey || (ProgramKey = {}));
7224
-
7225
- /**
7226
- * Describes the "Tileset" concept in Nextspace.
7227
- *
7228
- * Tilesets come in three possible variants,
7229
- * 1- A set of instructions to generate a tileset.
7230
- * 2- Settings to load a tileset hosted elsewhere.
7231
- * 3- A set of user-provided files to serve.
7232
- *
7233
- * Read the individual tileset-type settings for each variant.
7234
- */
7235
- var Tileset;
7236
- (function (Tileset) {
7237
7196
  /**
7238
- * Returns cache identifier for a tileset.
7197
+ * Returns cache identifier for a program key.
7239
7198
  * Example: {
7240
7199
  * const api: BruceApi.Api = ...;
7241
- * const key = GetCacheKey("abc", false);
7200
+ * const key = GetCacheKey("abc");
7242
7201
  * api.Cache.Remove(key);
7243
7202
  * }
7244
- * @param tilesetId
7245
- * @param loadFiles
7203
+ * @param programId
7246
7204
  * @returns
7247
7205
  */
7248
- function GetCacheKey(tilesetId, loadFiles) {
7249
- return `${Api.ECacheKey.Tileset}${Api.ECacheKey.Id}${tilesetId}${Api.ECacheKey.Id}${loadFiles}`;
7206
+ function GetCacheKey(programId) {
7207
+ return Api.ECacheKey.ProgramKey + Api.ECacheKey.Id + programId;
7250
7208
  }
7251
- Tileset.GetCacheKey = GetCacheKey;
7209
+ ProgramKey.GetCacheKey = GetCacheKey;
7252
7210
  /**
7253
- * Returns cache identifier for a list of tilesets.
7211
+ * Returns cache identifier for a list of program keys.
7254
7212
  * Example: {
7255
7213
  * const api: BruceApi.Api = ...;
7256
7214
  * const key = GetListCacheKey();
@@ -7259,9 +7217,23 @@ var Tileset;
7259
7217
  * @returns
7260
7218
  */
7261
7219
  function GetListCacheKey() {
7262
- return Api.ECacheKey.Tileset;
7220
+ return Api.ECacheKey.ProgramKey;
7263
7221
  }
7264
- Tileset.GetListCacheKey = GetListCacheKey;
7222
+ ProgramKey.GetListCacheKey = GetListCacheKey;
7223
+ })(ProgramKey || (ProgramKey = {}));
7224
+
7225
+ /**
7226
+ * Describes the "Tileset" concept in Nextspace.
7227
+ *
7228
+ * Tilesets come in three possible variants,
7229
+ * 1- A set of instructions to generate a tileset.
7230
+ * 2- Settings to load a tileset hosted elsewhere.
7231
+ * 3- A set of user-provided files to serve.
7232
+ *
7233
+ * Read the individual tileset-type settings for each variant.
7234
+ */
7235
+ var Tileset;
7236
+ (function (Tileset) {
7265
7237
  /**
7266
7238
  * Available tileset types.
7267
7239
  */
@@ -7845,6 +7817,34 @@ var Tileset;
7845
7817
  EExternalMapType["CustomTemplate"] = "Static";
7846
7818
  })(EExternalMapType = Settings.EExternalMapType || (Settings.EExternalMapType = {}));
7847
7819
  })(Settings = Tileset.Settings || (Tileset.Settings = {}));
7820
+ /**
7821
+ * Returns cache identifier for a tileset.
7822
+ * Example: {
7823
+ * const api: BruceApi.Api = ...;
7824
+ * const key = GetCacheKey("abc", false);
7825
+ * api.Cache.Remove(key);
7826
+ * }
7827
+ * @param tilesetId
7828
+ * @param loadFiles
7829
+ * @returns
7830
+ */
7831
+ function GetCacheKey(tilesetId, loadFiles) {
7832
+ return `${Api.ECacheKey.Tileset}${Api.ECacheKey.Id}${tilesetId}${Api.ECacheKey.Id}${loadFiles}`;
7833
+ }
7834
+ Tileset.GetCacheKey = GetCacheKey;
7835
+ /**
7836
+ * Returns cache identifier for a list of tilesets.
7837
+ * Example: {
7838
+ * const api: BruceApi.Api = ...;
7839
+ * const key = GetListCacheKey();
7840
+ * api.Cache.Remove(key);
7841
+ * }
7842
+ * @returns
7843
+ */
7844
+ function GetListCacheKey() {
7845
+ return Api.ECacheKey.Tileset;
7846
+ }
7847
+ Tileset.GetListCacheKey = GetListCacheKey;
7848
7848
  })(Tileset || (Tileset = {}));
7849
7849
 
7850
7850
  /**
@@ -8016,35 +8016,6 @@ var MenuItem;
8016
8016
  */
8017
8017
  var ProjectViewBookmark;
8018
8018
  (function (ProjectViewBookmark) {
8019
- /**
8020
- * Returns cache identifier for a bookmark.
8021
- * Example: {
8022
- * const api: BruceApi.Api = ...;
8023
- * const key = GetCacheKey("abc", "def");
8024
- * api.Cache.Remove(key);
8025
- * }
8026
- * @param viewId
8027
- * @param bookmarkId
8028
- * @returns
8029
- */
8030
- function GetCacheKey(viewId, bookmarkId) {
8031
- return `${Api.ECacheKey.ProjectViewBookmark}${Api.ECacheKey.Id}${viewId}${Api.ECacheKey.Id}${bookmarkId}`;
8032
- }
8033
- ProjectViewBookmark.GetCacheKey = GetCacheKey;
8034
- /**
8035
- * Returns cache identifier for a list of bookmarks.
8036
- * Example: {
8037
- * const api: BruceApi.Api = ...;
8038
- * const key = GetListCacheKey("abc");
8039
- * api.Cache.Remove(key);
8040
- * }
8041
- * @param viewId
8042
- * @returns
8043
- */
8044
- function GetListCacheKey(viewId) {
8045
- return `${Api.ECacheKey.ProjectViewBookmark}${Api.ECacheKey.Id}${viewId}`;
8046
- }
8047
- ProjectViewBookmark.GetListCacheKey = GetListCacheKey;
8048
8019
  // This is the expected default version for the DataVersion value.
8049
8020
  // This value should NOT be changed without looking at our API and seeing what the default value is.
8050
8021
  ProjectViewBookmark.DEFAULT_DATA_VERSION = 2;
@@ -8203,6 +8174,35 @@ var ProjectViewBookmark;
8203
8174
  });
8204
8175
  }
8205
8176
  ProjectViewBookmark.SetOrder = SetOrder;
8177
+ /**
8178
+ * Returns cache identifier for a bookmark.
8179
+ * Example: {
8180
+ * const api: BruceApi.Api = ...;
8181
+ * const key = GetCacheKey("abc", "def");
8182
+ * api.Cache.Remove(key);
8183
+ * }
8184
+ * @param viewId
8185
+ * @param bookmarkId
8186
+ * @returns
8187
+ */
8188
+ function GetCacheKey(viewId, bookmarkId) {
8189
+ return `${Api.ECacheKey.ProjectViewBookmark}${Api.ECacheKey.Id}${viewId}${Api.ECacheKey.Id}${bookmarkId}`;
8190
+ }
8191
+ ProjectViewBookmark.GetCacheKey = GetCacheKey;
8192
+ /**
8193
+ * Returns cache identifier for a list of bookmarks.
8194
+ * Example: {
8195
+ * const api: BruceApi.Api = ...;
8196
+ * const key = GetListCacheKey("abc");
8197
+ * api.Cache.Remove(key);
8198
+ * }
8199
+ * @param viewId
8200
+ * @returns
8201
+ */
8202
+ function GetListCacheKey(viewId) {
8203
+ return `${Api.ECacheKey.ProjectViewBookmark}${Api.ECacheKey.Id}${viewId}`;
8204
+ }
8205
+ ProjectViewBookmark.GetListCacheKey = GetListCacheKey;
8206
8206
  })(ProjectViewBookmark || (ProjectViewBookmark = {}));
8207
8207
 
8208
8208
  /**
@@ -8717,33 +8717,6 @@ var PendingAction;
8717
8717
  */
8718
8718
  var Style;
8719
8719
  (function (Style) {
8720
- /**
8721
- * Returns cache identifier for a style.
8722
- * Example: {
8723
- * const api: BruceApi.Api = ...;
8724
- * const key = GetCacheKey(1);
8725
- * api.Cache.Remove(key);
8726
- * }
8727
- * @param id
8728
- * @returns
8729
- */
8730
- function GetCacheKey(id) {
8731
- return Api.ECacheKey.Style + Api.ECacheKey.Id + id;
8732
- }
8733
- Style.GetCacheKey = GetCacheKey;
8734
- /**
8735
- * Returns cache identifier for a list of styles.
8736
- * Example: {
8737
- * const api: BruceApi.Api = ...;
8738
- * const key = GetListCacheKey();
8739
- * api.Cache.Remove(key);
8740
- * }
8741
- * @returns
8742
- */
8743
- function GetListCacheKey() {
8744
- return Api.ECacheKey.Style;
8745
- }
8746
- Style.GetListCacheKey = GetListCacheKey;
8747
8720
  /**
8748
8721
  * Types of styles available.
8749
8722
  * The type will dictate what settings are available.
@@ -8884,6 +8857,33 @@ var Style;
8884
8857
  });
8885
8858
  }
8886
8859
  Style.Delete = Delete;
8860
+ /**
8861
+ * Returns cache identifier for a style.
8862
+ * Example: {
8863
+ * const api: BruceApi.Api = ...;
8864
+ * const key = GetCacheKey(1);
8865
+ * api.Cache.Remove(key);
8866
+ * }
8867
+ * @param id
8868
+ * @returns
8869
+ */
8870
+ function GetCacheKey(id) {
8871
+ return Api.ECacheKey.Style + Api.ECacheKey.Id + id;
8872
+ }
8873
+ Style.GetCacheKey = GetCacheKey;
8874
+ /**
8875
+ * Returns cache identifier for a list of styles.
8876
+ * Example: {
8877
+ * const api: BruceApi.Api = ...;
8878
+ * const key = GetListCacheKey();
8879
+ * api.Cache.Remove(key);
8880
+ * }
8881
+ * @returns
8882
+ */
8883
+ function GetListCacheKey() {
8884
+ return Api.ECacheKey.Style;
8885
+ }
8886
+ Style.GetListCacheKey = GetListCacheKey;
8887
8887
  })(Style || (Style = {}));
8888
8888
 
8889
8889
  /**
@@ -8934,19 +8934,6 @@ var Permission;
8934
8934
  */
8935
8935
  var Session;
8936
8936
  (function (Session) {
8937
- /**
8938
- * Returns cache identifier for a session.
8939
- * Example: {
8940
- * const api: BruceApi.Api = ...;
8941
- * const key = GetCacheKey("abc");
8942
- * api.Cache.Remove(key);
8943
- * }
8944
- * @param sessionId
8945
- * @returns
8946
- */
8947
- function GetCacheKey(sessionId) {
8948
- return `${Api.ECacheKey.Session}${Api.ECacheKey.Id}${sessionId}`;
8949
- }
8950
8937
  /**
8951
8938
  * Gets a session record.
8952
8939
  * @param params
@@ -9123,6 +9110,19 @@ var Session;
9123
9110
  });
9124
9111
  }
9125
9112
  Session.IsSuperAdmin = IsSuperAdmin;
9113
+ /**
9114
+ * Returns cache identifier for a session.
9115
+ * Example: {
9116
+ * const api: BruceApi.Api = ...;
9117
+ * const key = GetCacheKey("abc");
9118
+ * api.Cache.Remove(key);
9119
+ * }
9120
+ * @param sessionId
9121
+ * @returns
9122
+ */
9123
+ function GetCacheKey(sessionId) {
9124
+ return `${Api.ECacheKey.Session}${Api.ECacheKey.Id}${sessionId}`;
9125
+ }
9126
9126
  })(Session || (Session = {}));
9127
9127
 
9128
9128
  /**
@@ -9265,57 +9265,6 @@ var UserGroup;
9265
9265
  */
9266
9266
  var User;
9267
9267
  (function (User) {
9268
- /**
9269
- * Returns cache identifier for a user.
9270
- * Example: {
9271
- * const api: BruceApi.Api = ...;
9272
- * const key = GetCacheKey("abc", "def");
9273
- * api.Cache.Remove(key);
9274
- * }
9275
- * @param userId
9276
- * @param accountId
9277
- * @returns
9278
- */
9279
- function GetCacheKey(userId, accountId) {
9280
- if (!accountId) {
9281
- accountId = "";
9282
- }
9283
- return Api.ECacheKey.User + Api.ECacheKey.Id + userId + Api.ECacheKey.Id + accountId;
9284
- }
9285
- User.GetCacheKey = GetCacheKey;
9286
- /**
9287
- * Returns cache identifier for a user.
9288
- * Example: {
9289
- * const api: BruceApi.Api = ...;
9290
- * const key = GetCacheKey("abc", "def");
9291
- * api.Cache.Remove(key);
9292
- * }
9293
- * @param email
9294
- * @param accountId
9295
- * @returns
9296
- */
9297
- function GetEmailCacheKey(email, accountId) {
9298
- if (!accountId) {
9299
- accountId = "";
9300
- }
9301
- return Api.ECacheKey.User + Api.ECacheKey.UserEmail + email + Api.ECacheKey.Id + accountId;
9302
- }
9303
- User.GetEmailCacheKey = GetEmailCacheKey;
9304
- /**
9305
- * Returns cache identifier for a user's settings.
9306
- * Example: {
9307
- * const api: BruceApi.Api = ...;
9308
- * const key = GetCacheKey("abc", "def");
9309
- * api.Cache.Remove(key);
9310
- * }
9311
- * @param userId
9312
- * @param appId
9313
- * @returns
9314
- */
9315
- function GetSettingsCacheKey(userId, appId) {
9316
- return Api.ECacheKey.User + Api.ECacheKey.UserSettings + userId + Api.ECacheKey.Id + appId;
9317
- }
9318
- User.GetSettingsCacheKey = GetSettingsCacheKey;
9319
9268
  /**
9320
9269
  * Available user types.
9321
9270
  */
@@ -9859,6 +9808,57 @@ var User;
9859
9808
  }
9860
9809
  AccessToken.Create = Create;
9861
9810
  })(AccessToken = User.AccessToken || (User.AccessToken = {}));
9811
+ /**
9812
+ * Returns cache identifier for a user.
9813
+ * Example: {
9814
+ * const api: BruceApi.Api = ...;
9815
+ * const key = GetCacheKey("abc", "def");
9816
+ * api.Cache.Remove(key);
9817
+ * }
9818
+ * @param userId
9819
+ * @param accountId
9820
+ * @returns
9821
+ */
9822
+ function GetCacheKey(userId, accountId) {
9823
+ if (!accountId) {
9824
+ accountId = "";
9825
+ }
9826
+ return Api.ECacheKey.User + Api.ECacheKey.Id + userId + Api.ECacheKey.Id + accountId;
9827
+ }
9828
+ User.GetCacheKey = GetCacheKey;
9829
+ /**
9830
+ * Returns cache identifier for a user.
9831
+ * Example: {
9832
+ * const api: BruceApi.Api = ...;
9833
+ * const key = GetCacheKey("abc", "def");
9834
+ * api.Cache.Remove(key);
9835
+ * }
9836
+ * @param email
9837
+ * @param accountId
9838
+ * @returns
9839
+ */
9840
+ function GetEmailCacheKey(email, accountId) {
9841
+ if (!accountId) {
9842
+ accountId = "";
9843
+ }
9844
+ return Api.ECacheKey.User + Api.ECacheKey.UserEmail + email + Api.ECacheKey.Id + accountId;
9845
+ }
9846
+ User.GetEmailCacheKey = GetEmailCacheKey;
9847
+ /**
9848
+ * Returns cache identifier for a user's settings.
9849
+ * Example: {
9850
+ * const api: BruceApi.Api = ...;
9851
+ * const key = GetCacheKey("abc", "def");
9852
+ * api.Cache.Remove(key);
9853
+ * }
9854
+ * @param userId
9855
+ * @param appId
9856
+ * @returns
9857
+ */
9858
+ function GetSettingsCacheKey(userId, appId) {
9859
+ return Api.ECacheKey.User + Api.ECacheKey.UserSettings + userId + Api.ECacheKey.Id + appId;
9860
+ }
9861
+ User.GetSettingsCacheKey = GetSettingsCacheKey;
9862
9862
  })(User || (User = {}));
9863
9863
 
9864
9864
  /**
@@ -10836,6 +10836,8 @@ var Plugin;
10836
10836
  req: req
10837
10837
  });
10838
10838
  }
10839
+ // We changed the expected plugin code without changing the API response so we need to read and reformat the file content.
10840
+ // TODO: Create a v3 request that gives us the plugin code in a more usable format.
10839
10841
  let fileContent = yield fileContentProm;
10840
10842
  const start = fileContent.indexOf("{");
10841
10843
  const end = fileContent.lastIndexOf("}");
@@ -10885,6 +10887,7 @@ var Plugin;
10885
10887
  }
10886
10888
  return {
10887
10889
  run: () => {
10890
+ // 'eval2 = eval' stops the linter from complaining about using eval.
10888
10891
  const eval2 = eval;
10889
10892
  eval2(script);
10890
10893
  // Ensure a function is returned, even if the plugin is not configured properly to return one.
@@ -11089,7 +11092,7 @@ var DataSource;
11089
11092
  })(DataSource || (DataSource = {}));
11090
11093
 
11091
11094
  // This is updated with the package.json version on build.
11092
- const VERSION = "3.7.0";
11095
+ const VERSION = "3.7.1";
11093
11096
 
11094
11097
  export { VERSION, AnnDocument, CustomForm, AbstractApi, Api, BruceApi, GlobalApi, GuardianApi, ApiGetters, Calculator, Bounds, BruceEvent, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, Geometry, UTC, BruceVariable, LRUCache, EntityAttachmentType, EntityAttachment, EntityComment, EntityLink, EntityLod, EntityLodCategory, EntityRelationType, EntityRelation, EntitySource, EntityTag, EntityType, Entity, EntityCoords, EntityTypeVisualSettings, EntityAttribute, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, ProjectViewLegacy, ProjectViewLegacyBookmark, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, Account, AccountInvite, AccountFeatures, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, ImportCad, ImportCsv, ImportJson, ImportKml, ImportedFile, Markup, Uploader, Plugin, ENVIRONMENT, DataSource };
11095
11098
  //# sourceMappingURL=bruce-models.es5.js.map