bruce-models 2.7.8 → 2.8.0

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.
@@ -9388,7 +9388,6 @@ var Tileset;
9388
9388
  return cacheData.data;
9389
9389
  }
9390
9390
  const prom = new Promise((res, rej) => __awaiter(this, void 0, void 0, function* () {
9391
- var _a;
9392
9391
  try {
9393
9392
  // We try find the published record for the tileset.
9394
9393
  // If it doesn't exist, then it's not published.
@@ -9397,11 +9396,7 @@ var Tileset;
9397
9396
  api: api,
9398
9397
  });
9399
9398
  const tileset = published.find(x => x["Tileset.ID"] == tilesetId && x["PublishedBy.ClientAccount.ID"] == sourceAccountId);
9400
- if (!tileset) {
9401
- res(false);
9402
- return;
9403
- }
9404
- res(tileset.IsPublic || (((_a = tileset["EnabledFor.ClientAccount.ID"]) === null || _a === void 0 ? void 0 : _a.length) && tileset["EnabledFor.ClientAccount.ID"].includes(forAccountId)));
9399
+ res(tileset != null);
9405
9400
  }
9406
9401
  catch (e) {
9407
9402
  rej(e);
@@ -12011,7 +12006,7 @@ var DataSource;
12011
12006
  DataSource.GetList = GetList;
12012
12007
  })(DataSource || (DataSource = {}));
12013
12008
 
12014
- const VERSION$1 = "2.7.8";
12009
+ const VERSION$1 = "2.8.0";
12015
12010
 
12016
12011
  export { VERSION$1 as VERSION, AnnDocument, CustomForm, CustomFormContent, AbstractApi, Api, BruceApi, CamApi, IdmApi, GlobalApi, GuardianApi, ApiGetters, Calculator, Bounds, BruceEvent, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, Geometry, UTC, BruceVariable, LRUCache, EntityAttachmentType, EntityAttachment, EntityComment, EntityLink, EntityLod, EntityLodCategory, EntityRelationType, EntityRelation, EntitySource, EntityTag, EntityType, Entity, EntityGlobe, EntityFilterGetter, BatchedDataGetter, EntityCoords, EntityTypeVisualSettings, EntityAttribute, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, Account, AccountInvite, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, ImportCad, ImportCsv, ImportJson, ImportKml, ImportedFile, Markup, Uploader, Plugin, ENVIRONMENT, DataSource };
12017
12012
  //# sourceMappingURL=bruce-models.es5.js.map