Skip to content

Commit 00845c2

Browse files
committed
PATCH: fix swagger with project children
1 parent 969e640 commit 00845c2

File tree

10 files changed

+21
-181
lines changed

10 files changed

+21
-181
lines changed

.openapi-generator/FILES

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@ docs/ProjectInvitationRequest.md
156156
docs/ProjectRequest.md
157157
docs/ProjectRole.md
158158
docs/ProjectSize.md
159-
docs/ProjectWithChildren.md
160159
docs/Property.md
161160
docs/PropertyDefinition.md
162161
docs/PropertyDefinitionRequest.md
@@ -411,7 +410,6 @@ src/model/ProjectInvitationRequest.js
411410
src/model/ProjectRequest.js
412411
src/model/ProjectRole.js
413412
src/model/ProjectSize.js
414-
src/model/ProjectWithChildren.js
415413
src/model/Property.js
416414
src/model/PropertyDefinition.js
417415
src/model/PropertyDefinitionRequest.js
@@ -660,7 +658,6 @@ test/model/ProjectInvitationRequest.spec.js
660658
test/model/ProjectRequest.spec.js
661659
test/model/ProjectRole.spec.js
662660
test/model/ProjectSize.spec.js
663-
test/model/ProjectWithChildren.spec.js
664661
test/model/Property.spec.js
665662
test/model/PropertyDefinition.spec.js
666663
test/model/PropertyDefinitionRequest.spec.js

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,6 @@ Class | Method | HTTP request | Description
633633
- [bimdata.ProjectRequest](docs/ProjectRequest.md)
634634
- [bimdata.ProjectRole](docs/ProjectRole.md)
635635
- [bimdata.ProjectSize](docs/ProjectSize.md)
636-
- [bimdata.ProjectWithChildren](docs/ProjectWithChildren.md)
637636
- [bimdata.Property](docs/Property.md)
638637
- [bimdata.PropertyDefinition](docs/PropertyDefinition.md)
639638
- [bimdata.PropertyDefinitionRequest](docs/PropertyDefinitionRequest.md)

docs/CollaborationApi.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,7 @@ Name | Type | Description | Notes
960960
961961
Create a document
962962

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

965965
### Example
966966

@@ -4137,7 +4137,7 @@ Name | Type | Description | Notes
41374137

41384138
## getProject
41394139

4140-
> ProjectWithChildren getProject(cloudPk, id)
4140+
> Project getProject(cloudPk, id)
41414141
41424142
Retrieve a project
41434143

@@ -4186,7 +4186,7 @@ Name | Type | Description | Notes
41864186

41874187
### Return type
41884188

4189-
[**ProjectWithChildren**](ProjectWithChildren.md)
4189+
[**Project**](Project.md)
41904190

41914191
### Authorization
41924192

docs/ProjectWithChildren.md

Lines changed: 0 additions & 29 deletions
This file was deleted.

docs/WriteFolderRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**defaultPermission** | **Number** | Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write | [optional]
8-
**name** | **String** | Name of the folder |
98
**parentId** | **Number** | | [optional]
9+
**name** | **String** | Name of the folder |
1010
**children** | [**[WriteFolderRequest]**](WriteFolderRequest.md) | | [optional]
1111

1212

