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

Commit 55fd5dc

Browse files
committed
PATCH: add id project to serializer getProjectFolderTreeSerializers
1 parent 2e5d203 commit 55fd5dc

File tree

5 files changed

+38
-21
lines changed

5 files changed

+38
-21
lines changed

docs/CollaborationApi.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -955,7 +955,7 @@ Name | Type | Description | Notes
955955
956956
Create a document
957957

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

960960
### Example
961961

@@ -1294,7 +1294,7 @@ Name | Type | Description | Notes
12941294
12951295
Create a tag
12961296

1297-
Create a tag Required scopes: org:manage
1297+
Create a tag Required scopes: document:write
12981298

12991299
### Example
13001300

@@ -2344,7 +2344,7 @@ null (empty response body)
23442344
23452345
Delete the tag
23462346

2347-
Delete the tag Required scopes: org:manage
2347+
Delete the tag Required scopes: document:write
23482348

23492349
### Example
23502350

@@ -4827,7 +4827,7 @@ This endpoint does not need any parameter.
48274827
48284828
Retrieve a tag
48294829

4830-
Retrieve a tag in the project Required scopes: org:manage
4830+
Retrieve a tag in the project Required scopes: document:read
48314831

48324832
### Example
48334833

@@ -4892,7 +4892,7 @@ Name | Type | Description | Notes
48924892
48934893
Retrieve all tags
48944894

4895-
Retrieve all tags in the project Required scopes: org:manage
4895+
Retrieve all tags in the project Required scopes: document:read
48964896

48974897
### Example
48984898

@@ -6819,7 +6819,7 @@ Name | Type | Description | Notes
68196819
68206820
Update some fields of the tag
68216821

6822-
Update some fields of the tag Required scopes: org:manage
6822+
Update some fields of the tag Required scopes: document:write
68236823

68246824
### Example
68256825

docs/ProjectFolderTree.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7+
**id** | **Number** | |
78
**name** | **String** | |
89
**folders** | [**[FolderTree]**](FolderTree.md) | |
910

