diff --git a/docs/CheckProjectAccess.md b/docs/CheckProjectAccess.md index f52e51d..4deed95 100644 --- a/docs/CheckProjectAccess.md +++ b/docs/CheckProjectAccess.md @@ -23,6 +23,8 @@ Name | Type | Description | Notes * `25` (value: `25`) +* `null` (value: `null`) + diff --git a/docs/CollaborationApi.md b/docs/CollaborationApi.md index 0465e25..befd39b 100644 --- a/docs/CollaborationApi.md +++ b/docs/CollaborationApi.md @@ -961,7 +961,7 @@ Name | Type | Description | Notes Create a document -Create a document. If the document is one of {'OBJ', 'IFC', 'DXF', 'GLTF', 'DWG', 'POINT_CLOUD'}, a model will be created and attached to this document Required scopes: document:write +Create a document. If the document is one of {'DWG', 'OBJ', 'DXF', 'POINT_CLOUD', 'IFC', 'GLTF'}, a model will be created and attached to this document Required scopes: document:write ### Example diff --git a/docs/WriteFolderRequest.md b/docs/WriteFolderRequest.md index ae3f8f8..7db7240 100644 --- a/docs/WriteFolderRequest.md +++ b/docs/WriteFolderRequest.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**parentId** | **Number** | | [optional] -**name** | **String** | Name of the folder | **defaultPermission** | **Number** | Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write | [optional] +**name** | **String** | Name of the folder | +**parentId** | **Number** | | [optional] **children** | [**[WriteFolderRequest]**](WriteFolderRequest.md) | | [optional] diff --git a/src/api/CollaborationApi.js b/src/api/CollaborationApi.js index 5834fd8..9418fcd 100644 --- a/src/api/CollaborationApi.js +++ b/src/api/CollaborationApi.js @@ -866,7 +866,7 @@ export default class CollaborationApi { /** * Create a document - * Create a document. If the document is one of {'OBJ', 'IFC', 'DXF', 'GLTF', 'DWG', 'POINT_CLOUD'}, a model will be created and attached to this document Required scopes: document:write + * Create a document. If the document is one of {'DWG', 'OBJ', 'DXF', 'POINT_CLOUD', 'IFC', 'GLTF'}, a model will be created and attached to this document Required scopes: document:write * @param {Number} cloudPk A unique integer value identifying this cloud. * @param {Number} projectPk A unique integer value identifying this project. * @param {String} name Shown name of the file @@ -932,7 +932,7 @@ export default class CollaborationApi { /** * Create a document - * Create a document. If the document is one of {'OBJ', 'IFC', 'DXF', 'GLTF', 'DWG', 'POINT_CLOUD'}, a model will be created and attached to this document Required scopes: document:write + * Create a document. If the document is one of {'DWG', 'OBJ', 'DXF', 'POINT_CLOUD', 'IFC', 'GLTF'}, a model will be created and attached to this document Required scopes: document:write * @param {Number} cloudPk A unique integer value identifying this cloud. * @param {Number} projectPk A unique integer value identifying this project. * @param {String} name Shown name of the file diff --git a/src/model/CheckProjectAccess.js b/src/model/CheckProjectAccess.js index 8694981..3311dea 100644 --- a/src/model/CheckProjectAccess.js +++ b/src/model/CheckProjectAccess.js @@ -77,7 +77,7 @@ class CheckProjectAccess { obj['user_role'] = ApiClient.convertToType(data['user_role'], 'Number'); } if (data.hasOwnProperty('user')) { - obj['user'] = User.constructFromObject(data['user']); + obj['user'] = ApiClient.convertToType(data['user'], User); } } return obj; @@ -150,7 +150,13 @@ CheckProjectAccess['UserRoleEnum'] = { * value: 25 * @const */ - "25": 25 + "25": 25, + + /** + * value: null + * @const + */ + "null": null }; diff --git a/src/model/WriteFolderRequest.js b/src/model/WriteFolderRequest.js index 5c43b8c..0f12aa2 100644 --- a/src/model/WriteFolderRequest.js +++ b/src/model/WriteFolderRequest.js @@ -49,14 +49,14 @@ class WriteFolderRequest { if (data) { obj = obj || new WriteFolderRequest(); - if (data.hasOwnProperty('parent_id')) { - obj['parent_id'] = ApiClient.convertToType(data['parent_id'], 'Number'); + if (data.hasOwnProperty('default_permission')) { + obj['default_permission'] = ApiClient.convertToType(data['default_permission'], 'Number'); } if (data.hasOwnProperty('name')) { obj['name'] = ApiClient.convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('default_permission')) { - obj['default_permission'] = ApiClient.convertToType(data['default_permission'], 'Number'); + if (data.hasOwnProperty('parent_id')) { + obj['parent_id'] = ApiClient.convertToType(data['parent_id'], 'Number'); } if (data.hasOwnProperty('children')) { obj['children'] = ApiClient.convertToType(data['children'], [WriteFolderRequest]); @@ -69,9 +69,10 @@ class WriteFolderRequest { } /** - * @member {Number} parent_id + * Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write + * @member {module:model/WriteFolderRequest.DefaultPermissionEnum} default_permission */ -WriteFolderRequest.prototype['parent_id'] = undefined; +WriteFolderRequest.prototype['default_permission'] = undefined; /** * Name of the folder @@ -80,10 +81,9 @@ WriteFolderRequest.prototype['parent_id'] = undefined; WriteFolderRequest.prototype['name'] = undefined; /** - * Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write - * @member {module:model/WriteFolderRequest.DefaultPermissionEnum} default_permission + * @member {Number} parent_id */ -WriteFolderRequest.prototype['default_permission'] = undefined; +WriteFolderRequest.prototype['parent_id'] = undefined; /** * @member {Array.} children diff --git a/test/model/WriteFolderRequest.spec.js b/test/model/WriteFolderRequest.spec.js index 41c3fa1..d0d90b0 100644 --- a/test/model/WriteFolderRequest.spec.js +++ b/test/model/WriteFolderRequest.spec.js @@ -54,8 +54,8 @@ //expect(instance).to.be.a(bimdata.WriteFolderRequest); }); - it('should have the property parentId (base name: "parent_id")', function() { - // uncomment below and update the code to test the property parentId + it('should have the property defaultPermission (base name: "default_permission")', function() { + // uncomment below and update the code to test the property defaultPermission //var instance = new bimdata.WriteFolderRequest(); //expect(instance).to.be(); }); @@ -66,8 +66,8 @@ //expect(instance).to.be(); }); - it('should have the property defaultPermission (base name: "default_permission")', function() { - // uncomment below and update the code to test the property defaultPermission + it('should have the property parentId (base name: "parent_id")', function() { + // uncomment below and update the code to test the property parentId //var instance = new bimdata.WriteFolderRequest(); //expect(instance).to.be(); });