bruce-models 4.7.6 → 4.7.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 +35 -7
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +35 -7
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/project/menu-item.js.map +1 -1
- package/dist/lib/tileset/tileset.js +34 -6
- package/dist/lib/tileset/tileset.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/project/menu-item.d.ts +2 -1
- package/dist/types/tileset/tileset.d.ts +8 -1
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -9249,17 +9249,31 @@ var Tileset;
|
|
|
9249
9249
|
*/
|
|
9250
9250
|
function GetList(params) {
|
|
9251
9251
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9252
|
-
let { api, req: reqParams } = params;
|
|
9252
|
+
let { api, req: reqParams, assertLocation, expandSettings, type } = params;
|
|
9253
9253
|
if (!api) {
|
|
9254
9254
|
api = ENVIRONMENT.Api().GetBruceApi();
|
|
9255
9255
|
}
|
|
9256
|
-
const cache = yield api.GetCacheItem(GetListCacheKey(
|
|
9256
|
+
const cache = yield api.GetCacheItem(GetListCacheKey({
|
|
9257
|
+
assertLocation: assertLocation,
|
|
9258
|
+
expandSettings: expandSettings,
|
|
9259
|
+
type: type
|
|
9260
|
+
}), reqParams);
|
|
9257
9261
|
if (cache === null || cache === void 0 ? void 0 : cache.found) {
|
|
9258
9262
|
return cache.data;
|
|
9259
9263
|
}
|
|
9260
9264
|
const req = new Promise((res, rej) => __awaiter(this, void 0, void 0, function* () {
|
|
9261
9265
|
try {
|
|
9262
|
-
const
|
|
9266
|
+
const urlParams = new URLSearchParams();
|
|
9267
|
+
if (expandSettings) {
|
|
9268
|
+
urlParams.append("expand", "true");
|
|
9269
|
+
}
|
|
9270
|
+
if (assertLocation) {
|
|
9271
|
+
urlParams.append("assertLocation", "true");
|
|
9272
|
+
}
|
|
9273
|
+
if (type) {
|
|
9274
|
+
urlParams.append("type", type);
|
|
9275
|
+
}
|
|
9276
|
+
const data = yield api.GET("tileset/getList?" + urlParams.toString(), reqParams);
|
|
9263
9277
|
// Convert legacy records.
|
|
9264
9278
|
// Commented out because it spams :)
|
|
9265
9279
|
// Should use the legacy getList perhaps and substitute needed records.
|
|
@@ -9280,7 +9294,11 @@ var Tileset;
|
|
|
9280
9294
|
}
|
|
9281
9295
|
}));
|
|
9282
9296
|
yield api.SetCacheItem({
|
|
9283
|
-
key: GetListCacheKey(
|
|
9297
|
+
key: GetListCacheKey({
|
|
9298
|
+
assertLocation: assertLocation,
|
|
9299
|
+
expandSettings: expandSettings,
|
|
9300
|
+
type: type
|
|
9301
|
+
}),
|
|
9284
9302
|
value: req,
|
|
9285
9303
|
req: reqParams
|
|
9286
9304
|
});
|
|
@@ -9814,8 +9832,18 @@ var Tileset;
|
|
|
9814
9832
|
* }
|
|
9815
9833
|
* @returns
|
|
9816
9834
|
*/
|
|
9817
|
-
function GetListCacheKey() {
|
|
9818
|
-
|
|
9835
|
+
function GetListCacheKey(params) {
|
|
9836
|
+
if (!params) {
|
|
9837
|
+
params = {};
|
|
9838
|
+
}
|
|
9839
|
+
let { expandSettings, assertLocation, type } = params;
|
|
9840
|
+
if (expandSettings == null) {
|
|
9841
|
+
expandSettings = false;
|
|
9842
|
+
}
|
|
9843
|
+
if (assertLocation == null) {
|
|
9844
|
+
assertLocation = false;
|
|
9845
|
+
}
|
|
9846
|
+
return Api.ECacheKey.Tileset + String(expandSettings) + String(assertLocation) + (type ? type : "");
|
|
9819
9847
|
}
|
|
9820
9848
|
Tileset$$1.GetListCacheKey = GetListCacheKey;
|
|
9821
9849
|
})(Tileset || (Tileset = {}));
|
|
@@ -14107,7 +14135,7 @@ var DataSource;
|
|
|
14107
14135
|
})(DataSource || (DataSource = {}));
|
|
14108
14136
|
|
|
14109
14137
|
// This is updated with the package.json version on build.
|
|
14110
|
-
const VERSION = "4.7.
|
|
14138
|
+
const VERSION = "4.7.8";
|
|
14111
14139
|
|
|
14112
14140
|
export { VERSION, 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, EntityTypeVisualSettings, EntityAttribute, EntityHistoricData, EntityTableView, Comment, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, ProjectViewLegacy, ProjectViewLegacyBookmark, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, Account, AccountInvite, AccountFeatures, AccountLimits, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, ImportCad, ImportCsv, ImportJson, ImportKml, ImportedFile, Markup, Uploader, Plugin, ENVIRONMENT, DataSource };
|
|
14113
14141
|
//# sourceMappingURL=bruce-models.es5.js.map
|