bruce-models 0.1.8 → 0.2.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.
@@ -4247,8 +4247,8 @@ var ProjectViewBookmark;
4247
4247
  return "" + Api.ECacheKey.ProjectViewBookmark + Api.ECacheKey.Id + viewId + Api.ECacheKey.Id + bookmarkId;
4248
4248
  }
4249
4249
  ProjectViewBookmark.GetCacheKey = GetCacheKey;
4250
- function GetListCacheKey() {
4251
- return Api.ECacheKey.ProjectViewBookmark;
4250
+ function GetListCacheKey(viewId) {
4251
+ return "" + Api.ECacheKey.ProjectViewBookmark + Api.ECacheKey.Id + viewId;
4252
4252
  }
4253
4253
  ProjectViewBookmark.GetListCacheKey = GetListCacheKey;
4254
4254
  function Get(api, viewId, bookmarkId) {
@@ -4282,7 +4282,7 @@ var ProjectViewBookmark;
4282
4282
  case 1:
4283
4283
  _a.sent();
4284
4284
  api.Cache.Remove(GetCacheKey(viewId, bookmarkId));
4285
- api.Cache.Remove(GetListCacheKey());
4285
+ api.Cache.Remove(GetListCacheKey(viewId));
4286
4286
  return [2 /*return*/];
4287
4287
  }
4288
4288
  });
@@ -4297,7 +4297,7 @@ var ProjectViewBookmark;
4297
4297
  if (!viewId) {
4298
4298
  throw ("View ID is required.");
4299
4299
  }
4300
- cacheData = api.Cache.Get(GetListCacheKey());
4300
+ cacheData = api.Cache.Get(GetListCacheKey(viewId));
4301
4301
  if (cacheData) {
4302
4302
  return [2 /*return*/, cacheData];
4303
4303
  }
@@ -4320,7 +4320,7 @@ var ProjectViewBookmark;
4320
4320
  }
4321
4321
  });
4322
4322
  }); });
4323
- api.Cache.Set(GetListCacheKey(), req, Api.DEFAULT_CACHE_DURATION);
4323
+ api.Cache.Set(GetListCacheKey(viewId), req, Api.DEFAULT_CACHE_DURATION);
4324
4324
  return [2 /*return*/, req];
4325
4325
  });
4326
4326
  });
@@ -4341,7 +4341,7 @@ var ProjectViewBookmark;
4341
4341
  case 1:
4342
4342
  data = _a.sent();
4343
4343
  api.Cache.Remove(GetCacheKey(viewId, data.ID));
4344
- api.Cache.Remove(GetListCacheKey());
4344
+ api.Cache.Remove(GetListCacheKey(viewId));
4345
4345
  return [2 /*return*/, data];
4346
4346
  }
4347
4347
  });
@@ -4817,7 +4817,7 @@ var Session;
4817
4817
  Session.Get = Get;
4818
4818
  function Login(api, username, password, accountId) {
4819
4819
  return __awaiter(this, void 0, void 0, function () {
4820
- var data, ssid;
4820
+ var data, session, ssid;
4821
4821
  return __generator(this, function (_a) {
4822
4822
  switch (_a.label) {
4823
4823
  case 0:
@@ -4831,10 +4831,11 @@ var Session;
4831
4831
  })];
4832
4832
  case 1:
4833
4833
  data = _a.sent();
4834
- ssid = data === null || data === void 0 ? void 0 : data.ID;
4834
+ session = data === null || data === void 0 ? void 0 : data.Session;
4835
+ ssid = session === null || session === void 0 ? void 0 : session.ID;
4835
4836
  api.SetSessionId(ssid);
4836
4837
  api.Cache.Remove(GetCacheKey(ssid));
4837
- return [2 /*return*/, data];
4838
+ return [2 /*return*/, session];
4838
4839
  }
4839
4840
  });
4840
4841
  });