Skip to content

Commit 4f0c027

Browse files
committed
MINOR: Add full path in document route (empty commit for release)
1 parent 5e940de commit 4f0c027

11 files changed

+132
-115
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', 'GLTF', 'DXF', 'OBJ', 'IFC'}, a model will be created and attached to this document Required scopes: document:write
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
886886

887887
### Example
888888

docs/Document.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Name | Type | Description | Notes
2525
**historyCount** | **Number** | Number of previous versions | [readonly]
2626
**userPermission** | **Number** | Aggregate of group user permissions and folder default permission | [readonly]
2727
**officePreview** | **String** | Office files will be converted as pdf to provide a web preview. Supported extensions are .ppt, .pptx, .odp, .xls, .xlsx, .ods, .doc, .docx, .odt | [readonly]
28+
**path** | **String** | | [readonly]
2829

2930

3031

docs/WriteFolder.md

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

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

2020

2121

22-
## Enum: DefaultPermissionEnum
22+
## Enum: UserPermissionEnum
2323

2424

2525
* `1` (value: `1`)
@@ -32,7 +32,7 @@ Name | Type | Description | Notes
3232

3333

3434

35-
## Enum: UserPermissionEnum
35+
## Enum: DefaultPermissionEnum
3636

3737

3838
* `1` (value: `1`)

