bruce-models 6.6.1 → 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 +19 -19
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +19 -19
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/tileset/tileset.js +18 -18
- 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 +1 -0
- package/package.json +1 -1
package/dist/bruce-models.umd.js
CHANGED
|
@@ -9888,18 +9888,22 @@
|
|
|
9888
9888
|
*/
|
|
9889
9889
|
function GetList(params) {
|
|
9890
9890
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9891
|
-
let { api, req: reqParams, assertLocation, expandSettings, type, pageIndex, pageSize, search, orderBy, sortOrder } = params;
|
|
9891
|
+
let { api, req: reqParams, assertLocation, expandSettings, type, pageIndex, pageSize, search, orderBy, sortOrder, tilesetIds } = params;
|
|
9892
9892
|
if (!api) {
|
|
9893
9893
|
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
9894
9894
|
}
|
|
9895
|
-
|
|
9896
|
-
|
|
9897
|
-
|
|
9898
|
-
|
|
9899
|
-
|
|
9900
|
-
|
|
9901
|
-
|
|
9902
|
-
|
|
9895
|
+
let cacheKey = null;
|
|
9896
|
+
if (!(tilesetIds === null || tilesetIds === void 0 ? void 0 : tilesetIds.length) && !pageSize) {
|
|
9897
|
+
cacheKey = GetListCacheKey({
|
|
9898
|
+
assertLocation: assertLocation,
|
|
9899
|
+
expandSettings: expandSettings,
|
|
9900
|
+
type: type,
|
|
9901
|
+
orderBy: orderBy,
|
|
9902
|
+
sortOrder: sortOrder,
|
|
9903
|
+
search: search
|
|
9904
|
+
});
|
|
9905
|
+
}
|
|
9906
|
+
const cache = cacheKey ? api.GetCacheItem(cacheKey, reqParams) : null;
|
|
9903
9907
|
if (cache === null || cache === void 0 ? void 0 : cache.found) {
|
|
9904
9908
|
return cache.data;
|
|
9905
9909
|
}
|
|
@@ -9930,6 +9934,9 @@
|
|
|
9930
9934
|
if (sortOrder) {
|
|
9931
9935
|
urlParams.append("SortOrder", sortOrder);
|
|
9932
9936
|
}
|
|
9937
|
+
if (tilesetIds === null || tilesetIds === void 0 ? void 0 : tilesetIds.length) {
|
|
9938
|
+
urlParams.append("ID", tilesetIds.join(","));
|
|
9939
|
+
}
|
|
9933
9940
|
const data = yield api.GET("tileset/getList?" + urlParams.toString(), reqParams);
|
|
9934
9941
|
// Convert legacy records.
|
|
9935
9942
|
// Commented out because it spams :)
|
|
@@ -9950,16 +9957,9 @@
|
|
|
9950
9957
|
rej(e);
|
|
9951
9958
|
}
|
|
9952
9959
|
}));
|
|
9953
|
-
if (
|
|
9960
|
+
if (cacheKey) {
|
|
9954
9961
|
api.SetCacheItem({
|
|
9955
|
-
key:
|
|
9956
|
-
assertLocation: assertLocation,
|
|
9957
|
-
expandSettings: expandSettings,
|
|
9958
|
-
type: type,
|
|
9959
|
-
orderBy: orderBy,
|
|
9960
|
-
sortOrder: sortOrder,
|
|
9961
|
-
search: search
|
|
9962
|
-
}),
|
|
9962
|
+
key: cacheKey,
|
|
9963
9963
|
value: req,
|
|
9964
9964
|
req: reqParams
|
|
9965
9965
|
});
|
|
@@ -16078,7 +16078,7 @@
|
|
|
16078
16078
|
})(exports.Tracking || (exports.Tracking = {}));
|
|
16079
16079
|
|
|
16080
16080
|
// This is updated with the package.json version on build.
|
|
16081
|
-
const VERSION = "6.6.
|
|
16081
|
+
const VERSION = "6.6.2";
|
|
16082
16082
|
|
|
16083
16083
|
exports.VERSION = VERSION;
|
|
16084
16084
|
exports.AbstractApi = AbstractApi;
|