Skip to content

Commit 18c1409

Browse files
committed
PATCH: fix dms tree openapi
1 parent 15fe240 commit 18c1409

File tree

7 files changed

+94
-96
lines changed

7 files changed

+94
-96
lines changed

docs/CollaborationApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,7 @@ Name | Type | Description | Notes
960960
961961
Create a document
962962

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

965965
### Example
966966

docs/RecursiveFolderChildren.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Name | Type | Description | Notes
2525
**userPermission** | **Number** | Aggregate of group user permissions and folder default permission | [readonly]
2626
**historyCount** | **Number** | Number of previous versions | [readonly]
2727
**tags** | [**[Tag]**](Tag.md) | Tags of a document | [readonly]
28-
**children** | [**[RecursiveFolderChildren]**](RecursiveFolderChildren.md) | | [readonly]
28+
**children** | [**[RecursiveFolderChildren]**](RecursiveFolderChildren.md) | | [optional]
2929

3030

3131

docs/WriteFolder.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**createdAt** | **Date** | Creation date | [readonly]
8-
**userPermission** | **Number** | Aggregate of group user permissions and folder default permission | [readonly]
9-
**createdBy** | [**ShortUser**](ShortUser.md) | | [readonly]
107
**parentId** | **Number** | | [optional]
11-
**id** | **Number** | | [readonly]
128
**updatedAt** | **Date** | Date of the last update | [readonly]
13-
**nature** | **String** | Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files | [readonly]
9+
**id** | **Number** | | [readonly]
1410
**type** | **String** | DEPRECATED: Use 'nature' instead. Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files | [readonly]
15-
**groupsPermissions** | [**[GroupFolderRead]**](GroupFolderRead.md) | List of group permissions | [readonly]
11+
**userPermission** | **Number** | Aggregate of group user permissions and folder default permission | [readonly]
1612
**name** | **String** | Name of the folder |
1713
**defaultPermission** | **Number** | Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write | [optional]
14+
**createdAt** | **Date** | Creation date | [readonly]
15+
**nature** | **String** | Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files | [readonly]
16+
**createdBy** | [**ShortUser**](ShortUser.md) | | [readonly]
17+
**groupsPermissions** | [**[GroupFolderRead]**](GroupFolderRead.md) | List of group permissions | [readonly]
1818
**children** | [**[WriteFolder]**](WriteFolder.md) | | [optional]
1919

2020

