bruce-models 5.4.0 → 5.4.3

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.
@@ -749,7 +749,8 @@ var GuardianApi;
749
749
  url += ".host/";
750
750
  break;
751
751
  default:
752
- throw ("Specified Environment is not valid. SuppliedEnv=" + env);
752
+ console.warn("Supplied environment does not match default options. You will need to set the base url manually. SuppliedEnv=" + env);
753
+ return;
753
754
  }
754
755
  this.baseUrl = url;
755
756
  }
@@ -860,6 +861,9 @@ var BruceApi;
860
861
  this.loadCancelled = false;
861
862
  // Indicates if loading the regional configuration was already called.
862
863
  this.configLoadAttempted = false;
864
+ // Indicates if the init process has finished loading.
865
+ // While this is not resolved requests will be in a pending state.
866
+ this.loadProm = Promise.resolve();
863
867
  let { accountId, env, guardian, loadRegionalBaseUrl, loadConfig, loadWebSocket, dummy } = params;
864
868
  this.accountId = accountId;
865
869
  this.env = env !== null && env !== void 0 ? env : Api.EEnv.PROD;
@@ -11197,11 +11201,11 @@ var Account;
11197
11201
  */
11198
11202
  function UpdateAppSettings(params) {
11199
11203
  return __awaiter(this, void 0, void 0, function* () {
11200
- let { api, accountId: id, appId, settings: data, req: reqParams } = params;
11204
+ let { api, accountId: id, appId, settings: data, req: reqParams, override } = params;
11201
11205
  if (!api) {
11202
11206
  api = ENVIRONMENT.Api().GetGuardianApi();
11203
11207
  }
11204
- const res = yield api.POST(`account/${id}/applicationSettings/${appId}`, data, reqParams);
11208
+ const res = yield api.POST(`account/${id}/applicationSettings/${appId}?Override=${override ? "true" : "false"}`, data, reqParams);
11205
11209
  api.Cache.RemoveByStartsWith(Api.ECacheKey.Account + Api.ECacheKey.Id + id);
11206
11210
  return {
11207
11211
  settings: res
@@ -12122,7 +12126,7 @@ var User;
12122
12126
  */
12123
12127
  function UpdateSettings(params) {
12124
12128
  return __awaiter(this, void 0, void 0, function* () {
12125
- let { api, accId, userId, appId, settings, req } = params;
12129
+ let { api, accId, userId, appId, settings, req, override } = params;
12126
12130
  if (!userId || !appId) {
12127
12131
  throw ("UserId and appId are required.");
12128
12132
  }
@@ -12135,7 +12139,7 @@ var User;
12135
12139
  ClientAccountID: accId,
12136
12140
  UserID: userId
12137
12141
  };
12138
- const prom = api.POST(`user/${userId}/application/${appId}/settings`, postBody, req);
12142
+ const prom = api.POST(`user/${userId}/application/${appId}/settings?Override=${override ? "true" : "false"}`, postBody, req);
12139
12143
  api.Cache.Remove(GetSettingsCacheKey(userId, appId));
12140
12144
  return prom;
12141
12145
  });
@@ -14741,7 +14745,7 @@ var DataSource;
14741
14745
  })(DataSource || (DataSource = {}));
14742
14746
 
14743
14747
  // This is updated with the package.json version on build.
14744
- const VERSION = "5.4.0";
14748
+ const VERSION = "5.4.3";
14745
14749
 
14746
14750
  export { VERSION, 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, EntityTypeVisualSettings, EntityAttribute, EntityHistoricData, EntityTableView, Comment, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, ProjectViewLegacy, ProjectViewLegacyBookmark, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, Account, AccountInvite, AccountFeatures, AccountLimits, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, DataLabGroup, ImportAssembly, ImportCad, ImportCsv, ImportJson, ImportGeoJson, ImportKml, ImportedFile, ExportBrz, ExportUsd, Markup, Uploader, Plugin, ENVIRONMENT, DataSource };
14747
14751
  //# sourceMappingURL=bruce-models.es5.js.map