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

Commit 1099a20

Browse files
committed
PATCH: Add authoring viewpoint fields (#547)
1 parent a6927c6 commit 1099a20

11 files changed

+75
-24
lines changed

docs/CollaborationApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ Name | Type | Description | Notes
823823
824824
Create a document
825825

826-
Create a document. If the document is one of {'BFX', 'IFC', 'DXF', 'DWG', 'GLTF', 'OBJ', 'DAE'}, a model will be created and attached to this document Required scopes: document:write
826+
Create a document. If the document is one of {'DXF', 'IFC', 'DWG', 'OBJ', 'DAE', 'GLTF', 'BFX'}, a model will be created and attached to this document Required scopes: document:write
827827

828828
### Example
829829

docs/PatchedViewpointRequest.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**index** | **Number** | | [optional]
88
**guid** | **String** | | [optional]
9-
**authoringView** | **String** | | [optional]
9+
**originatingSystem** | **String** | Name of the system in which the viewpoint is originated | [optional]
10+
**authoringToolId** | **String** | System specific identifier of the viewpoint in the originating BIM tool | [optional]
1011
**orthogonalCamera** | [**OrthogonalCameraRequest**](OrthogonalCameraRequest.md) | | [optional]
1112
**perspectiveCamera** | [**PerspectiveCameraRequest**](PerspectiveCameraRequest.md) | | [optional]
1213
**lines** | [**[LineRequest]**](LineRequest.md) | | [optional]

docs/Viewpoint.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**index** | **Number** | | [optional]
88
**guid** | **String** | | [optional]
9-
**authoringView** | **String** | | [optional]
9+
**originatingSystem** | **String** | Name of the system in which the viewpoint is originated | [optional]
10+
**authoringToolId** | **String** | System specific identifier of the viewpoint in the originating BIM tool | [optional]
1011
**orthogonalCamera** | [**OrthogonalCamera**](OrthogonalCamera.md) | | [optional]
1112
**perspectiveCamera** | [**PerspectiveCamera**](PerspectiveCamera.md) | | [optional]
1213
**lines** | [**[Line]**](Line.md) | | [optional]

docs/ViewpointRequest.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**index** | **Number** | | [optional]
88
**guid** | **String** | | [optional]
9-
**authoringView** | **String** | | [optional]
9+
**originatingSystem** | **String** | Name of the system in which the viewpoint is originated | [optional]
10+
**authoringToolId** | **String** | System specific identifier of the viewpoint in the originating BIM tool | [optional]
1011
**orthogonalCamera** | [**OrthogonalCameraRequest**](OrthogonalCameraRequest.md) | | [optional]
1112
**perspectiveCamera** | [**PerspectiveCameraRequest**](PerspectiveCameraRequest.md) | | [optional]
1213
**lines** | [**[LineRequest]**](LineRequest.md) | | [optional]

src/api/CollaborationApi.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ export default class CollaborationApi {
750750

751751
/**
752752
* Create a document
753-
* Create a document. If the document is one of {'BFX', 'IFC', 'DXF', 'DWG', 'GLTF', 'OBJ', 'DAE'}, a model will be created and attached to this document Required scopes: document:write
753+
* Create a document. If the document is one of {'DXF', 'IFC', 'DWG', 'OBJ', 'DAE', 'GLTF', 'BFX'}, a model will be created and attached to this document Required scopes: document:write
754754
* @param {Number} cloudPk A unique integer value identifying this cloud.
755755
* @param {Number} projectPk A unique integer value identifying this project.
756756
* @param {String} name Shown name of the file
@@ -818,7 +818,7 @@ export default class CollaborationApi {
818818

819819
/**
820820
* Create a document
821-
* Create a document. If the document is one of {'BFX', 'IFC', 'DXF', 'DWG', 'GLTF', 'OBJ', 'DAE'}, a model will be created and attached to this document Required scopes: document:write
821+
* Create a document. If the document is one of {'DXF', 'IFC', 'DWG', 'OBJ', 'DAE', 'GLTF', 'BFX'}, a model will be created and attached to this document Required scopes: document:write
822822
* @param {Number} cloudPk A unique integer value identifying this cloud.
823823
* @param {Number} projectPk A unique integer value identifying this project.
824824
* @param {String} name Shown name of the file

src/model/PatchedViewpointRequest.js

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,11 @@ class PatchedViewpointRequest {
6161
if (data.hasOwnProperty('guid')) {
6262
obj['guid'] = ApiClient.convertToType(data['guid'], 'String');
6363
}
64-
if (data.hasOwnProperty('authoring_view')) {
65-
obj['authoring_view'] = ApiClient.convertToType(data['authoring_view'], 'String');
64+
if (data.hasOwnProperty('originating_system')) {
65+
obj['originating_system'] = ApiClient.convertToType(data['originating_system'], 'String');
66+
}
67+
if (data.hasOwnProperty('authoring_tool_id')) {
68+
obj['authoring_tool_id'] = ApiClient.convertToType(data['authoring_tool_id'], 'String');
6669
}
6770
if (data.hasOwnProperty('orthogonal_camera')) {
6871
obj['orthogonal_camera'] = ApiClient.convertToType(data['orthogonal_camera'], OrthogonalCameraRequest);
@@ -106,9 +109,16 @@ PatchedViewpointRequest.prototype['index'] = undefined;
106109
PatchedViewpointRequest.prototype['guid'] = undefined;
107110

108111
/**
109-
* @member {String} authoring_view
112+
* Name of the system in which the viewpoint is originated
113+
* @member {String} originating_system
114+
*/
115+
PatchedViewpointRequest.prototype['originating_system'] = undefined;
116+
117+
/**
118+
* System specific identifier of the viewpoint in the originating BIM tool
119+
* @member {String} authoring_tool_id
110120
*/
111-
PatchedViewpointRequest.prototype['authoring_view'] = undefined;
121+
PatchedViewpointRequest.prototype['authoring_tool_id'] = undefined;
112122

113123
/**
114124
* @member {module:model/OrthogonalCameraRequest} orthogonal_camera

src/model/Viewpoint.js

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,11 @@ class Viewpoint {
6161
if (data.hasOwnProperty('guid')) {
6262
obj['guid'] = ApiClient.convertToType(data['guid'], 'String');
6363
}
64-
if (data.hasOwnProperty('authoring_view')) {
65-
obj['authoring_view'] = ApiClient.convertToType(data['authoring_view'], 'String');
64+
if (data.hasOwnProperty('originating_system')) {
65+
obj['originating_system'] = ApiClient.convertToType(data['originating_system'], 'String');
66+
}
67+
if (data.hasOwnProperty('authoring_tool_id')) {
68+
obj['authoring_tool_id'] = ApiClient.convertToType(data['authoring_tool_id'], 'String');
6669
}
6770
if (data.hasOwnProperty('orthogonal_camera')) {
6871
obj['orthogonal_camera'] = ApiClient.convertToType(data['orthogonal_camera'], OrthogonalCamera);
@@ -103,9 +106,16 @@ Viewpoint.prototype['index'] = undefined;
103106
Viewpoint.prototype['guid'] = undefined;
104107

105108
/**
106-
* @member {String} authoring_view
109+
* Name of the system in which the viewpoint is originated
110+
* @member {String} originating_system
111+
*/
112+
Viewpoint.prototype['originating_system'] = undefined;
113+
114+
/**
115+
* System specific identifier of the viewpoint in the originating BIM tool
116+
* @member {String} authoring_tool_id
107117
*/
108-
Viewpoint.prototype['authoring_view'] = undefined;
118+
Viewpoint.prototype['authoring_tool_id'] = undefined;
109119

110120
/**
111121
* @member {module:model/OrthogonalCamera} orthogonal_camera

src/model/ViewpointRequest.js

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,11 @@ class ViewpointRequest {
6161
if (data.hasOwnProperty('guid')) {
6262
obj['guid'] = ApiClient.convertToType(data['guid'], 'String');
6363
}
64-
if (data.hasOwnProperty('authoring_view')) {
65-
obj['authoring_view'] = ApiClient.convertToType(data['authoring_view'], 'String');
64+
if (data.hasOwnProperty('originating_system')) {
65+
obj['originating_system'] = ApiClient.convertToType(data['originating_system'], 'String');
66+
}
67+
if (data.hasOwnProperty('authoring_tool_id')) {
68+
obj['authoring_tool_id'] = ApiClient.convertToType(data['authoring_tool_id'], 'String');
6669
}
6770
if (data.hasOwnProperty('orthogonal_camera')) {
6871
obj['orthogonal_camera'] = ApiClient.convertToType(data['orthogonal_camera'], OrthogonalCameraRequest);
@@ -106,9 +109,16 @@ ViewpointRequest.prototype['index'] = undefined;
106109
ViewpointRequest.prototype['guid'] = undefined;
107110

108111
/**
109-
* @member {String} authoring_view
112+
* Name of the system in which the viewpoint is originated
113+
* @member {String} originating_system
114+
*/
115+
ViewpointRequest.prototype['originating_system'] = undefined;
116+
117+
/**
118+
* System specific identifier of the viewpoint in the originating BIM tool
119+
* @member {String} authoring_tool_id
110120
*/
111-
ViewpointRequest.prototype['authoring_view'] = undefined;
121+
ViewpointRequest.prototype['authoring_tool_id'] = undefined;
112122

113123
/**
114124
* @member {module:model/OrthogonalCameraRequest} orthogonal_camera

test/model/PatchedViewpointRequest.spec.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,14 @@
6666
//expect(instance).to.be();
6767
});
6868

69-
it('should have the property authoringView (base name: "authoring_view")', function() {
70-
// uncomment below and update the code to test the property authoringView
69+
it('should have the property originatingSystem (base name: "originating_system")', function() {
70+
// uncomment below and update the code to test the property originatingSystem
71+
//var instance = new bimdata.PatchedViewpointRequest();
72+
//expect(instance).to.be();
73+
});
74+
75+
it('should have the property authoringToolId (base name: "authoring_tool_id")', function() {
76+
// uncomment below and update the code to test the property authoringToolId
7177
//var instance = new bimdata.PatchedViewpointRequest();
7278
//expect(instance).to.be();
7379
});

test/model/Viewpoint.spec.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,14 @@
6666
//expect(instance).to.be();
6767
});
6868

69-
it('should have the property authoringView (base name: "authoring_view")', function() {
70-
// uncomment below and update the code to test the property authoringView
69+
it('should have the property originatingSystem (base name: "originating_system")', function() {
70+
// uncomment below and update the code to test the property originatingSystem
71+
//var instance = new bimdata.Viewpoint();
72+
//expect(instance).to.be();
73+
});
74+
75+
it('should have the property authoringToolId (base name: "authoring_tool_id")', function() {
76+
// uncomment below and update the code to test the property authoringToolId
7177
//var instance = new bimdata.Viewpoint();
7278
//expect(instance).to.be();
7379
});

0 commit comments

Comments
 (0)