bruce-models 5.6.4 → 5.6.6

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.
@@ -7633,21 +7633,6 @@ var EntityCoords;
7633
7633
  EntityCoords.GetCacheKey = GetCacheKey;
7634
7634
  })(EntityCoords || (EntityCoords = {}));
7635
7635
 
7636
- /**
7637
- * Deprecated settings for entity types.
7638
- * We now store selection settings within project views.
7639
- */
7640
- var EntityTypeVisualSettings;
7641
- (function (EntityTypeVisualSettings) {
7642
- let EAction;
7643
- (function (EAction) {
7644
- EAction["LeftClick"] = "LeftClick.CustomForm.ID";
7645
- EAction["RightClick"] = "RightClick.CustomForm.ID";
7646
- EAction["DoubleClick"] = "DoubleClick.CustomForm.ID";
7647
- EAction["MouseHover"] = "MouseHover.CustomForm.ID";
7648
- })(EAction = EntityTypeVisualSettings.EAction || (EntityTypeVisualSettings.EAction = {}));
7649
- })(EntityTypeVisualSettings || (EntityTypeVisualSettings = {}));
7650
-
7651
7636
  /**
7652
7637
  * Represents a Table View record.
7653
7638
  * This is a record of how to display a collection of Entities.
@@ -10800,6 +10785,104 @@ var ProjectViewLegacyBookmark;
10800
10785
  ProjectViewLegacyBookmark.DATA_VERSION = 1;
10801
10786
  })(ProjectViewLegacyBookmark || (ProjectViewLegacyBookmark = {}));
10802
10787
 
10788
+ /**
10789
+ * Describe the "Project View Bookmark Group" concept within Nextspace.
10790
+ *
10791
+ * Groups organize bookmarks in a project view into logical containers.
10792
+ */
10793
+ var ProjectViewBookmarkGroup;
10794
+ (function (ProjectViewBookmarkGroup) {
10795
+ // Cache key for bookmark groups.
10796
+ const GROUPS_CACHE_KEY = "ProjectViewBookmarkGroupsList";
10797
+ /**
10798
+ * Retrieves a list of bookmark groups for a given project view.
10799
+ * @param params
10800
+ * @returns List of bookmark groups.
10801
+ */
10802
+ function GetGroups(params) {
10803
+ return __awaiter(this, void 0, void 0, function* () {
10804
+ let { api, viewId, req: reqParams } = params;
10805
+ if (!viewId) {
10806
+ throw "View ID is required.";
10807
+ }
10808
+ if (!api) {
10809
+ api = ENVIRONMENT.Api().GetBruceApi();
10810
+ }
10811
+ const cache = api.GetCacheItem(GROUPS_CACHE_KEY, reqParams);
10812
+ if (cache === null || cache === void 0 ? void 0 : cache.found) {
10813
+ return cache.data;
10814
+ }
10815
+ const prom = new Promise((res, rej) => __awaiter(this, void 0, void 0, function* () {
10816
+ try {
10817
+ const { Items } = yield api.GET(`ui.view/${viewId}/slideGroups`, Api.PrepReqParams(reqParams));
10818
+ res(Items || []);
10819
+ }
10820
+ catch (e) {
10821
+ rej(e);
10822
+ }
10823
+ }));
10824
+ api.SetCacheItem({
10825
+ key: GROUPS_CACHE_KEY,
10826
+ value: prom,
10827
+ req: reqParams,
10828
+ duration: Api.DEFAULT_CACHE_DURATION,
10829
+ });
10830
+ return prom;
10831
+ });
10832
+ }
10833
+ ProjectViewBookmarkGroup.GetGroups = GetGroups;
10834
+ /**
10835
+ * Updates or creates a bookmark group.
10836
+ * @param params
10837
+ * @returns Updated group data.
10838
+ */
10839
+ function UpdateGroup(params) {
10840
+ return __awaiter(this, void 0, void 0, function* () {
10841
+ let { api, viewId, group, req: reqParams } = params;
10842
+ if (!api) {
10843
+ api = ENVIRONMENT.Api().GetBruceApi();
10844
+ }
10845
+ const res = yield api.POST(`ui.view/${viewId}/slideGroup/${group.ID ? group.ID : 0}`, group, Api.PrepReqParams(reqParams));
10846
+ api.Cache.Remove(GROUPS_CACHE_KEY);
10847
+ return res;
10848
+ });
10849
+ }
10850
+ ProjectViewBookmarkGroup.UpdateGroup = UpdateGroup;
10851
+ /**
10852
+ * Updates the display order of bookmark groups.
10853
+ * @param params
10854
+ */
10855
+ function UpdateGroupOrder(params) {
10856
+ return __awaiter(this, void 0, void 0, function* () {
10857
+ let { api, viewId, groupIds, req: reqParams } = params;
10858
+ if (!(groupIds === null || groupIds === void 0 ? void 0 : groupIds.length)) {
10859
+ return;
10860
+ }
10861
+ if (!api) {
10862
+ api = ENVIRONMENT.Api().GetBruceApi();
10863
+ }
10864
+ yield api.POST(`ui.view/${viewId}/slideGroups/setOrder`, { "UI.SlideGroup.ID": groupIds }, Api.PrepReqParams(reqParams));
10865
+ api.Cache.Remove(GROUPS_CACHE_KEY);
10866
+ });
10867
+ }
10868
+ ProjectViewBookmarkGroup.UpdateGroupOrder = UpdateGroupOrder;
10869
+ /**
10870
+ * Deletes a bookmark group.
10871
+ * @param params
10872
+ */
10873
+ function DeleteGroup(params) {
10874
+ return __awaiter(this, void 0, void 0, function* () {
10875
+ let { api, viewId, groupId, req: reqParams } = params;
10876
+ if (!api) {
10877
+ api = ENVIRONMENT.Api().GetBruceApi();
10878
+ }
10879
+ yield api.DELETE(`ui.view/${viewId}/slideGroup/${groupId}`, Api.PrepReqParams(reqParams));
10880
+ api.Cache.Remove(GROUPS_CACHE_KEY);
10881
+ });
10882
+ }
10883
+ ProjectViewBookmarkGroup.DeleteGroup = DeleteGroup;
10884
+ })(ProjectViewBookmarkGroup || (ProjectViewBookmarkGroup = {}));
10885
+
10803
10886
  /**
10804
10887
  * Describes the "Pending Action" concept within Nextspace.
10805
10888
  * A pending action is a record of a server-side background process.
@@ -15122,7 +15205,7 @@ var Scenario;
15122
15205
  })(Scenario || (Scenario = {}));
15123
15206
 
15124
15207
  // This is updated with the package.json version on build.
15125
- const VERSION = "5.6.4";
15208
+ const VERSION = "5.6.6";
15126
15209
 
15127
- export { VERSION, 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, EntityTypeVisualSettings, EntityAttribute, EntityHistoricData, EntityTableView, Comment, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, ProjectViewLegacy, ProjectViewLegacyBookmark, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, 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 };
15210
+ export { VERSION, 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, 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 };
15128
15211
  //# sourceMappingURL=bruce-models.es5.js.map