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.
- package/dist/bruce-models.es5.js +15 -5
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +15 -5
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/project/project-view-bookmark.js +14 -4
- package/dist/lib/project/project-view-bookmark.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/project/project-view-bookmark.d.ts +1 -1
- package/package.json +1 -1
package/dist/bruce-models.umd.js
CHANGED
|
@@ -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 (!
|
|
10786
|
-
throw ("
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
16121
|
+
const VERSION = "6.7.4";
|
|
16112
16122
|
|
|
16113
16123
|
exports.VERSION = VERSION;
|
|
16114
16124
|
exports.AbstractApi = AbstractApi;
|