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

Commit 3efddd5

Browse files
committed
PATCH: forbid to non admin to create topic properties (#705)
* forbid to non admin to create topic properties * remvoe prints * users and guests can only edit their own BCFs * remove PUT viewpoint route * fix import * code optimization * remove dead code
1 parent 8175f6c commit 3efddd5

File tree

10 files changed

+3
-479
lines changed

10 files changed

+3
-479
lines changed

.openapi-generator/FILES

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ docs/PatchedTopicTypeRequest.md
126126
docs/PatchedUnitRequest.md
127127
docs/PatchedUserCloudUpdateRequest.md
128128
docs/PatchedUserProjectUpdateRequest.md
129-
docs/PatchedViewpointRequest.md
130129
docs/PatchedVisaCommentRequest.md
131130
docs/PatchedVisaRequest.md
132131
docs/PatchedVisaValidationRequest.md
@@ -375,7 +374,6 @@ src/model/PatchedTopicTypeRequest.js
375374
src/model/PatchedUnitRequest.js
376375
src/model/PatchedUserCloudUpdateRequest.js
377376
src/model/PatchedUserProjectUpdateRequest.js
378-
src/model/PatchedViewpointRequest.js
379377
src/model/PatchedVisaCommentRequest.js
380378
src/model/PatchedVisaRequest.js
381379
src/model/PatchedVisaValidationRequest.js
@@ -618,7 +616,6 @@ test/model/PatchedTopicTypeRequest.spec.js
618616
test/model/PatchedUnitRequest.spec.js
619617
test/model/PatchedUserCloudUpdateRequest.spec.js
620618
test/model/PatchedUserProjectUpdateRequest.spec.js
621-
test/model/PatchedViewpointRequest.spec.js
622619
test/model/PatchedVisaCommentRequest.spec.js
623620
test/model/PatchedVisaRequest.spec.js
624621
test/model/PatchedVisaValidationRequest.spec.js

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ Class | Method | HTTP request | Description
167167
*bimdata.BcfApi* | [**fullUpdateFullTopic**](docs/BcfApi.md#fullUpdateFullTopic) | **PUT** /bcf/2.1/projects/{projects_pk}/full-topic/{guid} | Update all fields of a topic
168168
*bimdata.BcfApi* | [**fullUpdatePin**](docs/BcfApi.md#fullUpdatePin) | **PUT** /bcf/2.1/projects/{projects_pk}/topics/{topics_guid}/viewpoints/{viewpoints_guid}/pin/{guid} | Update all fields of a Pin
169169
*bimdata.BcfApi* | [**fullUpdateTopic**](docs/BcfApi.md#fullUpdateTopic) | **PUT** /bcf/2.1/projects/{projects_pk}/topics/{guid} | Update all fields of a topic
170-
*bimdata.BcfApi* | [**fullUpdateViewpoint**](docs/BcfApi.md#fullUpdateViewpoint) | **PUT** /bcf/2.1/projects/{projects_pk}/topics/{topics_guid}/viewpoints/{guid} | Update all fields of a Viewpoint
171170
*bimdata.BcfApi* | [**getAuth**](docs/BcfApi.md#getAuth) | **GET** /bcf/2.1/auth | Retrieve Authentication Information
172171
*bimdata.BcfApi* | [**getBcfProject**](docs/BcfApi.md#getBcfProject) | **GET** /bcf/2.1/projects/{id} | Retrieve a BCF project
173172
*bimdata.BcfApi* | [**getBcfProjects**](docs/BcfApi.md#getBcfProjects) | **GET** /bcf/2.1/projects | Retrieve all BCF projects
@@ -203,7 +202,6 @@ Class | Method | HTTP request | Description
203202
*bimdata.BcfApi* | [**updateFullTopic**](docs/BcfApi.md#updateFullTopic) | **PATCH** /bcf/2.1/projects/{projects_pk}/full-topic/{guid} | Update some fields of a topic
204203
*bimdata.BcfApi* | [**updatePin**](docs/BcfApi.md#updatePin) | **PATCH** /bcf/2.1/projects/{projects_pk}/topics/{topics_guid}/viewpoints/{viewpoints_guid}/pin/{guid} | Update some fields of a Pin
205204
*bimdata.BcfApi* | [**updateTopic**](docs/BcfApi.md#updateTopic) | **PATCH** /bcf/2.1/projects/{projects_pk}/topics/{guid} | Update some fields of a topic
206-
*bimdata.BcfApi* | [**updateViewpoint**](docs/BcfApi.md#updateViewpoint) | **PATCH** /bcf/2.1/projects/{projects_pk}/topics/{topics_guid}/viewpoints/{guid} | Update some fields of a Viewpoint
207205
*bimdata.CollaborationApi* | [**acceptUserInvitation**](docs/CollaborationApi.md#acceptUserInvitation) | **POST** /user/invitations/{id}/accept | Accept an invitation
208206
*bimdata.CollaborationApi* | [**acceptValidation**](docs/CollaborationApi.md#acceptValidation) | **POST** /cloud/{cloud_pk}/project/{project_pk}/document/{document_pk}/visa/{visa_pk}/validation/{id}/accept | Accept a validation
209207
*bimdata.CollaborationApi* | [**addDocumentTag**](docs/CollaborationApi.md#addDocumentTag) | **POST** /cloud/{cloud_pk}/project/{project_pk}/document/{document_pk}/tag | Add a tag to a document
@@ -743,7 +741,6 @@ Class | Method | HTTP request | Description
743741
- [bimdata.PatchedUnitRequest](docs/PatchedUnitRequest.md)
744742
- [bimdata.PatchedUserCloudUpdateRequest](docs/PatchedUserCloudUpdateRequest.md)
745743
- [bimdata.PatchedUserProjectUpdateRequest](docs/PatchedUserProjectUpdateRequest.md)
746-
- [bimdata.PatchedViewpointRequest](docs/PatchedViewpointRequest.md)
747744
- [bimdata.PatchedVisaCommentRequest](docs/PatchedVisaCommentRequest.md)
748745
- [bimdata.PatchedVisaRequest](docs/PatchedVisaRequest.md)
749746
- [bimdata.PatchedVisaValidationRequest](docs/PatchedVisaValidationRequest.md)

docs/BcfApi.md

Lines changed: 0 additions & 144 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ Method | HTTP request | Description
3030
[**fullUpdateFullTopic**](BcfApi.md#fullUpdateFullTopic) | **PUT** /bcf/2.1/projects/{projects_pk}/full-topic/{guid} | Update all fields of a topic
3131
[**fullUpdatePin**](BcfApi.md#fullUpdatePin) | **PUT** /bcf/2.1/projects/{projects_pk}/topics/{topics_guid}/viewpoints/{viewpoints_guid}/pin/{guid} | Update all fields of a Pin
3232
[**fullUpdateTopic**](BcfApi.md#fullUpdateTopic) | **PUT** /bcf/2.1/projects/{projects_pk}/topics/{guid} | Update all fields of a topic
33-
[**fullUpdateViewpoint**](BcfApi.md#fullUpdateViewpoint) | **PUT** /bcf/2.1/projects/{projects_pk}/topics/{topics_guid}/viewpoints/{guid} | Update all fields of a Viewpoint
3433
[**getAuth**](BcfApi.md#getAuth) | **GET** /bcf/2.1/auth | Retrieve Authentication Information
3534
[**getBcfProject**](BcfApi.md#getBcfProject) | **GET** /bcf/2.1/projects/{id} | Retrieve a BCF project
3635
[**getBcfProjects**](BcfApi.md#getBcfProjects) | **GET** /bcf/2.1/projects | Retrieve all BCF projects
@@ -66,7 +65,6 @@ Method | HTTP request | Description
6665
[**updateFullTopic**](BcfApi.md#updateFullTopic) | **PATCH** /bcf/2.1/projects/{projects_pk}/full-topic/{guid} | Update some fields of a topic
6766
[**updatePin**](BcfApi.md#updatePin) | **PATCH** /bcf/2.1/projects/{projects_pk}/topics/{topics_guid}/viewpoints/{viewpoints_guid}/pin/{guid} | Update some fields of a Pin
6867
[**updateTopic**](BcfApi.md#updateTopic) | **PATCH** /bcf/2.1/projects/{projects_pk}/topics/{guid} | Update some fields of a topic
69-
[**updateViewpoint**](BcfApi.md#updateViewpoint) | **PATCH** /bcf/2.1/projects/{projects_pk}/topics/{topics_guid}/viewpoints/{guid} | Update some fields of a Viewpoint
7068

7169

7270

@@ -1768,77 +1766,6 @@ Name | Type | Description | Notes
17681766
- **Accept**: application/json
17691767

17701768

1771-
## fullUpdateViewpoint
1772-
1773-
> Viewpoint fullUpdateViewpoint(guid, projectsPk, topicsGuid, opts)
1774-
1775-
Update all fields of a Viewpoint
1776-
1777-
This is not a standard route. Update all fields of a Viewpoint Required scopes: bcf:write
1778-
1779-
### Example
1780-
1781-
```javascript
1782-
import bimdata from '@bimdata/bimdata-api-client';
1783-
let defaultClient = bimdata.ApiClient.instance;
1784-
// Configure API key authorization: ApiKey
1785-
let ApiKey = defaultClient.authentications['ApiKey'];
1786-
ApiKey.apiKey = 'YOUR API KEY';
1787-
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
1788-
//ApiKey.apiKeyPrefix = 'Token';
1789-
// Configure OAuth2 access token for authorization: BIMData_Connect
1790-
let BIMData_Connect = defaultClient.authentications['BIMData_Connect'];
1791-
BIMData_Connect.accessToken = 'YOUR ACCESS TOKEN';
1792-
// Configure OAuth2 access token for authorization: BIMData_Connect
1793-
let BIMData_Connect = defaultClient.authentications['BIMData_Connect'];
1794-
BIMData_Connect.accessToken = 'YOUR ACCESS TOKEN';
1795-
// Configure API key authorization: Bearer
1796-
let Bearer = defaultClient.authentications['Bearer'];
1797-
Bearer.apiKey = 'YOUR API KEY';
1798-
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
1799-
//Bearer.apiKeyPrefix = 'Token';
1800-
1801-
let apiInstance = new bimdata.BcfApi();
1802-
let guid = "guid_example"; // String |
1803-
let projectsPk = 56; // Number |
1804-
let topicsGuid = "topicsGuid_example"; // String |
1805-
let opts = {
1806-
'imgFormat': "imgFormat_example", // String | All snapshot_data will be returned as url instead of base64
1807-
'viewpointRequest': new bimdata.ViewpointRequest() // ViewpointRequest |
1808-
};
1809-
apiInstance.fullUpdateViewpoint(guid, projectsPk, topicsGuid, opts).then((data) => {
1810-
console.log('API called successfully. Returned data: ' + data);
1811-
}, (error) => {
1812-
console.error(error);
1813-
});
1814-
1815-
```
1816-
1817-
### Parameters
1818-
1819-
1820-
Name | Type | Description | Notes
1821-
------------- | ------------- | ------------- | -------------
1822-
**guid** | **String**| |
1823-
**projectsPk** | **Number**| |
1824-
**topicsGuid** | **String**| |
1825-
**imgFormat** | **String**| All snapshot_data will be returned as url instead of base64 | [optional]
1826-
**viewpointRequest** | [**ViewpointRequest**](ViewpointRequest.md)| | [optional]
1827-
1828-
### Return type
1829-
1830-
[**Viewpoint**](Viewpoint.md)
1831-
1832-
### Authorization
1833-
1834-
[ApiKey](../README.md#ApiKey), [BIMData_Connect](../README.md#BIMData_Connect), [BIMData_Connect](../README.md#BIMData_Connect), [Bearer](../README.md#Bearer)
1835-
1836-
### HTTP request headers
1837-
1838-
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
1839-
- **Accept**: application/json
1840-
1841-
18421769
## getAuth
18431770

18441771
> [Auth] getAuth()
@@ -4123,74 +4050,3 @@ Name | Type | Description | Notes
41234050
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
41244051
- **Accept**: application/json
41254052

4126-
4127-
## updateViewpoint
4128-
4129-
> Viewpoint updateViewpoint(guid, projectsPk, topicsGuid, opts)
4130-
4131-
Update some fields of a Viewpoint
4132-
4133-
This is not a standard route. Update some fields of a Viewpoint Required scopes: bcf:write
4134-
4135-
### Example
4136-
4137-
```javascript
4138-
import bimdata from '@bimdata/bimdata-api-client';
4139-
let defaultClient = bimdata.ApiClient.instance;
4140-
// Configure API key authorization: ApiKey
4141-
let ApiKey = defaultClient.authentications['ApiKey'];
4142-
ApiKey.apiKey = 'YOUR API KEY';
4143-
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
4144-
//ApiKey.apiKeyPrefix = 'Token';
4145-
// Configure OAuth2 access token for authorization: BIMData_Connect
4146-
let BIMData_Connect = defaultClient.authentications['BIMData_Connect'];
4147-
BIMData_Connect.accessToken = 'YOUR ACCESS TOKEN';
4148-
// Configure OAuth2 access token for authorization: BIMData_Connect
4149-
let BIMData_Connect = defaultClient.authentications['BIMData_Connect'];
4150-
BIMData_Connect.accessToken = 'YOUR ACCESS TOKEN';
4151-
// Configure API key authorization: Bearer
4152-
let Bearer = defaultClient.authentications['Bearer'];
4153-
Bearer.apiKey = 'YOUR API KEY';
4154-
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
4155-
//Bearer.apiKeyPrefix = 'Token';
4156-
4157-
let apiInstance = new bimdata.BcfApi();
4158-
let guid = "guid_example"; // String |
4159-
let projectsPk = 56; // Number |
4160-
let topicsGuid = "topicsGuid_example"; // String |
4161-
let opts = {
4162-
'imgFormat': "imgFormat_example", // String | All snapshot_data will be returned as url instead of base64
4163-
'patchedViewpointRequest': new bimdata.PatchedViewpointRequest() // PatchedViewpointRequest |
4164-
};
4165-
apiInstance.updateViewpoint(guid, projectsPk, topicsGuid, opts).then((data) => {
4166-
console.log('API called successfully. Returned data: ' + data);
4167-
}, (error) => {
4168-
console.error(error);
4169-
});
4170-
4171-
```
4172-
4173-
### Parameters
4174-
4175-
4176-
Name | Type | Description | Notes
4177-
------------- | ------------- | ------------- | -------------
4178-
**guid** | **String**| |
4179-
**projectsPk** | **Number**| |
4180-
**topicsGuid** | **String**| |
4181-
**imgFormat** | **String**| All snapshot_data will be returned as url instead of base64 | [optional]
4182-
**patchedViewpointRequest** | [**PatchedViewpointRequest**](PatchedViewpointRequest.md)| | [optional]
4183-
4184-
### Return type
4185-
4186-
[**Viewpoint**](Viewpoint.md)
4187-
4188-
### Authorization
4189-
4190-
[ApiKey](../README.md#ApiKey), [BIMData_Connect](../README.md#BIMData_Connect), [BIMData_Connect](../README.md#BIMData_Connect), [Bearer](../README.md#Bearer)
4191-
4192-
### HTTP request headers
4193-
4194-
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
4195-
- **Accept**: application/json
4196-

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

960960
### Example
961961

docs/PatchedViewpointRequest.md

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)