bruce-models 6.1.2 → 6.1.4
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 +8 -28
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +8 -28
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/data-lab/data-lab.js.map +1 -1
- package/dist/lib/entity/entity-lod-category.js +7 -27
- package/dist/lib/entity/entity-lod-category.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/data-lab/data-lab.d.ts +1 -0
- package/dist/types/entity/entity-lod-category.d.ts +0 -11
- package/dist/types/entity/entity-table-view.d.ts +1 -1
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -6960,26 +6960,22 @@ var EntityLodCategory;
|
|
|
6960
6960
|
if (!api) {
|
|
6961
6961
|
api = ENVIRONMENT.Api().GetBruceApi();
|
|
6962
6962
|
}
|
|
6963
|
-
const cache = api.GetCacheItem(GetCacheKey(id), reqParams);
|
|
6964
|
-
if (cache === null || cache === void 0 ? void 0 : cache.found) {
|
|
6965
|
-
return cache.data;
|
|
6966
|
-
}
|
|
6967
6963
|
const req = new Promise((res, rej) => __awaiter(this, void 0, void 0, function* () {
|
|
6968
6964
|
try {
|
|
6969
|
-
|
|
6965
|
+
// No singular?
|
|
6966
|
+
const data = yield GetList({
|
|
6967
|
+
api,
|
|
6968
|
+
req: reqParams
|
|
6969
|
+
});
|
|
6970
|
+
const category = data.categories.find((c) => c.Key.toLowerCase() === id.toLowerCase());
|
|
6970
6971
|
res({
|
|
6971
|
-
category:
|
|
6972
|
+
category: category
|
|
6972
6973
|
});
|
|
6973
6974
|
}
|
|
6974
6975
|
catch (e) {
|
|
6975
6976
|
rej(e);
|
|
6976
6977
|
}
|
|
6977
6978
|
}));
|
|
6978
|
-
api.SetCacheItem({
|
|
6979
|
-
key: GetCacheKey(id),
|
|
6980
|
-
value: req,
|
|
6981
|
-
req: reqParams
|
|
6982
|
-
});
|
|
6983
6979
|
return req;
|
|
6984
6980
|
});
|
|
6985
6981
|
}
|
|
@@ -6998,7 +6994,6 @@ var EntityLodCategory;
|
|
|
6998
6994
|
api = ENVIRONMENT.Api().GetBruceApi();
|
|
6999
6995
|
}
|
|
7000
6996
|
yield api.DELETE(`lodCategory/${id}`, Api.PrepReqParams(reqParams));
|
|
7001
|
-
api.Cache.Remove(GetCacheKey(id));
|
|
7002
6997
|
api.Cache.Remove(GetListCacheKey());
|
|
7003
6998
|
});
|
|
7004
6999
|
}
|
|
@@ -7018,7 +7013,6 @@ var EntityLodCategory;
|
|
|
7018
7013
|
api = ENVIRONMENT.Api().GetBruceApi();
|
|
7019
7014
|
}
|
|
7020
7015
|
const res = yield api.POST(`lodCategory/${data.Key}`, data, Api.PrepReqParams(reqParams));
|
|
7021
|
-
api.Cache.Remove(GetCacheKey(data.Key));
|
|
7022
7016
|
api.Cache.Remove(GetListCacheKey());
|
|
7023
7017
|
return {
|
|
7024
7018
|
category: res
|
|
@@ -7026,20 +7020,6 @@ var EntityLodCategory;
|
|
|
7026
7020
|
});
|
|
7027
7021
|
}
|
|
7028
7022
|
EntityLodCategory.Update = Update;
|
|
7029
|
-
/**
|
|
7030
|
-
* Returns cache identifier for an entity lod category record.
|
|
7031
|
-
* Example: {
|
|
7032
|
-
* const api: BruceApi.Api = ...;
|
|
7033
|
-
* const key = GetCacheKey("abc");
|
|
7034
|
-
* api.Cache.Remove(key);
|
|
7035
|
-
* }
|
|
7036
|
-
* @param id
|
|
7037
|
-
* @returns
|
|
7038
|
-
*/
|
|
7039
|
-
function GetCacheKey(id) {
|
|
7040
|
-
return Api.ECacheKey.LodCategory + Api.ECacheKey.Id + id;
|
|
7041
|
-
}
|
|
7042
|
-
EntityLodCategory.GetCacheKey = GetCacheKey;
|
|
7043
7023
|
/**
|
|
7044
7024
|
* Returns cache identifier for a list of entity lod categories.
|
|
7045
7025
|
* Example: {
|
|
@@ -15875,7 +15855,7 @@ var Tracking;
|
|
|
15875
15855
|
})(Tracking || (Tracking = {}));
|
|
15876
15856
|
|
|
15877
15857
|
// This is updated with the package.json version on build.
|
|
15878
|
-
const VERSION = "6.1.
|
|
15858
|
+
const VERSION = "6.1.4";
|
|
15879
15859
|
|
|
15880
15860
|
export { VERSION, Assembly, AnnDocument, CustomForm, AbstractApi, Api, BruceApi, GlobalApi, GuardianApi, ApiGetters, Calculator, Bounds, BruceEvent, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, Geometry, UTC, BruceVariable, LRUCache, GeoJson, EntityAttachmentType, EntityAttachment, EntityComment, EntityLink, EntityLod, EntityLodCategory, EntityRelationType, EntityRelation, EntitySource, EntityTag, EntityType, Entity, EntityCoords, EntityAttribute, EntityHistoricData, EntityTableView, Comment, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, ProjectViewLegacy, ProjectViewLegacyBookmark, ProjectViewBookmarkGroup, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, Account, AccountInvite, AccountFeatures, AccountLimits, AccountTemplate, AccountType, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, DataLabGroup, ImportAssembly, ImportCad, ImportCsv, ImportJson, ImportGeoJson, ImportKml, ImportedFile, ExportBrz, ExportUsd, Markup, Uploader, Plugin, ENVIRONMENT, DataSource, Scenario, Tracking };
|
|
15881
15861
|
//# sourceMappingURL=bruce-models.es5.js.map
|