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

Commit 797dede

Browse files
committed
PATCH: fix create dms tree doc, children was missing in serializer request (#531)
* fix create dms tree doc, children was missing in serializer request * rename serializer
1 parent fb5621e commit 797dede

10 files changed

Lines changed: 174 additions & 182 deletions

.openapi-generator/FILES

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ docs/FeatureRequest.md
4747
docs/Folder.md
4848
docs/FolderGroupPermission.md
4949
docs/FolderGroupPermissionRequest.md
50-
docs/FolderRequest.md
5150
docs/FolderUserProject.md
5251
docs/FolderWithoutChildren.md
5352
docs/FolderWithoutChildrenRequest.md
@@ -191,7 +190,6 @@ docs/RawSystemRequest.md
191190
docs/RawUnit.md
192191
docs/RawUnitRequest.md
193192
docs/RecursiveFolderChildren.md
194-
docs/RecursiveFolderChildrenRequest.md
195193
docs/Rule.md
196194
docs/RuleComponent.md
197195
docs/RuleComponentRequest.md
@@ -241,6 +239,7 @@ docs/VisibilityRequest.md
241239
docs/WebHook.md
242240
docs/WebHookRequest.md
243241
docs/WebhookApi.md
242+
docs/WriteFolderRequest.md
244243
docs/Zone.md
245244
docs/ZoneRequest.md
246245
docs/ZoneSpace.md
@@ -298,7 +297,6 @@ src/model/FeatureRequest.js
298297
src/model/Folder.js
299298
src/model/FolderGroupPermission.js
300299
src/model/FolderGroupPermissionRequest.js
301-
src/model/FolderRequest.js
302300
src/model/FolderUserProject.js
303301
src/model/FolderWithoutChildren.js
304302
src/model/FolderWithoutChildrenRequest.js
@@ -440,7 +438,6 @@ src/model/RawSystemRequest.js
440438
src/model/RawUnit.js
441439
src/model/RawUnitRequest.js
442440
src/model/RecursiveFolderChildren.js
443-
src/model/RecursiveFolderChildrenRequest.js
444441
src/model/Rule.js
445442
src/model/RuleComponent.js
446443
src/model/RuleComponentRequest.js
@@ -488,6 +485,7 @@ src/model/Visibility.js
488485
src/model/VisibilityRequest.js
489486
src/model/WebHook.js
490487
src/model/WebHookRequest.js
488+
src/model/WriteFolderRequest.js
491489
src/model/Zone.js
492490
src/model/ZoneRequest.js
493491
src/model/ZoneSpace.js
@@ -541,7 +539,6 @@ test/model/FeatureRequest.spec.js
541539
test/model/Folder.spec.js
542540
test/model/FolderGroupPermission.spec.js
543541
test/model/FolderGroupPermissionRequest.spec.js
544-
test/model/FolderRequest.spec.js
545542
test/model/FolderUserProject.spec.js
546543
test/model/FolderWithoutChildren.spec.js
547544
test/model/FolderWithoutChildrenRequest.spec.js
@@ -683,7 +680,6 @@ test/model/RawSystemRequest.spec.js
683680
test/model/RawUnit.spec.js
684681
test/model/RawUnitRequest.spec.js
685682
test/model/RecursiveFolderChildren.spec.js
686-
test/model/RecursiveFolderChildrenRequest.spec.js
687683
test/model/Rule.spec.js
688684
test/model/RuleComponent.spec.js
689685
test/model/RuleComponentRequest.spec.js
@@ -731,6 +727,7 @@ test/model/Visibility.spec.js
731727
test/model/VisibilityRequest.spec.js
732728
test/model/WebHook.spec.js
733729
test/model/WebHookRequest.spec.js
730+
test/model/WriteFolderRequest.spec.js
734731
test/model/Zone.spec.js
735732
test/model/ZoneRequest.spec.js
736733
test/model/ZoneSpace.spec.js

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,6 @@ Class | Method | HTTP request | Description
677677
- [bimdata.Folder](docs/Folder.md)
678678
- [bimdata.FolderGroupPermission](docs/FolderGroupPermission.md)
679679
- [bimdata.FolderGroupPermissionRequest](docs/FolderGroupPermissionRequest.md)
680-
- [bimdata.FolderRequest](docs/FolderRequest.md)
681680
- [bimdata.FolderUserProject](docs/FolderUserProject.md)
682681
- [bimdata.FolderWithoutChildren](docs/FolderWithoutChildren.md)
683682
- [bimdata.FolderWithoutChildrenRequest](docs/FolderWithoutChildrenRequest.md)
@@ -819,7 +818,6 @@ Class | Method | HTTP request | Description
819818
- [bimdata.RawUnit](docs/RawUnit.md)
820819
- [bimdata.RawUnitRequest](docs/RawUnitRequest.md)
821820
- [bimdata.RecursiveFolderChildren](docs/RecursiveFolderChildren.md)
822-
- [bimdata.RecursiveFolderChildrenRequest](docs/RecursiveFolderChildrenRequest.md)
823821
- [bimdata.Rule](docs/Rule.md)
824822
- [bimdata.RuleComponent](docs/RuleComponent.md)
825823
- [bimdata.RuleComponentRequest](docs/RuleComponentRequest.md)
@@ -867,6 +865,7 @@ Class | Method | HTTP request | Description
867865
- [bimdata.VisibilityRequest](docs/VisibilityRequest.md)
868866
- [bimdata.WebHook](docs/WebHook.md)
869867
- [bimdata.WebHookRequest](docs/WebHookRequest.md)
868+
- [bimdata.WriteFolderRequest](docs/WriteFolderRequest.md)
870869
- [bimdata.Zone](docs/Zone.md)
871870
- [bimdata.ZoneRequest](docs/ZoneRequest.md)
872871
- [bimdata.ZoneSpace](docs/ZoneSpace.md)

docs/CollaborationApi.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -693,11 +693,11 @@ Name | Type | Description | Notes
693693

694694
## createDMSTree
695695

696-
> createDMSTree(cloudPk, id, folderRequest)
696+
> createDMSTree(cloudPk, id, writeFolderRequest)
697697
698698
Create a complete DMS tree
699699

700-
Create a DMS structure of folder Format request : [{ \"name\": :name: \"parent_id\": :parent_id: # optionnal \"default_permission\": :default_permission: # optionnal \"children\": [{ # optionnal \"name\": :name:, \"children\": [] }] }], Required scopes: org:manage
700+
Create a DMS structure of folder Format request : ``` [{ \"name\": :name: \"parent_id\": :parent_id: # optionnal \"default_permission\": :default_permission: # optionnal \"children\": [{ # optionnal \"name\": :name:, \"children\": [] }] }], ``` Required scopes: org:manage
701701

702702
### Example
703703

@@ -724,8 +724,8 @@ Bearer.apiKey = 'YOUR API KEY';
724724
let apiInstance = new bimdata.CollaborationApi();
725725
let cloudPk = 56; // Number |
726726
let id = 56; // Number | A unique integer value identifying this project.
727-
let folderRequest = new bimdata.FolderRequest(); // FolderRequest |
728-
apiInstance.createDMSTree(cloudPk, id, folderRequest).then(() => {
727+
let writeFolderRequest = new bimdata.WriteFolderRequest(); // WriteFolderRequest |
728+
apiInstance.createDMSTree(cloudPk, id, writeFolderRequest).then(() => {
729729
console.log('API called successfully.');
730730
}, (error) => {
731731
console.error(error);
@@ -740,7 +740,7 @@ Name | Type | Description | Notes
740740
------------- | ------------- | ------------- | -------------
741741
**cloudPk** | **Number**| |
742742
**id** | **Number**| A unique integer value identifying this project. |
743-
**folderRequest** | [**FolderRequest**](FolderRequest.md)| |
743+
**writeFolderRequest** | [**WriteFolderRequest**](WriteFolderRequest.md)| |
744744

745745
### Return type
746746

@@ -823,7 +823,7 @@ Name | Type | Description | Notes
823823
824824
Create a document
825825

826-
Create a document. If the document is one of {'DXF', 'GLTF', 'OBJ', 'IFC', 'DAE', 'BFX', 'DWG'}, a model will be created and attached to this document Required scopes: document:write
826+
Create a document. If the document is one of {'DAE', 'GLTF', 'IFC', 'DXF', 'DWG', 'OBJ', 'BFX'}, a model will be created and attached to this document Required scopes: document:write
827827

828828
### Example
829829

docs/RecursiveFolderChildrenRequest.md

Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# bimdata.FolderRequest
1+
# bimdata.WriteFolderRequest
22

33
## Properties
44

@@ -7,6 +7,7 @@ Name | Type | Description | Notes
77
**parentId** | **Number** | | [optional]
88
**name** | **String** | Name of the folder |
99
**defaultPermission** | **Number** | Permission for a Folder | [optional]
10+
**children** | [**[WriteFolderRequest]**](WriteFolderRequest.md) | | [optional]
1011

1112

1213

src/api/CollaborationApi.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import CloudInvitationRequest from '../model/CloudInvitationRequest';
2121
import CloudRequest from '../model/CloudRequest';
2222
import Document from '../model/Document';
2323
import Folder from '../model/Folder';
24-
import FolderRequest from '../model/FolderRequest';
2524
import FolderUserProject from '../model/FolderUserProject';
2625
import FolderWithoutChildren from '../model/FolderWithoutChildren';
2726
import FolderWithoutChildrenRequest from '../model/FolderWithoutChildrenRequest';
@@ -64,6 +63,7 @@ import VisaCommentRequest from '../model/VisaCommentRequest';
6463
import VisaRequest from '../model/VisaRequest';
6564
import VisaValidation from '../model/VisaValidation';
6665
import VisaValidationRequest from '../model/VisaValidationRequest';
66+
import WriteFolderRequest from '../model/WriteFolderRequest';
6767

6868
/**
6969
* Collaboration service.
@@ -641,14 +641,14 @@ export default class CollaborationApi {
641641

642642
/**
643643
* Create a complete DMS tree
644-
* Create a DMS structure of folder Format request : [{ \"name\": :name: \"parent_id\": :parent_id: # optionnal \"default_permission\": :default_permission: # optionnal \"children\": [{ # optionnal \"name\": :name:, \"children\": [] }] }], Required scopes: org:manage
644+
* Create a DMS structure of folder Format request : ``` [{ \"name\": :name: \"parent_id\": :parent_id: # optionnal \"default_permission\": :default_permission: # optionnal \"children\": [{ # optionnal \"name\": :name:, \"children\": [] }] }], ``` Required scopes: org:manage
645645
* @param {Number} cloudPk
646646
* @param {Number} id A unique integer value identifying this project.
647-
* @param {module:model/FolderRequest} folderRequest
647+
* @param {module:model/WriteFolderRequest} writeFolderRequest
648648
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
649649
*/
650-
createDMSTreeWithHttpInfo(cloudPk, id, folderRequest) {
651-
let postBody = folderRequest;
650+
createDMSTreeWithHttpInfo(cloudPk, id, writeFolderRequest) {
651+
let postBody = writeFolderRequest;
652652
// verify the required parameter 'cloudPk' is set
653653
if (cloudPk === undefined || cloudPk === null) {
654654
throw new Error("Missing the required parameter 'cloudPk' when calling createDMSTree");
@@ -657,9 +657,9 @@ export default class CollaborationApi {
657657
if (id === undefined || id === null) {
658658
throw new Error("Missing the required parameter 'id' when calling createDMSTree");
659659
}
660-
// verify the required parameter 'folderRequest' is set
661-
if (folderRequest === undefined || folderRequest === null) {
662-
throw new Error("Missing the required parameter 'folderRequest' when calling createDMSTree");
660+
// verify the required parameter 'writeFolderRequest' is set
661+
if (writeFolderRequest === undefined || writeFolderRequest === null) {
662+
throw new Error("Missing the required parameter 'writeFolderRequest' when calling createDMSTree");
663663
}
664664

665665
let pathParams = {
@@ -686,14 +686,14 @@ export default class CollaborationApi {
686686

687687
/**
688688
* Create a complete DMS tree
689-
* Create a DMS structure of folder Format request : [{ \"name\": :name: \"parent_id\": :parent_id: # optionnal \"default_permission\": :default_permission: # optionnal \"children\": [{ # optionnal \"name\": :name:, \"children\": [] }] }], Required scopes: org:manage
689+
* Create a DMS structure of folder Format request : ``` [{ \"name\": :name: \"parent_id\": :parent_id: # optionnal \"default_permission\": :default_permission: # optionnal \"children\": [{ # optionnal \"name\": :name:, \"children\": [] }] }], ``` Required scopes: org:manage
690690
* @param {Number} cloudPk
691691
* @param {Number} id A unique integer value identifying this project.
692-
* @param {module:model/FolderRequest} folderRequest
692+
* @param {module:model/WriteFolderRequest} writeFolderRequest
693693
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
694694
*/
695-
createDMSTree(cloudPk, id, folderRequest) {
696-
return this.createDMSTreeWithHttpInfo(cloudPk, id, folderRequest)
695+
createDMSTree(cloudPk, id, writeFolderRequest) {
696+
return this.createDMSTreeWithHttpInfo(cloudPk, id, writeFolderRequest)
697697
.then(function(response_and_data) {
698698
return response_and_data.data;
699699
});
@@ -750,7 +750,7 @@ export default class CollaborationApi {
750750

751751
/**
752752
* Create a document
753-
* Create a document. If the document is one of {'DXF', 'GLTF', 'OBJ', 'IFC', 'DAE', 'BFX', 'DWG'}, a model will be created and attached to this document Required scopes: document:write
753+
* Create a document. If the document is one of {'DAE', 'GLTF', 'IFC', 'DXF', 'DWG', 'OBJ', 'BFX'}, a model will be created and attached to this document Required scopes: document:write
754754
* @param {Number} cloudPk A unique integer value identifying this cloud.
755755
* @param {Number} projectPk A unique integer value identifying this project.
756756
* @param {String} name Shown name of the file
@@ -818,7 +818,7 @@ export default class CollaborationApi {
818818

819819
/**
820820
* Create a document
821-
* Create a document. If the document is one of {'DXF', 'GLTF', 'OBJ', 'IFC', 'DAE', 'BFX', 'DWG'}, a model will be created and attached to this document Required scopes: document:write
821+
* Create a document. If the document is one of {'DAE', 'GLTF', 'IFC', 'DXF', 'DWG', 'OBJ', 'BFX'}, a model will be created and attached to this document Required scopes: document:write
822822
* @param {Number} cloudPk A unique integer value identifying this cloud.
823823
* @param {Number} projectPk A unique integer value identifying this project.
824824
* @param {String} name Shown name of the file

src/index.js

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ import FeatureRequest from './model/FeatureRequest';
5555
import Folder from './model/Folder';
5656
import FolderGroupPermission from './model/FolderGroupPermission';
5757
import FolderGroupPermissionRequest from './model/FolderGroupPermissionRequest';
58-
import FolderRequest from './model/FolderRequest';
5958
import FolderUserProject from './model/FolderUserProject';
6059
import FolderWithoutChildren from './model/FolderWithoutChildren';
6160
import FolderWithoutChildrenRequest from './model/FolderWithoutChildrenRequest';
@@ -197,7 +196,6 @@ import RawSystemRequest from './model/RawSystemRequest';
197196
import RawUnit from './model/RawUnit';
198197
import RawUnitRequest from './model/RawUnitRequest';
199198
import RecursiveFolderChildren from './model/RecursiveFolderChildren';
200-
import RecursiveFolderChildrenRequest from './model/RecursiveFolderChildrenRequest';
201199
import Rule from './model/Rule';
202200
import RuleComponent from './model/RuleComponent';
203201
import RuleComponentRequest from './model/RuleComponentRequest';
@@ -245,6 +243,7 @@ import Visibility from './model/Visibility';
245243
import VisibilityRequest from './model/VisibilityRequest';
246244
import WebHook from './model/WebHook';
247245
import WebHookRequest from './model/WebHookRequest';
246+
import WriteFolderRequest from './model/WriteFolderRequest';
248247
import Zone from './model/Zone';
249248
import ZoneRequest from './model/ZoneRequest';
250249
import ZoneSpace from './model/ZoneSpace';
@@ -548,12 +547,6 @@ export {
548547
*/
549548
FolderGroupPermissionRequest,
550549

551-
/**
552-
* The FolderRequest model constructor.
553-
* @property {module:model/FolderRequest}
554-
*/
555-
FolderRequest,
556-
557550
/**
558551
* The FolderUserProject model constructor.
559552
* @property {module:model/FolderUserProject}
@@ -1400,12 +1393,6 @@ export {
14001393
*/
14011394
RecursiveFolderChildren,
14021395

1403-
/**
1404-
* The RecursiveFolderChildrenRequest model constructor.
1405-
* @property {module:model/RecursiveFolderChildrenRequest}
1406-
*/
1407-
RecursiveFolderChildrenRequest,
1408-
14091396
/**
14101397
* The Rule model constructor.
14111398
* @property {module:model/Rule}
@@ -1688,6 +1675,12 @@ export {
16881675
*/
16891676
WebHookRequest,
16901677

1678+
/**
1679+
* The WriteFolderRequest model constructor.
1680+
* @property {module:model/WriteFolderRequest}
1681+
*/
1682+
WriteFolderRequest,
1683+
16911684
/**
16921685
* The Zone model constructor.
16931686
* @property {module:model/Zone}

0 commit comments

Comments
 (0)