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

Commit 1a8ba1a

Browse files
committed
MINOR: Add un change role routes
1 parent a1f5362 commit 1a8ba1a

File tree

155 files changed

+1060
-169
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

155 files changed

+1060
-169
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# @bimdata/bimdata-api-client
22

33
bimdata - JavaScript client for @bimdata/bimdata-api-client
4-
BIMData API documentation
4+
BIMData API is a tool to interact with your models stored on BIMData’s servers. Through the API, you can manage your projects, the clouds, upload your IFC files and manage them through endpoints.
55
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
66

77
- API version: v1
@@ -222,12 +222,14 @@ Class | Method | HTTP request | Description
222222
*bimdata.CloudApi* | [**createDemo**](docs/CloudApi.md#createDemo) | **POST** /cloud/{id}/create-demo |
223223
*bimdata.CloudApi* | [**deleteCloudUser**](docs/CloudApi.md#deleteCloudUser) | **DELETE** /cloud/{cloud_pk}/user/{id} |
224224
*bimdata.CloudApi* | [**fullUpdateCloud**](docs/CloudApi.md#fullUpdateCloud) | **PUT** /cloud/{id} |
225+
*bimdata.CloudApi* | [**fullUpdateCloudUser**](docs/CloudApi.md#fullUpdateCloudUser) | **PUT** /cloud/{cloud_pk}/user/{id} |
225226
*bimdata.CloudApi* | [**getCloud**](docs/CloudApi.md#getCloud) | **GET** /cloud/{id} |
226227
*bimdata.CloudApi* | [**getCloudSize**](docs/CloudApi.md#getCloudSize) | **GET** /cloud/{id}/size |
227228
*bimdata.CloudApi* | [**getCloudUser**](docs/CloudApi.md#getCloudUser) | **GET** /cloud/{cloud_pk}/user/{id} |
228229
*bimdata.CloudApi* | [**getCloudUsers**](docs/CloudApi.md#getCloudUsers) | **GET** /cloud/{cloud_pk}/user |
229230
*bimdata.CloudApi* | [**getClouds**](docs/CloudApi.md#getClouds) | **GET** /cloud |
230231
*bimdata.CloudApi* | [**updateCloud**](docs/CloudApi.md#updateCloud) | **PATCH** /cloud/{id} |
232+
*bimdata.CloudApi* | [**updateCloudUser**](docs/CloudApi.md#updateCloudUser) | **PATCH** /cloud/{cloud_pk}/user/{id} |
231233
*bimdata.IfcApi* | [**bulkDeleteIfcClassifications**](docs/IfcApi.md#bulkDeleteIfcClassifications) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/classification/list_destroy |
232234
*bimdata.IfcApi* | [**bulkDeleteIfcProperties**](docs/IfcApi.md#bulkDeleteIfcProperties) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/property/bulk_destroy |
233235
*bimdata.IfcApi* | [**bulkDeleteIfcPropertyDefinitions**](docs/IfcApi.md#bulkDeleteIfcPropertyDefinitions) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/propertydefinition/bulk_destroy |
@@ -337,6 +339,7 @@ Class | Method | HTTP request | Description
337339
*bimdata.ProjectApi* | [**fullUpdateDocument**](docs/ProjectApi.md#fullUpdateDocument) | **PUT** /cloud/{cloud_pk}/project/{project_pk}/document/{id} |
338340
*bimdata.ProjectApi* | [**fullUpdateFolder**](docs/ProjectApi.md#fullUpdateFolder) | **PUT** /cloud/{cloud_pk}/project/{project_pk}/folder/{id} |
339341
*bimdata.ProjectApi* | [**fullUpdateProject**](docs/ProjectApi.md#fullUpdateProject) | **PUT** /cloud/{cloud_pk}/project/{id} |
342+
*bimdata.ProjectApi* | [**fullUpdateProjectUser**](docs/ProjectApi.md#fullUpdateProjectUser) | **PUT** /cloud/{cloud_pk}/project/{project_pk}/user/{id} |
340343
*bimdata.ProjectApi* | [**getClassification**](docs/ProjectApi.md#getClassification) | **GET** /cloud/{cloud_pk}/project/{project_pk}/classification/{id} |
341344
*bimdata.ProjectApi* | [**getClassifications**](docs/ProjectApi.md#getClassifications) | **GET** /cloud/{cloud_pk}/project/{project_pk}/classification |
342345
*bimdata.ProjectApi* | [**getDocument**](docs/ProjectApi.md#getDocument) | **GET** /cloud/{cloud_pk}/project/{project_pk}/document/{id} |
@@ -353,6 +356,7 @@ Class | Method | HTTP request | Description
353356
*bimdata.ProjectApi* | [**updateDocument**](docs/ProjectApi.md#updateDocument) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/document/{id} |
354357
*bimdata.ProjectApi* | [**updateFolder**](docs/ProjectApi.md#updateFolder) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/folder/{id} |
355358
*bimdata.ProjectApi* | [**updateProject**](docs/ProjectApi.md#updateProject) | **PATCH** /cloud/{cloud_pk}/project/{id} |
359+
*bimdata.ProjectApi* | [**updateProjectUser**](docs/ProjectApi.md#updateProjectUser) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/user/{id} |
356360
*bimdata.UserApi* | [**getSelfProjects**](docs/UserApi.md#getSelfProjects) | **GET** /user/projects |
357361
*bimdata.UserApi* | [**getSelfUser**](docs/UserApi.md#getSelfUser) | **GET** /user |
358362
*bimdata.UserApi* | [**updateSelfUser**](docs/UserApi.md#updateSelfUser) | **PATCH** /user |
@@ -418,6 +422,8 @@ Class | Method | HTTP request | Description
418422
- [bimdata.TopicType](docs/TopicType.md)
419423
- [bimdata.Unit](docs/Unit.md)
420424
- [bimdata.User](docs/User.md)
425+
- [bimdata.UserCloudUpdate](docs/UserCloudUpdate.md)
426+
- [bimdata.UserProjectUpdate](docs/UserProjectUpdate.md)
421427
- [bimdata.ViewSetupHints](docs/ViewSetupHints.md)
422428
- [bimdata.Viewpoint](docs/Viewpoint.md)
423429
- [bimdata.Visibility](docs/Visibility.md)

docs/BcfApi.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ null (empty response body)
702702

703703
<a name="downloadBcfExport"></a>
704704
# **downloadBcfExport**
705-
> downloadBcfExport(id)
705+
> downloadBcfExport(id, opts)
706706
707707

708708

@@ -720,7 +720,11 @@ Bearer.apiKey = 'YOUR API KEY';
720720

721721
var apiInstance = new bimdata.BcfApi();
722722
var id = 56; // Number | A unique integer value identifying this project.
723-
apiInstance.downloadBcfExport(id).then(function() {
723+
var opts = {
724+
'topics': "topics_example", // String | topic guids to export, comma separated. Default = all
725+
'format': "format_example" // String | topic format to export, comma separated. Default = all
726+
};
727+
apiInstance.downloadBcfExport(id, opts).then(function() {
724728
console.log('API called successfully.');
725729
}, function(error) {
726730
console.error(error);
@@ -733,6 +737,8 @@ apiInstance.downloadBcfExport(id).then(function() {
733737
Name | Type | Description | Notes
734738
------------- | ------------- | ------------- | -------------
735739
**id** | **Number**| A unique integer value identifying this project. |
740+
**topics** | **String**| topic guids to export, comma separated. Default &#x3D; all | [optional]
741+
**format** | **String**| topic format to export, comma separated. Default &#x3D; all | [optional]
736742

737743
### Return type
738744

docs/CloudApi.md

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@ Method | HTTP request | Description
99
[**createDemo**](CloudApi.md#createDemo) | **POST** /cloud/{id}/create-demo |
1010
[**deleteCloudUser**](CloudApi.md#deleteCloudUser) | **DELETE** /cloud/{cloud_pk}/user/{id} |
1111
[**fullUpdateCloud**](CloudApi.md#fullUpdateCloud) | **PUT** /cloud/{id} |
12+
[**fullUpdateCloudUser**](CloudApi.md#fullUpdateCloudUser) | **PUT** /cloud/{cloud_pk}/user/{id} |
1213
[**getCloud**](CloudApi.md#getCloud) | **GET** /cloud/{id} |
1314
[**getCloudSize**](CloudApi.md#getCloudSize) | **GET** /cloud/{id}/size |
1415
[**getCloudUser**](CloudApi.md#getCloudUser) | **GET** /cloud/{cloud_pk}/user/{id} |
1516
[**getCloudUsers**](CloudApi.md#getCloudUsers) | **GET** /cloud/{cloud_pk}/user |
1617
[**getClouds**](CloudApi.md#getClouds) | **GET** /cloud |
1718
[**updateCloud**](CloudApi.md#updateCloud) | **PATCH** /cloud/{id} |
19+
[**updateCloudUser**](CloudApi.md#updateCloudUser) | **PATCH** /cloud/{cloud_pk}/user/{id} |
1820

1921

2022
<a name="cloudInvite"></a>
@@ -247,6 +249,57 @@ Name | Type | Description | Notes
247249

248250
[Bearer](../README.md#Bearer)
249251

252+
### HTTP request headers
253+
254+
- **Content-Type**: application/json
255+
- **Accept**: application/json
256+
257+
<a name="fullUpdateCloudUser"></a>
258+
# **fullUpdateCloudUser**
259+
> User fullUpdateCloudUser(cloudPk, id, userCloudUpdate)
260+
261+
262+
263+
Change the user role in the cloud
264+
265+
### Example
266+
```javascript
267+
var bimdata = require('@bimdata/bimdata-api-client');
268+
var defaultClient = bimdata.ApiClient.instance;
269+
// Configure API key authorization: Bearer
270+
var Bearer = defaultClient.authentications['Bearer'];
271+
Bearer.apiKey = 'YOUR API KEY';
272+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
273+
//Bearer.apiKeyPrefix = 'Token';
274+
275+
var apiInstance = new bimdata.CloudApi();
276+
var cloudPk = "cloudPk_example"; // String |
277+
var id = "id_example"; // String |
278+
var userCloudUpdate = new bimdata.UserCloudUpdate(); // UserCloudUpdate |
279+
apiInstance.fullUpdateCloudUser(cloudPk, id, userCloudUpdate).then(function(data) {
280+
console.log('API called successfully. Returned data: ' + data);
281+
}, function(error) {
282+
console.error(error);
283+
});
284+
285+
```
286+
287+
### Parameters
288+
289+
Name | Type | Description | Notes
290+
------------- | ------------- | ------------- | -------------
291+
**cloudPk** | **String**| |
292+
**id** | **String**| |
293+
**userCloudUpdate** | [**UserCloudUpdate**](UserCloudUpdate.md)| |
294+
295+
### Return type
296+
297+
[**User**](User.md)
298+
299+
### Authorization
300+
301+
[Bearer](../README.md#Bearer)
302+
250303
### HTTP request headers
251304

252305
- **Content-Type**: application/json
@@ -526,3 +579,54 @@ Name | Type | Description | Notes
526579
- **Content-Type**: application/json
527580
- **Accept**: application/json
528581

582+
<a name="updateCloudUser"></a>
583+
# **updateCloudUser**
584+
> User updateCloudUser(cloudPk, id, userCloudUpdate)
585+
586+
587+
588+
Change the user role in the cloud
589+
590+
### Example
591+
```javascript
592+
var bimdata = require('@bimdata/bimdata-api-client');
593+
var defaultClient = bimdata.ApiClient.instance;
594+
// Configure API key authorization: Bearer
595+
var Bearer = defaultClient.authentications['Bearer'];
596+
Bearer.apiKey = 'YOUR API KEY';
597+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
598+
//Bearer.apiKeyPrefix = 'Token';
599+
600+
var apiInstance = new bimdata.CloudApi();
601+
var cloudPk = "cloudPk_example"; // String |
602+
var id = "id_example"; // String |
603+
var userCloudUpdate = new bimdata.UserCloudUpdate(); // UserCloudUpdate |
604+
apiInstance.updateCloudUser(cloudPk, id, userCloudUpdate).then(function(data) {
605+
console.log('API called successfully. Returned data: ' + data);
606+
}, function(error) {
607+
console.error(error);
608+
});
609+
610+
```
611+
612+
### Parameters
613+
614+
Name | Type | Description | Notes
615+
------------- | ------------- | ------------- | -------------
616+
**cloudPk** | **String**| |
617+
**id** | **String**| |
618+
**userCloudUpdate** | [**UserCloudUpdate**](UserCloudUpdate.md)| |
619+
620+
### Return type
621+
622+
[**User**](User.md)
623+
624+
### Authorization
625+
626+
[Bearer](../README.md#Bearer)
627+
628+
### HTTP request headers
629+
630+
- **Content-Type**: application/json
631+
- **Accept**: application/json
632+

docs/ProjectApi.md

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Method | HTTP request | Description
1717
[**fullUpdateDocument**](ProjectApi.md#fullUpdateDocument) | **PUT** /cloud/{cloud_pk}/project/{project_pk}/document/{id} |
1818
[**fullUpdateFolder**](ProjectApi.md#fullUpdateFolder) | **PUT** /cloud/{cloud_pk}/project/{project_pk}/folder/{id} |
1919
[**fullUpdateProject**](ProjectApi.md#fullUpdateProject) | **PUT** /cloud/{cloud_pk}/project/{id} |
20+
[**fullUpdateProjectUser**](ProjectApi.md#fullUpdateProjectUser) | **PUT** /cloud/{cloud_pk}/project/{project_pk}/user/{id} |
2021
[**getClassification**](ProjectApi.md#getClassification) | **GET** /cloud/{cloud_pk}/project/{project_pk}/classification/{id} |
2122
[**getClassifications**](ProjectApi.md#getClassifications) | **GET** /cloud/{cloud_pk}/project/{project_pk}/classification |
2223
[**getDocument**](ProjectApi.md#getDocument) | **GET** /cloud/{cloud_pk}/project/{project_pk}/document/{id} |
@@ -33,6 +34,7 @@ Method | HTTP request | Description
3334
[**updateDocument**](ProjectApi.md#updateDocument) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/document/{id} |
3435
[**updateFolder**](ProjectApi.md#updateFolder) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/folder/{id} |
3536
[**updateProject**](ProjectApi.md#updateProject) | **PATCH** /cloud/{cloud_pk}/project/{id} |
37+
[**updateProjectUser**](ProjectApi.md#updateProjectUser) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/user/{id} |
3638

3739

3840
<a name="createClassification"></a>
@@ -707,6 +709,59 @@ Name | Type | Description | Notes
707709

708710
[Bearer](../README.md#Bearer)
709711

712+
### HTTP request headers
713+
714+
- **Content-Type**: application/json
715+
- **Accept**: application/json
716+
717+
<a name="fullUpdateProjectUser"></a>
718+
# **fullUpdateProjectUser**
719+
> User fullUpdateProjectUser(cloudPk, id, projectPk, userProjectUpdate)
720+
721+
722+
723+
Change the user role in the cloud
724+
725+
### Example
726+
```javascript
727+
var bimdata = require('@bimdata/bimdata-api-client');
728+
var defaultClient = bimdata.ApiClient.instance;
729+
// Configure API key authorization: Bearer
730+
var Bearer = defaultClient.authentications['Bearer'];
731+
Bearer.apiKey = 'YOUR API KEY';
732+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
733+
//Bearer.apiKeyPrefix = 'Token';
734+
735+
var apiInstance = new bimdata.ProjectApi();
736+
var cloudPk = "cloudPk_example"; // String |
737+
var id = "id_example"; // String |
738+
var projectPk = "projectPk_example"; // String |
739+
var userProjectUpdate = new bimdata.UserProjectUpdate(); // UserProjectUpdate |
740+
apiInstance.fullUpdateProjectUser(cloudPk, id, projectPk, userProjectUpdate).then(function(data) {
741+
console.log('API called successfully. Returned data: ' + data);
742+
}, function(error) {
743+
console.error(error);
744+
});
745+
746+
```
747+
748+
### Parameters
749+
750+
Name | Type | Description | Notes
751+
------------- | ------------- | ------------- | -------------
752+
**cloudPk** | **String**| |
753+
**id** | **String**| |
754+
**projectPk** | **String**| |
755+
**userProjectUpdate** | [**UserProjectUpdate**](UserProjectUpdate.md)| |
756+
757+
### Return type
758+
759+
[**User**](User.md)
760+
761+
### Authorization
762+
763+
[Bearer](../README.md#Bearer)
764+
710765
### HTTP request headers
711766

712767
- **Content-Type**: application/json
@@ -1490,3 +1545,56 @@ Name | Type | Description | Notes
14901545
- **Content-Type**: application/json
14911546
- **Accept**: application/json
14921547

1548+
<a name="updateProjectUser"></a>
1549+
# **updateProjectUser**
1550+
> User updateProjectUser(cloudPk, id, projectPk, userProjectUpdate)
1551+
1552+
1553+
1554+
Change the user role in the cloud
1555+
1556+
### Example
1557+
```javascript
1558+
var bimdata = require('@bimdata/bimdata-api-client');
1559+
var defaultClient = bimdata.ApiClient.instance;
1560+
// Configure API key authorization: Bearer
1561+
var Bearer = defaultClient.authentications['Bearer'];
1562+
Bearer.apiKey = 'YOUR API KEY';
1563+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
1564+
//Bearer.apiKeyPrefix = 'Token';
1565+
1566+
var apiInstance = new bimdata.ProjectApi();
1567+
var cloudPk = "cloudPk_example"; // String |
1568+
var id = "id_example"; // String |
1569+
var projectPk = "projectPk_example"; // String |
1570+
var userProjectUpdate = new bimdata.UserProjectUpdate(); // UserProjectUpdate |
1571+
apiInstance.updateProjectUser(cloudPk, id, projectPk, userProjectUpdate).then(function(data) {
1572+
console.log('API called successfully. Returned data: ' + data);
1573+
}, function(error) {
1574+
console.error(error);
1575+
});
1576+
1577+
```
1578+
1579+
### Parameters
1580+
1581+
Name | Type | Description | Notes
1582+
------------- | ------------- | ------------- | -------------
1583+
**cloudPk** | **String**| |
1584+
**id** | **String**| |
1585+
**projectPk** | **String**| |
1586+
**userProjectUpdate** | [**UserProjectUpdate**](UserProjectUpdate.md)| |
1587+
1588+
### Return type
1589+
1590+
[**User**](User.md)
1591+
1592+
### Authorization
1593+
1594+
[Bearer](../README.md#Bearer)
1595+
1596+
### HTTP request headers
1597+
1598+
- **Content-Type**: application/json
1599+
- **Accept**: application/json
1600+

docs/User.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
1010
**lastname** | **String** | | [optional]
1111
**createdAt** | **Date** | | [optional]
1212
**updatedAt** | **Date** | | [optional]
13-
**lastLogin** | **Date** | | [optional]
13+
**cloudRole** | **Number** | | [optional]
14+
**projectRole** | **Number** | | [optional]
1415

1516

docs/UserCloudUpdate.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# bimdata.UserCloudUpdate
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**role** | **Number** | |
7+
8+

docs/UserProjectUpdate.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# bimdata.UserProjectUpdate
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**role** | **Number** | |
7+
8+

src/ApiClient.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* BIMData API
3-
* BIMData API documentation
3+
* BIMData API is a tool to interact with your models stored on BIMData’s servers. Through the API, you can manage your projects, the clouds, upload your IFC files and manage them through endpoints.
44
*
55
* OpenAPI spec version: v1
66
* Contact: contact@bimdata.io

src/api/ApplicationApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* BIMData API
3-
* BIMData API documentation
3+
* BIMData API is a tool to interact with your models stored on BIMData’s servers. Through the API, you can manage your projects, the clouds, upload your IFC files and manage them through endpoints.
44
*
55
* OpenAPI spec version: v1
66
* Contact: contact@bimdata.io

0 commit comments

Comments
 (0)