Skip to content

Commit 548f8cf

Browse files
committed
MINOR: add user deail to check-access response (#707)
1 parent d2c284a commit 548f8cf

File tree

5 files changed

+19
-3
lines changed

5 files changed

+19
-3
lines changed

docs/CheckProjectAccess.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
1010
**tokenScopes** | **[String]** | |
1111
**usableScopes** | **[String]** | Some tokens may have write scopes (eg: model:write) but the user of the token is a guest in the project so they can't use the scopes. |
1212
**userRole** | **Number** | * `100` - admin * `50` - user * `25` - guest | [optional]
13+
**user** | [**User**](User.md) | | [optional]
1314

1415

1516

docs/CollaborationApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -955,7 +955,7 @@ Name | Type | Description | Notes
955955
956956
Create a document
957957

958-
Create a document. If the document is one of {'GLTF', 'DWG', 'DXF', 'POINT_CLOUD', 'IFC', 'OBJ'}, a model will be created and attached to this document Required scopes: document:write
958+
Create a document. If the document is one of {'IFC', 'DXF', 'GLTF', 'OBJ', 'DWG', 'POINT_CLOUD'}, a model will be created and attached to this document Required scopes: document:write
959959

960960
### Example
961961

src/api/CollaborationApi.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@ export default class CollaborationApi {
858858

859859
/**
860860
* Create a document
861-
* Create a document. If the document is one of {'GLTF', 'DWG', 'DXF', 'POINT_CLOUD', 'IFC', 'OBJ'}, a model will be created and attached to this document Required scopes: document:write
861+
* Create a document. If the document is one of {'IFC', 'DXF', 'GLTF', 'OBJ', 'DWG', 'POINT_CLOUD'}, a model will be created and attached to this document Required scopes: document:write
862862
* @param {Number} cloudPk A unique integer value identifying this cloud.
863863
* @param {Number} projectPk A unique integer value identifying this project.
864864
* @param {String} name Shown name of the file
@@ -924,7 +924,7 @@ export default class CollaborationApi {
924924

925925
/**
926926
* Create a document
927-
* Create a document. If the document is one of {'GLTF', 'DWG', 'DXF', 'POINT_CLOUD', 'IFC', 'OBJ'}, a model will be created and attached to this document Required scopes: document:write
927+
* Create a document. If the document is one of {'IFC', 'DXF', 'GLTF', 'OBJ', 'DWG', 'POINT_CLOUD'}, a model will be created and attached to this document Required scopes: document:write
928928
* @param {Number} cloudPk A unique integer value identifying this cloud.
929929
* @param {Number} projectPk A unique integer value identifying this project.
930930
* @param {String} name Shown name of the file

src/model/CheckProjectAccess.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
*/
1313

1414
import ApiClient from '../ApiClient';
15+
import User from './User';
1516

1617
/**
1718
* The CheckProjectAccess model module.
@@ -75,6 +76,9 @@ class CheckProjectAccess {
7576
if (data.hasOwnProperty('user_role')) {
7677
obj['user_role'] = ApiClient.convertToType(data['user_role'], 'Number');
7778
}
79+
if (data.hasOwnProperty('user')) {
80+
obj['user'] = User.constructFromObject(data['user']);
81+
}
7882
}
7983
return obj;
8084
}
@@ -114,6 +118,11 @@ CheckProjectAccess.prototype['usable_scopes'] = undefined;
114118
*/
115119
CheckProjectAccess.prototype['user_role'] = undefined;
116120

121+
/**
122+
* @member {module:model/User} user
123+
*/
124+
CheckProjectAccess.prototype['user'] = undefined;
125+
117126

118127

119128

test/model/CheckProjectAccess.spec.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@
9090
//expect(instance).to.be();
9191
});
9292

93+
it('should have the property user (base name: "user")', function() {
94+
// uncomment below and update the code to test the property user
95+
//var instance = new bimdata.CheckProjectAccess();
96+
//expect(instance).to.be();
97+
});
98+
9399
});
94100

95101
}));

0 commit comments

Comments
 (0)