bruce-models 6.5.9 → 6.6.1
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 +44 -15
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +44 -15
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/client-file/client-file.js.map +1 -1
- package/dist/lib/tileset/tileset.js +43 -14
- package/dist/lib/tileset/tileset.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/client-file/client-file.d.ts +17 -0
- package/dist/types/tileset/tileset.d.ts +8 -0
- package/package.json +1 -1
package/dist/bruce-models.umd.js
CHANGED
|
@@ -9888,14 +9888,17 @@
|
|
|
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 } = params;
|
|
9891
|
+
let { api, req: reqParams, assertLocation, expandSettings, type, pageIndex, pageSize, search, orderBy, sortOrder } = params;
|
|
9892
9892
|
if (!api) {
|
|
9893
9893
|
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
9894
9894
|
}
|
|
9895
|
-
const cache = api.GetCacheItem(GetListCacheKey({
|
|
9895
|
+
const cache = pageSize ? null : api.GetCacheItem(GetListCacheKey({
|
|
9896
9896
|
assertLocation: assertLocation,
|
|
9897
9897
|
expandSettings: expandSettings,
|
|
9898
|
-
type: type
|
|
9898
|
+
type: type,
|
|
9899
|
+
orderBy: orderBy,
|
|
9900
|
+
sortOrder: sortOrder,
|
|
9901
|
+
search: search
|
|
9899
9902
|
}), reqParams);
|
|
9900
9903
|
if (cache === null || cache === void 0 ? void 0 : cache.found) {
|
|
9901
9904
|
return cache.data;
|
|
@@ -9912,6 +9915,21 @@
|
|
|
9912
9915
|
if (type) {
|
|
9913
9916
|
urlParams.append("type", type);
|
|
9914
9917
|
}
|
|
9918
|
+
if (search) {
|
|
9919
|
+
urlParams.append("Search", search);
|
|
9920
|
+
}
|
|
9921
|
+
if (pageSize != null) {
|
|
9922
|
+
urlParams.append("PageSize", String(pageSize));
|
|
9923
|
+
}
|
|
9924
|
+
if (pageIndex != null) {
|
|
9925
|
+
urlParams.append("PageIndex", String(pageIndex));
|
|
9926
|
+
}
|
|
9927
|
+
if (orderBy) {
|
|
9928
|
+
urlParams.append("OrderBy", orderBy);
|
|
9929
|
+
}
|
|
9930
|
+
if (sortOrder) {
|
|
9931
|
+
urlParams.append("SortOrder", sortOrder);
|
|
9932
|
+
}
|
|
9915
9933
|
const data = yield api.GET("tileset/getList?" + urlParams.toString(), reqParams);
|
|
9916
9934
|
// Convert legacy records.
|
|
9917
9935
|
// Commented out because it spams :)
|
|
@@ -9932,15 +9950,20 @@
|
|
|
9932
9950
|
rej(e);
|
|
9933
9951
|
}
|
|
9934
9952
|
}));
|
|
9935
|
-
|
|
9936
|
-
|
|
9937
|
-
|
|
9938
|
-
|
|
9939
|
-
|
|
9940
|
-
|
|
9941
|
-
|
|
9942
|
-
|
|
9943
|
-
|
|
9953
|
+
if (!pageSize) {
|
|
9954
|
+
api.SetCacheItem({
|
|
9955
|
+
key: GetListCacheKey({
|
|
9956
|
+
assertLocation: assertLocation,
|
|
9957
|
+
expandSettings: expandSettings,
|
|
9958
|
+
type: type,
|
|
9959
|
+
orderBy: orderBy,
|
|
9960
|
+
sortOrder: sortOrder,
|
|
9961
|
+
search: search
|
|
9962
|
+
}),
|
|
9963
|
+
value: req,
|
|
9964
|
+
req: reqParams
|
|
9965
|
+
});
|
|
9966
|
+
}
|
|
9944
9967
|
return req;
|
|
9945
9968
|
});
|
|
9946
9969
|
}
|
|
@@ -10502,14 +10525,20 @@
|
|
|
10502
10525
|
if (!params) {
|
|
10503
10526
|
params = {};
|
|
10504
10527
|
}
|
|
10505
|
-
let { expandSettings, assertLocation, type } = params;
|
|
10528
|
+
let { expandSettings, assertLocation, type, orderBy, search, sortOrder } = params;
|
|
10506
10529
|
if (expandSettings == null) {
|
|
10507
10530
|
expandSettings = false;
|
|
10508
10531
|
}
|
|
10509
10532
|
if (assertLocation == null) {
|
|
10510
10533
|
assertLocation = false;
|
|
10511
10534
|
}
|
|
10512
|
-
|
|
10535
|
+
if (!search) {
|
|
10536
|
+
search = "";
|
|
10537
|
+
}
|
|
10538
|
+
if (!orderBy) {
|
|
10539
|
+
orderBy = "";
|
|
10540
|
+
}
|
|
10541
|
+
return exports.Api.ECacheKey.Tileset + String(expandSettings) + String(assertLocation) + (type ? type : "") + String(orderBy) + String(sortOrder) + exports.Api.ECacheKey.Id + search;
|
|
10513
10542
|
}
|
|
10514
10543
|
Tileset.GetListCacheKey = GetListCacheKey;
|
|
10515
10544
|
})(exports.Tileset || (exports.Tileset = {}));
|
|
@@ -16049,7 +16078,7 @@
|
|
|
16049
16078
|
})(exports.Tracking || (exports.Tracking = {}));
|
|
16050
16079
|
|
|
16051
16080
|
// This is updated with the package.json version on build.
|
|
16052
|
-
const VERSION = "6.
|
|
16081
|
+
const VERSION = "6.6.1";
|
|
16053
16082
|
|
|
16054
16083
|
exports.VERSION = VERSION;
|
|
16055
16084
|
exports.AbstractApi = AbstractApi;
|