bruce-models 1.7.2 → 1.7.4

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.
@@ -4299,7 +4299,7 @@ var EntityFilterGetter;
4299
4299
  pageSize: PAGE_SIZE,
4300
4300
  pageIndex: curCell.FetchPageIndex,
4301
4301
  entityTypeId: this.typeId,
4302
- layerIds: this.tagIds,
4302
+ //layerIds: this.tagIds,
4303
4303
  bounds: curCell.GetBounds(),
4304
4304
  sortOrder: Api.ESortOrder.Asc,
4305
4305
  entityTypeConditions: this.attrFilter
@@ -4975,6 +4975,9 @@ var Tileset;
4975
4975
  EType["Terrain"] = "GEO_TERR";
4976
4976
  EType["ExternalTerrain"] = "EXTERNAL_TERR";
4977
4977
  EType["ExternalGeoMap"] = "EXTERNAL_MAP";
4978
+ EType["LegacyEntitiesSet"] = "D";
4979
+ EType["LegacyStatic"] = "S";
4980
+ EType["LegacyExternal"] = "X";
4978
4981
  })(EType = Tileset.EType || (Tileset.EType = {}));
4979
4982
  let EPivot;
4980
4983
  (function (EPivot) {
@@ -5009,6 +5012,37 @@ var Tileset;
5009
5012
  });
5010
5013
  }
5011
5014
  Tileset.Get = Get;
5015
+ /**
5016
+ * Returns tileset types for given tileset ids.
5017
+ * @param params
5018
+ * @returns
5019
+ */
5020
+ function GetTypes(params) {
5021
+ return __awaiter(this, void 0, void 0, function* () {
5022
+ // Our api is auto-converting legacy types right now which makes it impossible to know what they are.
5023
+ // This uses the legacy end-point which doesn't do that...
5024
+ const { api, tilesetIds, req: reqParams } = params;
5025
+ const mapping = {};
5026
+ if (tilesetIds.length == 1) {
5027
+ const tileset = yield api.GET("ui.tileset/" + tilesetIds[0], Api.PrepReqParams(reqParams));
5028
+ if (tileset) {
5029
+ mapping[tilesetIds[0]] = tileset.Type;
5030
+ }
5031
+ }
5032
+ else if (tilesetIds.length > 1) {
5033
+ const tilesets = yield api.GET("ui.tilesets", Api.PrepReqParams(reqParams));
5034
+ for (const tileset of tilesets) {
5035
+ if (tilesetIds.indexOf(tileset.ID) >= 0) {
5036
+ mapping[tileset.ID] = tileset.Type;
5037
+ }
5038
+ }
5039
+ }
5040
+ return {
5041
+ typeMapping: mapping
5042
+ };
5043
+ });
5044
+ }
5045
+ Tileset.GetTypes = GetTypes;
5012
5046
  function GetList(params) {
5013
5047
  return __awaiter(this, void 0, void 0, function* () {
5014
5048
  const { api, req: reqParams } = params;