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

Commit a786d91

Browse files
committed
PATCH: fix bulk create route. Regression removed the declaration and bulk route were only accessible with a single objects instead of an array
1 parent e6add92 commit a786d91

10 files changed

Lines changed: 131 additions & 110 deletions

File tree

docs/Ifc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Name | Type | Description | Notes
1818
**gltfFile** | **String** | | [optional]
1919
**bvhTreeFile** | **String** | | [optional]
2020
**viewer360File** | **String** | | [optional]
21-
**errorDetail** | **String** | | [optional]
2221
**projectId** | **String** | | [optional]
22+
**worldPosition** | **[Number]** | [x,y,z] array of the position of the local_placement in world coordinates | [optional]
2323

2424

docs/IfcApi.md

Lines changed: 38 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -908,11 +908,11 @@ null (empty response body)
908908

909909
## createClassificationsOfElement
910910

911-
> Classification createClassificationsOfElement(cloudPk, elementUuid, ifcPk, projectPk, data)
911+
> [Classification] createClassificationsOfElement(cloudPk, elementUuid, ifcPk, projectPk, data)
912912
913913
Create one or many classifications to an element
914914

915-
Required scopes: ifc:write
915+
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
916916

917917
### Example
918918

@@ -936,7 +936,7 @@ let cloudPk = "cloudPk_example"; // String |
936936
let elementUuid = "elementUuid_example"; // String |
937937
let ifcPk = "ifcPk_example"; // String |
938938
let projectPk = "projectPk_example"; // String |
939-
let data = new bimdata.Classification(); // Classification |
939+
let data = [new bimdata.Classification()]; // [Classification] |
940940
apiInstance.createClassificationsOfElement(cloudPk, elementUuid, ifcPk, projectPk, data).then((data) => {
941941
console.log('API called successfully. Returned data: ' + data);
942942
}, (error) => {
@@ -954,11 +954,11 @@ Name | Type | Description | Notes
954954
**elementUuid** | **String**| |
955955
**ifcPk** | **String**| |
956956
**projectPk** | **String**| |
957-
**data** | [**Classification**](Classification.md)| |
957+
**data** | [**[Classification]**](Classification.md)| |
958958

959959
### Return type
960960

961-
[**Classification**](Classification.md)
961+
[**[Classification]**](Classification.md)
962962

963963
### Authorization
964964

@@ -972,11 +972,11 @@ Name | Type | Description | Notes
972972

973973
## createElement
974974

975-
> Element createElement(cloudPk, ifcPk, projectPk, data)
975+
> [Element] createElement(cloudPk, ifcPk, projectPk, data)
976976
977977
Create an element in the model
978978

979-
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
979+
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
980980

981981
### Example
982982

@@ -999,7 +999,7 @@ let apiInstance = new bimdata.IfcApi();
999999
let cloudPk = "cloudPk_example"; // String |
10001000
let ifcPk = "ifcPk_example"; // String |
10011001
let projectPk = "projectPk_example"; // String |
1002-
let data = new bimdata.Element(); // Element |
1002+
let data = [new bimdata.Element()]; // [Element] |
10031003
apiInstance.createElement(cloudPk, ifcPk, projectPk, data).then((data) => {
10041004
console.log('API called successfully. Returned data: ' + data);
10051005
}, (error) => {
@@ -1016,11 +1016,11 @@ Name | Type | Description | Notes
10161016
**cloudPk** | **String**| |
10171017
**ifcPk** | **String**| |
10181018
**projectPk** | **String**| |
1019-
**data** | [**Element**](Element.md)| |
1019+
**data** | [**[Element]**](Element.md)| |
10201020

10211021
### Return type
10221022

1023-
[**Element**](Element.md)
1023+
[**[Element]**](Element.md)
10241024

10251025
### Authorization
10261026

@@ -1302,11 +1302,11 @@ Name | Type | Description | Notes
13021302

13031303
## createIfcPropertyDefinition
13041304

1305-
> PropertyDefinition createIfcPropertyDefinition(cloudPk, ifcPk, projectPk, data)
1305+
> [PropertyDefinition] createIfcPropertyDefinition(cloudPk, ifcPk, projectPk, data)
13061306
13071307
Create a PropertyDefinition on the model
13081308

1309-
Required scopes: ifc:write
1309+
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
13101310

13111311
### Example
13121312

@@ -1329,7 +1329,7 @@ let apiInstance = new bimdata.IfcApi();
13291329
let cloudPk = "cloudPk_example"; // String |
13301330
let ifcPk = "ifcPk_example"; // String |
13311331
let projectPk = "projectPk_example"; // String |
1332-
let data = new bimdata.PropertyDefinition(); // PropertyDefinition |
1332+
let data = [new bimdata.PropertyDefinition()]; // [PropertyDefinition] |
13331333
apiInstance.createIfcPropertyDefinition(cloudPk, ifcPk, projectPk, data).then((data) => {
13341334
console.log('API called successfully. Returned data: ' + data);
13351335
}, (error) => {
@@ -1346,11 +1346,11 @@ Name | Type | Description | Notes
13461346
**cloudPk** | **String**| |
13471347
**ifcPk** | **String**| |
13481348
**projectPk** | **String**| |
1349-
**data** | [**PropertyDefinition**](PropertyDefinition.md)| |
1349+
**data** | [**[PropertyDefinition]**](PropertyDefinition.md)| |
13501350

13511351
### Return type
13521352

1353-
[**PropertyDefinition**](PropertyDefinition.md)
1353+
[**[PropertyDefinition]**](PropertyDefinition.md)
13541354

13551355
### Authorization
13561356

@@ -1364,11 +1364,11 @@ Name | Type | Description | Notes
13641364

13651365
## createIfcUnit
13661366

1367-
> Unit createIfcUnit(cloudPk, ifcPk, projectPk, data)
1367+
> [Unit] createIfcUnit(cloudPk, ifcPk, projectPk, data)
13681368
13691369
Create a Unit on a model
13701370

1371-
Required scopes: ifc:write
1371+
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
13721372

13731373
### Example
13741374

@@ -1391,7 +1391,7 @@ let apiInstance = new bimdata.IfcApi();
13911391
let cloudPk = "cloudPk_example"; // String |
13921392
let ifcPk = "ifcPk_example"; // String |
13931393
let projectPk = "projectPk_example"; // String |
1394-
let data = new bimdata.Unit(); // Unit |
1394+
let data = [new bimdata.Unit()]; // [Unit] |
13951395
apiInstance.createIfcUnit(cloudPk, ifcPk, projectPk, data).then((data) => {
13961396
console.log('API called successfully. Returned data: ' + data);
13971397
}, (error) => {
@@ -1408,11 +1408,11 @@ Name | Type | Description | Notes
14081408
**cloudPk** | **String**| |
14091409
**ifcPk** | **String**| |
14101410
**projectPk** | **String**| |
1411-
**data** | [**Unit**](Unit.md)| |
1411+
**data** | [**[Unit]**](Unit.md)| |
14121412

14131413
### Return type
14141414

1415-
[**Unit**](Unit.md)
1415+
[**[Unit]**](Unit.md)
14161416

14171417
### Authorization
14181418

@@ -1426,11 +1426,11 @@ Name | Type | Description | Notes
14261426

14271427
## createPropertySet
14281428

1429-
> PropertySet createPropertySet(cloudPk, ifcPk, projectPk, data)
1429+
> [PropertySet] createPropertySet(cloudPk, ifcPk, projectPk, data)
14301430
14311431
Create a PropertySet
14321432

1433-
Create a PropertySet Required scopes: ifc:write
1433+
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
14341434

14351435
### Example
14361436

@@ -1453,7 +1453,7 @@ let apiInstance = new bimdata.IfcApi();
14531453
let cloudPk = "cloudPk_example"; // String |
14541454
let ifcPk = "ifcPk_example"; // String |
14551455
let projectPk = "projectPk_example"; // String |
1456-
let data = new bimdata.PropertySet(); // PropertySet |
1456+
let data = [new bimdata.PropertySet()]; // [PropertySet] |
14571457
apiInstance.createPropertySet(cloudPk, ifcPk, projectPk, data).then((data) => {
14581458
console.log('API called successfully. Returned data: ' + data);
14591459
}, (error) => {
@@ -1470,11 +1470,11 @@ Name | Type | Description | Notes
14701470
**cloudPk** | **String**| |
14711471
**ifcPk** | **String**| |
14721472
**projectPk** | **String**| |
1473-
**data** | [**PropertySet**](PropertySet.md)| |
1473+
**data** | [**[PropertySet]**](PropertySet.md)| |
14741474

14751475
### Return type
14761476

1477-
[**PropertySet**](PropertySet.md)
1477+
[**[PropertySet]**](PropertySet.md)
14781478

14791479
### Authorization
14801480

@@ -1612,11 +1612,11 @@ null (empty response body)
16121612

16131613
## createSpace
16141614

1615-
> Space createSpace(cloudPk, ifcPk, projectPk, data)
1615+
> [Space] createSpace(cloudPk, ifcPk, projectPk, data)
16161616
16171617
Create a space in the model
16181618

1619-
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
1619+
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
16201620

16211621
### Example
16221622

@@ -1639,7 +1639,7 @@ let apiInstance = new bimdata.IfcApi();
16391639
let cloudPk = "cloudPk_example"; // String |
16401640
let ifcPk = "ifcPk_example"; // String |
16411641
let projectPk = "projectPk_example"; // String |
1642-
let data = new bimdata.Space(); // Space |
1642+
let data = [new bimdata.Space()]; // [Space] |
16431643
apiInstance.createSpace(cloudPk, ifcPk, projectPk, data).then((data) => {
16441644
console.log('API called successfully. Returned data: ' + data);
16451645
}, (error) => {
@@ -1656,11 +1656,11 @@ Name | Type | Description | Notes
16561656
**cloudPk** | **String**| |
16571657
**ifcPk** | **String**| |
16581658
**projectPk** | **String**| |
1659-
**data** | [**Space**](Space.md)| |
1659+
**data** | [**[Space]**](Space.md)| |
16601660

16611661
### Return type
16621662

1663-
[**Space**](Space.md)
1663+
[**[Space]**](Space.md)
16641664

16651665
### Authorization
16661666

@@ -1674,11 +1674,11 @@ Name | Type | Description | Notes
16741674

16751675
## createZone
16761676

1677-
> Zone createZone(cloudPk, ifcPk, projectPk, data)
1677+
> [Zone] createZone(cloudPk, ifcPk, projectPk, data)
16781678
16791679
Create a zone in the model
16801680

1681-
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
1681+
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
16821682

16831683
### Example
16841684

@@ -1701,7 +1701,7 @@ let apiInstance = new bimdata.IfcApi();
17011701
let cloudPk = "cloudPk_example"; // String |
17021702
let ifcPk = "ifcPk_example"; // String |
17031703
let projectPk = "projectPk_example"; // String |
1704-
let data = new bimdata.Zone(); // Zone |
1704+
let data = [new bimdata.Zone()]; // [Zone] |
17051705
apiInstance.createZone(cloudPk, ifcPk, projectPk, data).then((data) => {
17061706
console.log('API called successfully. Returned data: ' + data);
17071707
}, (error) => {
@@ -1718,11 +1718,11 @@ Name | Type | Description | Notes
17181718
**cloudPk** | **String**| |
17191719
**ifcPk** | **String**| |
17201720
**projectPk** | **String**| |
1721-
**data** | [**Zone**](Zone.md)| |
1721+
**data** | [**[Zone]**](Zone.md)| |
17221722

17231723
### Return type
17241724

1725-
[**Zone**](Zone.md)
1725+
[**[Zone]**](Zone.md)
17261726

17271727
### Authorization
17281728

@@ -5927,7 +5927,8 @@ let opts = {
59275927
'mapFile': "/path/to/file", // File |
59285928
'gltfFile': "/path/to/file", // File |
59295929
'bvhTreeFile': "/path/to/file", // File |
5930-
'viewer360File': "/path/to/file" // File |
5930+
'viewer360File': "/path/to/file", // File |
5931+
'xktFile': "/path/to/file" // File |
59315932
};
59325933
apiInstance.updateIfcFiles(cloudPk, id, projectPk, opts).then((data) => {
59335934
console.log('API called successfully. Returned data: ' + data);
@@ -5951,6 +5952,7 @@ Name | Type | Description | Notes
59515952
**gltfFile** | **File**| | [optional]
59525953
**bvhTreeFile** | **File**| | [optional]
59535954
**viewer360File** | **File**| | [optional]
5955+
**xktFile** | **File**| | [optional]
59545956

59555957
### Return type
59565958

docs/IfcFiles.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ Name | Type | Description | Notes
1010
**gltfFile** | **String** | | [optional]
1111
**bvhTreeFile** | **String** | | [optional]
1212
**viewer360File** | **String** | | [optional]
13+
**xktFile** | **String** | | [optional]
1314

1415

docs/ProjectApi.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,11 @@ null (empty response body)
104104

105105
## createClassification
106106

107-
> Classification createClassification(cloudPk, projectPk, data)
107+
> [Classification] createClassification(cloudPk, projectPk, data)
108108
109109
Create a classification
110110

111-
Required scopes: ifc:write
111+
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 created classification already exists, it will not be duplicated and the previous one will be returned. You also can add a 'classification' filter on this endpoint. By ex: /classification?name='untec'. The name is case sensitive Required scopes: ifc:write
112112

113113
### Example
114114

@@ -130,7 +130,7 @@ client_credentials.accessToken = 'YOUR ACCESS TOKEN';
130130
let apiInstance = new bimdata.ProjectApi();
131131
let cloudPk = "cloudPk_example"; // String |
132132
let projectPk = "projectPk_example"; // String |
133-
let data = new bimdata.Classification(); // Classification |
133+
let data = [new bimdata.Classification()]; // [Classification] |
134134
apiInstance.createClassification(cloudPk, projectPk, data).then((data) => {
135135
console.log('API called successfully. Returned data: ' + data);
136136
}, (error) => {
@@ -146,11 +146,11 @@ Name | Type | Description | Notes
146146
------------- | ------------- | ------------- | -------------
147147
**cloudPk** | **String**| |
148148
**projectPk** | **String**| |
149-
**data** | [**Classification**](Classification.md)| |
149+
**data** | [**[Classification]**](Classification.md)| |
150150

151151
### Return type
152152

153-
[**Classification**](Classification.md)
153+
[**[Classification]**](Classification.md)
154154

155155
### Authorization
156156

0 commit comments

Comments
 (0)