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

Commit 0e5cdbe

Browse files
committed
PATCH: cloud_id and project_id in Invitation serializer
1 parent 75e881d commit 0e5cdbe

5 files changed

Lines changed: 40 additions & 6 deletions

File tree

docs/CollaborationApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,7 @@ Name | Type | Description | Notes
889889
890890
Create a document
891891

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

894894
### Example
895895

docs/UserInvitation.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**id** | **Number** | | [readonly]
88
**redirectUri** | **String** | User will be redirected to this uri when they accept the invitation |
9+
**cloudId** | **Number** | | [readonly]
910
**cloudName** | **String** | |
11+
**projectId** | **Number** | | [readonly]
1012
**projectName** | **String** | | [optional]
1113
**status** | **String** | A: Accepted D: Denied P: Pending | [optional]
1214
**sender** | [**User**](User.md) | |

src/api/CollaborationApi.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ export default class CollaborationApi {
800800

801801
/**
802802
* Create a document
803-
* Create a document. If the document is one of {'OBJ', 'BFX', 'DAE', 'DWG', 'DXF', 'GLTF', 'IFC', 'POINT_CLOUD'}, a model will be created and attached to this document Required scopes: document:write
803+
* Create a document. If the document is one of {'DAE', 'GLTF', 'DXF', 'DWG', 'POINT_CLOUD', 'BFX', 'IFC', 'OBJ'}, a model will be created and attached to this document Required scopes: document:write
804804
* @param {Number} cloudPk A unique integer value identifying this cloud.
805805
* @param {Number} projectPk A unique integer value identifying this project.
806806
* @param {String} name Shown name of the file
@@ -868,7 +868,7 @@ export default class CollaborationApi {
868868

869869
/**
870870
* Create a document
871-
* Create a document. If the document is one of {'OBJ', 'BFX', 'DAE', 'DWG', 'DXF', 'GLTF', 'IFC', 'POINT_CLOUD'}, a model will be created and attached to this document Required scopes: document:write
871+
* Create a document. If the document is one of {'DAE', 'GLTF', 'DXF', 'DWG', 'POINT_CLOUD', 'BFX', 'IFC', 'OBJ'}, a model will be created and attached to this document Required scopes: document:write
872872
* @param {Number} cloudPk A unique integer value identifying this cloud.
873873
* @param {Number} projectPk A unique integer value identifying this project.
874874
* @param {String} name Shown name of the file

src/model/UserInvitation.js

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,23 +25,27 @@ class UserInvitation {
2525
* @alias module:model/UserInvitation
2626
* @param id {Number}
2727
* @param redirectUri {String} User will be redirected to this uri when they accept the invitation
28+
* @param cloudId {Number}
2829
* @param cloudName {String}
30+
* @param projectId {Number}
2931
* @param sender {module:model/User}
3032
*/
31-
constructor(id, redirectUri, cloudName, sender) {
33+
constructor(id, redirectUri, cloudId, cloudName, projectId, sender) {
3234

33-
UserInvitation.initialize(this, id, redirectUri, cloudName, sender);
35+
UserInvitation.initialize(this, id, redirectUri, cloudId, cloudName, projectId, sender);
3436
}
3537

3638
/**
3739
* Initializes the fields of this object.
3840
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
3941
* Only for internal use.
4042
*/
41-
static initialize(obj, id, redirectUri, cloudName, sender) {
43+
static initialize(obj, id, redirectUri, cloudId, cloudName, projectId, sender) {
4244
obj['id'] = id;
4345
obj['redirect_uri'] = redirectUri;
46+
obj['cloud_id'] = cloudId;
4447
obj['cloud_name'] = cloudName;
48+
obj['project_id'] = projectId;
4549
obj['sender'] = sender;
4650
}
4751

@@ -62,9 +66,15 @@ class UserInvitation {
6266
if (data.hasOwnProperty('redirect_uri')) {
6367
obj['redirect_uri'] = ApiClient.convertToType(data['redirect_uri'], 'String');
6468
}
69+
if (data.hasOwnProperty('cloud_id')) {
70+
obj['cloud_id'] = ApiClient.convertToType(data['cloud_id'], 'Number');
71+
}
6572
if (data.hasOwnProperty('cloud_name')) {
6673
obj['cloud_name'] = ApiClient.convertToType(data['cloud_name'], 'String');
6774
}
75+
if (data.hasOwnProperty('project_id')) {
76+
obj['project_id'] = ApiClient.convertToType(data['project_id'], 'Number');
77+
}
6878
if (data.hasOwnProperty('project_name')) {
6979
obj['project_name'] = ApiClient.convertToType(data['project_name'], 'String');
7080
}
@@ -92,11 +102,21 @@ UserInvitation.prototype['id'] = undefined;
92102
*/
93103
UserInvitation.prototype['redirect_uri'] = undefined;
94104

105+
/**
106+
* @member {Number} cloud_id
107+
*/
108+
UserInvitation.prototype['cloud_id'] = undefined;
109+
95110
/**
96111
* @member {String} cloud_name
97112
*/
98113
UserInvitation.prototype['cloud_name'] = undefined;
99114

115+
/**
116+
* @member {Number} project_id
117+
*/
118+
UserInvitation.prototype['project_id'] = undefined;
119+
100120
/**
101121
* @member {String} project_name
102122
*/

test/model/UserInvitation.spec.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,24 @@
6666
//expect(instance).to.be();
6767
});
6868

69+
it('should have the property cloudId (base name: "cloud_id")', function() {
70+
// uncomment below and update the code to test the property cloudId
71+
//var instance = new bimdata.UserInvitation();
72+
//expect(instance).to.be();
73+
});
74+
6975
it('should have the property cloudName (base name: "cloud_name")', function() {
7076
// uncomment below and update the code to test the property cloudName
7177
//var instance = new bimdata.UserInvitation();
7278
//expect(instance).to.be();
7379
});
7480

81+
it('should have the property projectId (base name: "project_id")', function() {
82+
// uncomment below and update the code to test the property projectId
83+
//var instance = new bimdata.UserInvitation();
84+
//expect(instance).to.be();
85+
});
86+
7587
it('should have the property projectName (base name: "project_name")', function() {
7688
// uncomment below and update the code to test the property projectName
7789
//var instance = new bimdata.UserInvitation();

0 commit comments

Comments
 (0)