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

Commit 5db2e74

Browse files
committed
PATCH: add office_preview to dms-tree serializer
1 parent b3120c1 commit 5db2e74

5 files changed

Lines changed: 18 additions & 3 deletions

File tree

docs/CollaborationApi.md

Lines changed: 1 addition & 1 deletion
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 {'OBJ', 'IFC', 'DWG', 'POINT_CLOUD', 'GLTF', '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 {'IFC', 'DXF', 'DWG', 'GLTF', 'OBJ', 'POINT_CLOUD'}, a model will be created and attached to this document Required scopes: document:write
959959

960960
### Example
961961

docs/RecursiveFolderChildren.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Name | Type | Description | Notes
1919
**modelId** | **Number** | | [readonly]
2020
**ifcId** | **Number** | DEPRECATED: Use 'model_id' instead | [readonly]
2121
**file** | **String** | | [optional]
22+
**officePreview** | **String** | | [optional]
2223
**groupsPermissions** | **Boolean** | DEPRECATED: This field must be present because of legacy constraints but will always be empty. If you want to see group permissions of a folder, see `getFolder` | [readonly]
2324
**defaultPermission** | **Number** | Default permissions of folder | [readonly]
2425
**userPermission** | **Number** | Aggregate of group user permissions and folder default permission | [readonly]

src/api/CollaborationApi.js

Lines changed: 2 additions & 2 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 {'OBJ', 'IFC', 'DWG', 'POINT_CLOUD', 'GLTF', '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 {'IFC', 'DXF', 'DWG', 'GLTF', 'OBJ', 'POINT_CLOUD'}, 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 {'OBJ', 'IFC', 'DWG', 'POINT_CLOUD', 'GLTF', '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 {'IFC', 'DXF', 'DWG', 'GLTF', 'OBJ', 'POINT_CLOUD'}, 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

src/model/RecursiveFolderChildren.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ class RecursiveFolderChildren {
124124
if (data.hasOwnProperty('file')) {
125125
obj['file'] = ApiClient.convertToType(data['file'], 'String');
126126
}
127+
if (data.hasOwnProperty('office_preview')) {
128+
obj['office_preview'] = ApiClient.convertToType(data['office_preview'], 'String');
129+
}
127130
if (data.hasOwnProperty('groups_permissions')) {
128131
obj['groups_permissions'] = ApiClient.convertToType(data['groups_permissions'], 'Boolean');
129132
}
@@ -228,6 +231,11 @@ RecursiveFolderChildren.prototype['ifc_id'] = undefined;
228231
*/
229232
RecursiveFolderChildren.prototype['file'] = undefined;
230233

234+
/**
235+
* @member {String} office_preview
236+
*/
237+
RecursiveFolderChildren.prototype['office_preview'] = undefined;
238+
231239
/**
232240
* DEPRECATED: This field must be present because of legacy constraints but will always be empty. If you want to see group permissions of a folder, see `getFolder`
233241
* @member {Boolean} groups_permissions

test/model/RecursiveFolderChildren.spec.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,12 @@
144144
//expect(instance).to.be();
145145
});
146146

147+
it('should have the property officePreview (base name: "office_preview")', function() {
148+
// uncomment below and update the code to test the property officePreview
149+
//var instance = new bimdata.RecursiveFolderChildren();
150+
//expect(instance).to.be();
151+
});
152+
147153
it('should have the property groupsPermissions (base name: "groups_permissions")', function() {
148154
// uncomment below and update the code to test the property groupsPermissions
149155
//var instance = new bimdata.RecursiveFolderChildren();

0 commit comments

Comments
 (0)