bruce-models 6.7.3 → 6.7.4

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.
@@ -10782,8 +10782,8 @@
10782
10782
  function Get(params) {
10783
10783
  return __awaiter(this, void 0, void 0, function* () {
10784
10784
  let { api, viewId, bookmarkId, req: reqParams } = params;
10785
- if (!viewId || !bookmarkId) {
10786
- throw ("View ID and Bookmark ID are required.");
10785
+ if (!bookmarkId) {
10786
+ throw ("Bookmark ID is required.");
10787
10787
  }
10788
10788
  if (!api) {
10789
10789
  api = exports.ENVIRONMENT.Api().GetBruceApi();
@@ -10795,7 +10795,14 @@
10795
10795
  }
10796
10796
  const prom = new Promise((res, rej) => __awaiter(this, void 0, void 0, function* () {
10797
10797
  try {
10798
- const data = yield api.GET(`ui.view/${viewId}/slide/${bookmarkId}`, exports.Api.PrepReqParams(reqParams));
10798
+ let url;
10799
+ if (viewId) {
10800
+ url = `ui.view/${viewId}/slide/${bookmarkId}`;
10801
+ }
10802
+ else {
10803
+ url = `slide/${bookmarkId}`;
10804
+ }
10805
+ const data = yield api.GET(url, exports.Api.PrepReqParams(reqParams));
10799
10806
  res({
10800
10807
  bookmark: data
10801
10808
  });
@@ -10933,7 +10940,10 @@
10933
10940
  * @returns
10934
10941
  */
10935
10942
  function GetCacheKey(viewId, bookmarkId) {
10936
- return `${exports.Api.ECacheKey.ProjectViewBookmark}${exports.Api.ECacheKey.Id}${viewId}${exports.Api.ECacheKey.Id}${bookmarkId}`;
10943
+ if (viewId) {
10944
+ return `${exports.Api.ECacheKey.ProjectViewBookmark}${exports.Api.ECacheKey.Id}${viewId}${exports.Api.ECacheKey.Id}${bookmarkId}`;
10945
+ }
10946
+ return `${exports.Api.ECacheKey.ProjectViewBookmark}${exports.Api.ECacheKey.Id}${bookmarkId}`;
10937
10947
  }
10938
10948
  ProjectViewBookmark.GetCacheKey = GetCacheKey;
10939
10949
  })(exports.ProjectViewBookmark || (exports.ProjectViewBookmark = {}));
@@ -16108,7 +16118,7 @@
16108
16118
  })(exports.Tracking || (exports.Tracking = {}));
16109
16119
 
16110
16120
  // This is updated with the package.json version on build.
16111
- const VERSION = "6.7.3";
16121
+ const VERSION = "6.7.4";
16112
16122
 
16113
16123
  exports.VERSION = VERSION;
16114
16124
  exports.AbstractApi = AbstractApi;