bruce-models 3.5.3 → 3.5.5

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.
@@ -8119,7 +8119,7 @@ var ProjectView;
8119
8119
  ProjectView.DEFAULT_DATA_VERSION = 2;
8120
8120
  // Our Cesium web navigator.
8121
8121
  ProjectView.TYPE_WEB_3D_NAVIGATOR = "WEB_3D_NAVIGATOR";
8122
- // Our (currently WIP) 2D web navigator.
8122
+ // Our (currently WIP) 2D web navigator. Also known as our graph viewer.
8123
8123
  ProjectView.TYPE_WEB_2D_NAVIGATOR = "WEB_2D_NAVIGATOR";
8124
8124
  // Defaulting to 3D navigator for backwards compatibility.
8125
8125
  ProjectView.DEFAULT_TYPE = ProjectView.TYPE_WEB_3D_NAVIGATOR;
@@ -8801,6 +8801,8 @@ var Permission;
8801
8801
  (function (EPerm) {
8802
8802
  // Provides full access to a specific client account.
8803
8803
  EPerm["ADMIN"] = "ADMIN";
8804
+ // Exactly like ADMIN except with no user and organization management.
8805
+ EPerm["POWER"] = "POWER";
8804
8806
  // Provides read-only access to a specific client account.
8805
8807
  EPerm["ADMIN_VIEW"] = "ADMIN_VIEW";
8806
8808
  // Provides login access to a specific client account.
@@ -8934,7 +8936,7 @@ var Session;
8934
8936
  /**
8935
8937
  * Returns if a permission is enabled for a session.
8936
8938
  * This check is case-insensitive.
8937
- * Please use 'IsAccountAdmin' and 'IsSuperAdmin' when needed as they cover all account-level perms.
8939
+ * Please use 'IsAccountAdmin', 'IsSuperAdmin', and 'IsPowerUser' when needed as they cover all account-level perms.
8938
8940
  * @param params
8939
8941
  * @returns
8940
8942
  */
@@ -8996,6 +8998,21 @@ var Session;
8996
8998
  });
8997
8999
  }
8998
9000
  Session.IsAccountAdmin = IsAccountAdmin;
9001
+ /**
9002
+ * Returns if a session is a power user.
9003
+ * Power users are account admins without the ability to manage users and organizations.
9004
+ * Please use 'IsSuperAdmin' when needed as it covers all perms.
9005
+ * @param params
9006
+ * @returns
9007
+ */
9008
+ function IsPowerUser(params) {
9009
+ return IsPermEnabled({
9010
+ perm: Permission.EPerm.POWER,
9011
+ accountId: params.accountId,
9012
+ session: params.session,
9013
+ });
9014
+ }
9015
+ Session.IsPowerUser = IsPowerUser;
8999
9016
  /**
9000
9017
  * Returns if a session is a super admin.
9001
9018
  * @param params
@@ -10851,7 +10868,7 @@ var DataSource;
10851
10868
  })(DataSource || (DataSource = {}));
10852
10869
 
10853
10870
  // This is updated with the package.json version on build.
10854
- const VERSION = "3.5.3";
10871
+ const VERSION = "3.5.5";
10855
10872
 
10856
10873
  export { VERSION, AnnDocument, CustomForm, AbstractApi, Api, BruceApi, GlobalApi, GuardianApi, ApiGetters, Calculator, Bounds, BruceEvent, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, Geometry, UTC, BruceVariable, LRUCache, EntityAttachmentType, EntityAttachment, EntityComment, EntityLink, EntityLod, EntityLodCategory, EntityRelationType, EntityRelation, EntitySource, EntityTag, EntityType, Entity, EntityCoords, EntityTypeVisualSettings, EntityAttribute, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, ProjectViewLegacy, ProjectViewLegacyBookmark, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, Account, AccountInvite, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, ImportCad, ImportCsv, ImportJson, ImportKml, ImportedFile, Markup, Uploader, Plugin, ENVIRONMENT, DataSource };
10857
10874
  //# sourceMappingURL=bruce-models.es5.js.map