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.es5.js
CHANGED
|
@@ -10976,8 +10976,8 @@ var ProjectViewBookmark;
|
|
|
10976
10976
|
function Get(params) {
|
|
10977
10977
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10978
10978
|
let { api, viewId, bookmarkId, req: reqParams } = params;
|
|
10979
|
-
if (!
|
|
10980
|
-
throw ("
|
|
10979
|
+
if (!bookmarkId) {
|
|
10980
|
+
throw ("Bookmark ID is required.");
|
|
10981
10981
|
}
|
|
10982
10982
|
if (!api) {
|
|
10983
10983
|
api = ENVIRONMENT.Api().GetBruceApi();
|
|
@@ -10989,7 +10989,14 @@ var ProjectViewBookmark;
|
|
|
10989
10989
|
}
|
|
10990
10990
|
const prom = new Promise((res, rej) => __awaiter(this, void 0, void 0, function* () {
|
|
10991
10991
|
try {
|
|
10992
|
-
|
|
10992
|
+
let url;
|
|
10993
|
+
if (viewId) {
|
|
10994
|
+
url = `ui.view/${viewId}/slide/${bookmarkId}`;
|
|
10995
|
+
}
|
|
10996
|
+
else {
|
|
10997
|
+
url = `slide/${bookmarkId}`;
|
|
10998
|
+
}
|
|
10999
|
+
const data = yield api.GET(url, Api.PrepReqParams(reqParams));
|
|
10993
11000
|
res({
|
|
10994
11001
|
bookmark: data
|
|
10995
11002
|
});
|
|
@@ -11127,7 +11134,10 @@ var ProjectViewBookmark;
|
|
|
11127
11134
|
* @returns
|
|
11128
11135
|
*/
|
|
11129
11136
|
function GetCacheKey(viewId, bookmarkId) {
|
|
11130
|
-
|
|
11137
|
+
if (viewId) {
|
|
11138
|
+
return `${Api.ECacheKey.ProjectViewBookmark}${Api.ECacheKey.Id}${viewId}${Api.ECacheKey.Id}${bookmarkId}`;
|
|
11139
|
+
}
|
|
11140
|
+
return `${Api.ECacheKey.ProjectViewBookmark}${Api.ECacheKey.Id}${bookmarkId}`;
|
|
11131
11141
|
}
|
|
11132
11142
|
ProjectViewBookmark.GetCacheKey = GetCacheKey;
|
|
11133
11143
|
})(ProjectViewBookmark || (ProjectViewBookmark = {}));
|
|
@@ -16423,7 +16433,7 @@ var Tracking;
|
|
|
16423
16433
|
})(Tracking || (Tracking = {}));
|
|
16424
16434
|
|
|
16425
16435
|
// This is updated with the package.json version on build.
|
|
16426
|
-
const VERSION = "6.7.
|
|
16436
|
+
const VERSION = "6.7.4";
|
|
16427
16437
|
|
|
16428
16438
|
export { VERSION, Assembly, 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, EntityAttribute, EntityHistoricData, EntityTableView, Comment, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, ProjectViewLegacy, ProjectViewLegacyBookmark, ProjectViewBookmarkGroup, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, UserMfaMethod, Account, AccountInvite, AccountFeatures, AccountLimits, AccountTemplate, AccountType, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, DataLabGroup, ImportAssembly, ImportCad, ImportCsv, ImportJson, ImportGeoJson, ImportKml, ImportedFile, ExportBrz, ExportUsd, Markup, Uploader, Plugin, ENVIRONMENT, DataSource, Scenario, Tracking };
|
|
16429
16439
|
//# sourceMappingURL=bruce-models.es5.js.map
|