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

Commit 4fb76c4

Browse files
committed
MINOR: order plans in storey (#495)
* init refacto storey * add building test * fix serializers * replace Counter * init refacto storey * order plans in storey * merge migration ifc/88_ * fix bad merge * fix bad merge
1 parent 776b01e commit 4fb76c4

7 files changed

Lines changed: 604 additions & 0 deletions

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,8 @@ Class | Method | HTTP request | Description
447447
*bimdata.IfcApi* | [**updateIfcPropertyDeprecated**](docs/IfcApi.md#updateIfcPropertyDeprecated) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/property/{id} | Update some fields of a Property
448448
*bimdata.IfcApi* | [**updateIfcUnitDeprecated**](docs/IfcApi.md#updateIfcUnitDeprecated) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/unit/{id} | Update some fields of a Unit of a model
449449
*bimdata.IfcApi* | [**updateLayerDeprecated**](docs/IfcApi.md#updateLayerDeprecated) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/layer/{id} | Update some fields of a layer
450+
*bimdata.IfcApi* | [**updateOrderBuildingPlanDeprecated**](docs/IfcApi.md#updateOrderBuildingPlanDeprecated) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/building/{building_uuid}/plan/order | Update order of all plan of a building
451+
*bimdata.IfcApi* | [**updateOrderStoreyPlanDeprecated**](docs/IfcApi.md#updateOrderStoreyPlanDeprecated) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/storey/{storey_uuid}/plan/order | Update order of all plan of a storey
450452
*bimdata.IfcApi* | [**updateOrderStoreysDeprecated**](docs/IfcApi.md#updateOrderStoreysDeprecated) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/storey/order | Update order of all storey of a model
451453
*bimdata.IfcApi* | [**updateProcessorHandlerDeprecated**](docs/IfcApi.md#updateProcessorHandlerDeprecated) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/processorhandler/{id} | Update the status of a processor handler
452454
*bimdata.IfcApi* | [**updatePropertySetDeprecated**](docs/IfcApi.md#updatePropertySetDeprecated) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/propertyset/{id} | Update some fields of a PropertySet
@@ -588,6 +590,8 @@ Class | Method | HTTP request | Description
588590
*bimdata.ModelApi* | [**updateModelProperty**](docs/ModelApi.md#updateModelProperty) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/property/{id} | Update some fields of a Property
589591
*bimdata.ModelApi* | [**updateModelPropertyDefinition**](docs/ModelApi.md#updateModelPropertyDefinition) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/propertydefinition/{id} | Update some fields of many PropertyDefinitions of a model
590592
*bimdata.ModelApi* | [**updateModelUnit**](docs/ModelApi.md#updateModelUnit) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/unit/{id} | Update some fields of a Unit of a model
593+
*bimdata.ModelApi* | [**updateOrderBuildingPlan**](docs/ModelApi.md#updateOrderBuildingPlan) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/building/{building_uuid}/plan/order | Update order of all plan of a building
594+
*bimdata.ModelApi* | [**updateOrderStoreyPlan**](docs/ModelApi.md#updateOrderStoreyPlan) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/storey/{storey_uuid}/plan/order | Update order of all plan of a storey
591595
*bimdata.ModelApi* | [**updateOrderStoreys**](docs/ModelApi.md#updateOrderStoreys) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/storey/order | Update order of all storey of a model
592596
*bimdata.ModelApi* | [**updateProcessorHandler**](docs/ModelApi.md#updateProcessorHandler) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/processorhandler/{id} | Update the status of a processor handler
593597
*bimdata.ModelApi* | [**updatePropertySet**](docs/ModelApi.md#updatePropertySet) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/propertyset/{id} | Update some fields of a PropertySet

docs/IfcApi.md

Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ Method | HTTP request | Description
147147
[**updateIfcPropertyDeprecated**](IfcApi.md#updateIfcPropertyDeprecated) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/property/{id} | Update some fields of a Property
148148
[**updateIfcUnitDeprecated**](IfcApi.md#updateIfcUnitDeprecated) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/unit/{id} | Update some fields of a Unit of a model
149149
[**updateLayerDeprecated**](IfcApi.md#updateLayerDeprecated) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/layer/{id} | Update some fields of a layer
150+
[**updateOrderBuildingPlanDeprecated**](IfcApi.md#updateOrderBuildingPlanDeprecated) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/building/{building_uuid}/plan/order | Update order of all plan of a building
151+
[**updateOrderStoreyPlanDeprecated**](IfcApi.md#updateOrderStoreyPlanDeprecated) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/storey/{storey_uuid}/plan/order | Update order of all plan of a storey
150152
[**updateOrderStoreysDeprecated**](IfcApi.md#updateOrderStoreysDeprecated) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/storey/order | Update order of all storey of a model
151153
[**updateProcessorHandlerDeprecated**](IfcApi.md#updateProcessorHandlerDeprecated) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/processorhandler/{id} | Update the status of a processor handler
152154
[**updatePropertySetDeprecated**](IfcApi.md#updatePropertySetDeprecated) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/propertyset/{id} | Update some fields of a PropertySet
@@ -9173,6 +9175,134 @@ Name | Type | Description | Notes
91739175
- **Accept**: application/json
91749176

91759177

9178+
## updateOrderBuildingPlanDeprecated
9179+
9180+
> Storey updateOrderBuildingPlanDeprecated(buildingUuid, cloudPk, ifcPk, projectPk, data)
9181+
9182+
Update order of all plan of a building
9183+
9184+
Update order of all plan of a building Required scopes: ifc:write, model:write
9185+
9186+
### Example
9187+
9188+
```javascript
9189+
import bimdata from '@bimdata/bimdata-api-client';
9190+
let defaultClient = bimdata.ApiClient.instance;
9191+
// Configure API key authorization: Bearer
9192+
let Bearer = defaultClient.authentications['Bearer'];
9193+
Bearer.apiKey = 'YOUR API KEY';
9194+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
9195+
//Bearer.apiKeyPrefix = 'Token';
9196+
// Configure OAuth2 access token for authorization: bimdata_connect
9197+
let bimdata_connect = defaultClient.authentications['bimdata_connect'];
9198+
bimdata_connect.accessToken = 'YOUR ACCESS TOKEN';
9199+
// Configure OAuth2 access token for authorization: client_credentials
9200+
let client_credentials = defaultClient.authentications['client_credentials'];
9201+
client_credentials.accessToken = 'YOUR ACCESS TOKEN';
9202+
9203+
let apiInstance = new bimdata.IfcApi();
9204+
let buildingUuid = "buildingUuid_example"; // String |
9205+
let cloudPk = "cloudPk_example"; // String |
9206+
let ifcPk = "ifcPk_example"; // String |
9207+
let projectPk = "projectPk_example"; // String |
9208+
let data = ["null"]; // [String] |
9209+
apiInstance.updateOrderBuildingPlanDeprecated(buildingUuid, cloudPk, ifcPk, projectPk, data).then((data) => {
9210+
console.log('API called successfully. Returned data: ' + data);
9211+
}, (error) => {
9212+
console.error(error);
9213+
});
9214+
9215+
```
9216+
9217+
### Parameters
9218+
9219+
9220+
Name | Type | Description | Notes
9221+
------------- | ------------- | ------------- | -------------
9222+
**buildingUuid** | **String**| |
9223+
**cloudPk** | **String**| |
9224+
**ifcPk** | **String**| |
9225+
**projectPk** | **String**| |
9226+
**data** | [**[String]**](String.md)| |
9227+
9228+
### Return type
9229+
9230+
[**Storey**](Storey.md)
9231+
9232+
### Authorization
9233+
9234+
[Bearer](../README.md#Bearer), [bimdata_connect](../README.md#bimdata_connect), [client_credentials](../README.md#client_credentials)
9235+
9236+
### HTTP request headers
9237+
9238+
- **Content-Type**: application/json
9239+
- **Accept**: application/json
9240+
9241+
9242+
## updateOrderStoreyPlanDeprecated
9243+
9244+
> Storey updateOrderStoreyPlanDeprecated(cloudPk, ifcPk, projectPk, storeyUuid, data)
9245+
9246+
Update order of all plan of a storey
9247+
9248+
Update order of all plan of a storey Required scopes: ifc:write, model:write
9249+
9250+
### Example
9251+
9252+
```javascript
9253+
import bimdata from '@bimdata/bimdata-api-client';
9254+
let defaultClient = bimdata.ApiClient.instance;
9255+
// Configure API key authorization: Bearer
9256+
let Bearer = defaultClient.authentications['Bearer'];
9257+
Bearer.apiKey = 'YOUR API KEY';
9258+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
9259+
//Bearer.apiKeyPrefix = 'Token';
9260+
// Configure OAuth2 access token for authorization: bimdata_connect
9261+
let bimdata_connect = defaultClient.authentications['bimdata_connect'];
9262+
bimdata_connect.accessToken = 'YOUR ACCESS TOKEN';
9263+
// Configure OAuth2 access token for authorization: client_credentials
9264+
let client_credentials = defaultClient.authentications['client_credentials'];
9265+
client_credentials.accessToken = 'YOUR ACCESS TOKEN';
9266+
9267+
let apiInstance = new bimdata.IfcApi();
9268+
let cloudPk = "cloudPk_example"; // String |
9269+
let ifcPk = "ifcPk_example"; // String |
9270+
let projectPk = "projectPk_example"; // String |
9271+
let storeyUuid = "storeyUuid_example"; // String |
9272+
let data = ["null"]; // [String] |
9273+
apiInstance.updateOrderStoreyPlanDeprecated(cloudPk, ifcPk, projectPk, storeyUuid, data).then((data) => {
9274+
console.log('API called successfully. Returned data: ' + data);
9275+
}, (error) => {
9276+
console.error(error);
9277+
});
9278+
9279+
```
9280+
9281+
### Parameters
9282+
9283+
9284+
Name | Type | Description | Notes
9285+
------------- | ------------- | ------------- | -------------
9286+
**cloudPk** | **String**| |
9287+
**ifcPk** | **String**| |
9288+
**projectPk** | **String**| |
9289+
**storeyUuid** | **String**| |
9290+
**data** | [**[String]**](String.md)| |
9291+
9292+
### Return type
9293+
9294+
[**Storey**](Storey.md)
9295+
9296+
### Authorization
9297+
9298+
[Bearer](../README.md#Bearer), [bimdata_connect](../README.md#bimdata_connect), [client_credentials](../README.md#client_credentials)
9299+
9300+
### HTTP request headers
9301+
9302+
- **Content-Type**: application/json
9303+
- **Accept**: application/json
9304+
9305+
91769306
## updateOrderStoreysDeprecated
91779307

91789308
> [Storey] updateOrderStoreysDeprecated(cloudPk, ifcPk, projectPk, data)

docs/ModelApi.md

Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ Method | HTTP request | Description
136136
[**updateModelProperty**](ModelApi.md#updateModelProperty) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/property/{id} | Update some fields of a Property
137137
[**updateModelPropertyDefinition**](ModelApi.md#updateModelPropertyDefinition) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/propertydefinition/{id} | Update some fields of many PropertyDefinitions of a model
138138
[**updateModelUnit**](ModelApi.md#updateModelUnit) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/unit/{id} | Update some fields of a Unit of a model
139+
[**updateOrderBuildingPlan**](ModelApi.md#updateOrderBuildingPlan) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/building/{building_uuid}/plan/order | Update order of all plan of a building
140+
[**updateOrderStoreyPlan**](ModelApi.md#updateOrderStoreyPlan) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/storey/{storey_uuid}/plan/order | Update order of all plan of a storey
139141
[**updateOrderStoreys**](ModelApi.md#updateOrderStoreys) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/storey/order | Update order of all storey of a model
140142
[**updateProcessorHandler**](ModelApi.md#updateProcessorHandler) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/processorhandler/{id} | Update the status of a processor handler
141143
[**updatePropertySet**](ModelApi.md#updatePropertySet) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/propertyset/{id} | Update some fields of a PropertySet
@@ -8468,6 +8470,134 @@ Name | Type | Description | Notes
84688470
- **Accept**: application/json
84698471

84708472

8473+
## updateOrderBuildingPlan
8474+
8475+
> Storey updateOrderBuildingPlan(buildingUuid, cloudPk, modelPk, projectPk, data)
8476+
8477+
Update order of all plan of a building
8478+
8479+
Update order of all plan of a building Required scopes: ifc:write, model:write
8480+
8481+
### Example
8482+
8483+
```javascript
8484+
import bimdata from '@bimdata/bimdata-api-client';
8485+
let defaultClient = bimdata.ApiClient.instance;
8486+
// Configure API key authorization: Bearer
8487+
let Bearer = defaultClient.authentications['Bearer'];
8488+
Bearer.apiKey = 'YOUR API KEY';
8489+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
8490+
//Bearer.apiKeyPrefix = 'Token';
8491+
// Configure OAuth2 access token for authorization: bimdata_connect
8492+
let bimdata_connect = defaultClient.authentications['bimdata_connect'];
8493+
bimdata_connect.accessToken = 'YOUR ACCESS TOKEN';
8494+
// Configure OAuth2 access token for authorization: client_credentials
8495+
let client_credentials = defaultClient.authentications['client_credentials'];
8496+
client_credentials.accessToken = 'YOUR ACCESS TOKEN';
8497+
8498+
let apiInstance = new bimdata.ModelApi();
8499+
let buildingUuid = "buildingUuid_example"; // String |
8500+
let cloudPk = "cloudPk_example"; // String |
8501+
let modelPk = "modelPk_example"; // String |
8502+
let projectPk = "projectPk_example"; // String |
8503+
let data = ["null"]; // [String] |
8504+
apiInstance.updateOrderBuildingPlan(buildingUuid, cloudPk, modelPk, projectPk, data).then((data) => {
8505+
console.log('API called successfully. Returned data: ' + data);
8506+
}, (error) => {
8507+
console.error(error);
8508+
});
8509+
8510+
```
8511+
8512+
### Parameters
8513+
8514+
8515+
Name | Type | Description | Notes
8516+
------------- | ------------- | ------------- | -------------
8517+
**buildingUuid** | **String**| |
8518+
**cloudPk** | **String**| |
8519+
**modelPk** | **String**| |
8520+
**projectPk** | **String**| |
8521+
**data** | [**[String]**](String.md)| |
8522+
8523+
### Return type
8524+
8525+
[**Storey**](Storey.md)
8526+
8527+
### Authorization
8528+
8529+
[Bearer](../README.md#Bearer), [bimdata_connect](../README.md#bimdata_connect), [client_credentials](../README.md#client_credentials)
8530+
8531+
### HTTP request headers
8532+
8533+
- **Content-Type**: application/json
8534+
- **Accept**: application/json
8535+
8536+
8537+
## updateOrderStoreyPlan
8538+
8539+
> Storey updateOrderStoreyPlan(cloudPk, modelPk, projectPk, storeyUuid, data)
8540+
8541+
Update order of all plan of a storey
8542+
8543+
Update order of all plan of a storey Required scopes: ifc:write, model:write
8544+
8545+
### Example
8546+
8547+
```javascript
8548+
import bimdata from '@bimdata/bimdata-api-client';
8549+
let defaultClient = bimdata.ApiClient.instance;
8550+
// Configure API key authorization: Bearer
8551+
let Bearer = defaultClient.authentications['Bearer'];
8552+
Bearer.apiKey = 'YOUR API KEY';
8553+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
8554+
//Bearer.apiKeyPrefix = 'Token';
8555+
// Configure OAuth2 access token for authorization: bimdata_connect
8556+
let bimdata_connect = defaultClient.authentications['bimdata_connect'];
8557+
bimdata_connect.accessToken = 'YOUR ACCESS TOKEN';
8558+
// Configure OAuth2 access token for authorization: client_credentials
8559+
let client_credentials = defaultClient.authentications['client_credentials'];
8560+
client_credentials.accessToken = 'YOUR ACCESS TOKEN';
8561+
8562+
let apiInstance = new bimdata.ModelApi();
8563+
let cloudPk = "cloudPk_example"; // String |
8564+
let modelPk = "modelPk_example"; // String |
8565+
let projectPk = "projectPk_example"; // String |
8566+
let storeyUuid = "storeyUuid_example"; // String |
8567+
let data = ["null"]; // [String] |
8568+
apiInstance.updateOrderStoreyPlan(cloudPk, modelPk, projectPk, storeyUuid, data).then((data) => {
8569+
console.log('API called successfully. Returned data: ' + data);
8570+
}, (error) => {
8571+
console.error(error);
8572+
});
8573+
8574+
```
8575+
8576+
### Parameters
8577+
8578+
8579+
Name | Type | Description | Notes
8580+
------------- | ------------- | ------------- | -------------
8581+
**cloudPk** | **String**| |
8582+
**modelPk** | **String**| |
8583+
**projectPk** | **String**| |
8584+
**storeyUuid** | **String**| |
8585+
**data** | [**[String]**](String.md)| |
8586+
8587+
### Return type
8588+
8589+
[**Storey**](Storey.md)
8590+
8591+
### Authorization
8592+
8593+
[Bearer](../README.md#Bearer), [bimdata_connect](../README.md#bimdata_connect), [client_credentials](../README.md#client_credentials)
8594+
8595+
### HTTP request headers
8596+
8597+
- **Content-Type**: application/json
8598+
- **Accept**: application/json
8599+
8600+
84718601
## updateOrderStoreys
84728602

84738603
> [Storey] updateOrderStoreys(cloudPk, modelPk, projectPk, data)

0 commit comments

Comments
 (0)