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

Commit 8c360c1

Browse files
committed
MINOR: serialize user-permissions on documents
1 parent 87c97dc commit 8c360c1

3 files changed

Lines changed: 16 additions & 0 deletions

File tree

docs/Document.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Name | Type | Description | Notes
1818
**updatedAt** | **Date** | Date of the last update | [optional] [readonly]
1919
**ifcSource** | **String** | Define the ifc.source field if the upload is an IFC | [optional]
2020
**ifcId** | **String** | | [optional] [readonly]
21+
**userPermission** | **Number** | Aggregate of group user permissions and folder default permission | [optional] [readonly]
2122

2223

2324

src/model/Document.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ class Document {
9191
if (data.hasOwnProperty('ifc_id')) {
9292
obj['ifc_id'] = ApiClient.convertToType(data['ifc_id'], 'String');
9393
}
94+
if (data.hasOwnProperty('user_permission')) {
95+
obj['user_permission'] = ApiClient.convertToType(data['user_permission'], 'Number');
96+
}
9497
}
9598
return obj;
9699
}
@@ -175,6 +178,12 @@ Document.prototype['ifc_source'] = undefined;
175178
*/
176179
Document.prototype['ifc_id'] = undefined;
177180

181+
/**
182+
* Aggregate of group user permissions and folder default permission
183+
* @member {Number} user_permission
184+
*/
185+
Document.prototype['user_permission'] = undefined;
186+
178187

179188

180189

test/model/Document.spec.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,12 @@
138138
//expect(instance).to.be();
139139
});
140140

141+
it('should have the property userPermission (base name: "user_permission")', function() {
142+
// uncomment below and update the code to test the property userPermission
143+
//var instane = new bimdata.Document();
144+
//expect(instance).to.be();
145+
});
146+
141147
});
142148

143149
}));

0 commit comments

Comments
 (0)