@bimdata/viewer 2.0.0-beta.101 → 2.0.0-beta.103

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/index.d.ts CHANGED
@@ -63,7 +63,6 @@ declare namespace BDV {
63
63
  offline?: {
64
64
  enabled: boolean;
65
65
  dataFile: string;
66
- fallbackToNetwork?: boolean;
67
66
  };
68
67
 
69
68
  /** @deprecated use `modelIds` instead */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bimdata/viewer",
3
3
  "type": "module",
4
- "version": "2.0.0-beta.101",
4
+ "version": "2.0.0-beta.103",
5
5
  "description": "A customizable BIM viewer.",
6
6
  "keywords": [
7
7
  "bim",
package/types/api.d.ts CHANGED
@@ -94,6 +94,8 @@ declare namespace BDV {
94
94
  }
95
95
 
96
96
  interface Permissions {
97
+ hasReadPermission: boolean;
98
+ hasWritePermission: boolean;
97
99
  hasAdminPermission: boolean;
98
100
  hasBcfReadPermission: boolean;
99
101
  hasBcfWritePermission: boolean;
@@ -101,8 +103,16 @@ declare namespace BDV {
101
103
  hasDocWritePermission: boolean;
102
104
  hasModelReadPermission: boolean;
103
105
  hasModelWritePermission: boolean;
104
- hasReadPermission: boolean;
105
- hasWritePermission: boolean;
106
+ tokenScopes: {
107
+ bcf?: string[];
108
+ document?: string[];
109
+ model?: string[];
110
+ };
111
+ usableScopes: {
112
+ bcf?: string[];
113
+ document?: string[];
114
+ model?: string[];
115
+ };
106
116
  userRole?: string;
107
117
  user?: {
108
118
  id: number;
@@ -115,15 +125,5 @@ declare namespace BDV {
115
125
  sub: string;
116
126
  profile_picture: string;
117
127
  };
118
- tokenScopes: {
119
- bcf?: string[];
120
- model?: string[];
121
- document?: string[];
122
- };
123
- usableScopes: {
124
- bcf?: string[];
125
- model?: string[];
126
- document?: string[];
127
- };
128
128
  }
129
129
  }