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

Commit fa42d48

Browse files
committed
MINOR: add viewpoint models field (#702)
* MINOR: add viewpoint models field * fix typos
1 parent 3a53b76 commit fa42d48

11 files changed

+48
-3
lines changed

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 {'IFC', 'GLTF', 'POINT_CLOUD', 'DXF', 'OBJ', 'DWG'}, a model will be created and attached to this document Required scopes: document:write
958+
Create a document. If the document is one of {'GLTF', 'POINT_CLOUD', 'IFC', 'DXF', 'OBJ', 'DWG'}, a model will be created and attached to this document Required scopes: document:write
959959

960960
### Example
961961

docs/PatchedViewpointRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@ Name | Type | Description | Notes
1616
**components** | [**ComponentsParentRequest**](ComponentsParentRequest.md) | | [optional]
1717
**pins** | [**[PinRequest]**](PinRequest.md) | Non standard field. Pins (or markers/annotations) are points of interest. When creating a Viewpoint you can create pins with the fields `pins`, but you can't edit pins through here. You must use dedicated pin routes. | [optional]
1818
**tempId** | **Number** | Only used when using POST on the full-topic route to bind viewpoint with comment | [optional]
19+
**models** | **[Number]** | | [optional]
1920

2021

docs/Viewpoint.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@ Name | Type | Description | Notes
1515
**snapshot** | [**Snapshot**](Snapshot.md) | | [optional]
1616
**components** | [**ComponentsParent**](ComponentsParent.md) | | [optional]
1717
**pins** | [**[Pin]**](Pin.md) | Non standard field. Pins (or markers/annotations) are points of interest. When creating a Viewpoint you can create pins with the fields `pins`, but you can't edit pins through here. You must use dedicated pin routes. | [optional]
18+
**models** | **[Number]** | | [optional]
1819

1920

docs/ViewpointRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@ Name | Type | Description | Notes
1616
**components** | [**ComponentsParentRequest**](ComponentsParentRequest.md) | | [optional]
1717
**pins** | [**[PinRequest]**](PinRequest.md) | Non standard field. Pins (or markers/annotations) are points of interest. When creating a Viewpoint you can create pins with the fields `pins`, but you can't edit pins through here. You must use dedicated pin routes. | [optional]
1818
**tempId** | **Number** | Only used when using POST on the full-topic route to bind viewpoint with comment | [optional]
19+
**models** | **[Number]** | | [optional]
1920

2021

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 {'IFC', 'GLTF', 'POINT_CLOUD', 'DXF', 'OBJ', 'DWG'}, a model will be created and attached to this document Required scopes: document:write
861+
* Create a document. If the document is one of {'GLTF', 'POINT_CLOUD', 'IFC', 'DXF', 'OBJ', 'DWG'}, 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 {'IFC', 'GLTF', 'POINT_CLOUD', 'DXF', 'OBJ', 'DWG'}, a model will be created and attached to this document Required scopes: document:write
927+
* Create a document. If the document is one of {'GLTF', 'POINT_CLOUD', 'IFC', 'DXF', 'OBJ', 'DWG'}, 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/PatchedViewpointRequest.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ class PatchedViewpointRequest {
9191
if (data.hasOwnProperty('temp_id')) {
9292
obj['temp_id'] = ApiClient.convertToType(data['temp_id'], 'Number');
9393
}
94+
if (data.hasOwnProperty('models')) {
95+
obj['models'] = ApiClient.convertToType(data['models'], ['Number']);
96+
}
9497
}
9598
return obj;
9699
}
@@ -162,6 +165,11 @@ PatchedViewpointRequest.prototype['pins'] = undefined;
162165
*/
163166
PatchedViewpointRequest.prototype['temp_id'] = undefined;
164167

168+
/**
169+
* @member {Array.<Number>} models
170+
*/
171+
PatchedViewpointRequest.prototype['models'] = undefined;
172+
165173

166174

167175

src/model/Viewpoint.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ class Viewpoint {
8888
if (data.hasOwnProperty('pins')) {
8989
obj['pins'] = ApiClient.convertToType(data['pins'], [Pin]);
9090
}
91+
if (data.hasOwnProperty('models')) {
92+
obj['models'] = ApiClient.convertToType(data['models'], ['Number']);
93+
}
9194
}
9295
return obj;
9396
}
@@ -153,6 +156,11 @@ Viewpoint.prototype['components'] = undefined;
153156
*/
154157
Viewpoint.prototype['pins'] = undefined;
155158

159+
/**
160+
* @member {Array.<Number>} models
161+
*/
162+
Viewpoint.prototype['models'] = undefined;
163+
156164

157165

158166

src/model/ViewpointRequest.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ class ViewpointRequest {
9191
if (data.hasOwnProperty('temp_id')) {
9292
obj['temp_id'] = ApiClient.convertToType(data['temp_id'], 'Number');
9393
}
94+
if (data.hasOwnProperty('models')) {
95+
obj['models'] = ApiClient.convertToType(data['models'], ['Number']);
96+
}
9497
}
9598
return obj;
9699
}
@@ -162,6 +165,11 @@ ViewpointRequest.prototype['pins'] = undefined;
162165
*/
163166
ViewpointRequest.prototype['temp_id'] = undefined;
164167

168+
/**
169+
* @member {Array.<Number>} models
170+
*/
171+
ViewpointRequest.prototype['models'] = undefined;
172+
165173

166174

167175

test/model/PatchedViewpointRequest.spec.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,12 @@
126126
//expect(instance).to.be();
127127
});
128128

129+
it('should have the property models (base name: "models")', function() {
130+
// uncomment below and update the code to test the property models
131+
//var instance = new bimdata.PatchedViewpointRequest();
132+
//expect(instance).to.be();
133+
});
134+
129135
});
130136

131137
}));

test/model/Viewpoint.spec.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,12 @@
120120
//expect(instance).to.be();
121121
});
122122

123+
it('should have the property models (base name: "models")', function() {
124+
// uncomment below and update the code to test the property models
125+
//var instance = new bimdata.Viewpoint();
126+
//expect(instance).to.be();
127+
});
128+
123129
});
124130

125131
}));

0 commit comments

Comments
 (0)