bruce-models 4.7.6 → 4.7.7
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/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/tileset/tileset.d.ts +8 -1
- package/package.json +1 -1
package/dist/bruce-models.umd.js
CHANGED
|
@@ -9073,17 +9073,31 @@
|
|
|
9073
9073
|
*/
|
|
9074
9074
|
function GetList(params) {
|
|
9075
9075
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9076
|
-
let { api, req: reqParams } = params;
|
|
9076
|
+
let { api, req: reqParams, assertLocation, expandSettings, type } = params;
|
|
9077
9077
|
if (!api) {
|
|
9078
9078
|
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
9079
9079
|
}
|
|
9080
|
-
const cache = yield api.GetCacheItem(GetListCacheKey(
|
|
9080
|
+
const cache = yield api.GetCacheItem(GetListCacheKey({
|
|
9081
|
+
assertLocation: assertLocation,
|
|
9082
|
+
expandSettings: expandSettings,
|
|
9083
|
+
type: type
|
|
9084
|
+
}), reqParams);
|
|
9081
9085
|
if (cache === null || cache === void 0 ? void 0 : cache.found) {
|
|
9082
9086
|
return cache.data;
|
|
9083
9087
|
}
|
|
9084
9088
|
const req = new Promise((res, rej) => __awaiter(this, void 0, void 0, function* () {
|
|
9085
9089
|
try {
|
|
9086
|
-
const
|
|
9090
|
+
const urlParams = new URLSearchParams();
|
|
9091
|
+
if (expandSettings) {
|
|
9092
|
+
urlParams.append("expand", "true");
|
|
9093
|
+
}
|
|
9094
|
+
if (assertLocation) {
|
|
9095
|
+
urlParams.append("assertLocation", "true");
|
|
9096
|
+
}
|
|
9097
|
+
if (type) {
|
|
9098
|
+
urlParams.append("type", type);
|
|
9099
|
+
}
|
|
9100
|
+
const data = yield api.GET("tileset/getList?" + urlParams.toString(), reqParams);
|
|
9087
9101
|
// Convert legacy records.
|
|
9088
9102
|
// Commented out because it spams :)
|
|
9089
9103
|
// Should use the legacy getList perhaps and substitute needed records.
|
|
@@ -9104,7 +9118,11 @@
|
|
|
9104
9118
|
}
|
|
9105
9119
|
}));
|
|
9106
9120
|
yield api.SetCacheItem({
|
|
9107
|
-
key: GetListCacheKey(
|
|
9121
|
+
key: GetListCacheKey({
|
|
9122
|
+
assertLocation: assertLocation,
|
|
9123
|
+
expandSettings: expandSettings,
|
|
9124
|
+
type: type
|
|
9125
|
+
}),
|
|
9108
9126
|
value: req,
|
|
9109
9127
|
req: reqParams
|
|
9110
9128
|
});
|
|
@@ -9638,8 +9656,18 @@
|
|
|
9638
9656
|
* }
|
|
9639
9657
|
* @returns
|
|
9640
9658
|
*/
|
|
9641
|
-
function GetListCacheKey() {
|
|
9642
|
-
|
|
9659
|
+
function GetListCacheKey(params) {
|
|
9660
|
+
if (!params) {
|
|
9661
|
+
params = {};
|
|
9662
|
+
}
|
|
9663
|
+
let { expandSettings, assertLocation, type } = params;
|
|
9664
|
+
if (expandSettings == null) {
|
|
9665
|
+
expandSettings = false;
|
|
9666
|
+
}
|
|
9667
|
+
if (assertLocation == null) {
|
|
9668
|
+
assertLocation = false;
|
|
9669
|
+
}
|
|
9670
|
+
return exports.Api.ECacheKey.Tileset + String(expandSettings) + String(assertLocation) + (type ? type : "");
|
|
9643
9671
|
}
|
|
9644
9672
|
Tileset.GetListCacheKey = GetListCacheKey;
|
|
9645
9673
|
})(exports.Tileset || (exports.Tileset = {}));
|
|
@@ -13832,7 +13860,7 @@
|
|
|
13832
13860
|
})(exports.DataSource || (exports.DataSource = {}));
|
|
13833
13861
|
|
|
13834
13862
|
// This is updated with the package.json version on build.
|
|
13835
|
-
const VERSION = "4.7.
|
|
13863
|
+
const VERSION = "4.7.7";
|
|
13836
13864
|
|
|
13837
13865
|
exports.VERSION = VERSION;
|
|
13838
13866
|
exports.AbstractApi = AbstractApi;
|