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

Commit 7449b19

Browse files
committed
PATCH: fix declared auth method in openapi
1 parent 4f0c027 commit 7449b19

File tree

8 files changed

+90
-90
lines changed

8 files changed

+90
-90
lines changed

docs/CollaborationApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,7 @@ Name | Type | Description | Notes
882882
883883
Create a document
884884

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

887887
### Example
888888

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-
**type** | **String** | DEPRECATED: Use 'nature' instead. Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files | [readonly]
7+
**groupsPermissions** | [**[GroupFolderRead]**](GroupFolderRead.md) | List of group permissions | [readonly]
8+
**createdAt** | **Date** | Creation date | [readonly]
89
**createdBy** | [**ShortUser**](ShortUser.md) | | [readonly]
910
**userPermission** | **Number** | Aggregate of group user permissions and folder default permission | [readonly]
10-
**groupsPermissions** | [**[GroupFolderRead]**](GroupFolderRead.md) | List of group permissions | [readonly]
1111
**name** | **String** | Name of the folder |
12-
**defaultPermission** | **Number** | Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write | [optional]
1312
**parentId** | **Number** | | [optional]
14-
**nature** | **String** | Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files | [readonly]
15-
**id** | **Number** | | [readonly]
16-
**createdAt** | **Date** | Creation date | [readonly]
1713
**updatedAt** | **Date** | Date of the last update | [readonly]
14+
**type** | **String** | DEPRECATED: Use 'nature' instead. Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files | [readonly]
15+
**id** | **Number** | | [readonly]
16+
**defaultPermission** | **Number** | Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write | [optional]
17+
**nature** | **String** | Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files | [readonly]
1818
**children** | [**[WriteFolder]**](WriteFolder.md) | | [optional]
1919

2020

docs/WriteFolderRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**name** | **String** | Name of the folder |
8-
**defaultPermission** | **Number** | Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write | [optional]
98
**parentId** | **Number** | | [optional]
9+
**defaultPermission** | **Number** | Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write | [optional]
1010
**children** | [**[WriteFolder]**](WriteFolder.md) | | [optional]
1111

1212

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 {'DWG', 'POINT_CLOUD', 'DXF', 'IFC', 'OBJ', 'GLTF'}, a model will be created and attached to this document Required scopes: document:write
869+
* Create a document. If the document is one of {'DXF', 'DWG', 'POINT_CLOUD', 'IFC', 'GLTF', 'OBJ'}, 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 {'DWG', 'POINT_CLOUD', 'DXF', 'IFC', 'OBJ', 'GLTF'}, a model will be created and attached to this document Required scopes: document:write
937+
* Create a document. If the document is one of {'DXF', 'DWG', 'POINT_CLOUD', 'IFC', 'GLTF', 'OBJ'}, 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/WriteFolder.js

