bruce-models 6.6.0 → 6.6.2
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 +33 -15
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +33 -15
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/tileset/tileset.js +32 -14
- package/dist/lib/tileset/tileset.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/tileset/tileset.d.ts +6 -0
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -10069,15 +10069,22 @@ var Tileset;
|
|
|
10069
10069
|
*/
|
|
10070
10070
|
function GetList(params) {
|
|
10071
10071
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10072
|
-
let { api, req: reqParams, assertLocation, expandSettings, type, pageIndex, pageSize, search } = params;
|
|
10072
|
+
let { api, req: reqParams, assertLocation, expandSettings, type, pageIndex, pageSize, search, orderBy, sortOrder, tilesetIds } = params;
|
|
10073
10073
|
if (!api) {
|
|
10074
10074
|
api = ENVIRONMENT.Api().GetBruceApi();
|
|
10075
10075
|
}
|
|
10076
|
-
|
|
10077
|
-
|
|
10078
|
-
|
|
10079
|
-
|
|
10080
|
-
|
|
10076
|
+
let cacheKey = null;
|
|
10077
|
+
if (!(tilesetIds === null || tilesetIds === void 0 ? void 0 : tilesetIds.length) && !pageSize) {
|
|
10078
|
+
cacheKey = GetListCacheKey({
|
|
10079
|
+
assertLocation: assertLocation,
|
|
10080
|
+
expandSettings: expandSettings,
|
|
10081
|
+
type: type,
|
|
10082
|
+
orderBy: orderBy,
|
|
10083
|
+
sortOrder: sortOrder,
|
|
10084
|
+
search: search
|
|
10085
|
+
});
|
|
10086
|
+
}
|
|
10087
|
+
const cache = cacheKey ? api.GetCacheItem(cacheKey, reqParams) : null;
|
|
10081
10088
|
if (cache === null || cache === void 0 ? void 0 : cache.found) {
|
|
10082
10089
|
return cache.data;
|
|
10083
10090
|
}
|
|
@@ -10102,6 +10109,15 @@ var Tileset;
|
|
|
10102
10109
|
if (pageIndex != null) {
|
|
10103
10110
|
urlParams.append("PageIndex", String(pageIndex));
|
|
10104
10111
|
}
|
|
10112
|
+
if (orderBy) {
|
|
10113
|
+
urlParams.append("OrderBy", orderBy);
|
|
10114
|
+
}
|
|
10115
|
+
if (sortOrder) {
|
|
10116
|
+
urlParams.append("SortOrder", sortOrder);
|
|
10117
|
+
}
|
|
10118
|
+
if (tilesetIds === null || tilesetIds === void 0 ? void 0 : tilesetIds.length) {
|
|
10119
|
+
urlParams.append("ID", tilesetIds.join(","));
|
|
10120
|
+
}
|
|
10105
10121
|
const data = yield api.GET("tileset/getList?" + urlParams.toString(), reqParams);
|
|
10106
10122
|
// Convert legacy records.
|
|
10107
10123
|
// Commented out because it spams :)
|
|
@@ -10122,13 +10138,9 @@ var Tileset;
|
|
|
10122
10138
|
rej(e);
|
|
10123
10139
|
}
|
|
10124
10140
|
}));
|
|
10125
|
-
if (
|
|
10141
|
+
if (cacheKey) {
|
|
10126
10142
|
api.SetCacheItem({
|
|
10127
|
-
key:
|
|
10128
|
-
assertLocation: assertLocation,
|
|
10129
|
-
expandSettings: expandSettings,
|
|
10130
|
-
type: type
|
|
10131
|
-
}),
|
|
10143
|
+
key: cacheKey,
|
|
10132
10144
|
value: req,
|
|
10133
10145
|
req: reqParams
|
|
10134
10146
|
});
|
|
@@ -10694,14 +10706,20 @@ var Tileset;
|
|
|
10694
10706
|
if (!params) {
|
|
10695
10707
|
params = {};
|
|
10696
10708
|
}
|
|
10697
|
-
let { expandSettings, assertLocation, type } = params;
|
|
10709
|
+
let { expandSettings, assertLocation, type, orderBy, search, sortOrder } = params;
|
|
10698
10710
|
if (expandSettings == null) {
|
|
10699
10711
|
expandSettings = false;
|
|
10700
10712
|
}
|
|
10701
10713
|
if (assertLocation == null) {
|
|
10702
10714
|
assertLocation = false;
|
|
10703
10715
|
}
|
|
10704
|
-
|
|
10716
|
+
if (!search) {
|
|
10717
|
+
search = "";
|
|
10718
|
+
}
|
|
10719
|
+
if (!orderBy) {
|
|
10720
|
+
orderBy = "";
|
|
10721
|
+
}
|
|
10722
|
+
return Api.ECacheKey.Tileset + String(expandSettings) + String(assertLocation) + (type ? type : "") + String(orderBy) + String(sortOrder) + Api.ECacheKey.Id + search;
|
|
10705
10723
|
}
|
|
10706
10724
|
Tileset$$1.GetListCacheKey = GetListCacheKey;
|
|
10707
10725
|
})(Tileset || (Tileset = {}));
|
|
@@ -16375,7 +16393,7 @@ var Tracking;
|
|
|
16375
16393
|
})(Tracking || (Tracking = {}));
|
|
16376
16394
|
|
|
16377
16395
|
// This is updated with the package.json version on build.
|
|
16378
|
-
const VERSION = "6.6.
|
|
16396
|
+
const VERSION = "6.6.2";
|
|
16379
16397
|
|
|
16380
16398
|
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, UserMfaMethod, 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 };
|
|
16381
16399
|
//# sourceMappingURL=bruce-models.es5.js.map
|