Skip to content

Commit

Permalink
MINOR: Add bcf bimdata_viewer_layout (#759)
Browse files Browse the repository at this point in the history
* Add bcf bimdata_layout

* Rename into bimdata_viewer_layout

* Fix test...
  • Loading branch information
Bimdata-io committed Jul 4, 2024
1 parent 28dbbb2 commit 5123339
Show file tree
Hide file tree
Showing 20 changed files with 99 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/CollaborationApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,7 @@ Name | Type | Description | Notes
Create a document

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

### Example

Expand Down
1 change: 1 addition & 0 deletions docs/FullTopic.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ Name | Type | Description | Notes
**comments** | [**[Comment]**](Comment.md) | | [optional]
**viewpoints** | [**[Viewpoint]**](Viewpoint.md) | | [optional]
**project** | **Number** | |
**bimdataViewerLayout** | **{String: Object}** | Non standard field. JSON describing bimdataViewerLayout. | [optional]


1 change: 1 addition & 0 deletions docs/FullTopicRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ Name | Type | Description | Notes
**comments** | [**[CommentRequest]**](CommentRequest.md) | | [optional]
**viewpoints** | [**[ViewpointRequest]**](ViewpointRequest.md) | | [optional]
**project** | **Number** | |
**bimdataViewerLayout** | **{String: Object}** | Non standard field. JSON describing bimdataViewerLayout. | [optional]


1 change: 1 addition & 0 deletions docs/PatchedFullTopicRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ Name | Type | Description | Notes
**comments** | [**[CommentRequest]**](CommentRequest.md) | | [optional]
**viewpoints** | [**[ViewpointRequest]**](ViewpointRequest.md) | | [optional]
**project** | **Number** | | [optional]
**bimdataViewerLayout** | **{String: Object}** | Non standard field. JSON describing bimdataViewerLayout. | [optional]


1 change: 1 addition & 0 deletions docs/PatchedTopicRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@ Name | Type | Description | Notes
**format** | **String** | The BCF data structure may be used for other purposes than BCF Topics. (Storing coordinates, a viewpoint, a list of objecs, etc) The default value is \"standard\". If you want to use the BCF routes to store custom data not related to a BCF Topic, you must set this value to something else. You must add a query string filter if you want to fetch topics with a non \"standard\" format. | [optional]
**index** | **Number** | | [optional]
**project** | **Number** | | [optional]
**bimdataViewerLayout** | **{String: Object}** | Non standard field. JSON describing bimdataViewerLayout. | [optional]


1 change: 1 addition & 0 deletions docs/Topic.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@ Name | Type | Description | Notes
**format** | **String** | The BCF data structure may be used for other purposes than BCF Topics. (Storing coordinates, a viewpoint, a list of objecs, etc) The default value is \"standard\". If you want to use the BCF routes to store custom data not related to a BCF Topic, you must set this value to something else. You must add a query string filter if you want to fetch topics with a non \"standard\" format. | [optional]
**index** | **Number** | | [optional]
**project** | **Number** | |
**bimdataViewerLayout** | **{String: Object}** | Non standard field. JSON describing bimdataViewerLayout. | [optional]


1 change: 1 addition & 0 deletions docs/TopicRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@ Name | Type | Description | Notes
**format** | **String** | The BCF data structure may be used for other purposes than BCF Topics. (Storing coordinates, a viewpoint, a list of objecs, etc) The default value is \"standard\". If you want to use the BCF routes to store custom data not related to a BCF Topic, you must set this value to something else. You must add a query string filter if you want to fetch topics with a non \"standard\" format. | [optional]
**index** | **Number** | | [optional]
**project** | **Number** | |
**bimdataViewerLayout** | **{String: Object}** | Non standard field. JSON describing bimdataViewerLayout. | [optional]


4 changes: 2 additions & 2 deletions src/api/CollaborationApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,7 @@ export default class CollaborationApi {

/**
* Create a document
* Create a document. If the document is one of {'POINT_CLOUD', 'DXF', 'DWG', 'GLTF', 'OBJ', 'IFC'}, a model will be created and attached to this document Required scopes: document:write
* Create a document. If the document is one of {'OBJ', 'IFC', 'DXF', 'GLTF', 'DWG', 'POINT_CLOUD'}, a model will be created and attached to this document Required scopes: document:write
* @param {Number} cloudPk A unique integer value identifying this cloud.
* @param {Number} projectPk A unique integer value identifying this project.
* @param {String} name Shown name of the file
Expand Down Expand Up @@ -932,7 +932,7 @@ export default class CollaborationApi {

/**
* Create a document
* Create a document. If the document is one of {'POINT_CLOUD', 'DXF', 'DWG', 'GLTF', 'OBJ', 'IFC'}, a model will be created and attached to this document Required scopes: document:write
* Create a document. If the document is one of {'OBJ', 'IFC', 'DXF', 'GLTF', 'DWG', 'POINT_CLOUD'}, a model will be created and attached to this document Required scopes: document:write
* @param {Number} cloudPk A unique integer value identifying this cloud.
* @param {Number} projectPk A unique integer value identifying this project.
* @param {String} name Shown name of the file
Expand Down
9 changes: 9 additions & 0 deletions src/model/FullTopic.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ class FullTopic {
if (data.hasOwnProperty('project')) {
obj['project'] = ApiClient.convertToType(data['project'], 'Number');
}
if (data.hasOwnProperty('bimdata_viewer_layout')) {
obj['bimdata_viewer_layout'] = ApiClient.convertToType(data['bimdata_viewer_layout'], {'String': Object});
}
}
return obj;
}
Expand Down Expand Up @@ -240,6 +243,12 @@ FullTopic.prototype['viewpoints'] = undefined;
*/
FullTopic.prototype['project'] = undefined;

/**
* Non standard field. JSON describing bimdataViewerLayout.
* @member {Object.<String, Object>} bimdata_viewer_layout
*/
FullTopic.prototype['bimdata_viewer_layout'] = undefined;




Expand Down
9 changes: 9 additions & 0 deletions src/model/FullTopicRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ class FullTopicRequest {
if (data.hasOwnProperty('project')) {
obj['project'] = ApiClient.convertToType(data['project'], 'Number');
}
if (data.hasOwnProperty('bimdata_viewer_layout')) {
obj['bimdata_viewer_layout'] = ApiClient.convertToType(data['bimdata_viewer_layout'], {'String': Object});
}
}
return obj;
}
Expand Down Expand Up @@ -230,6 +233,12 @@ FullTopicRequest.prototype['viewpoints'] = undefined;
*/
FullTopicRequest.prototype['project'] = undefined;

/**
* Non standard field. JSON describing bimdataViewerLayout.
* @member {Object.<String, Object>} bimdata_viewer_layout
*/
FullTopicRequest.prototype['bimdata_viewer_layout'] = undefined;




Expand Down
9 changes: 9 additions & 0 deletions src/model/PatchedFullTopicRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ class PatchedFullTopicRequest {
if (data.hasOwnProperty('project')) {
obj['project'] = ApiClient.convertToType(data['project'], 'Number');
}
if (data.hasOwnProperty('bimdata_viewer_layout')) {
obj['bimdata_viewer_layout'] = ApiClient.convertToType(data['bimdata_viewer_layout'], {'String': Object});
}
}
return obj;
}
Expand Down Expand Up @@ -226,6 +229,12 @@ PatchedFullTopicRequest.prototype['viewpoints'] = undefined;
*/
PatchedFullTopicRequest.prototype['project'] = undefined;

