@bimdata/viewer 2.0.0-beta.82 → 2.0.0-beta.84

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bimdata/viewer",
3
3
  "type": "module",
4
- "version": "2.0.0-beta.82",
4
+ "version": "2.0.0-beta.84",
5
5
  "description": "A customizable BIM viewer.",
6
6
  "keywords": [
7
7
  "bim",
@@ -51,11 +51,11 @@
51
51
  "@babel/preset-env": "^7.22.20",
52
52
  "@bimdata/2d-engine": "2.4.0",
53
53
  "@bimdata/areas-next": "0.1.13",
54
- "@bimdata/bcf-components": "6.1.0",
54
+ "@bimdata/bcf-components": "6.2.0",
55
55
  "@bimdata/building-maker": "3.0.3",
56
56
  "@bimdata/components": "1.3.1",
57
57
  "@bimdata/design-system": "2.1.0-rc.9",
58
- "@bimdata/typescript-fetch-api-client": "9.16.0",
58
+ "@bimdata/typescript-fetch-api-client": "9.18.0",
59
59
  "@rollup/plugin-alias": "5.0.0",
60
60
  "@rollup/plugin-babel": "^6.0.3",
61
61
  "@rollup/plugin-commonjs": "^25.0.4",
package/types/api.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  declare namespace BDV {
2
2
  interface Api {
3
3
  readonly apiClient: any;
4
- readonly apiUrl: string;
5
- readonly archiveUrl: string;
4
+ readonly apiUrl?: string;
5
+ readonly archiveUrl?: string;
6
6
  readonly cloudId: number;
7
7
  readonly projectId: number;
8
8
  readonly permissions: Permissions;
@@ -91,7 +91,18 @@ declare namespace BDV {
91
91
  hasModelWritePermission: boolean;
92
92
  hasReadPermission: boolean;
93
93
  hasWritePermission: boolean;
94
- userRole: string;
94
+ userRole?: string;
95
+ user?: {
96
+ id: number;
97
+ email: string;
98
+ firstName: string;
99
+ lastName: string;
100
+ created_at: string;
101
+ updated_at: string;
102
+ provider: string;
103
+ sub: string;
104
+ profile_picture: string;
105
+ };
95
106
  tokenScopes: {
96
107
  bcf?: string[];
97
108
  model?: string[];