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

Commit 094b313

Browse files
committed
PATCH: rename operation_id
1 parent 296f3e7 commit 094b313

4 files changed

Lines changed: 18 additions & 18 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ Class | Method | HTTP request | Description
244244
*bimdata.CollaborationApi* | [**createValidation**](docs/CollaborationApi.md#createValidation) | **POST** /cloud/{cloud_pk}/project/{project_pk}/document/{document_pk}/visa/{visa_pk}/validation | Add a validation to a visa
245245
*bimdata.CollaborationApi* | [**createVisa**](docs/CollaborationApi.md#createVisa) | **POST** /cloud/{cloud_pk}/project/{project_pk}/document/{document_pk}/visa | Create a visa
246246
*bimdata.CollaborationApi* | [**createVisaComment**](docs/CollaborationApi.md#createVisaComment) | **POST** /cloud/{cloud_pk}/project/{project_pk}/document/{document_pk}/visa/{visa_pk}/comment | Add a comment
247-
*bimdata.CollaborationApi* | [**deleteAllHistory**](docs/CollaborationApi.md#deleteAllHistory) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/document/{document_pk}/history/delete | Delete all document history
247+
*bimdata.CollaborationApi* | [**deleteAllDocumentHistory**](docs/CollaborationApi.md#deleteAllDocumentHistory) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/document/{document_pk}/history/delete | Delete all document history
248248
*bimdata.CollaborationApi* | [**deleteClassification**](docs/CollaborationApi.md#deleteClassification) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/classification/{id} | Delete a classification
249249
*bimdata.CollaborationApi* | [**deleteCloud**](docs/CollaborationApi.md#deleteCloud) | **DELETE** /cloud/{id} | Delete a cloud
250250
*bimdata.CollaborationApi* | [**deleteCloudUser**](docs/CollaborationApi.md#deleteCloudUser) | **DELETE** /cloud/{cloud_pk}/user/{id} | Remove a user from a cloud

docs/CollaborationApi.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Method | HTTP request | Description
2424
[**createValidation**](CollaborationApi.md#createValidation) | **POST** /cloud/{cloud_pk}/project/{project_pk}/document/{document_pk}/visa/{visa_pk}/validation | Add a validation to a visa
2525
[**createVisa**](CollaborationApi.md#createVisa) | **POST** /cloud/{cloud_pk}/project/{project_pk}/document/{document_pk}/visa | Create a visa
2626
[**createVisaComment**](CollaborationApi.md#createVisaComment) | **POST** /cloud/{cloud_pk}/project/{project_pk}/document/{document_pk}/visa/{visa_pk}/comment | Add a comment
27-
[**deleteAllHistory**](CollaborationApi.md#deleteAllHistory) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/document/{document_pk}/history/delete | Delete all document history
27+
[**deleteAllDocumentHistory**](CollaborationApi.md#deleteAllDocumentHistory) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/document/{document_pk}/history/delete | Delete all document history
2828
[**deleteClassification**](CollaborationApi.md#deleteClassification) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/classification/{id} | Delete a classification
2929
[**deleteCloud**](CollaborationApi.md#deleteCloud) | **DELETE** /cloud/{id} | Delete a cloud
3030
[**deleteCloudUser**](CollaborationApi.md#deleteCloudUser) | **DELETE** /cloud/{cloud_pk}/user/{id} | Remove a user from a cloud
@@ -1434,13 +1434,13 @@ Name | Type | Description | Notes
14341434
- **Accept**: application/json
14351435

14361436

1437-
## deleteAllHistory
1437+
## deleteAllDocumentHistory
14381438

1439-
> deleteAllHistory(cloudPk, documentPk, projectPk)
1439+
> deleteAllDocumentHistory(cloudPk, documentPk, projectPk)
14401440
14411441
Delete all document history
14421442

1443-
Delete all document history Required scopes: document:write
1443+
Delete the document from the head version and all its history Required scopes: document:write
14441444

14451445
### Example
14461446

@@ -1468,7 +1468,7 @@ let apiInstance = new bimdata.CollaborationApi();
14681468
let cloudPk = 56; // Number | A unique integer value identifying this cloud.
14691469
let documentPk = 56; // Number | A unique integer value identifying this document.
14701470
let projectPk = 56; // Number | A unique integer value identifying this project.
1471-
apiInstance.deleteAllHistory(cloudPk, documentPk, projectPk).then(() => {
1471+
apiInstance.deleteAllDocumentHistory(cloudPk, documentPk, projectPk).then(() => {
14721472
console.log('API called successfully.');
14731473
}, (error) => {
14741474
console.error(error);

src/api/CollaborationApi.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1357,25 +1357,25 @@ export default class CollaborationApi {
13571357

13581358
/**
13591359
* Delete all document history
1360-
* Delete all document history Required scopes: document:write
1360+
* Delete the document from the head version and all its history Required scopes: document:write
13611361
* @param {Number} cloudPk A unique integer value identifying this cloud.
13621362
* @param {Number} documentPk A unique integer value identifying this document.
13631363
* @param {Number} projectPk A unique integer value identifying this project.
13641364
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
13651365
*/
1366-
deleteAllHistoryWithHttpInfo(cloudPk, documentPk, projectPk) {
1366+
deleteAllDocumentHistoryWithHttpInfo(cloudPk, documentPk, projectPk) {
13671367
let postBody = null;
13681368
// verify the required parameter 'cloudPk' is set
13691369
if (cloudPk === undefined || cloudPk === null) {
1370-
throw new Error("Missing the required parameter 'cloudPk' when calling deleteAllHistory");
1370+
throw new Error("Missing the required parameter 'cloudPk' when calling deleteAllDocumentHistory");
13711371
}
13721372
// verify the required parameter 'documentPk' is set
13731373
if (documentPk === undefined || documentPk === null) {
1374-
throw new Error("Missing the required parameter 'documentPk' when calling deleteAllHistory");
1374+
throw new Error("Missing the required parameter 'documentPk' when calling deleteAllDocumentHistory");
13751375
}
13761376
// verify the required parameter 'projectPk' is set
13771377
if (projectPk === undefined || projectPk === null) {
1378-
throw new Error("Missing the required parameter 'projectPk' when calling deleteAllHistory");
1378+
throw new Error("Missing the required parameter 'projectPk' when calling deleteAllDocumentHistory");
13791379
}
13801380

13811381
let pathParams = {
@@ -1403,14 +1403,14 @@ export default class CollaborationApi {
14031403

14041404
/**
14051405
* Delete all document history
1406-
* Delete all document history Required scopes: document:write
1406+
* Delete the document from the head version and all its history Required scopes: document:write
14071407
* @param {Number} cloudPk A unique integer value identifying this cloud.
14081408
* @param {Number} documentPk A unique integer value identifying this document.
14091409
* @param {Number} projectPk A unique integer value identifying this project.
14101410
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
14111411
*/
1412-
deleteAllHistory(cloudPk, documentPk, projectPk) {
1413-
return this.deleteAllHistoryWithHttpInfo(cloudPk, documentPk, projectPk)
1412+
deleteAllDocumentHistory(cloudPk, documentPk, projectPk) {
1413+
return this.deleteAllDocumentHistoryWithHttpInfo(cloudPk, documentPk, projectPk)
14141414
.then(function(response_and_data) {
14151415
return response_and_data.data;
14161416
});

test/api/CollaborationApi.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -248,10 +248,10 @@
248248
done();
249249
});
250250
});
251-
describe('deleteAllHistory', function() {
252-
it('should call deleteAllHistory successfully', function(done) {
253-
//uncomment below and update the code to test deleteAllHistory
254-
//instance.deleteAllHistory(function(error) {
251+
describe('deleteAllDocumentHistory', function() {
252+
it('should call deleteAllDocumentHistory successfully', function(done) {
253+
//uncomment below and update the code to test deleteAllDocumentHistory
254+
//instance.deleteAllDocumentHistory(function(error) {
255255
// if (error) throw error;
256256
//expect().to.be();
257257
//});

0 commit comments

Comments
 (0)