/**
* Non standard field. JSON describing bimdataViewerLayout.
* @member {Object.<String, Object>} bimdata_viewer_layout
*/
PatchedFullTopicRequest.prototype['bimdata_viewer_layout'] = undefined;




Expand Down
9 changes: 9 additions & 0 deletions src/model/PatchedTopicRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ class PatchedTopicRequest {
if (data.hasOwnProperty('project')) {
obj['project'] = ApiClient.convertToType(data['project'], 'Number');
}
if (data.hasOwnProperty('bimdata_viewer_layout')) {
obj['bimdata_viewer_layout'] = ApiClient.convertToType(data['bimdata_viewer_layout'], {'String': Object});
}
}
return obj;
}
Expand Down Expand Up @@ -208,6 +211,12 @@ PatchedTopicRequest.prototype['index'] = undefined;
*/
PatchedTopicRequest.prototype['project'] = undefined;

/**
* Non standard field. JSON describing bimdataViewerLayout.
* @member {Object.<String, Object>} bimdata_viewer_layout
*/
PatchedTopicRequest.prototype['bimdata_viewer_layout'] = undefined;




Expand Down
9 changes: 9 additions & 0 deletions src/model/Topic.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ class Topic {
if (data.hasOwnProperty('project')) {
obj['project'] = ApiClient.convertToType(data['project'], 'Number');
}
if (data.hasOwnProperty('bimdata_viewer_layout')) {
obj['bimdata_viewer_layout'] = ApiClient.convertToType(data['bimdata_viewer_layout'], {'String': Object});
}
}
return obj;
}
Expand Down Expand Up @@ -222,6 +225,12 @@ Topic.prototype['index'] = undefined;
*/
Topic.prototype['project'] = undefined;

