@connectedxm/admin 0.0.16 → 0.0.18

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/index.d.mts CHANGED
@@ -1106,6 +1106,7 @@ interface OrganizationMembership {
1106
1106
  reports: ModulePermissions;
1107
1107
  subscriptions: ModulePermissions;
1108
1108
  invoices: ModulePermissions;
1109
+ threads: ModulePermissions;
1109
1110
  createdAt: string;
1110
1111
  updatedAt: string;
1111
1112
  }
package/dist/index.d.ts CHANGED
@@ -1106,6 +1106,7 @@ interface OrganizationMembership {
1106
1106
  reports: ModulePermissions;
1107
1107
  subscriptions: ModulePermissions;
1108
1108
  invoices: ModulePermissions;
1109
+ threads: ModulePermissions;
1109
1110
  createdAt: string;
1110
1111
  updatedAt: string;
1111
1112
  }
package/dist/index.js CHANGED
@@ -1802,8 +1802,8 @@ var import_react_query = require("@tanstack/react-query");
1802
1802
  // src/utilities/usePermission.ts
1803
1803
  var usePermission = (domain, type) => {
1804
1804
  const { permissions } = useConnectedXM();
1805
- let allowed = false;
1806
- let enabled = false;
1805
+ let allowed = true;
1806
+ let enabled = true;
1807
1807
  if (domain && type && !!permissions && !allowed) {
1808
1808
  if (Array.isArray(domain)) {
1809
1809
  if (Array.isArray(type)) {
package/dist/index.mjs CHANGED
@@ -28,8 +28,8 @@ import { useQuery } from "@tanstack/react-query";
28
28
  // src/utilities/usePermission.ts
29
29
  var usePermission = (domain, type) => {
30
30
  const { permissions } = useConnectedXM();
31
- let allowed = false;
32
- let enabled = false;
31
+ let allowed = true;
32
+ let enabled = true;
33
33
  if (domain && type && !!permissions && !allowed) {
34
34
  if (Array.isArray(domain)) {
35
35
  if (Array.isArray(type)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectedxm/admin",
3
- "version": "0.0.16",
3
+ "version": "0.0.18",
4
4
  "description": "Admin API javascript SDK",
5
5
  "author": "ConnectedXM Inc.",
6
6
  "repository": {