src/api/CollaborationApi.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@ export default class CollaborationApi {
858858

859859
/**
860860
* Create a document
861-
* Create a document. If the document is one of {'IFC', 'GLTF', 'POINT_CLOUD', 'DWG', 'OBJ', 'DXF'}, a model will be created and attached to this document Required scopes: document:write
861+
* Create a document. If the document is one of {'DXF', 'IFC', 'GLTF', 'OBJ', 'POINT_CLOUD', 'DWG'}, a model will be created and attached to this document Required scopes: document:write
862862
* @param {Number} cloudPk A unique integer value identifying this cloud.
863863
* @param {Number} projectPk A unique integer value identifying this project.
864864
* @param {String} name Shown name of the file
@@ -924,7 +924,7 @@ export default class CollaborationApi {
924924

925925
/**
926926
* Create a document
927-
* Create a document. If the document is one of {'IFC', 'GLTF', 'POINT_CLOUD', 'DWG', 'OBJ', 'DXF'}, a model will be created and attached to this document Required scopes: document:write
927+
* Create a document. If the document is one of {'DXF', 'IFC', 'GLTF', 'OBJ', 'POINT_CLOUD', 'DWG'}, a model will be created and attached to this document Required scopes: document:write
928928
* @param {Number} cloudPk A unique integer value identifying this cloud.
929929
* @param {Number} projectPk A unique integer value identifying this project.
930930
* @param {String} name Shown name of the file
@@ -1185,7 +1185,7 @@ export default class CollaborationApi {
11851185

11861186
/**
11871187
* Create a tag
1188-
* Create a tag Required scopes: org:manage
1188+
* Create a tag Required scopes: document:write
11891189
* @param {Number} cloudPk A unique integer value identifying this cloud.
11901190
* @param {Number} projectPk A unique integer value identifying this project.
11911191
* @param {module:model/TagRequest} tagRequest
@@ -1230,7 +1230,7 @@ export default class CollaborationApi {
12301230

12311231
/**
12321232
* Create a tag
1233-
* Create a tag Required scopes: org:manage
1233+
* Create a tag Required scopes: document:write
12341234
* @param {Number} cloudPk A unique integer value identifying this cloud.
12351235
* @param {Number} projectPk A unique integer value identifying this project.
12361236
* @param {module:model/TagRequest} tagRequest
@@ -2192,7 +2192,7 @@ export default class CollaborationApi {
21922192

21932193
/**
21942194
* Delete the tag
2195-
* Delete the tag Required scopes: org:manage
2195+
* Delete the tag Required scopes: document:write
21962196
* @param {Number} cloudPk A unique integer value identifying this cloud.
21972197
* @param {Number} id A unique integer value identifying this tag.
21982198
* @param {Number} projectPk A unique integer value identifying this project.
@@ -2238,7 +2238,7 @@ export default class CollaborationApi {
22382238

22392239
/**
22402240
* Delete the tag
2241-
* Delete the tag Required scopes: org:manage
2241+
* Delete the tag Required scopes: document:write
22422242
* @param {Number} cloudPk A unique integer value identifying this cloud.
22432243
* @param {Number} id A unique integer value identifying this tag.
22442244
* @param {Number} projectPk A unique integer value identifying this project.
@@ -4409,7 +4409,7 @@ export default class CollaborationApi {
44094409

44104410
/**
44114411
* Retrieve a tag
4412-
* Retrieve a tag in the project Required scopes: org:manage
4412+
* Retrieve a tag in the project Required scopes: document:read
44134413
* @param {Number} cloudPk A unique integer value identifying this cloud.
44144414
* @param {Number} id A unique integer value identifying this tag.
44154415
* @param {Number} projectPk A unique integer value identifying this project.
@@ -4455,7 +4455,7 @@ export default class CollaborationApi {
44554455

44564456
/**
44574457
* Retrieve a tag
4458-
* Retrieve a tag in the project Required scopes: org:manage
4458+
* Retrieve a tag in the project Required scopes: document:read
44594459
* @param {Number} cloudPk A unique integer value identifying this cloud.
44604460
* @param {Number} id A unique integer value identifying this tag.
44614461
* @param {Number} projectPk A unique integer value identifying this project.
@@ -4471,7 +4471,7 @@ export default class CollaborationApi {
44714471

44724472
/**
44734473
* Retrieve all tags
4474-
* Retrieve all tags in the project Required scopes: org:manage
4474+
* Retrieve all tags in the project Required scopes: document:read
44754475
* @param {Number} cloudPk A unique integer value identifying this cloud.
44764476
* @param {Number} projectPk A unique integer value identifying this project.
44774477
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/Tag>} and HTTP response
@@ -4511,7 +4511,7 @@ export default class CollaborationApi {
45114511

45124512
/**
45134513
* Retrieve all tags
4514-
* Retrieve all tags in the project Required scopes: org:manage
4514+
* Retrieve all tags in the project Required scopes: document:read
45154515
* @param {Number} cloudPk A unique integer value identifying this cloud.
45164516
* @param {Number} projectPk A unique integer value identifying this project.
45174517
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/Tag>}
@@ -6330,7 +6330,7 @@ export default class CollaborationApi {
63306330

63316331
/**
63326332
* Update some fields of the tag
6333-
* Update some fields of the tag Required scopes: org:manage
6333+
* Update some fields of the tag Required scopes: document:write
63346334
* @param {Number} cloudPk A unique integer value identifying this cloud.
63356335
* @param {Number} id A unique integer value identifying this tag.
63366336
* @param {Number} projectPk A unique integer value identifying this project.
@@ -6379,7 +6379,7 @@ export default class CollaborationApi {
63796379

63806380
/**
63816381
* Update some fields of the tag
6382-
* Update some fields of the tag Required scopes: org:manage
6382+
* Update some fields of the tag Required scopes: document:write
63836383
* @param {Number} cloudPk A unique integer value identifying this cloud.
63846384
* @param {Number} id A unique integer value identifying this tag.
63856385
* @param {Number} projectPk A unique integer value identifying this project.

src/model/ProjectFolderTree.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,22 @@ class ProjectFolderTree {
2323
/**
2424
* Constructs a new <code>ProjectFolderTree</code>.
2525
* @alias module:model/ProjectFolderTree
26+
* @param id {Number}
2627
* @param name {String}
2728
* @param folders {Array.<module:model/FolderTree>}
2829
*/
29-
constructor(name, folders) {
30+
constructor(id, name, folders) {
3031

31-
ProjectFolderTree.initialize(this, name, folders);
32+
ProjectFolderTree.initialize(this, id, name, folders);
3233
}
3334

3435
/**
3536
* Initializes the fields of this object.
3637
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
3738
* Only for internal use.
3839
*/
39-
static initialize(obj, name, folders) {
40+
static initialize(obj, id, name, folders) {
41+
obj['id'] = id;
4042
obj['name'] = name;
4143
obj['folders'] = folders;
4244
}
@@ -52,6 +54,9 @@ class ProjectFolderTree {
5254
if (data) {
5355
obj = obj || new ProjectFolderTree();
5456

57+
if (data.hasOwnProperty('id')) {
58+
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
59+
}
5560
if (data.hasOwnProperty('name')) {
5661
obj['name'] = ApiClient.convertToType(data['name'], 'String');
5762
}
@@ -65,6 +70,11 @@ class ProjectFolderTree {
6570

6671
}
6772

73+
/**
74+
* @member {Number} id
75+
*/
76+
ProjectFolderTree.prototype['id'] = undefined;
77+
6878
/**
6979
* @member {String} name
7080
*/

test/model/ProjectFolderTree.spec.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@
5454
//expect(instance).to.be.a(bimdata.ProjectFolderTree);
5555
});
5656

57+
it('should have the property id (base name: "id")', function() {
58+
// uncomment below and update the code to test the property id
59+
//var instance = new bimdata.ProjectFolderTree();
60+
//expect(instance).to.be();
61+
});
62+
5763
it('should have the property name (base name: "name")', function() {
5864
// uncomment below and update the code to test the property name
5965
//var instance = new bimdata.ProjectFolderTree();

0 commit comments

Comments
 (0)