bruce-models 0.2.7 → 0.2.9

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.
@@ -5057,6 +5057,9 @@
5057
5057
  case 1:
5058
5058
  res = _a.sent();
5059
5059
  api.Cache.RemoveByContains(exports.Api.ECacheKey.User + exports.Api.ECacheKey.Id + res.ID);
5060
+ if (data.Email) {
5061
+ api.Cache.RemoveByContains(exports.Api.ECacheKey.User + exports.Api.ECacheKey.UserEmail + data.Email);
5062
+ }
5060
5063
  return [2 /*return*/, res];
5061
5064
  }
5062
5065
  });
@@ -5399,7 +5402,25 @@
5399
5402
  EDbRegion["Paris"] = "EU";
5400
5403
  EDbRegion["Singapore"] = "SE";
5401
5404
  EDbRegion["Australia"] = "AU";
5402
- })(EDbRegion || (EDbRegion = {}));
5405
+ })(EDbRegion = Account.EDbRegion || (Account.EDbRegion = {}));
5406
+ Account.DbRegions = [
5407
+ {
5408
+ name: "North California, USA",
5409
+ value: EDbRegion.USA
5410
+ },
5411
+ {
5412
+ name: "Paris, France",
5413
+ value: EDbRegion.Paris
5414
+ },
5415
+ {
5416
+ name: "Singapore",
5417
+ value: EDbRegion.Singapore
5418
+ },
5419
+ {
5420
+ name: "Sydney, Australia",
5421
+ value: EDbRegion.Australia
5422
+ }
5423
+ ];
5403
5424
  function Get(api, id) {
5404
5425
  return __awaiter(this, void 0, void 0, function () {
5405
5426
  var cacheData, req;
@@ -5539,7 +5560,7 @@
5539
5560
  "Name": name,
5540
5561
  "DBLocation": region
5541
5562
  };
5542
- res = api.POST("clientAccount/" + id, reqData);
5563
+ res = api.POST("clientAccount/" + id, reqData, exports.Api.PrepReqParams());
5543
5564
  api.Cache.Remove(GetListCacheKey(api.GetSessionId()));
5544
5565
  return [2 /*return*/, res];
5545
5566
  });