From f65b68394e715ddefaa54f2229a96a708b6d6a64 Mon Sep 17 00:00:00 2001 From: Github Actions Date: Tue, 27 Feb 2024 14:25:26 +0000 Subject: [PATCH] MAJOR: chore: remove deprecated ifc routes from doc (#725) --- package/.openapi-generator/FILES | 1 - package/src/apis/CollaborationApi.ts | 4 +- package/src/apis/IfcApi.ts | 11345 --------------------- package/src/apis/index.ts | 1 - package/src/models/WriteFolderRequest.ts | 16 +- 5 files changed, 10 insertions(+), 11357 deletions(-) delete mode 100644 package/src/apis/IfcApi.ts diff --git a/package/.openapi-generator/FILES b/package/.openapi-generator/FILES index 593b74e..935203d 100644 --- a/package/.openapi-generator/FILES +++ b/package/.openapi-generator/FILES @@ -2,7 +2,6 @@ package.json src/apis/BcfApi.ts src/apis/CollaborationApi.ts -src/apis/IfcApi.ts src/apis/ModelApi.ts src/apis/SsoApi.ts src/apis/WebhookApi.ts diff --git a/package/src/apis/CollaborationApi.ts b/package/src/apis/CollaborationApi.ts index f8f709c..cc6353c 100644 --- a/package/src/apis/CollaborationApi.ts +++ b/package/src/apis/CollaborationApi.ts @@ -1656,7 +1656,7 @@ export class CollaborationApi extends runtime.BaseAPI { } /** - * Create a document. If the document is one of {\'POINT_CLOUD\', \'OBJ\', \'IFC\', \'DXF\', \'GLTF\', \'DWG\'}, a model will be created and attached to this document Required scopes: document:write + * Create a document. If the document is one of {\'GLTF\', \'DXF\', \'IFC\', \'POINT_CLOUD\', \'DWG\', \'OBJ\'}, a model will be created and attached to this document Required scopes: document:write * Create a document */ async createDocumentRaw(requestParameters: CreateDocumentRequest, initOverrides?: RequestInit): Promise> { @@ -1759,7 +1759,7 @@ export class CollaborationApi extends runtime.BaseAPI { } /** - * Create a document. If the document is one of {\'POINT_CLOUD\', \'OBJ\', \'IFC\', \'DXF\', \'GLTF\', \'DWG\'}, a model will be created and attached to this document Required scopes: document:write + * Create a document. If the document is one of {\'GLTF\', \'DXF\', \'IFC\', \'POINT_CLOUD\', \'DWG\', \'OBJ\'}, a model will be created and attached to this document Required scopes: document:write * Create a document */ async createDocument(cloud_pk: number, project_pk: number, name: string, file: Blob, parent_id?: number | null, file_name?: string, description?: string | null, model_source?: CreateDocumentModelSourceEnum, ifc_source?: CreateDocumentIfcSourceEnum, successor_of?: number, initOverrides?: RequestInit): Promise { diff --git a/package/src/apis/IfcApi.ts b/package/src/apis/IfcApi.ts deleted file mode 100644 index 7d4a515..0000000 --- a/package/src/apis/IfcApi.ts +++ /dev/null @@ -1,11345 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * 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 * as runtime from '../runtime'; -import { - Building, - BuildingFromJSON, - BuildingToJSON, - BuildingModelPlanRequest, - BuildingModelPlanRequestFromJSON, - BuildingModelPlanRequestToJSON, - Classification, - ClassificationFromJSON, - ClassificationToJSON, - ClassificationRequest, - ClassificationRequestFromJSON, - ClassificationRequestToJSON, - CreateBuildingByNameRequest, - CreateBuildingByNameRequestFromJSON, - CreateBuildingByNameRequestToJSON, - CreateModelRequest, - CreateModelRequestFromJSON, - CreateModelRequestToJSON, - CreateMultiPageModelRequest, - CreateMultiPageModelRequestFromJSON, - CreateMultiPageModelRequestToJSON, - Document, - DocumentFromJSON, - DocumentToJSON, - DocumentWithElementList, - DocumentWithElementListFromJSON, - DocumentWithElementListToJSON, - Drawing, - DrawingFromJSON, - DrawingToJSON, - DrawingRequest, - DrawingRequestFromJSON, - DrawingRequestToJSON, - Element, - ElementFromJSON, - ElementToJSON, - ElementClassificationRelation, - ElementClassificationRelationFromJSON, - ElementClassificationRelationToJSON, - ElementClassificationRelationRequest, - ElementClassificationRelationRequestFromJSON, - ElementClassificationRelationRequestToJSON, - ElementPropertySetRelationRequest, - ElementPropertySetRelationRequestFromJSON, - ElementPropertySetRelationRequestToJSON, - ElementRequest, - ElementRequestFromJSON, - ElementRequestToJSON, - IfcAccessToken, - IfcAccessTokenFromJSON, - IfcAccessTokenToJSON, - IfcAccessTokenRequest, - IfcAccessTokenRequestFromJSON, - IfcAccessTokenRequestToJSON, - IfcExportRequest, - IfcExportRequestFromJSON, - IfcExportRequestToJSON, - IfcMergeRequest, - IfcMergeRequestFromJSON, - IfcMergeRequestToJSON, - IfcOptimizeRequest, - IfcOptimizeRequestFromJSON, - IfcOptimizeRequestToJSON, - Layer, - LayerFromJSON, - LayerToJSON, - LayerRequest, - LayerRequestFromJSON, - LayerRequestToJSON, - Material, - MaterialFromJSON, - MaterialToJSON, - Model, - ModelFromJSON, - ModelToJSON, - ModelErrors, - ModelErrorsFromJSON, - ModelErrorsToJSON, - ModelErrorsRequest, - ModelErrorsRequestFromJSON, - ModelErrorsRequestToJSON, - ModelFiles, - ModelFilesFromJSON, - ModelFilesToJSON, - PatchedDrawingRequest, - PatchedDrawingRequestFromJSON, - PatchedDrawingRequestToJSON, - PatchedElementRequest, - PatchedElementRequestFromJSON, - PatchedElementRequestToJSON, - PatchedIfcAccessTokenRequest, - PatchedIfcAccessTokenRequestFromJSON, - PatchedIfcAccessTokenRequestToJSON, - PatchedLayerRequest, - PatchedLayerRequestFromJSON, - PatchedLayerRequestToJSON, - PatchedModelRequest, - PatchedModelRequestFromJSON, - PatchedModelRequestToJSON, - PatchedPositioningPlanRequest, - PatchedPositioningPlanRequestFromJSON, - PatchedPositioningPlanRequestToJSON, - PatchedProcessorHandlerRequest, - PatchedProcessorHandlerRequestFromJSON, - PatchedProcessorHandlerRequestToJSON, - PatchedPropertyDefinitionRequest, - PatchedPropertyDefinitionRequestFromJSON, - PatchedPropertyDefinitionRequestToJSON, - PatchedPropertyRequest, - PatchedPropertyRequestFromJSON, - PatchedPropertyRequestToJSON, - PatchedPropertySetRequest, - PatchedPropertySetRequestFromJSON, - PatchedPropertySetRequestToJSON, - PatchedSpaceRequest, - PatchedSpaceRequestFromJSON, - PatchedSpaceRequestToJSON, - PatchedStoreyBuildingRequest, - PatchedStoreyBuildingRequestFromJSON, - PatchedStoreyBuildingRequestToJSON, - PatchedSystemRequest, - PatchedSystemRequestFromJSON, - PatchedSystemRequestToJSON, - PatchedUnitRequest, - PatchedUnitRequestFromJSON, - PatchedUnitRequestToJSON, - PatchedZoneRequest, - PatchedZoneRequestFromJSON, - PatchedZoneRequestToJSON, - PatchedZoneSpaceRequest, - PatchedZoneSpaceRequestFromJSON, - PatchedZoneSpaceRequestToJSON, - PositioningPlan, - PositioningPlanFromJSON, - PositioningPlanToJSON, - ProcessorHandler, - ProcessorHandlerFromJSON, - ProcessorHandlerToJSON, - Property, - PropertyFromJSON, - PropertyToJSON, - PropertyDefinition, - PropertyDefinitionFromJSON, - PropertyDefinitionToJSON, - PropertyDefinitionRequest, - PropertyDefinitionRequestFromJSON, - PropertyDefinitionRequestToJSON, - PropertyRequest, - PropertyRequestFromJSON, - PropertyRequestToJSON, - PropertySet, - PropertySetFromJSON, - PropertySetToJSON, - PropertySetRequest, - PropertySetRequestFromJSON, - PropertySetRequestToJSON, - RawElements, - RawElementsFromJSON, - RawElementsToJSON, - RawElementsRequest, - RawElementsRequestFromJSON, - RawElementsRequestToJSON, - SimpleElement, - SimpleElementFromJSON, - SimpleElementToJSON, - Space, - SpaceFromJSON, - SpaceToJSON, - SpaceRequest, - SpaceRequestFromJSON, - SpaceRequestToJSON, - Storey, - StoreyFromJSON, - StoreyToJSON, - StoreyBuildingRequest, - StoreyBuildingRequestFromJSON, - StoreyBuildingRequestToJSON, - StoreyModelPlanRequest, - StoreyModelPlanRequestFromJSON, - StoreyModelPlanRequestToJSON, - System, - SystemFromJSON, - SystemToJSON, - SystemRequest, - SystemRequestFromJSON, - SystemRequestToJSON, - Unit, - UnitFromJSON, - UnitToJSON, - UnitRequest, - UnitRequestFromJSON, - UnitRequestToJSON, - XktFile, - XktFileFromJSON, - XktFileToJSON, - Zone, - ZoneFromJSON, - ZoneToJSON, - ZoneRequest, - ZoneRequestFromJSON, - ZoneRequestToJSON, - ZoneSpace, - ZoneSpaceFromJSON, - ZoneSpaceToJSON, - ZoneSpaceRelationRequest, - ZoneSpaceRelationRequestFromJSON, - ZoneSpaceRelationRequestToJSON, - ZoneSpaceRequest, - ZoneSpaceRequestFromJSON, - ZoneSpaceRequestToJSON, -} from '../models'; - -export interface AddIfcErrorsDeprecatedRequest { - cloud_pk: number; - id: number; - project_pk: number; - ModelErrorsRequest?: ModelErrorsRequest; -} - -export interface AddZoneSpaceDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; - zone_pk: number; - ZoneSpaceRelationRequest: ZoneSpaceRelationRequest; -} - -export interface BulkDeleteIfcClassificationsDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; - ClassificationRequest?: ClassificationRequest; -} - -export interface BulkDeleteIfcPropertiesDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; - request_body: Array; -} - -export interface BulkDeleteIfcPropertyDefinitionsDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; - request_body: Array; -} - -export interface BulkDeleteIfcUnitsDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; - request_body: Array; -} - -export interface BulkDeletePropertySetDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; - request_body: Array; -} - -export interface BulkFullUpdateElementsDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; - ElementRequest: Array; - classification?: string; - classification__notation?: string; - type?: string; -} - -export interface BulkFullUpdateIfcPropertyDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; - PropertyRequest: Array; -} - -export interface BulkRemoveClassificationsOfElementDeprecatedRequest { - cloud_pk: number; - element_uuid: string; - ifc_pk: number; - project_pk: number; - request_body: Array; -} - -export interface BulkRemoveDocumentsOfElementDeprecatedRequest { - cloud_pk: number; - element_uuid: string; - ifc_pk: number; - project_pk: number; - request_body: Array; -} - -export interface BulkRemoveElementsFromClassificationDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - model_classification_pk: number; - project_pk: number; - request_body: Array; -} - -export interface BulkUpdateElementsDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; - ElementRequest: Array; - classification?: string; - classification__notation?: string; - type?: string; -} - -export interface BulkUpdateIfcPropertyDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; - PropertyRequest: Array; -} - -export interface CreateAccessTokenDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; - IfcAccessTokenRequest?: IfcAccessTokenRequest; -} - -export interface CreateBuildingDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; - StoreyBuildingRequest: StoreyBuildingRequest; -} - -export interface CreateBuildingPlanDeprecatedRequest { - building_uuid: string; - cloud_pk: number; - ifc_pk: number; - project_pk: number; - BuildingModelPlanRequest: BuildingModelPlanRequest; -} - -export interface CreateClassificationElementRelationsDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; - ElementClassificationRelationRequest: Array; -} - -export interface CreateClassificationsOfElementDeprecatedRequest { - cloud_pk: number; - element_uuid: string; - ifc_pk: number; - project_pk: number; - ClassificationRequest: Array; -} - -export interface CreateDrawingDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; - DrawingRequest: DrawingRequest; -} - -export interface CreateElementDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; - ElementRequest: Array; - classification?: string; - classification__notation?: string; - type?: string; -} - -export interface CreateElementPropertySetDeprecatedRequest { - cloud_pk: number; - element_uuid: string; - ifc_pk: number; - project_pk: number; - PropertySetRequest?: PropertySetRequest; -} - -export interface CreateElementPropertySetPropertyDefinitionDeprecatedRequest { - cloud_pk: number; - element_uuid: string; - ifc_pk: number; - project_pk: number; - property_pk: number; - propertyset_pk: number; - PropertyDefinitionRequest?: PropertyDefinitionRequest; -} - -export interface CreateElementPropertySetPropertyDefinitionUnitDeprecatedRequest { - cloud_pk: number; - element_uuid: string; - ifc_pk: number; - project_pk: number; - property_pk: number; - propertydefinition_pk: number; - propertyset_pk: number; - UnitRequest: UnitRequest; -} - -export interface CreateElementPropertySetPropertyDeprecatedRequest { - cloud_pk: number; - element_uuid: string; - ifc_pk: number; - project_pk: number; - propertyset_pk: number; - PropertyRequest: PropertyRequest; -} - -export interface CreateIfcDeprecatedRequest { - cloud_pk: number; - project_pk: number; - CreateModelRequest: CreateModelRequest; -} - -export interface CreateIfcPropertyDefinitionDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; - PropertyDefinitionRequest: Array; -} - -export interface CreateIfcUnitDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; - UnitRequest: Array; -} - -export interface CreateLayerDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; - LayerRequest: LayerRequest; -} - -export interface CreateMetaBuildingDeprecatedRequest { - cloud_pk: number; - project_pk: number; - CreateBuildingByNameRequest: CreateBuildingByNameRequest; -} - -export interface CreateMultiPageIfcDeprecatedRequest { - cloud_pk: number; - id: number; - project_pk: number; - CreateMultiPageModelRequest: CreateMultiPageModelRequest; -} - -export interface CreatePropertySetDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; - PropertySetRequest: Array; -} - -export interface CreatePropertySetElementRelationsDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; - ElementPropertySetRelationRequest: Array; -} - -export interface CreateRawElementsDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; - RawElementsRequest: RawElementsRequest; -} - -export interface CreateSpaceDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; - SpaceRequest: Array; -} - -export interface CreateStoreyDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; - StoreyBuildingRequest: StoreyBuildingRequest; -} - -export interface CreateStoreyPlanDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; - storey_uuid: string; - StoreyModelPlanRequest: StoreyModelPlanRequest; -} - -export interface CreateSystemDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; - SystemRequest: SystemRequest; -} - -export interface CreateTilesetDeprecatedRequest { - cloud_pk: number; - id: number; - project_pk: number; -} - -export interface CreateXktFileDeprecatedRequest { - cloud_pk: number; - id: number; - project_pk: number; - version: number; - file: Blob; -} - -export interface CreateZoneDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; - ZoneRequest: Array; - color?: string; -} - -export interface CreateZoneSpaceDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; - zone_pk: number; - ZoneSpaceRequest: ZoneSpaceRequest; -} - -export interface DeleteAccessTokenDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; - token: string; -} - -export interface DeleteBuildingDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; - uuid: string; -} - -export interface DeleteBuildingPlanDeprecatedRequest { - building_uuid: string; - cloud_pk: number; - id: number; - ifc_pk: number; - project_pk: number; -} - -export interface DeleteDrawingDeprecatedRequest { - cloud_pk: number; - id: number; - ifc_pk: number; - project_pk: number; -} - -export interface DeleteElementDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; - uuid: string; -} - -export interface DeleteIfcDeprecatedRequest { - cloud_pk: number; - id: number; - project_pk: number; -} - -export interface DeleteIfcPropertyDefinitionDeprecatedRequest { - cloud_pk: number; - id: number; - ifc_pk: number; - project_pk: number; -} - -export interface DeleteIfcPropertyDeprecatedRequest { - cloud_pk: number; - id: number; - ifc_pk: number; - project_pk: number; -} - -export interface DeleteIfcUnitDeprecatedRequest { - cloud_pk: number; - id: number; - ifc_pk: number; - project_pk: number; -} - -export interface DeleteIfcWithoutDocDeprecatedRequest { - cloud_pk: number; - id: number; - project_pk: number; -} - -export interface DeleteLayerDeprecatedRequest { - cloud_pk: number; - id: number; - ifc_pk: number; - project_pk: number; -} - -export interface DeletePropertySetDeprecatedRequest { - cloud_pk: number; - id: number; - ifc_pk: number; - project_pk: number; -} - -export interface DeleteSpaceDeprecatedRequest { - cloud_pk: number; - id: number; - ifc_pk: number; - project_pk: number; -} - -export interface DeleteStoreyDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; - uuid: string; -} - -export interface DeleteStoreyPlanDeprecatedRequest { - cloud_pk: number; - id: number; - ifc_pk: number; - project_pk: number; - storey_uuid: string; -} - -export interface DeleteSystemDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; - uuid: string; -} - -export interface DeleteZoneDeprecatedRequest { - cloud_pk: number; - id: number; - ifc_pk: number; - project_pk: number; -} - -export interface DeleteZoneSpaceDeprecatedRequest { - cloud_pk: number; - id: number; - ifc_pk: number; - project_pk: number; - zone_pk: number; -} - -export interface ExportIfcDeprecatedRequest { - cloud_pk: number; - id: number; - project_pk: number; - IfcExportRequest: IfcExportRequest; -} - -export interface FullUpdateElementDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; - uuid: string; - ElementRequest: ElementRequest; -} - -export interface GetAccessTokenDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; - token: string; -} - -export interface GetAccessTokensDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; -} - -export interface GetBuildingDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; - uuid: string; -} - -export interface GetBuildingPlanPositioningDeprecatedRequest { - building_uuid: string; - cloud_pk: number; - id: number; - ifc_pk: number; - project_pk: number; -} - -export interface GetBuildingsDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; -} - -export interface GetClassificationsOfElementDeprecatedRequest { - cloud_pk: number; - element_uuid: string; - ifc_pk: number; - project_pk: number; -} - -export interface GetDocumentsOfElementDeprecatedRequest { - cloud_pk: number; - element_uuid: string; - ifc_pk: number; - project_pk: number; -} - -export interface GetDrawingDeprecatedRequest { - cloud_pk: number; - id: number; - ifc_pk: number; - project_pk: number; -} - -export interface GetDrawingsDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; -} - -export interface GetElementDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; - uuid: string; -} - -export interface GetElementLinkedDocumentsDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; - classification?: string; - classification__notation?: string; - type?: string; -} - -export interface GetElementPropertySetDeprecatedRequest { - cloud_pk: number; - element_uuid: string; - id: number; - ifc_pk: number; - project_pk: number; -} - -export interface GetElementPropertySetPropertiesDeprecatedRequest { - cloud_pk: number; - element_uuid: string; - ifc_pk: number; - project_pk: number; - propertyset_pk: number; -} - -export interface GetElementPropertySetPropertyDefinitionDeprecatedRequest { - cloud_pk: number; - element_uuid: string; - id: number; - ifc_pk: number; - project_pk: number; - property_pk: number; - propertyset_pk: number; -} - -export interface GetElementPropertySetPropertyDefinitionUnitDeprecatedRequest { - cloud_pk: number; - element_uuid: string; - id: number; - ifc_pk: number; - project_pk: number; - property_pk: number; - propertydefinition_pk: number; - propertyset_pk: number; -} - -export interface GetElementPropertySetPropertyDefinitionUnitsDeprecatedRequest { - cloud_pk: number; - element_uuid: string; - ifc_pk: number; - project_pk: number; - property_pk: number; - propertydefinition_pk: number; - propertyset_pk: number; -} - -export interface GetElementPropertySetPropertyDefinitionsDeprecatedRequest { - cloud_pk: number; - element_uuid: string; - ifc_pk: number; - project_pk: number; - property_pk: number; - propertyset_pk: number; -} - -export interface GetElementPropertySetPropertyDeprecatedRequest { - cloud_pk: number; - element_uuid: string; - id: number; - ifc_pk: number; - project_pk: number; - propertyset_pk: number; -} - -export interface GetElementPropertySetsDeprecatedRequest { - cloud_pk: number; - element_uuid: string; - ifc_pk: number; - project_pk: number; -} - -export interface GetElementsDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; - classification?: string; - classification__notation?: string; - type?: string; -} - -export interface GetElementsFromClassificationDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - model_classification_pk: number; - project_pk: number; -} - -export interface GetIfcClassificationsDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; -} - -export interface GetIfcDeprecatedRequest { - cloud_pk: number; - id: number; - project_pk: number; -} - -export interface GetIfcMaterialDeprecatedRequest { - cloud_pk: number; - id: number; - ifc_pk: number; - project_pk: number; -} - -export interface GetIfcMaterialsDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; -} - -export interface GetIfcPropertiesDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; -} - -export interface GetIfcPropertyDefinitionDeprecatedRequest { - cloud_pk: number; - id: number; - ifc_pk: number; - project_pk: number; -} - -export interface GetIfcPropertyDefinitionsDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; -} - -export interface GetIfcPropertyDeprecatedRequest { - cloud_pk: number; - id: number; - ifc_pk: number; - project_pk: number; -} - -export interface GetIfcUnitDeprecatedRequest { - cloud_pk: number; - id: number; - ifc_pk: number; - project_pk: number; -} - -export interface GetIfcUnitsDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; -} - -export interface GetIfcsDeprecatedRequest { - cloud_pk: number; - project_pk: number; - source?: GetIfcsDeprecatedSourceEnum; - status?: Array; - type?: Array; -} - -export interface GetLayerDeprecatedRequest { - cloud_pk: number; - id: number; - ifc_pk: number; - project_pk: number; -} - -export interface GetLayersDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; -} - -export interface GetMaterialDeprecatedRequest { - cloud_pk: number; - element_uuid: string; - id: number; - ifc_pk: number; - project_pk: number; -} - -export interface GetMaterialsDeprecatedRequest { - cloud_pk: number; - element_uuid: string; - ifc_pk: number; - project_pk: number; -} - -export interface GetProcessorHandlerDeprecatedRequest { - cloud_pk: number; - id: number; - ifc_pk: number; - project_pk: number; -} - -export interface GetProcessorHandlersDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; -} - -export interface GetPropertySetDeprecatedRequest { - cloud_pk: number; - id: number; - ifc_pk: number; - project_pk: number; -} - -export interface GetPropertySetsDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; -} - -export interface GetRawElementsDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; -} - -export interface GetSimpleElementDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; - uuid: string; -} - -export interface GetSimpleElementsDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; -} - -export interface GetSpaceDeprecatedRequest { - cloud_pk: number; - id: number; - ifc_pk: number; - project_pk: number; -} - -export interface GetSpacesDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; -} - -export interface GetStoreyDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; - uuid: string; -} - -export interface GetStoreyPlanPositioningDeprecatedRequest { - cloud_pk: number; - id: number; - ifc_pk: number; - project_pk: number; - storey_uuid: string; -} - -export interface GetStoreysDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; -} - -export interface GetSystemDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; - uuid: string; -} - -export interface GetSystemsDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; -} - -export interface GetTilesetDeprecatedRequest { - cloud_pk: number; - id: number; - project_pk: number; - tile_format?: GetTilesetDeprecatedTileFormatEnum; -} - -export interface GetZoneDeprecatedRequest { - cloud_pk: number; - id: number; - ifc_pk: number; - project_pk: number; -} - -export interface GetZoneSpaceDeprecatedRequest { - cloud_pk: number; - id: number; - ifc_pk: number; - project_pk: number; - zone_pk: number; -} - -export interface GetZoneSpacesDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; - zone_pk: number; -} - -export interface GetZonesDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; - color?: string; -} - -export interface LinkDocumentsOfElementDeprecatedRequest { - cloud_pk: number; - element_uuid: string; - ifc_pk: number; - project_pk: number; - request_body: Array; -} - -export interface ListClassificationElementRelationsDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; -} - -export interface MergeIfcsDeprecatedRequest { - cloud_pk: number; - project_pk: number; - IfcMergeRequest: IfcMergeRequest; -} - -export interface OptimizeIfcDeprecatedRequest { - cloud_pk: number; - id: number; - project_pk: number; - IfcOptimizeRequest?: IfcOptimizeRequest; -} - -export interface RemoveAllElementPropertySetDeprecatedRequest { - cloud_pk: number; - element_uuid: string; - ifc_pk: number; - project_pk: number; -} - -export interface RemoveClassificationOfElementDeprecatedRequest { - cloud_pk: number; - element_uuid: string; - id: number; - ifc_pk: number; - project_pk: number; -} - -export interface RemoveDocumentOfElementDeprecatedRequest { - cloud_pk: number; - element_uuid: string; - id: number; - ifc_pk: number; - project_pk: number; -} - -export interface RemoveElementPropertySetDeprecatedRequest { - cloud_pk: number; - element_uuid: string; - id: number; - ifc_pk: number; - project_pk: number; -} - -export interface RemoveElementPropertySetPropertyDefinitionDeprecatedRequest { - cloud_pk: number; - element_uuid: string; - id: number; - ifc_pk: number; - project_pk: number; - property_pk: number; - propertyset_pk: number; -} - -export interface RemoveElementPropertySetPropertyDefinitionUnitDeprecatedRequest { - cloud_pk: number; - element_uuid: string; - id: number; - ifc_pk: number; - project_pk: number; - property_pk: number; - propertydefinition_pk: number; - propertyset_pk: number; -} - -export interface RemoveElementPropertySetPropertyDeprecatedRequest { - cloud_pk: number; - element_uuid: string; - id: number; - ifc_pk: number; - project_pk: number; - propertyset_pk: number; -} - -export interface RemoveElementsFromClassificationDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - model_classification_pk: number; - project_pk: number; - uuid: string; -} - -export interface ReprocessIfcDeprecatedRequest { - cloud_pk: number; - id: number; - project_pk: number; -} - -export interface UpdateAccessTokenDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; - token: string; - PatchedIfcAccessTokenRequest?: PatchedIfcAccessTokenRequest; -} - -export interface UpdateBuildingDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; - uuid: string; - PatchedStoreyBuildingRequest?: PatchedStoreyBuildingRequest; -} - -export interface UpdateBuildingPlanPositioningDeprecatedRequest { - building_uuid: string; - cloud_pk: number; - id: number; - ifc_pk: number; - project_pk: number; - PatchedPositioningPlanRequest?: PatchedPositioningPlanRequest; -} - -export interface UpdateDrawingDeprecatedRequest { - cloud_pk: number; - id: number; - ifc_pk: number; - project_pk: number; - PatchedDrawingRequest?: PatchedDrawingRequest; -} - -export interface UpdateElementDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; - uuid: string; - PatchedElementRequest?: PatchedElementRequest; -} - -export interface UpdateElementPropertySetPropertyDeprecatedRequest { - cloud_pk: number; - element_uuid: string; - id: number; - ifc_pk: number; - project_pk: number; - propertyset_pk: number; - PatchedPropertyRequest?: PatchedPropertyRequest; -} - -export interface UpdateIfcDeprecatedRequest { - cloud_pk: number; - id: number; - project_pk: number; - PatchedModelRequest?: PatchedModelRequest; -} - -export interface UpdateIfcFilesDeprecatedRequest { - cloud_pk: number; - id: number; - project_pk: number; - structure_file?: Blob | null; - systems_file?: Blob | null; - map_file?: Blob | null; - gltf_file?: Blob | null; - preview_file?: Blob | null; - xkt_file?: Blob | null; - binary_2d_file?: Blob | null; -} - -export interface UpdateIfcPropertyDefinitionDeprecatedRequest { - cloud_pk: number; - id: number; - ifc_pk: number; - project_pk: number; - PatchedPropertyDefinitionRequest?: PatchedPropertyDefinitionRequest; -} - -export interface UpdateIfcPropertyDeprecatedRequest { - cloud_pk: number; - id: number; - ifc_pk: number; - project_pk: number; - PatchedPropertyRequest?: PatchedPropertyRequest; -} - -export interface UpdateIfcUnitDeprecatedRequest { - cloud_pk: number; - id: number; - ifc_pk: number; - project_pk: number; - PatchedUnitRequest?: PatchedUnitRequest; -} - -export interface UpdateLayerDeprecatedRequest { - cloud_pk: number; - id: number; - ifc_pk: number; - project_pk: number; - PatchedLayerRequest?: PatchedLayerRequest; -} - -export interface UpdateOrderBuildingPlanDeprecatedRequest { - building_uuid: string; - cloud_pk: number; - ifc_pk: number; - project_pk: number; - request_body: Array; -} - -export interface UpdateOrderStoreyPlanDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; - storey_uuid: string; - request_body: Array; -} - -export interface UpdateOrderStoreysDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; - request_body: Array; -} - -export interface UpdateProcessorHandlerDeprecatedRequest { - cloud_pk: number; - id: number; - ifc_pk: number; - project_pk: number; - PatchedProcessorHandlerRequest?: PatchedProcessorHandlerRequest; -} - -export interface UpdatePropertySetDeprecatedRequest { - cloud_pk: number; - id: number; - ifc_pk: number; - project_pk: number; - PatchedPropertySetRequest?: PatchedPropertySetRequest; -} - -export interface UpdateSpaceDeprecatedRequest { - cloud_pk: number; - id: number; - ifc_pk: number; - project_pk: number; - PatchedSpaceRequest?: PatchedSpaceRequest; -} - -export interface UpdateStoreyDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; - uuid: string; - PatchedStoreyBuildingRequest?: PatchedStoreyBuildingRequest; -} - -export interface UpdateStoreyPlanPositioningDeprecatedRequest { - cloud_pk: number; - id: number; - ifc_pk: number; - project_pk: number; - storey_uuid: string; - PatchedPositioningPlanRequest?: PatchedPositioningPlanRequest; -} - -export interface UpdateSystemDeprecatedRequest { - cloud_pk: number; - ifc_pk: number; - project_pk: number; - uuid: string; - PatchedSystemRequest?: PatchedSystemRequest; -} - -export interface UpdateZoneDeprecatedRequest { - cloud_pk: number; - id: number; - ifc_pk: number; - project_pk: number; - PatchedZoneRequest?: PatchedZoneRequest; -} - -export interface UpdateZoneSpaceDeprecatedRequest { - cloud_pk: number; - id: number; - ifc_pk: number; - project_pk: number; - zone_pk: number; - PatchedZoneSpaceRequest?: PatchedZoneSpaceRequest; -} - -/** - * - */ -export class IfcApi extends runtime.BaseAPI { - - /** - * Model errors are warnings and errors during model process. They alert about missing elements or malformed files Required scopes: ifc:write, model:write - * Add errors to model - */ - async addIfcErrorsDeprecatedRaw(requestParameters: AddIfcErrorsDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling addIfcErrorsDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling addIfcErrorsDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling addIfcErrorsDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{id}/errors`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: ModelErrorsRequestToJSON(requestParameters.ModelErrorsRequest), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ModelErrorsFromJSON(jsonValue)); - } - - /** - * Model errors are warnings and errors during model process. They alert about missing elements or malformed files Required scopes: ifc:write, model:write - * Add errors to model - */ - async addIfcErrorsDeprecated(cloud_pk: number, id: number, project_pk: number, ModelErrorsRequest?: ModelErrorsRequest, initOverrides?: RequestInit): Promise { - const response = await this.addIfcErrorsDeprecatedRaw({ cloud_pk: cloud_pk, id: id, project_pk: project_pk, ModelErrorsRequest: ModelErrorsRequest }, initOverrides); - return await response.value(); - } - - /** - * Add a space to a zone. The IFC file will not be updated. The created space will be accessible over the API and when exporting an IFC file Required scopes: ifc:write, model:write - * Add a space to a zone - */ - async addZoneSpaceDeprecatedRaw(requestParameters: AddZoneSpaceDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling addZoneSpaceDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling addZoneSpaceDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling addZoneSpaceDeprecated.'); - } - - if (requestParameters.zone_pk === null || requestParameters.zone_pk === undefined) { - throw new runtime.RequiredError('zone_pk','Required parameter requestParameters.zone_pk was null or undefined when calling addZoneSpaceDeprecated.'); - } - - if (requestParameters.ZoneSpaceRelationRequest === null || requestParameters.ZoneSpaceRelationRequest === undefined) { - throw new runtime.RequiredError('ZoneSpaceRelationRequest','Required parameter requestParameters.ZoneSpaceRelationRequest was null or undefined when calling addZoneSpaceDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/zone/{zone_pk}/space/add`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))).replace(`{${"zone_pk"}}`, encodeURIComponent(String(requestParameters.zone_pk))), - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: ZoneSpaceRelationRequestToJSON(requestParameters.ZoneSpaceRelationRequest), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ZoneSpaceFromJSON(jsonValue)); - } - - /** - * Add a space to a zone. The IFC file will not be updated. The created space will be accessible over the API and when exporting an IFC file Required scopes: ifc:write, model:write - * Add a space to a zone - */ - async addZoneSpaceDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, zone_pk: number, ZoneSpaceRelationRequest: ZoneSpaceRelationRequest, initOverrides?: RequestInit): Promise { - const response = await this.addZoneSpaceDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk, zone_pk: zone_pk, ZoneSpaceRelationRequest: ZoneSpaceRelationRequest }, initOverrides); - return await response.value(); - } - - /** - * Delete relation between filtered classifications (eg. /classifications?name=untec) and all mode\'s elements. No classification will be deleted on this endpoint, only the relation between model\'s elements and their classification. Required scopes: ifc:write, model:write - * Remove all classifications from model\'s elements - */ - async bulkDeleteIfcClassificationsDeprecatedRaw(requestParameters: BulkDeleteIfcClassificationsDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling bulkDeleteIfcClassificationsDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling bulkDeleteIfcClassificationsDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling bulkDeleteIfcClassificationsDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/classification/list_destroy`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - body: ClassificationRequestToJSON(requestParameters.ClassificationRequest), - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - * Delete relation between filtered classifications (eg. /classifications?name=untec) and all mode\'s elements. No classification will be deleted on this endpoint, only the relation between model\'s elements and their classification. Required scopes: ifc:write, model:write - * Remove all classifications from model\'s elements - */ - async bulkDeleteIfcClassificationsDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, ClassificationRequest?: ClassificationRequest, initOverrides?: RequestInit): Promise { - await this.bulkDeleteIfcClassificationsDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk, ClassificationRequest: ClassificationRequest }, initOverrides); - } - - /** - * Bulk delete. You must send a list of ids in the body. These ids (or relations with these ids in case of many-to-many relation deletion) will be deleted Required scopes: ifc:write, model:write - * Delete many Property of a model - */ - async bulkDeleteIfcPropertiesDeprecatedRaw(requestParameters: BulkDeleteIfcPropertiesDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling bulkDeleteIfcPropertiesDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling bulkDeleteIfcPropertiesDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling bulkDeleteIfcPropertiesDeprecated.'); - } - - if (requestParameters.request_body === null || requestParameters.request_body === undefined) { - throw new runtime.RequiredError('request_body','Required parameter requestParameters.request_body was null or undefined when calling bulkDeleteIfcPropertiesDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/property/bulk_destroy`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - body: requestParameters.request_body, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - * Bulk delete. You must send a list of ids in the body. These ids (or relations with these ids in case of many-to-many relation deletion) will be deleted Required scopes: ifc:write, model:write - * Delete many Property of a model - */ - async bulkDeleteIfcPropertiesDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, request_body: Array, initOverrides?: RequestInit): Promise { - await this.bulkDeleteIfcPropertiesDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk, request_body: request_body }, initOverrides); - } - - /** - * Bulk delete. You must send a list of ids in the body. These ids (or relations with these ids in case of many-to-many relation deletion) will be deleted Required scopes: ifc:write, model:write - * Delete many PropertyDefinitions of a model - */ - async bulkDeleteIfcPropertyDefinitionsDeprecatedRaw(requestParameters: BulkDeleteIfcPropertyDefinitionsDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling bulkDeleteIfcPropertyDefinitionsDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling bulkDeleteIfcPropertyDefinitionsDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling bulkDeleteIfcPropertyDefinitionsDeprecated.'); - } - - if (requestParameters.request_body === null || requestParameters.request_body === undefined) { - throw new runtime.RequiredError('request_body','Required parameter requestParameters.request_body was null or undefined when calling bulkDeleteIfcPropertyDefinitionsDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/propertydefinition/bulk_destroy`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - body: requestParameters.request_body, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - * Bulk delete. You must send a list of ids in the body. These ids (or relations with these ids in case of many-to-many relation deletion) will be deleted Required scopes: ifc:write, model:write - * Delete many PropertyDefinitions of a model - */ - async bulkDeleteIfcPropertyDefinitionsDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, request_body: Array, initOverrides?: RequestInit): Promise { - await this.bulkDeleteIfcPropertyDefinitionsDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk, request_body: request_body }, initOverrides); - } - - /** - * Bulk delete. You must send a list of ids in the body. These ids (or relations with these ids in case of many-to-many relation deletion) will be deleted Required scopes: ifc:write, model:write - * Delete many Units of a model - */ - async bulkDeleteIfcUnitsDeprecatedRaw(requestParameters: BulkDeleteIfcUnitsDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling bulkDeleteIfcUnitsDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling bulkDeleteIfcUnitsDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling bulkDeleteIfcUnitsDeprecated.'); - } - - if (requestParameters.request_body === null || requestParameters.request_body === undefined) { - throw new runtime.RequiredError('request_body','Required parameter requestParameters.request_body was null or undefined when calling bulkDeleteIfcUnitsDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/unit/bulk_destroy`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - body: requestParameters.request_body, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - * Bulk delete. You must send a list of ids in the body. These ids (or relations with these ids in case of many-to-many relation deletion) will be deleted Required scopes: ifc:write, model:write - * Delete many Units of a model - */ - async bulkDeleteIfcUnitsDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, request_body: Array, initOverrides?: RequestInit): Promise { - await this.bulkDeleteIfcUnitsDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk, request_body: request_body }, initOverrides); - } - - /** - * Bulk delete. You must send a list of ids in the body. These ids (or relations with these ids in case of many-to-many relation deletion) will be deleted Required scopes: ifc:write, model:write - * Delete many PropertySet of a model - */ - async bulkDeletePropertySetDeprecatedRaw(requestParameters: BulkDeletePropertySetDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling bulkDeletePropertySetDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling bulkDeletePropertySetDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling bulkDeletePropertySetDeprecated.'); - } - - if (requestParameters.request_body === null || requestParameters.request_body === undefined) { - throw new runtime.RequiredError('request_body','Required parameter requestParameters.request_body was null or undefined when calling bulkDeletePropertySetDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/propertyset/bulk_destroy`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - body: requestParameters.request_body, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - * Bulk delete. You must send a list of ids in the body. These ids (or relations with these ids in case of many-to-many relation deletion) will be deleted Required scopes: ifc:write, model:write - * Delete many PropertySet of a model - */ - async bulkDeletePropertySetDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, request_body: Array, initOverrides?: RequestInit): Promise { - await this.bulkDeletePropertySetDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk, request_body: request_body }, initOverrides); - } - - /** - * Bulk update. Similar to update, but the body should be a list of objects to patch or put The response will be a list (in the same order) of updated objects or of errors if any If at least one update succeeded, the status code will be 200. If every update failed, the status code we\'ll be 400 with the list of errors Required scopes: ifc:write, model:write - * Update many elements at once (only changing fields may be defined) - */ - async bulkFullUpdateElementsDeprecatedRaw(requestParameters: BulkFullUpdateElementsDeprecatedRequest, initOverrides?: RequestInit): Promise>> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling bulkFullUpdateElementsDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling bulkFullUpdateElementsDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling bulkFullUpdateElementsDeprecated.'); - } - - if (requestParameters.ElementRequest === null || requestParameters.ElementRequest === undefined) { - throw new runtime.RequiredError('ElementRequest','Required parameter requestParameters.ElementRequest was null or undefined when calling bulkFullUpdateElementsDeprecated.'); - } - - const queryParameters: any = {}; - - if (requestParameters.classification !== undefined) { - queryParameters['classification'] = requestParameters.classification; - } - - if (requestParameters.classification__notation !== undefined) { - queryParameters['classification__notation'] = requestParameters.classification__notation; - } - - if (requestParameters.type !== undefined) { - queryParameters['type'] = requestParameters.type; - } - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/bulk_update`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'PATCH', - headers: headerParameters, - query: queryParameters, - body: requestParameters.ElementRequest.map(ElementRequestToJSON), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ElementFromJSON)); - } - - /** - * Bulk update. Similar to update, but the body should be a list of objects to patch or put The response will be a list (in the same order) of updated objects or of errors if any If at least one update succeeded, the status code will be 200. If every update failed, the status code we\'ll be 400 with the list of errors Required scopes: ifc:write, model:write - * Update many elements at once (only changing fields may be defined) - */ - async bulkFullUpdateElementsDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, ElementRequest: Array, classification?: string, classification__notation?: string, type?: string, initOverrides?: RequestInit): Promise> { - const response = await this.bulkFullUpdateElementsDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk, ElementRequest: ElementRequest, classification: classification, classification__notation: classification__notation, type: type }, initOverrides); - return await response.value(); - } - - /** - * Bulk update. Similar to update, but the body should be a list of objects to patch or put The response will be a list (in the same order) of updated objects or of errors if any If at least one update succeeded, the status code will be 200. If every update failed, the status code we\'ll be 400 with the list of errors Required scopes: ifc:write, model:write - * Update some fields of many properties of a model - */ - async bulkFullUpdateIfcPropertyDeprecatedRaw(requestParameters: BulkFullUpdateIfcPropertyDeprecatedRequest, initOverrides?: RequestInit): Promise>> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling bulkFullUpdateIfcPropertyDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling bulkFullUpdateIfcPropertyDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling bulkFullUpdateIfcPropertyDeprecated.'); - } - - if (requestParameters.PropertyRequest === null || requestParameters.PropertyRequest === undefined) { - throw new runtime.RequiredError('PropertyRequest','Required parameter requestParameters.PropertyRequest was null or undefined when calling bulkFullUpdateIfcPropertyDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/property/bulk_update`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'PATCH', - headers: headerParameters, - query: queryParameters, - body: requestParameters.PropertyRequest.map(PropertyRequestToJSON), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(PropertyFromJSON)); - } - - /** - * Bulk update. Similar to update, but the body should be a list of objects to patch or put The response will be a list (in the same order) of updated objects or of errors if any If at least one update succeeded, the status code will be 200. If every update failed, the status code we\'ll be 400 with the list of errors Required scopes: ifc:write, model:write - * Update some fields of many properties of a model - */ - async bulkFullUpdateIfcPropertyDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, PropertyRequest: Array, initOverrides?: RequestInit): Promise> { - const response = await this.bulkFullUpdateIfcPropertyDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk, PropertyRequest: PropertyRequest }, initOverrides); - return await response.value(); - } - - /** - * Bulk delete. You must send a list of ids in the body. These ids (or relations with these ids in case of many-to-many relation deletion) will be deleted Required scopes: ifc:write, model:write - * Remove many classifications from an element - */ - async bulkRemoveClassificationsOfElementDeprecatedRaw(requestParameters: BulkRemoveClassificationsOfElementDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling bulkRemoveClassificationsOfElementDeprecated.'); - } - - if (requestParameters.element_uuid === null || requestParameters.element_uuid === undefined) { - throw new runtime.RequiredError('element_uuid','Required parameter requestParameters.element_uuid was null or undefined when calling bulkRemoveClassificationsOfElementDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling bulkRemoveClassificationsOfElementDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling bulkRemoveClassificationsOfElementDeprecated.'); - } - - if (requestParameters.request_body === null || requestParameters.request_body === undefined) { - throw new runtime.RequiredError('request_body','Required parameter requestParameters.request_body was null or undefined when calling bulkRemoveClassificationsOfElementDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{element_uuid}/classification/bulk_destroy`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"element_uuid"}}`, encodeURIComponent(String(requestParameters.element_uuid))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - body: requestParameters.request_body, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - * Bulk delete. You must send a list of ids in the body. These ids (or relations with these ids in case of many-to-many relation deletion) will be deleted Required scopes: ifc:write, model:write - * Remove many classifications from an element - */ - async bulkRemoveClassificationsOfElementDeprecated(cloud_pk: number, element_uuid: string, ifc_pk: number, project_pk: number, request_body: Array, initOverrides?: RequestInit): Promise { - await this.bulkRemoveClassificationsOfElementDeprecatedRaw({ cloud_pk: cloud_pk, element_uuid: element_uuid, ifc_pk: ifc_pk, project_pk: project_pk, request_body: request_body }, initOverrides); - } - - /** - * Bulk delete. You must send a list of ids in the body. These ids (or relations with these ids in case of many-to-many relation deletion) will be deleted Required scopes: ifc:write, model:write - * Remove many documents from an element - */ - async bulkRemoveDocumentsOfElementDeprecatedRaw(requestParameters: BulkRemoveDocumentsOfElementDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling bulkRemoveDocumentsOfElementDeprecated.'); - } - - if (requestParameters.element_uuid === null || requestParameters.element_uuid === undefined) { - throw new runtime.RequiredError('element_uuid','Required parameter requestParameters.element_uuid was null or undefined when calling bulkRemoveDocumentsOfElementDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling bulkRemoveDocumentsOfElementDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling bulkRemoveDocumentsOfElementDeprecated.'); - } - - if (requestParameters.request_body === null || requestParameters.request_body === undefined) { - throw new runtime.RequiredError('request_body','Required parameter requestParameters.request_body was null or undefined when calling bulkRemoveDocumentsOfElementDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{element_uuid}/documents/bulk_destroy`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"element_uuid"}}`, encodeURIComponent(String(requestParameters.element_uuid))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - body: requestParameters.request_body, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - * Bulk delete. You must send a list of ids in the body. These ids (or relations with these ids in case of many-to-many relation deletion) will be deleted Required scopes: ifc:write, model:write - * Remove many documents from an element - */ - async bulkRemoveDocumentsOfElementDeprecated(cloud_pk: number, element_uuid: string, ifc_pk: number, project_pk: number, request_body: Array, initOverrides?: RequestInit): Promise { - await this.bulkRemoveDocumentsOfElementDeprecatedRaw({ cloud_pk: cloud_pk, element_uuid: element_uuid, ifc_pk: ifc_pk, project_pk: project_pk, request_body: request_body }, initOverrides); - } - - /** - * Bulk delete. You must send a list of ids in the body. These ids (or relations with these ids in case of many-to-many relation deletion) will be deleted Required scopes: ifc:write, model:write - * Remove the classifications from all elements - */ - async bulkRemoveElementsFromClassificationDeprecatedRaw(requestParameters: BulkRemoveElementsFromClassificationDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling bulkRemoveElementsFromClassificationDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling bulkRemoveElementsFromClassificationDeprecated.'); - } - - if (requestParameters.model_classification_pk === null || requestParameters.model_classification_pk === undefined) { - throw new runtime.RequiredError('model_classification_pk','Required parameter requestParameters.model_classification_pk was null or undefined when calling bulkRemoveElementsFromClassificationDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling bulkRemoveElementsFromClassificationDeprecated.'); - } - - if (requestParameters.request_body === null || requestParameters.request_body === undefined) { - throw new runtime.RequiredError('request_body','Required parameter requestParameters.request_body was null or undefined when calling bulkRemoveElementsFromClassificationDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/classification/{model_classification_pk}/element/bulk_destroy`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"model_classification_pk"}}`, encodeURIComponent(String(requestParameters.model_classification_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - body: requestParameters.request_body, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - * Bulk delete. You must send a list of ids in the body. These ids (or relations with these ids in case of many-to-many relation deletion) will be deleted Required scopes: ifc:write, model:write - * Remove the classifications from all elements - */ - async bulkRemoveElementsFromClassificationDeprecated(cloud_pk: number, ifc_pk: number, model_classification_pk: number, project_pk: number, request_body: Array, initOverrides?: RequestInit): Promise { - await this.bulkRemoveElementsFromClassificationDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, model_classification_pk: model_classification_pk, project_pk: project_pk, request_body: request_body }, initOverrides); - } - - /** - * Bulk update. Similar to update, but the body should be a list of objects to patch or put The response will be a list (in the same order) of updated objects or of errors if any If at least one update succeeded, the status code will be 200. If every update failed, the status code we\'ll be 400 with the list of errors Required scopes: ifc:write, model:write - * Update many elements at once (all field must be defined) - */ - async bulkUpdateElementsDeprecatedRaw(requestParameters: BulkUpdateElementsDeprecatedRequest, initOverrides?: RequestInit): Promise>> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling bulkUpdateElementsDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling bulkUpdateElementsDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling bulkUpdateElementsDeprecated.'); - } - - if (requestParameters.ElementRequest === null || requestParameters.ElementRequest === undefined) { - throw new runtime.RequiredError('ElementRequest','Required parameter requestParameters.ElementRequest was null or undefined when calling bulkUpdateElementsDeprecated.'); - } - - const queryParameters: any = {}; - - if (requestParameters.classification !== undefined) { - queryParameters['classification'] = requestParameters.classification; - } - - if (requestParameters.classification__notation !== undefined) { - queryParameters['classification__notation'] = requestParameters.classification__notation; - } - - if (requestParameters.type !== undefined) { - queryParameters['type'] = requestParameters.type; - } - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/bulk_update`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'PUT', - headers: headerParameters, - query: queryParameters, - body: requestParameters.ElementRequest.map(ElementRequestToJSON), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ElementFromJSON)); - } - - /** - * Bulk update. Similar to update, but the body should be a list of objects to patch or put The response will be a list (in the same order) of updated objects or of errors if any If at least one update succeeded, the status code will be 200. If every update failed, the status code we\'ll be 400 with the list of errors Required scopes: ifc:write, model:write - * Update many elements at once (all field must be defined) - */ - async bulkUpdateElementsDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, ElementRequest: Array, classification?: string, classification__notation?: string, type?: string, initOverrides?: RequestInit): Promise> { - const response = await this.bulkUpdateElementsDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk, ElementRequest: ElementRequest, classification: classification, classification__notation: classification__notation, type: type }, initOverrides); - return await response.value(); - } - - /** - * Bulk update. Similar to update, but the body should be a list of objects to patch or put The response will be a list (in the same order) of updated objects or of errors if any If at least one update succeeded, the status code will be 200. If every update failed, the status code we\'ll be 400 with the list of errors - * Update all fields of many properties of a model - */ - async bulkUpdateIfcPropertyDeprecatedRaw(requestParameters: BulkUpdateIfcPropertyDeprecatedRequest, initOverrides?: RequestInit): Promise>> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling bulkUpdateIfcPropertyDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling bulkUpdateIfcPropertyDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling bulkUpdateIfcPropertyDeprecated.'); - } - - if (requestParameters.PropertyRequest === null || requestParameters.PropertyRequest === undefined) { - throw new runtime.RequiredError('PropertyRequest','Required parameter requestParameters.PropertyRequest was null or undefined when calling bulkUpdateIfcPropertyDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/property/bulk_update`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'PUT', - headers: headerParameters, - query: queryParameters, - body: requestParameters.PropertyRequest.map(PropertyRequestToJSON), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(PropertyFromJSON)); - } - - /** - * Bulk update. Similar to update, but the body should be a list of objects to patch or put The response will be a list (in the same order) of updated objects or of errors if any If at least one update succeeded, the status code will be 200. If every update failed, the status code we\'ll be 400 with the list of errors - * Update all fields of many properties of a model - */ - async bulkUpdateIfcPropertyDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, PropertyRequest: Array, initOverrides?: RequestInit): Promise> { - const response = await this.bulkUpdateIfcPropertyDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk, PropertyRequest: PropertyRequest }, initOverrides); - return await response.value(); - } - - /** - * DEPECRATED: Use ProjectAccessToken instead Required scopes: ifc:token_manage, model:token_manage - * Create a token for this model - */ - async createAccessTokenDeprecatedRaw(requestParameters: CreateAccessTokenDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling createAccessTokenDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling createAccessTokenDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling createAccessTokenDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/access_token`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: IfcAccessTokenRequestToJSON(requestParameters.IfcAccessTokenRequest), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => IfcAccessTokenFromJSON(jsonValue)); - } - - /** - * DEPECRATED: Use ProjectAccessToken instead Required scopes: ifc:token_manage, model:token_manage - * Create a token for this model - */ - async createAccessTokenDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, IfcAccessTokenRequest?: IfcAccessTokenRequest, initOverrides?: RequestInit): Promise { - const response = await this.createAccessTokenDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk, IfcAccessTokenRequest: IfcAccessTokenRequest }, initOverrides); - return await response.value(); - } - - /** - * Create a building of a model. Required scopes: ifc:write, model:write - * Create a building of a model - */ - async createBuildingDeprecatedRaw(requestParameters: CreateBuildingDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling createBuildingDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling createBuildingDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling createBuildingDeprecated.'); - } - - if (requestParameters.StoreyBuildingRequest === null || requestParameters.StoreyBuildingRequest === undefined) { - throw new runtime.RequiredError('StoreyBuildingRequest','Required parameter requestParameters.StoreyBuildingRequest was null or undefined when calling createBuildingDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/building`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: StoreyBuildingRequestToJSON(requestParameters.StoreyBuildingRequest), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => BuildingFromJSON(jsonValue)); - } - - /** - * Create a building of a model. Required scopes: ifc:write, model:write - * Create a building of a model - */ - async createBuildingDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, StoreyBuildingRequest: StoreyBuildingRequest, initOverrides?: RequestInit): Promise { - const response = await this.createBuildingDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk, StoreyBuildingRequest: StoreyBuildingRequest }, initOverrides); - return await response.value(); - } - - /** - * Create a relation between a 2d model and a building. The model type must be one of : (\'DWG\', \'DXF\', \'PDF\', \'JPEG\', \'PNG\') Required scopes: ifc:write, model:write - * Create a relation between a 2d model and a building - */ - async createBuildingPlanDeprecatedRaw(requestParameters: CreateBuildingPlanDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.building_uuid === null || requestParameters.building_uuid === undefined) { - throw new runtime.RequiredError('building_uuid','Required parameter requestParameters.building_uuid was null or undefined when calling createBuildingPlanDeprecated.'); - } - - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling createBuildingPlanDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling createBuildingPlanDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling createBuildingPlanDeprecated.'); - } - - if (requestParameters.BuildingModelPlanRequest === null || requestParameters.BuildingModelPlanRequest === undefined) { - throw new runtime.RequiredError('BuildingModelPlanRequest','Required parameter requestParameters.BuildingModelPlanRequest was null or undefined when calling createBuildingPlanDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/building/{building_uuid}/plan/add`.replace(`{${"building_uuid"}}`, encodeURIComponent(String(requestParameters.building_uuid))).replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: BuildingModelPlanRequestToJSON(requestParameters.BuildingModelPlanRequest), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => BuildingFromJSON(jsonValue)); - } - - /** - * Create a relation between a 2d model and a building. The model type must be one of : (\'DWG\', \'DXF\', \'PDF\', \'JPEG\', \'PNG\') Required scopes: ifc:write, model:write - * Create a relation between a 2d model and a building - */ - async createBuildingPlanDeprecated(building_uuid: string, cloud_pk: number, ifc_pk: number, project_pk: number, BuildingModelPlanRequest: BuildingModelPlanRequest, initOverrides?: RequestInit): Promise { - const response = await this.createBuildingPlanDeprecatedRaw({ building_uuid: building_uuid, cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk, BuildingModelPlanRequest: BuildingModelPlanRequest }, initOverrides); - return await response.value(); - } - - /** - * Create association between existing classification and existing element Required scopes: ifc:write, model:write - * Create association between existing classification and existing element - */ - async createClassificationElementRelationsDeprecatedRaw(requestParameters: CreateClassificationElementRelationsDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling createClassificationElementRelationsDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling createClassificationElementRelationsDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling createClassificationElementRelationsDeprecated.'); - } - - if (requestParameters.ElementClassificationRelationRequest === null || requestParameters.ElementClassificationRelationRequest === undefined) { - throw new runtime.RequiredError('ElementClassificationRelationRequest','Required parameter requestParameters.ElementClassificationRelationRequest was null or undefined when calling createClassificationElementRelationsDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/classification-element`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: requestParameters.ElementClassificationRelationRequest.map(ElementClassificationRelationRequestToJSON), - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - * Create association between existing classification and existing element Required scopes: ifc:write, model:write - * Create association between existing classification and existing element - */ - async createClassificationElementRelationsDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, ElementClassificationRelationRequest: Array, initOverrides?: RequestInit): Promise { - await this.createClassificationElementRelationsDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk, ElementClassificationRelationRequest: ElementClassificationRelationRequest }, initOverrides); - } - - /** - * 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 If classification created already exists, it will just be added to item\'s classifications and will not be duplicated Required scopes: ifc:write, model:write - * Create one or many classifications to an element - */ - async createClassificationsOfElementDeprecatedRaw(requestParameters: CreateClassificationsOfElementDeprecatedRequest, initOverrides?: RequestInit): Promise>> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling createClassificationsOfElementDeprecated.'); - } - - if (requestParameters.element_uuid === null || requestParameters.element_uuid === undefined) { - throw new runtime.RequiredError('element_uuid','Required parameter requestParameters.element_uuid was null or undefined when calling createClassificationsOfElementDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling createClassificationsOfElementDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling createClassificationsOfElementDeprecated.'); - } - - if (requestParameters.ClassificationRequest === null || requestParameters.ClassificationRequest === undefined) { - throw new runtime.RequiredError('ClassificationRequest','Required parameter requestParameters.ClassificationRequest was null or undefined when calling createClassificationsOfElementDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{element_uuid}/classification`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"element_uuid"}}`, encodeURIComponent(String(requestParameters.element_uuid))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: requestParameters.ClassificationRequest.map(ClassificationRequestToJSON), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ClassificationFromJSON)); - } - - /** - * 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 If classification created already exists, it will just be added to item\'s classifications and will not be duplicated Required scopes: ifc:write, model:write - * Create one or many classifications to an element - */ - async createClassificationsOfElementDeprecated(cloud_pk: number, element_uuid: string, ifc_pk: number, project_pk: number, ClassificationRequest: Array, initOverrides?: RequestInit): Promise> { - const response = await this.createClassificationsOfElementDeprecatedRaw({ cloud_pk: cloud_pk, element_uuid: element_uuid, ifc_pk: ifc_pk, project_pk: project_pk, ClassificationRequest: ClassificationRequest }, initOverrides); - return await response.value(); - } - - /** - * Create a drawing in the model Required scopes: model:write - * Create a drawing in the model - */ - async createDrawingDeprecatedRaw(requestParameters: CreateDrawingDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling createDrawingDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling createDrawingDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling createDrawingDeprecated.'); - } - - if (requestParameters.DrawingRequest === null || requestParameters.DrawingRequest === undefined) { - throw new runtime.RequiredError('DrawingRequest','Required parameter requestParameters.DrawingRequest was null or undefined when calling createDrawingDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/drawing`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: DrawingRequestToJSON(requestParameters.DrawingRequest), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => DrawingFromJSON(jsonValue)); - } - - /** - * Create a drawing in the model Required scopes: model:write - * Create a drawing in the model - */ - async createDrawingDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, DrawingRequest: DrawingRequest, initOverrides?: RequestInit): Promise { - const response = await this.createDrawingDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk, DrawingRequest: DrawingRequest }, initOverrides); - return await response.value(); - } - - /** - * 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 - * Create an element in the model - */ - async createElementDeprecatedRaw(requestParameters: CreateElementDeprecatedRequest, initOverrides?: RequestInit): Promise>> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling createElementDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling createElementDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling createElementDeprecated.'); - } - - if (requestParameters.ElementRequest === null || requestParameters.ElementRequest === undefined) { - throw new runtime.RequiredError('ElementRequest','Required parameter requestParameters.ElementRequest was null or undefined when calling createElementDeprecated.'); - } - - const queryParameters: any = {}; - - if (requestParameters.classification !== undefined) { - queryParameters['classification'] = requestParameters.classification; - } - - if (requestParameters.classification__notation !== undefined) { - queryParameters['classification__notation'] = requestParameters.classification__notation; - } - - if (requestParameters.type !== undefined) { - queryParameters['type'] = requestParameters.type; - } - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: requestParameters.ElementRequest.map(ElementRequestToJSON), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ElementFromJSON)); - } - - /** - * 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 - * Create an element in the model - */ - async createElementDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, ElementRequest: Array, classification?: string, classification__notation?: string, type?: string, initOverrides?: RequestInit): Promise> { - const response = await this.createElementDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk, ElementRequest: ElementRequest, classification: classification, classification__notation: classification__notation, type: type }, initOverrides); - return await response.value(); - } - - /** - * Create a PropertySets that will be automatically linked to the element Required scopes: ifc:write, model:write - * Create a PropertySets to an element - */ - async createElementPropertySetDeprecatedRaw(requestParameters: CreateElementPropertySetDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling createElementPropertySetDeprecated.'); - } - - if (requestParameters.element_uuid === null || requestParameters.element_uuid === undefined) { - throw new runtime.RequiredError('element_uuid','Required parameter requestParameters.element_uuid was null or undefined when calling createElementPropertySetDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling createElementPropertySetDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling createElementPropertySetDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{element_uuid}/propertyset`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"element_uuid"}}`, encodeURIComponent(String(requestParameters.element_uuid))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: PropertySetRequestToJSON(requestParameters.PropertySetRequest), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => PropertySetFromJSON(jsonValue)); - } - - /** - * Create a PropertySets that will be automatically linked to the element Required scopes: ifc:write, model:write - * Create a PropertySets to an element - */ - async createElementPropertySetDeprecated(cloud_pk: number, element_uuid: string, ifc_pk: number, project_pk: number, PropertySetRequest?: PropertySetRequest, initOverrides?: RequestInit): Promise { - const response = await this.createElementPropertySetDeprecatedRaw({ cloud_pk: cloud_pk, element_uuid: element_uuid, ifc_pk: ifc_pk, project_pk: project_pk, PropertySetRequest: PropertySetRequest }, initOverrides); - return await response.value(); - } - - /** - * Create a Definition to a Property Required scopes: ifc:write, model:write - * Create a Definition to a Property - */ - async createElementPropertySetPropertyDefinitionDeprecatedRaw(requestParameters: CreateElementPropertySetPropertyDefinitionDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling createElementPropertySetPropertyDefinitionDeprecated.'); - } - - if (requestParameters.element_uuid === null || requestParameters.element_uuid === undefined) { - throw new runtime.RequiredError('element_uuid','Required parameter requestParameters.element_uuid was null or undefined when calling createElementPropertySetPropertyDefinitionDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling createElementPropertySetPropertyDefinitionDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling createElementPropertySetPropertyDefinitionDeprecated.'); - } - - if (requestParameters.property_pk === null || requestParameters.property_pk === undefined) { - throw new runtime.RequiredError('property_pk','Required parameter requestParameters.property_pk was null or undefined when calling createElementPropertySetPropertyDefinitionDeprecated.'); - } - - if (requestParameters.propertyset_pk === null || requestParameters.propertyset_pk === undefined) { - throw new runtime.RequiredError('propertyset_pk','Required parameter requestParameters.propertyset_pk was null or undefined when calling createElementPropertySetPropertyDefinitionDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{element_uuid}/propertyset/{propertyset_pk}/property/{property_pk}/propertydefinition`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"element_uuid"}}`, encodeURIComponent(String(requestParameters.element_uuid))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))).replace(`{${"property_pk"}}`, encodeURIComponent(String(requestParameters.property_pk))).replace(`{${"propertyset_pk"}}`, encodeURIComponent(String(requestParameters.propertyset_pk))), - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: PropertyDefinitionRequestToJSON(requestParameters.PropertyDefinitionRequest), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => PropertyDefinitionFromJSON(jsonValue)); - } - - /** - * Create a Definition to a Property Required scopes: ifc:write, model:write - * Create a Definition to a Property - */ - async createElementPropertySetPropertyDefinitionDeprecated(cloud_pk: number, element_uuid: string, ifc_pk: number, project_pk: number, property_pk: number, propertyset_pk: number, PropertyDefinitionRequest?: PropertyDefinitionRequest, initOverrides?: RequestInit): Promise { - const response = await this.createElementPropertySetPropertyDefinitionDeprecatedRaw({ cloud_pk: cloud_pk, element_uuid: element_uuid, ifc_pk: ifc_pk, project_pk: project_pk, property_pk: property_pk, propertyset_pk: propertyset_pk, PropertyDefinitionRequest: PropertyDefinitionRequest }, initOverrides); - return await response.value(); - } - - /** - * Create a Unit to a Definition Required scopes: ifc:write, model:write - * Create a Unit to a Definition - */ - async createElementPropertySetPropertyDefinitionUnitDeprecatedRaw(requestParameters: CreateElementPropertySetPropertyDefinitionUnitDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling createElementPropertySetPropertyDefinitionUnitDeprecated.'); - } - - if (requestParameters.element_uuid === null || requestParameters.element_uuid === undefined) { - throw new runtime.RequiredError('element_uuid','Required parameter requestParameters.element_uuid was null or undefined when calling createElementPropertySetPropertyDefinitionUnitDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling createElementPropertySetPropertyDefinitionUnitDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling createElementPropertySetPropertyDefinitionUnitDeprecated.'); - } - - if (requestParameters.property_pk === null || requestParameters.property_pk === undefined) { - throw new runtime.RequiredError('property_pk','Required parameter requestParameters.property_pk was null or undefined when calling createElementPropertySetPropertyDefinitionUnitDeprecated.'); - } - - if (requestParameters.propertydefinition_pk === null || requestParameters.propertydefinition_pk === undefined) { - throw new runtime.RequiredError('propertydefinition_pk','Required parameter requestParameters.propertydefinition_pk was null or undefined when calling createElementPropertySetPropertyDefinitionUnitDeprecated.'); - } - - if (requestParameters.propertyset_pk === null || requestParameters.propertyset_pk === undefined) { - throw new runtime.RequiredError('propertyset_pk','Required parameter requestParameters.propertyset_pk was null or undefined when calling createElementPropertySetPropertyDefinitionUnitDeprecated.'); - } - - if (requestParameters.UnitRequest === null || requestParameters.UnitRequest === undefined) { - throw new runtime.RequiredError('UnitRequest','Required parameter requestParameters.UnitRequest was null or undefined when calling createElementPropertySetPropertyDefinitionUnitDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{element_uuid}/propertyset/{propertyset_pk}/property/{property_pk}/propertydefinition/{propertydefinition_pk}/unit`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"element_uuid"}}`, encodeURIComponent(String(requestParameters.element_uuid))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))).replace(`{${"property_pk"}}`, encodeURIComponent(String(requestParameters.property_pk))).replace(`{${"propertydefinition_pk"}}`, encodeURIComponent(String(requestParameters.propertydefinition_pk))).replace(`{${"propertyset_pk"}}`, encodeURIComponent(String(requestParameters.propertyset_pk))), - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: UnitRequestToJSON(requestParameters.UnitRequest), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => UnitFromJSON(jsonValue)); - } - - /** - * Create a Unit to a Definition Required scopes: ifc:write, model:write - * Create a Unit to a Definition - */ - async createElementPropertySetPropertyDefinitionUnitDeprecated(cloud_pk: number, element_uuid: string, ifc_pk: number, project_pk: number, property_pk: number, propertydefinition_pk: number, propertyset_pk: number, UnitRequest: UnitRequest, initOverrides?: RequestInit): Promise { - const response = await this.createElementPropertySetPropertyDefinitionUnitDeprecatedRaw({ cloud_pk: cloud_pk, element_uuid: element_uuid, ifc_pk: ifc_pk, project_pk: project_pk, property_pk: property_pk, propertydefinition_pk: propertydefinition_pk, propertyset_pk: propertyset_pk, UnitRequest: UnitRequest }, initOverrides); - return await response.value(); - } - - /** - * Create a property to a PropertySet Required scopes: ifc:write, model:write - * Create a property to a PropertySet - */ - async createElementPropertySetPropertyDeprecatedRaw(requestParameters: CreateElementPropertySetPropertyDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling createElementPropertySetPropertyDeprecated.'); - } - - if (requestParameters.element_uuid === null || requestParameters.element_uuid === undefined) { - throw new runtime.RequiredError('element_uuid','Required parameter requestParameters.element_uuid was null or undefined when calling createElementPropertySetPropertyDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling createElementPropertySetPropertyDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling createElementPropertySetPropertyDeprecated.'); - } - - if (requestParameters.propertyset_pk === null || requestParameters.propertyset_pk === undefined) { - throw new runtime.RequiredError('propertyset_pk','Required parameter requestParameters.propertyset_pk was null or undefined when calling createElementPropertySetPropertyDeprecated.'); - } - - if (requestParameters.PropertyRequest === null || requestParameters.PropertyRequest === undefined) { - throw new runtime.RequiredError('PropertyRequest','Required parameter requestParameters.PropertyRequest was null or undefined when calling createElementPropertySetPropertyDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{element_uuid}/propertyset/{propertyset_pk}/property`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"element_uuid"}}`, encodeURIComponent(String(requestParameters.element_uuid))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))).replace(`{${"propertyset_pk"}}`, encodeURIComponent(String(requestParameters.propertyset_pk))), - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: PropertyRequestToJSON(requestParameters.PropertyRequest), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => PropertyFromJSON(jsonValue)); - } - - /** - * Create a property to a PropertySet Required scopes: ifc:write, model:write - * Create a property to a PropertySet - */ - async createElementPropertySetPropertyDeprecated(cloud_pk: number, element_uuid: string, ifc_pk: number, project_pk: number, propertyset_pk: number, PropertyRequest: PropertyRequest, initOverrides?: RequestInit): Promise { - const response = await this.createElementPropertySetPropertyDeprecatedRaw({ cloud_pk: cloud_pk, element_uuid: element_uuid, ifc_pk: ifc_pk, project_pk: project_pk, propertyset_pk: propertyset_pk, PropertyRequest: PropertyRequest }, initOverrides); - return await response.value(); - } - - /** - * Make a PDF or Image file a Model to be used in BIMData services. If a model already exists, this route does nothing and returns a 201 with the model Required scopes: ifc:write, model:write - * Make a PDF or Image file a Model - */ - async createIfcDeprecatedRaw(requestParameters: CreateIfcDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling createIfcDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling createIfcDeprecated.'); - } - - if (requestParameters.CreateModelRequest === null || requestParameters.CreateModelRequest === undefined) { - throw new runtime.RequiredError('CreateModelRequest','Required parameter requestParameters.CreateModelRequest was null or undefined when calling createIfcDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/create-model`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: CreateModelRequestToJSON(requestParameters.CreateModelRequest), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ModelFromJSON(jsonValue)); - } - - /** - * Make a PDF or Image file a Model to be used in BIMData services. If a model already exists, this route does nothing and returns a 201 with the model Required scopes: ifc:write, model:write - * Make a PDF or Image file a Model - */ - async createIfcDeprecated(cloud_pk: number, project_pk: number, CreateModelRequest: CreateModelRequest, initOverrides?: RequestInit): Promise { - const response = await this.createIfcDeprecatedRaw({ cloud_pk: cloud_pk, project_pk: project_pk, CreateModelRequest: CreateModelRequest }, initOverrides); - return await response.value(); - } - - /** - * 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 Required scopes: ifc:write, model:write - * Create a PropertyDefinition on the model - */ - async createIfcPropertyDefinitionDeprecatedRaw(requestParameters: CreateIfcPropertyDefinitionDeprecatedRequest, initOverrides?: RequestInit): Promise>> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling createIfcPropertyDefinitionDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling createIfcPropertyDefinitionDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling createIfcPropertyDefinitionDeprecated.'); - } - - if (requestParameters.PropertyDefinitionRequest === null || requestParameters.PropertyDefinitionRequest === undefined) { - throw new runtime.RequiredError('PropertyDefinitionRequest','Required parameter requestParameters.PropertyDefinitionRequest was null or undefined when calling createIfcPropertyDefinitionDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/propertydefinition`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: requestParameters.PropertyDefinitionRequest.map(PropertyDefinitionRequestToJSON), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(PropertyDefinitionFromJSON)); - } - - /** - * 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 Required scopes: ifc:write, model:write - * Create a PropertyDefinition on the model - */ - async createIfcPropertyDefinitionDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, PropertyDefinitionRequest: Array, initOverrides?: RequestInit): Promise> { - const response = await this.createIfcPropertyDefinitionDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk, PropertyDefinitionRequest: PropertyDefinitionRequest }, initOverrides); - return await response.value(); - } - - /** - * 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 Required scopes: ifc:write, model:write - * Create a Unit on a model - */ - async createIfcUnitDeprecatedRaw(requestParameters: CreateIfcUnitDeprecatedRequest, initOverrides?: RequestInit): Promise>> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling createIfcUnitDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling createIfcUnitDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling createIfcUnitDeprecated.'); - } - - if (requestParameters.UnitRequest === null || requestParameters.UnitRequest === undefined) { - throw new runtime.RequiredError('UnitRequest','Required parameter requestParameters.UnitRequest was null or undefined when calling createIfcUnitDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/unit`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: requestParameters.UnitRequest.map(UnitRequestToJSON), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UnitFromJSON)); - } - - /** - * 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 Required scopes: ifc:write, model:write - * Create a Unit on a model - */ - async createIfcUnitDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, UnitRequest: Array, initOverrides?: RequestInit): Promise> { - const response = await this.createIfcUnitDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk, UnitRequest: UnitRequest }, initOverrides); - return await response.value(); - } - - /** - * The IFC file will not be updated. The created layer will be accessible over the API and when exporting an IFC file Required scopes: ifc:write, model:write - * Create a layer in the model - */ - async createLayerDeprecatedRaw(requestParameters: CreateLayerDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling createLayerDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling createLayerDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling createLayerDeprecated.'); - } - - if (requestParameters.LayerRequest === null || requestParameters.LayerRequest === undefined) { - throw new runtime.RequiredError('LayerRequest','Required parameter requestParameters.LayerRequest was null or undefined when calling createLayerDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/layer`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: LayerRequestToJSON(requestParameters.LayerRequest), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => LayerFromJSON(jsonValue)); - } - - /** - * The IFC file will not be updated. The created layer will be accessible over the API and when exporting an IFC file Required scopes: ifc:write, model:write - * Create a layer in the model - */ - async createLayerDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, LayerRequest: LayerRequest, initOverrides?: RequestInit): Promise { - const response = await this.createLayerDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk, LayerRequest: LayerRequest }, initOverrides); - return await response.value(); - } - - /** - * Create an empty 3D Model to be used in BIMData services Required scopes: ifc:write, model:write - * Create an empty 3D Model - */ - async createMetaBuildingDeprecatedRaw(requestParameters: CreateMetaBuildingDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling createMetaBuildingDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling createMetaBuildingDeprecated.'); - } - - if (requestParameters.CreateBuildingByNameRequest === null || requestParameters.CreateBuildingByNameRequest === undefined) { - throw new runtime.RequiredError('CreateBuildingByNameRequest','Required parameter requestParameters.CreateBuildingByNameRequest was null or undefined when calling createMetaBuildingDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/create-metabuilding`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: CreateBuildingByNameRequestToJSON(requestParameters.CreateBuildingByNameRequest), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ModelFromJSON(jsonValue)); - } - - /** - * Create an empty 3D Model to be used in BIMData services Required scopes: ifc:write, model:write - * Create an empty 3D Model - */ - async createMetaBuildingDeprecated(cloud_pk: number, project_pk: number, CreateBuildingByNameRequest: CreateBuildingByNameRequest, initOverrides?: RequestInit): Promise { - const response = await this.createMetaBuildingDeprecatedRaw({ cloud_pk: cloud_pk, project_pk: project_pk, CreateBuildingByNameRequest: CreateBuildingByNameRequest }, initOverrides); - return await response.value(); - } - - /** - * Create a multi page model Required scopes: ifc:write, model:write - * Create a multi page model - */ - async createMultiPageIfcDeprecatedRaw(requestParameters: CreateMultiPageIfcDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling createMultiPageIfcDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling createMultiPageIfcDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling createMultiPageIfcDeprecated.'); - } - - if (requestParameters.CreateMultiPageModelRequest === null || requestParameters.CreateMultiPageModelRequest === undefined) { - throw new runtime.RequiredError('CreateMultiPageModelRequest','Required parameter requestParameters.CreateMultiPageModelRequest was null or undefined when calling createMultiPageIfcDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{id}/create-multipage-model`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: CreateMultiPageModelRequestToJSON(requestParameters.CreateMultiPageModelRequest), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ModelFromJSON(jsonValue)); - } - - /** - * Create a multi page model Required scopes: ifc:write, model:write - * Create a multi page model - */ - async createMultiPageIfcDeprecated(cloud_pk: number, id: number, project_pk: number, CreateMultiPageModelRequest: CreateMultiPageModelRequest, initOverrides?: RequestInit): Promise { - const response = await this.createMultiPageIfcDeprecatedRaw({ cloud_pk: cloud_pk, id: id, project_pk: project_pk, CreateMultiPageModelRequest: CreateMultiPageModelRequest }, initOverrides); - return await response.value(); - } - - /** - * 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 Required scopes: ifc:write, model:write - * Create one or many PropertySet - */ - async createPropertySetDeprecatedRaw(requestParameters: CreatePropertySetDeprecatedRequest, initOverrides?: RequestInit): Promise>> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling createPropertySetDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling createPropertySetDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling createPropertySetDeprecated.'); - } - - if (requestParameters.PropertySetRequest === null || requestParameters.PropertySetRequest === undefined) { - throw new runtime.RequiredError('PropertySetRequest','Required parameter requestParameters.PropertySetRequest was null or undefined when calling createPropertySetDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/propertyset`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: requestParameters.PropertySetRequest.map(PropertySetRequestToJSON), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(PropertySetFromJSON)); - } - - /** - * 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 Required scopes: ifc:write, model:write - * Create one or many PropertySet - */ - async createPropertySetDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, PropertySetRequest: Array, initOverrides?: RequestInit): Promise> { - const response = await this.createPropertySetDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk, PropertySetRequest: PropertySetRequest }, initOverrides); - return await response.value(); - } - - /** - * Create association between PropertySet and element Required scopes: ifc:write, model:write - * Create association between PropertySet and element - */ - async createPropertySetElementRelationsDeprecatedRaw(requestParameters: CreatePropertySetElementRelationsDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling createPropertySetElementRelationsDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling createPropertySetElementRelationsDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling createPropertySetElementRelationsDeprecated.'); - } - - if (requestParameters.ElementPropertySetRelationRequest === null || requestParameters.ElementPropertySetRelationRequest === undefined) { - throw new runtime.RequiredError('ElementPropertySetRelationRequest','Required parameter requestParameters.ElementPropertySetRelationRequest was null or undefined when calling createPropertySetElementRelationsDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/propertyset-element`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: requestParameters.ElementPropertySetRelationRequest.map(ElementPropertySetRelationRequestToJSON), - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - * Create association between PropertySet and element Required scopes: ifc:write, model:write - * Create association between PropertySet and element - */ - async createPropertySetElementRelationsDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, ElementPropertySetRelationRequest: Array, initOverrides?: RequestInit): Promise { - await this.createPropertySetElementRelationsDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk, ElementPropertySetRelationRequest: ElementPropertySetRelationRequest }, initOverrides); - } - - /** - * Create many elements in an optimized format to reduce JSON size and avoid redudancy. The IFC file will not be updated. The created elements will be accessible over the API and when exporting an IFC file. You can use the same optimized structure to post multiple elements, property_sets, properties, definitions and units at once. For performance reasons, we do not check the validity of the json. If the json is malformed, an error 500 without more explaination may be returned instead of a 400. Required scopes: ifc:write, model:write - * Create elements in an optimized format - */ - async createRawElementsDeprecatedRaw(requestParameters: CreateRawElementsDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling createRawElementsDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling createRawElementsDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling createRawElementsDeprecated.'); - } - - if (requestParameters.RawElementsRequest === null || requestParameters.RawElementsRequest === undefined) { - throw new runtime.RequiredError('RawElementsRequest','Required parameter requestParameters.RawElementsRequest was null or undefined when calling createRawElementsDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/raw`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: RawElementsRequestToJSON(requestParameters.RawElementsRequest), - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - * Create many elements in an optimized format to reduce JSON size and avoid redudancy. The IFC file will not be updated. The created elements will be accessible over the API and when exporting an IFC file. You can use the same optimized structure to post multiple elements, property_sets, properties, definitions and units at once. For performance reasons, we do not check the validity of the json. If the json is malformed, an error 500 without more explaination may be returned instead of a 400. Required scopes: ifc:write, model:write - * Create elements in an optimized format - */ - async createRawElementsDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, RawElementsRequest: RawElementsRequest, initOverrides?: RequestInit): Promise { - await this.createRawElementsDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk, RawElementsRequest: RawElementsRequest }, initOverrides); - } - - /** - * 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 space will be accessible over the API and when exporting an IFC file Required scopes: ifc:write, model:write - * Create a space in the model - */ - async createSpaceDeprecatedRaw(requestParameters: CreateSpaceDeprecatedRequest, initOverrides?: RequestInit): Promise>> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling createSpaceDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling createSpaceDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling createSpaceDeprecated.'); - } - - if (requestParameters.SpaceRequest === null || requestParameters.SpaceRequest === undefined) { - throw new runtime.RequiredError('SpaceRequest','Required parameter requestParameters.SpaceRequest was null or undefined when calling createSpaceDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/space`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: requestParameters.SpaceRequest.map(SpaceRequestToJSON), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(SpaceFromJSON)); - } - - /** - * 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 space will be accessible over the API and when exporting an IFC file Required scopes: ifc:write, model:write - * Create a space in the model - */ - async createSpaceDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, SpaceRequest: Array, initOverrides?: RequestInit): Promise> { - const response = await this.createSpaceDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk, SpaceRequest: SpaceRequest }, initOverrides); - return await response.value(); - } - - /** - * Create a storey of a model. Required scopes: ifc:write, model:write - * Create a storey of a model - */ - async createStoreyDeprecatedRaw(requestParameters: CreateStoreyDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling createStoreyDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling createStoreyDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling createStoreyDeprecated.'); - } - - if (requestParameters.StoreyBuildingRequest === null || requestParameters.StoreyBuildingRequest === undefined) { - throw new runtime.RequiredError('StoreyBuildingRequest','Required parameter requestParameters.StoreyBuildingRequest was null or undefined when calling createStoreyDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/storey`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: StoreyBuildingRequestToJSON(requestParameters.StoreyBuildingRequest), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => StoreyFromJSON(jsonValue)); - } - - /** - * Create a storey of a model. Required scopes: ifc:write, model:write - * Create a storey of a model - */ - async createStoreyDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, StoreyBuildingRequest: StoreyBuildingRequest, initOverrides?: RequestInit): Promise { - const response = await this.createStoreyDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk, StoreyBuildingRequest: StoreyBuildingRequest }, initOverrides); - return await response.value(); - } - - /** - * Create a relation between a 2d model and a storey. The model type must be one of : (\'DWG\', \'DXF\', \'PDF\', \'JPEG\', \'PNG\') Required scopes: ifc:write, model:write - * Create a relation between a 2d model and a storey - */ - async createStoreyPlanDeprecatedRaw(requestParameters: CreateStoreyPlanDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling createStoreyPlanDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling createStoreyPlanDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling createStoreyPlanDeprecated.'); - } - - if (requestParameters.storey_uuid === null || requestParameters.storey_uuid === undefined) { - throw new runtime.RequiredError('storey_uuid','Required parameter requestParameters.storey_uuid was null or undefined when calling createStoreyPlanDeprecated.'); - } - - if (requestParameters.StoreyModelPlanRequest === null || requestParameters.StoreyModelPlanRequest === undefined) { - throw new runtime.RequiredError('StoreyModelPlanRequest','Required parameter requestParameters.StoreyModelPlanRequest was null or undefined when calling createStoreyPlanDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/storey/{storey_uuid}/plan/add`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))).replace(`{${"storey_uuid"}}`, encodeURIComponent(String(requestParameters.storey_uuid))), - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: StoreyModelPlanRequestToJSON(requestParameters.StoreyModelPlanRequest), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => StoreyFromJSON(jsonValue)); - } - - /** - * Create a relation between a 2d model and a storey. The model type must be one of : (\'DWG\', \'DXF\', \'PDF\', \'JPEG\', \'PNG\') Required scopes: ifc:write, model:write - * Create a relation between a 2d model and a storey - */ - async createStoreyPlanDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, storey_uuid: string, StoreyModelPlanRequest: StoreyModelPlanRequest, initOverrides?: RequestInit): Promise { - const response = await this.createStoreyPlanDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk, storey_uuid: storey_uuid, StoreyModelPlanRequest: StoreyModelPlanRequest }, initOverrides); - return await response.value(); - } - - /** - * The IFC file will not be updated. The created system will be accessible over the API and when exporting an IFC file Required scopes: ifc:write, model:write - * Create a system in the model - */ - async createSystemDeprecatedRaw(requestParameters: CreateSystemDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling createSystemDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling createSystemDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling createSystemDeprecated.'); - } - - if (requestParameters.SystemRequest === null || requestParameters.SystemRequest === undefined) { - throw new runtime.RequiredError('SystemRequest','Required parameter requestParameters.SystemRequest was null or undefined when calling createSystemDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/system`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: SystemRequestToJSON(requestParameters.SystemRequest), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => SystemFromJSON(jsonValue)); - } - - /** - * The IFC file will not be updated. The created system will be accessible over the API and when exporting an IFC file Required scopes: ifc:write, model:write - * Create a system in the model - */ - async createSystemDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, SystemRequest: SystemRequest, initOverrides?: RequestInit): Promise { - const response = await this.createSystemDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk, SystemRequest: SystemRequest }, initOverrides); - return await response.value(); - } - - /** - * This route is internaly used by BIMData, you probably don\'t want to use it Required scopes: ifc:write, model:write - * Create the tileset of the model and upload all files - */ - async createTilesetDeprecatedRaw(requestParameters: CreateTilesetDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling createTilesetDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling createTilesetDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling createTilesetDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{id}/tileset`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'POST', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - * This route is internaly used by BIMData, you probably don\'t want to use it Required scopes: ifc:write, model:write - * Create the tileset of the model and upload all files - */ - async createTilesetDeprecated(cloud_pk: number, id: number, project_pk: number, initOverrides?: RequestInit): Promise { - await this.createTilesetDeprecatedRaw({ cloud_pk: cloud_pk, id: id, project_pk: project_pk }, initOverrides); - } - - /** - * This route does not accept JSON, only files as x-www-form-urlencoded Required scopes: ifc:write, model:write - * Create an xkt file for the model. Overrides existing file with same version - */ - async createXktFileDeprecatedRaw(requestParameters: CreateXktFileDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling createXktFileDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling createXktFileDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling createXktFileDeprecated.'); - } - - if (requestParameters.version === null || requestParameters.version === undefined) { - throw new runtime.RequiredError('version','Required parameter requestParameters.version was null or undefined when calling createXktFileDeprecated.'); - } - - if (requestParameters.file === null || requestParameters.file === undefined) { - throw new runtime.RequiredError('file','Required parameter requestParameters.file was null or undefined when calling createXktFileDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const consumes: runtime.Consume[] = [ - { contentType: 'multipart/form-data' }, - { contentType: 'application/x-www-form-urlencoded' }, - ]; - // @ts-ignore: canConsumeForm may be unused - const canConsumeForm = runtime.canConsumeForm(consumes); - - let formParams: { append(param: string, value: any): any }; - let useForm = false; - // use FormData to transmit files using content-type "multipart/form-data" - useForm = canConsumeForm; - if (useForm) { - formParams = new FormData(); - } else { - formParams = new URLSearchParams(); - } - - if (requestParameters.version !== undefined) { - formParams.append('version', requestParameters.version as any); - } - - if (requestParameters.file !== undefined) { - formParams.append('file', requestParameters.file as any); - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{id}/xkt-file`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: formParams, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => XktFileFromJSON(jsonValue)); - } - - /** - * This route does not accept JSON, only files as x-www-form-urlencoded Required scopes: ifc:write, model:write - * Create an xkt file for the model. Overrides existing file with same version - */ - async createXktFileDeprecated(cloud_pk: number, id: number, project_pk: number, version: number, file: Blob, initOverrides?: RequestInit): Promise { - const response = await this.createXktFileDeprecatedRaw({ cloud_pk: cloud_pk, id: id, project_pk: project_pk, version: version, file: file }, initOverrides); - return await response.value(); - } - - /** - * 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 zone will be accessible over the API and when exporting an IFC file Required scopes: ifc:write, model:write - * Create a zone in the model - */ - async createZoneDeprecatedRaw(requestParameters: CreateZoneDeprecatedRequest, initOverrides?: RequestInit): Promise>> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling createZoneDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling createZoneDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling createZoneDeprecated.'); - } - - if (requestParameters.ZoneRequest === null || requestParameters.ZoneRequest === undefined) { - throw new runtime.RequiredError('ZoneRequest','Required parameter requestParameters.ZoneRequest was null or undefined when calling createZoneDeprecated.'); - } - - const queryParameters: any = {}; - - if (requestParameters.color !== undefined) { - queryParameters['color'] = requestParameters.color; - } - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/zone`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: requestParameters.ZoneRequest.map(ZoneRequestToJSON), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ZoneFromJSON)); - } - - /** - * 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 zone will be accessible over the API and when exporting an IFC file Required scopes: ifc:write, model:write - * Create a zone in the model - */ - async createZoneDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, ZoneRequest: Array, color?: string, initOverrides?: RequestInit): Promise> { - const response = await this.createZoneDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk, ZoneRequest: ZoneRequest, color: color }, initOverrides); - return await response.value(); - } - - /** - * The IFC file will not be updated. The created space will be accessible over the API and when exporting an IFC file Required scopes: ifc:write, model:write - * Create a space in a zone - */ - async createZoneSpaceDeprecatedRaw(requestParameters: CreateZoneSpaceDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling createZoneSpaceDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling createZoneSpaceDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling createZoneSpaceDeprecated.'); - } - - if (requestParameters.zone_pk === null || requestParameters.zone_pk === undefined) { - throw new runtime.RequiredError('zone_pk','Required parameter requestParameters.zone_pk was null or undefined when calling createZoneSpaceDeprecated.'); - } - - if (requestParameters.ZoneSpaceRequest === null || requestParameters.ZoneSpaceRequest === undefined) { - throw new runtime.RequiredError('ZoneSpaceRequest','Required parameter requestParameters.ZoneSpaceRequest was null or undefined when calling createZoneSpaceDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/zone/{zone_pk}/space`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))).replace(`{${"zone_pk"}}`, encodeURIComponent(String(requestParameters.zone_pk))), - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: ZoneSpaceRequestToJSON(requestParameters.ZoneSpaceRequest), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ZoneSpaceFromJSON(jsonValue)); - } - - /** - * The IFC file will not be updated. The created space will be accessible over the API and when exporting an IFC file Required scopes: ifc:write, model:write - * Create a space in a zone - */ - async createZoneSpaceDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, zone_pk: number, ZoneSpaceRequest: ZoneSpaceRequest, initOverrides?: RequestInit): Promise { - const response = await this.createZoneSpaceDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk, zone_pk: zone_pk, ZoneSpaceRequest: ZoneSpaceRequest }, initOverrides); - return await response.value(); - } - - /** - * DEPECRATED: Use ProjectAccessToken instead Required scopes: ifc:token_manage, model:token_manage - * Delete a token - */ - async deleteAccessTokenDeprecatedRaw(requestParameters: DeleteAccessTokenDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling deleteAccessTokenDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling deleteAccessTokenDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling deleteAccessTokenDeprecated.'); - } - - if (requestParameters.token === null || requestParameters.token === undefined) { - throw new runtime.RequiredError('token','Required parameter requestParameters.token was null or undefined when calling deleteAccessTokenDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/access_token/{token}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))).replace(`{${"token"}}`, encodeURIComponent(String(requestParameters.token))), - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - * DEPECRATED: Use ProjectAccessToken instead Required scopes: ifc:token_manage, model:token_manage - * Delete a token - */ - async deleteAccessTokenDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, token: string, initOverrides?: RequestInit): Promise { - await this.deleteAccessTokenDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk, token: token }, initOverrides); - } - - /** - * Delete a building of a model Required scopes: ifc:write, model:write - * Delete a building of a model - */ - async deleteBuildingDeprecatedRaw(requestParameters: DeleteBuildingDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling deleteBuildingDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling deleteBuildingDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling deleteBuildingDeprecated.'); - } - - if (requestParameters.uuid === null || requestParameters.uuid === undefined) { - throw new runtime.RequiredError('uuid','Required parameter requestParameters.uuid was null or undefined when calling deleteBuildingDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/building/{uuid}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))).replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))), - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - * Delete a building of a model Required scopes: ifc:write, model:write - * Delete a building of a model - */ - async deleteBuildingDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, uuid: string, initOverrides?: RequestInit): Promise { - await this.deleteBuildingDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk, uuid: uuid }, initOverrides); - } - - /** - * Delete the relation between a 2d model and a building Required scopes: ifc:write, model:write - * Delete the relation between a 2d model and a building - */ - async deleteBuildingPlanDeprecatedRaw(requestParameters: DeleteBuildingPlanDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.building_uuid === null || requestParameters.building_uuid === undefined) { - throw new runtime.RequiredError('building_uuid','Required parameter requestParameters.building_uuid was null or undefined when calling deleteBuildingPlanDeprecated.'); - } - - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling deleteBuildingPlanDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling deleteBuildingPlanDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling deleteBuildingPlanDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling deleteBuildingPlanDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/building/{building_uuid}/plan/{id}`.replace(`{${"building_uuid"}}`, encodeURIComponent(String(requestParameters.building_uuid))).replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - * Delete the relation between a 2d model and a building Required scopes: ifc:write, model:write - * Delete the relation between a 2d model and a building - */ - async deleteBuildingPlanDeprecated(building_uuid: string, cloud_pk: number, id: number, ifc_pk: number, project_pk: number, initOverrides?: RequestInit): Promise { - await this.deleteBuildingPlanDeprecatedRaw({ building_uuid: building_uuid, cloud_pk: cloud_pk, id: id, ifc_pk: ifc_pk, project_pk: project_pk }, initOverrides); - } - - /** - * Delete a drawing of a model Required scopes: model:write - * Delete a drawing of a model - */ - async deleteDrawingDeprecatedRaw(requestParameters: DeleteDrawingDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling deleteDrawingDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling deleteDrawingDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling deleteDrawingDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling deleteDrawingDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/drawing/{id}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - * Delete a drawing of a model Required scopes: model:write - * Delete a drawing of a model - */ - async deleteDrawingDeprecated(cloud_pk: number, id: number, ifc_pk: number, project_pk: number, initOverrides?: RequestInit): Promise { - await this.deleteDrawingDeprecatedRaw({ cloud_pk: cloud_pk, id: id, ifc_pk: ifc_pk, project_pk: project_pk }, initOverrides); - } - - /** - * 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 - * Delete an element of a model - */ - async deleteElementDeprecatedRaw(requestParameters: DeleteElementDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling deleteElementDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling deleteElementDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling deleteElementDeprecated.'); - } - - if (requestParameters.uuid === null || requestParameters.uuid === undefined) { - throw new runtime.RequiredError('uuid','Required parameter requestParameters.uuid was null or undefined when calling deleteElementDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{uuid}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))).replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))), - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - * 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 - * Delete an element of a model - */ - async deleteElementDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, uuid: string, initOverrides?: RequestInit): Promise { - await this.deleteElementDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk, uuid: uuid }, initOverrides); - } - - /** - * It will also delete the related document Required scopes: ifc:write, model:write - * Delete a model - */ - async deleteIfcDeprecatedRaw(requestParameters: DeleteIfcDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling deleteIfcDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling deleteIfcDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling deleteIfcDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{id}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - * It will also delete the related document Required scopes: ifc:write, model:write - * Delete a model - */ - async deleteIfcDeprecated(cloud_pk: number, id: number, project_pk: number, initOverrides?: RequestInit): Promise { - await this.deleteIfcDeprecatedRaw({ cloud_pk: cloud_pk, id: id, project_pk: project_pk }, initOverrides); - } - - /** - * Delete a PropertyDefinitions of a model Required scopes: ifc:write, model:write - * Delete a PropertyDefinitions of a model - */ - async deleteIfcPropertyDefinitionDeprecatedRaw(requestParameters: DeleteIfcPropertyDefinitionDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling deleteIfcPropertyDefinitionDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling deleteIfcPropertyDefinitionDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling deleteIfcPropertyDefinitionDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling deleteIfcPropertyDefinitionDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/propertydefinition/{id}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - * Delete a PropertyDefinitions of a model Required scopes: ifc:write, model:write - * Delete a PropertyDefinitions of a model - */ - async deleteIfcPropertyDefinitionDeprecated(cloud_pk: number, id: number, ifc_pk: number, project_pk: number, initOverrides?: RequestInit): Promise { - await this.deleteIfcPropertyDefinitionDeprecatedRaw({ cloud_pk: cloud_pk, id: id, ifc_pk: ifc_pk, project_pk: project_pk }, initOverrides); - } - - /** - * Delete a Property of a model Required scopes: ifc:write, model:write - * Delete a Property of a model - */ - async deleteIfcPropertyDeprecatedRaw(requestParameters: DeleteIfcPropertyDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling deleteIfcPropertyDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling deleteIfcPropertyDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling deleteIfcPropertyDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling deleteIfcPropertyDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/property/{id}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - * Delete a Property of a model Required scopes: ifc:write, model:write - * Delete a Property of a model - */ - async deleteIfcPropertyDeprecated(cloud_pk: number, id: number, ifc_pk: number, project_pk: number, initOverrides?: RequestInit): Promise { - await this.deleteIfcPropertyDeprecatedRaw({ cloud_pk: cloud_pk, id: id, ifc_pk: ifc_pk, project_pk: project_pk }, initOverrides); - } - - /** - * Delete a Unit of a model Required scopes: ifc:write, model:write - * Delete a Unit of a model - */ - async deleteIfcUnitDeprecatedRaw(requestParameters: DeleteIfcUnitDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling deleteIfcUnitDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling deleteIfcUnitDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling deleteIfcUnitDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling deleteIfcUnitDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/unit/{id}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - * Delete a Unit of a model Required scopes: ifc:write, model:write - * Delete a Unit of a model - */ - async deleteIfcUnitDeprecated(cloud_pk: number, id: number, ifc_pk: number, project_pk: number, initOverrides?: RequestInit): Promise { - await this.deleteIfcUnitDeprecatedRaw({ cloud_pk: cloud_pk, id: id, ifc_pk: ifc_pk, project_pk: project_pk }, initOverrides); - } - - /** - * Delete the Model without deleting the related document Required scopes: ifc:write, model:write - * Delete the Model without deleting the related document - */ - async deleteIfcWithoutDocDeprecatedRaw(requestParameters: DeleteIfcWithoutDocDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling deleteIfcWithoutDocDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling deleteIfcWithoutDocDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling deleteIfcWithoutDocDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{id}/delete-model`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - * Delete the Model without deleting the related document Required scopes: ifc:write, model:write - * Delete the Model without deleting the related document - */ - async deleteIfcWithoutDocDeprecated(cloud_pk: number, id: number, project_pk: number, initOverrides?: RequestInit): Promise { - await this.deleteIfcWithoutDocDeprecatedRaw({ cloud_pk: cloud_pk, id: id, project_pk: project_pk }, initOverrides); - } - - /** - * The IFC file will not be updated. The remaining layers are available in API and will be available when exporting an IFC file Required scopes: ifc:write, model:write - * Delete a layer of a model - */ - async deleteLayerDeprecatedRaw(requestParameters: DeleteLayerDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling deleteLayerDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling deleteLayerDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling deleteLayerDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling deleteLayerDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/layer/{id}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - * The IFC file will not be updated. The remaining layers are available in API and will be available when exporting an IFC file Required scopes: ifc:write, model:write - * Delete a layer of a model - */ - async deleteLayerDeprecated(cloud_pk: number, id: number, ifc_pk: number, project_pk: number, initOverrides?: RequestInit): Promise { - await this.deleteLayerDeprecatedRaw({ cloud_pk: cloud_pk, id: id, ifc_pk: ifc_pk, project_pk: project_pk }, initOverrides); - } - - /** - * Delete a PropertySet of a model Required scopes: ifc:write, model:write - * Delete a PropertySet of a model - */ - async deletePropertySetDeprecatedRaw(requestParameters: DeletePropertySetDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling deletePropertySetDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling deletePropertySetDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling deletePropertySetDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling deletePropertySetDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/propertyset/{id}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - * Delete a PropertySet of a model Required scopes: ifc:write, model:write - * Delete a PropertySet of a model - */ - async deletePropertySetDeprecated(cloud_pk: number, id: number, ifc_pk: number, project_pk: number, initOverrides?: RequestInit): Promise { - await this.deletePropertySetDeprecatedRaw({ cloud_pk: cloud_pk, id: id, ifc_pk: ifc_pk, project_pk: project_pk }, initOverrides); - } - - /** - * It will not delete related zones. The IFC file will not be updated. The remaining spaces are available in API and will be available when exporting an IFC file Required scopes: ifc:write, model:write - * Delete a space - */ - async deleteSpaceDeprecatedRaw(requestParameters: DeleteSpaceDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling deleteSpaceDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling deleteSpaceDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling deleteSpaceDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling deleteSpaceDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/space/{id}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - * It will not delete related zones. The IFC file will not be updated. The remaining spaces are available in API and will be available when exporting an IFC file Required scopes: ifc:write, model:write - * Delete a space - */ - async deleteSpaceDeprecated(cloud_pk: number, id: number, ifc_pk: number, project_pk: number, initOverrides?: RequestInit): Promise { - await this.deleteSpaceDeprecatedRaw({ cloud_pk: cloud_pk, id: id, ifc_pk: ifc_pk, project_pk: project_pk }, initOverrides); - } - - /** - * Delete a storey of a model Required scopes: ifc:write, model:write - * Delete a storey of a model - */ - async deleteStoreyDeprecatedRaw(requestParameters: DeleteStoreyDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling deleteStoreyDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling deleteStoreyDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling deleteStoreyDeprecated.'); - } - - if (requestParameters.uuid === null || requestParameters.uuid === undefined) { - throw new runtime.RequiredError('uuid','Required parameter requestParameters.uuid was null or undefined when calling deleteStoreyDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/storey/{uuid}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))).replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))), - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - * Delete a storey of a model Required scopes: ifc:write, model:write - * Delete a storey of a model - */ - async deleteStoreyDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, uuid: string, initOverrides?: RequestInit): Promise { - await this.deleteStoreyDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk, uuid: uuid }, initOverrides); - } - - /** - * Delete the relation between a 2d model and a storey Required scopes: ifc:write, model:write - * Delete the relation between a 2d model and a storey - */ - async deleteStoreyPlanDeprecatedRaw(requestParameters: DeleteStoreyPlanDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling deleteStoreyPlanDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling deleteStoreyPlanDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling deleteStoreyPlanDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling deleteStoreyPlanDeprecated.'); - } - - if (requestParameters.storey_uuid === null || requestParameters.storey_uuid === undefined) { - throw new runtime.RequiredError('storey_uuid','Required parameter requestParameters.storey_uuid was null or undefined when calling deleteStoreyPlanDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/storey/{storey_uuid}/plan/{id}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))).replace(`{${"storey_uuid"}}`, encodeURIComponent(String(requestParameters.storey_uuid))), - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - * Delete the relation between a 2d model and a storey Required scopes: ifc:write, model:write - * Delete the relation between a 2d model and a storey - */ - async deleteStoreyPlanDeprecated(cloud_pk: number, id: number, ifc_pk: number, project_pk: number, storey_uuid: string, initOverrides?: RequestInit): Promise { - await this.deleteStoreyPlanDeprecatedRaw({ cloud_pk: cloud_pk, id: id, ifc_pk: ifc_pk, project_pk: project_pk, storey_uuid: storey_uuid }, initOverrides); - } - - /** - * The IFC file will not be updated. The remaining systems are available in API and will be available when exporting an IFC file Required scopes: ifc:write, model:write - * Delete a system of a model - */ - async deleteSystemDeprecatedRaw(requestParameters: DeleteSystemDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling deleteSystemDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling deleteSystemDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling deleteSystemDeprecated.'); - } - - if (requestParameters.uuid === null || requestParameters.uuid === undefined) { - throw new runtime.RequiredError('uuid','Required parameter requestParameters.uuid was null or undefined when calling deleteSystemDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/system/{uuid}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))).replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))), - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - * The IFC file will not be updated. The remaining systems are available in API and will be available when exporting an IFC file Required scopes: ifc:write, model:write - * Delete a system of a model - */ - async deleteSystemDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, uuid: string, initOverrides?: RequestInit): Promise { - await this.deleteSystemDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk, uuid: uuid }, initOverrides); - } - - /** - * The IFC file will not be updated. The remaining zones are available in API and will be available when exporting an IFC file Required scopes: ifc:write, model:write - * Delete a zone of a model - */ - async deleteZoneDeprecatedRaw(requestParameters: DeleteZoneDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling deleteZoneDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling deleteZoneDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling deleteZoneDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling deleteZoneDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/zone/{id}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - * The IFC file will not be updated. The remaining zones are available in API and will be available when exporting an IFC file Required scopes: ifc:write, model:write - * Delete a zone of a model - */ - async deleteZoneDeprecated(cloud_pk: number, id: number, ifc_pk: number, project_pk: number, initOverrides?: RequestInit): Promise { - await this.deleteZoneDeprecatedRaw({ cloud_pk: cloud_pk, id: id, ifc_pk: ifc_pk, project_pk: project_pk }, initOverrides); - } - - /** - * Delete the relation between a space and a zone. The IFC file will not be updated. The remaining spaces are available in API and will be available when exporting an IFC file Required scopes: ifc:write, model:write - * Delete the relation between a space and a zone - */ - async deleteZoneSpaceDeprecatedRaw(requestParameters: DeleteZoneSpaceDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling deleteZoneSpaceDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling deleteZoneSpaceDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling deleteZoneSpaceDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling deleteZoneSpaceDeprecated.'); - } - - if (requestParameters.zone_pk === null || requestParameters.zone_pk === undefined) { - throw new runtime.RequiredError('zone_pk','Required parameter requestParameters.zone_pk was null or undefined when calling deleteZoneSpaceDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/zone/{zone_pk}/space/{id}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))).replace(`{${"zone_pk"}}`, encodeURIComponent(String(requestParameters.zone_pk))), - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - * Delete the relation between a space and a zone. The IFC file will not be updated. The remaining spaces are available in API and will be available when exporting an IFC file Required scopes: ifc:write, model:write - * Delete the relation between a space and a zone - */ - async deleteZoneSpaceDeprecated(cloud_pk: number, id: number, ifc_pk: number, project_pk: number, zone_pk: number, initOverrides?: RequestInit): Promise { - await this.deleteZoneSpaceDeprecatedRaw({ cloud_pk: cloud_pk, id: id, ifc_pk: ifc_pk, project_pk: project_pk, zone_pk: zone_pk }, initOverrides); - } - - /** - * Only works for IFC files. Export IFC as requested in parameters. When the export is finished, a new IFC file with will be created in the same folder than the original IFC. You can query the folder or subscribe to the new document webhook to retrieve the result Required scopes: ifc:write, model:write - * Export IFC - */ - async exportIfcDeprecatedRaw(requestParameters: ExportIfcDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling exportIfcDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling exportIfcDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling exportIfcDeprecated.'); - } - - if (requestParameters.IfcExportRequest === null || requestParameters.IfcExportRequest === undefined) { - throw new runtime.RequiredError('IfcExportRequest','Required parameter requestParameters.IfcExportRequest was null or undefined when calling exportIfcDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{id}/export`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: IfcExportRequestToJSON(requestParameters.IfcExportRequest), - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - * Only works for IFC files. Export IFC as requested in parameters. When the export is finished, a new IFC file with will be created in the same folder than the original IFC. You can query the folder or subscribe to the new document webhook to retrieve the result Required scopes: ifc:write, model:write - * Export IFC - */ - async exportIfcDeprecated(cloud_pk: number, id: number, project_pk: number, IfcExportRequest: IfcExportRequest, initOverrides?: RequestInit): Promise { - await this.exportIfcDeprecatedRaw({ cloud_pk: cloud_pk, id: id, project_pk: project_pk, IfcExportRequest: IfcExportRequest }, initOverrides); - } - - /** - * Update all 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 - * Update all fields of an element - */ - async fullUpdateElementDeprecatedRaw(requestParameters: FullUpdateElementDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling fullUpdateElementDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling fullUpdateElementDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling fullUpdateElementDeprecated.'); - } - - if (requestParameters.uuid === null || requestParameters.uuid === undefined) { - throw new runtime.RequiredError('uuid','Required parameter requestParameters.uuid was null or undefined when calling fullUpdateElementDeprecated.'); - } - - if (requestParameters.ElementRequest === null || requestParameters.ElementRequest === undefined) { - throw new runtime.RequiredError('ElementRequest','Required parameter requestParameters.ElementRequest was null or undefined when calling fullUpdateElementDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{uuid}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))).replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))), - method: 'PUT', - headers: headerParameters, - query: queryParameters, - body: ElementRequestToJSON(requestParameters.ElementRequest), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ElementFromJSON(jsonValue)); - } - - /** - * Update all 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 - * Update all fields of an element - */ - async fullUpdateElementDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, uuid: string, ElementRequest: ElementRequest, initOverrides?: RequestInit): Promise { - const response = await this.fullUpdateElementDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk, uuid: uuid, ElementRequest: ElementRequest }, initOverrides); - return await response.value(); - } - - /** - * DEPECRATED: Use ProjectAccessToken instead Required scopes: ifc:token_manage, model:token_manage - * Retrieve one token created for this model - */ - async getAccessTokenDeprecatedRaw(requestParameters: GetAccessTokenDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling getAccessTokenDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling getAccessTokenDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling getAccessTokenDeprecated.'); - } - - if (requestParameters.token === null || requestParameters.token === undefined) { - throw new runtime.RequiredError('token','Required parameter requestParameters.token was null or undefined when calling getAccessTokenDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/access_token/{token}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))).replace(`{${"token"}}`, encodeURIComponent(String(requestParameters.token))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => IfcAccessTokenFromJSON(jsonValue)); - } - - /** - * DEPECRATED: Use ProjectAccessToken instead Required scopes: ifc:token_manage, model:token_manage - * Retrieve one token created for this model - */ - async getAccessTokenDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, token: string, initOverrides?: RequestInit): Promise { - const response = await this.getAccessTokenDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk, token: token }, initOverrides); - return await response.value(); - } - - /** - * DEPECRATED: Use ProjectAccessToken instead Required scopes: ifc:token_manage, model:token_manage - * Retrieve all tokens created for this model - */ - async getAccessTokensDeprecatedRaw(requestParameters: GetAccessTokensDeprecatedRequest, initOverrides?: RequestInit): Promise>> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling getAccessTokensDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling getAccessTokensDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling getAccessTokensDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/access_token`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(IfcAccessTokenFromJSON)); - } - - /** - * DEPECRATED: Use ProjectAccessToken instead Required scopes: ifc:token_manage, model:token_manage - * Retrieve all tokens created for this model - */ - async getAccessTokensDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, initOverrides?: RequestInit): Promise> { - const response = await this.getAccessTokensDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk }, initOverrides); - return await response.value(); - } - - /** - * Retrieve a building of a model Required scopes: ifc:read, model:read - * Retrieve a building of a model - */ - async getBuildingDeprecatedRaw(requestParameters: GetBuildingDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling getBuildingDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling getBuildingDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling getBuildingDeprecated.'); - } - - if (requestParameters.uuid === null || requestParameters.uuid === undefined) { - throw new runtime.RequiredError('uuid','Required parameter requestParameters.uuid was null or undefined when calling getBuildingDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/building/{uuid}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))).replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => BuildingFromJSON(jsonValue)); - } - - /** - * Retrieve a building of a model Required scopes: ifc:read, model:read - * Retrieve a building of a model - */ - async getBuildingDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, uuid: string, initOverrides?: RequestInit): Promise { - const response = await this.getBuildingDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk, uuid: uuid }, initOverrides); - return await response.value(); - } - - /** - * Retrieve the postioning of the plan in the building Required scopes: ifc:read, model:read - * Retrieve the postioning of the plan in the building - */ - async getBuildingPlanPositioningDeprecatedRaw(requestParameters: GetBuildingPlanPositioningDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.building_uuid === null || requestParameters.building_uuid === undefined) { - throw new runtime.RequiredError('building_uuid','Required parameter requestParameters.building_uuid was null or undefined when calling getBuildingPlanPositioningDeprecated.'); - } - - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling getBuildingPlanPositioningDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getBuildingPlanPositioningDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling getBuildingPlanPositioningDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling getBuildingPlanPositioningDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/building/{building_uuid}/plan/{id}/positioning`.replace(`{${"building_uuid"}}`, encodeURIComponent(String(requestParameters.building_uuid))).replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => PositioningPlanFromJSON(jsonValue)); - } - - /** - * Retrieve the postioning of the plan in the building Required scopes: ifc:read, model:read - * Retrieve the postioning of the plan in the building - */ - async getBuildingPlanPositioningDeprecated(building_uuid: string, cloud_pk: number, id: number, ifc_pk: number, project_pk: number, initOverrides?: RequestInit): Promise { - const response = await this.getBuildingPlanPositioningDeprecatedRaw({ building_uuid: building_uuid, cloud_pk: cloud_pk, id: id, ifc_pk: ifc_pk, project_pk: project_pk }, initOverrides); - return await response.value(); - } - - /** - * Retrieve all buildings of a model. Required scopes: ifc:read, model:read - * Retrieve all buildings of a model - */ - async getBuildingsDeprecatedRaw(requestParameters: GetBuildingsDeprecatedRequest, initOverrides?: RequestInit): Promise>> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling getBuildingsDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling getBuildingsDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling getBuildingsDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/building`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(BuildingFromJSON)); - } - - /** - * Retrieve all buildings of a model. Required scopes: ifc:read, model:read - * Retrieve all buildings of a model - */ - async getBuildingsDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, initOverrides?: RequestInit): Promise> { - const response = await this.getBuildingsDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk }, initOverrides); - return await response.value(); - } - - /** - * Retrieve all classifications of an element Required scopes: ifc:read, model:read - * Retrieve all classifications of an element - */ - async getClassificationsOfElementDeprecatedRaw(requestParameters: GetClassificationsOfElementDeprecatedRequest, initOverrides?: RequestInit): Promise>> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling getClassificationsOfElementDeprecated.'); - } - - if (requestParameters.element_uuid === null || requestParameters.element_uuid === undefined) { - throw new runtime.RequiredError('element_uuid','Required parameter requestParameters.element_uuid was null or undefined when calling getClassificationsOfElementDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling getClassificationsOfElementDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling getClassificationsOfElementDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{element_uuid}/classification`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"element_uuid"}}`, encodeURIComponent(String(requestParameters.element_uuid))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ClassificationFromJSON)); - } - - /** - * Retrieve all classifications of an element Required scopes: ifc:read, model:read - * Retrieve all classifications of an element - */ - async getClassificationsOfElementDeprecated(cloud_pk: number, element_uuid: string, ifc_pk: number, project_pk: number, initOverrides?: RequestInit): Promise> { - const response = await this.getClassificationsOfElementDeprecatedRaw({ cloud_pk: cloud_pk, element_uuid: element_uuid, ifc_pk: ifc_pk, project_pk: project_pk }, initOverrides); - return await response.value(); - } - - /** - * Retrieve all documents of an element Required scopes: ifc:read, model:read - * Retrieve all documents of an element - */ - async getDocumentsOfElementDeprecatedRaw(requestParameters: GetDocumentsOfElementDeprecatedRequest, initOverrides?: RequestInit): Promise>> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling getDocumentsOfElementDeprecated.'); - } - - if (requestParameters.element_uuid === null || requestParameters.element_uuid === undefined) { - throw new runtime.RequiredError('element_uuid','Required parameter requestParameters.element_uuid was null or undefined when calling getDocumentsOfElementDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling getDocumentsOfElementDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling getDocumentsOfElementDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{element_uuid}/documents`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"element_uuid"}}`, encodeURIComponent(String(requestParameters.element_uuid))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(DocumentFromJSON)); - } - - /** - * Retrieve all documents of an element Required scopes: ifc:read, model:read - * Retrieve all documents of an element - */ - async getDocumentsOfElementDeprecated(cloud_pk: number, element_uuid: string, ifc_pk: number, project_pk: number, initOverrides?: RequestInit): Promise> { - const response = await this.getDocumentsOfElementDeprecatedRaw({ cloud_pk: cloud_pk, element_uuid: element_uuid, ifc_pk: ifc_pk, project_pk: project_pk }, initOverrides); - return await response.value(); - } - - /** - * Retrieve a drawing of a model Required scopes: model:read - * Retrieve a drawing of a model - */ - async getDrawingDeprecatedRaw(requestParameters: GetDrawingDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling getDrawingDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getDrawingDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling getDrawingDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling getDrawingDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/drawing/{id}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => DrawingFromJSON(jsonValue)); - } - - /** - * Retrieve a drawing of a model Required scopes: model:read - * Retrieve a drawing of a model - */ - async getDrawingDeprecated(cloud_pk: number, id: number, ifc_pk: number, project_pk: number, initOverrides?: RequestInit): Promise { - const response = await this.getDrawingDeprecatedRaw({ cloud_pk: cloud_pk, id: id, ifc_pk: ifc_pk, project_pk: project_pk }, initOverrides); - return await response.value(); - } - - /** - * Retrieve all drawings of a model. Required scopes: model:read - * Retrieve all drawings of a model - */ - async getDrawingsDeprecatedRaw(requestParameters: GetDrawingsDeprecatedRequest, initOverrides?: RequestInit): Promise>> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling getDrawingsDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling getDrawingsDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling getDrawingsDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/drawing`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(DrawingFromJSON)); - } - - /** - * Retrieve all drawings of a model. Required scopes: model:read - * Retrieve all drawings of a model - */ - async getDrawingsDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, initOverrides?: RequestInit): Promise> { - const response = await this.getDrawingsDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk }, initOverrides); - return await response.value(); - } - - /** - * Retrieve an element of a model Required scopes: ifc:read, model:read - * Retrieve an element of a model - */ - async getElementDeprecatedRaw(requestParameters: GetElementDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling getElementDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling getElementDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling getElementDeprecated.'); - } - - if (requestParameters.uuid === null || requestParameters.uuid === undefined) { - throw new runtime.RequiredError('uuid','Required parameter requestParameters.uuid was null or undefined when calling getElementDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{uuid}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))).replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ElementFromJSON(jsonValue)); - } - - /** - * Retrieve an element of a model Required scopes: ifc:read, model:read - * Retrieve an element of a model - */ - async getElementDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, uuid: string, initOverrides?: RequestInit): Promise { - const response = await this.getElementDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk, uuid: uuid }, initOverrides); - return await response.value(); - } - - /** - * Retrieve all documents linked to any element with the list of uuids Required scopes: ifc:read, model:read - * Retrieve all documents linked to any element - */ - async getElementLinkedDocumentsDeprecatedRaw(requestParameters: GetElementLinkedDocumentsDeprecatedRequest, initOverrides?: RequestInit): Promise>> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling getElementLinkedDocumentsDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling getElementLinkedDocumentsDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling getElementLinkedDocumentsDeprecated.'); - } - - const queryParameters: any = {}; - - if (requestParameters.classification !== undefined) { - queryParameters['classification'] = requestParameters.classification; - } - - if (requestParameters.classification__notation !== undefined) { - queryParameters['classification__notation'] = requestParameters.classification__notation; - } - - if (requestParameters.type !== undefined) { - queryParameters['type'] = requestParameters.type; - } - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/documents`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(DocumentWithElementListFromJSON)); - } - - /** - * Retrieve all documents linked to any element with the list of uuids Required scopes: ifc:read, model:read - * Retrieve all documents linked to any element - */ - async getElementLinkedDocumentsDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, classification?: string, classification__notation?: string, type?: string, initOverrides?: RequestInit): Promise> { - const response = await this.getElementLinkedDocumentsDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk, classification: classification, classification__notation: classification__notation, type: type }, initOverrides); - return await response.value(); - } - - /** - * Retrieve a PropertySet of an element Required scopes: ifc:read, model:read - * Retrieve a PropertySet of an element - */ - async getElementPropertySetDeprecatedRaw(requestParameters: GetElementPropertySetDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling getElementPropertySetDeprecated.'); - } - - if (requestParameters.element_uuid === null || requestParameters.element_uuid === undefined) { - throw new runtime.RequiredError('element_uuid','Required parameter requestParameters.element_uuid was null or undefined when calling getElementPropertySetDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getElementPropertySetDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling getElementPropertySetDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling getElementPropertySetDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{element_uuid}/propertyset/{id}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"element_uuid"}}`, encodeURIComponent(String(requestParameters.element_uuid))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => PropertySetFromJSON(jsonValue)); - } - - /** - * Retrieve a PropertySet of an element Required scopes: ifc:read, model:read - * Retrieve a PropertySet of an element - */ - async getElementPropertySetDeprecated(cloud_pk: number, element_uuid: string, id: number, ifc_pk: number, project_pk: number, initOverrides?: RequestInit): Promise { - const response = await this.getElementPropertySetDeprecatedRaw({ cloud_pk: cloud_pk, element_uuid: element_uuid, id: id, ifc_pk: ifc_pk, project_pk: project_pk }, initOverrides); - return await response.value(); - } - - /** - * Retrieve all Properties of a PropertySet Required scopes: ifc:read, model:read - * Retrieve all Properties of a PropertySet - */ - async getElementPropertySetPropertiesDeprecatedRaw(requestParameters: GetElementPropertySetPropertiesDeprecatedRequest, initOverrides?: RequestInit): Promise>> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling getElementPropertySetPropertiesDeprecated.'); - } - - if (requestParameters.element_uuid === null || requestParameters.element_uuid === undefined) { - throw new runtime.RequiredError('element_uuid','Required parameter requestParameters.element_uuid was null or undefined when calling getElementPropertySetPropertiesDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling getElementPropertySetPropertiesDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling getElementPropertySetPropertiesDeprecated.'); - } - - if (requestParameters.propertyset_pk === null || requestParameters.propertyset_pk === undefined) { - throw new runtime.RequiredError('propertyset_pk','Required parameter requestParameters.propertyset_pk was null or undefined when calling getElementPropertySetPropertiesDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{element_uuid}/propertyset/{propertyset_pk}/property`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"element_uuid"}}`, encodeURIComponent(String(requestParameters.element_uuid))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))).replace(`{${"propertyset_pk"}}`, encodeURIComponent(String(requestParameters.propertyset_pk))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(PropertyFromJSON)); - } - - /** - * Retrieve all Properties of a PropertySet Required scopes: ifc:read, model:read - * Retrieve all Properties of a PropertySet - */ - async getElementPropertySetPropertiesDeprecated(cloud_pk: number, element_uuid: string, ifc_pk: number, project_pk: number, propertyset_pk: number, initOverrides?: RequestInit): Promise> { - const response = await this.getElementPropertySetPropertiesDeprecatedRaw({ cloud_pk: cloud_pk, element_uuid: element_uuid, ifc_pk: ifc_pk, project_pk: project_pk, propertyset_pk: propertyset_pk }, initOverrides); - return await response.value(); - } - - /** - * Retrieve a Definition of a Property Required scopes: ifc:read, model:read - * Retrieve a Definition of a Property - */ - async getElementPropertySetPropertyDefinitionDeprecatedRaw(requestParameters: GetElementPropertySetPropertyDefinitionDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling getElementPropertySetPropertyDefinitionDeprecated.'); - } - - if (requestParameters.element_uuid === null || requestParameters.element_uuid === undefined) { - throw new runtime.RequiredError('element_uuid','Required parameter requestParameters.element_uuid was null or undefined when calling getElementPropertySetPropertyDefinitionDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getElementPropertySetPropertyDefinitionDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling getElementPropertySetPropertyDefinitionDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling getElementPropertySetPropertyDefinitionDeprecated.'); - } - - if (requestParameters.property_pk === null || requestParameters.property_pk === undefined) { - throw new runtime.RequiredError('property_pk','Required parameter requestParameters.property_pk was null or undefined when calling getElementPropertySetPropertyDefinitionDeprecated.'); - } - - if (requestParameters.propertyset_pk === null || requestParameters.propertyset_pk === undefined) { - throw new runtime.RequiredError('propertyset_pk','Required parameter requestParameters.propertyset_pk was null or undefined when calling getElementPropertySetPropertyDefinitionDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{element_uuid}/propertyset/{propertyset_pk}/property/{property_pk}/propertydefinition/{id}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"element_uuid"}}`, encodeURIComponent(String(requestParameters.element_uuid))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))).replace(`{${"property_pk"}}`, encodeURIComponent(String(requestParameters.property_pk))).replace(`{${"propertyset_pk"}}`, encodeURIComponent(String(requestParameters.propertyset_pk))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => PropertyDefinitionFromJSON(jsonValue)); - } - - /** - * Retrieve a Definition of a Property Required scopes: ifc:read, model:read - * Retrieve a Definition of a Property - */ - async getElementPropertySetPropertyDefinitionDeprecated(cloud_pk: number, element_uuid: string, id: number, ifc_pk: number, project_pk: number, property_pk: number, propertyset_pk: number, initOverrides?: RequestInit): Promise { - const response = await this.getElementPropertySetPropertyDefinitionDeprecatedRaw({ cloud_pk: cloud_pk, element_uuid: element_uuid, id: id, ifc_pk: ifc_pk, project_pk: project_pk, property_pk: property_pk, propertyset_pk: propertyset_pk }, initOverrides); - return await response.value(); - } - - /** - * Retrieve a Unit of a Definition Required scopes: ifc:read, model:read - * Retrieve a Unit of a Definition - */ - async getElementPropertySetPropertyDefinitionUnitDeprecatedRaw(requestParameters: GetElementPropertySetPropertyDefinitionUnitDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling getElementPropertySetPropertyDefinitionUnitDeprecated.'); - } - - if (requestParameters.element_uuid === null || requestParameters.element_uuid === undefined) { - throw new runtime.RequiredError('element_uuid','Required parameter requestParameters.element_uuid was null or undefined when calling getElementPropertySetPropertyDefinitionUnitDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getElementPropertySetPropertyDefinitionUnitDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling getElementPropertySetPropertyDefinitionUnitDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling getElementPropertySetPropertyDefinitionUnitDeprecated.'); - } - - if (requestParameters.property_pk === null || requestParameters.property_pk === undefined) { - throw new runtime.RequiredError('property_pk','Required parameter requestParameters.property_pk was null or undefined when calling getElementPropertySetPropertyDefinitionUnitDeprecated.'); - } - - if (requestParameters.propertydefinition_pk === null || requestParameters.propertydefinition_pk === undefined) { - throw new runtime.RequiredError('propertydefinition_pk','Required parameter requestParameters.propertydefinition_pk was null or undefined when calling getElementPropertySetPropertyDefinitionUnitDeprecated.'); - } - - if (requestParameters.propertyset_pk === null || requestParameters.propertyset_pk === undefined) { - throw new runtime.RequiredError('propertyset_pk','Required parameter requestParameters.propertyset_pk was null or undefined when calling getElementPropertySetPropertyDefinitionUnitDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{element_uuid}/propertyset/{propertyset_pk}/property/{property_pk}/propertydefinition/{propertydefinition_pk}/unit/{id}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"element_uuid"}}`, encodeURIComponent(String(requestParameters.element_uuid))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))).replace(`{${"property_pk"}}`, encodeURIComponent(String(requestParameters.property_pk))).replace(`{${"propertydefinition_pk"}}`, encodeURIComponent(String(requestParameters.propertydefinition_pk))).replace(`{${"propertyset_pk"}}`, encodeURIComponent(String(requestParameters.propertyset_pk))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => UnitFromJSON(jsonValue)); - } - - /** - * Retrieve a Unit of a Definition Required scopes: ifc:read, model:read - * Retrieve a Unit of a Definition - */ - async getElementPropertySetPropertyDefinitionUnitDeprecated(cloud_pk: number, element_uuid: string, id: number, ifc_pk: number, project_pk: number, property_pk: number, propertydefinition_pk: number, propertyset_pk: number, initOverrides?: RequestInit): Promise { - const response = await this.getElementPropertySetPropertyDefinitionUnitDeprecatedRaw({ cloud_pk: cloud_pk, element_uuid: element_uuid, id: id, ifc_pk: ifc_pk, project_pk: project_pk, property_pk: property_pk, propertydefinition_pk: propertydefinition_pk, propertyset_pk: propertyset_pk }, initOverrides); - return await response.value(); - } - - /** - * Retrieve all Units of a Definition Required scopes: ifc:read, model:read - * Retrieve all Units of a Definition - */ - async getElementPropertySetPropertyDefinitionUnitsDeprecatedRaw(requestParameters: GetElementPropertySetPropertyDefinitionUnitsDeprecatedRequest, initOverrides?: RequestInit): Promise>> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling getElementPropertySetPropertyDefinitionUnitsDeprecated.'); - } - - if (requestParameters.element_uuid === null || requestParameters.element_uuid === undefined) { - throw new runtime.RequiredError('element_uuid','Required parameter requestParameters.element_uuid was null or undefined when calling getElementPropertySetPropertyDefinitionUnitsDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling getElementPropertySetPropertyDefinitionUnitsDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling getElementPropertySetPropertyDefinitionUnitsDeprecated.'); - } - - if (requestParameters.property_pk === null || requestParameters.property_pk === undefined) { - throw new runtime.RequiredError('property_pk','Required parameter requestParameters.property_pk was null or undefined when calling getElementPropertySetPropertyDefinitionUnitsDeprecated.'); - } - - if (requestParameters.propertydefinition_pk === null || requestParameters.propertydefinition_pk === undefined) { - throw new runtime.RequiredError('propertydefinition_pk','Required parameter requestParameters.propertydefinition_pk was null or undefined when calling getElementPropertySetPropertyDefinitionUnitsDeprecated.'); - } - - if (requestParameters.propertyset_pk === null || requestParameters.propertyset_pk === undefined) { - throw new runtime.RequiredError('propertyset_pk','Required parameter requestParameters.propertyset_pk was null or undefined when calling getElementPropertySetPropertyDefinitionUnitsDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{element_uuid}/propertyset/{propertyset_pk}/property/{property_pk}/propertydefinition/{propertydefinition_pk}/unit`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"element_uuid"}}`, encodeURIComponent(String(requestParameters.element_uuid))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))).replace(`{${"property_pk"}}`, encodeURIComponent(String(requestParameters.property_pk))).replace(`{${"propertydefinition_pk"}}`, encodeURIComponent(String(requestParameters.propertydefinition_pk))).replace(`{${"propertyset_pk"}}`, encodeURIComponent(String(requestParameters.propertyset_pk))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UnitFromJSON)); - } - - /** - * Retrieve all Units of a Definition Required scopes: ifc:read, model:read - * Retrieve all Units of a Definition - */ - async getElementPropertySetPropertyDefinitionUnitsDeprecated(cloud_pk: number, element_uuid: string, ifc_pk: number, project_pk: number, property_pk: number, propertydefinition_pk: number, propertyset_pk: number, initOverrides?: RequestInit): Promise> { - const response = await this.getElementPropertySetPropertyDefinitionUnitsDeprecatedRaw({ cloud_pk: cloud_pk, element_uuid: element_uuid, ifc_pk: ifc_pk, project_pk: project_pk, property_pk: property_pk, propertydefinition_pk: propertydefinition_pk, propertyset_pk: propertyset_pk }, initOverrides); - return await response.value(); - } - - /** - * Retrieve all Definitions of a PropertySet Required scopes: ifc:read, model:read - * Retrieve all Definitions of a PropertySet - */ - async getElementPropertySetPropertyDefinitionsDeprecatedRaw(requestParameters: GetElementPropertySetPropertyDefinitionsDeprecatedRequest, initOverrides?: RequestInit): Promise>> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling getElementPropertySetPropertyDefinitionsDeprecated.'); - } - - if (requestParameters.element_uuid === null || requestParameters.element_uuid === undefined) { - throw new runtime.RequiredError('element_uuid','Required parameter requestParameters.element_uuid was null or undefined when calling getElementPropertySetPropertyDefinitionsDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling getElementPropertySetPropertyDefinitionsDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling getElementPropertySetPropertyDefinitionsDeprecated.'); - } - - if (requestParameters.property_pk === null || requestParameters.property_pk === undefined) { - throw new runtime.RequiredError('property_pk','Required parameter requestParameters.property_pk was null or undefined when calling getElementPropertySetPropertyDefinitionsDeprecated.'); - } - - if (requestParameters.propertyset_pk === null || requestParameters.propertyset_pk === undefined) { - throw new runtime.RequiredError('propertyset_pk','Required parameter requestParameters.propertyset_pk was null or undefined when calling getElementPropertySetPropertyDefinitionsDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{element_uuid}/propertyset/{propertyset_pk}/property/{property_pk}/propertydefinition`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"element_uuid"}}`, encodeURIComponent(String(requestParameters.element_uuid))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))).replace(`{${"property_pk"}}`, encodeURIComponent(String(requestParameters.property_pk))).replace(`{${"propertyset_pk"}}`, encodeURIComponent(String(requestParameters.propertyset_pk))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(PropertyDefinitionFromJSON)); - } - - /** - * Retrieve all Definitions of a PropertySet Required scopes: ifc:read, model:read - * Retrieve all Definitions of a PropertySet - */ - async getElementPropertySetPropertyDefinitionsDeprecated(cloud_pk: number, element_uuid: string, ifc_pk: number, project_pk: number, property_pk: number, propertyset_pk: number, initOverrides?: RequestInit): Promise> { - const response = await this.getElementPropertySetPropertyDefinitionsDeprecatedRaw({ cloud_pk: cloud_pk, element_uuid: element_uuid, ifc_pk: ifc_pk, project_pk: project_pk, property_pk: property_pk, propertyset_pk: propertyset_pk }, initOverrides); - return await response.value(); - } - - /** - * Retrieve a Property of a PropertySet Required scopes: ifc:read, model:read - * Retrieve a Property of a PropertySet - */ - async getElementPropertySetPropertyDeprecatedRaw(requestParameters: GetElementPropertySetPropertyDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling getElementPropertySetPropertyDeprecated.'); - } - - if (requestParameters.element_uuid === null || requestParameters.element_uuid === undefined) { - throw new runtime.RequiredError('element_uuid','Required parameter requestParameters.element_uuid was null or undefined when calling getElementPropertySetPropertyDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getElementPropertySetPropertyDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling getElementPropertySetPropertyDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling getElementPropertySetPropertyDeprecated.'); - } - - if (requestParameters.propertyset_pk === null || requestParameters.propertyset_pk === undefined) { - throw new runtime.RequiredError('propertyset_pk','Required parameter requestParameters.propertyset_pk was null or undefined when calling getElementPropertySetPropertyDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{element_uuid}/propertyset/{propertyset_pk}/property/{id}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"element_uuid"}}`, encodeURIComponent(String(requestParameters.element_uuid))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))).replace(`{${"propertyset_pk"}}`, encodeURIComponent(String(requestParameters.propertyset_pk))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => PropertyFromJSON(jsonValue)); - } - - /** - * Retrieve a Property of a PropertySet Required scopes: ifc:read, model:read - * Retrieve a Property of a PropertySet - */ - async getElementPropertySetPropertyDeprecated(cloud_pk: number, element_uuid: string, id: number, ifc_pk: number, project_pk: number, propertyset_pk: number, initOverrides?: RequestInit): Promise { - const response = await this.getElementPropertySetPropertyDeprecatedRaw({ cloud_pk: cloud_pk, element_uuid: element_uuid, id: id, ifc_pk: ifc_pk, project_pk: project_pk, propertyset_pk: propertyset_pk }, initOverrides); - return await response.value(); - } - - /** - * Retrieve all PropertySets of an element Required scopes: ifc:read, model:read - * Retrieve all PropertySets of an element - */ - async getElementPropertySetsDeprecatedRaw(requestParameters: GetElementPropertySetsDeprecatedRequest, initOverrides?: RequestInit): Promise>> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling getElementPropertySetsDeprecated.'); - } - - if (requestParameters.element_uuid === null || requestParameters.element_uuid === undefined) { - throw new runtime.RequiredError('element_uuid','Required parameter requestParameters.element_uuid was null or undefined when calling getElementPropertySetsDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling getElementPropertySetsDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling getElementPropertySetsDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{element_uuid}/propertyset`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"element_uuid"}}`, encodeURIComponent(String(requestParameters.element_uuid))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(PropertySetFromJSON)); - } - - /** - * Retrieve all PropertySets of an element Required scopes: ifc:read, model:read - * Retrieve all PropertySets of an element - */ - async getElementPropertySetsDeprecated(cloud_pk: number, element_uuid: string, ifc_pk: number, project_pk: number, initOverrides?: RequestInit): Promise> { - const response = await this.getElementPropertySetsDeprecatedRaw({ cloud_pk: cloud_pk, element_uuid: element_uuid, ifc_pk: ifc_pk, project_pk: project_pk }, initOverrides); - return await response.value(); - } - - /** - * Retrieve all elements of a model. If not filtered, the json may be very large. To efficently retrieve all elements and their data, see getRawElements Required scopes: ifc:read, model:read - * Retrieve all elements of a model - */ - async getElementsDeprecatedRaw(requestParameters: GetElementsDeprecatedRequest, initOverrides?: RequestInit): Promise>> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling getElementsDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling getElementsDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling getElementsDeprecated.'); - } - - const queryParameters: any = {}; - - if (requestParameters.classification !== undefined) { - queryParameters['classification'] = requestParameters.classification; - } - - if (requestParameters.classification__notation !== undefined) { - queryParameters['classification__notation'] = requestParameters.classification__notation; - } - - if (requestParameters.type !== undefined) { - queryParameters['type'] = requestParameters.type; - } - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ElementFromJSON)); - } - - /** - * Retrieve all elements of a model. If not filtered, the json may be very large. To efficently retrieve all elements and their data, see getRawElements Required scopes: ifc:read, model:read - * Retrieve all elements of a model - */ - async getElementsDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, classification?: string, classification__notation?: string, type?: string, initOverrides?: RequestInit): Promise> { - const response = await this.getElementsDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk, classification: classification, classification__notation: classification__notation, type: type }, initOverrides); - return await response.value(); - } - - /** - * Retrieve all elements with the classification Required scopes: ifc:read, model:read - * Retrieve all elements with the classification - */ - async getElementsFromClassificationDeprecatedRaw(requestParameters: GetElementsFromClassificationDeprecatedRequest, initOverrides?: RequestInit): Promise>> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling getElementsFromClassificationDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling getElementsFromClassificationDeprecated.'); - } - - if (requestParameters.model_classification_pk === null || requestParameters.model_classification_pk === undefined) { - throw new runtime.RequiredError('model_classification_pk','Required parameter requestParameters.model_classification_pk was null or undefined when calling getElementsFromClassificationDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling getElementsFromClassificationDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/classification/{model_classification_pk}/element`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"model_classification_pk"}}`, encodeURIComponent(String(requestParameters.model_classification_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ElementFromJSON)); - } - - /** - * Retrieve all elements with the classification Required scopes: ifc:read, model:read - * Retrieve all elements with the classification - */ - async getElementsFromClassificationDeprecated(cloud_pk: number, ifc_pk: number, model_classification_pk: number, project_pk: number, initOverrides?: RequestInit): Promise> { - const response = await this.getElementsFromClassificationDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, model_classification_pk: model_classification_pk, project_pk: project_pk }, initOverrides); - return await response.value(); - } - - /** - * Retrieve all classifications in a model Required scopes: ifc:read, model:read - * Retrieve all classifications in a model - */ - async getIfcClassificationsDeprecatedRaw(requestParameters: GetIfcClassificationsDeprecatedRequest, initOverrides?: RequestInit): Promise>> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling getIfcClassificationsDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling getIfcClassificationsDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling getIfcClassificationsDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/classification`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ClassificationFromJSON)); - } - - /** - * Retrieve all classifications in a model Required scopes: ifc:read, model:read - * Retrieve all classifications in a model - */ - async getIfcClassificationsDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, initOverrides?: RequestInit): Promise> { - const response = await this.getIfcClassificationsDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk }, initOverrides); - return await response.value(); - } - - /** - * Retrieve one model Required scopes: ifc:read, model:read - * Retrieve one model - */ - async getIfcDeprecatedRaw(requestParameters: GetIfcDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling getIfcDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getIfcDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling getIfcDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{id}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ModelFromJSON(jsonValue)); - } - - /** - * Retrieve one model Required scopes: ifc:read, model:read - * Retrieve one model - */ - async getIfcDeprecated(cloud_pk: number, id: number, project_pk: number, initOverrides?: RequestInit): Promise { - const response = await this.getIfcDeprecatedRaw({ cloud_pk: cloud_pk, id: id, project_pk: project_pk }, initOverrides); - return await response.value(); - } - - /** - * Retrieve a material of a model Required scopes: ifc:read, model:read - * Retrieve a material of a model - */ - async getIfcMaterialDeprecatedRaw(requestParameters: GetIfcMaterialDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling getIfcMaterialDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getIfcMaterialDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling getIfcMaterialDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling getIfcMaterialDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/material/{id}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => MaterialFromJSON(jsonValue)); - } - - /** - * Retrieve a material of a model Required scopes: ifc:read, model:read - * Retrieve a material of a model - */ - async getIfcMaterialDeprecated(cloud_pk: number, id: number, ifc_pk: number, project_pk: number, initOverrides?: RequestInit): Promise { - const response = await this.getIfcMaterialDeprecatedRaw({ cloud_pk: cloud_pk, id: id, ifc_pk: ifc_pk, project_pk: project_pk }, initOverrides); - return await response.value(); - } - - /** - * Retrieve all materials of a model. Required scopes: ifc:read, model:read - * Retrieve all materials of a model - */ - async getIfcMaterialsDeprecatedRaw(requestParameters: GetIfcMaterialsDeprecatedRequest, initOverrides?: RequestInit): Promise>> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling getIfcMaterialsDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling getIfcMaterialsDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling getIfcMaterialsDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/material`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(MaterialFromJSON)); - } - - /** - * Retrieve all materials of a model. Required scopes: ifc:read, model:read - * Retrieve all materials of a model - */ - async getIfcMaterialsDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, initOverrides?: RequestInit): Promise> { - const response = await this.getIfcMaterialsDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk }, initOverrides); - return await response.value(); - } - - /** - * Retrieve all PropertySets of a model Required scopes: ifc:read, model:read - * Retrieve all Properties of a model - */ - async getIfcPropertiesDeprecatedRaw(requestParameters: GetIfcPropertiesDeprecatedRequest, initOverrides?: RequestInit): Promise>> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling getIfcPropertiesDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling getIfcPropertiesDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling getIfcPropertiesDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/property`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(PropertyFromJSON)); - } - - /** - * Retrieve all PropertySets of a model Required scopes: ifc:read, model:read - * Retrieve all Properties of a model - */ - async getIfcPropertiesDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, initOverrides?: RequestInit): Promise> { - const response = await this.getIfcPropertiesDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk }, initOverrides); - return await response.value(); - } - - /** - * Retrieve a PropertyDefinition of a model Required scopes: ifc:read, model:read - * Retrieve a PropertyDefinition of a model - */ - async getIfcPropertyDefinitionDeprecatedRaw(requestParameters: GetIfcPropertyDefinitionDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling getIfcPropertyDefinitionDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getIfcPropertyDefinitionDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling getIfcPropertyDefinitionDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling getIfcPropertyDefinitionDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/propertydefinition/{id}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => PropertyDefinitionFromJSON(jsonValue)); - } - - /** - * Retrieve a PropertyDefinition of a model Required scopes: ifc:read, model:read - * Retrieve a PropertyDefinition of a model - */ - async getIfcPropertyDefinitionDeprecated(cloud_pk: number, id: number, ifc_pk: number, project_pk: number, initOverrides?: RequestInit): Promise { - const response = await this.getIfcPropertyDefinitionDeprecatedRaw({ cloud_pk: cloud_pk, id: id, ifc_pk: ifc_pk, project_pk: project_pk }, initOverrides); - return await response.value(); - } - - /** - * Retrieve all PropertyDefinitions of a model Required scopes: ifc:read, model:read - * Retrieve all PropertyDefinitions of a model - */ - async getIfcPropertyDefinitionsDeprecatedRaw(requestParameters: GetIfcPropertyDefinitionsDeprecatedRequest, initOverrides?: RequestInit): Promise>> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling getIfcPropertyDefinitionsDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling getIfcPropertyDefinitionsDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling getIfcPropertyDefinitionsDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/propertydefinition`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(PropertyDefinitionFromJSON)); - } - - /** - * Retrieve all PropertyDefinitions of a model Required scopes: ifc:read, model:read - * Retrieve all PropertyDefinitions of a model - */ - async getIfcPropertyDefinitionsDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, initOverrides?: RequestInit): Promise> { - const response = await this.getIfcPropertyDefinitionsDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk }, initOverrides); - return await response.value(); - } - - /** - * Retrieve a Property of a model Required scopes: ifc:read, model:read - * Retrieve a Property of a model - */ - async getIfcPropertyDeprecatedRaw(requestParameters: GetIfcPropertyDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling getIfcPropertyDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getIfcPropertyDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling getIfcPropertyDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling getIfcPropertyDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/property/{id}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => PropertyFromJSON(jsonValue)); - } - - /** - * Retrieve a Property of a model Required scopes: ifc:read, model:read - * Retrieve a Property of a model - */ - async getIfcPropertyDeprecated(cloud_pk: number, id: number, ifc_pk: number, project_pk: number, initOverrides?: RequestInit): Promise { - const response = await this.getIfcPropertyDeprecatedRaw({ cloud_pk: cloud_pk, id: id, ifc_pk: ifc_pk, project_pk: project_pk }, initOverrides); - return await response.value(); - } - - /** - * Retrieve a Unit of a model Required scopes: ifc:read, model:read - * Retrieve a Unit of a model - */ - async getIfcUnitDeprecatedRaw(requestParameters: GetIfcUnitDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling getIfcUnitDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getIfcUnitDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling getIfcUnitDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling getIfcUnitDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/unit/{id}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => UnitFromJSON(jsonValue)); - } - - /** - * Retrieve a Unit of a model Required scopes: ifc:read, model:read - * Retrieve a Unit of a model - */ - async getIfcUnitDeprecated(cloud_pk: number, id: number, ifc_pk: number, project_pk: number, initOverrides?: RequestInit): Promise { - const response = await this.getIfcUnitDeprecatedRaw({ cloud_pk: cloud_pk, id: id, ifc_pk: ifc_pk, project_pk: project_pk }, initOverrides); - return await response.value(); - } - - /** - * Retrieve all Units of a model Required scopes: ifc:read, model:read - * Retrieve all Units of a model - */ - async getIfcUnitsDeprecatedRaw(requestParameters: GetIfcUnitsDeprecatedRequest, initOverrides?: RequestInit): Promise>> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling getIfcUnitsDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling getIfcUnitsDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling getIfcUnitsDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/unit`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UnitFromJSON)); - } - - /** - * Retrieve all Units of a model Required scopes: ifc:read, model:read - * Retrieve all Units of a model - */ - async getIfcUnitsDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, initOverrides?: RequestInit): Promise> { - const response = await this.getIfcUnitsDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk }, initOverrides); - return await response.value(); - } - - /** - * Retrieve all models. The field `type` allows you to discriminate which kind of model it is. Required scopes: ifc:read, model:read - * Retrieve all models - */ - async getIfcsDeprecatedRaw(requestParameters: GetIfcsDeprecatedRequest, initOverrides?: RequestInit): Promise>> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling getIfcsDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling getIfcsDeprecated.'); - } - - const queryParameters: any = {}; - - if (requestParameters.source !== undefined) { - queryParameters['source'] = requestParameters.source; - } - - if (requestParameters.status) { - queryParameters['status'] = requestParameters.status; - } - - if (requestParameters.type) { - queryParameters['type'] = requestParameters.type; - } - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ModelFromJSON)); - } - - /** - * Retrieve all models. The field `type` allows you to discriminate which kind of model it is. Required scopes: ifc:read, model:read - * Retrieve all models - */ - async getIfcsDeprecated(cloud_pk: number, project_pk: number, source?: GetIfcsDeprecatedSourceEnum, status?: Array, type?: Array, initOverrides?: RequestInit): Promise> { - const response = await this.getIfcsDeprecatedRaw({ cloud_pk: cloud_pk, project_pk: project_pk, source: source, status: status, type: type }, initOverrides); - return await response.value(); - } - - /** - * Retrieve a layer of a model Required scopes: ifc:read, model:read - * Retrieve a layer of a model - */ - async getLayerDeprecatedRaw(requestParameters: GetLayerDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling getLayerDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getLayerDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling getLayerDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling getLayerDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/layer/{id}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => LayerFromJSON(jsonValue)); - } - - /** - * Retrieve a layer of a model Required scopes: ifc:read, model:read - * Retrieve a layer of a model - */ - async getLayerDeprecated(cloud_pk: number, id: number, ifc_pk: number, project_pk: number, initOverrides?: RequestInit): Promise { - const response = await this.getLayerDeprecatedRaw({ cloud_pk: cloud_pk, id: id, ifc_pk: ifc_pk, project_pk: project_pk }, initOverrides); - return await response.value(); - } - - /** - * Retrieve all layers of a model. Required scopes: ifc:read, model:read - * Retrieve all layers of a model - */ - async getLayersDeprecatedRaw(requestParameters: GetLayersDeprecatedRequest, initOverrides?: RequestInit): Promise>> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling getLayersDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling getLayersDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling getLayersDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/layer`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(LayerFromJSON)); - } - - /** - * Retrieve all layers of a model. Required scopes: ifc:read, model:read - * Retrieve all layers of a model - */ - async getLayersDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, initOverrides?: RequestInit): Promise> { - const response = await this.getLayersDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk }, initOverrides); - return await response.value(); - } - - /** - * Retrieve a material of a model Required scopes: ifc:read, model:read - * Retrieve a material of a model - */ - async getMaterialDeprecatedRaw(requestParameters: GetMaterialDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling getMaterialDeprecated.'); - } - - if (requestParameters.element_uuid === null || requestParameters.element_uuid === undefined) { - throw new runtime.RequiredError('element_uuid','Required parameter requestParameters.element_uuid was null or undefined when calling getMaterialDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getMaterialDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling getMaterialDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling getMaterialDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{element_uuid}/material/{id}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"element_uuid"}}`, encodeURIComponent(String(requestParameters.element_uuid))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => MaterialFromJSON(jsonValue)); - } - - /** - * Retrieve a material of a model Required scopes: ifc:read, model:read - * Retrieve a material of a model - */ - async getMaterialDeprecated(cloud_pk: number, element_uuid: string, id: number, ifc_pk: number, project_pk: number, initOverrides?: RequestInit): Promise { - const response = await this.getMaterialDeprecatedRaw({ cloud_pk: cloud_pk, element_uuid: element_uuid, id: id, ifc_pk: ifc_pk, project_pk: project_pk }, initOverrides); - return await response.value(); - } - - /** - * Retrieve all materials of a model. Required scopes: ifc:read, model:read - * Retrieve all materials of a model - */ - async getMaterialsDeprecatedRaw(requestParameters: GetMaterialsDeprecatedRequest, initOverrides?: RequestInit): Promise>> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling getMaterialsDeprecated.'); - } - - if (requestParameters.element_uuid === null || requestParameters.element_uuid === undefined) { - throw new runtime.RequiredError('element_uuid','Required parameter requestParameters.element_uuid was null or undefined when calling getMaterialsDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling getMaterialsDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling getMaterialsDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{element_uuid}/material`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"element_uuid"}}`, encodeURIComponent(String(requestParameters.element_uuid))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(MaterialFromJSON)); - } - - /** - * Retrieve all materials of a model. Required scopes: ifc:read, model:read - * Retrieve all materials of a model - */ - async getMaterialsDeprecated(cloud_pk: number, element_uuid: string, ifc_pk: number, project_pk: number, initOverrides?: RequestInit): Promise> { - const response = await this.getMaterialsDeprecatedRaw({ cloud_pk: cloud_pk, element_uuid: element_uuid, ifc_pk: ifc_pk, project_pk: project_pk }, initOverrides); - return await response.value(); - } - - /** - * Retrieve a processor handler Required scopes: ifc:read, model:read - * Retrieve a processor handler - */ - async getProcessorHandlerDeprecatedRaw(requestParameters: GetProcessorHandlerDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling getProcessorHandlerDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getProcessorHandlerDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling getProcessorHandlerDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling getProcessorHandlerDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/processorhandler/{id}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ProcessorHandlerFromJSON(jsonValue)); - } - - /** - * Retrieve a processor handler Required scopes: ifc:read, model:read - * Retrieve a processor handler - */ - async getProcessorHandlerDeprecated(cloud_pk: number, id: number, ifc_pk: number, project_pk: number, initOverrides?: RequestInit): Promise { - const response = await this.getProcessorHandlerDeprecatedRaw({ cloud_pk: cloud_pk, id: id, ifc_pk: ifc_pk, project_pk: project_pk }, initOverrides); - return await response.value(); - } - - /** - * Get all processor handlers Required scopes: ifc:read, model:read - * Get all processor handlers - */ - async getProcessorHandlersDeprecatedRaw(requestParameters: GetProcessorHandlersDeprecatedRequest, initOverrides?: RequestInit): Promise>> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling getProcessorHandlersDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling getProcessorHandlersDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling getProcessorHandlersDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/processorhandler`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ProcessorHandlerFromJSON)); - } - - /** - * Get all processor handlers Required scopes: ifc:read, model:read - * Get all processor handlers - */ - async getProcessorHandlersDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, initOverrides?: RequestInit): Promise> { - const response = await this.getProcessorHandlersDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk }, initOverrides); - return await response.value(); - } - - /** - * Retrieve a PropertySet of a model Required scopes: ifc:read, model:read - * Retrieve a PropertySet of a model - */ - async getPropertySetDeprecatedRaw(requestParameters: GetPropertySetDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling getPropertySetDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getPropertySetDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling getPropertySetDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling getPropertySetDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/propertyset/{id}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => PropertySetFromJSON(jsonValue)); - } - - /** - * Retrieve a PropertySet of a model Required scopes: ifc:read, model:read - * Retrieve a PropertySet of a model - */ - async getPropertySetDeprecated(cloud_pk: number, id: number, ifc_pk: number, project_pk: number, initOverrides?: RequestInit): Promise { - const response = await this.getPropertySetDeprecatedRaw({ cloud_pk: cloud_pk, id: id, ifc_pk: ifc_pk, project_pk: project_pk }, initOverrides); - return await response.value(); - } - - /** - * Retrieve all PropertySets of a model Required scopes: ifc:read, model:read - * Retrieve all PropertySets of a model - */ - async getPropertySetsDeprecatedRaw(requestParameters: GetPropertySetsDeprecatedRequest, initOverrides?: RequestInit): Promise>> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling getPropertySetsDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling getPropertySetsDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling getPropertySetsDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/propertyset`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(PropertySetFromJSON)); - } - - /** - * Retrieve all PropertySets of a model Required scopes: ifc:read, model:read - * Retrieve all PropertySets of a model - */ - async getPropertySetsDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, initOverrides?: RequestInit): Promise> { - const response = await this.getPropertySetsDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk }, initOverrides); - return await response.value(); - } - - /** - * Instead of a nested representation, this route respond with a flat structure and indices pointing to related object. The IFC file will not be updated. The created elements will be accessible over the API and when exporting an IFC file. Returns elements, property_sets, properties, definitions and units in a JSON optimized structure Required scopes: ifc:read, model:read - * Retrieve all elements in a optimized format - */ - async getRawElementsDeprecatedRaw(requestParameters: GetRawElementsDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling getRawElementsDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling getRawElementsDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling getRawElementsDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/raw`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => RawElementsFromJSON(jsonValue)); - } - - /** - * Instead of a nested representation, this route respond with a flat structure and indices pointing to related object. The IFC file will not be updated. The created elements will be accessible over the API and when exporting an IFC file. Returns elements, property_sets, properties, definitions and units in a JSON optimized structure Required scopes: ifc:read, model:read - * Retrieve all elements in a optimized format - */ - async getRawElementsDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, initOverrides?: RequestInit): Promise { - const response = await this.getRawElementsDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk }, initOverrides); - return await response.value(); - } - - /** - * Retrieve an element of a model with a simple value representation Required scopes: ifc:read, model:read - * Retrieve an element of a model with a simple value representation - */ - async getSimpleElementDeprecatedRaw(requestParameters: GetSimpleElementDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling getSimpleElementDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling getSimpleElementDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling getSimpleElementDeprecated.'); - } - - if (requestParameters.uuid === null || requestParameters.uuid === undefined) { - throw new runtime.RequiredError('uuid','Required parameter requestParameters.uuid was null or undefined when calling getSimpleElementDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{uuid}/simple`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))).replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => SimpleElementFromJSON(jsonValue)); - } - - /** - * Retrieve an element of a model with a simple value representation Required scopes: ifc:read, model:read - * Retrieve an element of a model with a simple value representation - */ - async getSimpleElementDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, uuid: string, initOverrides?: RequestInit): Promise { - const response = await this.getSimpleElementDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk, uuid: uuid }, initOverrides); - return await response.value(); - } - - /** - * Retrieve all elements of a model with a simple value representation Required scopes: ifc:read, model:read - * Retrieve all elements of a model with a simple value representation - */ - async getSimpleElementsDeprecatedRaw(requestParameters: GetSimpleElementsDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling getSimpleElementsDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling getSimpleElementsDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling getSimpleElementsDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/simple`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => SimpleElementFromJSON(jsonValue)); - } - - /** - * Retrieve all elements of a model with a simple value representation Required scopes: ifc:read, model:read - * Retrieve all elements of a model with a simple value representation - */ - async getSimpleElementsDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, initOverrides?: RequestInit): Promise { - const response = await this.getSimpleElementsDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk }, initOverrides); - return await response.value(); - } - - /** - * Retrieve one space of the model Required scopes: ifc:read, model:read - * Retrieve one space of the model - */ - async getSpaceDeprecatedRaw(requestParameters: GetSpaceDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling getSpaceDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getSpaceDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling getSpaceDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling getSpaceDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/space/{id}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => SpaceFromJSON(jsonValue)); - } - - /** - * Retrieve one space of the model Required scopes: ifc:read, model:read - * Retrieve one space of the model - */ - async getSpaceDeprecated(cloud_pk: number, id: number, ifc_pk: number, project_pk: number, initOverrides?: RequestInit): Promise { - const response = await this.getSpaceDeprecatedRaw({ cloud_pk: cloud_pk, id: id, ifc_pk: ifc_pk, project_pk: project_pk }, initOverrides); - return await response.value(); - } - - /** - * Retrieve all spaces of the model Required scopes: ifc:read, model:read - * Retrieve all spaces of the model - */ - async getSpacesDeprecatedRaw(requestParameters: GetSpacesDeprecatedRequest, initOverrides?: RequestInit): Promise>> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling getSpacesDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling getSpacesDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling getSpacesDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/space`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(SpaceFromJSON)); - } - - /** - * Retrieve all spaces of the model Required scopes: ifc:read, model:read - * Retrieve all spaces of the model - */ - async getSpacesDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, initOverrides?: RequestInit): Promise> { - const response = await this.getSpacesDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk }, initOverrides); - return await response.value(); - } - - /** - * Retrieve a storey of a model Required scopes: ifc:read, model:read - * Retrieve a storey of a model - */ - async getStoreyDeprecatedRaw(requestParameters: GetStoreyDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling getStoreyDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling getStoreyDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling getStoreyDeprecated.'); - } - - if (requestParameters.uuid === null || requestParameters.uuid === undefined) { - throw new runtime.RequiredError('uuid','Required parameter requestParameters.uuid was null or undefined when calling getStoreyDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/storey/{uuid}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))).replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => StoreyFromJSON(jsonValue)); - } - - /** - * Retrieve a storey of a model Required scopes: ifc:read, model:read - * Retrieve a storey of a model - */ - async getStoreyDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, uuid: string, initOverrides?: RequestInit): Promise { - const response = await this.getStoreyDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk, uuid: uuid }, initOverrides); - return await response.value(); - } - - /** - * Retrieve the postioning of the plan in the storey Required scopes: ifc:read, model:read - * Retrieve the postioning of the plan in the storey - */ - async getStoreyPlanPositioningDeprecatedRaw(requestParameters: GetStoreyPlanPositioningDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling getStoreyPlanPositioningDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getStoreyPlanPositioningDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling getStoreyPlanPositioningDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling getStoreyPlanPositioningDeprecated.'); - } - - if (requestParameters.storey_uuid === null || requestParameters.storey_uuid === undefined) { - throw new runtime.RequiredError('storey_uuid','Required parameter requestParameters.storey_uuid was null or undefined when calling getStoreyPlanPositioningDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/storey/{storey_uuid}/plan/{id}/positioning`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))).replace(`{${"storey_uuid"}}`, encodeURIComponent(String(requestParameters.storey_uuid))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => PositioningPlanFromJSON(jsonValue)); - } - - /** - * Retrieve the postioning of the plan in the storey Required scopes: ifc:read, model:read - * Retrieve the postioning of the plan in the storey - */ - async getStoreyPlanPositioningDeprecated(cloud_pk: number, id: number, ifc_pk: number, project_pk: number, storey_uuid: string, initOverrides?: RequestInit): Promise { - const response = await this.getStoreyPlanPositioningDeprecatedRaw({ cloud_pk: cloud_pk, id: id, ifc_pk: ifc_pk, project_pk: project_pk, storey_uuid: storey_uuid }, initOverrides); - return await response.value(); - } - - /** - * Retrieve all storeys of a model. Required scopes: ifc:read, model:read - * Retrieve all storeys of a model - */ - async getStoreysDeprecatedRaw(requestParameters: GetStoreysDeprecatedRequest, initOverrides?: RequestInit): Promise>> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling getStoreysDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling getStoreysDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling getStoreysDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/storey`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(StoreyFromJSON)); - } - - /** - * Retrieve all storeys of a model. Required scopes: ifc:read, model:read - * Retrieve all storeys of a model - */ - async getStoreysDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, initOverrides?: RequestInit): Promise> { - const response = await this.getStoreysDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk }, initOverrides); - return await response.value(); - } - - /** - * Retrieve a system of a model Required scopes: ifc:read, model:read - * Retrieve a system of a model - */ - async getSystemDeprecatedRaw(requestParameters: GetSystemDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling getSystemDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling getSystemDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling getSystemDeprecated.'); - } - - if (requestParameters.uuid === null || requestParameters.uuid === undefined) { - throw new runtime.RequiredError('uuid','Required parameter requestParameters.uuid was null or undefined when calling getSystemDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/system/{uuid}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))).replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => SystemFromJSON(jsonValue)); - } - - /** - * Retrieve a system of a model Required scopes: ifc:read, model:read - * Retrieve a system of a model - */ - async getSystemDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, uuid: string, initOverrides?: RequestInit): Promise { - const response = await this.getSystemDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk, uuid: uuid }, initOverrides); - return await response.value(); - } - - /** - * Retrieve all systems of a model. Required scopes: ifc:read, model:read - * Retrieve all systems of a model - */ - async getSystemsDeprecatedRaw(requestParameters: GetSystemsDeprecatedRequest, initOverrides?: RequestInit): Promise>> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling getSystemsDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling getSystemsDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling getSystemsDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/system`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(SystemFromJSON)); - } - - /** - * Retrieve all systems of a model. Required scopes: ifc:read, model:read - * Retrieve all systems of a model - */ - async getSystemsDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, initOverrides?: RequestInit): Promise> { - const response = await this.getSystemsDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk }, initOverrides); - return await response.value(); - } - - /** - * This is only availble if the model is a POINT_CLOUD Required scopes: ifc:read, model:read - * Retrieve the tileset of the model - */ - async getTilesetDeprecatedRaw(requestParameters: GetTilesetDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling getTilesetDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getTilesetDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling getTilesetDeprecated.'); - } - - const queryParameters: any = {}; - - if (requestParameters.tile_format !== undefined) { - queryParameters['tile_format'] = requestParameters.tile_format; - } - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{id}/tileset`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - * This is only availble if the model is a POINT_CLOUD Required scopes: ifc:read, model:read - * Retrieve the tileset of the model - */ - async getTilesetDeprecated(cloud_pk: number, id: number, project_pk: number, tile_format?: GetTilesetDeprecatedTileFormatEnum, initOverrides?: RequestInit): Promise { - await this.getTilesetDeprecatedRaw({ cloud_pk: cloud_pk, id: id, project_pk: project_pk, tile_format: tile_format }, initOverrides); - } - - /** - * Retrieve one zone of a model Required scopes: ifc:read, model:read - * Retrieve one zone of a model - */ - async getZoneDeprecatedRaw(requestParameters: GetZoneDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling getZoneDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getZoneDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling getZoneDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling getZoneDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/zone/{id}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ZoneFromJSON(jsonValue)); - } - - /** - * Retrieve one zone of a model Required scopes: ifc:read, model:read - * Retrieve one zone of a model - */ - async getZoneDeprecated(cloud_pk: number, id: number, ifc_pk: number, project_pk: number, initOverrides?: RequestInit): Promise { - const response = await this.getZoneDeprecatedRaw({ cloud_pk: cloud_pk, id: id, ifc_pk: ifc_pk, project_pk: project_pk }, initOverrides); - return await response.value(); - } - - /** - * Retrieve one space of a zone Required scopes: ifc:read, model:read - * Retrieve one space of a zone - */ - async getZoneSpaceDeprecatedRaw(requestParameters: GetZoneSpaceDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling getZoneSpaceDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getZoneSpaceDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling getZoneSpaceDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling getZoneSpaceDeprecated.'); - } - - if (requestParameters.zone_pk === null || requestParameters.zone_pk === undefined) { - throw new runtime.RequiredError('zone_pk','Required parameter requestParameters.zone_pk was null or undefined when calling getZoneSpaceDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/zone/{zone_pk}/space/{id}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))).replace(`{${"zone_pk"}}`, encodeURIComponent(String(requestParameters.zone_pk))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ZoneSpaceFromJSON(jsonValue)); - } - - /** - * Retrieve one space of a zone Required scopes: ifc:read, model:read - * Retrieve one space of a zone - */ - async getZoneSpaceDeprecated(cloud_pk: number, id: number, ifc_pk: number, project_pk: number, zone_pk: number, initOverrides?: RequestInit): Promise { - const response = await this.getZoneSpaceDeprecatedRaw({ cloud_pk: cloud_pk, id: id, ifc_pk: ifc_pk, project_pk: project_pk, zone_pk: zone_pk }, initOverrides); - return await response.value(); - } - - /** - * Retrieve all spaces of a zone Required scopes: ifc:read, model:read - * Retrieve all spaces of a zone - */ - async getZoneSpacesDeprecatedRaw(requestParameters: GetZoneSpacesDeprecatedRequest, initOverrides?: RequestInit): Promise>> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling getZoneSpacesDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling getZoneSpacesDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling getZoneSpacesDeprecated.'); - } - - if (requestParameters.zone_pk === null || requestParameters.zone_pk === undefined) { - throw new runtime.RequiredError('zone_pk','Required parameter requestParameters.zone_pk was null or undefined when calling getZoneSpacesDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/zone/{zone_pk}/space`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))).replace(`{${"zone_pk"}}`, encodeURIComponent(String(requestParameters.zone_pk))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ZoneSpaceFromJSON)); - } - - /** - * Retrieve all spaces of a zone Required scopes: ifc:read, model:read - * Retrieve all spaces of a zone - */ - async getZoneSpacesDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, zone_pk: number, initOverrides?: RequestInit): Promise> { - const response = await this.getZoneSpacesDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk, zone_pk: zone_pk }, initOverrides); - return await response.value(); - } - - /** - * Retrieve parent zones of a model. Children zones we\'ll be in the \'zones\' field Required scopes: ifc:read, model:read - * Retrieve zones of a model - */ - async getZonesDeprecatedRaw(requestParameters: GetZonesDeprecatedRequest, initOverrides?: RequestInit): Promise>> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling getZonesDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling getZonesDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling getZonesDeprecated.'); - } - - const queryParameters: any = {}; - - if (requestParameters.color !== undefined) { - queryParameters['color'] = requestParameters.color; - } - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/zone`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ZoneFromJSON)); - } - - /** - * Retrieve parent zones of a model. Children zones we\'ll be in the \'zones\' field Required scopes: ifc:read, model:read - * Retrieve zones of a model - */ - async getZonesDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, color?: string, initOverrides?: RequestInit): Promise> { - const response = await this.getZonesDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk, color: color }, initOverrides); - return await response.value(); - } - - /** - * Bulk relation create available. You can either post an id or a list of ids. Is you post a list, the response will be a list (in the same order) of created relation 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 Required scopes: ifc:write, model:write - * Link one or many documents to an element - */ - async linkDocumentsOfElementDeprecatedRaw(requestParameters: LinkDocumentsOfElementDeprecatedRequest, initOverrides?: RequestInit): Promise>> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling linkDocumentsOfElementDeprecated.'); - } - - if (requestParameters.element_uuid === null || requestParameters.element_uuid === undefined) { - throw new runtime.RequiredError('element_uuid','Required parameter requestParameters.element_uuid was null or undefined when calling linkDocumentsOfElementDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling linkDocumentsOfElementDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling linkDocumentsOfElementDeprecated.'); - } - - if (requestParameters.request_body === null || requestParameters.request_body === undefined) { - throw new runtime.RequiredError('request_body','Required parameter requestParameters.request_body was null or undefined when calling linkDocumentsOfElementDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{element_uuid}/documents`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"element_uuid"}}`, encodeURIComponent(String(requestParameters.element_uuid))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: requestParameters.request_body, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(DocumentFromJSON)); - } - - /** - * Bulk relation create available. You can either post an id or a list of ids. Is you post a list, the response will be a list (in the same order) of created relation 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 Required scopes: ifc:write, model:write - * Link one or many documents to an element - */ - async linkDocumentsOfElementDeprecated(cloud_pk: number, element_uuid: string, ifc_pk: number, project_pk: number, request_body: Array, initOverrides?: RequestInit): Promise> { - const response = await this.linkDocumentsOfElementDeprecatedRaw({ cloud_pk: cloud_pk, element_uuid: element_uuid, ifc_pk: ifc_pk, project_pk: project_pk, request_body: request_body }, initOverrides); - return await response.value(); - } - - /** - * List all associations between classifications and elements Required scopes: ifc:read, model:read - * List all associations between classifications and elements - */ - async listClassificationElementRelationsDeprecatedRaw(requestParameters: ListClassificationElementRelationsDeprecatedRequest, initOverrides?: RequestInit): Promise>> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling listClassificationElementRelationsDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling listClassificationElementRelationsDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling listClassificationElementRelationsDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/classification-element`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ElementClassificationRelationFromJSON)); - } - - /** - * List all associations between classifications and elements Required scopes: ifc:read, model:read - * List all associations between classifications and elements - */ - async listClassificationElementRelationsDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, initOverrides?: RequestInit): Promise> { - const response = await this.listClassificationElementRelationsDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk }, initOverrides); - return await response.value(); - } - - /** - * Only works for IFC files. Merge IFC files. The merged IFC file will be put in the same folder that the first IFC of the list Required scopes: ifc:write, model:write - * Merge IFC files - */ - async mergeIfcsDeprecatedRaw(requestParameters: MergeIfcsDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling mergeIfcsDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling mergeIfcsDeprecated.'); - } - - if (requestParameters.IfcMergeRequest === null || requestParameters.IfcMergeRequest === undefined) { - throw new runtime.RequiredError('IfcMergeRequest','Required parameter requestParameters.IfcMergeRequest was null or undefined when calling mergeIfcsDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/merge`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: IfcMergeRequestToJSON(requestParameters.IfcMergeRequest), - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - * Only works for IFC files. Merge IFC files. The merged IFC file will be put in the same folder that the first IFC of the list Required scopes: ifc:write, model:write - * Merge IFC files - */ - async mergeIfcsDeprecated(cloud_pk: number, project_pk: number, IfcMergeRequest: IfcMergeRequest, initOverrides?: RequestInit): Promise { - await this.mergeIfcsDeprecatedRaw({ cloud_pk: cloud_pk, project_pk: project_pk, IfcMergeRequest: IfcMergeRequest }, initOverrides); - } - - /** - * Only works for IFC files. Optimize the IFC. A new optimized IFC file will be put in the same folder that the original IFC Required scopes: ifc:write, model:write - * Optimize the IFC - */ - async optimizeIfcDeprecatedRaw(requestParameters: OptimizeIfcDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling optimizeIfcDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling optimizeIfcDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling optimizeIfcDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{id}/optimize`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: IfcOptimizeRequestToJSON(requestParameters.IfcOptimizeRequest), - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - * Only works for IFC files. Optimize the IFC. A new optimized IFC file will be put in the same folder that the original IFC Required scopes: ifc:write, model:write - * Optimize the IFC - */ - async optimizeIfcDeprecated(cloud_pk: number, id: number, project_pk: number, IfcOptimizeRequest?: IfcOptimizeRequest, initOverrides?: RequestInit): Promise { - await this.optimizeIfcDeprecatedRaw({ cloud_pk: cloud_pk, id: id, project_pk: project_pk, IfcOptimizeRequest: IfcOptimizeRequest }, initOverrides); - } - - /** - * Remove all property sets from element. Property Sets will not be deleted, just detached from element Required scopes: ifc:write, model:write - * Remove all property sets from element - */ - async removeAllElementPropertySetDeprecatedRaw(requestParameters: RemoveAllElementPropertySetDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling removeAllElementPropertySetDeprecated.'); - } - - if (requestParameters.element_uuid === null || requestParameters.element_uuid === undefined) { - throw new runtime.RequiredError('element_uuid','Required parameter requestParameters.element_uuid was null or undefined when calling removeAllElementPropertySetDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling removeAllElementPropertySetDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling removeAllElementPropertySetDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{element_uuid}/propertyset/all`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"element_uuid"}}`, encodeURIComponent(String(requestParameters.element_uuid))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - * Remove all property sets from element. Property Sets will not be deleted, just detached from element Required scopes: ifc:write, model:write - * Remove all property sets from element - */ - async removeAllElementPropertySetDeprecated(cloud_pk: number, element_uuid: string, ifc_pk: number, project_pk: number, initOverrides?: RequestInit): Promise { - await this.removeAllElementPropertySetDeprecatedRaw({ cloud_pk: cloud_pk, element_uuid: element_uuid, ifc_pk: ifc_pk, project_pk: project_pk }, initOverrides); - } - - /** - * The classification will not be deleted Required scopes: ifc:write, model:write - * Remove a classification from an element - */ - async removeClassificationOfElementDeprecatedRaw(requestParameters: RemoveClassificationOfElementDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling removeClassificationOfElementDeprecated.'); - } - - if (requestParameters.element_uuid === null || requestParameters.element_uuid === undefined) { - throw new runtime.RequiredError('element_uuid','Required parameter requestParameters.element_uuid was null or undefined when calling removeClassificationOfElementDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling removeClassificationOfElementDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling removeClassificationOfElementDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling removeClassificationOfElementDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{element_uuid}/classification/{id}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"element_uuid"}}`, encodeURIComponent(String(requestParameters.element_uuid))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - * The classification will not be deleted Required scopes: ifc:write, model:write - * Remove a classification from an element - */ - async removeClassificationOfElementDeprecated(cloud_pk: number, element_uuid: string, id: number, ifc_pk: number, project_pk: number, initOverrides?: RequestInit): Promise { - await this.removeClassificationOfElementDeprecatedRaw({ cloud_pk: cloud_pk, element_uuid: element_uuid, id: id, ifc_pk: ifc_pk, project_pk: project_pk }, initOverrides); - } - - /** - * The document will not be deleted Required scopes: ifc:write, model:write - * Remove a documents from an element - */ - async removeDocumentOfElementDeprecatedRaw(requestParameters: RemoveDocumentOfElementDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling removeDocumentOfElementDeprecated.'); - } - - if (requestParameters.element_uuid === null || requestParameters.element_uuid === undefined) { - throw new runtime.RequiredError('element_uuid','Required parameter requestParameters.element_uuid was null or undefined when calling removeDocumentOfElementDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling removeDocumentOfElementDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling removeDocumentOfElementDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling removeDocumentOfElementDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{element_uuid}/documents/{id}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"element_uuid"}}`, encodeURIComponent(String(requestParameters.element_uuid))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - * The document will not be deleted Required scopes: ifc:write, model:write - * Remove a documents from an element - */ - async removeDocumentOfElementDeprecated(cloud_pk: number, element_uuid: string, id: number, ifc_pk: number, project_pk: number, initOverrides?: RequestInit): Promise { - await this.removeDocumentOfElementDeprecatedRaw({ cloud_pk: cloud_pk, element_uuid: element_uuid, id: id, ifc_pk: ifc_pk, project_pk: project_pk }, initOverrides); - } - - /** - * Delete the relation between the element and the property set. Does not delete any object Required scopes: ifc:write, model:write - * Remove a PropertySet from an element - */ - async removeElementPropertySetDeprecatedRaw(requestParameters: RemoveElementPropertySetDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling removeElementPropertySetDeprecated.'); - } - - if (requestParameters.element_uuid === null || requestParameters.element_uuid === undefined) { - throw new runtime.RequiredError('element_uuid','Required parameter requestParameters.element_uuid was null or undefined when calling removeElementPropertySetDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling removeElementPropertySetDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling removeElementPropertySetDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling removeElementPropertySetDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{element_uuid}/propertyset/{id}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"element_uuid"}}`, encodeURIComponent(String(requestParameters.element_uuid))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - * Delete the relation between the element and the property set. Does not delete any object Required scopes: ifc:write, model:write - * Remove a PropertySet from an element - */ - async removeElementPropertySetDeprecated(cloud_pk: number, element_uuid: string, id: number, ifc_pk: number, project_pk: number, initOverrides?: RequestInit): Promise { - await this.removeElementPropertySetDeprecatedRaw({ cloud_pk: cloud_pk, element_uuid: element_uuid, id: id, ifc_pk: ifc_pk, project_pk: project_pk }, initOverrides); - } - - /** - * Delete a Definition to a Property Required scopes: ifc:write, model:write - * Delete a Definition to a Property - */ - async removeElementPropertySetPropertyDefinitionDeprecatedRaw(requestParameters: RemoveElementPropertySetPropertyDefinitionDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling removeElementPropertySetPropertyDefinitionDeprecated.'); - } - - if (requestParameters.element_uuid === null || requestParameters.element_uuid === undefined) { - throw new runtime.RequiredError('element_uuid','Required parameter requestParameters.element_uuid was null or undefined when calling removeElementPropertySetPropertyDefinitionDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling removeElementPropertySetPropertyDefinitionDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling removeElementPropertySetPropertyDefinitionDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling removeElementPropertySetPropertyDefinitionDeprecated.'); - } - - if (requestParameters.property_pk === null || requestParameters.property_pk === undefined) { - throw new runtime.RequiredError('property_pk','Required parameter requestParameters.property_pk was null or undefined when calling removeElementPropertySetPropertyDefinitionDeprecated.'); - } - - if (requestParameters.propertyset_pk === null || requestParameters.propertyset_pk === undefined) { - throw new runtime.RequiredError('propertyset_pk','Required parameter requestParameters.propertyset_pk was null or undefined when calling removeElementPropertySetPropertyDefinitionDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{element_uuid}/propertyset/{propertyset_pk}/property/{property_pk}/propertydefinition/{id}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"element_uuid"}}`, encodeURIComponent(String(requestParameters.element_uuid))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))).replace(`{${"property_pk"}}`, encodeURIComponent(String(requestParameters.property_pk))).replace(`{${"propertyset_pk"}}`, encodeURIComponent(String(requestParameters.propertyset_pk))), - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - * Delete a Definition to a Property Required scopes: ifc:write, model:write - * Delete a Definition to a Property - */ - async removeElementPropertySetPropertyDefinitionDeprecated(cloud_pk: number, element_uuid: string, id: number, ifc_pk: number, project_pk: number, property_pk: number, propertyset_pk: number, initOverrides?: RequestInit): Promise { - await this.removeElementPropertySetPropertyDefinitionDeprecatedRaw({ cloud_pk: cloud_pk, element_uuid: element_uuid, id: id, ifc_pk: ifc_pk, project_pk: project_pk, property_pk: property_pk, propertyset_pk: propertyset_pk }, initOverrides); - } - - /** - * Remove a Unit from a Definition Required scopes: ifc:write, model:write - * Remove a Unit from a Definition - */ - async removeElementPropertySetPropertyDefinitionUnitDeprecatedRaw(requestParameters: RemoveElementPropertySetPropertyDefinitionUnitDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling removeElementPropertySetPropertyDefinitionUnitDeprecated.'); - } - - if (requestParameters.element_uuid === null || requestParameters.element_uuid === undefined) { - throw new runtime.RequiredError('element_uuid','Required parameter requestParameters.element_uuid was null or undefined when calling removeElementPropertySetPropertyDefinitionUnitDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling removeElementPropertySetPropertyDefinitionUnitDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling removeElementPropertySetPropertyDefinitionUnitDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling removeElementPropertySetPropertyDefinitionUnitDeprecated.'); - } - - if (requestParameters.property_pk === null || requestParameters.property_pk === undefined) { - throw new runtime.RequiredError('property_pk','Required parameter requestParameters.property_pk was null or undefined when calling removeElementPropertySetPropertyDefinitionUnitDeprecated.'); - } - - if (requestParameters.propertydefinition_pk === null || requestParameters.propertydefinition_pk === undefined) { - throw new runtime.RequiredError('propertydefinition_pk','Required parameter requestParameters.propertydefinition_pk was null or undefined when calling removeElementPropertySetPropertyDefinitionUnitDeprecated.'); - } - - if (requestParameters.propertyset_pk === null || requestParameters.propertyset_pk === undefined) { - throw new runtime.RequiredError('propertyset_pk','Required parameter requestParameters.propertyset_pk was null or undefined when calling removeElementPropertySetPropertyDefinitionUnitDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{element_uuid}/propertyset/{propertyset_pk}/property/{property_pk}/propertydefinition/{propertydefinition_pk}/unit/{id}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"element_uuid"}}`, encodeURIComponent(String(requestParameters.element_uuid))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))).replace(`{${"property_pk"}}`, encodeURIComponent(String(requestParameters.property_pk))).replace(`{${"propertydefinition_pk"}}`, encodeURIComponent(String(requestParameters.propertydefinition_pk))).replace(`{${"propertyset_pk"}}`, encodeURIComponent(String(requestParameters.propertyset_pk))), - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - * Remove a Unit from a Definition Required scopes: ifc:write, model:write - * Remove a Unit from a Definition - */ - async removeElementPropertySetPropertyDefinitionUnitDeprecated(cloud_pk: number, element_uuid: string, id: number, ifc_pk: number, project_pk: number, property_pk: number, propertydefinition_pk: number, propertyset_pk: number, initOverrides?: RequestInit): Promise { - await this.removeElementPropertySetPropertyDefinitionUnitDeprecatedRaw({ cloud_pk: cloud_pk, element_uuid: element_uuid, id: id, ifc_pk: ifc_pk, project_pk: project_pk, property_pk: property_pk, propertydefinition_pk: propertydefinition_pk, propertyset_pk: propertyset_pk }, initOverrides); - } - - /** - * Remove a property from a PropertySet Required scopes: ifc:write, model:write - * Remove a property from a PropertySet - */ - async removeElementPropertySetPropertyDeprecatedRaw(requestParameters: RemoveElementPropertySetPropertyDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling removeElementPropertySetPropertyDeprecated.'); - } - - if (requestParameters.element_uuid === null || requestParameters.element_uuid === undefined) { - throw new runtime.RequiredError('element_uuid','Required parameter requestParameters.element_uuid was null or undefined when calling removeElementPropertySetPropertyDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling removeElementPropertySetPropertyDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling removeElementPropertySetPropertyDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling removeElementPropertySetPropertyDeprecated.'); - } - - if (requestParameters.propertyset_pk === null || requestParameters.propertyset_pk === undefined) { - throw new runtime.RequiredError('propertyset_pk','Required parameter requestParameters.propertyset_pk was null or undefined when calling removeElementPropertySetPropertyDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{element_uuid}/propertyset/{propertyset_pk}/property/{id}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"element_uuid"}}`, encodeURIComponent(String(requestParameters.element_uuid))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))).replace(`{${"propertyset_pk"}}`, encodeURIComponent(String(requestParameters.propertyset_pk))), - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - * Remove a property from a PropertySet Required scopes: ifc:write, model:write - * Remove a property from a PropertySet - */ - async removeElementPropertySetPropertyDeprecated(cloud_pk: number, element_uuid: string, id: number, ifc_pk: number, project_pk: number, propertyset_pk: number, initOverrides?: RequestInit): Promise { - await this.removeElementPropertySetPropertyDeprecatedRaw({ cloud_pk: cloud_pk, element_uuid: element_uuid, id: id, ifc_pk: ifc_pk, project_pk: project_pk, propertyset_pk: propertyset_pk }, initOverrides); - } - - /** - * Remove the classification from all elements. No element nor classification will be deleted Required scopes: ifc:write, model:write - * Remove the classification from all elements - */ - async removeElementsFromClassificationDeprecatedRaw(requestParameters: RemoveElementsFromClassificationDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling removeElementsFromClassificationDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling removeElementsFromClassificationDeprecated.'); - } - - if (requestParameters.model_classification_pk === null || requestParameters.model_classification_pk === undefined) { - throw new runtime.RequiredError('model_classification_pk','Required parameter requestParameters.model_classification_pk was null or undefined when calling removeElementsFromClassificationDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling removeElementsFromClassificationDeprecated.'); - } - - if (requestParameters.uuid === null || requestParameters.uuid === undefined) { - throw new runtime.RequiredError('uuid','Required parameter requestParameters.uuid was null or undefined when calling removeElementsFromClassificationDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/classification/{model_classification_pk}/element/{uuid}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"model_classification_pk"}}`, encodeURIComponent(String(requestParameters.model_classification_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))).replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))), - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - * Remove the classification from all elements. No element nor classification will be deleted Required scopes: ifc:write, model:write - * Remove the classification from all elements - */ - async removeElementsFromClassificationDeprecated(cloud_pk: number, ifc_pk: number, model_classification_pk: number, project_pk: number, uuid: string, initOverrides?: RequestInit): Promise { - await this.removeElementsFromClassificationDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, model_classification_pk: model_classification_pk, project_pk: project_pk, uuid: uuid }, initOverrides); - } - - /** - * Reprocess the model. All data that are not in the original model files will be lost Required scopes: ifc:write, model:write - * Reprocess Model file - */ - async reprocessIfcDeprecatedRaw(requestParameters: ReprocessIfcDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling reprocessIfcDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling reprocessIfcDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling reprocessIfcDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{id}/reprocess`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'POST', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - * Reprocess the model. All data that are not in the original model files will be lost Required scopes: ifc:write, model:write - * Reprocess Model file - */ - async reprocessIfcDeprecated(cloud_pk: number, id: number, project_pk: number, initOverrides?: RequestInit): Promise { - await this.reprocessIfcDeprecatedRaw({ cloud_pk: cloud_pk, id: id, project_pk: project_pk }, initOverrides); - } - - /** - * DEPECRATED: Use ProjectAccessToken instead Required scopes: ifc:token_manage, model:token_manage - * Update some fields of a token - */ - async updateAccessTokenDeprecatedRaw(requestParameters: UpdateAccessTokenDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling updateAccessTokenDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling updateAccessTokenDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling updateAccessTokenDeprecated.'); - } - - if (requestParameters.token === null || requestParameters.token === undefined) { - throw new runtime.RequiredError('token','Required parameter requestParameters.token was null or undefined when calling updateAccessTokenDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/access_token/{token}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))).replace(`{${"token"}}`, encodeURIComponent(String(requestParameters.token))), - method: 'PATCH', - headers: headerParameters, - query: queryParameters, - body: PatchedIfcAccessTokenRequestToJSON(requestParameters.PatchedIfcAccessTokenRequest), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => IfcAccessTokenFromJSON(jsonValue)); - } - - /** - * DEPECRATED: Use ProjectAccessToken instead Required scopes: ifc:token_manage, model:token_manage - * Update some fields of a token - */ - async updateAccessTokenDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, token: string, PatchedIfcAccessTokenRequest?: PatchedIfcAccessTokenRequest, initOverrides?: RequestInit): Promise { - const response = await this.updateAccessTokenDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk, token: token, PatchedIfcAccessTokenRequest: PatchedIfcAccessTokenRequest }, initOverrides); - return await response.value(); - } - - /** - * Update some fields of a building Required scopes: ifc:write, model:write - * Update some fields of a building - */ - async updateBuildingDeprecatedRaw(requestParameters: UpdateBuildingDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling updateBuildingDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling updateBuildingDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling updateBuildingDeprecated.'); - } - - if (requestParameters.uuid === null || requestParameters.uuid === undefined) { - throw new runtime.RequiredError('uuid','Required parameter requestParameters.uuid was null or undefined when calling updateBuildingDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/building/{uuid}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))).replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))), - method: 'PATCH', - headers: headerParameters, - query: queryParameters, - body: PatchedStoreyBuildingRequestToJSON(requestParameters.PatchedStoreyBuildingRequest), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => BuildingFromJSON(jsonValue)); - } - - /** - * Update some fields of a building Required scopes: ifc:write, model:write - * Update some fields of a building - */ - async updateBuildingDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, uuid: string, PatchedStoreyBuildingRequest?: PatchedStoreyBuildingRequest, initOverrides?: RequestInit): Promise { - const response = await this.updateBuildingDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk, uuid: uuid, PatchedStoreyBuildingRequest: PatchedStoreyBuildingRequest }, initOverrides); - return await response.value(); - } - - /** - * Update the postioning of the plan in the building Required scopes: ifc:write, model:write - * Update the postioning of the plan in the building - */ - async updateBuildingPlanPositioningDeprecatedRaw(requestParameters: UpdateBuildingPlanPositioningDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.building_uuid === null || requestParameters.building_uuid === undefined) { - throw new runtime.RequiredError('building_uuid','Required parameter requestParameters.building_uuid was null or undefined when calling updateBuildingPlanPositioningDeprecated.'); - } - - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling updateBuildingPlanPositioningDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling updateBuildingPlanPositioningDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling updateBuildingPlanPositioningDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling updateBuildingPlanPositioningDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/building/{building_uuid}/plan/{id}/positioning`.replace(`{${"building_uuid"}}`, encodeURIComponent(String(requestParameters.building_uuid))).replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'PATCH', - headers: headerParameters, - query: queryParameters, - body: PatchedPositioningPlanRequestToJSON(requestParameters.PatchedPositioningPlanRequest), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => PositioningPlanFromJSON(jsonValue)); - } - - /** - * Update the postioning of the plan in the building Required scopes: ifc:write, model:write - * Update the postioning of the plan in the building - */ - async updateBuildingPlanPositioningDeprecated(building_uuid: string, cloud_pk: number, id: number, ifc_pk: number, project_pk: number, PatchedPositioningPlanRequest?: PatchedPositioningPlanRequest, initOverrides?: RequestInit): Promise { - const response = await this.updateBuildingPlanPositioningDeprecatedRaw({ building_uuid: building_uuid, cloud_pk: cloud_pk, id: id, ifc_pk: ifc_pk, project_pk: project_pk, PatchedPositioningPlanRequest: PatchedPositioningPlanRequest }, initOverrides); - return await response.value(); - } - - /** - * Update some fields of a drawing Required scopes: model:write - * Update some fields of a drawing - */ - async updateDrawingDeprecatedRaw(requestParameters: UpdateDrawingDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling updateDrawingDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling updateDrawingDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling updateDrawingDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling updateDrawingDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/drawing/{id}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'PATCH', - headers: headerParameters, - query: queryParameters, - body: PatchedDrawingRequestToJSON(requestParameters.PatchedDrawingRequest), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => DrawingFromJSON(jsonValue)); - } - - /** - * Update some fields of a drawing Required scopes: model:write - * Update some fields of a drawing - */ - async updateDrawingDeprecated(cloud_pk: number, id: number, ifc_pk: number, project_pk: number, PatchedDrawingRequest?: PatchedDrawingRequest, initOverrides?: RequestInit): Promise { - const response = await this.updateDrawingDeprecatedRaw({ cloud_pk: cloud_pk, id: id, ifc_pk: ifc_pk, project_pk: project_pk, PatchedDrawingRequest: PatchedDrawingRequest }, initOverrides); - return await response.value(); - } - - /** - * 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 - * Update some fields of an element - */ - async updateElementDeprecatedRaw(requestParameters: UpdateElementDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling updateElementDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling updateElementDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling updateElementDeprecated.'); - } - - if (requestParameters.uuid === null || requestParameters.uuid === undefined) { - throw new runtime.RequiredError('uuid','Required parameter requestParameters.uuid was null or undefined when calling updateElementDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{uuid}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))).replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))), - method: 'PATCH', - headers: headerParameters, - query: queryParameters, - body: PatchedElementRequestToJSON(requestParameters.PatchedElementRequest), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ElementFromJSON(jsonValue)); - } - - /** - * 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 - * Update some fields of an element - */ - async updateElementDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, uuid: string, PatchedElementRequest?: PatchedElementRequest, initOverrides?: RequestInit): Promise { - const response = await this.updateElementDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk, uuid: uuid, PatchedElementRequest: PatchedElementRequest }, initOverrides); - return await response.value(); - } - - /** - * Update a property value from an element. If the element is the only one to have this property, the property will be update in place. If many elements share this property, a new property will be created to replace the property for this element. Keeping the property for all other elements. If you want to update the property of all elements, see updateIfcProperty Required scopes: ifc:write, model:write - * Update a property from an element - */ - async updateElementPropertySetPropertyDeprecatedRaw(requestParameters: UpdateElementPropertySetPropertyDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling updateElementPropertySetPropertyDeprecated.'); - } - - if (requestParameters.element_uuid === null || requestParameters.element_uuid === undefined) { - throw new runtime.RequiredError('element_uuid','Required parameter requestParameters.element_uuid was null or undefined when calling updateElementPropertySetPropertyDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling updateElementPropertySetPropertyDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling updateElementPropertySetPropertyDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling updateElementPropertySetPropertyDeprecated.'); - } - - if (requestParameters.propertyset_pk === null || requestParameters.propertyset_pk === undefined) { - throw new runtime.RequiredError('propertyset_pk','Required parameter requestParameters.propertyset_pk was null or undefined when calling updateElementPropertySetPropertyDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{element_uuid}/propertyset/{propertyset_pk}/property/{id}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"element_uuid"}}`, encodeURIComponent(String(requestParameters.element_uuid))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))).replace(`{${"propertyset_pk"}}`, encodeURIComponent(String(requestParameters.propertyset_pk))), - method: 'PATCH', - headers: headerParameters, - query: queryParameters, - body: PatchedPropertyRequestToJSON(requestParameters.PatchedPropertyRequest), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => PropertyFromJSON(jsonValue)); - } - - /** - * Update a property value from an element. If the element is the only one to have this property, the property will be update in place. If many elements share this property, a new property will be created to replace the property for this element. Keeping the property for all other elements. If you want to update the property of all elements, see updateIfcProperty Required scopes: ifc:write, model:write - * Update a property from an element - */ - async updateElementPropertySetPropertyDeprecated(cloud_pk: number, element_uuid: string, id: number, ifc_pk: number, project_pk: number, propertyset_pk: number, PatchedPropertyRequest?: PatchedPropertyRequest, initOverrides?: RequestInit): Promise { - const response = await this.updateElementPropertySetPropertyDeprecatedRaw({ cloud_pk: cloud_pk, element_uuid: element_uuid, id: id, ifc_pk: ifc_pk, project_pk: project_pk, propertyset_pk: propertyset_pk, PatchedPropertyRequest: PatchedPropertyRequest }, initOverrides); - return await response.value(); - } - - /** - * Update some fields of a model Required scopes: ifc:write, model:write - * Update some fields of a model - */ - async updateIfcDeprecatedRaw(requestParameters: UpdateIfcDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling updateIfcDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling updateIfcDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling updateIfcDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{id}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'PATCH', - headers: headerParameters, - query: queryParameters, - body: PatchedModelRequestToJSON(requestParameters.PatchedModelRequest), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ModelFromJSON(jsonValue)); - } - - /** - * Update some fields of a model Required scopes: ifc:write, model:write - * Update some fields of a model - */ - async updateIfcDeprecated(cloud_pk: number, id: number, project_pk: number, PatchedModelRequest?: PatchedModelRequest, initOverrides?: RequestInit): Promise { - const response = await this.updateIfcDeprecatedRaw({ cloud_pk: cloud_pk, id: id, project_pk: project_pk, PatchedModelRequest: PatchedModelRequest }, initOverrides); - return await response.value(); - } - - /** - * This route does not accept JSON, only files as x-www-form-urlencoded Required scopes: ifc:write, model:write - * Update models file (gltf, svg, structure, etc) - */ - async updateIfcFilesDeprecatedRaw(requestParameters: UpdateIfcFilesDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling updateIfcFilesDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling updateIfcFilesDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling updateIfcFilesDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const consumes: runtime.Consume[] = [ - { contentType: 'multipart/form-data' }, - { contentType: 'application/x-www-form-urlencoded' }, - ]; - // @ts-ignore: canConsumeForm may be unused - const canConsumeForm = runtime.canConsumeForm(consumes); - - let formParams: { append(param: string, value: any): any }; - let useForm = false; - // use FormData to transmit files using content-type "multipart/form-data" - useForm = canConsumeForm; - // use FormData to transmit files using content-type "multipart/form-data" - useForm = canConsumeForm; - // use FormData to transmit files using content-type "multipart/form-data" - useForm = canConsumeForm; - // use FormData to transmit files using content-type "multipart/form-data" - useForm = canConsumeForm; - // use FormData to transmit files using content-type "multipart/form-data" - useForm = canConsumeForm; - // use FormData to transmit files using content-type "multipart/form-data" - useForm = canConsumeForm; - // use FormData to transmit files using content-type "multipart/form-data" - useForm = canConsumeForm; - if (useForm) { - formParams = new FormData(); - } else { - formParams = new URLSearchParams(); - } - - if (requestParameters.structure_file !== undefined) { - formParams.append('structure_file', requestParameters.structure_file as any); - } - - if (requestParameters.systems_file !== undefined) { - formParams.append('systems_file', requestParameters.systems_file as any); - } - - if (requestParameters.map_file !== undefined) { - formParams.append('map_file', requestParameters.map_file as any); - } - - if (requestParameters.gltf_file !== undefined) { - formParams.append('gltf_file', requestParameters.gltf_file as any); - } - - if (requestParameters.preview_file !== undefined) { - formParams.append('preview_file', requestParameters.preview_file as any); - } - - if (requestParameters.xkt_file !== undefined) { - formParams.append('xkt_file', requestParameters.xkt_file as any); - } - - if (requestParameters.binary_2d_file !== undefined) { - formParams.append('binary_2d_file', requestParameters.binary_2d_file as any); - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{id}/files`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'PATCH', - headers: headerParameters, - query: queryParameters, - body: formParams, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ModelFilesFromJSON(jsonValue)); - } - - /** - * This route does not accept JSON, only files as x-www-form-urlencoded Required scopes: ifc:write, model:write - * Update models file (gltf, svg, structure, etc) - */ - async updateIfcFilesDeprecated(cloud_pk: number, id: number, project_pk: number, structure_file?: Blob | null, systems_file?: Blob | null, map_file?: Blob | null, gltf_file?: Blob | null, preview_file?: Blob | null, xkt_file?: Blob | null, binary_2d_file?: Blob | null, initOverrides?: RequestInit): Promise { - const response = await this.updateIfcFilesDeprecatedRaw({ cloud_pk: cloud_pk, id: id, project_pk: project_pk, structure_file: structure_file, systems_file: systems_file, map_file: map_file, gltf_file: gltf_file, preview_file: preview_file, xkt_file: xkt_file, binary_2d_file: binary_2d_file }, initOverrides); - return await response.value(); - } - - /** - * Update some fields of many PropertyDefinitions of a model Required scopes: ifc:write, model:write - * Update some fields of many PropertyDefinitions of a model - */ - async updateIfcPropertyDefinitionDeprecatedRaw(requestParameters: UpdateIfcPropertyDefinitionDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling updateIfcPropertyDefinitionDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling updateIfcPropertyDefinitionDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling updateIfcPropertyDefinitionDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling updateIfcPropertyDefinitionDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/propertydefinition/{id}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'PATCH', - headers: headerParameters, - query: queryParameters, - body: PatchedPropertyDefinitionRequestToJSON(requestParameters.PatchedPropertyDefinitionRequest), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => PropertyDefinitionFromJSON(jsonValue)); - } - - /** - * Update some fields of many PropertyDefinitions of a model Required scopes: ifc:write, model:write - * Update some fields of many PropertyDefinitions of a model - */ - async updateIfcPropertyDefinitionDeprecated(cloud_pk: number, id: number, ifc_pk: number, project_pk: number, PatchedPropertyDefinitionRequest?: PatchedPropertyDefinitionRequest, initOverrides?: RequestInit): Promise { - const response = await this.updateIfcPropertyDefinitionDeprecatedRaw({ cloud_pk: cloud_pk, id: id, ifc_pk: ifc_pk, project_pk: project_pk, PatchedPropertyDefinitionRequest: PatchedPropertyDefinitionRequest }, initOverrides); - return await response.value(); - } - - /** - * Update some fields of a Property Required scopes: ifc:write, model:write - * Update some fields of a Property - */ - async updateIfcPropertyDeprecatedRaw(requestParameters: UpdateIfcPropertyDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling updateIfcPropertyDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling updateIfcPropertyDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling updateIfcPropertyDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling updateIfcPropertyDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/property/{id}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'PATCH', - headers: headerParameters, - query: queryParameters, - body: PatchedPropertyRequestToJSON(requestParameters.PatchedPropertyRequest), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => PropertyFromJSON(jsonValue)); - } - - /** - * Update some fields of a Property Required scopes: ifc:write, model:write - * Update some fields of a Property - */ - async updateIfcPropertyDeprecated(cloud_pk: number, id: number, ifc_pk: number, project_pk: number, PatchedPropertyRequest?: PatchedPropertyRequest, initOverrides?: RequestInit): Promise { - const response = await this.updateIfcPropertyDeprecatedRaw({ cloud_pk: cloud_pk, id: id, ifc_pk: ifc_pk, project_pk: project_pk, PatchedPropertyRequest: PatchedPropertyRequest }, initOverrides); - return await response.value(); - } - - /** - * Update some fields of a Unit of a model Required scopes: ifc:write, model:write - * Update some fields of a Unit of a model - */ - async updateIfcUnitDeprecatedRaw(requestParameters: UpdateIfcUnitDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling updateIfcUnitDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling updateIfcUnitDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling updateIfcUnitDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling updateIfcUnitDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/unit/{id}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'PATCH', - headers: headerParameters, - query: queryParameters, - body: PatchedUnitRequestToJSON(requestParameters.PatchedUnitRequest), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => UnitFromJSON(jsonValue)); - } - - /** - * Update some fields of a Unit of a model Required scopes: ifc:write, model:write - * Update some fields of a Unit of a model - */ - async updateIfcUnitDeprecated(cloud_pk: number, id: number, ifc_pk: number, project_pk: number, PatchedUnitRequest?: PatchedUnitRequest, initOverrides?: RequestInit): Promise { - const response = await this.updateIfcUnitDeprecatedRaw({ cloud_pk: cloud_pk, id: id, ifc_pk: ifc_pk, project_pk: project_pk, PatchedUnitRequest: PatchedUnitRequest }, initOverrides); - return await response.value(); - } - - /** - * Update some fields of a layer. The IFC file will not be updated. The created layer will be accessible over the API and when exporting an IFC file Required scopes: ifc:write, model:write - * Update some fields of a layer - */ - async updateLayerDeprecatedRaw(requestParameters: UpdateLayerDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling updateLayerDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling updateLayerDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling updateLayerDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling updateLayerDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/layer/{id}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'PATCH', - headers: headerParameters, - query: queryParameters, - body: PatchedLayerRequestToJSON(requestParameters.PatchedLayerRequest), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => LayerFromJSON(jsonValue)); - } - - /** - * Update some fields of a layer. The IFC file will not be updated. The created layer will be accessible over the API and when exporting an IFC file Required scopes: ifc:write, model:write - * Update some fields of a layer - */ - async updateLayerDeprecated(cloud_pk: number, id: number, ifc_pk: number, project_pk: number, PatchedLayerRequest?: PatchedLayerRequest, initOverrides?: RequestInit): Promise { - const response = await this.updateLayerDeprecatedRaw({ cloud_pk: cloud_pk, id: id, ifc_pk: ifc_pk, project_pk: project_pk, PatchedLayerRequest: PatchedLayerRequest }, initOverrides); - return await response.value(); - } - - /** - * Update order of all plan of a building Required scopes: ifc:write, model:write - * Update order of all plan of a building - */ - async updateOrderBuildingPlanDeprecatedRaw(requestParameters: UpdateOrderBuildingPlanDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.building_uuid === null || requestParameters.building_uuid === undefined) { - throw new runtime.RequiredError('building_uuid','Required parameter requestParameters.building_uuid was null or undefined when calling updateOrderBuildingPlanDeprecated.'); - } - - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling updateOrderBuildingPlanDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling updateOrderBuildingPlanDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling updateOrderBuildingPlanDeprecated.'); - } - - if (requestParameters.request_body === null || requestParameters.request_body === undefined) { - throw new runtime.RequiredError('request_body','Required parameter requestParameters.request_body was null or undefined when calling updateOrderBuildingPlanDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/building/{building_uuid}/plan/order`.replace(`{${"building_uuid"}}`, encodeURIComponent(String(requestParameters.building_uuid))).replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'PATCH', - headers: headerParameters, - query: queryParameters, - body: requestParameters.request_body, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => StoreyFromJSON(jsonValue)); - } - - /** - * Update order of all plan of a building Required scopes: ifc:write, model:write - * Update order of all plan of a building - */ - async updateOrderBuildingPlanDeprecated(building_uuid: string, cloud_pk: number, ifc_pk: number, project_pk: number, request_body: Array, initOverrides?: RequestInit): Promise { - const response = await this.updateOrderBuildingPlanDeprecatedRaw({ building_uuid: building_uuid, cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk, request_body: request_body }, initOverrides); - return await response.value(); - } - - /** - * Update order of all plan of a storey Required scopes: ifc:write, model:write - * Update order of all plan of a storey - */ - async updateOrderStoreyPlanDeprecatedRaw(requestParameters: UpdateOrderStoreyPlanDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling updateOrderStoreyPlanDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling updateOrderStoreyPlanDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling updateOrderStoreyPlanDeprecated.'); - } - - if (requestParameters.storey_uuid === null || requestParameters.storey_uuid === undefined) { - throw new runtime.RequiredError('storey_uuid','Required parameter requestParameters.storey_uuid was null or undefined when calling updateOrderStoreyPlanDeprecated.'); - } - - if (requestParameters.request_body === null || requestParameters.request_body === undefined) { - throw new runtime.RequiredError('request_body','Required parameter requestParameters.request_body was null or undefined when calling updateOrderStoreyPlanDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/storey/{storey_uuid}/plan/order`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))).replace(`{${"storey_uuid"}}`, encodeURIComponent(String(requestParameters.storey_uuid))), - method: 'PATCH', - headers: headerParameters, - query: queryParameters, - body: requestParameters.request_body, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => StoreyFromJSON(jsonValue)); - } - - /** - * Update order of all plan of a storey Required scopes: ifc:write, model:write - * Update order of all plan of a storey - */ - async updateOrderStoreyPlanDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, storey_uuid: string, request_body: Array, initOverrides?: RequestInit): Promise { - const response = await this.updateOrderStoreyPlanDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk, storey_uuid: storey_uuid, request_body: request_body }, initOverrides); - return await response.value(); - } - - /** - * Update order of all storey of a model Required scopes: ifc:write, model:write - * Update order of all storey of a model - */ - async updateOrderStoreysDeprecatedRaw(requestParameters: UpdateOrderStoreysDeprecatedRequest, initOverrides?: RequestInit): Promise>> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling updateOrderStoreysDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling updateOrderStoreysDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling updateOrderStoreysDeprecated.'); - } - - if (requestParameters.request_body === null || requestParameters.request_body === undefined) { - throw new runtime.RequiredError('request_body','Required parameter requestParameters.request_body was null or undefined when calling updateOrderStoreysDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/storey/order`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'PATCH', - headers: headerParameters, - query: queryParameters, - body: requestParameters.request_body, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(StoreyFromJSON)); - } - - /** - * Update order of all storey of a model Required scopes: ifc:write, model:write - * Update order of all storey of a model - */ - async updateOrderStoreysDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, request_body: Array, initOverrides?: RequestInit): Promise> { - const response = await this.updateOrderStoreysDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk, request_body: request_body }, initOverrides); - return await response.value(); - } - - /** - * Update the status of a processor handler Required scopes: ifc:write, model:write - * Update the status of a processor handler - */ - async updateProcessorHandlerDeprecatedRaw(requestParameters: UpdateProcessorHandlerDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling updateProcessorHandlerDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling updateProcessorHandlerDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling updateProcessorHandlerDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling updateProcessorHandlerDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/processorhandler/{id}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'PATCH', - headers: headerParameters, - query: queryParameters, - body: PatchedProcessorHandlerRequestToJSON(requestParameters.PatchedProcessorHandlerRequest), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ProcessorHandlerFromJSON(jsonValue)); - } - - /** - * Update the status of a processor handler Required scopes: ifc:write, model:write - * Update the status of a processor handler - */ - async updateProcessorHandlerDeprecated(cloud_pk: number, id: number, ifc_pk: number, project_pk: number, PatchedProcessorHandlerRequest?: PatchedProcessorHandlerRequest, initOverrides?: RequestInit): Promise { - const response = await this.updateProcessorHandlerDeprecatedRaw({ cloud_pk: cloud_pk, id: id, ifc_pk: ifc_pk, project_pk: project_pk, PatchedProcessorHandlerRequest: PatchedProcessorHandlerRequest }, initOverrides); - return await response.value(); - } - - /** - * Update some fields of a PropertySet Required scopes: ifc:write, model:write - * Update some fields of a PropertySet - */ - async updatePropertySetDeprecatedRaw(requestParameters: UpdatePropertySetDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling updatePropertySetDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling updatePropertySetDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling updatePropertySetDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling updatePropertySetDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/propertyset/{id}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'PATCH', - headers: headerParameters, - query: queryParameters, - body: PatchedPropertySetRequestToJSON(requestParameters.PatchedPropertySetRequest), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => PropertySetFromJSON(jsonValue)); - } - - /** - * Update some fields of a PropertySet Required scopes: ifc:write, model:write - * Update some fields of a PropertySet - */ - async updatePropertySetDeprecated(cloud_pk: number, id: number, ifc_pk: number, project_pk: number, PatchedPropertySetRequest?: PatchedPropertySetRequest, initOverrides?: RequestInit): Promise { - const response = await this.updatePropertySetDeprecatedRaw({ cloud_pk: cloud_pk, id: id, ifc_pk: ifc_pk, project_pk: project_pk, PatchedPropertySetRequest: PatchedPropertySetRequest }, initOverrides); - return await response.value(); - } - - /** - * Update some fields of a space. The IFC file will not be updated. The created space will be accessible over the API and when exporting an IFC file Required scopes: ifc:write, model:write - * Update some fields of a space - */ - async updateSpaceDeprecatedRaw(requestParameters: UpdateSpaceDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling updateSpaceDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling updateSpaceDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling updateSpaceDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling updateSpaceDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/space/{id}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'PATCH', - headers: headerParameters, - query: queryParameters, - body: PatchedSpaceRequestToJSON(requestParameters.PatchedSpaceRequest), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => SpaceFromJSON(jsonValue)); - } - - /** - * Update some fields of a space. The IFC file will not be updated. The created space will be accessible over the API and when exporting an IFC file Required scopes: ifc:write, model:write - * Update some fields of a space - */ - async updateSpaceDeprecated(cloud_pk: number, id: number, ifc_pk: number, project_pk: number, PatchedSpaceRequest?: PatchedSpaceRequest, initOverrides?: RequestInit): Promise { - const response = await this.updateSpaceDeprecatedRaw({ cloud_pk: cloud_pk, id: id, ifc_pk: ifc_pk, project_pk: project_pk, PatchedSpaceRequest: PatchedSpaceRequest }, initOverrides); - return await response.value(); - } - - /** - * Update some fields of a storey Required scopes: ifc:write, model:write - * Update some fields of a storey - */ - async updateStoreyDeprecatedRaw(requestParameters: UpdateStoreyDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling updateStoreyDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling updateStoreyDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling updateStoreyDeprecated.'); - } - - if (requestParameters.uuid === null || requestParameters.uuid === undefined) { - throw new runtime.RequiredError('uuid','Required parameter requestParameters.uuid was null or undefined when calling updateStoreyDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/storey/{uuid}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))).replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))), - method: 'PATCH', - headers: headerParameters, - query: queryParameters, - body: PatchedStoreyBuildingRequestToJSON(requestParameters.PatchedStoreyBuildingRequest), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => StoreyFromJSON(jsonValue)); - } - - /** - * Update some fields of a storey Required scopes: ifc:write, model:write - * Update some fields of a storey - */ - async updateStoreyDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, uuid: string, PatchedStoreyBuildingRequest?: PatchedStoreyBuildingRequest, initOverrides?: RequestInit): Promise { - const response = await this.updateStoreyDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk, uuid: uuid, PatchedStoreyBuildingRequest: PatchedStoreyBuildingRequest }, initOverrides); - return await response.value(); - } - - /** - * Update the postioning of the plan in the storey Required scopes: ifc:write, model:write - * Update the postioning of the plan in the storey - */ - async updateStoreyPlanPositioningDeprecatedRaw(requestParameters: UpdateStoreyPlanPositioningDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling updateStoreyPlanPositioningDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling updateStoreyPlanPositioningDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling updateStoreyPlanPositioningDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling updateStoreyPlanPositioningDeprecated.'); - } - - if (requestParameters.storey_uuid === null || requestParameters.storey_uuid === undefined) { - throw new runtime.RequiredError('storey_uuid','Required parameter requestParameters.storey_uuid was null or undefined when calling updateStoreyPlanPositioningDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/storey/{storey_uuid}/plan/{id}/positioning`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))).replace(`{${"storey_uuid"}}`, encodeURIComponent(String(requestParameters.storey_uuid))), - method: 'PATCH', - headers: headerParameters, - query: queryParameters, - body: PatchedPositioningPlanRequestToJSON(requestParameters.PatchedPositioningPlanRequest), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => PositioningPlanFromJSON(jsonValue)); - } - - /** - * Update the postioning of the plan in the storey Required scopes: ifc:write, model:write - * Update the postioning of the plan in the storey - */ - async updateStoreyPlanPositioningDeprecated(cloud_pk: number, id: number, ifc_pk: number, project_pk: number, storey_uuid: string, PatchedPositioningPlanRequest?: PatchedPositioningPlanRequest, initOverrides?: RequestInit): Promise { - const response = await this.updateStoreyPlanPositioningDeprecatedRaw({ cloud_pk: cloud_pk, id: id, ifc_pk: ifc_pk, project_pk: project_pk, storey_uuid: storey_uuid, PatchedPositioningPlanRequest: PatchedPositioningPlanRequest }, initOverrides); - return await response.value(); - } - - /** - * Update some fields of a system. The IFC file will not be updated. The created system will be accessible over the API and when exporting an IFC file Required scopes: ifc:write, model:write - * Update some fields of a system - */ - async updateSystemDeprecatedRaw(requestParameters: UpdateSystemDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling updateSystemDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling updateSystemDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling updateSystemDeprecated.'); - } - - if (requestParameters.uuid === null || requestParameters.uuid === undefined) { - throw new runtime.RequiredError('uuid','Required parameter requestParameters.uuid was null or undefined when calling updateSystemDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/system/{uuid}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))).replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))), - method: 'PATCH', - headers: headerParameters, - query: queryParameters, - body: PatchedSystemRequestToJSON(requestParameters.PatchedSystemRequest), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => SystemFromJSON(jsonValue)); - } - - /** - * Update some fields of a system. The IFC file will not be updated. The created system will be accessible over the API and when exporting an IFC file Required scopes: ifc:write, model:write - * Update some fields of a system - */ - async updateSystemDeprecated(cloud_pk: number, ifc_pk: number, project_pk: number, uuid: string, PatchedSystemRequest?: PatchedSystemRequest, initOverrides?: RequestInit): Promise { - const response = await this.updateSystemDeprecatedRaw({ cloud_pk: cloud_pk, ifc_pk: ifc_pk, project_pk: project_pk, uuid: uuid, PatchedSystemRequest: PatchedSystemRequest }, initOverrides); - return await response.value(); - } - - /** - * Update some fields of a zone. The IFC file will not be updated. The created zone will be accessible over the API and when exporting an IFC file Required scopes: ifc:write, model:write - * Update some fields of a zone - */ - async updateZoneDeprecatedRaw(requestParameters: UpdateZoneDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling updateZoneDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling updateZoneDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling updateZoneDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling updateZoneDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/zone/{id}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))), - method: 'PATCH', - headers: headerParameters, - query: queryParameters, - body: PatchedZoneRequestToJSON(requestParameters.PatchedZoneRequest), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ZoneFromJSON(jsonValue)); - } - - /** - * Update some fields of a zone. The IFC file will not be updated. The created zone will be accessible over the API and when exporting an IFC file Required scopes: ifc:write, model:write - * Update some fields of a zone - */ - async updateZoneDeprecated(cloud_pk: number, id: number, ifc_pk: number, project_pk: number, PatchedZoneRequest?: PatchedZoneRequest, initOverrides?: RequestInit): Promise { - const response = await this.updateZoneDeprecatedRaw({ cloud_pk: cloud_pk, id: id, ifc_pk: ifc_pk, project_pk: project_pk, PatchedZoneRequest: PatchedZoneRequest }, initOverrides); - return await response.value(); - } - - /** - * Update some fields of a space. The IFC file will not be updated. The created space will be accessible over the API and when exporting an IFC file Required scopes: ifc:write, model:write - * Update some fields of a space - */ - async updateZoneSpaceDeprecatedRaw(requestParameters: UpdateZoneSpaceDeprecatedRequest, initOverrides?: RequestInit): Promise> { - if (requestParameters.cloud_pk === null || requestParameters.cloud_pk === undefined) { - throw new runtime.RequiredError('cloud_pk','Required parameter requestParameters.cloud_pk was null or undefined when calling updateZoneSpaceDeprecated.'); - } - - if (requestParameters.id === null || requestParameters.id === undefined) { - throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling updateZoneSpaceDeprecated.'); - } - - if (requestParameters.ifc_pk === null || requestParameters.ifc_pk === undefined) { - throw new runtime.RequiredError('ifc_pk','Required parameter requestParameters.ifc_pk was null or undefined when calling updateZoneSpaceDeprecated.'); - } - - if (requestParameters.project_pk === null || requestParameters.project_pk === undefined) { - throw new runtime.RequiredError('project_pk','Required parameter requestParameters.project_pk was null or undefined when calling updateZoneSpaceDeprecated.'); - } - - if (requestParameters.zone_pk === null || requestParameters.zone_pk === undefined) { - throw new runtime.RequiredError('zone_pk','Required parameter requestParameters.zone_pk was null or undefined when calling updateZoneSpaceDeprecated.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.accessToken) { - // oauth required - headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication - } - - const response = await this.request({ - path: `/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/zone/{zone_pk}/space/{id}`.replace(`{${"cloud_pk"}}`, encodeURIComponent(String(requestParameters.cloud_pk))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"ifc_pk"}}`, encodeURIComponent(String(requestParameters.ifc_pk))).replace(`{${"project_pk"}}`, encodeURIComponent(String(requestParameters.project_pk))).replace(`{${"zone_pk"}}`, encodeURIComponent(String(requestParameters.zone_pk))), - method: 'PATCH', - headers: headerParameters, - query: queryParameters, - body: PatchedZoneSpaceRequestToJSON(requestParameters.PatchedZoneSpaceRequest), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ZoneSpaceFromJSON(jsonValue)); - } - - /** - * Update some fields of a space. The IFC file will not be updated. The created space will be accessible over the API and when exporting an IFC file Required scopes: ifc:write, model:write - * Update some fields of a space - */ - async updateZoneSpaceDeprecated(cloud_pk: number, id: number, ifc_pk: number, project_pk: number, zone_pk: number, PatchedZoneSpaceRequest?: PatchedZoneSpaceRequest, initOverrides?: RequestInit): Promise { - const response = await this.updateZoneSpaceDeprecatedRaw({ cloud_pk: cloud_pk, id: id, ifc_pk: ifc_pk, project_pk: project_pk, zone_pk: zone_pk, PatchedZoneSpaceRequest: PatchedZoneSpaceRequest }, initOverrides); - return await response.value(); - } - -} - -/** - * @export - * @enum {string} - */ -export enum GetIfcsDeprecatedSourceEnum { - Export = 'EXPORT', - Merge = 'MERGE', - Optimized = 'OPTIMIZED', - Split = 'SPLIT', - Upload = 'UPLOAD' -} -/** - * @export - * @enum {string} - */ -export enum GetIfcsDeprecatedStatusEnum { - C = 'C', - D = 'D', - E = 'E', - I = 'I', - P = 'P', - W = 'W', - X = 'X' -} -/** - * @export - * @enum {string} - */ -export enum GetIfcsDeprecatedTypeEnum { - Dwg = 'DWG', - Dxf = 'DXF', - Gltf = 'GLTF', - Ifc = 'IFC', - Jpeg = 'JPEG', - Metabuilding = 'METABUILDING', - Obj = 'OBJ', - Pdf = 'PDF', - Png = 'PNG', - PointCloud = 'POINT_CLOUD' -} -/** - * @export - * @enum {string} - */ -export enum GetTilesetDeprecatedTileFormatEnum { - Pnts = 'pnts', - Xkt = 'xkt' -} diff --git a/package/src/apis/index.ts b/package/src/apis/index.ts index b0562d7..5fb6d0f 100644 --- a/package/src/apis/index.ts +++ b/package/src/apis/index.ts @@ -2,7 +2,6 @@ /* eslint-disable */ export * from './BcfApi'; export * from './CollaborationApi'; -export * from './IfcApi'; export * from './ModelApi'; export * from './SsoApi'; export * from './WebhookApi'; diff --git a/package/src/models/WriteFolderRequest.ts b/package/src/models/WriteFolderRequest.ts index 75c072d..d095de4 100644 --- a/package/src/models/WriteFolderRequest.ts +++ b/package/src/models/WriteFolderRequest.ts @@ -19,18 +19,18 @@ import { exists, mapValues } from '../runtime'; * @interface WriteFolderRequest */ export interface WriteFolderRequest { - /** - * Name of the folder - * @type {string} - * @memberof WriteFolderRequest - */ - name: string; /** * * @type {number} * @memberof WriteFolderRequest */ parent_id?: number | null; + /** + * Name of the folder + * @type {string} + * @memberof WriteFolderRequest + */ + name: string; /** * Permission for a Folder * @@ -69,8 +69,8 @@ export function WriteFolderRequestFromJSONTyped(json: any, ignoreDiscriminator: } return { - 'name': json['name'], 'parent_id': !exists(json, 'parent_id') ? undefined : json['parent_id'], + 'name': json['name'], 'default_permission': !exists(json, 'default_permission') ? undefined : json['default_permission'], 'children': !exists(json, 'children') ? undefined : (json['children'] === null ? null : (json['children'] as Array).map(WriteFolderRequestFromJSON)), }; @@ -85,8 +85,8 @@ export function WriteFolderRequestToJSON(value?: WriteFolderRequest | null): any } return { - 'name': value.name, 'parent_id': value.parent_id, + 'name': value.name, 'default_permission': value.default_permission, 'children': value.children === undefined ? undefined : (value.children === null ? null : (value.children as Array).map(WriteFolderRequestToJSON)), };