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

Commit 2141041

Browse files
committed
PATCH: filter storey models with permissions and add models_unreachable_count field (#470)
* filter storey models with permissions * fix test add model to storey * rework storey serializer
1 parent 68daa30 commit 2141041

3 files changed

Lines changed: 15 additions & 0 deletions

File tree

docs/Storey.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
1010
**elevation** | **Number** | | [optional]
1111
**order** | **Number** | | [optional] [readonly]
1212
**models** | [**[Ifc]**](Ifc.md) | | [optional] [readonly]
13+
**modelsUnreachableCount** | **Number** | | [optional] [readonly]
1314
**isSite** | **Boolean** | | [optional] [readonly]
1415

1516

src/model/Storey.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ class Storey {
6868
if (data.hasOwnProperty('models')) {
6969
obj['models'] = ApiClient.convertToType(data['models'], [Ifc]);
7070
}
71+
if (data.hasOwnProperty('models_unreachable_count')) {
72+
obj['models_unreachable_count'] = ApiClient.convertToType(data['models_unreachable_count'], 'Number');
73+
}
7174
if (data.hasOwnProperty('is_site')) {
7275
obj['is_site'] = ApiClient.convertToType(data['is_site'], 'Boolean');
7376
}
@@ -108,6 +111,11 @@ Storey.prototype['order'] = undefined;
108111
*/
109112
Storey.prototype['models'] = undefined;
110113

114+
/**
115+
* @member {Number} models_unreachable_count
116+
*/
117+
Storey.prototype['models_unreachable_count'] = undefined;
118+
111119
/**
112120
* @member {Boolean} is_site
113121
*/

test/model/Storey.spec.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@
9090
//expect(instance).to.be();
9191
});
9292

93+
it('should have the property modelsUnreachableCount (base name: "models_unreachable_count")', function() {
94+
// uncomment below and update the code to test the property modelsUnreachableCount
95+
//var instane = new bimdata.Storey();
96+
//expect(instance).to.be();
97+
});
98+
9399
it('should have the property isSite (base name: "is_site")', function() {
94100
// uncomment below and update the code to test the property isSite
95101
//var instane = new bimdata.Storey();

0 commit comments

Comments
 (0)