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

Commit 0cdfcf5

Browse files
committed
PATCH: allow null cloud serializer + add sub field to userproject (#643)
1 parent 5db2e74 commit 0cdfcf5

File tree

8 files changed

+43
-9
lines changed

8 files changed

+43
-9
lines changed

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

960960
### Example
961961

docs/FolderUserProject.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
1111
**firstname** | **String** | | [readonly]
1212
**lastname** | **String** | | [readonly]
1313
**profilePicture** | **String** | | [readonly]
14+
**sub** | **String** | | [readonly]
1415
**role** | **Number** | | [readonly]
1516
**permission** | **Number** | | [readonly]
1617

docs/UserProject.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
1111
**firstname** | **String** | | [readonly]
1212
**lastname** | **String** | | [readonly]
1313
**profilePicture** | **String** | | [readonly]
14+
**sub** | **String** | | [readonly]
1415
**role** | **Number** | | [readonly]
1516

1617

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 {'IFC', 'DXF', 'DWG', 'GLTF', 'OBJ', 'POINT_CLOUD'}, a model will be created and attached to this document Required scopes: document:write
861+
* Create a document. If the document is one of {'DXF', 'DWG', 'GLTF', 'OBJ', 'IFC', '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 {'IFC', 'DXF', 'DWG', 'GLTF', 'OBJ', 'POINT_CLOUD'}, a model will be created and attached to this document Required scopes: document:write
927+
* Create a document. If the document is one of {'DXF', 'DWG', 'GLTF', 'OBJ', 'IFC', '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/FolderUserProject.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,27 +30,29 @@ class FolderUserProject {
3030
* @param firstname {String}
3131
* @param lastname {String}
3232
* @param profilePicture {String}
33+
* @param sub {String}
3334
* @param role {module:model/FolderUserProject.RoleEnum}
3435
* @param permission {module:model/FolderUserProject.PermissionEnum}
3536
*/
36-
constructor(id, userId, invitationId, email, firstname, lastname, profilePicture, role, permission) {
37+
constructor(id, userId, invitationId, email, firstname, lastname, profilePicture, sub, role, permission) {
3738

38-
FolderUserProject.initialize(this, id, userId, invitationId, email, firstname, lastname, profilePicture, role, permission);
39+
FolderUserProject.initialize(this, id, userId, invitationId, email, firstname, lastname, profilePicture, sub, role, permission);
3940
}
4041

4142
/**
4243
* Initializes the fields of this object.
4344
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
4445
* Only for internal use.
4546
*/
46-
static initialize(obj, id, userId, invitationId, email, firstname, lastname, profilePicture, role, permission) {
47+
static initialize(obj, id, userId, invitationId, email, firstname, lastname, profilePicture, sub, role, permission) {
4748
obj['id'] = id;
4849
obj['user_id'] = userId;
4950
obj['invitation_id'] = invitationId;
5051
obj['email'] = email;
5152
obj['firstname'] = firstname;
5253
obj['lastname'] = lastname;
5354
obj['profile_picture'] = profilePicture;
55+
obj['sub'] = sub;
5456
obj['role'] = role;
5557
obj['permission'] = permission;
5658
}
@@ -87,6 +89,9 @@ class FolderUserProject {
8789
if (data.hasOwnProperty('profile_picture')) {
8890
obj['profile_picture'] = ApiClient.convertToType(data['profile_picture'], 'String');
8991
}
92+
if (data.hasOwnProperty('sub')) {
93+
obj['sub'] = ApiClient.convertToType(data['sub'], 'String');
94+
}
9095
if (data.hasOwnProperty('role')) {
9196
obj['role'] = ApiClient.convertToType(data['role'], 'Number');
9297
}
@@ -135,6 +140,11 @@ FolderUserProject.prototype['lastname'] = undefined;
135140
*/
136141
FolderUserProject.prototype['profile_picture'] = undefined;
137142

143+
/**
144+
* @member {String} sub
145+
*/
146+
FolderUserProject.prototype['sub'] = undefined;
147+
138148
/**
139149
* @member {module:model/FolderUserProject.RoleEnum} role
140150
*/

src/model/UserProject.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,26 +30,28 @@ class UserProject {
3030
* @param firstname {String}
3131
* @param lastname {String}
3232
* @param profilePicture {String}
33+
* @param sub {String}
3334
* @param role {module:model/UserProject.RoleEnum}
3435
*/
35-
constructor(id, userId, invitationId, email, firstname, lastname, profilePicture, role) {
36+
constructor(id, userId, invitationId, email, firstname, lastname, profilePicture, sub, role) {
3637

37-
UserProject.initialize(this, id, userId, invitationId, email, firstname, lastname, profilePicture, role);
38+
UserProject.initialize(this, id, userId, invitationId, email, firstname, lastname, profilePicture, sub, role);
3839
}
3940

4041
/**
4142
* Initializes the fields of this object.
4243
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
4344
* Only for internal use.
4445
*/
45-
static initialize(obj, id, userId, invitationId, email, firstname, lastname, profilePicture, role) {
46+
static initialize(obj, id, userId, invitationId, email, firstname, lastname, profilePicture, sub, role) {
4647
obj['id'] = id;
4748
obj['user_id'] = userId;
4849
obj['invitation_id'] = invitationId;
4950
obj['email'] = email;
5051
obj['firstname'] = firstname;
5152
obj['lastname'] = lastname;
5253
obj['profile_picture'] = profilePicture;
54+
obj['sub'] = sub;
5355
obj['role'] = role;
5456
}
5557

@@ -85,6 +87,9 @@ class UserProject {
8587
if (data.hasOwnProperty('profile_picture')) {
8688
obj['profile_picture'] = ApiClient.convertToType(data['profile_picture'], 'String');
8789
}
90+
if (data.hasOwnProperty('sub')) {
91+
obj['sub'] = ApiClient.convertToType(data['sub'], 'String');
92+
}
8893
if (data.hasOwnProperty('role')) {
8994
obj['role'] = ApiClient.convertToType(data['role'], 'Number');
9095
}
@@ -130,6 +135,11 @@ UserProject.prototype['lastname'] = undefined;
130135
*/
131136
UserProject.prototype['profile_picture'] = undefined;
132137

138+
/**
139+
* @member {String} sub
140+
*/
141+
UserProject.prototype['sub'] = undefined;
142+
133143
/**
134144
* @member {module:model/UserProject.RoleEnum} role
135145
*/

test/model/FolderUserProject.spec.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,12 @@
9696
//expect(instance).to.be();
9797
});
9898

99+
it('should have the property sub (base name: "sub")', function() {
100+
// uncomment below and update the code to test the property sub
101+
//var instance = new bimdata.FolderUserProject();
102+
//expect(instance).to.be();
103+
});
104+
99105
it('should have the property role (base name: "role")', function() {
100106
// uncomment below and update the code to test the property role
101107
//var instance = new bimdata.FolderUserProject();

test/model/UserProject.spec.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,12 @@
9696
//expect(instance).to.be();
9797
});
9898

99+
it('should have the property sub (base name: "sub")', function() {
100+
// uncomment below and update the code to test the property sub
101+
//var instance = new bimdata.UserProject();
102+
//expect(instance).to.be();
103+
});
104+
99105
it('should have the property role (base name: "role")', function() {
100106
// uncomment below and update the code to test the property role
101107
//var instance = new bimdata.UserProject();

0 commit comments

Comments
 (0)