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

Commit 08c85ca

Browse files
committed
PATCH: add invitation key in UserProject
1 parent 26fd4f0 commit 08c85ca

15 files changed

Lines changed: 225 additions & 21 deletions

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,7 @@ Class | Method | HTTP request | Description
529529
- [bimdata.Unit](docs/Unit.md)
530530
- [bimdata.User](docs/User.md)
531531
- [bimdata.UserCloudUpdate](docs/UserCloudUpdate.md)
532+
- [bimdata.UserProject](docs/UserProject.md)
532533
- [bimdata.UserProjectUpdate](docs/UserProjectUpdate.md)
533534
- [bimdata.ViewSetupHints](docs/ViewSetupHints.md)
534535
- [bimdata.Viewpoint](docs/Viewpoint.md)

docs/CollaborationApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Method | HTTP request | Description
8484

8585
## addGroupMember
8686

87-
> User addGroupMember(cloudPk, groupPk, projectPk, data)
87+
> UserProject addGroupMember(cloudPk, groupPk, projectPk, data)
8888
8989
Add a user to a group
9090

@@ -132,7 +132,7 @@ Name | Type | Description | Notes
132132

133133
### Return type
134134

135-
[**User**](User.md)
135+
[**UserProject**](UserProject.md)
136136

137137
### Authorization
138138

docs/InlineObject3.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ Name | Type | Description | Notes
77
**id** | **Number** | | [optional] [readonly]
88
**name** | **String** | Full name of the group |
99
**color** | **String** | | [optional]
10-
**members** | [**[User]**](User.md) | | [optional] [readonly]
10+
**members** | [**[UserProject]**](UserProject.md) | | [optional] [readonly]
1111

1212

docs/InlineObject4.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ Name | Type | Description | Notes
77
**id** | **Number** | | [optional] [readonly]
88
**name** | **String** | Full name of the group |
99
**color** | **String** | | [optional]
10-
**members** | [**[User]**](User.md) | | [optional] [readonly]
10+
**members** | [**[UserProject]**](UserProject.md) | | [optional] [readonly]
1111

1212

docs/InlineObject5.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ Name | Type | Description | Notes
77
**id** | **Number** | | [optional] [readonly]
88
**name** | **String** | Full name of the group |
99
**color** | **String** | | [optional]
10-
**members** | [**[User]**](User.md) | | [optional] [readonly]
10+
**members** | [**[UserProject]**](UserProject.md) | | [optional] [readonly]
1111

1212

docs/InlineResponse2001.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ Name | Type | Description | Notes
77
**id** | **Number** | | [optional] [readonly]
88
**name** | **String** | Full name of the group |
99
**color** | **String** | | [optional]
10-
**members** | [**[User]**](User.md) | | [optional] [readonly]
10+
**members** | [**[UserProject]**](UserProject.md) | | [optional] [readonly]
1111

1212

docs/UserProject.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# bimdata.UserProject
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**role** | **Number** | User's role in the project | [optional]
8+
**user** | [**User**](User.md) | | [optional]
9+
**invitation** | [**ProjectInvitation**](ProjectInvitation.md) | | [optional]
10+
**project** | **Number** | |
11+
12+

src/api/CollaborationApi.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ import SelfUser from '../model/SelfUser';
3737
import Size from '../model/Size';
3838
import User from '../model/User';
3939
import UserCloudUpdate from '../model/UserCloudUpdate';
40+
import UserProject from '../model/UserProject';
4041
import UserProjectUpdate from '../model/UserProjectUpdate';
4142

4243
/**
@@ -66,7 +67,7 @@ export default class CollaborationApi {
6667
* @param {String} groupPk
6768
* @param {String} projectPk
6869
* @param {module:model/FosUserId} data
69-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/User} and HTTP response
70+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UserProject} and HTTP response
7071
*/
7172
addGroupMemberWithHttpInfo(cloudPk, groupPk, projectPk, data) {
7273
let postBody = data;
@@ -102,7 +103,7 @@ export default class CollaborationApi {
102103
let authNames = ['Bearer', 'bimdata_connect', 'client_credentials'];
103104
let contentTypes = ['application/json'];
104105
let accepts = ['application/json'];
105-
let returnType = User;
106+
let returnType = UserProject;
106107
return this.apiClient.callApi(
107108
'/cloud/{cloud_pk}/project/{project_pk}/group/{group_pk}/member', 'POST',
108109
pathParams, queryParams, headerParams, formParams, postBody,
@@ -117,7 +118,7 @@ export default class CollaborationApi {
117118
* @param {String} groupPk
118119
* @param {String} projectPk
119120
* @param {module:model/FosUserId} data
120-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/User}
121+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UserProject}
121122
*/
122123
addGroupMember(cloudPk, groupPk, projectPk, data) {
123124
return this.addGroupMemberWithHttpInfo(cloudPk, groupPk, projectPk, data)

src/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ import TopicType from './model/TopicType';
112112
import Unit from './model/Unit';
113113
import User from './model/User';
114114
import UserCloudUpdate from './model/UserCloudUpdate';
115+
import UserProject from './model/UserProject';
115116
import UserProjectUpdate from './model/UserProjectUpdate';
116117
import ViewSetupHints from './model/ViewSetupHints';
117118
import Viewpoint from './model/Viewpoint';
@@ -759,6 +760,12 @@ export {
759760
*/
760761
UserCloudUpdate,
761762

763+
/**
764+
* The UserProject model constructor.
765+
* @property {module:model/UserProject}
766+
*/
767+
UserProject,
768+
762769
/**
763770
* The UserProjectUpdate model constructor.
764771
* @property {module:model/UserProjectUpdate}

src/model/InlineObject3.js

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

1414
import ApiClient from '../ApiClient';
15-
import User from './User';
15+
import UserProject from './UserProject';
1616

1717
/**
1818
* The InlineObject3 model module.
@@ -60,7 +60,7 @@ class InlineObject3 {
6060
obj['color'] = ApiClient.convertToType(data['color'], 'String');
6161
}
6262
if (data.hasOwnProperty('members')) {
63-
obj['members'] = ApiClient.convertToType(data['members'], [User]);
63+
obj['members'] = ApiClient.convertToType(data['members'], [UserProject]);
6464
}
6565
}
6666
return obj;
@@ -86,7 +86,7 @@ InlineObject3.prototype['name'] = undefined;
8686
InlineObject3.prototype['color'] = undefined;
8787

8888
/**
89-
* @member {Array.<module:model/User>} members
89+
* @member {Array.<module:model/UserProject>} members
9090
*/
9191
InlineObject3.prototype['members'] = undefined;
9292

0 commit comments

Comments
 (0)