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

Commit 399a7c1

Browse files
committed
PATCH: created_at and responded_at in Invitation model (#570)
* created_at and updated_at in Invitation model * invitation: manual responded_at field
1 parent 0e5cdbe commit 399a7c1

5 files changed

Lines changed: 38 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 {'DAE', 'GLTF', 'DXF', 'DWG', 'POINT_CLOUD', 'BFX', 'IFC', 'OBJ'}, a model will be created and attached to this document Required scopes: document:write
892+
Create a document. If the document is one of {'GLTF', 'OBJ', 'IFC', 'DXF', 'POINT_CLOUD', 'BFX', 'DWG', 'DAE'}, 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
@@ -12,6 +12,8 @@ Name | Type | Description | Notes
1212
**projectName** | **String** | | [optional]
1313
**status** | **String** | A: Accepted D: Denied P: Pending | [optional]
1414
**sender** | [**User**](User.md) | |
15+
**createdAt** | **Date** | | [readonly]
16+
**respondedAt** | **Date** | | [optional]
1517

1618

1719

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 {'DAE', 'GLTF', 'DXF', 'DWG', 'POINT_CLOUD', 'BFX', 'IFC', 'OBJ'}, a model will be created and attached to this document Required scopes: document:write
803+
* Create a document. If the document is one of {'GLTF', 'OBJ', 'IFC', 'DXF', 'POINT_CLOUD', 'BFX', 'DWG', 'DAE'}, 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 {'DAE', 'GLTF', 'DXF', 'DWG', 'POINT_CLOUD', 'BFX', 'IFC', 'OBJ'}, a model will be created and attached to this document Required scopes: document:write
871+
* Create a document. If the document is one of {'GLTF', 'OBJ', 'IFC', 'DXF', 'POINT_CLOUD', 'BFX', 'DWG', 'DAE'}, 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: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,24 +29,26 @@ class UserInvitation {
2929
* @param cloudName {String}
3030
* @param projectId {Number}
3131
* @param sender {module:model/User}
32+
* @param createdAt {Date}
3233
*/
33-
constructor(id, redirectUri, cloudId, cloudName, projectId, sender) {
34+
constructor(id, redirectUri, cloudId, cloudName, projectId, sender, createdAt) {
3435

35-
UserInvitation.initialize(this, id, redirectUri, cloudId, cloudName, projectId, sender);
36+
UserInvitation.initialize(this, id, redirectUri, cloudId, cloudName, projectId, sender, createdAt);
3637
}
3738

3839
/**
3940
* Initializes the fields of this object.
4041
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
4142
* Only for internal use.
4243
*/
43-
static initialize(obj, id, redirectUri, cloudId, cloudName, projectId, sender) {
44+
static initialize(obj, id, redirectUri, cloudId, cloudName, projectId, sender, createdAt) {
4445
obj['id'] = id;
4546
obj['redirect_uri'] = redirectUri;
4647
obj['cloud_id'] = cloudId;
4748
obj['cloud_name'] = cloudName;
4849
obj['project_id'] = projectId;
4950
obj['sender'] = sender;
51+
obj['created_at'] = createdAt;
5052
}
5153

5254
/**
@@ -84,6 +86,12 @@ class UserInvitation {
8486
if (data.hasOwnProperty('sender')) {
8587
obj['sender'] = User.constructFromObject(data['sender']);
8688
}
89+
if (data.hasOwnProperty('created_at')) {
90+
obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date');
91+
}
92+
if (data.hasOwnProperty('responded_at')) {
93+
obj['responded_at'] = ApiClient.convertToType(data['responded_at'], 'Date');
94+
}
8795
}
8896
return obj;
8997
}
@@ -133,6 +141,16 @@ UserInvitation.prototype['status'] = undefined;
133141
*/
134142
UserInvitation.prototype['sender'] = undefined;
135143

144+
/**
145+
* @member {Date} created_at
146+
*/
147+
UserInvitation.prototype['created_at'] = undefined;
148+
149+
/**
150+
* @member {Date} responded_at
151+
*/
152+
UserInvitation.prototype['responded_at'] = undefined;
153+
136154

137155

138156

test/model/UserInvitation.spec.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,18 @@
102102
//expect(instance).to.be();
103103
});
104104

105+
it('should have the property createdAt (base name: "created_at")', function() {
106+
// uncomment below and update the code to test the property createdAt
107+
//var instance = new bimdata.UserInvitation();
108+
//expect(instance).to.be();
109+
});
110+
111+
it('should have the property respondedAt (base name: "responded_at")', function() {
112+
// uncomment below and update the code to test the property respondedAt
113+
//var instance = new bimdata.UserInvitation();
114+
//expect(instance).to.be();
115+
});
116+
105117
});
106118

107119
}));

0 commit comments

Comments
 (0)