Skip to content

Commit

Permalink
PATCH: fix project-access-token nullable fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Bimdata-io committed Jul 30, 2024
1 parent 5123339 commit eb98f34
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 20 deletions.
2 changes: 2 additions & 0 deletions docs/CheckProjectAccess.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ Name | Type | Description | Notes

* `25` (value: `25`)

* `null` (value: `null`)




2 changes: 1 addition & 1 deletion docs/CollaborationApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions docs/WriteFolderRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]


Expand Down
4 changes: 2 additions & 2 deletions src/api/CollaborationApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
10 changes: 8 additions & 2 deletions src/model/CheckProjectAccess.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -150,7 +150,13 @@ CheckProjectAccess['UserRoleEnum'] = {
* value: 25
* @const
*/
"25": 25
"25": 25,

/**
* value: null
* @const
*/
"null": null
};


Expand Down
18 changes: 9 additions & 9 deletions src/model/WriteFolderRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand All @@ -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
Expand All @@ -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.<module:model/WriteFolderRequest>} children
Expand Down
8 changes: 4 additions & 4 deletions test/model/WriteFolderRequest.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
Expand All @@ -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();
});
Expand Down

0 comments on commit eb98f34

Please sign in to comment.