/**
* Non standard field. JSON describing bimdataViewerLayout.
* @member {Object.<String, Object>} bimdata_viewer_layout
*/
Topic.prototype['bimdata_viewer_layout'] = undefined;




Expand Down
9 changes: 9 additions & 0 deletions src/model/TopicRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ class TopicRequest {
if (data.hasOwnProperty('project')) {
obj['project'] = ApiClient.convertToType(data['project'], 'Number');
}
if (data.hasOwnProperty('bimdata_viewer_layout')) {
obj['bimdata_viewer_layout'] = ApiClient.convertToType(data['bimdata_viewer_layout'], {'String': Object});
}
}
return obj;
}
Expand Down Expand Up @@ -212,6 +215,12 @@ TopicRequest.prototype['index'] = undefined;
*/
TopicRequest.prototype['project'] = undefined;

/**
* Non standard field. JSON describing bimdataViewerLayout.
* @member {Object.<String, Object>} bimdata_viewer_layout
*/
TopicRequest.prototype['bimdata_viewer_layout'] = undefined;




Expand Down
6 changes: 6 additions & 0 deletions test/model/FullTopic.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,12 @@
//expect(instance).to.be();
});

it('should have the property bimdataViewerLayout (base name: "bimdata_viewer_layout")', function() {
// uncomment below and update the code to test the property bimdataViewerLayout
//var instance = new bimdata.FullTopic();
//expect(instance).to.be();
});

});

}));
6 changes: 6 additions & 0 deletions test/model/FullTopicRequest.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,12 @@
//expect(instance).to.be();
});

it('should have the property bimdataViewerLayout (base name: "bimdata_viewer_layout")', function() {
// uncomment below and update the code to test the property bimdataViewerLayout
//var instance = new bimdata.FullTopicRequest();
//expect(instance).to.be();
});

});

}));
6 changes: 6 additions & 0 deletions test/model/PatchedFullTopicRequest.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,12 @@
//expect(instance).to.be();
});

it('should have the property bimdataViewerLayout (base name: "bimdata_viewer_layout")', function() {
// uncomment below and update the code to test the property bimdataViewerLayout
//var instance = new bimdata.PatchedFullTopicRequest();
//expect(instance).to.be();
});

});

}));
6 changes: 6 additions & 0 deletions test/model/PatchedTopicRequest.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,12 @@
//expect(instance).to.be();
});

it('should have the property bimdataViewerLayout (base name: "bimdata_viewer_layout")', function() {
// uncomment below and update the code to test the property bimdataViewerLayout
//var instance = new bimdata.PatchedTopicRequest();
//expect(instance).to.be();
});

});

}));
6 changes: 6 additions & 0 deletions test/model/Topic.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,12 @@
//expect(instance).to.be();
});

it('should have the property bimdataViewerLayout (base name: "bimdata_viewer_layout")', function() {
// uncomment below and update the code to test the property bimdataViewerLayout
//var instance = new bimdata.Topic();
//expect(instance).to.be();
});

});

}));
6 changes: 6 additions & 0 deletions test/model/TopicRequest.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,12 @@
//expect(instance).to.be();
});

it('should have the property bimdataViewerLayout (base name: "bimdata_viewer_layout")', function() {
// uncomment below and update the code to test the property bimdataViewerLayout
//var instance = new bimdata.TopicRequest();
//expect(instance).to.be();
});

});

}));

0 comments on commit 5123339

Please sign in to comment.