src/api/CollaborationApi.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,7 @@ export default class CollaborationApi {
866866

867867
/**
868868
* Create a document
869-
* Create a document. If the document is one of {'IFC', 'OBJ', 'GLTF', 'POINT_CLOUD', 'DXF', 'DWG'}, a model will be created and attached to this document Required scopes: document:write
869+
* Create a document. If the document is one of {'GLTF', 'OBJ', 'IFC', 'POINT_CLOUD', 'DWG', 'DXF'}, a model will be created and attached to this document Required scopes: document:write
870870
* @param {Number} cloudPk A unique integer value identifying this cloud.
871871
* @param {Number} projectPk A unique integer value identifying this project.
872872
* @param {String} name Shown name of the file
@@ -934,7 +934,7 @@ export default class CollaborationApi {
934934

935935
/**
936936
* Create a document
937-
* Create a document. If the document is one of {'IFC', 'OBJ', 'GLTF', 'POINT_CLOUD', 'DXF', 'DWG'}, a model will be created and attached to this document Required scopes: document:write
937+
* Create a document. If the document is one of {'GLTF', 'OBJ', 'IFC', 'POINT_CLOUD', 'DWG', 'DXF'}, a model will be created and attached to this document Required scopes: document:write
938938
* @param {Number} cloudPk A unique integer value identifying this cloud.
939939
* @param {Number} projectPk A unique integer value identifying this project.
940940
* @param {String} name Shown name of the file

src/model/RecursiveFolderChildren.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,18 @@ class RecursiveFolderChildren {
3939
* @param userPermission {module:model/RecursiveFolderChildren.UserPermissionEnum} Aggregate of group user permissions and folder default permission
4040
* @param historyCount {Number} Number of previous versions
4141
* @param tags {Array.<module:model/Tag>} Tags of a document
42-
* @param children {Array.<module:model/RecursiveFolderChildren>}
4342
*/
44-
constructor(id, parentId, type, nature, modelType, name, createdAt, updatedAt, modelId, ifcId, groupsPermissions, defaultPermission, userPermission, historyCount, tags, children) {
43+
constructor(id, parentId, type, nature, modelType, name, createdAt, updatedAt, modelId, ifcId, groupsPermissions, defaultPermission, userPermission, historyCount, tags) {
4544

46-
RecursiveFolderChildren.initialize(this, id, parentId, type, nature, modelType, name, createdAt, updatedAt, modelId, ifcId, groupsPermissions, defaultPermission, userPermission, historyCount, tags, children);
45+
RecursiveFolderChildren.initialize(this, id, parentId, type, nature, modelType, name, createdAt, updatedAt, modelId, ifcId, groupsPermissions, defaultPermission, userPermission, historyCount, tags);
4746
}
4847

4948
/**
5049
* Initializes the fields of this object.
5150
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
5251
* Only for internal use.
5352
*/
54-
static initialize(obj, id, parentId, type, nature, modelType, name, createdAt, updatedAt, modelId, ifcId, groupsPermissions, defaultPermission, userPermission, historyCount, tags, children) {
53+
static initialize(obj, id, parentId, type, nature, modelType, name, createdAt, updatedAt, modelId, ifcId, groupsPermissions, defaultPermission, userPermission, historyCount, tags) {
5554
obj['id'] = id;
5655
obj['parent_id'] = parentId;
5756
obj['type'] = type;
@@ -67,7 +66,6 @@ class RecursiveFolderChildren {
6766
obj['user_permission'] = userPermission;
6867
obj['history_count'] = historyCount;
6968
obj['tags'] = tags;
70-
obj['children'] = children;
7169
}
7270

7371
/**

src/model/WriteFolder.js

Lines changed: 59 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -24,36 +24,36 @@ class WriteFolder {
2424
/**
2525
* Constructs a new <code>WriteFolder</code>.
2626
* @alias module:model/WriteFolder
27-
* @param createdAt {Date} Creation date
28-
* @param userPermission {module:model/WriteFolder.UserPermissionEnum} Aggregate of group user permissions and folder default permission
29-
* @param createdBy {module:model/ShortUser}
30-
* @param id {Number}
3127
* @param updatedAt {Date} Date of the last update
32-
* @param nature {String} Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files
28+
* @param id {Number}
3329
* @param type {String} DEPRECATED: Use 'nature' instead. Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files
34-
* @param groupsPermissions {Array.<module:model/GroupFolderRead>} List of group permissions
30+
* @param userPermission {module:model/WriteFolder.UserPermissionEnum} Aggregate of group user permissions and folder default permission
3531
* @param name {String} Name of the folder
32+
* @param createdAt {Date} Creation date
33+
* @param nature {String} Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files
34+
* @param createdBy {module:model/ShortUser}
35+
* @param groupsPermissions {Array.<module:model/GroupFolderRead>} List of group permissions
3636
*/
37-
constructor(createdAt, userPermission, createdBy, id, updatedAt, nature, type, groupsPermissions, name) {
37+
constructor(updatedAt, id, type, userPermission, name, createdAt, nature, createdBy, groupsPermissions) {
3838

39-
WriteFolder.initialize(this, createdAt, userPermission, createdBy, id, updatedAt, nature, type, groupsPermissions, name);
39+
WriteFolder.initialize(this, updatedAt, id, type, userPermission, name, createdAt, nature, createdBy, groupsPermissions);
4040
}
4141

4242
/**
4343
* Initializes the fields of this object.
4444
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
4545
* Only for internal use.
4646
*/
47-
static initialize(obj, createdAt, userPermission, createdBy, id, updatedAt, nature, type, groupsPermissions, name) {
48-
obj['created_at'] = createdAt;
49-
obj['user_permission'] = userPermission;
50-
obj['created_by'] = createdBy;
51-
obj['id'] = id;
47+
static initialize(obj, updatedAt, id, type, userPermission, name, createdAt, nature, createdBy, groupsPermissions) {
5248
obj['updated_at'] = updatedAt;
53-
obj['nature'] = nature;
49+
obj['id'] = id;
5450
obj['type'] = type;
55-
obj['groups_permissions'] = groupsPermissions;
51+
obj['user_permission'] = userPermission;
5652
obj['name'] = name;
53+
obj['created_at'] = createdAt;
54+
obj['nature'] = nature;
55+
obj['created_by'] = createdBy;
56+
obj['groups_permissions'] = groupsPermissions;
5757
}
5858

5959
/**
@@ -67,39 +67,39 @@ class WriteFolder {
6767
if (data) {
6868
obj = obj || new WriteFolder();
6969

70-
if (data.hasOwnProperty('created_at')) {
71-
obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date');
72-
}
73-
if (data.hasOwnProperty('user_permission')) {
74-
obj['user_permission'] = ApiClient.convertToType(data['user_permission'], 'Number');
75-
}
76-
if (data.hasOwnProperty('created_by')) {
77-
obj['created_by'] = ApiClient.convertToType(data['created_by'], ShortUser);
78-
}
7970
if (data.hasOwnProperty('parent_id')) {
8071
obj['parent_id'] = ApiClient.convertToType(data['parent_id'], 'Number');
8172
}
82-
if (data.hasOwnProperty('id')) {
83-
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
84-
}
8573
if (data.hasOwnProperty('updated_at')) {
8674
obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'Date');
8775
}
88-
if (data.hasOwnProperty('nature')) {
89-
obj['nature'] = ApiClient.convertToType(data['nature'], 'String');
76+
if (data.hasOwnProperty('id')) {
77+
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
9078
}
9179
if (data.hasOwnProperty('type')) {
9280
obj['type'] = ApiClient.convertToType(data['type'], 'String');
9381
}
94-
if (data.hasOwnProperty('groups_permissions')) {
95-
obj['groups_permissions'] = ApiClient.convertToType(data['groups_permissions'], [GroupFolderRead]);
82+
if (data.hasOwnProperty('user_permission')) {
83+
obj['user_permission'] = ApiClient.convertToType(data['user_permission'], 'Number');
9684
}
9785
if (data.hasOwnProperty('name')) {
9886
obj['name'] = ApiClient.convertToType(data['name'], 'String');
9987
}
10088
if (data.hasOwnProperty('default_permission')) {
10189
obj['default_permission'] = ApiClient.convertToType(data['default_permission'], 'Number');
10290
}
91+
if (data.hasOwnProperty('created_at')) {
92+
obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date');
93+
}
94+
if (data.hasOwnProperty('nature')) {
95+
obj['nature'] = ApiClient.convertToType(data['nature'], 'String');
96+
}
97+
if (data.hasOwnProperty('created_by')) {
98+
obj['created_by'] = ApiClient.convertToType(data['created_by'], ShortUser);
99+
}
100+
if (data.hasOwnProperty('groups_permissions')) {
101+
obj['groups_permissions'] = ApiClient.convertToType(data['groups_permissions'], [GroupFolderRead]);
102+
}
103103
if (data.hasOwnProperty('children')) {
104104
obj['children'] = ApiClient.convertToType(data['children'], [WriteFolder]);
105105
}
@@ -110,44 +110,21 @@ class WriteFolder {
110110

111111
}
112112

113-
/**
114-
* Creation date
115-
* @member {Date} created_at
116-
*/
117-
WriteFolder.prototype['created_at'] = undefined;
118-
119-
/**
120-
* Aggregate of group user permissions and folder default permission
121-
* @member {module:model/WriteFolder.UserPermissionEnum} user_permission
122-
*/
123-
WriteFolder.prototype['user_permission'] = undefined;
124-
125-
/**
126-
* @member {module:model/ShortUser} created_by
127-
*/
128-
WriteFolder.prototype['created_by'] = undefined;
129-
130113
/**
131114
* @member {Number} parent_id
132115
*/
133116
WriteFolder.prototype['parent_id'] = undefined;
134117

135-
/**
136-
* @member {Number} id
137-
*/
138-
WriteFolder.prototype['id'] = undefined;
139-
140118
/**
141119
* Date of the last update
142120
* @member {Date} updated_at
143121
*/
144122
WriteFolder.prototype['updated_at'] = undefined;
145123

146124
/**
147-
* Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files
148-
* @member {String} nature
125+
* @member {Number} id
149126
*/
150-
WriteFolder.prototype['nature'] = undefined;
127+
WriteFolder.prototype['id'] = undefined;
151128

152129
/**
153130
* DEPRECATED: Use 'nature' instead. Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files
@@ -156,10 +133,10 @@ WriteFolder.prototype['nature'] = undefined;
156133
WriteFolder.prototype['type'] = undefined;
157134

158135
/**
159-
* List of group permissions
160-
* @member {Array.<module:model/GroupFolderRead>} groups_permissions
136+
* Aggregate of group user permissions and folder default permission
137+
* @member {module:model/WriteFolder.UserPermissionEnum} user_permission
161138
*/
162-
WriteFolder.prototype['groups_permissions'] = undefined;
139+
WriteFolder.prototype['user_permission'] = undefined;
163140

164141
/**
165142
* Name of the folder
@@ -173,6 +150,29 @@ WriteFolder.prototype['name'] = undefined;
173150
*/
174151
WriteFolder.prototype['default_permission'] = undefined;
175152

153+
/**
154+
* Creation date
155+
* @member {Date} created_at
156+
*/
157+
WriteFolder.prototype['created_at'] = undefined;
158+
159+
/**
160+
* Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files
161+
* @member {String} nature
162+
*/
163+
WriteFolder.prototype['nature'] = undefined;
164+
165+
/**
166+
* @member {module:model/ShortUser} created_by
167+
*/
168+
WriteFolder.prototype['created_by'] = undefined;
169+
170+
/**
171+
* List of group permissions
172+
* @member {Array.<module:model/GroupFolderRead>} groups_permissions
173+
*/
174+
WriteFolder.prototype['groups_permissions'] = undefined;
175+
176176
/**
177177
* @member {Array.<module:model/WriteFolder>} children
178178
*/

test/model/WriteFolder.spec.js

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

57-
it('should have the property createdAt (base name: "created_at")', function() {
58-
// uncomment below and update the code to test the property createdAt
57+
it('should have the property parentId (base name: "parent_id")', function() {
58+
// uncomment below and update the code to test the property parentId
5959
//var instance = new bimdata.WriteFolder();
6060
//expect(instance).to.be();
6161
});
6262

63-
it('should have the property userPermission (base name: "user_permission")', function() {
64-
// uncomment below and update the code to test the property userPermission
63+
it('should have the property updatedAt (base name: "updated_at")', function() {
64+
// uncomment below and update the code to test the property updatedAt
6565
//var instance = new bimdata.WriteFolder();
6666
//expect(instance).to.be();
6767
});
6868

69-
it('should have the property createdBy (base name: "created_by")', function() {
70-
// uncomment below and update the code to test the property createdBy
69+
it('should have the property id (base name: "id")', function() {
70+
// uncomment below and update the code to test the property id
7171
//var instance = new bimdata.WriteFolder();
7272
//expect(instance).to.be();
7373
});
7474

75-
it('should have the property parentId (base name: "parent_id")', function() {
76-
// uncomment below and update the code to test the property parentId
75+
it('should have the property type (base name: "type")', function() {
76+
// uncomment below and update the code to test the property type
7777
//var instance = new bimdata.WriteFolder();
7878
//expect(instance).to.be();
7979
});
8080

81-
it('should have the property id (base name: "id")', function() {
82-
// uncomment below and update the code to test the property id
81+
it('should have the property userPermission (base name: "user_permission")', function() {
82+
// uncomment below and update the code to test the property userPermission
8383
//var instance = new bimdata.WriteFolder();
8484
//expect(instance).to.be();
8585
});
8686

87-
it('should have the property updatedAt (base name: "updated_at")', function() {
88-
// uncomment below and update the code to test the property updatedAt
87+
it('should have the property name (base name: "name")', function() {
88+
// uncomment below and update the code to test the property name
8989
//var instance = new bimdata.WriteFolder();
9090
//expect(instance).to.be();
9191
});
9292

93-
it('should have the property nature (base name: "nature")', function() {
94-
// uncomment below and update the code to test the property nature
93+
it('should have the property defaultPermission (base name: "default_permission")', function() {
94+
// uncomment below and update the code to test the property defaultPermission
9595
//var instance = new bimdata.WriteFolder();
9696
//expect(instance).to.be();
9797
});
9898

99-
it('should have the property type (base name: "type")', function() {
100-
// uncomment below and update the code to test the property type
99+
it('should have the property createdAt (base name: "created_at")', function() {
100+
// uncomment below and update the code to test the property createdAt
101101
//var instance = new bimdata.WriteFolder();
102102
//expect(instance).to.be();
103103
});
104104

105-
it('should have the property groupsPermissions (base name: "groups_permissions")', function() {
106-
// uncomment below and update the code to test the property groupsPermissions
105+
it('should have the property nature (base name: "nature")', function() {
106+
// uncomment below and update the code to test the property nature
107107
//var instance = new bimdata.WriteFolder();
108108
//expect(instance).to.be();
109109
});
110110

111-
it('should have the property name (base name: "name")', function() {
112-
// uncomment below and update the code to test the property name
111+
it('should have the property createdBy (base name: "created_by")', function() {
112+
// uncomment below and update the code to test the property createdBy
113113
//var instance = new bimdata.WriteFolder();
114114
//expect(instance).to.be();
115115
});
116116

117-
it('should have the property defaultPermission (base name: "default_permission")', function() {
118-
// uncomment below and update the code to test the property defaultPermission
117+
it('should have the property groupsPermissions (base name: "groups_permissions")', function() {
118+
// uncomment below and update the code to test the property groupsPermissions
119119
//var instance = new bimdata.WriteFolder();
120120
//expect(instance).to.be();
121121
});

0 commit comments

Comments
 (0)