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.
@@ -7938,7 +7938,7 @@
7938
7938
  ProjectView.DEFAULT_DATA_VERSION = 2;
7939
7939
  // Our Cesium web navigator.
7940
7940
  ProjectView.TYPE_WEB_3D_NAVIGATOR = "WEB_3D_NAVIGATOR";
7941
- // Our (currently WIP) 2D web navigator.
7941
+ // Our (currently WIP) 2D web navigator. Also known as our graph viewer.
7942
7942
  ProjectView.TYPE_WEB_2D_NAVIGATOR = "WEB_2D_NAVIGATOR";
7943
7943
  // Defaulting to 3D navigator for backwards compatibility.
7944
7944
  ProjectView.DEFAULT_TYPE = ProjectView.TYPE_WEB_3D_NAVIGATOR;
@@ -8596,6 +8596,8 @@
8596
8596
  (function (EPerm) {
8597
8597
  // Provides full access to a specific client account.
8598
8598
  EPerm["ADMIN"] = "ADMIN";
8599
+ // Exactly like ADMIN except with no user and organization management.
8600
+ EPerm["POWER"] = "POWER";
8599
8601
  // Provides read-only access to a specific client account.
8600
8602
  EPerm["ADMIN_VIEW"] = "ADMIN_VIEW";
8601
8603
  // Provides login access to a specific client account.
@@ -8723,7 +8725,7 @@
8723
8725
  /**
8724
8726
  * Returns if a permission is enabled for a session.
8725
8727
  * This check is case-insensitive.
8726
- * Please use 'IsAccountAdmin' and 'IsSuperAdmin' when needed as they cover all account-level perms.
8728
+ * Please use 'IsAccountAdmin', 'IsSuperAdmin', and 'IsPowerUser' when needed as they cover all account-level perms.
8727
8729
  * @param params
8728
8730
  * @returns
8729
8731
  */
@@ -8785,6 +8787,21 @@
8785
8787
  });
8786
8788
  }
8787
8789
  Session.IsAccountAdmin = IsAccountAdmin;
8790
+ /**
8791
+ * Returns if a session is a power user.
8792
+ * Power users are account admins without the ability to manage users and organizations.
8793
+ * Please use 'IsSuperAdmin' when needed as it covers all perms.
8794
+ * @param params
8795
+ * @returns
8796
+ */
8797
+ function IsPowerUser(params) {
8798
+ return IsPermEnabled({
8799
+ perm: exports.Permission.EPerm.POWER,
8800
+ accountId: params.accountId,
8801
+ session: params.session,
8802
+ });
8803
+ }
8804
+ Session.IsPowerUser = IsPowerUser;
8788
8805
  /**
8789
8806
  * Returns if a session is a super admin.
8790
8807
  * @param params
@@ -10598,7 +10615,7 @@
10598
10615
  })(exports.DataSource || (exports.DataSource = {}));
10599
10616
 
10600
10617
  // This is updated with the package.json version on build.
10601
- const VERSION = "3.5.3";
10618
+ const VERSION = "3.5.5";
10602
10619
 
10603
10620
  exports.VERSION = VERSION;
10604
10621
  exports.AbstractApi = AbstractApi;