Lines changed: 50 additions & 50 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 type {String} DEPRECATED: Use 'nature' instead. Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files
27+
* @param groupsPermissions {Array.<module:model/GroupFolderRead>} List of group permissions
28+
* @param createdAt {Date} Creation date
2829
* @param createdBy {module:model/ShortUser}
2930
* @param userPermission {module:model/WriteFolder.UserPermissionEnum} Aggregate of group user permissions and folder default permission
30-
* @param groupsPermissions {Array.<module:model/GroupFolderRead>} List of group permissions
3131
* @param name {String} Name of the folder
32-
* @param nature {String} Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files
33-
* @param id {Number}
34-
* @param createdAt {Date} Creation date
3532
* @param updatedAt {Date} Date of the last update
33+
* @param type {String} DEPRECATED: Use 'nature' instead. Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files
34+
* @param id {Number}
35+
* @param nature {String} Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files
3636
*/
37-
constructor(type, createdBy, userPermission, groupsPermissions, name, nature, id, createdAt, updatedAt) {
37+
constructor(groupsPermissions, createdAt, createdBy, userPermission, name, updatedAt, type, id, nature) {
3838

39-
WriteFolder.initialize(this, type, createdBy, userPermission, groupsPermissions, name, nature, id, createdAt, updatedAt);
39+
WriteFolder.initialize(this, groupsPermissions, createdAt, createdBy, userPermission, name, updatedAt, type, id, nature);
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, type, createdBy, userPermission, groupsPermissions, name, nature, id, createdAt, updatedAt) {
48-
obj['type'] = type;
47+
static initialize(obj, groupsPermissions, createdAt, createdBy, userPermission, name, updatedAt, type, id, nature) {
48+
obj['groups_permissions'] = groupsPermissions;
49+
obj['created_at'] = createdAt;
4950
obj['created_by'] = createdBy;
5051
obj['user_permission'] = userPermission;
51-
obj['groups_permissions'] = groupsPermissions;
5252
obj['name'] = name;
53-
obj['nature'] = nature;
54-
obj['id'] = id;
55-
obj['created_at'] = createdAt;
5653
obj['updated_at'] = updatedAt;
54+
obj['type'] = type;
55+
obj['id'] = id;
56+
obj['nature'] = nature;
5757
}
5858

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

70-
if (data.hasOwnProperty('type')) {
71-
obj['type'] = ApiClient.convertToType(data['type'], 'String');
70+
if (data.hasOwnProperty('groups_permissions')) {
71+
obj['groups_permissions'] = ApiClient.convertToType(data['groups_permissions'], [GroupFolderRead]);
72+
}
73+
if (data.hasOwnProperty('created_at')) {
74+
obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date');
7275
}
7376
if (data.hasOwnProperty('created_by')) {
7477
obj['created_by'] = ApiClient.convertToType(data['created_by'], ShortUser);
7578
}
7679
if (data.hasOwnProperty('user_permission')) {
7780
obj['user_permission'] = ApiClient.convertToType(data['user_permission'], 'Number');
7881
}
79-
if (data.hasOwnProperty('groups_permissions')) {
80-
obj['groups_permissions'] = ApiClient.convertToType(data['groups_permissions'], [GroupFolderRead]);
81-
}
8282
if (data.hasOwnProperty('name')) {
8383
obj['name'] = ApiClient.convertToType(data['name'], 'String');
8484
}
85-
if (data.hasOwnProperty('default_permission')) {
86-
obj['default_permission'] = ApiClient.convertToType(data['default_permission'], 'Number');
87-
}
8885
if (data.hasOwnProperty('parent_id')) {
8986
obj['parent_id'] = ApiClient.convertToType(data['parent_id'], 'Number');
9087
}
91-
if (data.hasOwnProperty('nature')) {
92-
obj['nature'] = ApiClient.convertToType(data['nature'], 'String');
88+
if (data.hasOwnProperty('updated_at')) {
89+
obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'Date');
90+
}
91+
if (data.hasOwnProperty('type')) {
92+
obj['type'] = ApiClient.convertToType(data['type'], 'String');
9393
}
9494
if (data.hasOwnProperty('id')) {
9595
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
9696
}
97-
if (data.hasOwnProperty('created_at')) {
98-
obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date');
97+
if (data.hasOwnProperty('default_permission')) {
98+
obj['default_permission'] = ApiClient.convertToType(data['default_permission'], 'Number');
9999
}
100-
if (data.hasOwnProperty('updated_at')) {
101-
obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'Date');
100+
if (data.hasOwnProperty('nature')) {
101+
obj['nature'] = ApiClient.convertToType(data['nature'], 'String');
102102
}
103103
if (data.hasOwnProperty('children')) {
104104
obj['children'] = ApiClient.convertToType(data['children'], [WriteFolder]);
@@ -111,10 +111,16 @@ class WriteFolder {
111111
}
112112

113113
/**
114-
* DEPRECATED: Use 'nature' instead. Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files
115-
* @member {String} type
114+
* List of group permissions
115+
* @member {Array.<module:model/GroupFolderRead>} groups_permissions
116116
*/
117-
WriteFolder.prototype['type'] = undefined;
117+
WriteFolder.prototype['groups_permissions'] = undefined;
118+
119+
/**
120+
* Creation date
121+
* @member {Date} created_at
122+
*/
123+
WriteFolder.prototype['created_at'] = undefined;
118124

119125
/**
120126
* @member {module:model/ShortUser} created_by
@@ -127,51 +133,45 @@ WriteFolder.prototype['created_by'] = undefined;
127133
*/
128134
WriteFolder.prototype['user_permission'] = undefined;
129135

130-
/**
131-
* List of group permissions
132-
* @member {Array.<module:model/GroupFolderRead>} groups_permissions
133-
*/
134-
WriteFolder.prototype['groups_permissions'] = undefined;
135-
136136
/**
137137
* Name of the folder
138138
* @member {String} name
139139
*/
140140
WriteFolder.prototype['name'] = undefined;
141141

142142
/**
143-
* Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write
144-
* @member {module:model/WriteFolder.DefaultPermissionEnum} default_permission
143+
* @member {Number} parent_id
145144
*/
146-
WriteFolder.prototype['default_permission'] = undefined;
145+
WriteFolder.prototype['parent_id'] = undefined;
147146

148147
/**
149-
* @member {Number} parent_id
148+
* Date of the last update
149+
* @member {Date} updated_at
150150
*/
151-
WriteFolder.prototype['parent_id'] = undefined;
151+
WriteFolder.prototype['updated_at'] = undefined;
152152

153153
/**
154-
* Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files
155-
* @member {String} nature
154+
* DEPRECATED: Use 'nature' instead. Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files
155+
* @member {String} type
156156
*/
157-
WriteFolder.prototype['nature'] = undefined;
157+
WriteFolder.prototype['type'] = undefined;
158158

159159
/**
160160
* @member {Number} id
161161
*/
162162
WriteFolder.prototype['id'] = undefined;
163163

164164
/**
165-
* Creation date
166-
* @member {Date} created_at
165+
* Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write
166+
* @member {module:model/WriteFolder.DefaultPermissionEnum} default_permission
167167
*/
168-
WriteFolder.prototype['created_at'] = undefined;
168+
WriteFolder.prototype['default_permission'] = undefined;
169169

170170
/**
171-
* Date of the last update
172-
* @member {Date} updated_at
171+
* Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files
172+
* @member {String} nature
173173
*/
174-
WriteFolder.prototype['updated_at'] = undefined;
174+
WriteFolder.prototype['nature'] = undefined;
175175

176176
/**
177177
* @member {Array.<module:model/WriteFolder>} children

src/model/WriteFolderRequest.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ class WriteFolderRequest {
5353
if (data.hasOwnProperty('name')) {
5454
obj['name'] = ApiClient.convertToType(data['name'], 'String');
5555
}
56-
if (data.hasOwnProperty('default_permission')) {
57-
obj['default_permission'] = ApiClient.convertToType(data['default_permission'], 'Number');
58-
}
5956
if (data.hasOwnProperty('parent_id')) {
6057
obj['parent_id'] = ApiClient.convertToType(data['parent_id'], 'Number');
6158
}
59+
if (data.hasOwnProperty('default_permission')) {
60+
obj['default_permission'] = ApiClient.convertToType(data['default_permission'], 'Number');
61+
}
6262
if (data.hasOwnProperty('children')) {
6363
obj['children'] = ApiClient.convertToType(data['children'], [WriteFolder]);
6464
}
@@ -76,15 +76,15 @@ class WriteFolderRequest {
7676
WriteFolderRequest.prototype['name'] = undefined;
7777

7878
/**
79-
* Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write
80-
* @member {module:model/WriteFolderRequest.DefaultPermissionEnum} default_permission
79+
* @member {Number} parent_id
8180
*/
82-
WriteFolderRequest.prototype['default_permission'] = undefined;
81+
WriteFolderRequest.prototype['parent_id'] = undefined;
8382

8483
/**
85-
* @member {Number} parent_id
84+
* Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write
85+
* @member {module:model/WriteFolderRequest.DefaultPermissionEnum} default_permission
8686
*/
87-
WriteFolderRequest.prototype['parent_id'] = undefined;
87+
WriteFolderRequest.prototype['default_permission'] = undefined;
8888

8989
/**
9090
* @member {Array.<module:model/WriteFolder>} children

test/model/WriteFolder.spec.js

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

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

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

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

75-
it('should have the property groupsPermissions (base name: "groups_permissions")', function() {
76-
// uncomment below and update the code to test the property groupsPermissions
75+
it('should have the property userPermission (base name: "user_permission")', function() {
76+
// uncomment below and update the code to test the property userPermission
7777
//var instance = new bimdata.WriteFolder();
7878
//expect(instance).to.be();
7979
});
@@ -84,20 +84,20 @@
8484
//expect(instance).to.be();
8585
});
8686

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

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

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

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

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

test/model/WriteFolderRequest.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@
6060
//expect(instance).to.be();
6161
});
6262

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

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

0 commit comments

Comments
 (0)