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

Commit 0b02944

Browse files
committed
MINOR: add bcf pins (#515)
* add bcf pins * add view tests
1 parent e60a712 commit 0b02944

9 files changed

Lines changed: 48 additions & 0 deletions

docs/PatchedViewpointRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
1212
**clippingPlanes** | [**[ClippingPlaneRequest]**](ClippingPlaneRequest.md) | | [optional]
1313
**snapshot** | [**SnapshotRequest**](SnapshotRequest.md) | | [optional]
1414
**components** | [**ComponentsParentRequest**](ComponentsParentRequest.md) | | [optional]
15+
**pins** | **[[Number]]** | Non standard field. Pins is a list of points representing annotation positions | [optional]
1516
**tempId** | **Number** | Only used when using POST on the full-topic route to bind viewpoint with comment | [optional]
1617

1718

docs/Viewpoint.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ Name | Type | Description | Notes
1212
**clippingPlanes** | [**[ClippingPlane]**](ClippingPlane.md) | | [optional]
1313
**snapshot** | [**Snapshot**](Snapshot.md) | | [optional]
1414
**components** | [**ComponentsParent**](ComponentsParent.md) | | [optional]
15+
**pins** | **[[Number]]** | Non standard field. Pins is a list of points representing annotation positions | [optional]
1516

1617

docs/ViewpointRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
1212
**clippingPlanes** | [**[ClippingPlaneRequest]**](ClippingPlaneRequest.md) | | [optional]
1313
**snapshot** | [**SnapshotRequest**](SnapshotRequest.md) | | [optional]
1414
**components** | [**ComponentsParentRequest**](ComponentsParentRequest.md) | | [optional]
15+
**pins** | **[[Number]]** | Non standard field. Pins is a list of points representing annotation positions | [optional]
1516
**tempId** | **Number** | Only used when using POST on the full-topic route to bind viewpoint with comment | [optional]
1617

1718

src/model/PatchedViewpointRequest.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ class PatchedViewpointRequest {
7878
if (data.hasOwnProperty('components')) {
7979
obj['components'] = ApiClient.convertToType(data['components'], ComponentsParentRequest);
8080
}
81+
if (data.hasOwnProperty('pins')) {
82+
obj['pins'] = ApiClient.convertToType(data['pins'], [['Number']]);
83+
}
8184
if (data.hasOwnProperty('temp_id')) {
8285
obj['temp_id'] = ApiClient.convertToType(data['temp_id'], 'Number');
8386
}
@@ -128,6 +131,12 @@ PatchedViewpointRequest.prototype['snapshot'] = undefined;
128131
*/
129132
PatchedViewpointRequest.prototype['components'] = undefined;
130133

134+
/**
135+
* Non standard field. Pins is a list of points representing annotation positions
136+
* @member {Array.<Array.<Number>>} pins
137+
*/
138+
PatchedViewpointRequest.prototype['pins'] = undefined;
139+
131140
/**
132141
* Only used when using POST on the full-topic route to bind viewpoint with comment
133142
* @member {Number} temp_id

src/model/Viewpoint.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ class Viewpoint {
7878
if (data.hasOwnProperty('components')) {
7979
obj['components'] = ApiClient.convertToType(data['components'], ComponentsParent);
8080
}
81+
if (data.hasOwnProperty('pins')) {
82+
obj['pins'] = ApiClient.convertToType(data['pins'], [['Number']]);
83+
}
8184
}
8285
return obj;
8386
}
@@ -125,6 +128,12 @@ Viewpoint.prototype['snapshot'] = undefined;
125128
*/
126129
Viewpoint.prototype['components'] = undefined;
127130

131+
/**
132+
* Non standard field. Pins is a list of points representing annotation positions
133+
* @member {Array.<Array.<Number>>} pins
134+
*/
135+
Viewpoint.prototype['pins'] = undefined;
136+
128137

129138

130139

src/model/ViewpointRequest.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ class ViewpointRequest {
7878
if (data.hasOwnProperty('components')) {
7979
obj['components'] = ApiClient.convertToType(data['components'], ComponentsParentRequest);
8080
}
81+
if (data.hasOwnProperty('pins')) {
82+
obj['pins'] = ApiClient.convertToType(data['pins'], [['Number']]);
83+
}
8184
if (data.hasOwnProperty('temp_id')) {
8285
obj['temp_id'] = ApiClient.convertToType(data['temp_id'], 'Number');
8386
}
@@ -128,6 +131,12 @@ ViewpointRequest.prototype['snapshot'] = undefined;
128131
*/
129132
ViewpointRequest.prototype['components'] = undefined;
130133

134+
/**
135+
* Non standard field. Pins is a list of points representing annotation positions
136+
* @member {Array.<Array.<Number>>} pins
137+
*/
138+
ViewpointRequest.prototype['pins'] = undefined;
139+
131140
/**
132141
* Only used when using POST on the full-topic route to bind viewpoint with comment
133142
* @member {Number} temp_id

test/model/PatchedViewpointRequest.spec.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,12 @@
102102
//expect(instance).to.be();
103103
});
104104

105+
it('should have the property pins (base name: "pins")', function() {
106+
// uncomment below and update the code to test the property pins
107+
//var instance = new bimdata.PatchedViewpointRequest();
108+
//expect(instance).to.be();
109+
});
110+
105111
it('should have the property tempId (base name: "temp_id")', function() {
106112
// uncomment below and update the code to test the property tempId
107113
//var instance = new bimdata.PatchedViewpointRequest();

test/model/Viewpoint.spec.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,12 @@
102102
//expect(instance).to.be();
103103
});
104104

105+
it('should have the property pins (base name: "pins")', function() {
106+
// uncomment below and update the code to test the property pins
107+
//var instance = new bimdata.Viewpoint();
108+
//expect(instance).to.be();
109+
});
110+
105111
});
106112

107113
}));

test/model/ViewpointRequest.spec.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,12 @@
102102
//expect(instance).to.be();
103103
});
104104

105+
it('should have the property pins (base name: "pins")', function() {
106+
// uncomment below and update the code to test the property pins
107+
//var instance = new bimdata.ViewpointRequest();
108+
//expect(instance).to.be();
109+
});
110+
105111
it('should have the property tempId (base name: "temp_id")', function() {
106112
// uncomment below and update the code to test the property tempId
107113
//var instance = new bimdata.ViewpointRequest();

0 commit comments

Comments
 (0)