src/api/CollaborationApi.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ import ProjectInvitation from '../model/ProjectInvitation';
5353
import ProjectInvitationRequest from '../model/ProjectInvitationRequest';
5454
import ProjectRequest from '../model/ProjectRequest';
5555
import ProjectSize from '../model/ProjectSize';
56-
import ProjectWithChildren from '../model/ProjectWithChildren';
5756
import SelfUser from '../model/SelfUser';
5857
import Size from '../model/Size';
5958
import Tag from '../model/Tag';
@@ -867,7 +866,7 @@ export default class CollaborationApi {
867866

868867
/**
869868
* Create a document
870-
* Create a document. If the document is one of {'DXF', 'IFC', 'POINT_CLOUD', 'GLTF', 'DWG', 'OBJ'}, a model will be created and attached to this document Required scopes: document:write
869+
* Create a document. If the document is one of {'GLTF', 'OBJ', 'IFC', 'DWG', 'DXF', 'POINT_CLOUD'}, a model will be created and attached to this document Required scopes: document:write
871870
* @param {Number} cloudPk A unique integer value identifying this cloud.
872871
* @param {Number} projectPk A unique integer value identifying this project.
873872
* @param {String} name Shown name of the file
@@ -933,7 +932,7 @@ export default class CollaborationApi {
933932

934933
/**
935934
* Create a document
936-
* Create a document. If the document is one of {'DXF', 'IFC', 'POINT_CLOUD', 'GLTF', 'DWG', 'OBJ'}, a model will be created and attached to this document Required scopes: document:write
935+
* Create a document. If the document is one of {'GLTF', 'OBJ', 'IFC', 'DWG', 'DXF', 'POINT_CLOUD'}, a model will be created and attached to this document Required scopes: document:write
937936
* @param {Number} cloudPk A unique integer value identifying this cloud.
938937
* @param {Number} projectPk A unique integer value identifying this project.
939938
* @param {String} name Shown name of the file
@@ -3920,7 +3919,7 @@ export default class CollaborationApi {
39203919
* Retrieve a project
39213920
* @param {Number} cloudPk
39223921
* @param {Number} id A unique integer value identifying this project.
3923-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ProjectWithChildren} and HTTP response
3922+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
39243923
*/
39253924
getProjectWithHttpInfo(cloudPk, id) {
39263925
let postBody = null;
@@ -3947,7 +3946,7 @@ export default class CollaborationApi {
39473946
let authNames = ['ApiKey', 'BIMData_Connect', 'BIMData_Connect', 'Bearer'];
39483947
let contentTypes = [];
39493948
let accepts = ['application/json'];
3950-
let returnType = ProjectWithChildren;
3949+
let returnType = Project;
39513950
return this.apiClient.callApi(
39523951
'/cloud/{cloud_pk}/project/{id}', 'GET',
39533952
pathParams, queryParams, headerParams, formParams, postBody,
@@ -3960,7 +3959,7 @@ export default class CollaborationApi {
39603959
* Retrieve a project
39613960
* @param {Number} cloudPk
39623961
* @param {Number} id A unique integer value identifying this project.
3963-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ProjectWithChildren}
3962+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
39643963
*/
39653964
getProject(cloudPk, id) {
39663965
return this.getProjectWithHttpInfo(cloudPk, id)

src/index.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@ import ProjectInvitationRequest from './model/ProjectInvitationRequest';
164164
import ProjectRequest from './model/ProjectRequest';
165165
import ProjectRole from './model/ProjectRole';
166166
import ProjectSize from './model/ProjectSize';
167-
import ProjectWithChildren from './model/ProjectWithChildren';
168167
import Property from './model/Property';
169168
import PropertyDefinition from './model/PropertyDefinition';
170169
import PropertyDefinitionRequest from './model/PropertyDefinitionRequest';
@@ -1208,12 +1207,6 @@ export {
12081207
*/
12091208
ProjectSize,
12101209

1211-
/**
1212-
* The ProjectWithChildren model constructor.
1213-
* @property {module:model/ProjectWithChildren}
1214-
*/
1215-
ProjectWithChildren,
1216-
12171210
/**
12181211
* The Property model constructor.
12191212
* @property {module:model/Property}

src/model/WriteFolderRequest.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ class WriteFolderRequest {
5252
if (data.hasOwnProperty('default_permission')) {
5353
obj['default_permission'] = ApiClient.convertToType(data['default_permission'], 'Number');
5454
}
55-
if (data.hasOwnProperty('name')) {
56-
obj['name'] = ApiClient.convertToType(data['name'], 'String');
57-
}
5855
if (data.hasOwnProperty('parent_id')) {
5956
obj['parent_id'] = ApiClient.convertToType(data['parent_id'], 'Number');
6057
}
58+
if (data.hasOwnProperty('name')) {
59+
obj['name'] = ApiClient.convertToType(data['name'], 'String');
60+
}
6161
if (data.hasOwnProperty('children')) {
6262
obj['children'] = ApiClient.convertToType(data['children'], [WriteFolderRequest]);
6363
}
@@ -75,15 +75,15 @@ class WriteFolderRequest {
7575
WriteFolderRequest.prototype['default_permission'] = undefined;
7676

7777
/**
78-
* Name of the folder
79-
* @member {String} name
78+
* @member {Number} parent_id
8079
*/
81-
WriteFolderRequest.prototype['name'] = undefined;
80+
WriteFolderRequest.prototype['parent_id'] = undefined;
8281

8382
/**
84-
* @member {Number} parent_id
83+
* Name of the folder
84+
* @member {String} name
8585
*/
86-
WriteFolderRequest.prototype['parent_id'] = undefined;
86+
WriteFolderRequest.prototype['name'] = undefined;
8787

8888
/**
8989
* @member {Array.<module:model/WriteFolderRequest>} children

test/model/ProjectWithChildren.spec.js

Lines changed: 0 additions & 119 deletions
This file was deleted.

test/model/WriteFolderRequest.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@
6060
//expect(instance).to.be();
6161
});
6262

63-
it('should have the property name (base name: "name")', function() {
64-
// uncomment below and update the code to test the property name
63+
it('should have the property parentId (base name: "parent_id")', function() {
64+
// uncomment below and update the code to test the property parentId
6565
//var instance = new bimdata.WriteFolderRequest();
6666
//expect(instance).to.be();
6767
});
6868

69-
it('should have the property parentId (base name: "parent_id")', function() {
70-
// uncomment below and update the code to test the property parentId
69+
it('should have the property name (base name: "name")', function() {
70+
// uncomment below and update the code to test the property name
7171
//var instance = new bimdata.WriteFolderRequest();
7272
//expect(instance).to.be();
7373
});

0 commit comments

Comments
 (0)