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

Commit 9d93fc3

Browse files
committed
MINOR: allow bigger guids (#420)
1 parent f50dc2a commit 9d93fc3

10 files changed

Lines changed: 40 additions & 234 deletions

.openapi-generator/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.2.2
1+
4.3.1

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# @bimdata/bimdata-api-client
22

33
bimdata - JavaScript client for @bimdata/bimdata-api-client
4-
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.
4+
BIMData API is a tool to interact with your models stored on BIMData’s servers.
5+
Through the API, you can manage your projects, the clouds, upload your IFC files and manage them through endpoints.
56
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
67

78
- API version: v1
@@ -431,8 +432,6 @@ Class | Method | HTTP request | Description
431432
- [bimdata.Direction](docs/Direction.md)
432433
- [bimdata.Document](docs/Document.md)
433434
- [bimdata.Element](docs/Element.md)
434-
- [bimdata.ElementClassificationRelation](docs/ElementClassificationRelation.md)
435-
- [bimdata.ElementPropertySetRelation](docs/ElementPropertySetRelation.md)
436435
- [bimdata.Extensions](docs/Extensions.md)
437436
- [bimdata.Feature](docs/Feature.md)
438437
- [bimdata.Folder](docs/Folder.md)

docs/ElementClassificationRelation.md

Lines changed: 0 additions & 10 deletions
This file was deleted.

docs/ElementPropertySetRelation.md

Lines changed: 0 additions & 10 deletions
This file was deleted.

docs/IfcApi.md

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -937,11 +937,11 @@ Name | Type | Description | Notes
937937

938938
## createClassificationElementRelations
939939

940-
> createClassificationElementRelations(cloudPk, ifcPk, projectPk, data)
940+
> createClassificationElementRelations(cloudPk, ifcPk, projectPk)
941941
942942
Create association between existing classification and existing element
943943

944-
Create association between existing classification and existing element Required scopes: ifc:write
944+
Required scopes: ifc:write
945945

946946
### Example
947947

@@ -964,8 +964,7 @@ let apiInstance = new bimdata.IfcApi();
964964
let cloudPk = "cloudPk_example"; // String |
965965
let ifcPk = "ifcPk_example"; // String |
966966
let projectPk = "projectPk_example"; // String |
967-
let data = [new bimdata.ElementClassificationRelation()]; // [ElementClassificationRelation] |
968-
apiInstance.createClassificationElementRelations(cloudPk, ifcPk, projectPk, data).then(() => {
967+
apiInstance.createClassificationElementRelations(cloudPk, ifcPk, projectPk).then(() => {
969968
console.log('API called successfully.');
970969
}, (error) => {
971970
console.error(error);
@@ -981,7 +980,6 @@ Name | Type | Description | Notes
981980
**cloudPk** | **String**| |
982981
**ifcPk** | **String**| |
983982
**projectPk** | **String**| |
984-
**data** | [**[ElementClassificationRelation]**](ElementClassificationRelation.md)| |
985983

986984
### Return type
987985

@@ -993,7 +991,7 @@ null (empty response body)
993991

994992
### HTTP request headers
995993

996-
- **Content-Type**: application/json
994+
- **Content-Type**: Not defined
997995
- **Accept**: Not defined
998996

999997

@@ -1641,11 +1639,11 @@ Name | Type | Description | Notes
16411639

16421640
## createPropertySetElementRelations
16431641

1644-
> createPropertySetElementRelations(cloudPk, ifcPk, projectPk, data)
1642+
> createPropertySetElementRelations(cloudPk, ifcPk, projectPk)
16451643
16461644
Create association between PropertySet and element
16471645

1648-
Create association between existing PropertySet and existing element Required scopes: ifc:write
1646+
Required scopes: ifc:write
16491647

16501648
### Example
16511649

@@ -1668,8 +1666,7 @@ let apiInstance = new bimdata.IfcApi();
16681666
let cloudPk = "cloudPk_example"; // String |
16691667
let ifcPk = "ifcPk_example"; // String |
16701668
let projectPk = "projectPk_example"; // String |
1671-
let data = [new bimdata.ElementPropertySetRelation()]; // [ElementPropertySetRelation] |
1672-
apiInstance.createPropertySetElementRelations(cloudPk, ifcPk, projectPk, data).then(() => {
1669+
apiInstance.createPropertySetElementRelations(cloudPk, ifcPk, projectPk).then(() => {
16731670
console.log('API called successfully.');
16741671
}, (error) => {
16751672
console.error(error);
@@ -1685,7 +1682,6 @@ Name | Type | Description | Notes
16851682
**cloudPk** | **String**| |
16861683
**ifcPk** | **String**| |
16871684
**projectPk** | **String**| |
1688-
**data** | [**[ElementPropertySetRelation]**](ElementPropertySetRelation.md)| |
16891685

16901686
### Return type
16911687

@@ -1697,7 +1693,7 @@ null (empty response body)
16971693

16981694
### HTTP request headers
16991695

1700-
- **Content-Type**: application/json
1696+
- **Content-Type**: Not defined
17011697
- **Accept**: Not defined
17021698

17031699

@@ -6783,11 +6779,11 @@ Name | Type | Description | Notes
67836779

67846780
## listClassificationElementRelations
67856781

6786-
> [ElementClassificationRelation] listClassificationElementRelations(cloudPk, ifcPk, projectPk)
6782+
> listClassificationElementRelations(cloudPk, ifcPk, projectPk)
67876783
67886784
List all associations between classifications and elements
67896785

6790-
List all associations between classifications and elements Required scopes: ifc:read
6786+
Required scopes: ifc:read
67916787

67926788
### Example
67936789

@@ -6810,8 +6806,8 @@ let apiInstance = new bimdata.IfcApi();
68106806
let cloudPk = "cloudPk_example"; // String |
68116807
let ifcPk = "ifcPk_example"; // String |
68126808
let projectPk = "projectPk_example"; // String |
6813-
apiInstance.listClassificationElementRelations(cloudPk, ifcPk, projectPk).then((data) => {
6814-
console.log('API called successfully. Returned data: ' + data);
6809+
apiInstance.listClassificationElementRelations(cloudPk, ifcPk, projectPk).then(() => {
6810+
console.log('API called successfully.');
68156811
}, (error) => {
68166812
console.error(error);
68176813
});
@@ -6829,7 +6825,7 @@ Name | Type | Description | Notes
68296825

68306826
### Return type
68316827

6832-
[**[ElementClassificationRelation]**](ElementClassificationRelation.md)
6828+
null (empty response body)
68336829

68346830
### Authorization
68356831

@@ -6838,7 +6834,7 @@ Name | Type | Description | Notes
68386834
### HTTP request headers
68396835

68406836
- **Content-Type**: Not defined
6841-
- **Accept**: application/json
6837+
- **Accept**: Not defined
68426838

68436839

68446840
## mergeIfcs

src/ApiClient.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,8 +399,6 @@ class ApiClient {
399399
if(contentType != 'multipart/form-data') {
400400
request.type(contentType);
401401
}
402-
} else if (!request.header['Content-Type']) {
403-
request.type('application/json');
404402
}
405403

406404
if (contentType === 'application/x-www-form-urlencoded') {
@@ -418,6 +416,9 @@ class ApiClient {
418416
}
419417
}
420418
} else if (bodyParam !== null && bodyParam !== undefined) {
419+
if (!request.header['Content-Type']) {
420+
request.type('application/json');
421+
}
421422
request.send(bodyParam);
422423
}
423424

src/api/IfcApi.js

Lines changed: 20 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
import ApiClient from "../ApiClient";
1616
import Classification from '../model/Classification';
1717
import Element from '../model/Element';
18-
import ElementClassificationRelation from '../model/ElementClassificationRelation';
19-
import ElementPropertySetRelation from '../model/ElementPropertySetRelation';
2018
import Ifc from '../model/Ifc';
2119
import IfcAccessToken from '../model/IfcAccessToken';
2220
import IfcErrors from '../model/IfcErrors';
@@ -916,15 +914,14 @@ export default class IfcApi {
916914

917915
/**
918916
* Create association between existing classification and existing element
919-
* Create association between existing classification and existing element Required scopes: ifc:write
917+
* Required scopes: ifc:write
920918
* @param {String} cloudPk
921919
* @param {String} ifcPk
922920
* @param {String} projectPk
923-
* @param {Array.<module:model/ElementClassificationRelation>} data
924921
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
925922
*/
926-
createClassificationElementRelationsWithHttpInfo(cloudPk, ifcPk, projectPk, data) {
927-
let postBody = data;
923+
createClassificationElementRelationsWithHttpInfo(cloudPk, ifcPk, projectPk) {
924+
let postBody = null;
928925
// verify the required parameter 'cloudPk' is set
929926
if (cloudPk === undefined || cloudPk === null) {
930927
throw new Error("Missing the required parameter 'cloudPk' when calling createClassificationElementRelations");
@@ -937,10 +934,6 @@ export default class IfcApi {
937934
if (projectPk === undefined || projectPk === null) {
938935
throw new Error("Missing the required parameter 'projectPk' when calling createClassificationElementRelations");
939936
}
940-
// verify the required parameter 'data' is set
941-
if (data === undefined || data === null) {
942-
throw new Error("Missing the required parameter 'data' when calling createClassificationElementRelations");
943-
}
944937

945938
let pathParams = {
946939
'cloud_pk': cloudPk,
@@ -955,7 +948,7 @@ export default class IfcApi {
955948
};
956949

957950
let authNames = ['Bearer', 'bimdata_connect', 'client_credentials'];
958-
let contentTypes = ['application/json'];
951+
let contentTypes = [];
959952
let accepts = [];
960953
let returnType = null;
961954
return this.apiClient.callApi(
@@ -967,15 +960,14 @@ export default class IfcApi {
967960

968961
/**
969962
* Create association between existing classification and existing element
970-
* Create association between existing classification and existing element Required scopes: ifc:write
963+
* Required scopes: ifc:write
971964
* @param {String} cloudPk
972965
* @param {String} ifcPk
973966
* @param {String} projectPk
974-
* @param {Array.<module:model/ElementClassificationRelation>} data
975967
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
976968
*/
977-
createClassificationElementRelations(cloudPk, ifcPk, projectPk, data) {
978-
return this.createClassificationElementRelationsWithHttpInfo(cloudPk, ifcPk, projectPk, data)
969+
createClassificationElementRelations(cloudPk, ifcPk, projectPk) {
970+
return this.createClassificationElementRelationsWithHttpInfo(cloudPk, ifcPk, projectPk)
979971
.then(function(response_and_data) {
980972
return response_and_data.data;
981973
});
@@ -1741,15 +1733,14 @@ export default class IfcApi {
17411733

17421734
/**
17431735
* Create association between PropertySet and element
1744-
* Create association between existing PropertySet and existing element Required scopes: ifc:write
1736+
* Required scopes: ifc:write
17451737
* @param {String} cloudPk
17461738
* @param {String} ifcPk
17471739
* @param {String} projectPk
1748-
* @param {Array.<module:model/ElementPropertySetRelation>} data
17491740
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
17501741
*/
1751-
createPropertySetElementRelationsWithHttpInfo(cloudPk, ifcPk, projectPk, data) {
1752-
let postBody = data;
1742+
createPropertySetElementRelationsWithHttpInfo(cloudPk, ifcPk, projectPk) {
1743+
let postBody = null;
17531744
// verify the required parameter 'cloudPk' is set
17541745
if (cloudPk === undefined || cloudPk === null) {
17551746
throw new Error("Missing the required parameter 'cloudPk' when calling createPropertySetElementRelations");
@@ -1762,10 +1753,6 @@ export default class IfcApi {
17621753
if (projectPk === undefined || projectPk === null) {
17631754
throw new Error("Missing the required parameter 'projectPk' when calling createPropertySetElementRelations");
17641755
}
1765-
// verify the required parameter 'data' is set
1766-
if (data === undefined || data === null) {
1767-
throw new Error("Missing the required parameter 'data' when calling createPropertySetElementRelations");
1768-
}
17691756

17701757
let pathParams = {
17711758
'cloud_pk': cloudPk,
@@ -1780,7 +1767,7 @@ export default class IfcApi {
17801767
};
17811768

17821769
let authNames = ['Bearer', 'bimdata_connect', 'client_credentials'];
1783-
let contentTypes = ['application/json'];
1770+
let contentTypes = [];
17841771
let accepts = [];
17851772
let returnType = null;
17861773
return this.apiClient.callApi(
@@ -1792,15 +1779,14 @@ export default class IfcApi {
17921779

17931780
/**
17941781
* Create association between PropertySet and element
1795-
* Create association between existing PropertySet and existing element Required scopes: ifc:write
1782+
* Required scopes: ifc:write
17961783
* @param {String} cloudPk
17971784
* @param {String} ifcPk
17981785
* @param {String} projectPk
1799-
* @param {Array.<module:model/ElementPropertySetRelation>} data
18001786
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
18011787
*/
1802-
createPropertySetElementRelations(cloudPk, ifcPk, projectPk, data) {
1803-
return this.createPropertySetElementRelationsWithHttpInfo(cloudPk, ifcPk, projectPk, data)
1788+
createPropertySetElementRelations(cloudPk, ifcPk, projectPk) {
1789+
return this.createPropertySetElementRelationsWithHttpInfo(cloudPk, ifcPk, projectPk)
18041790
.then(function(response_and_data) {
18051791
return response_and_data.data;
18061792
});
@@ -7513,11 +7499,11 @@ export default class IfcApi {
75137499

75147500
/**
75157501
* List all associations between classifications and elements
7516-
* List all associations between classifications and elements Required scopes: ifc:read
7502+
* Required scopes: ifc:read
75177503
* @param {String} cloudPk
75187504
* @param {String} ifcPk
75197505
* @param {String} projectPk
7520-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/ElementClassificationRelation>} and HTTP response
7506+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
75217507
*/
75227508
listClassificationElementRelationsWithHttpInfo(cloudPk, ifcPk, projectPk) {
75237509
let postBody = null;
@@ -7548,8 +7534,8 @@ export default class IfcApi {
75487534

75497535
let authNames = ['Bearer', 'bimdata_connect', 'client_credentials'];
75507536
let contentTypes = [];
7551-
let accepts = ['application/json'];
7552-
let returnType = [ElementClassificationRelation];
7537+
let accepts = [];
7538+
let returnType = null;
75537539
return this.apiClient.callApi(
75547540
'/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/classification-element', 'GET',
75557541
pathParams, queryParams, headerParams, formParams, postBody,
@@ -7559,11 +7545,11 @@ export default class IfcApi {
75597545

75607546
/**
75617547
* List all associations between classifications and elements
7562-
* List all associations between classifications and elements Required scopes: ifc:read
7548+
* Required scopes: ifc:read
75637549
* @param {String} cloudPk
75647550
* @param {String} ifcPk
75657551
* @param {String} projectPk
7566-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/ElementClassificationRelation>}
7552+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
75677553
*/
75687554
listClassificationElementRelations(cloudPk, ifcPk, projectPk) {
75697555
return this.listClassificationElementRelationsWithHttpInfo(cloudPk, ifcPk, projectPk)

src/index.js

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ import ComponentsParent from './model/ComponentsParent';
2828
import Direction from './model/Direction';
2929
import Document from './model/Document';
3030
import Element from './model/Element';
31-
import ElementClassificationRelation from './model/ElementClassificationRelation';
32-
import ElementPropertySetRelation from './model/ElementPropertySetRelation';
3331
import Extensions from './model/Extensions';
3432
import Feature from './model/Feature';
3533
import Folder from './model/Folder';
@@ -242,18 +240,6 @@ export {
242240
*/
243241
Element,
244242

245-
/**
246-
* The ElementClassificationRelation model constructor.
247-
* @property {module:model/ElementClassificationRelation}
248-
*/
249-
ElementClassificationRelation,
250-
251-
/**
252-
* The ElementPropertySetRelation model constructor.
253-
* @property {module:model/ElementPropertySetRelation}
254-
*/
255-
ElementPropertySetRelation,
256-
257243
/**
258244
* The Extensions model constructor.
259245
* @property {module:model/Extensions}

0 commit comments

Comments
 (0)