bruce-models 2.0.6 → 2.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bruce-models.es5.js +25 -1
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +25 -0
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/api/cam-api.js +1 -0
- package/dist/lib/api/cam-api.js.map +1 -1
- package/dist/lib/api/idm-api.js +1 -0
- package/dist/lib/api/idm-api.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -0
- package/dist/lib/bruce-models.js.map +1 -1
- package/dist/lib/common/lru-cache.js +26 -0
- package/dist/lib/common/lru-cache.js.map +1 -0
- package/dist/types/bruce-models.d.ts +1 -0
- package/dist/types/common/lru-cache.d.ts +7 -0
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -3910,6 +3910,7 @@ var CamApi;
|
|
|
3910
3910
|
url += "-stg.net/";
|
|
3911
3911
|
break;
|
|
3912
3912
|
case Api.EEnv.UAT:
|
|
3913
|
+
codeWord = "guardian";
|
|
3913
3914
|
url += "-uat.net/";
|
|
3914
3915
|
break;
|
|
3915
3916
|
case Api.EEnv.PROD:
|
|
@@ -4333,6 +4334,7 @@ var IdmApi;
|
|
|
4333
4334
|
url += "-stg.net/";
|
|
4334
4335
|
break;
|
|
4335
4336
|
case Api.EEnv.UAT:
|
|
4337
|
+
codeWord = "guardian";
|
|
4336
4338
|
url += "-uat.net/";
|
|
4337
4339
|
break;
|
|
4338
4340
|
case Api.EEnv.PROD:
|
|
@@ -5920,6 +5922,28 @@ var UTC;
|
|
|
5920
5922
|
UTC.FromDate = FromDate;
|
|
5921
5923
|
})(UTC || (UTC = {}));
|
|
5922
5924
|
|
|
5925
|
+
class LRUCache {
|
|
5926
|
+
constructor(capacity) {
|
|
5927
|
+
this.capacity = capacity;
|
|
5928
|
+
this.cache = new Map();
|
|
5929
|
+
}
|
|
5930
|
+
Get(key) {
|
|
5931
|
+
const value = this.cache.get(key);
|
|
5932
|
+
if (value) {
|
|
5933
|
+
this.cache.delete(key);
|
|
5934
|
+
this.cache.set(key, value);
|
|
5935
|
+
}
|
|
5936
|
+
return value;
|
|
5937
|
+
}
|
|
5938
|
+
Set(key, value) {
|
|
5939
|
+
if (this.cache.size >= this.capacity) {
|
|
5940
|
+
const leastRecentlyUsedKey = this.cache.keys().next().value;
|
|
5941
|
+
this.cache.delete(leastRecentlyUsedKey);
|
|
5942
|
+
}
|
|
5943
|
+
this.cache.set(key, value);
|
|
5944
|
+
}
|
|
5945
|
+
}
|
|
5946
|
+
|
|
5923
5947
|
/**
|
|
5924
5948
|
* Describes the "Entity Attachment Type" concept within Bruce.
|
|
5925
5949
|
* It is a record that describes the purpose of an attachment.
|
|
@@ -10797,5 +10821,5 @@ var Plugin;
|
|
|
10797
10821
|
Plugin.GetLoadUrl = GetLoadUrl;
|
|
10798
10822
|
})(Plugin || (Plugin = {}));
|
|
10799
10823
|
|
|
10800
|
-
export { AnnDocument, CustomForm, CustomFormContent, AbstractApi, Api, BruceApi, CamApi, IdmApi, GlobalApi, ApiGetters, Calculator, Bounds, BruceEvent, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, Geometry, UTC, BruceVariable, EntityAttachmentType, EntityAttachment, EntityComment, EntityLink, EntityLod, EntityLodCategory, EntityRelationType, EntityRelation, EntitySource, EntityTag, EntityType, Entity, EntityGlobe, EntityFilterGetter, BatchedDataGetter, EntityCoords, EntityTypeVisualSettings, EntityAttribute, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, PendingAction, MessageBroker, Style, Tileset, Permission, Session, UserGroup, User, Account, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, ImportCad, ImportCsv, ImportJson, ImportKml, ImportedFile, Markup, Uploader, Plugin };
|
|
10824
|
+
export { AnnDocument, CustomForm, CustomFormContent, AbstractApi, Api, BruceApi, CamApi, IdmApi, GlobalApi, 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, EntityGlobe, EntityFilterGetter, BatchedDataGetter, EntityCoords, EntityTypeVisualSettings, EntityAttribute, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, PendingAction, MessageBroker, Style, Tileset, Permission, Session, UserGroup, User, Account, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, ImportCad, ImportCsv, ImportJson, ImportKml, ImportedFile, Markup, Uploader, Plugin };
|
|
10801
10825
|
//# sourceMappingURL=bruce-models.es5.js.map
|