diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index a5428d1..033f915 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -37,6 +37,8 @@ docs/DirectionRequest.md docs/Document.md docs/DocumentPreviewFile.md docs/DocumentWithElementList.md +docs/Drawing.md +docs/DrawingRequest.md docs/Element.md docs/ElementClassificationRelation.md docs/ElementClassificationRelationRequest.md @@ -98,6 +100,7 @@ docs/PatchedClassificationRequest.md docs/PatchedCloudRequest.md docs/PatchedCommentRequest.md docs/PatchedDocumentRequest.md +docs/PatchedDrawingRequest.md docs/PatchedElementRequest.md docs/PatchedFolderWithoutChildrenRequest.md docs/PatchedFullTopicRequest.md @@ -288,6 +291,8 @@ src/model/DirectionRequest.js src/model/Document.js src/model/DocumentPreviewFile.js src/model/DocumentWithElementList.js +src/model/Drawing.js +src/model/DrawingRequest.js src/model/Element.js src/model/ElementClassificationRelation.js src/model/ElementClassificationRelationRequest.js @@ -347,6 +352,7 @@ src/model/PatchedClassificationRequest.js src/model/PatchedCloudRequest.js src/model/PatchedCommentRequest.js src/model/PatchedDocumentRequest.js +src/model/PatchedDrawingRequest.js src/model/PatchedElementRequest.js src/model/PatchedFolderWithoutChildrenRequest.js src/model/PatchedFullTopicRequest.js @@ -531,6 +537,8 @@ test/model/DirectionRequest.spec.js test/model/Document.spec.js test/model/DocumentPreviewFile.spec.js test/model/DocumentWithElementList.spec.js +test/model/Drawing.spec.js +test/model/DrawingRequest.spec.js test/model/Element.spec.js test/model/ElementClassificationRelation.spec.js test/model/ElementClassificationRelationRequest.spec.js @@ -590,6 +598,7 @@ test/model/PatchedClassificationRequest.spec.js test/model/PatchedCloudRequest.spec.js test/model/PatchedCommentRequest.spec.js test/model/PatchedDocumentRequest.spec.js +test/model/PatchedDrawingRequest.spec.js test/model/PatchedElementRequest.spec.js test/model/PatchedFolderWithoutChildrenRequest.spec.js test/model/PatchedFullTopicRequest.spec.js diff --git a/README.md b/README.md index 436a4b8..ecfc938 100644 --- a/README.md +++ b/README.md @@ -329,6 +329,7 @@ Class | Method | HTTP request | Description *bimdata.IfcApi* | [**createBuildingPlanDeprecated**](docs/IfcApi.md#createBuildingPlanDeprecated) | **POST** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/building/{building_uuid}/plan/add | Create a relation between a 2d model and a building *bimdata.IfcApi* | [**createClassificationElementRelationsDeprecated**](docs/IfcApi.md#createClassificationElementRelationsDeprecated) | **POST** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/classification-element | Create association between existing classification and existing element *bimdata.IfcApi* | [**createClassificationsOfElementDeprecated**](docs/IfcApi.md#createClassificationsOfElementDeprecated) | **POST** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{element_uuid}/classification | Create one or many classifications to an element +*bimdata.IfcApi* | [**createDrawingDeprecated**](docs/IfcApi.md#createDrawingDeprecated) | **POST** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/drawing | Create a drawing in the model *bimdata.IfcApi* | [**createElementDeprecated**](docs/IfcApi.md#createElementDeprecated) | **POST** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element | Create an element in the model *bimdata.IfcApi* | [**createElementPropertySetDeprecated**](docs/IfcApi.md#createElementPropertySetDeprecated) | **POST** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{element_uuid}/propertyset | Create a PropertySets to an element *bimdata.IfcApi* | [**createElementPropertySetPropertyDefinitionDeprecated**](docs/IfcApi.md#createElementPropertySetPropertyDefinitionDeprecated) | **POST** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{element_uuid}/propertyset/{propertyset_pk}/property/{property_pk}/propertydefinition | Create a Definition to a Property @@ -354,6 +355,7 @@ Class | Method | HTTP request | Description *bimdata.IfcApi* | [**deleteAccessTokenDeprecated**](docs/IfcApi.md#deleteAccessTokenDeprecated) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/access_token/{token} | Delete a token *bimdata.IfcApi* | [**deleteBuildingDeprecated**](docs/IfcApi.md#deleteBuildingDeprecated) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/building/{uuid} | Delete a building of a model *bimdata.IfcApi* | [**deleteBuildingPlanDeprecated**](docs/IfcApi.md#deleteBuildingPlanDeprecated) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/building/{building_uuid}/plan/{id} | Delete the relation between a 2d model and a building +*bimdata.IfcApi* | [**deleteDrawingDeprecated**](docs/IfcApi.md#deleteDrawingDeprecated) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/drawing/{id} | Delete a drawing of a model *bimdata.IfcApi* | [**deleteElementDeprecated**](docs/IfcApi.md#deleteElementDeprecated) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{uuid} | Delete an element of a model *bimdata.IfcApi* | [**deleteIfcDeprecated**](docs/IfcApi.md#deleteIfcDeprecated) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/ifc/{id} | Delete a model *bimdata.IfcApi* | [**deleteIfcPropertyDefinitionDeprecated**](docs/IfcApi.md#deleteIfcPropertyDefinitionDeprecated) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/propertydefinition/{id} | Delete a PropertyDefinitions of a model @@ -377,6 +379,8 @@ Class | Method | HTTP request | Description *bimdata.IfcApi* | [**getBuildingsDeprecated**](docs/IfcApi.md#getBuildingsDeprecated) | **GET** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/building | Retrieve all buildings of a model *bimdata.IfcApi* | [**getClassificationsOfElementDeprecated**](docs/IfcApi.md#getClassificationsOfElementDeprecated) | **GET** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{element_uuid}/classification | Retrieve all classifications of an element *bimdata.IfcApi* | [**getDocumentsOfElementDeprecated**](docs/IfcApi.md#getDocumentsOfElementDeprecated) | **GET** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{element_uuid}/documents | Retrieve all documents of an element +*bimdata.IfcApi* | [**getDrawingDeprecated**](docs/IfcApi.md#getDrawingDeprecated) | **GET** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/drawing/{id} | Retrieve a drawing of a model +*bimdata.IfcApi* | [**getDrawingsDeprecated**](docs/IfcApi.md#getDrawingsDeprecated) | **GET** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/drawing | Retrieve all drawings of a model *bimdata.IfcApi* | [**getElementDeprecated**](docs/IfcApi.md#getElementDeprecated) | **GET** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{uuid} | Retrieve an element of a model *bimdata.IfcApi* | [**getElementLinkedDocumentsDeprecated**](docs/IfcApi.md#getElementLinkedDocumentsDeprecated) | **GET** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/documents | Retrieve all documents linked to any element *bimdata.IfcApi* | [**getElementPropertySetDeprecated**](docs/IfcApi.md#getElementPropertySetDeprecated) | **GET** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{element_uuid}/propertyset/{id} | Retrieve a PropertySet of an element @@ -439,6 +443,7 @@ Class | Method | HTTP request | Description *bimdata.IfcApi* | [**updateAccessTokenDeprecated**](docs/IfcApi.md#updateAccessTokenDeprecated) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/access_token/{token} | Update some fields of a token *bimdata.IfcApi* | [**updateBuildingDeprecated**](docs/IfcApi.md#updateBuildingDeprecated) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/building/{uuid} | Update some fields of a building *bimdata.IfcApi* | [**updateBuildingPlanPositioningDeprecated**](docs/IfcApi.md#updateBuildingPlanPositioningDeprecated) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/building/{building_uuid}/plan/{id}/positioning | Update the postioning of the plan in the building +*bimdata.IfcApi* | [**updateDrawingDeprecated**](docs/IfcApi.md#updateDrawingDeprecated) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/drawing/{id} | Update some fields of a drawing *bimdata.IfcApi* | [**updateElementDeprecated**](docs/IfcApi.md#updateElementDeprecated) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{uuid} | Update some fields of an element *bimdata.IfcApi* | [**updateElementPropertySetPropertyDeprecated**](docs/IfcApi.md#updateElementPropertySetPropertyDeprecated) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{element_uuid}/propertyset/{propertyset_pk}/property/{id} | Update a property from an element *bimdata.IfcApi* | [**updateIfcDeprecated**](docs/IfcApi.md#updateIfcDeprecated) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/ifc/{id} | Update some fields of a model @@ -477,6 +482,7 @@ Class | Method | HTTP request | Description *bimdata.ModelApi* | [**createBuildingPlan**](docs/ModelApi.md#createBuildingPlan) | **POST** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/building/{building_uuid}/plan/add | Create a relation between a 2d model and a building *bimdata.ModelApi* | [**createClassificationElementRelations**](docs/ModelApi.md#createClassificationElementRelations) | **POST** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/classification-element | Create association between existing classification and existing element *bimdata.ModelApi* | [**createClassificationsOfElement**](docs/ModelApi.md#createClassificationsOfElement) | **POST** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/element/{element_uuid}/classification | Create one or many classifications to an element +*bimdata.ModelApi* | [**createDrawing**](docs/ModelApi.md#createDrawing) | **POST** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/drawing | Create a drawing in the model *bimdata.ModelApi* | [**createElement**](docs/ModelApi.md#createElement) | **POST** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/element | Create an element in the model *bimdata.ModelApi* | [**createElementPropertySet**](docs/ModelApi.md#createElementPropertySet) | **POST** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/element/{element_uuid}/propertyset | Create a PropertySets to an element *bimdata.ModelApi* | [**createElementPropertySetProperty**](docs/ModelApi.md#createElementPropertySetProperty) | **POST** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/element/{element_uuid}/propertyset/{propertyset_pk}/property | Create a property to a PropertySet @@ -502,6 +508,7 @@ Class | Method | HTTP request | Description *bimdata.ModelApi* | [**deleteAccessToken**](docs/ModelApi.md#deleteAccessToken) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/access_token/{token} | Delete a token *bimdata.ModelApi* | [**deleteBuilding**](docs/ModelApi.md#deleteBuilding) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/building/{uuid} | Delete a building of a model *bimdata.ModelApi* | [**deleteBuildingPlan**](docs/ModelApi.md#deleteBuildingPlan) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/building/{building_uuid}/plan/{id} | Delete the relation between a 2d model and a building +*bimdata.ModelApi* | [**deleteDrawing**](docs/ModelApi.md#deleteDrawing) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/drawing/{id} | Delete a drawing of a model *bimdata.ModelApi* | [**deleteElement**](docs/ModelApi.md#deleteElement) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/element/{uuid} | Delete an element of a model *bimdata.ModelApi* | [**deleteLayer**](docs/ModelApi.md#deleteLayer) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/layer/{id} | Delete a layer of a model *bimdata.ModelApi* | [**deleteModel**](docs/ModelApi.md#deleteModel) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/model/{id} | Delete a model @@ -525,6 +532,8 @@ Class | Method | HTTP request | Description *bimdata.ModelApi* | [**getBuildings**](docs/ModelApi.md#getBuildings) | **GET** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/building | Retrieve all buildings of a model *bimdata.ModelApi* | [**getClassificationsOfElement**](docs/ModelApi.md#getClassificationsOfElement) | **GET** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/element/{element_uuid}/classification | Retrieve all classifications of an element *bimdata.ModelApi* | [**getDocumentsOfElement**](docs/ModelApi.md#getDocumentsOfElement) | **GET** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/element/{element_uuid}/documents | Retrieve all documents of an element +*bimdata.ModelApi* | [**getDrawing**](docs/ModelApi.md#getDrawing) | **GET** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/drawing/{id} | Retrieve a drawing of a model +*bimdata.ModelApi* | [**getDrawings**](docs/ModelApi.md#getDrawings) | **GET** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/drawing | Retrieve all drawings of a model *bimdata.ModelApi* | [**getElement**](docs/ModelApi.md#getElement) | **GET** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/element/{uuid} | Retrieve an element of a model *bimdata.ModelApi* | [**getElementLinkedDocuments**](docs/ModelApi.md#getElementLinkedDocuments) | **GET** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/element/documents | Retrieve all documents linked to any element *bimdata.ModelApi* | [**getElementPropertySet**](docs/ModelApi.md#getElementPropertySet) | **GET** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/element/{element_uuid}/propertyset/{id} | Retrieve a PropertySet of an element @@ -587,6 +596,7 @@ Class | Method | HTTP request | Description *bimdata.ModelApi* | [**updateAccessToken**](docs/ModelApi.md#updateAccessToken) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/access_token/{token} | Update some fields of a token *bimdata.ModelApi* | [**updateBuilding**](docs/ModelApi.md#updateBuilding) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/building/{uuid} | Update some fields of a building *bimdata.ModelApi* | [**updateBuildingPlanPositioning**](docs/ModelApi.md#updateBuildingPlanPositioning) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/building/{building_uuid}/plan/{id}/positioning | Update the postioning of the plan in the building +*bimdata.ModelApi* | [**updateDrawing**](docs/ModelApi.md#updateDrawing) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/drawing/{id} | Update some fields of a drawing *bimdata.ModelApi* | [**updateElement**](docs/ModelApi.md#updateElement) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/element/{uuid} | Update some fields of an element *bimdata.ModelApi* | [**updateElementPropertySetProperty**](docs/ModelApi.md#updateElementPropertySetProperty) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/element/{element_uuid}/propertyset/{propertyset_pk}/property/{id} | Update a property from an element *bimdata.ModelApi* | [**updateLayer**](docs/ModelApi.md#updateLayer) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/layer/{id} | Update some fields of a layer @@ -655,6 +665,8 @@ Class | Method | HTTP request | Description - [bimdata.Document](docs/Document.md) - [bimdata.DocumentPreviewFile](docs/DocumentPreviewFile.md) - [bimdata.DocumentWithElementList](docs/DocumentWithElementList.md) + - [bimdata.Drawing](docs/Drawing.md) + - [bimdata.DrawingRequest](docs/DrawingRequest.md) - [bimdata.Element](docs/Element.md) - [bimdata.ElementClassificationRelation](docs/ElementClassificationRelation.md) - [bimdata.ElementClassificationRelationRequest](docs/ElementClassificationRelationRequest.md) @@ -714,6 +726,7 @@ Class | Method | HTTP request | Description - [bimdata.PatchedCloudRequest](docs/PatchedCloudRequest.md) - [bimdata.PatchedCommentRequest](docs/PatchedCommentRequest.md) - [bimdata.PatchedDocumentRequest](docs/PatchedDocumentRequest.md) + - [bimdata.PatchedDrawingRequest](docs/PatchedDrawingRequest.md) - [bimdata.PatchedElementRequest](docs/PatchedElementRequest.md) - [bimdata.PatchedFolderWithoutChildrenRequest](docs/PatchedFolderWithoutChildrenRequest.md) - [bimdata.PatchedFullTopicRequest](docs/PatchedFullTopicRequest.md) diff --git a/docs/CollaborationApi.md b/docs/CollaborationApi.md index fec37de..11f5e62 100644 --- a/docs/CollaborationApi.md +++ b/docs/CollaborationApi.md @@ -955,7 +955,7 @@ Name | Type | Description | Notes Create a document -Create a document. If the document is one of {'IFC', 'DXF', 'GLTF', 'OBJ', 'DWG', 'POINT_CLOUD'}, a model will be created and attached to this document Required scopes: document:write +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 ### Example diff --git a/docs/Drawing.md b/docs/Drawing.md new file mode 100644 index 0000000..25b4429 --- /dev/null +++ b/docs/Drawing.md @@ -0,0 +1,12 @@ +# bimdata.Drawing + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Number** | | [readonly] +**content** | **String** | | +**creator** | [**User**](User.md) | | [readonly] +**createdAt** | **Date** | | [readonly] + + diff --git a/docs/DrawingRequest.md b/docs/DrawingRequest.md new file mode 100644 index 0000000..b13956a --- /dev/null +++ b/docs/DrawingRequest.md @@ -0,0 +1,9 @@ +# bimdata.DrawingRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content** | **String** | | + + diff --git a/docs/IfcApi.md b/docs/IfcApi.md index 28f0e09..00f7104 100644 --- a/docs/IfcApi.md +++ b/docs/IfcApi.md @@ -23,6 +23,7 @@ Method | HTTP request | Description [**createBuildingPlanDeprecated**](IfcApi.md#createBuildingPlanDeprecated) | **POST** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/building/{building_uuid}/plan/add | Create a relation between a 2d model and a building [**createClassificationElementRelationsDeprecated**](IfcApi.md#createClassificationElementRelationsDeprecated) | **POST** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/classification-element | Create association between existing classification and existing element [**createClassificationsOfElementDeprecated**](IfcApi.md#createClassificationsOfElementDeprecated) | **POST** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{element_uuid}/classification | Create one or many classifications to an element +[**createDrawingDeprecated**](IfcApi.md#createDrawingDeprecated) | **POST** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/drawing | Create a drawing in the model [**createElementDeprecated**](IfcApi.md#createElementDeprecated) | **POST** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element | Create an element in the model [**createElementPropertySetDeprecated**](IfcApi.md#createElementPropertySetDeprecated) | **POST** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{element_uuid}/propertyset | Create a PropertySets to an element [**createElementPropertySetPropertyDefinitionDeprecated**](IfcApi.md#createElementPropertySetPropertyDefinitionDeprecated) | **POST** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{element_uuid}/propertyset/{propertyset_pk}/property/{property_pk}/propertydefinition | Create a Definition to a Property @@ -48,6 +49,7 @@ Method | HTTP request | Description [**deleteAccessTokenDeprecated**](IfcApi.md#deleteAccessTokenDeprecated) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/access_token/{token} | Delete a token [**deleteBuildingDeprecated**](IfcApi.md#deleteBuildingDeprecated) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/building/{uuid} | Delete a building of a model [**deleteBuildingPlanDeprecated**](IfcApi.md#deleteBuildingPlanDeprecated) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/building/{building_uuid}/plan/{id} | Delete the relation between a 2d model and a building +[**deleteDrawingDeprecated**](IfcApi.md#deleteDrawingDeprecated) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/drawing/{id} | Delete a drawing of a model [**deleteElementDeprecated**](IfcApi.md#deleteElementDeprecated) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{uuid} | Delete an element of a model [**deleteIfcDeprecated**](IfcApi.md#deleteIfcDeprecated) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/ifc/{id} | Delete a model [**deleteIfcPropertyDefinitionDeprecated**](IfcApi.md#deleteIfcPropertyDefinitionDeprecated) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/propertydefinition/{id} | Delete a PropertyDefinitions of a model @@ -71,6 +73,8 @@ Method | HTTP request | Description [**getBuildingsDeprecated**](IfcApi.md#getBuildingsDeprecated) | **GET** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/building | Retrieve all buildings of a model [**getClassificationsOfElementDeprecated**](IfcApi.md#getClassificationsOfElementDeprecated) | **GET** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{element_uuid}/classification | Retrieve all classifications of an element [**getDocumentsOfElementDeprecated**](IfcApi.md#getDocumentsOfElementDeprecated) | **GET** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{element_uuid}/documents | Retrieve all documents of an element +[**getDrawingDeprecated**](IfcApi.md#getDrawingDeprecated) | **GET** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/drawing/{id} | Retrieve a drawing of a model +[**getDrawingsDeprecated**](IfcApi.md#getDrawingsDeprecated) | **GET** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/drawing | Retrieve all drawings of a model [**getElementDeprecated**](IfcApi.md#getElementDeprecated) | **GET** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{uuid} | Retrieve an element of a model [**getElementLinkedDocumentsDeprecated**](IfcApi.md#getElementLinkedDocumentsDeprecated) | **GET** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/documents | Retrieve all documents linked to any element [**getElementPropertySetDeprecated**](IfcApi.md#getElementPropertySetDeprecated) | **GET** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{element_uuid}/propertyset/{id} | Retrieve a PropertySet of an element @@ -133,6 +137,7 @@ Method | HTTP request | Description [**updateAccessTokenDeprecated**](IfcApi.md#updateAccessTokenDeprecated) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/access_token/{token} | Update some fields of a token [**updateBuildingDeprecated**](IfcApi.md#updateBuildingDeprecated) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/building/{uuid} | Update some fields of a building [**updateBuildingPlanPositioningDeprecated**](IfcApi.md#updateBuildingPlanPositioningDeprecated) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/building/{building_uuid}/plan/{id}/positioning | Update the postioning of the plan in the building +[**updateDrawingDeprecated**](IfcApi.md#updateDrawingDeprecated) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/drawing/{id} | Update some fields of a drawing [**updateElementDeprecated**](IfcApi.md#updateElementDeprecated) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{uuid} | Update some fields of an element [**updateElementPropertySetPropertyDeprecated**](IfcApi.md#updateElementPropertySetPropertyDeprecated) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{element_uuid}/propertyset/{propertyset_pk}/property/{id} | Update a property from an element [**updateIfcDeprecated**](IfcApi.md#updateIfcDeprecated) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/ifc/{id} | Update some fields of a model @@ -1462,6 +1467,73 @@ Name | Type | Description | Notes - **Accept**: application/json +## createDrawingDeprecated + +> Drawing createDrawingDeprecated(cloudPk, ifcPk, projectPk, drawingRequest) + +Create a drawing in the model + +Create a drawing in the model Required scopes: model:write + +### 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.IfcApi(); +let cloudPk = 56; // Number | A unique integer value identifying this cloud. +let ifcPk = 56; // Number | A unique integer value identifying this model. +let projectPk = 56; // Number | A unique integer value identifying this project. +let drawingRequest = new bimdata.DrawingRequest(); // DrawingRequest | +apiInstance.createDrawingDeprecated(cloudPk, ifcPk, projectPk, drawingRequest).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cloudPk** | **Number**| A unique integer value identifying this cloud. | + **ifcPk** | **Number**| A unique integer value identifying this model. | + **projectPk** | **Number**| A unique integer value identifying this project. | + **drawingRequest** | [**DrawingRequest**](DrawingRequest.md)| | + +### Return type + +[**Drawing**](Drawing.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**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + + ## createElementDeprecated > [Element] createElementDeprecated(cloudPk, ifcPk, projectPk, elementRequest, opts) @@ -3175,6 +3247,73 @@ null (empty response body) - **Accept**: Not defined +## deleteDrawingDeprecated + +> deleteDrawingDeprecated(cloudPk, id, ifcPk, projectPk) + +Delete a drawing of a model + +Delete a drawing of a model Required scopes: model:write + +### 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.IfcApi(); +let cloudPk = 56; // Number | A unique integer value identifying this cloud. +let id = 56; // Number | A unique integer value identifying this drawing. +let ifcPk = 56; // Number | A unique integer value identifying this model. +let projectPk = 56; // Number | A unique integer value identifying this project. +apiInstance.deleteDrawingDeprecated(cloudPk, id, ifcPk, projectPk).then(() => { + console.log('API called successfully.'); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cloudPk** | **Number**| A unique integer value identifying this cloud. | + **id** | **Number**| A unique integer value identifying this drawing. | + **ifcPk** | **Number**| A unique integer value identifying this model. | + **projectPk** | **Number**| A unique integer value identifying this project. | + +### Return type + +null (empty response body) + +### 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**: Not defined + + ## deleteElementDeprecated > deleteElementDeprecated(cloudPk, ifcPk, projectPk, uuid) @@ -4716,6 +4855,138 @@ Name | Type | Description | Notes - **Accept**: application/json +## getDrawingDeprecated + +> Drawing getDrawingDeprecated(cloudPk, id, ifcPk, projectPk) + +Retrieve a drawing of a model + +Retrieve a drawing of a model Required scopes: model: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.IfcApi(); +let cloudPk = 56; // Number | A unique integer value identifying this cloud. +let id = 56; // Number | A unique integer value identifying this drawing. +let ifcPk = 56; // Number | A unique integer value identifying this model. +let projectPk = 56; // Number | A unique integer value identifying this project. +apiInstance.getDrawingDeprecated(cloudPk, id, ifcPk, projectPk).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cloudPk** | **Number**| A unique integer value identifying this cloud. | + **id** | **Number**| A unique integer value identifying this drawing. | + **ifcPk** | **Number**| A unique integer value identifying this model. | + **projectPk** | **Number**| A unique integer value identifying this project. | + +### Return type + +[**Drawing**](Drawing.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 + + +## getDrawingsDeprecated + +> [Drawing] getDrawingsDeprecated(cloudPk, ifcPk, projectPk) + +Retrieve all drawings of a model + +Retrieve all drawings of a model. Required scopes: model: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.IfcApi(); +let cloudPk = 56; // Number | A unique integer value identifying this cloud. +let ifcPk = 56; // Number | A unique integer value identifying this model. +let projectPk = 56; // Number | A unique integer value identifying this project. +apiInstance.getDrawingsDeprecated(cloudPk, ifcPk, projectPk).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cloudPk** | **Number**| A unique integer value identifying this cloud. | + **ifcPk** | **Number**| A unique integer value identifying this model. | + **projectPk** | **Number**| A unique integer value identifying this project. | + +### Return type + +[**[Drawing]**](Drawing.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 + + ## getElementDeprecated > Element getElementDeprecated(cloudPk, ifcPk, projectPk, uuid) @@ -8938,6 +9209,77 @@ Name | Type | Description | Notes - **Accept**: application/json +## updateDrawingDeprecated + +> Drawing updateDrawingDeprecated(cloudPk, id, ifcPk, projectPk, opts) + +Update some fields of a drawing + +Update some fields of a drawing Required scopes: model:write + +### 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.IfcApi(); +let cloudPk = 56; // Number | A unique integer value identifying this cloud. +let id = 56; // Number | A unique integer value identifying this drawing. +let ifcPk = 56; // Number | A unique integer value identifying this model. +let projectPk = 56; // Number | A unique integer value identifying this project. +let opts = { + 'patchedDrawingRequest': new bimdata.PatchedDrawingRequest() // PatchedDrawingRequest | +}; +apiInstance.updateDrawingDeprecated(cloudPk, id, ifcPk, projectPk, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cloudPk** | **Number**| A unique integer value identifying this cloud. | + **id** | **Number**| A unique integer value identifying this drawing. | + **ifcPk** | **Number**| A unique integer value identifying this model. | + **projectPk** | **Number**| A unique integer value identifying this project. | + **patchedDrawingRequest** | [**PatchedDrawingRequest**](PatchedDrawingRequest.md)| | [optional] + +### Return type + +[**Drawing**](Drawing.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**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + + ## updateElementDeprecated > Element updateElementDeprecated(cloudPk, ifcPk, projectPk, uuid, opts) diff --git a/docs/ModelApi.md b/docs/ModelApi.md index 7fba98d..35d01b1 100644 --- a/docs/ModelApi.md +++ b/docs/ModelApi.md @@ -23,6 +23,7 @@ Method | HTTP request | Description [**createBuildingPlan**](ModelApi.md#createBuildingPlan) | **POST** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/building/{building_uuid}/plan/add | Create a relation between a 2d model and a building [**createClassificationElementRelations**](ModelApi.md#createClassificationElementRelations) | **POST** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/classification-element | Create association between existing classification and existing element [**createClassificationsOfElement**](ModelApi.md#createClassificationsOfElement) | **POST** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/element/{element_uuid}/classification | Create one or many classifications to an element +[**createDrawing**](ModelApi.md#createDrawing) | **POST** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/drawing | Create a drawing in the model [**createElement**](ModelApi.md#createElement) | **POST** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/element | Create an element in the model [**createElementPropertySet**](ModelApi.md#createElementPropertySet) | **POST** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/element/{element_uuid}/propertyset | Create a PropertySets to an element [**createElementPropertySetProperty**](ModelApi.md#createElementPropertySetProperty) | **POST** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/element/{element_uuid}/propertyset/{propertyset_pk}/property | Create a property to a PropertySet @@ -48,6 +49,7 @@ Method | HTTP request | Description [**deleteAccessToken**](ModelApi.md#deleteAccessToken) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/access_token/{token} | Delete a token [**deleteBuilding**](ModelApi.md#deleteBuilding) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/building/{uuid} | Delete a building of a model [**deleteBuildingPlan**](ModelApi.md#deleteBuildingPlan) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/building/{building_uuid}/plan/{id} | Delete the relation between a 2d model and a building +[**deleteDrawing**](ModelApi.md#deleteDrawing) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/drawing/{id} | Delete a drawing of a model [**deleteElement**](ModelApi.md#deleteElement) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/element/{uuid} | Delete an element of a model [**deleteLayer**](ModelApi.md#deleteLayer) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/layer/{id} | Delete a layer of a model [**deleteModel**](ModelApi.md#deleteModel) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/model/{id} | Delete a model @@ -71,6 +73,8 @@ Method | HTTP request | Description [**getBuildings**](ModelApi.md#getBuildings) | **GET** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/building | Retrieve all buildings of a model [**getClassificationsOfElement**](ModelApi.md#getClassificationsOfElement) | **GET** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/element/{element_uuid}/classification | Retrieve all classifications of an element [**getDocumentsOfElement**](ModelApi.md#getDocumentsOfElement) | **GET** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/element/{element_uuid}/documents | Retrieve all documents of an element +[**getDrawing**](ModelApi.md#getDrawing) | **GET** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/drawing/{id} | Retrieve a drawing of a model +[**getDrawings**](ModelApi.md#getDrawings) | **GET** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/drawing | Retrieve all drawings of a model [**getElement**](ModelApi.md#getElement) | **GET** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/element/{uuid} | Retrieve an element of a model [**getElementLinkedDocuments**](ModelApi.md#getElementLinkedDocuments) | **GET** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/element/documents | Retrieve all documents linked to any element [**getElementPropertySet**](ModelApi.md#getElementPropertySet) | **GET** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/element/{element_uuid}/propertyset/{id} | Retrieve a PropertySet of an element @@ -133,6 +137,7 @@ Method | HTTP request | Description [**updateAccessToken**](ModelApi.md#updateAccessToken) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/access_token/{token} | Update some fields of a token [**updateBuilding**](ModelApi.md#updateBuilding) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/building/{uuid} | Update some fields of a building [**updateBuildingPlanPositioning**](ModelApi.md#updateBuildingPlanPositioning) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/building/{building_uuid}/plan/{id}/positioning | Update the postioning of the plan in the building +[**updateDrawing**](ModelApi.md#updateDrawing) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/drawing/{id} | Update some fields of a drawing [**updateElement**](ModelApi.md#updateElement) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/element/{uuid} | Update some fields of an element [**updateElementPropertySetProperty**](ModelApi.md#updateElementPropertySetProperty) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/element/{element_uuid}/propertyset/{propertyset_pk}/property/{id} | Update a property from an element [**updateLayer**](ModelApi.md#updateLayer) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/layer/{id} | Update some fields of a layer @@ -1462,6 +1467,73 @@ Name | Type | Description | Notes - **Accept**: application/json +## createDrawing + +> Drawing createDrawing(cloudPk, modelPk, projectPk, drawingRequest) + +Create a drawing in the model + +Create a drawing in the model Required scopes: model:write + +### 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.ModelApi(); +let cloudPk = 56; // Number | A unique integer value identifying this cloud. +let modelPk = 56; // Number | A unique integer value identifying this model. +let projectPk = 56; // Number | A unique integer value identifying this project. +let drawingRequest = new bimdata.DrawingRequest(); // DrawingRequest | +apiInstance.createDrawing(cloudPk, modelPk, projectPk, drawingRequest).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cloudPk** | **Number**| A unique integer value identifying this cloud. | + **modelPk** | **Number**| A unique integer value identifying this model. | + **projectPk** | **Number**| A unique integer value identifying this project. | + **drawingRequest** | [**DrawingRequest**](DrawingRequest.md)| | + +### Return type + +[**Drawing**](Drawing.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**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + + ## createElement > [Element] createElement(cloudPk, modelPk, projectPk, elementRequest, opts) @@ -3175,6 +3247,73 @@ null (empty response body) - **Accept**: Not defined +## deleteDrawing + +> deleteDrawing(cloudPk, id, modelPk, projectPk) + +Delete a drawing of a model + +Delete a drawing of a model Required scopes: model:write + +### 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.ModelApi(); +let cloudPk = 56; // Number | A unique integer value identifying this cloud. +let id = 56; // Number | A unique integer value identifying this drawing. +let modelPk = 56; // Number | A unique integer value identifying this model. +let projectPk = 56; // Number | A unique integer value identifying this project. +apiInstance.deleteDrawing(cloudPk, id, modelPk, projectPk).then(() => { + console.log('API called successfully.'); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cloudPk** | **Number**| A unique integer value identifying this cloud. | + **id** | **Number**| A unique integer value identifying this drawing. | + **modelPk** | **Number**| A unique integer value identifying this model. | + **projectPk** | **Number**| A unique integer value identifying this project. | + +### Return type + +null (empty response body) + +### 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**: Not defined + + ## deleteElement > deleteElement(cloudPk, modelPk, projectPk, uuid) @@ -4716,6 +4855,138 @@ Name | Type | Description | Notes - **Accept**: application/json +## getDrawing + +> Drawing getDrawing(cloudPk, id, modelPk, projectPk) + +Retrieve a drawing of a model + +Retrieve a drawing of a model Required scopes: model: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.ModelApi(); +let cloudPk = 56; // Number | A unique integer value identifying this cloud. +let id = 56; // Number | A unique integer value identifying this drawing. +let modelPk = 56; // Number | A unique integer value identifying this model. +let projectPk = 56; // Number | A unique integer value identifying this project. +apiInstance.getDrawing(cloudPk, id, modelPk, projectPk).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cloudPk** | **Number**| A unique integer value identifying this cloud. | + **id** | **Number**| A unique integer value identifying this drawing. | + **modelPk** | **Number**| A unique integer value identifying this model. | + **projectPk** | **Number**| A unique integer value identifying this project. | + +### Return type + +[**Drawing**](Drawing.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 + + +## getDrawings + +> [Drawing] getDrawings(cloudPk, modelPk, projectPk) + +Retrieve all drawings of a model + +Retrieve all drawings of a model. Required scopes: model: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.ModelApi(); +let cloudPk = 56; // Number | A unique integer value identifying this cloud. +let modelPk = 56; // Number | A unique integer value identifying this model. +let projectPk = 56; // Number | A unique integer value identifying this project. +apiInstance.getDrawings(cloudPk, modelPk, projectPk).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cloudPk** | **Number**| A unique integer value identifying this cloud. | + **modelPk** | **Number**| A unique integer value identifying this model. | + **projectPk** | **Number**| A unique integer value identifying this project. | + +### Return type + +[**[Drawing]**](Drawing.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 + + ## getElement > Element getElement(cloudPk, modelPk, projectPk, uuid) @@ -8954,6 +9225,77 @@ Name | Type | Description | Notes - **Accept**: application/json +## updateDrawing + +> Drawing updateDrawing(cloudPk, id, modelPk, projectPk, opts) + +Update some fields of a drawing + +Update some fields of a drawing Required scopes: model:write + +### 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.ModelApi(); +let cloudPk = 56; // Number | A unique integer value identifying this cloud. +let id = 56; // Number | A unique integer value identifying this drawing. +let modelPk = 56; // Number | A unique integer value identifying this model. +let projectPk = 56; // Number | A unique integer value identifying this project. +let opts = { + 'patchedDrawingRequest': new bimdata.PatchedDrawingRequest() // PatchedDrawingRequest | +}; +apiInstance.updateDrawing(cloudPk, id, modelPk, projectPk, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cloudPk** | **Number**| A unique integer value identifying this cloud. | + **id** | **Number**| A unique integer value identifying this drawing. | + **modelPk** | **Number**| A unique integer value identifying this model. | + **projectPk** | **Number**| A unique integer value identifying this project. | + **patchedDrawingRequest** | [**PatchedDrawingRequest**](PatchedDrawingRequest.md)| | [optional] + +### Return type + +[**Drawing**](Drawing.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**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + + ## updateElement > Element updateElement(cloudPk, modelPk, projectPk, uuid, opts) diff --git a/docs/PatchedDrawingRequest.md b/docs/PatchedDrawingRequest.md new file mode 100644 index 0000000..7b4907e --- /dev/null +++ b/docs/PatchedDrawingRequest.md @@ -0,0 +1,9 @@ +# bimdata.PatchedDrawingRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content** | **String** | | [optional] + + diff --git a/src/api/CollaborationApi.js b/src/api/CollaborationApi.js index 5944f13..0a6e551 100644 --- a/src/api/CollaborationApi.js +++ b/src/api/CollaborationApi.js @@ -858,7 +858,7 @@ export default class CollaborationApi { /** * Create a document - * Create a document. If the document is one of {'IFC', 'DXF', 'GLTF', 'OBJ', 'DWG', 'POINT_CLOUD'}, a model will be created and attached to this document Required scopes: document:write + * 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 * @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 +924,7 @@ export default class CollaborationApi { /** * Create a document - * Create a document. If the document is one of {'IFC', 'DXF', 'GLTF', 'OBJ', 'DWG', 'POINT_CLOUD'}, a model will be created and attached to this document Required scopes: document:write + * 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 * @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 diff --git a/src/api/IfcApi.js b/src/api/IfcApi.js index 65a9f03..1638609 100644 --- a/src/api/IfcApi.js +++ b/src/api/IfcApi.js @@ -22,6 +22,8 @@ import CreateModelRequest from '../model/CreateModelRequest'; import CreateMultiPageModelRequest from '../model/CreateMultiPageModelRequest'; import Document from '../model/Document'; import DocumentWithElementList from '../model/DocumentWithElementList'; +import Drawing from '../model/Drawing'; +import DrawingRequest from '../model/DrawingRequest'; import Element from '../model/Element'; import ElementClassificationRelation from '../model/ElementClassificationRelation'; import ElementClassificationRelationRequest from '../model/ElementClassificationRelationRequest'; @@ -39,6 +41,7 @@ import Model from '../model/Model'; import ModelErrors from '../model/ModelErrors'; import ModelErrorsRequest from '../model/ModelErrorsRequest'; import ModelFiles from '../model/ModelFiles'; +import PatchedDrawingRequest from '../model/PatchedDrawingRequest'; import PatchedElementRequest from '../model/PatchedElementRequest'; import PatchedIfcAccessTokenRequest from '../model/PatchedIfcAccessTokenRequest'; import PatchedLayerRequest from '../model/PatchedLayerRequest'; @@ -1456,6 +1459,74 @@ export default class IfcApi { } + /** + * Create a drawing in the model + * Create a drawing in the model Required scopes: model:write + * @param {Number} cloudPk A unique integer value identifying this cloud. + * @param {Number} ifcPk A unique integer value identifying this model. + * @param {Number} projectPk A unique integer value identifying this project. + * @param {module:model/DrawingRequest} drawingRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Drawing} and HTTP response + */ + createDrawingDeprecatedWithHttpInfo(cloudPk, ifcPk, projectPk, drawingRequest) { + let postBody = drawingRequest; + // verify the required parameter 'cloudPk' is set + if (cloudPk === undefined || cloudPk === null) { + throw new Error("Missing the required parameter 'cloudPk' when calling createDrawingDeprecated"); + } + // verify the required parameter 'ifcPk' is set + if (ifcPk === undefined || ifcPk === null) { + throw new Error("Missing the required parameter 'ifcPk' when calling createDrawingDeprecated"); + } + // verify the required parameter 'projectPk' is set + if (projectPk === undefined || projectPk === null) { + throw new Error("Missing the required parameter 'projectPk' when calling createDrawingDeprecated"); + } + // verify the required parameter 'drawingRequest' is set + if (drawingRequest === undefined || drawingRequest === null) { + throw new Error("Missing the required parameter 'drawingRequest' when calling createDrawingDeprecated"); + } + + let pathParams = { + 'cloud_pk': cloudPk, + 'ifc_pk': ifcPk, + 'project_pk': projectPk + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['ApiKey', 'BIMData_Connect', 'BIMData_Connect', 'Bearer']; + let contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data']; + let accepts = ['application/json']; + let returnType = Drawing; + return this.apiClient.callApi( + '/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/drawing', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Create a drawing in the model + * Create a drawing in the model Required scopes: model:write + * @param {Number} cloudPk A unique integer value identifying this cloud. + * @param {Number} ifcPk A unique integer value identifying this model. + * @param {Number} projectPk A unique integer value identifying this project. + * @param {module:model/DrawingRequest} drawingRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Drawing} + */ + createDrawingDeprecated(cloudPk, ifcPk, projectPk, drawingRequest) { + return this.createDrawingDeprecatedWithHttpInfo(cloudPk, ifcPk, projectPk, drawingRequest) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + /** * Create an element in the model * Bulk create available. You can either post an object or a list of objects. Is you post a list, the response will be a list (in the same order) of created objects or of errors if any If at least one create succeeded, the status code will be 201. If every create failed, the status code we'll be 400 with the list of errors The IFC file will not be updated. The created element will be accessible over the API and when exporting an IFC file Required scopes: ifc:write, model:write @@ -3254,6 +3325,75 @@ export default class IfcApi { } + /** + * Delete a drawing of a model + * Delete a drawing of a model Required scopes: model:write + * @param {Number} cloudPk A unique integer value identifying this cloud. + * @param {Number} id A unique integer value identifying this drawing. + * @param {Number} ifcPk A unique integer value identifying this model. + * @param {Number} projectPk A unique integer value identifying this project. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response + */ + deleteDrawingDeprecatedWithHttpInfo(cloudPk, id, ifcPk, projectPk) { + 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 deleteDrawingDeprecated"); + } + // verify the required parameter 'id' is set + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling deleteDrawingDeprecated"); + } + // verify the required parameter 'ifcPk' is set + if (ifcPk === undefined || ifcPk === null) { + throw new Error("Missing the required parameter 'ifcPk' when calling deleteDrawingDeprecated"); + } + // verify the required parameter 'projectPk' is set + if (projectPk === undefined || projectPk === null) { + throw new Error("Missing the required parameter 'projectPk' when calling deleteDrawingDeprecated"); + } + + let pathParams = { + 'cloud_pk': cloudPk, + 'id': id, + 'ifc_pk': ifcPk, + 'project_pk': projectPk + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['ApiKey', 'BIMData_Connect', 'BIMData_Connect', 'Bearer']; + let contentTypes = []; + let accepts = []; + let returnType = null; + return this.apiClient.callApi( + '/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/drawing/{id}', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Delete a drawing of a model + * Delete a drawing of a model Required scopes: model:write + * @param {Number} cloudPk A unique integer value identifying this cloud. + * @param {Number} id A unique integer value identifying this drawing. + * @param {Number} ifcPk A unique integer value identifying this model. + * @param {Number} projectPk A unique integer value identifying this project. + * @return {Promise} a {@link https://www.promisejs.org/|Promise} + */ + deleteDrawingDeprecated(cloudPk, id, ifcPk, projectPk) { + return this.deleteDrawingDeprecatedWithHttpInfo(cloudPk, id, ifcPk, projectPk) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + /** * Delete an element of a model * The IFC file will not be updated. The remaining elements are available in API and will be available when exporting an IFC file Required scopes: ifc:write, model:write @@ -4839,6 +4979,137 @@ export default class IfcApi { } + /** + * Retrieve a drawing of a model + * Retrieve a drawing of a model Required scopes: model:read + * @param {Number} cloudPk A unique integer value identifying this cloud. + * @param {Number} id A unique integer value identifying this drawing. + * @param {Number} ifcPk A unique integer value identifying this model. + * @param {Number} projectPk 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/Drawing} and HTTP response + */ + getDrawingDeprecatedWithHttpInfo(cloudPk, id, ifcPk, projectPk) { + 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 getDrawingDeprecated"); + } + // verify the required parameter 'id' is set + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling getDrawingDeprecated"); + } + // verify the required parameter 'ifcPk' is set + if (ifcPk === undefined || ifcPk === null) { + throw new Error("Missing the required parameter 'ifcPk' when calling getDrawingDeprecated"); + } + // verify the required parameter 'projectPk' is set + if (projectPk === undefined || projectPk === null) { + throw new Error("Missing the required parameter 'projectPk' when calling getDrawingDeprecated"); + } + + let pathParams = { + 'cloud_pk': cloudPk, + 'id': id, + 'ifc_pk': ifcPk, + 'project_pk': projectPk + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['ApiKey', 'BIMData_Connect', 'BIMData_Connect', 'Bearer']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = Drawing; + return this.apiClient.callApi( + '/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/drawing/{id}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Retrieve a drawing of a model + * Retrieve a drawing of a model Required scopes: model:read + * @param {Number} cloudPk A unique integer value identifying this cloud. + * @param {Number} id A unique integer value identifying this drawing. + * @param {Number} ifcPk A unique integer value identifying this model. + * @param {Number} projectPk A unique integer value identifying this project. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Drawing} + */ + getDrawingDeprecated(cloudPk, id, ifcPk, projectPk) { + return this.getDrawingDeprecatedWithHttpInfo(cloudPk, id, ifcPk, projectPk) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Retrieve all drawings of a model + * Retrieve all drawings of a model. Required scopes: model:read + * @param {Number} cloudPk A unique integer value identifying this cloud. + * @param {Number} ifcPk A unique integer value identifying this model. + * @param {Number} projectPk A unique integer value identifying this project. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.} and HTTP response + */ + getDrawingsDeprecatedWithHttpInfo(cloudPk, ifcPk, projectPk) { + 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 getDrawingsDeprecated"); + } + // verify the required parameter 'ifcPk' is set + if (ifcPk === undefined || ifcPk === null) { + throw new Error("Missing the required parameter 'ifcPk' when calling getDrawingsDeprecated"); + } + // verify the required parameter 'projectPk' is set + if (projectPk === undefined || projectPk === null) { + throw new Error("Missing the required parameter 'projectPk' when calling getDrawingsDeprecated"); + } + + let pathParams = { + 'cloud_pk': cloudPk, + 'ifc_pk': ifcPk, + 'project_pk': projectPk + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['ApiKey', 'BIMData_Connect', 'BIMData_Connect', 'Bearer']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = [Drawing]; + return this.apiClient.callApi( + '/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/drawing', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Retrieve all drawings of a model + * Retrieve all drawings of a model. Required scopes: model:read + * @param {Number} cloudPk A unique integer value identifying this cloud. + * @param {Number} ifcPk A unique integer value identifying this model. + * @param {Number} projectPk A unique integer value identifying this project. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.} + */ + getDrawingsDeprecated(cloudPk, ifcPk, projectPk) { + return this.getDrawingsDeprecatedWithHttpInfo(cloudPk, ifcPk, projectPk) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + /** * Retrieve an element of a model * Retrieve an element of a model Required scopes: ifc:read, model:read @@ -9253,6 +9524,80 @@ export default class IfcApi { } + /** + * Update some fields of a drawing + * Update some fields of a drawing Required scopes: model:write + * @param {Number} cloudPk A unique integer value identifying this cloud. + * @param {Number} id A unique integer value identifying this drawing. + * @param {Number} ifcPk A unique integer value identifying this model. + * @param {Number} projectPk A unique integer value identifying this project. + * @param {Object} opts Optional parameters + * @param {module:model/PatchedDrawingRequest} opts.patchedDrawingRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Drawing} and HTTP response + */ + updateDrawingDeprecatedWithHttpInfo(cloudPk, id, ifcPk, projectPk, opts) { + opts = opts || {}; + let postBody = opts['patchedDrawingRequest']; + // verify the required parameter 'cloudPk' is set + if (cloudPk === undefined || cloudPk === null) { + throw new Error("Missing the required parameter 'cloudPk' when calling updateDrawingDeprecated"); + } + // verify the required parameter 'id' is set + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling updateDrawingDeprecated"); + } + // verify the required parameter 'ifcPk' is set + if (ifcPk === undefined || ifcPk === null) { + throw new Error("Missing the required parameter 'ifcPk' when calling updateDrawingDeprecated"); + } + // verify the required parameter 'projectPk' is set + if (projectPk === undefined || projectPk === null) { + throw new Error("Missing the required parameter 'projectPk' when calling updateDrawingDeprecated"); + } + + let pathParams = { + 'cloud_pk': cloudPk, + 'id': id, + 'ifc_pk': ifcPk, + 'project_pk': projectPk + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['ApiKey', 'BIMData_Connect', 'BIMData_Connect', 'Bearer']; + let contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data']; + let accepts = ['application/json']; + let returnType = Drawing; + return this.apiClient.callApi( + '/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/drawing/{id}', 'PATCH', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Update some fields of a drawing + * Update some fields of a drawing Required scopes: model:write + * @param {Number} cloudPk A unique integer value identifying this cloud. + * @param {Number} id A unique integer value identifying this drawing. + * @param {Number} ifcPk A unique integer value identifying this model. + * @param {Number} projectPk A unique integer value identifying this project. + * @param {Object} opts Optional parameters + * @param {module:model/PatchedDrawingRequest} opts.patchedDrawingRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Drawing} + */ + updateDrawingDeprecated(cloudPk, id, ifcPk, projectPk, opts) { + return this.updateDrawingDeprecatedWithHttpInfo(cloudPk, id, ifcPk, projectPk, opts) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + /** * Update some fields of an element * Update some fields of an element. The IFC file will not be updated. The created element will be accessible over the API and when exporting an IFC file Required scopes: ifc:write, model:write diff --git a/src/api/ModelApi.js b/src/api/ModelApi.js index 7180f72..d793218 100644 --- a/src/api/ModelApi.js +++ b/src/api/ModelApi.js @@ -22,6 +22,8 @@ import CreateModelRequest from '../model/CreateModelRequest'; import CreateMultiPageModelRequest from '../model/CreateMultiPageModelRequest'; import Document from '../model/Document'; import DocumentWithElementList from '../model/DocumentWithElementList'; +import Drawing from '../model/Drawing'; +import DrawingRequest from '../model/DrawingRequest'; import Element from '../model/Element'; import ElementClassificationRelation from '../model/ElementClassificationRelation'; import ElementClassificationRelationRequest from '../model/ElementClassificationRelationRequest'; @@ -39,6 +41,7 @@ import Model from '../model/Model'; import ModelErrors from '../model/ModelErrors'; import ModelErrorsRequest from '../model/ModelErrorsRequest'; import ModelFiles from '../model/ModelFiles'; +import PatchedDrawingRequest from '../model/PatchedDrawingRequest'; import PatchedElementRequest from '../model/PatchedElementRequest'; import PatchedIfcAccessTokenRequest from '../model/PatchedIfcAccessTokenRequest'; import PatchedLayerRequest from '../model/PatchedLayerRequest'; @@ -1456,6 +1459,74 @@ export default class ModelApi { } + /** + * Create a drawing in the model + * Create a drawing in the model Required scopes: model:write + * @param {Number} cloudPk A unique integer value identifying this cloud. + * @param {Number} modelPk A unique integer value identifying this model. + * @param {Number} projectPk A unique integer value identifying this project. + * @param {module:model/DrawingRequest} drawingRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Drawing} and HTTP response + */ + createDrawingWithHttpInfo(cloudPk, modelPk, projectPk, drawingRequest) { + let postBody = drawingRequest; + // verify the required parameter 'cloudPk' is set + if (cloudPk === undefined || cloudPk === null) { + throw new Error("Missing the required parameter 'cloudPk' when calling createDrawing"); + } + // verify the required parameter 'modelPk' is set + if (modelPk === undefined || modelPk === null) { + throw new Error("Missing the required parameter 'modelPk' when calling createDrawing"); + } + // verify the required parameter 'projectPk' is set + if (projectPk === undefined || projectPk === null) { + throw new Error("Missing the required parameter 'projectPk' when calling createDrawing"); + } + // verify the required parameter 'drawingRequest' is set + if (drawingRequest === undefined || drawingRequest === null) { + throw new Error("Missing the required parameter 'drawingRequest' when calling createDrawing"); + } + + let pathParams = { + 'cloud_pk': cloudPk, + 'model_pk': modelPk, + 'project_pk': projectPk + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['ApiKey', 'BIMData_Connect', 'BIMData_Connect', 'Bearer']; + let contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data']; + let accepts = ['application/json']; + let returnType = Drawing; + return this.apiClient.callApi( + '/cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/drawing', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Create a drawing in the model + * Create a drawing in the model Required scopes: model:write + * @param {Number} cloudPk A unique integer value identifying this cloud. + * @param {Number} modelPk A unique integer value identifying this model. + * @param {Number} projectPk A unique integer value identifying this project. + * @param {module:model/DrawingRequest} drawingRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Drawing} + */ + createDrawing(cloudPk, modelPk, projectPk, drawingRequest) { + return this.createDrawingWithHttpInfo(cloudPk, modelPk, projectPk, drawingRequest) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + /** * Create an element in the model * Bulk create available. You can either post an object or a list of objects. Is you post a list, the response will be a list (in the same order) of created objects or of errors if any If at least one create succeeded, the status code will be 201. If every create failed, the status code we'll be 400 with the list of errors The IFC file will not be updated. The created element will be accessible over the API and when exporting an IFC file Required scopes: ifc:write, model:write @@ -3254,6 +3325,75 @@ export default class ModelApi { } + /** + * Delete a drawing of a model + * Delete a drawing of a model Required scopes: model:write + * @param {Number} cloudPk A unique integer value identifying this cloud. + * @param {Number} id A unique integer value identifying this drawing. + * @param {Number} modelPk A unique integer value identifying this model. + * @param {Number} projectPk A unique integer value identifying this project. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response + */ + deleteDrawingWithHttpInfo(cloudPk, id, modelPk, projectPk) { + 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 deleteDrawing"); + } + // verify the required parameter 'id' is set + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling deleteDrawing"); + } + // verify the required parameter 'modelPk' is set + if (modelPk === undefined || modelPk === null) { + throw new Error("Missing the required parameter 'modelPk' when calling deleteDrawing"); + } + // verify the required parameter 'projectPk' is set + if (projectPk === undefined || projectPk === null) { + throw new Error("Missing the required parameter 'projectPk' when calling deleteDrawing"); + } + + let pathParams = { + 'cloud_pk': cloudPk, + 'id': id, + 'model_pk': modelPk, + 'project_pk': projectPk + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['ApiKey', 'BIMData_Connect', 'BIMData_Connect', 'Bearer']; + let contentTypes = []; + let accepts = []; + let returnType = null; + return this.apiClient.callApi( + '/cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/drawing/{id}', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Delete a drawing of a model + * Delete a drawing of a model Required scopes: model:write + * @param {Number} cloudPk A unique integer value identifying this cloud. + * @param {Number} id A unique integer value identifying this drawing. + * @param {Number} modelPk A unique integer value identifying this model. + * @param {Number} projectPk A unique integer value identifying this project. + * @return {Promise} a {@link https://www.promisejs.org/|Promise} + */ + deleteDrawing(cloudPk, id, modelPk, projectPk) { + return this.deleteDrawingWithHttpInfo(cloudPk, id, modelPk, projectPk) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + /** * Delete an element of a model * The IFC file will not be updated. The remaining elements are available in API and will be available when exporting an IFC file Required scopes: ifc:write, model:write @@ -4839,6 +4979,137 @@ export default class ModelApi { } + /** + * Retrieve a drawing of a model + * Retrieve a drawing of a model Required scopes: model:read + * @param {Number} cloudPk A unique integer value identifying this cloud. + * @param {Number} id A unique integer value identifying this drawing. + * @param {Number} modelPk A unique integer value identifying this model. + * @param {Number} projectPk 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/Drawing} and HTTP response + */ + getDrawingWithHttpInfo(cloudPk, id, modelPk, projectPk) { + 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 getDrawing"); + } + // verify the required parameter 'id' is set + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling getDrawing"); + } + // verify the required parameter 'modelPk' is set + if (modelPk === undefined || modelPk === null) { + throw new Error("Missing the required parameter 'modelPk' when calling getDrawing"); + } + // verify the required parameter 'projectPk' is set + if (projectPk === undefined || projectPk === null) { + throw new Error("Missing the required parameter 'projectPk' when calling getDrawing"); + } + + let pathParams = { + 'cloud_pk': cloudPk, + 'id': id, + 'model_pk': modelPk, + 'project_pk': projectPk + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['ApiKey', 'BIMData_Connect', 'BIMData_Connect', 'Bearer']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = Drawing; + return this.apiClient.callApi( + '/cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/drawing/{id}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Retrieve a drawing of a model + * Retrieve a drawing of a model Required scopes: model:read + * @param {Number} cloudPk A unique integer value identifying this cloud. + * @param {Number} id A unique integer value identifying this drawing. + * @param {Number} modelPk A unique integer value identifying this model. + * @param {Number} projectPk A unique integer value identifying this project. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Drawing} + */ + getDrawing(cloudPk, id, modelPk, projectPk) { + return this.getDrawingWithHttpInfo(cloudPk, id, modelPk, projectPk) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Retrieve all drawings of a model + * Retrieve all drawings of a model. Required scopes: model:read + * @param {Number} cloudPk A unique integer value identifying this cloud. + * @param {Number} modelPk A unique integer value identifying this model. + * @param {Number} projectPk A unique integer value identifying this project. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.} and HTTP response + */ + getDrawingsWithHttpInfo(cloudPk, modelPk, projectPk) { + 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 getDrawings"); + } + // verify the required parameter 'modelPk' is set + if (modelPk === undefined || modelPk === null) { + throw new Error("Missing the required parameter 'modelPk' when calling getDrawings"); + } + // verify the required parameter 'projectPk' is set + if (projectPk === undefined || projectPk === null) { + throw new Error("Missing the required parameter 'projectPk' when calling getDrawings"); + } + + let pathParams = { + 'cloud_pk': cloudPk, + 'model_pk': modelPk, + 'project_pk': projectPk + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['ApiKey', 'BIMData_Connect', 'BIMData_Connect', 'Bearer']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = [Drawing]; + return this.apiClient.callApi( + '/cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/drawing', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Retrieve all drawings of a model + * Retrieve all drawings of a model. Required scopes: model:read + * @param {Number} cloudPk A unique integer value identifying this cloud. + * @param {Number} modelPk A unique integer value identifying this model. + * @param {Number} projectPk A unique integer value identifying this project. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.} + */ + getDrawings(cloudPk, modelPk, projectPk) { + return this.getDrawingsWithHttpInfo(cloudPk, modelPk, projectPk) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + /** * Retrieve an element of a model * Retrieve an element of a model Required scopes: ifc:read, model:read @@ -9277,6 +9548,80 @@ export default class ModelApi { } + /** + * Update some fields of a drawing + * Update some fields of a drawing Required scopes: model:write + * @param {Number} cloudPk A unique integer value identifying this cloud. + * @param {Number} id A unique integer value identifying this drawing. + * @param {Number} modelPk A unique integer value identifying this model. + * @param {Number} projectPk A unique integer value identifying this project. + * @param {Object} opts Optional parameters + * @param {module:model/PatchedDrawingRequest} opts.patchedDrawingRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Drawing} and HTTP response + */ + updateDrawingWithHttpInfo(cloudPk, id, modelPk, projectPk, opts) { + opts = opts || {}; + let postBody = opts['patchedDrawingRequest']; + // verify the required parameter 'cloudPk' is set + if (cloudPk === undefined || cloudPk === null) { + throw new Error("Missing the required parameter 'cloudPk' when calling updateDrawing"); + } + // verify the required parameter 'id' is set + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling updateDrawing"); + } + // verify the required parameter 'modelPk' is set + if (modelPk === undefined || modelPk === null) { + throw new Error("Missing the required parameter 'modelPk' when calling updateDrawing"); + } + // verify the required parameter 'projectPk' is set + if (projectPk === undefined || projectPk === null) { + throw new Error("Missing the required parameter 'projectPk' when calling updateDrawing"); + } + + let pathParams = { + 'cloud_pk': cloudPk, + 'id': id, + 'model_pk': modelPk, + 'project_pk': projectPk + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['ApiKey', 'BIMData_Connect', 'BIMData_Connect', 'Bearer']; + let contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data']; + let accepts = ['application/json']; + let returnType = Drawing; + return this.apiClient.callApi( + '/cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/drawing/{id}', 'PATCH', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Update some fields of a drawing + * Update some fields of a drawing Required scopes: model:write + * @param {Number} cloudPk A unique integer value identifying this cloud. + * @param {Number} id A unique integer value identifying this drawing. + * @param {Number} modelPk A unique integer value identifying this model. + * @param {Number} projectPk A unique integer value identifying this project. + * @param {Object} opts Optional parameters + * @param {module:model/PatchedDrawingRequest} opts.patchedDrawingRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Drawing} + */ + updateDrawing(cloudPk, id, modelPk, projectPk, opts) { + return this.updateDrawingWithHttpInfo(cloudPk, id, modelPk, projectPk, opts) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + /** * Update some fields of an element * Update some fields of an element. The IFC file will not be updated. The created element will be accessible over the API and when exporting an IFC file Required scopes: ifc:write, model:write diff --git a/src/index.js b/src/index.js index cf30adb..0eb05e8 100644 --- a/src/index.js +++ b/src/index.js @@ -46,6 +46,8 @@ import DirectionRequest from './model/DirectionRequest'; import Document from './model/Document'; import DocumentPreviewFile from './model/DocumentPreviewFile'; import DocumentWithElementList from './model/DocumentWithElementList'; +import Drawing from './model/Drawing'; +import DrawingRequest from './model/DrawingRequest'; import Element from './model/Element'; import ElementClassificationRelation from './model/ElementClassificationRelation'; import ElementClassificationRelationRequest from './model/ElementClassificationRelationRequest'; @@ -105,6 +107,7 @@ import PatchedClassificationRequest from './model/PatchedClassificationRequest'; import PatchedCloudRequest from './model/PatchedCloudRequest'; import PatchedCommentRequest from './model/PatchedCommentRequest'; import PatchedDocumentRequest from './model/PatchedDocumentRequest'; +import PatchedDrawingRequest from './model/PatchedDrawingRequest'; import PatchedElementRequest from './model/PatchedElementRequest'; import PatchedFolderWithoutChildrenRequest from './model/PatchedFolderWithoutChildrenRequest'; import PatchedFullTopicRequest from './model/PatchedFullTopicRequest'; @@ -494,6 +497,18 @@ export { */ DocumentWithElementList, + /** + * The Drawing model constructor. + * @property {module:model/Drawing} + */ + Drawing, + + /** + * The DrawingRequest model constructor. + * @property {module:model/DrawingRequest} + */ + DrawingRequest, + /** * The Element model constructor. * @property {module:model/Element} @@ -848,6 +863,12 @@ export { */ PatchedDocumentRequest, + /** + * The PatchedDrawingRequest model constructor. + * @property {module:model/PatchedDrawingRequest} + */ + PatchedDrawingRequest, + /** * The PatchedElementRequest model constructor. * @property {module:model/PatchedElementRequest} diff --git a/src/model/Drawing.js b/src/model/Drawing.js new file mode 100644 index 0000000..953cb2f --- /dev/null +++ b/src/model/Drawing.js @@ -0,0 +1,104 @@ +/** + * 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'; +import User from './User'; + +/** + * The Drawing model module. + * @module model/Drawing + * @version 0.0.0 + */ +class Drawing { + /** + * Constructs a new Drawing. + * @alias module:model/Drawing + * @param id {Number} + * @param content {String} + * @param creator {module:model/User} + * @param createdAt {Date} + */ + constructor(id, content, creator, createdAt) { + + Drawing.initialize(this, id, content, creator, createdAt); + } + + /** + * 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, id, content, creator, createdAt) { + obj['id'] = id; + obj['content'] = content; + obj['creator'] = creator; + obj['created_at'] = createdAt; + } + + /** + * Constructs a Drawing 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/Drawing} obj Optional instance to populate. + * @return {module:model/Drawing} The populated Drawing instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new Drawing(); + + if (data.hasOwnProperty('id')) { + obj['id'] = ApiClient.convertToType(data['id'], 'Number'); + } + if (data.hasOwnProperty('content')) { + obj['content'] = ApiClient.convertToType(data['content'], 'String'); + } + if (data.hasOwnProperty('creator')) { + obj['creator'] = ApiClient.convertToType(data['creator'], User); + } + if (data.hasOwnProperty('created_at')) { + obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date'); + } + } + return obj; + } + + +} + +/** + * @member {Number} id + */ +Drawing.prototype['id'] = undefined; + +/** + * @member {String} content + */ +Drawing.prototype['content'] = undefined; + +/** + * @member {module:model/User} creator + */ +Drawing.prototype['creator'] = undefined; + +/** + * @member {Date} created_at + */ +Drawing.prototype['created_at'] = undefined; + + + + + + +export default Drawing; + diff --git a/src/model/DrawingRequest.js b/src/model/DrawingRequest.js new file mode 100644 index 0000000..1ba6f14 --- /dev/null +++ b/src/model/DrawingRequest.js @@ -0,0 +1,73 @@ +/** + * 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 DrawingRequest model module. + * @module model/DrawingRequest + * @version 0.0.0 + */ +class DrawingRequest { + /** + * Constructs a new DrawingRequest. + * @alias module:model/DrawingRequest + * @param content {String} + */ + constructor(content) { + + DrawingRequest.initialize(this, content); + } + + /** + * 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, content) { + obj['content'] = content; + } + + /** + * Constructs a DrawingRequest 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/DrawingRequest} obj Optional instance to populate. + * @return {module:model/DrawingRequest} The populated DrawingRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new DrawingRequest(); + + if (data.hasOwnProperty('content')) { + obj['content'] = ApiClient.convertToType(data['content'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {String} content + */ +DrawingRequest.prototype['content'] = undefined; + + + + + + +export default DrawingRequest; + diff --git a/src/model/PatchedDrawingRequest.js b/src/model/PatchedDrawingRequest.js new file mode 100644 index 0000000..2463042 --- /dev/null +++ b/src/model/PatchedDrawingRequest.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 PatchedDrawingRequest model module. + * @module model/PatchedDrawingRequest + * @version 0.0.0 + */ +class PatchedDrawingRequest { + /** + * Constructs a new PatchedDrawingRequest. + * @alias module:model/PatchedDrawingRequest + */ + constructor() { + + PatchedDrawingRequest.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 PatchedDrawingRequest 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/PatchedDrawingRequest} obj Optional instance to populate. + * @return {module:model/PatchedDrawingRequest} The populated PatchedDrawingRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PatchedDrawingRequest(); + + if (data.hasOwnProperty('content')) { + obj['content'] = ApiClient.convertToType(data['content'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {String} content + */ +PatchedDrawingRequest.prototype['content'] = undefined; + + + + + + +export default PatchedDrawingRequest; + diff --git a/test/api/IfcApi.spec.js b/test/api/IfcApi.spec.js index c8ca8f1..a6deabf 100644 --- a/test/api/IfcApi.spec.js +++ b/test/api/IfcApi.spec.js @@ -238,6 +238,16 @@ done(); }); }); + describe('createDrawingDeprecated', function() { + it('should call createDrawingDeprecated successfully', function(done) { + //uncomment below and update the code to test createDrawingDeprecated + //instance.createDrawingDeprecated(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); describe('createElementDeprecated', function() { it('should call createElementDeprecated successfully', function(done) { //uncomment below and update the code to test createElementDeprecated @@ -488,6 +498,16 @@ done(); }); }); + describe('deleteDrawingDeprecated', function() { + it('should call deleteDrawingDeprecated successfully', function(done) { + //uncomment below and update the code to test deleteDrawingDeprecated + //instance.deleteDrawingDeprecated(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); describe('deleteElementDeprecated', function() { it('should call deleteElementDeprecated successfully', function(done) { //uncomment below and update the code to test deleteElementDeprecated @@ -718,6 +738,26 @@ done(); }); }); + describe('getDrawingDeprecated', function() { + it('should call getDrawingDeprecated successfully', function(done) { + //uncomment below and update the code to test getDrawingDeprecated + //instance.getDrawingDeprecated(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getDrawingsDeprecated', function() { + it('should call getDrawingsDeprecated successfully', function(done) { + //uncomment below and update the code to test getDrawingsDeprecated + //instance.getDrawingsDeprecated(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); describe('getElementDeprecated', function() { it('should call getElementDeprecated successfully', function(done) { //uncomment below and update the code to test getElementDeprecated @@ -1338,6 +1378,16 @@ done(); }); }); + describe('updateDrawingDeprecated', function() { + it('should call updateDrawingDeprecated successfully', function(done) { + //uncomment below and update the code to test updateDrawingDeprecated + //instance.updateDrawingDeprecated(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); describe('updateElementDeprecated', function() { it('should call updateElementDeprecated successfully', function(done) { //uncomment below and update the code to test updateElementDeprecated diff --git a/test/api/ModelApi.spec.js b/test/api/ModelApi.spec.js index 7eca21e..94fbbf7 100644 --- a/test/api/ModelApi.spec.js +++ b/test/api/ModelApi.spec.js @@ -238,6 +238,16 @@ done(); }); }); + describe('createDrawing', function() { + it('should call createDrawing successfully', function(done) { + //uncomment below and update the code to test createDrawing + //instance.createDrawing(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); describe('createElement', function() { it('should call createElement successfully', function(done) { //uncomment below and update the code to test createElement @@ -488,6 +498,16 @@ done(); }); }); + describe('deleteDrawing', function() { + it('should call deleteDrawing successfully', function(done) { + //uncomment below and update the code to test deleteDrawing + //instance.deleteDrawing(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); describe('deleteElement', function() { it('should call deleteElement successfully', function(done) { //uncomment below and update the code to test deleteElement @@ -718,6 +738,26 @@ done(); }); }); + describe('getDrawing', function() { + it('should call getDrawing successfully', function(done) { + //uncomment below and update the code to test getDrawing + //instance.getDrawing(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getDrawings', function() { + it('should call getDrawings successfully', function(done) { + //uncomment below and update the code to test getDrawings + //instance.getDrawings(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); describe('getElement', function() { it('should call getElement successfully', function(done) { //uncomment below and update the code to test getElement @@ -1338,6 +1378,16 @@ done(); }); }); + describe('updateDrawing', function() { + it('should call updateDrawing successfully', function(done) { + //uncomment below and update the code to test updateDrawing + //instance.updateDrawing(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); describe('updateElement', function() { it('should call updateElement successfully', function(done) { //uncomment below and update the code to test updateElement diff --git a/test/model/Drawing.spec.js b/test/model/Drawing.spec.js new file mode 100644 index 0000000..37ecdd4 --- /dev/null +++ b/test/model/Drawing.spec.js @@ -0,0 +1,83 @@ +/** + * 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.Drawing(); + }); + + 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('Drawing', function() { + it('should create an instance of Drawing', function() { + // uncomment below and update the code to test Drawing + //var instance = new bimdata.Drawing(); + //expect(instance).to.be.a(bimdata.Drawing); + }); + + 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.Drawing(); + //expect(instance).to.be(); + }); + + it('should have the property content (base name: "content")', function() { + // uncomment below and update the code to test the property content + //var instance = new bimdata.Drawing(); + //expect(instance).to.be(); + }); + + it('should have the property creator (base name: "creator")', function() { + // uncomment below and update the code to test the property creator + //var instance = new bimdata.Drawing(); + //expect(instance).to.be(); + }); + + it('should have the property createdAt (base name: "created_at")', function() { + // uncomment below and update the code to test the property createdAt + //var instance = new bimdata.Drawing(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/DrawingRequest.spec.js b/test/model/DrawingRequest.spec.js new file mode 100644 index 0000000..cae30c3 --- /dev/null +++ b/test/model/DrawingRequest.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.DrawingRequest(); + }); + + 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('DrawingRequest', function() { + it('should create an instance of DrawingRequest', function() { + // uncomment below and update the code to test DrawingRequest + //var instance = new bimdata.DrawingRequest(); + //expect(instance).to.be.a(bimdata.DrawingRequest); + }); + + it('should have the property content (base name: "content")', function() { + // uncomment below and update the code to test the property content + //var instance = new bimdata.DrawingRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PatchedDrawingRequest.spec.js b/test/model/PatchedDrawingRequest.spec.js new file mode 100644 index 0000000..c53682e --- /dev/null +++ b/test/model/PatchedDrawingRequest.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.PatchedDrawingRequest(); + }); + + 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('PatchedDrawingRequest', function() { + it('should create an instance of PatchedDrawingRequest', function() { + // uncomment below and update the code to test PatchedDrawingRequest + //var instance = new bimdata.PatchedDrawingRequest(); + //expect(instance).to.be.a(bimdata.PatchedDrawingRequest); + }); + + it('should have the property content (base name: "content")', function() { + // uncomment below and update the code to test the property content + //var instance = new bimdata.PatchedDrawingRequest(); + //expect(instance).to.be(); + }); + + }); + +}));