Skip to content
This repository was archived by the owner on Nov 18, 2025. It is now read-only.

Commit 495ded8

Browse files
committed
PATCH: revert project serialization
1 parent ca22e54 commit 495ded8

9 files changed

Lines changed: 14 additions & 169 deletions

File tree

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,6 @@ Class | Method | HTTP request | Description
408408
- [bimdata.ProjectInvitation](docs/ProjectInvitation.md)
409409
- [bimdata.ProjectRole](docs/ProjectRole.md)
410410
- [bimdata.ProjectWithChildren](docs/ProjectWithChildren.md)
411-
- [bimdata.ProjectWithCloud](docs/ProjectWithCloud.md)
412411
- [bimdata.Property](docs/Property.md)
413412
- [bimdata.PropertyDefinition](docs/PropertyDefinition.md)
414413
- [bimdata.PropertySet](docs/PropertySet.md)

docs/Project.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
77
**id** | **Number** | | [optional]
88
**logo** | **String** | | [optional]
99
**name** | **String** | Name of the project |
10-
**cloudId** | **String** | | [optional]
10+
**cloud** | [**Cloud**](Cloud.md) | | [optional]
1111
**status** | **String** | | [optional]
1212
**createdAt** | **Date** | Creation date | [optional]
1313
**updatedAt** | **Date** | Date of the last update | [optional]

docs/ProjectWithCloud.md

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

docs/UserApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ Name | Type | Description | Notes
116116

117117
## userProjectsList
118118

119-
> [ProjectWithCloud] userProjectsList()
119+
> [Project] userProjectsList()
120120
121121

122122

@@ -152,7 +152,7 @@ This endpoint does not need any parameter.
152152

153153
### Return type
154154

155-
[**[ProjectWithCloud]**](ProjectWithCloud.md)
155+
[**[Project]**](Project.md)
156156

157157
### Authorization
158158

src/api/UserApi.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414

1515
import ApiClient from "../ApiClient";
16-
import ProjectWithCloud from '../model/ProjectWithCloud';
16+
import Project from '../model/Project';
1717
import SelfUser from '../model/SelfUser';
1818

1919
/**
@@ -117,7 +117,7 @@ export default class UserApi {
117117

118118

119119
/**
120-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/ProjectWithCloud>} and HTTP response
120+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/Project>} and HTTP response
121121
*/
122122
userProjectsListWithHttpInfo() {
123123
let postBody = null;
@@ -134,7 +134,7 @@ export default class UserApi {
134134
let authNames = ['BIMDataConnect', 'Bearer', 'client_credentials'];
135135
let contentTypes = [];
136136
let accepts = ['application/json'];
137-
let returnType = [ProjectWithCloud];
137+
let returnType = [Project];
138138
return this.apiClient.callApi(
139139
'/user/projects', 'GET',
140140
pathParams, queryParams, headerParams, formParams, postBody,
@@ -143,7 +143,7 @@ export default class UserApi {
143143
}
144144

145145
/**
146-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/ProjectWithCloud>}
146+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/Project>}
147147
*/
148148
userProjectsList() {
149149
return this.userProjectsListWithHttpInfo()

src/index.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ import Project from './model/Project';
5151
import ProjectInvitation from './model/ProjectInvitation';
5252
import ProjectRole from './model/ProjectRole';
5353
import ProjectWithChildren from './model/ProjectWithChildren';
54-
import ProjectWithCloud from './model/ProjectWithCloud';
5554
import Property from './model/Property';
5655
import PropertyDefinition from './model/PropertyDefinition';
5756
import PropertySet from './model/PropertySet';
@@ -360,12 +359,6 @@ export {
360359
*/
361360
ProjectWithChildren,
362361

363-
/**
364-
* The ProjectWithCloud model constructor.
365-
* @property {module:model/ProjectWithCloud}
366-
*/
367-
ProjectWithCloud,
368-
369362
/**
370363
* The Property model constructor.
371364
* @property {module:model/Property}

src/model/Project.js

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

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

1617
/**
1718
* The Project model module.
@@ -58,8 +59,8 @@ class Project {
5859
if (data.hasOwnProperty('name')) {
5960
obj['name'] = ApiClient.convertToType(data['name'], 'String');
6061
}
61-
if (data.hasOwnProperty('cloud_id')) {
62-
obj['cloud_id'] = ApiClient.convertToType(data['cloud_id'], 'String');
62+
if (data.hasOwnProperty('cloud')) {
63+
obj['cloud'] = Cloud.constructFromObject(data['cloud']);
6364
}
6465
if (data.hasOwnProperty('status')) {
6566
obj['status'] = ApiClient.convertToType(data['status'], 'String');
@@ -100,9 +101,9 @@ Project.prototype['logo'] = undefined;
100101
Project.prototype['name'] = undefined;
101102

102103
/**
103-
* @member {String} cloud_id
104+
* @member {module:model/Cloud} cloud
104105
*/
105-
Project.prototype['cloud_id'] = undefined;
106+
Project.prototype['cloud'] = undefined;
106107

107108
/**
108109
* @member {module:model/Project.StatusEnum} status

test/model/Project.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@
7272
//expect(instance).to.be();
7373
});
7474

75-
it('should have the property cloudId (base name: "cloud_id")', function() {
76-
// uncomment below and update the code to test the property cloudId
75+
it('should have the property cloud (base name: "cloud")', function() {
76+
// uncomment below and update the code to test the property cloud
7777
//var instane = new bimdata.Project();
7878
//expect(instance).to.be();
7979
});

test/model/ProjectWithCloud.spec.js

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

0 commit comments

Comments
 (0)