diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 033f915..9749e97 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -231,6 +231,7 @@ docs/ViewSetupHintsRequest.md docs/Viewpoint.md docs/ViewpointRequest.md docs/Visa.md +docs/VisaAttachment.md docs/VisaComment.md docs/VisaCommentRequest.md docs/VisaRequest.md @@ -482,6 +483,7 @@ src/model/ViewSetupHintsRequest.js src/model/Viewpoint.js src/model/ViewpointRequest.js src/model/Visa.js +src/model/VisaAttachment.js src/model/VisaComment.js src/model/VisaCommentRequest.js src/model/VisaRequest.js @@ -728,6 +730,7 @@ test/model/ViewSetupHintsRequest.spec.js test/model/Viewpoint.spec.js test/model/ViewpointRequest.spec.js test/model/Visa.spec.js +test/model/VisaAttachment.spec.js test/model/VisaComment.spec.js test/model/VisaCommentRequest.spec.js test/model/VisaRequest.spec.js diff --git a/README.md b/README.md index ecfc938..a81dc23 100644 --- a/README.md +++ b/README.md @@ -255,6 +255,7 @@ Class | Method | HTTP request | Description *bimdata.CollaborationApi* | [**getDocumentHistories**](docs/CollaborationApi.md#getDocumentHistories) | **GET** /cloud/{cloud_pk}/project/{project_pk}/document/{document_pk}/history | Retrieve all document histories *bimdata.CollaborationApi* | [**getDocuments**](docs/CollaborationApi.md#getDocuments) | **GET** /cloud/{cloud_pk}/project/{project_pk}/document | Retrieve all documents *bimdata.CollaborationApi* | [**getFolder**](docs/CollaborationApi.md#getFolder) | **GET** /cloud/{cloud_pk}/project/{project_pk}/folder/{id} | Retrieve a folder +*bimdata.CollaborationApi* | [**getFolderDocuments**](docs/CollaborationApi.md#getFolderDocuments) | **GET** /cloud/{cloud_pk}/project/{project_pk}/folder/{folder_pk}/document | Get all documents of a folder *bimdata.CollaborationApi* | [**getFolderProjectUsers**](docs/CollaborationApi.md#getFolderProjectUsers) | **GET** /cloud/{cloud_pk}/project/{project_pk}/folder/{folder_pk}/user | Retrieve all users in a project with the permission on the folder *bimdata.CollaborationApi* | [**getFolders**](docs/CollaborationApi.md#getFolders) | **GET** /cloud/{cloud_pk}/project/{project_pk}/folder | Retrieve all folders *bimdata.CollaborationApi* | [**getGroup**](docs/CollaborationApi.md#getGroup) | **GET** /cloud/{cloud_pk}/project/{project_pk}/me/group/{id} | Retrieve a group @@ -266,6 +267,7 @@ Class | Method | HTTP request | Description *bimdata.CollaborationApi* | [**getProjectAccessTokens**](docs/CollaborationApi.md#getProjectAccessTokens) | **GET** /cloud/{cloud_pk}/project/{project_pk}/access-token | Retrieve all tokens created for this project *bimdata.CollaborationApi* | [**getProjectCreatorVisas**](docs/CollaborationApi.md#getProjectCreatorVisas) | **GET** /cloud/{cloud_pk}/project/{project_pk}/me/visa/creator | List visas created by user *bimdata.CollaborationApi* | [**getProjectDMSTree**](docs/CollaborationApi.md#getProjectDMSTree) | **GET** /cloud/{cloud_pk}/project/{id}/dms-tree | Retrieve the complete DMS tree +*bimdata.CollaborationApi* | [**getProjectFolderTree**](docs/CollaborationApi.md#getProjectFolderTree) | **GET** /cloud/{cloud_pk}/project/{id}/folder-trees | Retrieve folder tree of the project *bimdata.CollaborationApi* | [**getProjectFolderTreeSerializers**](docs/CollaborationApi.md#getProjectFolderTreeSerializers) | **GET** /cloud/{cloud_pk}/project/folder-trees | Retrieve folder tree for all projects *bimdata.CollaborationApi* | [**getProjectInvitations**](docs/CollaborationApi.md#getProjectInvitations) | **GET** /cloud/{cloud_pk}/project/{project_pk}/invitation | Retrieve all pending invitations in the project *bimdata.CollaborationApi* | [**getProjectSize**](docs/CollaborationApi.md#getProjectSize) | **GET** /cloud/{cloud_pk}/project/{id}/size | Get size of all model files in the project @@ -856,6 +858,7 @@ Class | Method | HTTP request | Description - [bimdata.Viewpoint](docs/Viewpoint.md) - [bimdata.ViewpointRequest](docs/ViewpointRequest.md) - [bimdata.Visa](docs/Visa.md) + - [bimdata.VisaAttachment](docs/VisaAttachment.md) - [bimdata.VisaComment](docs/VisaComment.md) - [bimdata.VisaCommentRequest](docs/VisaCommentRequest.md) - [bimdata.VisaRequest](docs/VisaRequest.md) diff --git a/docs/CollaborationApi.md b/docs/CollaborationApi.md index 11f5e62..319b25f 100644 --- a/docs/CollaborationApi.md +++ b/docs/CollaborationApi.md @@ -56,6 +56,7 @@ Method | HTTP request | Description [**getDocumentHistories**](CollaborationApi.md#getDocumentHistories) | **GET** /cloud/{cloud_pk}/project/{project_pk}/document/{document_pk}/history | Retrieve all document histories [**getDocuments**](CollaborationApi.md#getDocuments) | **GET** /cloud/{cloud_pk}/project/{project_pk}/document | Retrieve all documents [**getFolder**](CollaborationApi.md#getFolder) | **GET** /cloud/{cloud_pk}/project/{project_pk}/folder/{id} | Retrieve a folder +[**getFolderDocuments**](CollaborationApi.md#getFolderDocuments) | **GET** /cloud/{cloud_pk}/project/{project_pk}/folder/{folder_pk}/document | Get all documents of a folder [**getFolderProjectUsers**](CollaborationApi.md#getFolderProjectUsers) | **GET** /cloud/{cloud_pk}/project/{project_pk}/folder/{folder_pk}/user | Retrieve all users in a project with the permission on the folder [**getFolders**](CollaborationApi.md#getFolders) | **GET** /cloud/{cloud_pk}/project/{project_pk}/folder | Retrieve all folders [**getGroup**](CollaborationApi.md#getGroup) | **GET** /cloud/{cloud_pk}/project/{project_pk}/me/group/{id} | Retrieve a group @@ -67,6 +68,7 @@ Method | HTTP request | Description [**getProjectAccessTokens**](CollaborationApi.md#getProjectAccessTokens) | **GET** /cloud/{cloud_pk}/project/{project_pk}/access-token | Retrieve all tokens created for this project [**getProjectCreatorVisas**](CollaborationApi.md#getProjectCreatorVisas) | **GET** /cloud/{cloud_pk}/project/{project_pk}/me/visa/creator | List visas created by user [**getProjectDMSTree**](CollaborationApi.md#getProjectDMSTree) | **GET** /cloud/{cloud_pk}/project/{id}/dms-tree | Retrieve the complete DMS tree +[**getProjectFolderTree**](CollaborationApi.md#getProjectFolderTree) | **GET** /cloud/{cloud_pk}/project/{id}/folder-trees | Retrieve folder tree of the project [**getProjectFolderTreeSerializers**](CollaborationApi.md#getProjectFolderTreeSerializers) | **GET** /cloud/{cloud_pk}/project/folder-trees | Retrieve folder tree for all projects [**getProjectInvitations**](CollaborationApi.md#getProjectInvitations) | **GET** /cloud/{cloud_pk}/project/{project_pk}/invitation | Retrieve all pending invitations in the project [**getProjectSize**](CollaborationApi.md#getProjectSize) | **GET** /cloud/{cloud_pk}/project/{id}/size | Get size of all model files in the project @@ -177,7 +179,7 @@ null (empty response body) ## acceptValidation -> acceptValidation(cloudPk, documentPk, id, projectPk, visaPk) +> VisaAttachment acceptValidation(cloudPk, documentPk, id, projectPk, visaPk, opts) Accept a validation @@ -211,8 +213,11 @@ let documentPk = 56; // Number | A unique integer value identifying this documen let id = 56; // Number | A unique integer value identifying this visa validation. let projectPk = 56; // Number | A unique integer value identifying this project. let visaPk = 56; // Number | A unique integer value identifying this visa. -apiInstance.acceptValidation(cloudPk, documentPk, id, projectPk, visaPk).then(() => { - console.log('API called successfully.'); +let opts = { + 'attachment': "/path/to/file" // File | +}; +apiInstance.acceptValidation(cloudPk, documentPk, id, projectPk, visaPk, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); }); @@ -229,10 +234,11 @@ Name | Type | Description | Notes **id** | **Number**| A unique integer value identifying this visa validation. | **projectPk** | **Number**| A unique integer value identifying this project. | **visaPk** | **Number**| A unique integer value identifying this visa. | + **attachment** | **File**| | [optional] ### Return type -null (empty response body) +[**VisaAttachment**](VisaAttachment.md) ### Authorization @@ -240,8 +246,8 @@ null (empty response body) ### HTTP request headers -- **Content-Type**: Not defined -- **Accept**: Not defined +- **Content-Type**: multipart/form-data, application/x-www-form-urlencoded +- **Accept**: application/json ## addDocumentTag @@ -955,7 +961,7 @@ Name | Type | Description | Notes Create a document -Create a document. If the document is one of {'IFC', 'OBJ', 'POINT_CLOUD', 'GLTF', 'DWG', 'DXF'}, a model will be created and attached to this document Required scopes: document:write +Create a document. If the document is one of {'POINT_CLOUD', 'DWG', 'OBJ', 'GLTF', 'IFC', 'DXF'}, a model will be created and attached to this document Required scopes: document:write ### Example @@ -2671,7 +2677,7 @@ null (empty response body) ## denyValidation -> denyValidation(cloudPk, documentPk, id, projectPk, visaPk) +> VisaAttachment denyValidation(cloudPk, documentPk, id, projectPk, visaPk, opts) Deny a validation @@ -2705,8 +2711,11 @@ let documentPk = 56; // Number | A unique integer value identifying this documen let id = 56; // Number | A unique integer value identifying this visa validation. let projectPk = 56; // Number | A unique integer value identifying this project. let visaPk = 56; // Number | A unique integer value identifying this visa. -apiInstance.denyValidation(cloudPk, documentPk, id, projectPk, visaPk).then(() => { - console.log('API called successfully.'); +let opts = { + 'attachment': "/path/to/file" // File | +}; +apiInstance.denyValidation(cloudPk, documentPk, id, projectPk, visaPk, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); }); @@ -2723,10 +2732,11 @@ Name | Type | Description | Notes **id** | **Number**| A unique integer value identifying this visa validation. | **projectPk** | **Number**| A unique integer value identifying this project. | **visaPk** | **Number**| A unique integer value identifying this visa. | + **attachment** | **File**| | [optional] ### Return type -null (empty response body) +[**VisaAttachment**](VisaAttachment.md) ### Authorization @@ -2734,8 +2744,8 @@ null (empty response body) ### HTTP request headers -- **Content-Type**: Not defined -- **Accept**: Not defined +- **Content-Type**: multipart/form-data, application/x-www-form-urlencoded +- **Accept**: application/json ## getClassification @@ -3372,11 +3382,11 @@ Name | Type | Description | Notes ## getDocuments -> [Document] getDocuments(cloudPk, projectPk) +> [Document] getDocuments(cloudPk, projectPk, opts) Retrieve all documents -Retrieve all documents in the project Required scopes: document:read +Retrieve all documents in the project. Filters are case insentive Required scopes: document:read ### Example @@ -3403,7 +3413,33 @@ Bearer.apiKey = 'YOUR API KEY'; let apiInstance = new bimdata.CollaborationApi(); let cloudPk = 56; // Number | A unique integer value identifying this cloud. let projectPk = 56; // Number | A unique integer value identifying this project. -apiInstance.getDocuments(cloudPk, projectPk).then((data) => { +let opts = { + 'createdAfter': new Date("2013-10-20T19:20:30+01:00"), // Date | + 'createdBefore': new Date("2013-10-20T19:20:30+01:00"), // Date | + 'creatorEmail': "creatorEmail_example", // String | + 'description': "description_example", // String | + 'descriptionContains': "descriptionContains_example", // String | + 'descriptionEndswith': "descriptionEndswith_example", // String | + 'descriptionStartswith': "descriptionStartswith_example", // String | + 'fileName': "fileName_example", // String | + 'fileNameContains': "fileNameContains_example", // String | + 'fileNameEndswith': "fileNameEndswith_example", // String | + 'fileNameStartswith': "fileNameStartswith_example", // String | + 'name': "name_example", // String | + 'nameContains': "nameContains_example", // String | + 'nameEndswith': "nameEndswith_example", // String | + 'nameStartswith': "nameStartswith_example", // String | + 'sizeMax': 789, // Number | Size of the file. + 'sizeMin': 789, // Number | Size of the file. + 'tags': ["null"], // [String] | Multiple values may be separated by commas. + 'visaCreatorEmail': "visaCreatorEmail_example", // String | + 'visaDeadlineAfter': new Date("2013-10-20"), // Date | + 'visaDeadlineBefore': new Date("2013-10-20"), // Date | + 'visaStatus': "visaStatus_example", // String | * `O` - opened * `P` - paused * `C` - closed + 'visaValidationStatus': "visaValidationStatus_example", // String | + 'visaValidatorEmail': "visaValidatorEmail_example" // String | +}; +apiInstance.getDocuments(cloudPk, projectPk, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -3418,6 +3454,30 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cloudPk** | **Number**| A unique integer value identifying this cloud. | **projectPk** | **Number**| A unique integer value identifying this project. | + **createdAfter** | **Date**| | [optional] + **createdBefore** | **Date**| | [optional] + **creatorEmail** | **String**| | [optional] + **description** | **String**| | [optional] + **descriptionContains** | **String**| | [optional] + **descriptionEndswith** | **String**| | [optional] + **descriptionStartswith** | **String**| | [optional] + **fileName** | **String**| | [optional] + **fileNameContains** | **String**| | [optional] + **fileNameEndswith** | **String**| | [optional] + **fileNameStartswith** | **String**| | [optional] + **name** | **String**| | [optional] + **nameContains** | **String**| | [optional] + **nameEndswith** | **String**| | [optional] + **nameStartswith** | **String**| | [optional] + **sizeMax** | **Number**| Size of the file. | [optional] + **sizeMin** | **Number**| Size of the file. | [optional] + **tags** | [**[String]**](String.md)| Multiple values may be separated by commas. | [optional] + **visaCreatorEmail** | **String**| | [optional] + **visaDeadlineAfter** | **Date**| | [optional] + **visaDeadlineBefore** | **Date**| | [optional] + **visaStatus** | **String**| * `O` - opened * `P` - paused * `C` - closed | [optional] + **visaValidationStatus** | **String**| | [optional] + **visaValidatorEmail** | **String**| | [optional] ### Return type @@ -3498,6 +3558,121 @@ Name | Type | Description | Notes - **Accept**: application/json +## getFolderDocuments + +> [Document] getFolderDocuments(cloudPk, folderPk, projectPk, opts) + +Get all documents of a folder + +Get all documents of a folder Required scopes: document:read + +### Example + +```javascript +import bimdata from '@bimdata/bimdata-api-client'; +let defaultClient = bimdata.ApiClient.instance; +// Configure API key authorization: ApiKey +let ApiKey = defaultClient.authentications['ApiKey']; +ApiKey.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKey.apiKeyPrefix = 'Token'; +// Configure OAuth2 access token for authorization: BIMData_Connect +let BIMData_Connect = defaultClient.authentications['BIMData_Connect']; +BIMData_Connect.accessToken = 'YOUR ACCESS TOKEN'; +// Configure OAuth2 access token for authorization: BIMData_Connect +let BIMData_Connect = defaultClient.authentications['BIMData_Connect']; +BIMData_Connect.accessToken = 'YOUR ACCESS TOKEN'; +// Configure API key authorization: Bearer +let Bearer = defaultClient.authentications['Bearer']; +Bearer.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//Bearer.apiKeyPrefix = 'Token'; + +let apiInstance = new bimdata.CollaborationApi(); +let cloudPk = 56; // Number | +let folderPk = 56; // Number | +let projectPk = 56; // Number | +let opts = { + 'createdAfter': new Date("2013-10-20T19:20:30+01:00"), // Date | + 'createdBefore': new Date("2013-10-20T19:20:30+01:00"), // Date | + 'creatorEmail': "creatorEmail_example", // String | + 'description': "description_example", // String | + 'descriptionContains': "descriptionContains_example", // String | + 'descriptionEndswith': "descriptionEndswith_example", // String | + 'descriptionStartswith': "descriptionStartswith_example", // String | + 'fileName': "fileName_example", // String | + 'fileNameContains': "fileNameContains_example", // String | + 'fileNameEndswith': "fileNameEndswith_example", // String | + 'fileNameStartswith': "fileNameStartswith_example", // String | + 'name': "name_example", // String | + 'nameContains': "nameContains_example", // String | + 'nameEndswith': "nameEndswith_example", // String | + 'nameStartswith': "nameStartswith_example", // String | + 'sizeMax': 789, // Number | Size of the file. + 'sizeMin': 789, // Number | Size of the file. + 'tags': ["null"], // [String] | Multiple values may be separated by commas. + 'visaCreatorEmail': "visaCreatorEmail_example", // String | + 'visaDeadlineAfter': new Date("2013-10-20"), // Date | + 'visaDeadlineBefore': new Date("2013-10-20"), // Date | + 'visaStatus': "visaStatus_example", // String | * `O` - opened * `P` - paused * `C` - closed + 'visaValidationStatus': "visaValidationStatus_example", // String | + 'visaValidatorEmail': "visaValidatorEmail_example" // String | +}; +apiInstance.getFolderDocuments(cloudPk, folderPk, projectPk, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cloudPk** | **Number**| | + **folderPk** | **Number**| | + **projectPk** | **Number**| | + **createdAfter** | **Date**| | [optional] + **createdBefore** | **Date**| | [optional] + **creatorEmail** | **String**| | [optional] + **description** | **String**| | [optional] + **descriptionContains** | **String**| | [optional] + **descriptionEndswith** | **String**| | [optional] + **descriptionStartswith** | **String**| | [optional] + **fileName** | **String**| | [optional] + **fileNameContains** | **String**| | [optional] + **fileNameEndswith** | **String**| | [optional] + **fileNameStartswith** | **String**| | [optional] + **name** | **String**| | [optional] + **nameContains** | **String**| | [optional] + **nameEndswith** | **String**| | [optional] + **nameStartswith** | **String**| | [optional] + **sizeMax** | **Number**| Size of the file. | [optional] + **sizeMin** | **Number**| Size of the file. | [optional] + **tags** | [**[String]**](String.md)| Multiple values may be separated by commas. | [optional] + **visaCreatorEmail** | **String**| | [optional] + **visaDeadlineAfter** | **Date**| | [optional] + **visaDeadlineBefore** | **Date**| | [optional] + **visaStatus** | **String**| * `O` - opened * `P` - paused * `C` - closed | [optional] + **visaValidationStatus** | **String**| | [optional] + **visaValidatorEmail** | **String**| | [optional] + +### Return type + +[**[Document]**](Document.md) + +### Authorization + +[ApiKey](../README.md#ApiKey), [BIMData_Connect](../README.md#BIMData_Connect), [BIMData_Connect](../README.md#BIMData_Connect), [Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + ## getFolderProjectUsers > [FolderUserProject] getFolderProjectUsers(cloudPk, folderPk, projectPk) @@ -4199,6 +4374,69 @@ Name | Type | Description | Notes - **Accept**: application/json +## getProjectFolderTree + +> ProjectFolderTree getProjectFolderTree(cloudPk, id) + +Retrieve folder tree of the project + +Retrieve folder tree of the project + +### Example + +```javascript +import bimdata from '@bimdata/bimdata-api-client'; +let defaultClient = bimdata.ApiClient.instance; +// Configure API key authorization: ApiKey +let ApiKey = defaultClient.authentications['ApiKey']; +ApiKey.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKey.apiKeyPrefix = 'Token'; +// Configure OAuth2 access token for authorization: BIMData_Connect +let BIMData_Connect = defaultClient.authentications['BIMData_Connect']; +BIMData_Connect.accessToken = 'YOUR ACCESS TOKEN'; +// Configure OAuth2 access token for authorization: BIMData_Connect +let BIMData_Connect = defaultClient.authentications['BIMData_Connect']; +BIMData_Connect.accessToken = 'YOUR ACCESS TOKEN'; +// Configure API key authorization: Bearer +let Bearer = defaultClient.authentications['Bearer']; +Bearer.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//Bearer.apiKeyPrefix = 'Token'; + +let apiInstance = new bimdata.CollaborationApi(); +let cloudPk = 56; // Number | +let id = 56; // Number | A unique integer value identifying this project. +apiInstance.getProjectFolderTree(cloudPk, id).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cloudPk** | **Number**| | + **id** | **Number**| A unique integer value identifying this project. | + +### Return type + +[**ProjectFolderTree**](ProjectFolderTree.md) + +### Authorization + +[ApiKey](../README.md#ApiKey), [BIMData_Connect](../README.md#BIMData_Connect), [BIMData_Connect](../README.md#BIMData_Connect), [Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + ## getProjectFolderTreeSerializers > [ProjectFolderTree] getProjectFolderTreeSerializers(cloudPk) @@ -5999,7 +6237,7 @@ null (empty response body) Reset a validation -Reset a validation if the validation has been accepted or rejected Required scopes: document:read +Reset a validation if the validation has been accepted or rejected. The attachment will be removed Required scopes: document:read ### Example diff --git a/docs/FolderTree.md b/docs/FolderTree.md index 2492678..6332728 100644 --- a/docs/FolderTree.md +++ b/docs/FolderTree.md @@ -4,7 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**children** | [**[FolderTree]**](FolderTree.md) | | +**id** | **Number** | | **name** | **String** | | +**children** | [**[FolderTree]**](FolderTree.md) | | diff --git a/docs/Visa.md b/docs/Visa.md index d0e145d..38c9994 100644 --- a/docs/Visa.md +++ b/docs/Visa.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **validationsInError** | **[Number]** | Validation IDs where one or more validators have no longer access to the visa document. | [readonly] **creator** | [**UserProject**](UserProject.md) | | [readonly] **documentId** | **Number** | | [readonly] -**status** | **String** | * `O` - opened * `A` - paused * `C` - closed | [readonly] +**status** | **String** | * `O` - opened * `P` - paused * `C` - closed | [readonly] **description** | **String** | Description of the visa | [optional] **comments** | [**[VisaComment]**](VisaComment.md) | | [readonly] **deadline** | **Date** | | [optional] @@ -23,7 +23,7 @@ Name | Type | Description | Notes * `O` (value: `"O"`) -* `A` (value: `"A"`) +* `P` (value: `"P"`) * `C` (value: `"C"`) diff --git a/docs/VisaAttachment.md b/docs/VisaAttachment.md new file mode 100644 index 0000000..4dd5013 --- /dev/null +++ b/docs/VisaAttachment.md @@ -0,0 +1,9 @@ +# bimdata.VisaAttachment + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attachment** | **String** | | [optional] + + diff --git a/src/api/CollaborationApi.js b/src/api/CollaborationApi.js index 0a6e551..dad2caa 100644 --- a/src/api/CollaborationApi.js +++ b/src/api/CollaborationApi.js @@ -63,6 +63,7 @@ import UserInvitation from '../model/UserInvitation'; import UserProject from '../model/UserProject'; import UserProjectIdRequest from '../model/UserProjectIdRequest'; import Visa from '../model/Visa'; +import VisaAttachment from '../model/VisaAttachment'; import VisaComment from '../model/VisaComment'; import VisaCommentRequest from '../model/VisaCommentRequest'; import VisaRequest from '../model/VisaRequest'; @@ -146,9 +147,12 @@ export default class CollaborationApi { * @param {Number} id A unique integer value identifying this visa validation. * @param {Number} projectPk A unique integer value identifying this project. * @param {Number} visaPk A unique integer value identifying this visa. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response + * @param {Object} opts Optional parameters + * @param {File} opts.attachment + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/VisaAttachment} and HTTP response */ - acceptValidationWithHttpInfo(cloudPk, documentPk, id, projectPk, visaPk) { + acceptValidationWithHttpInfo(cloudPk, documentPk, id, projectPk, visaPk, opts) { + opts = opts || {}; let postBody = null; // verify the required parameter 'cloudPk' is set if (cloudPk === undefined || cloudPk === null) { @@ -183,12 +187,13 @@ export default class CollaborationApi { let headerParams = { }; let formParams = { + 'attachment': opts['attachment'] }; let authNames = ['ApiKey', 'BIMData_Connect', 'BIMData_Connect', 'Bearer']; - let contentTypes = []; - let accepts = []; - let returnType = null; + let contentTypes = ['multipart/form-data', 'application/x-www-form-urlencoded']; + let accepts = ['application/json']; + let returnType = VisaAttachment; return this.apiClient.callApi( '/cloud/{cloud_pk}/project/{project_pk}/document/{document_pk}/visa/{visa_pk}/validation/{id}/accept', 'POST', pathParams, queryParams, headerParams, formParams, postBody, @@ -204,10 +209,12 @@ export default class CollaborationApi { * @param {Number} id A unique integer value identifying this visa validation. * @param {Number} projectPk A unique integer value identifying this project. * @param {Number} visaPk A unique integer value identifying this visa. - * @return {Promise} a {@link https://www.promisejs.org/|Promise} + * @param {Object} opts Optional parameters + * @param {File} opts.attachment + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/VisaAttachment} */ - acceptValidation(cloudPk, documentPk, id, projectPk, visaPk) { - return this.acceptValidationWithHttpInfo(cloudPk, documentPk, id, projectPk, visaPk) + acceptValidation(cloudPk, documentPk, id, projectPk, visaPk, opts) { + return this.acceptValidationWithHttpInfo(cloudPk, documentPk, id, projectPk, visaPk, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -858,7 +865,7 @@ export default class CollaborationApi { /** * Create a document - * Create a document. If the document is one of {'IFC', 'OBJ', 'POINT_CLOUD', 'GLTF', 'DWG', 'DXF'}, a model will be created and attached to this document Required scopes: document:write + * Create a document. If the document is one of {'POINT_CLOUD', 'DWG', 'OBJ', 'GLTF', 'IFC', 'DXF'}, a model will be created and attached to this document Required scopes: document:write * @param {Number} cloudPk A unique integer value identifying this cloud. * @param {Number} projectPk A unique integer value identifying this project. * @param {String} name Shown name of the file @@ -924,7 +931,7 @@ export default class CollaborationApi { /** * Create a document - * Create a document. If the document is one of {'IFC', 'OBJ', 'POINT_CLOUD', 'GLTF', 'DWG', 'DXF'}, a model will be created and attached to this document Required scopes: document:write + * Create a document. If the document is one of {'POINT_CLOUD', 'DWG', 'OBJ', 'GLTF', 'IFC', 'DXF'}, a model will be created and attached to this document Required scopes: document:write * @param {Number} cloudPk A unique integer value identifying this cloud. * @param {Number} projectPk A unique integer value identifying this project. * @param {String} name Shown name of the file @@ -2529,9 +2536,12 @@ export default class CollaborationApi { * @param {Number} id A unique integer value identifying this visa validation. * @param {Number} projectPk A unique integer value identifying this project. * @param {Number} visaPk A unique integer value identifying this visa. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response + * @param {Object} opts Optional parameters + * @param {File} opts.attachment + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/VisaAttachment} and HTTP response */ - denyValidationWithHttpInfo(cloudPk, documentPk, id, projectPk, visaPk) { + denyValidationWithHttpInfo(cloudPk, documentPk, id, projectPk, visaPk, opts) { + opts = opts || {}; let postBody = null; // verify the required parameter 'cloudPk' is set if (cloudPk === undefined || cloudPk === null) { @@ -2566,12 +2576,13 @@ export default class CollaborationApi { let headerParams = { }; let formParams = { + 'attachment': opts['attachment'] }; let authNames = ['ApiKey', 'BIMData_Connect', 'BIMData_Connect', 'Bearer']; - let contentTypes = []; - let accepts = []; - let returnType = null; + let contentTypes = ['multipart/form-data', 'application/x-www-form-urlencoded']; + let accepts = ['application/json']; + let returnType = VisaAttachment; return this.apiClient.callApi( '/cloud/{cloud_pk}/project/{project_pk}/document/{document_pk}/visa/{visa_pk}/validation/{id}/deny', 'POST', pathParams, queryParams, headerParams, formParams, postBody, @@ -2587,10 +2598,12 @@ export default class CollaborationApi { * @param {Number} id A unique integer value identifying this visa validation. * @param {Number} projectPk A unique integer value identifying this project. * @param {Number} visaPk A unique integer value identifying this visa. - * @return {Promise} a {@link https://www.promisejs.org/|Promise} + * @param {Object} opts Optional parameters + * @param {File} opts.attachment + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/VisaAttachment} */ - denyValidation(cloudPk, documentPk, id, projectPk, visaPk) { - return this.denyValidationWithHttpInfo(cloudPk, documentPk, id, projectPk, visaPk) + denyValidation(cloudPk, documentPk, id, projectPk, visaPk, opts) { + return this.denyValidationWithHttpInfo(cloudPk, documentPk, id, projectPk, visaPk, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -3143,12 +3156,38 @@ export default class CollaborationApi { /** * Retrieve all documents - * Retrieve all documents in the project Required scopes: document:read + * Retrieve all documents in the project. Filters are case insentive Required scopes: document:read * @param {Number} cloudPk A unique integer value identifying this cloud. * @param {Number} projectPk A unique integer value identifying this project. + * @param {Object} opts Optional parameters + * @param {Date} opts.createdAfter + * @param {Date} opts.createdBefore + * @param {String} opts.creatorEmail + * @param {String} opts.description + * @param {String} opts.descriptionContains + * @param {String} opts.descriptionEndswith + * @param {String} opts.descriptionStartswith + * @param {String} opts.fileName + * @param {String} opts.fileNameContains + * @param {String} opts.fileNameEndswith + * @param {String} opts.fileNameStartswith + * @param {String} opts.name + * @param {String} opts.nameContains + * @param {String} opts.nameEndswith + * @param {String} opts.nameStartswith + * @param {Number} opts.sizeMax Size of the file. + * @param {Number} opts.sizeMin Size of the file. + * @param {Array.} opts.tags Multiple values may be separated by commas. + * @param {String} opts.visaCreatorEmail + * @param {Date} opts.visaDeadlineAfter + * @param {Date} opts.visaDeadlineBefore + * @param {module:model/String} opts.visaStatus * `O` - opened * `P` - paused * `C` - closed + * @param {String} opts.visaValidationStatus + * @param {String} opts.visaValidatorEmail * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.} and HTTP response */ - getDocumentsWithHttpInfo(cloudPk, projectPk) { + getDocumentsWithHttpInfo(cloudPk, projectPk, opts) { + opts = opts || {}; let postBody = null; // verify the required parameter 'cloudPk' is set if (cloudPk === undefined || cloudPk === null) { @@ -3164,6 +3203,30 @@ export default class CollaborationApi { 'project_pk': projectPk }; let queryParams = { + 'created_after': opts['createdAfter'], + 'created_before': opts['createdBefore'], + 'creator_email': opts['creatorEmail'], + 'description': opts['description'], + 'description__contains': opts['descriptionContains'], + 'description__endswith': opts['descriptionEndswith'], + 'description__startswith': opts['descriptionStartswith'], + 'file_name': opts['fileName'], + 'file_name__contains': opts['fileNameContains'], + 'file_name__endswith': opts['fileNameEndswith'], + 'file_name__startswith': opts['fileNameStartswith'], + 'name': opts['name'], + 'name__contains': opts['nameContains'], + 'name__endswith': opts['nameEndswith'], + 'name__startswith': opts['nameStartswith'], + 'size_max': opts['sizeMax'], + 'size_min': opts['sizeMin'], + 'tags': this.apiClient.buildCollectionParam(opts['tags'], 'csv'), + 'visa__creator_email': opts['visaCreatorEmail'], + 'visa__deadline_after': opts['visaDeadlineAfter'], + 'visa__deadline_before': opts['visaDeadlineBefore'], + 'visa__status': opts['visaStatus'], + 'visa__validation_status': opts['visaValidationStatus'], + 'visa__validator_email': opts['visaValidatorEmail'] }; let headerParams = { }; @@ -3183,13 +3246,38 @@ export default class CollaborationApi { /** * Retrieve all documents - * Retrieve all documents in the project Required scopes: document:read + * Retrieve all documents in the project. Filters are case insentive Required scopes: document:read * @param {Number} cloudPk A unique integer value identifying this cloud. * @param {Number} projectPk A unique integer value identifying this project. + * @param {Object} opts Optional parameters + * @param {Date} opts.createdAfter + * @param {Date} opts.createdBefore + * @param {String} opts.creatorEmail + * @param {String} opts.description + * @param {String} opts.descriptionContains + * @param {String} opts.descriptionEndswith + * @param {String} opts.descriptionStartswith + * @param {String} opts.fileName + * @param {String} opts.fileNameContains + * @param {String} opts.fileNameEndswith + * @param {String} opts.fileNameStartswith + * @param {String} opts.name + * @param {String} opts.nameContains + * @param {String} opts.nameEndswith + * @param {String} opts.nameStartswith + * @param {Number} opts.sizeMax Size of the file. + * @param {Number} opts.sizeMin Size of the file. + * @param {Array.} opts.tags Multiple values may be separated by commas. + * @param {String} opts.visaCreatorEmail + * @param {Date} opts.visaDeadlineAfter + * @param {Date} opts.visaDeadlineBefore + * @param {module:model/String} opts.visaStatus * `O` - opened * `P` - paused * `C` - closed + * @param {String} opts.visaValidationStatus + * @param {String} opts.visaValidatorEmail * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.} */ - getDocuments(cloudPk, projectPk) { - return this.getDocumentsWithHttpInfo(cloudPk, projectPk) + getDocuments(cloudPk, projectPk, opts) { + return this.getDocumentsWithHttpInfo(cloudPk, projectPk, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -3258,6 +3346,143 @@ export default class CollaborationApi { } + /** + * Get all documents of a folder + * Get all documents of a folder Required scopes: document:read + * @param {Number} cloudPk + * @param {Number} folderPk + * @param {Number} projectPk + * @param {Object} opts Optional parameters + * @param {Date} opts.createdAfter + * @param {Date} opts.createdBefore + * @param {String} opts.creatorEmail + * @param {String} opts.description + * @param {String} opts.descriptionContains + * @param {String} opts.descriptionEndswith + * @param {String} opts.descriptionStartswith + * @param {String} opts.fileName + * @param {String} opts.fileNameContains + * @param {String} opts.fileNameEndswith + * @param {String} opts.fileNameStartswith + * @param {String} opts.name + * @param {String} opts.nameContains + * @param {String} opts.nameEndswith + * @param {String} opts.nameStartswith + * @param {Number} opts.sizeMax Size of the file. + * @param {Number} opts.sizeMin Size of the file. + * @param {Array.} opts.tags Multiple values may be separated by commas. + * @param {String} opts.visaCreatorEmail + * @param {Date} opts.visaDeadlineAfter + * @param {Date} opts.visaDeadlineBefore + * @param {module:model/String} opts.visaStatus * `O` - opened * `P` - paused * `C` - closed + * @param {String} opts.visaValidationStatus + * @param {String} opts.visaValidatorEmail + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.} and HTTP response + */ + getFolderDocumentsWithHttpInfo(cloudPk, folderPk, projectPk, opts) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'cloudPk' is set + if (cloudPk === undefined || cloudPk === null) { + throw new Error("Missing the required parameter 'cloudPk' when calling getFolderDocuments"); + } + // verify the required parameter 'folderPk' is set + if (folderPk === undefined || folderPk === null) { + throw new Error("Missing the required parameter 'folderPk' when calling getFolderDocuments"); + } + // verify the required parameter 'projectPk' is set + if (projectPk === undefined || projectPk === null) { + throw new Error("Missing the required parameter 'projectPk' when calling getFolderDocuments"); + } + + let pathParams = { + 'cloud_pk': cloudPk, + 'folder_pk': folderPk, + 'project_pk': projectPk + }; + let queryParams = { + 'created_after': opts['createdAfter'], + 'created_before': opts['createdBefore'], + 'creator_email': opts['creatorEmail'], + 'description': opts['description'], + 'description__contains': opts['descriptionContains'], + 'description__endswith': opts['descriptionEndswith'], + 'description__startswith': opts['descriptionStartswith'], + 'file_name': opts['fileName'], + 'file_name__contains': opts['fileNameContains'], + 'file_name__endswith': opts['fileNameEndswith'], + 'file_name__startswith': opts['fileNameStartswith'], + 'name': opts['name'], + 'name__contains': opts['nameContains'], + 'name__endswith': opts['nameEndswith'], + 'name__startswith': opts['nameStartswith'], + 'size_max': opts['sizeMax'], + 'size_min': opts['sizeMin'], + 'tags': this.apiClient.buildCollectionParam(opts['tags'], 'csv'), + 'visa__creator_email': opts['visaCreatorEmail'], + 'visa__deadline_after': opts['visaDeadlineAfter'], + 'visa__deadline_before': opts['visaDeadlineBefore'], + 'visa__status': opts['visaStatus'], + 'visa__validation_status': opts['visaValidationStatus'], + 'visa__validator_email': opts['visaValidatorEmail'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['ApiKey', 'BIMData_Connect', 'BIMData_Connect', 'Bearer']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = [Document]; + return this.apiClient.callApi( + '/cloud/{cloud_pk}/project/{project_pk}/folder/{folder_pk}/document', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Get all documents of a folder + * Get all documents of a folder Required scopes: document:read + * @param {Number} cloudPk + * @param {Number} folderPk + * @param {Number} projectPk + * @param {Object} opts Optional parameters + * @param {Date} opts.createdAfter + * @param {Date} opts.createdBefore + * @param {String} opts.creatorEmail + * @param {String} opts.description + * @param {String} opts.descriptionContains + * @param {String} opts.descriptionEndswith + * @param {String} opts.descriptionStartswith + * @param {String} opts.fileName + * @param {String} opts.fileNameContains + * @param {String} opts.fileNameEndswith + * @param {String} opts.fileNameStartswith + * @param {String} opts.name + * @param {String} opts.nameContains + * @param {String} opts.nameEndswith + * @param {String} opts.nameStartswith + * @param {Number} opts.sizeMax Size of the file. + * @param {Number} opts.sizeMin Size of the file. + * @param {Array.} opts.tags Multiple values may be separated by commas. + * @param {String} opts.visaCreatorEmail + * @param {Date} opts.visaDeadlineAfter + * @param {Date} opts.visaDeadlineBefore + * @param {module:model/String} opts.visaStatus * `O` - opened * `P` - paused * `C` - closed + * @param {String} opts.visaValidationStatus + * @param {String} opts.visaValidatorEmail + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.} + */ + getFolderDocuments(cloudPk, folderPk, projectPk, opts) { + return this.getFolderDocumentsWithHttpInfo(cloudPk, folderPk, projectPk, opts) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + /** * Retrieve all users in a project with the permission on the folder * Retrieve all users in a project with the permission on the folder Required scopes: document:read @@ -3891,6 +4116,61 @@ export default class CollaborationApi { } + /** + * Retrieve folder tree of the project + * Retrieve folder tree of the project + * @param {Number} cloudPk + * @param {Number} id A unique integer value identifying this project. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ProjectFolderTree} and HTTP response + */ + getProjectFolderTreeWithHttpInfo(cloudPk, id) { + let postBody = null; + // verify the required parameter 'cloudPk' is set + if (cloudPk === undefined || cloudPk === null) { + throw new Error("Missing the required parameter 'cloudPk' when calling getProjectFolderTree"); + } + // verify the required parameter 'id' is set + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling getProjectFolderTree"); + } + + let pathParams = { + 'cloud_pk': cloudPk, + 'id': id + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['ApiKey', 'BIMData_Connect', 'BIMData_Connect', 'Bearer']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = ProjectFolderTree; + return this.apiClient.callApi( + '/cloud/{cloud_pk}/project/{id}/folder-trees', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Retrieve folder tree of the project + * Retrieve folder tree of the project + * @param {Number} cloudPk + * @param {Number} id A unique integer value identifying this project. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ProjectFolderTree} + */ + getProjectFolderTree(cloudPk, id) { + return this.getProjectFolderTreeWithHttpInfo(cloudPk, id) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + /** * Retrieve folder tree for all projects * Retrieve folder tree for all projects @@ -5535,7 +5815,7 @@ export default class CollaborationApi { /** * Reset a validation - * Reset a validation if the validation has been accepted or rejected Required scopes: document:read + * Reset a validation if the validation has been accepted or rejected. The attachment will be removed Required scopes: document:read * @param {Number} cloudPk A unique integer value identifying this cloud. * @param {Number} documentPk A unique integer value identifying this document. * @param {Number} id A unique integer value identifying this visa validation. @@ -5593,7 +5873,7 @@ export default class CollaborationApi { /** * Reset a validation - * Reset a validation if the validation has been accepted or rejected Required scopes: document:read + * Reset a validation if the validation has been accepted or rejected. The attachment will be removed Required scopes: document:read * @param {Number} cloudPk A unique integer value identifying this cloud. * @param {Number} documentPk A unique integer value identifying this document. * @param {Number} id A unique integer value identifying this visa validation. diff --git a/src/index.js b/src/index.js index 0eb05e8..a4d4e12 100644 --- a/src/index.js +++ b/src/index.js @@ -237,6 +237,7 @@ import ViewSetupHintsRequest from './model/ViewSetupHintsRequest'; import Viewpoint from './model/Viewpoint'; import ViewpointRequest from './model/ViewpointRequest'; import Visa from './model/Visa'; +import VisaAttachment from './model/VisaAttachment'; import VisaComment from './model/VisaComment'; import VisaCommentRequest from './model/VisaCommentRequest'; import VisaRequest from './model/VisaRequest'; @@ -1643,6 +1644,12 @@ export { */ Visa, + /** + * The VisaAttachment model constructor. + * @property {module:model/VisaAttachment} + */ + VisaAttachment, + /** * The VisaComment model constructor. * @property {module:model/VisaComment} diff --git a/src/model/FolderTree.js b/src/model/FolderTree.js index f97d425..ab54271 100644 --- a/src/model/FolderTree.js +++ b/src/model/FolderTree.js @@ -22,12 +22,13 @@ class FolderTree { /** * Constructs a new FolderTree. * @alias module:model/FolderTree - * @param children {Array.} + * @param id {Number} * @param name {String} + * @param children {Array.} */ - constructor(children, name) { + constructor(id, name, children) { - FolderTree.initialize(this, children, name); + FolderTree.initialize(this, id, name, children); } /** @@ -35,9 +36,10 @@ class FolderTree { * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). * Only for internal use. */ - static initialize(obj, children, name) { - obj['children'] = children; + static initialize(obj, id, name, children) { + obj['id'] = id; obj['name'] = name; + obj['children'] = children; } /** @@ -51,12 +53,15 @@ class FolderTree { if (data) { obj = obj || new FolderTree(); - if (data.hasOwnProperty('children')) { - obj['children'] = ApiClient.convertToType(data['children'], [FolderTree]); + if (data.hasOwnProperty('id')) { + obj['id'] = ApiClient.convertToType(data['id'], 'Number'); } if (data.hasOwnProperty('name')) { obj['name'] = ApiClient.convertToType(data['name'], 'String'); } + if (data.hasOwnProperty('children')) { + obj['children'] = ApiClient.convertToType(data['children'], [FolderTree]); + } } return obj; } @@ -65,15 +70,20 @@ class FolderTree { } /** - * @member {Array.} children + * @member {Number} id */ -FolderTree.prototype['children'] = undefined; +FolderTree.prototype['id'] = undefined; /** * @member {String} name */ FolderTree.prototype['name'] = undefined; +/** + * @member {Array.} children + */ +FolderTree.prototype['children'] = undefined; + diff --git a/src/model/Visa.js b/src/model/Visa.js index f5a922c..32de1c9 100644 --- a/src/model/Visa.js +++ b/src/model/Visa.js @@ -30,7 +30,7 @@ class Visa { * @param validationsInError {Array.} Validation IDs where one or more validators have no longer access to the visa document. * @param creator {module:model/UserProject} * @param documentId {Number} - * @param status {module:model/Visa.StatusEnum} * `O` - opened * `A` - paused * `C` - closed + * @param status {module:model/Visa.StatusEnum} * `O` - opened * `P` - paused * `C` - closed * @param comments {Array.} * @param createdAt {Date} * @param updatedAt {Date} @@ -135,7 +135,7 @@ Visa.prototype['creator'] = undefined; Visa.prototype['document_id'] = undefined; /** - * * `O` - opened * `A` - paused * `C` - closed + * * `O` - opened * `P` - paused * `C` - closed * @member {module:model/Visa.StatusEnum} status */ Visa.prototype['status'] = undefined; @@ -184,10 +184,10 @@ Visa['StatusEnum'] = { "O": "O", /** - * value: "A" + * value: "P" * @const */ - "A": "A", + "P": "P", /** * value: "C" diff --git a/src/model/VisaAttachment.js b/src/model/VisaAttachment.js new file mode 100644 index 0000000..485e2f1 --- /dev/null +++ b/src/model/VisaAttachment.js @@ -0,0 +1,71 @@ +/** + * BIMData API + * 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. + * + * The version of the OpenAPI document: v1 (v1) + * Contact: support@bimdata.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The VisaAttachment model module. + * @module model/VisaAttachment + * @version 0.0.0 + */ +class VisaAttachment { + /** + * Constructs a new VisaAttachment. + * @alias module:model/VisaAttachment + */ + constructor() { + + VisaAttachment.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a VisaAttachment from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/VisaAttachment} obj Optional instance to populate. + * @return {module:model/VisaAttachment} The populated VisaAttachment instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new VisaAttachment(); + + if (data.hasOwnProperty('attachment')) { + obj['attachment'] = ApiClient.convertToType(data['attachment'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {String} attachment + */ +VisaAttachment.prototype['attachment'] = undefined; + + + + + + +export default VisaAttachment; + diff --git a/test/api/CollaborationApi.spec.js b/test/api/CollaborationApi.spec.js index 476edd3..c9c0483 100644 --- a/test/api/CollaborationApi.spec.js +++ b/test/api/CollaborationApi.spec.js @@ -568,6 +568,16 @@ done(); }); }); + describe('getFolderDocuments', function() { + it('should call getFolderDocuments successfully', function(done) { + //uncomment below and update the code to test getFolderDocuments + //instance.getFolderDocuments(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); describe('getFolderProjectUsers', function() { it('should call getFolderProjectUsers successfully', function(done) { //uncomment below and update the code to test getFolderProjectUsers @@ -678,6 +688,16 @@ done(); }); }); + describe('getProjectFolderTree', function() { + it('should call getProjectFolderTree successfully', function(done) { + //uncomment below and update the code to test getProjectFolderTree + //instance.getProjectFolderTree(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); describe('getProjectFolderTreeSerializers', function() { it('should call getProjectFolderTreeSerializers successfully', function(done) { //uncomment below and update the code to test getProjectFolderTreeSerializers diff --git a/test/model/FolderTree.spec.js b/test/model/FolderTree.spec.js index 93ab00b..b2e3755 100644 --- a/test/model/FolderTree.spec.js +++ b/test/model/FolderTree.spec.js @@ -54,8 +54,8 @@ //expect(instance).to.be.a(bimdata.FolderTree); }); - it('should have the property children (base name: "children")', function() { - // uncomment below and update the code to test the property children + it('should have the property id (base name: "id")', function() { + // uncomment below and update the code to test the property id //var instance = new bimdata.FolderTree(); //expect(instance).to.be(); }); @@ -66,6 +66,12 @@ //expect(instance).to.be(); }); + it('should have the property children (base name: "children")', function() { + // uncomment below and update the code to test the property children + //var instance = new bimdata.FolderTree(); + //expect(instance).to.be(); + }); + }); })); diff --git a/test/model/VisaAttachment.spec.js b/test/model/VisaAttachment.spec.js new file mode 100644 index 0000000..075adff --- /dev/null +++ b/test/model/VisaAttachment.spec.js @@ -0,0 +1,65 @@ +/** + * BIMData API + * 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. + * + * The version of the OpenAPI document: v1 (v1) + * Contact: support@bimdata.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.bimdata); + } +}(this, function(expect, bimdata) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new bimdata.VisaAttachment(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('VisaAttachment', function() { + it('should create an instance of VisaAttachment', function() { + // uncomment below and update the code to test VisaAttachment + //var instance = new bimdata.VisaAttachment(); + //expect(instance).to.be.a(bimdata.VisaAttachment); + }); + + it('should have the property attachment (base name: "attachment")', function() { + // uncomment below and update the code to test the property attachment + //var instance = new bimdata.VisaAttachment(); + //expect(instance).to.be(); + }); + + }); + +}));