docs/WriteFolderRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**parentId** | **Number** | | [optional]
87
**name** | **String** | Name of the folder |
98
**defaultPermission** | **Number** | Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write | [optional]
9+
**parentId** | **Number** | | [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', 'GLTF', 'DXF', 'OBJ', 'IFC'}, a model will be created and attached to this document Required scopes: document:write
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
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', 'GLTF', 'DXF', 'OBJ', 'IFC'}, a model will be created and attached to this document Required scopes: document:write
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
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/Document.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,19 @@ class Document {
4343
* @param historyCount {Number} Number of previous versions
4444
* @param userPermission {module:model/Document.UserPermissionEnum} Aggregate of group user permissions and folder default permission
4545
* @param officePreview {String} Office files will be converted as pdf to provide a web preview. Supported extensions are .ppt, .pptx, .odp, .xls, .xlsx, .ods, .doc, .docx, .odt
46+
* @param path {String}
4647
*/
47-
constructor(id, createdBy, project, name, file, size, tags, visas, createdAt, updatedAt, modelId, modelType, ifcId, headId, isHeadVersion, historyCount, userPermission, officePreview) {
48+
constructor(id, createdBy, project, name, file, size, tags, visas, createdAt, updatedAt, modelId, modelType, ifcId, headId, isHeadVersion, historyCount, userPermission, officePreview, path) {
4849

49-
Document.initialize(this, id, createdBy, project, name, file, size, tags, visas, createdAt, updatedAt, modelId, modelType, ifcId, headId, isHeadVersion, historyCount, userPermission, officePreview);
50+
Document.initialize(this, id, createdBy, project, name, file, size, tags, visas, createdAt, updatedAt, modelId, modelType, ifcId, headId, isHeadVersion, historyCount, userPermission, officePreview, path);
5051
}
5152

5253
/**
5354
* Initializes the fields of this object.
5455
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
5556
* Only for internal use.
5657
*/
57-
static initialize(obj, id, createdBy, project, name, file, size, tags, visas, createdAt, updatedAt, modelId, modelType, ifcId, headId, isHeadVersion, historyCount, userPermission, officePreview) {
58+
static initialize(obj, id, createdBy, project, name, file, size, tags, visas, createdAt, updatedAt, modelId, modelType, ifcId, headId, isHeadVersion, historyCount, userPermission, officePreview, path) {
5859
obj['id'] = id;
5960
obj['created_by'] = createdBy;
6061
obj['project'] = project;
@@ -73,6 +74,7 @@ class Document {
7374
obj['history_count'] = historyCount;
7475
obj['user_permission'] = userPermission;
7576
obj['office_preview'] = officePreview;
77+
obj['path'] = path;
7678
}
7779

7880
/**
@@ -149,6 +151,9 @@ class Document {
149151
if (data.hasOwnProperty('office_preview')) {
150152
obj['office_preview'] = ApiClient.convertToType(data['office_preview'], 'String');
151153
}
154+
if (data.hasOwnProperty('path')) {
155+
obj['path'] = ApiClient.convertToType(data['path'], 'String');
156+
}
152157
}
153158
return obj;
154159
}
@@ -274,6 +279,11 @@ Document.prototype['user_permission'] = undefined;
274279
*/
275280
Document.prototype['office_preview'] = undefined;
276281

282+
/**
283+
* @member {String} path
284+
*/
285+
Document.prototype['path'] = undefined;
286+
277287

278288

279289

src/model/WriteFolder.js

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

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

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

70-
if (data.hasOwnProperty('id')) {
71-
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
70+
if (data.hasOwnProperty('type')) {
71+
obj['type'] = ApiClient.convertToType(data['type'], 'String');
7272
}
73-
if (data.hasOwnProperty('parent_id')) {
74-
obj['parent_id'] = ApiClient.convertToType(data['parent_id'], 'Number');
73+
if (data.hasOwnProperty('created_by')) {
74+
obj['created_by'] = ApiClient.convertToType(data['created_by'], ShortUser);
7575
}
76-
if (data.hasOwnProperty('created_at')) {
77-
obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date');
76+
if (data.hasOwnProperty('user_permission')) {
77+
obj['user_permission'] = ApiClient.convertToType(data['user_permission'], 'Number');
78+
}
79+
if (data.hasOwnProperty('groups_permissions')) {
80+
obj['groups_permissions'] = ApiClient.convertToType(data['groups_permissions'], [GroupFolderRead]);
7881
}
7982
if (data.hasOwnProperty('name')) {
8083
obj['name'] = ApiClient.convertToType(data['name'], 'String');
8184
}
82-
if (data.hasOwnProperty('updated_at')) {
83-
obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'Date');
84-
}
8585
if (data.hasOwnProperty('default_permission')) {
8686
obj['default_permission'] = ApiClient.convertToType(data['default_permission'], 'Number');
8787
}
88-
if (data.hasOwnProperty('user_permission')) {
89-
obj['user_permission'] = ApiClient.convertToType(data['user_permission'], 'Number');
90-
}
91-
if (data.hasOwnProperty('type')) {
92-
obj['type'] = ApiClient.convertToType(data['type'], 'String');
88+
if (data.hasOwnProperty('parent_id')) {
89+
obj['parent_id'] = ApiClient.convertToType(data['parent_id'], 'Number');
9390
}
9491
if (data.hasOwnProperty('nature')) {
9592
obj['nature'] = ApiClient.convertToType(data['nature'], 'String');
9693
}
97-
if (data.hasOwnProperty('created_by')) {
98-
obj['created_by'] = ApiClient.convertToType(data['created_by'], ShortUser);
94+
if (data.hasOwnProperty('id')) {
95+
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
9996
}
100-
if (data.hasOwnProperty('groups_permissions')) {
101-
obj['groups_permissions'] = ApiClient.convertToType(data['groups_permissions'], [GroupFolderRead]);
97+
if (data.hasOwnProperty('created_at')) {
98+
obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date');
99+
}
100+
if (data.hasOwnProperty('updated_at')) {
101+
obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'Date');
102102
}
103103
if (data.hasOwnProperty('children')) {
104104
obj['children'] = ApiClient.convertToType(data['children'], [WriteFolder]);
@@ -111,32 +111,33 @@ class WriteFolder {
111111
}
112112

113113
/**
114-
* @member {Number} id
114+
* DEPRECATED: Use 'nature' instead. Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files
115+
* @member {String} type
115116
*/
116-
WriteFolder.prototype['id'] = undefined;
117+
WriteFolder.prototype['type'] = undefined;
117118

118119
/**
119-
* @member {Number} parent_id
120+
* @member {module:model/ShortUser} created_by
120121
*/
121-
WriteFolder.prototype['parent_id'] = undefined;
122+
WriteFolder.prototype['created_by'] = undefined;
122123

123124
/**
124-
* Creation date
125-
* @member {Date} created_at
125+
* Aggregate of group user permissions and folder default permission
126+
* @member {module:model/WriteFolder.UserPermissionEnum} user_permission
126127
*/
127-
WriteFolder.prototype['created_at'] = undefined;
128+
WriteFolder.prototype['user_permission'] = undefined;
128129

129130
/**
130-
* Name of the folder
131-
* @member {String} name
131+
* List of group permissions
132+
* @member {Array.<module:model/GroupFolderRead>} groups_permissions
132133
*/
133-
WriteFolder.prototype['name'] = undefined;
134+
WriteFolder.prototype['groups_permissions'] = undefined;
134135

135136
/**
136-
* Date of the last update
137-
* @member {Date} updated_at
137+
* Name of the folder
138+
* @member {String} name
138139
*/
139-
WriteFolder.prototype['updated_at'] = undefined;
140+
WriteFolder.prototype['name'] = undefined;
140141

141142
/**
142143
* Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write
@@ -145,16 +146,9 @@ WriteFolder.prototype['updated_at'] = undefined;
145146
WriteFolder.prototype['default_permission'] = undefined;
146147

147148
/**
148-
* Aggregate of group user permissions and folder default permission
149-
* @member {module:model/WriteFolder.UserPermissionEnum} user_permission
150-
*/
151-
WriteFolder.prototype['user_permission'] = undefined;
152-
153-
/**
154-
* DEPRECATED: Use 'nature' instead. Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files
155-
* @member {String} type
149+
* @member {Number} parent_id
156150
*/
157-
WriteFolder.prototype['type'] = undefined;
151+
WriteFolder.prototype['parent_id'] = undefined;
158152

159153
/**
160154
* Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files
@@ -163,15 +157,21 @@ WriteFolder.prototype['type'] = undefined;
163157
WriteFolder.prototype['nature'] = undefined;
164158

165159
/**
166-
* @member {module:model/ShortUser} created_by
160+
* @member {Number} id
167161
*/
168-
WriteFolder.prototype['created_by'] = undefined;
162+
WriteFolder.prototype['id'] = undefined;
169163

170164
/**
171-
* List of group permissions
172-
* @member {Array.<module:model/GroupFolderRead>} groups_permissions
165+
* Creation date
166+
* @member {Date} created_at
173167
*/
174-
WriteFolder.prototype['groups_permissions'] = undefined;
168+
WriteFolder.prototype['created_at'] = undefined;
169+
170+
/**
171+
* Date of the last update
172+
* @member {Date} updated_at
173+
*/
174+
WriteFolder.prototype['updated_at'] = undefined;
175175

176176
/**
177177
* @member {Array.<module:model/WriteFolder>} children
@@ -183,11 +183,11 @@ WriteFolder.prototype['children'] = undefined;
183183

184184

185185
/**
186-
* Allowed values for the <code>default_permission</code> property.
186+
* Allowed values for the <code>user_permission</code> property.
187187
* @enum {Number}
188188
* @readonly
189189
*/
190-
WriteFolder['DefaultPermissionEnum'] = {
190+
WriteFolder['UserPermissionEnum'] = {
191191

192192
/**
193193
* value: 1
@@ -210,11 +210,11 @@ WriteFolder['DefaultPermissionEnum'] = {
210210

211211

212212
/**
213-
* Allowed values for the <code>user_permission</code> property.
213+
* Allowed values for the <code>default_permission</code> property.
214214
* @enum {Number}
215215
* @readonly
216216
*/
217-
WriteFolder['UserPermissionEnum'] = {
217+
WriteFolder['DefaultPermissionEnum'] = {
218218

219219
/**
220220
* value: 1

0 commit comments

Comments
 (0)