bruce-models 6.4.6 → 6.4.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.
@@ -8353,20 +8353,20 @@ var Style;
8353
8353
  */
8354
8354
  function Get(params) {
8355
8355
  return __awaiter(this, void 0, void 0, function* () {
8356
- let { api, styleId: id, req: reqParams } = params;
8357
- if (!id) {
8358
- throw ("Style ID is required.");
8356
+ let { api, styleId, req: reqParams } = params;
8357
+ if (!styleId) {
8358
+ throw ("styleId is required.");
8359
8359
  }
8360
8360
  if (!api) {
8361
8361
  api = ENVIRONMENT.Api().GetBruceApi();
8362
8362
  }
8363
- const cache = api.GetCacheItem(GetCacheKey(id), reqParams);
8363
+ const cache = api.GetCacheItem(GetCacheKey(styleId), reqParams);
8364
8364
  if (cache === null || cache === void 0 ? void 0 : cache.found) {
8365
8365
  return cache.data;
8366
8366
  }
8367
8367
  const prom = new Promise((res, rej) => __awaiter(this, void 0, void 0, function* () {
8368
8368
  try {
8369
- const data = yield api.GET(`ui.entityDisplaySetting/${id}`, Api.PrepReqParams(reqParams));
8369
+ const data = yield api.GET(`ui.entityDisplaySetting/${styleId}`, Api.PrepReqParams(reqParams));
8370
8370
  res({
8371
8371
  style: data
8372
8372
  });
@@ -8376,7 +8376,7 @@ var Style;
8376
8376
  }
8377
8377
  }));
8378
8378
  api.SetCacheItem({
8379
- key: GetCacheKey(id),
8379
+ key: GetCacheKey(styleId),
8380
8380
  value: prom,
8381
8381
  req: reqParams
8382
8382
  });
@@ -14670,8 +14670,8 @@ var DataLab;
14670
14670
  function Get(params) {
14671
14671
  return __awaiter(this, void 0, void 0, function* () {
14672
14672
  let { api, queryId, req } = params;
14673
- if (!queryId || queryId <= 0) {
14674
- throw new Error("queryId is required.");
14673
+ if (!queryId) {
14674
+ throw new Error("queryId must be provided.");
14675
14675
  }
14676
14676
  if (!api) {
14677
14677
  api = ENVIRONMENT.Api().GetBruceApi();
@@ -16029,7 +16029,7 @@ var Tracking;
16029
16029
  })(Tracking || (Tracking = {}));
16030
16030
 
16031
16031
  // This is updated with the package.json version on build.
16032
- const VERSION = "6.4.6";
16032
+ const VERSION = "6.4.7";
16033
16033
 
16034
16034
  export { VERSION, Assembly, AnnDocument, CustomForm, AbstractApi, Api, BruceApi, GlobalApi, GuardianApi, ApiGetters, Calculator, Bounds, BruceEvent, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, Geometry, UTC, BruceVariable, LRUCache, GeoJson, EntityAttachmentType, EntityAttachment, EntityComment, EntityLink, EntityLod, EntityLodCategory, EntityRelationType, EntityRelation, EntitySource, EntityTag, EntityType, Entity, EntityCoords, EntityAttribute, EntityHistoricData, EntityTableView, Comment, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, ProjectViewLegacy, ProjectViewLegacyBookmark, ProjectViewBookmarkGroup, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, Account, AccountInvite, AccountFeatures, AccountLimits, AccountTemplate, AccountType, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, DataLabGroup, ImportAssembly, ImportCad, ImportCsv, ImportJson, ImportGeoJson, ImportKml, ImportedFile, ExportBrz, ExportUsd, Markup, Uploader, Plugin, ENVIRONMENT, DataSource, Scenario, Tracking };
16035
16035
  //# sourceMappingURL=bruce-models.es5.js.map