|
15 | 15 | import ApiClient from "../ApiClient"; |
16 | 16 | import Classification from '../model/Classification'; |
17 | 17 | import Document from '../model/Document'; |
| 18 | +import DocumentWithElementList from '../model/DocumentWithElementList'; |
18 | 19 | import Element from '../model/Element'; |
19 | 20 | import ElementClassificationRelation from '../model/ElementClassificationRelation'; |
20 | 21 | import ElementPropertySetRelation from '../model/ElementPropertySetRelation'; |
@@ -3575,6 +3576,80 @@ export default class IfcApi { |
3575 | 3576 | } |
3576 | 3577 |
|
3577 | 3578 |
|
| 3579 | + /** |
| 3580 | + * Retrieve all documents linked to any element |
| 3581 | + * Retrieve all documents linked to any element with the list of uuids Required scopes: ifc:read |
| 3582 | + * @param {String} cloudPk |
| 3583 | + * @param {String} ifcPk |
| 3584 | + * @param {String} projectPk |
| 3585 | + * @param {Object} opts Optional parameters |
| 3586 | + * @param {String} opts.type Filter the returned list by type |
| 3587 | + * @param {String} opts.classification Filter the returned list by classification |
| 3588 | + * @param {String} opts.classificationNotation Filter the returned list by classification__notation |
| 3589 | + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/DocumentWithElementList>} and HTTP response |
| 3590 | + */ |
| 3591 | + getElementLinkedDocumentsWithHttpInfo(cloudPk, ifcPk, projectPk, opts) { |
| 3592 | + opts = opts || {}; |
| 3593 | + let postBody = null; |
| 3594 | + // verify the required parameter 'cloudPk' is set |
| 3595 | + if (cloudPk === undefined || cloudPk === null) { |
| 3596 | + throw new Error("Missing the required parameter 'cloudPk' when calling getElementLinkedDocuments"); |
| 3597 | + } |
| 3598 | + // verify the required parameter 'ifcPk' is set |
| 3599 | + if (ifcPk === undefined || ifcPk === null) { |
| 3600 | + throw new Error("Missing the required parameter 'ifcPk' when calling getElementLinkedDocuments"); |
| 3601 | + } |
| 3602 | + // verify the required parameter 'projectPk' is set |
| 3603 | + if (projectPk === undefined || projectPk === null) { |
| 3604 | + throw new Error("Missing the required parameter 'projectPk' when calling getElementLinkedDocuments"); |
| 3605 | + } |
| 3606 | + |
| 3607 | + let pathParams = { |
| 3608 | + 'cloud_pk': cloudPk, |
| 3609 | + 'ifc_pk': ifcPk, |
| 3610 | + 'project_pk': projectPk |
| 3611 | + }; |
| 3612 | + let queryParams = { |
| 3613 | + 'type': opts['type'], |
| 3614 | + 'classification': opts['classification'], |
| 3615 | + 'classification__notation': opts['classificationNotation'] |
| 3616 | + }; |
| 3617 | + let headerParams = { |
| 3618 | + }; |
| 3619 | + let formParams = { |
| 3620 | + }; |
| 3621 | + |
| 3622 | + let authNames = ['Bearer', 'bimdata_connect', 'client_credentials']; |
| 3623 | + let contentTypes = []; |
| 3624 | + let accepts = ['application/json']; |
| 3625 | + let returnType = [DocumentWithElementList]; |
| 3626 | + return this.apiClient.callApi( |
| 3627 | + '/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/documents', 'GET', |
| 3628 | + pathParams, queryParams, headerParams, formParams, postBody, |
| 3629 | + authNames, contentTypes, accepts, returnType, null |
| 3630 | + ); |
| 3631 | + } |
| 3632 | + |
| 3633 | + /** |
| 3634 | + * Retrieve all documents linked to any element |
| 3635 | + * Retrieve all documents linked to any element with the list of uuids Required scopes: ifc:read |
| 3636 | + * @param {String} cloudPk |
| 3637 | + * @param {String} ifcPk |
| 3638 | + * @param {String} projectPk |
| 3639 | + * @param {Object} opts Optional parameters |
| 3640 | + * @param {String} opts.type Filter the returned list by type |
| 3641 | + * @param {String} opts.classification Filter the returned list by classification |
| 3642 | + * @param {String} opts.classificationNotation Filter the returned list by classification__notation |
| 3643 | + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/DocumentWithElementList>} |
| 3644 | + */ |
| 3645 | + getElementLinkedDocuments(cloudPk, ifcPk, projectPk, opts) { |
| 3646 | + return this.getElementLinkedDocumentsWithHttpInfo(cloudPk, ifcPk, projectPk, opts) |
| 3647 | + .then(function(response_and_data) { |
| 3648 | + return response_and_data.data; |
| 3649 | + }); |
| 3650 | + } |
| 3651 | + |
| 3652 | + |
3578 | 3653 | /** |
3579 | 3654 | * Retrieve a PropertySet of an element |
3580 | 3655 | * Retrieve a PropertySet of an element Required scopes: ifc:read |
|
0 commit comments