bruce-models 1.9.3 → 1.9.5

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.
@@ -1184,6 +1184,15 @@ var BruceApi;
1184
1184
  })).regions[0];
1185
1185
  if (region === null || region === void 0 ? void 0 : region.CDN) {
1186
1186
  this.EntityCdnUrl = (_b = region.CDN.entityURL) === null || _b === void 0 ? void 0 : _b[env];
1187
+ // We need to fix our configs.
1188
+ if (this.EntityCdnUrl) {
1189
+ if (this.EntityCdnUrl.includes("entitiesListForCDN")) {
1190
+ this.EntityCdnUrl = this.EntityCdnUrl.replace("<ACCOUNT>", this.accountId);
1191
+ }
1192
+ else {
1193
+ this.EntityCdnUrl = this.EntityCdnUrl.replace("<ACCOUNT>", "entitiesListForCDN/" + this.accountId);
1194
+ }
1195
+ }
1187
1196
  this.LegacyTilesetCdnUrl = (_c = region.CDN.legacyTilesetURL) === null || _c === void 0 ? void 0 : _c[env];
1188
1197
  }
1189
1198
  }
@@ -2068,11 +2077,11 @@ function parseLegacyPath(path) {
2068
2077
  if (path.startsWith("${") && path.endsWith("}")) {
2069
2078
  path = path.replace("${", "");
2070
2079
  path = path.replace("}", "");
2071
- // Split by dots.
2072
- paths.push(PathUtils.ParseLegacy(path));
2073
- // Take string as is.
2074
- paths.push([path]);
2075
2080
  }
2081
+ // Split by dots.
2082
+ paths.push(PathUtils.ParseLegacy(path));
2083
+ // Take string as is.
2084
+ paths.push([path]);
2076
2085
  // Split by backslashes.
2077
2086
  paths.push(PathUtils.Parse(path));
2078
2087
  return paths;
@@ -7473,15 +7482,15 @@ var Markup;
7473
7482
  })(Markup || (Markup = {}));
7474
7483
 
7475
7484
  var Plugin;
7476
- (function (Plugin$$1) {
7485
+ (function (Plugin) {
7477
7486
  function GetCacheKey(pluginId) {
7478
7487
  return `${Api.ECacheKey.Plugin}${Api.ECacheKey.Id}${pluginId}`;
7479
7488
  }
7480
- Plugin$$1.GetCacheKey = GetCacheKey;
7489
+ Plugin.GetCacheKey = GetCacheKey;
7481
7490
  function GetListCacheKey() {
7482
7491
  return Api.ECacheKey.Plugin;
7483
7492
  }
7484
- Plugin$$1.GetListCacheKey = GetListCacheKey;
7493
+ Plugin.GetListCacheKey = GetListCacheKey;
7485
7494
  function Get(params) {
7486
7495
  return __awaiter(this, void 0, void 0, function* () {
7487
7496
  const { api, pluginId, req } = params;
@@ -7507,7 +7516,7 @@ var Plugin;
7507
7516
  return prom;
7508
7517
  });
7509
7518
  }
7510
- Plugin$$1.Get = Get;
7519
+ Plugin.Get = Get;
7511
7520
  function GetList(params) {
7512
7521
  return __awaiter(this, void 0, void 0, function* () {
7513
7522
  const { api, req } = params;
@@ -7530,7 +7539,7 @@ var Plugin;
7530
7539
  return prom;
7531
7540
  });
7532
7541
  }
7533
- Plugin$$1.GetList = GetList;
7542
+ Plugin.GetList = GetList;
7534
7543
  function GetLoadUrl(params) {
7535
7544
  let { api, pluginId, req, cacheKey } = params;
7536
7545
  if (!cacheKey) {
@@ -7540,7 +7549,7 @@ var Plugin;
7540
7549
  indexFileUrl: `${api.GetBaseUrl()}ui.plugin/${pluginId}/file/index.jsc?version=${cacheKey}`
7541
7550
  };
7542
7551
  }
7543
- Plugin$$1.GetLoadUrl = GetLoadUrl;
7552
+ Plugin.GetLoadUrl = GetLoadUrl;
7544
7553
  })(Plugin || (Plugin = {}));
7545
7554
 
7546
7555
  export { AnnDocument, CustomForm, CustomFormContent, AbstractApi, Api, BruceApi, CamApi, IdmApi, GlobalApi, ApiGetters, Calculator, Bounds, BruceEvent, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, Geometry, UTC, BruceVariable, 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, Style, Tileset, Permission, Session, UserGroup, User, Account, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, ImportCad, ImportCsv, ImportJson, ImportKml, ImportedFile, Markup, Uploader, Plugin };