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

Commit 705f0d5

Browse files
committed
PATCH: rename model 360 field (#576)
* rename model 360 field * keep viewer_360_file field * remove useless field in write only serializer
1 parent 42bf92e commit 705f0d5

18 files changed

+80
-28
lines changed

docs/CollaborationApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,7 @@ Name | Type | Description | Notes
889889
890890
Create a document
891891

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

894894
### Example
895895

docs/IfcApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9738,7 +9738,7 @@ let opts = {
97389738
'gltfFile': "/path/to/file", // File |
97399739
'gltfWithOpeningsFile': "/path/to/file", // File |
97409740
'bvhTreeFile': "/path/to/file", // File |
9741-
'viewer360File': "/path/to/file", // File |
9741+
'previewFile': "/path/to/file", // File |
97429742
'xktFile': "/path/to/file" // File |
97439743
};
97449744
apiInstance.updateIfcFilesDeprecated(cloudPk, id, projectPk, opts).then((data) => {
@@ -9763,7 +9763,7 @@ Name | Type | Description | Notes
97639763
**gltfFile** | **File**| | [optional]
97649764
**gltfWithOpeningsFile** | **File**| | [optional]
97659765
**bvhTreeFile** | **File**| | [optional]
9766-
**viewer360File** | **File**| | [optional]
9766+
**previewFile** | **File**| | [optional]
97679767
**xktFile** | **File**| | [optional]
97689768

97699769
### Return type

docs/Model.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ Name | Type | Description | Notes
1919
**mapFile** | **String** | | [readonly]
2020
**gltfFile** | **String** | | [readonly]
2121
**bvhTreeFile** | **String** | | [readonly]
22-
**viewer360File** | **String** | | [readonly]
22+
**previewFile** | **String** | | [readonly]
23+
**viewer360File** | **String** | DEPRECATED: Use 'preview_file' instead. |
2324
**xktFile** | **String** | | [readonly]
2425
**projectId** | **Number** | | [readonly]
2526
**worldPosition** | **[Number]** | [x,y,z] array of the position of the local_placement in world coordinates | [optional]

docs/ModelApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9039,7 +9039,7 @@ let opts = {
90399039
'gltfFile': "/path/to/file", // File |
90409040
'gltfWithOpeningsFile': "/path/to/file", // File |
90419041
'bvhTreeFile': "/path/to/file", // File |
9042-
'viewer360File': "/path/to/file", // File |
9042+
'previewFile': "/path/to/file", // File |
90439043
'xktFile': "/path/to/file" // File |
90449044
};
90459045
apiInstance.updateModelFiles(cloudPk, id, projectPk, opts).then((data) => {
@@ -9064,7 +9064,7 @@ Name | Type | Description | Notes
90649064
**gltfFile** | **File**| | [optional]
90659065
**gltfWithOpeningsFile** | **File**| | [optional]
90669066
**bvhTreeFile** | **File**| | [optional]
9067-
**viewer360File** | **File**| | [optional]
9067+
**previewFile** | **File**| | [optional]
90689068
**xktFile** | **File**| | [optional]
90699069

90709070
### Return type

docs/ModelFiles.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
1010
**gltfFile** | **String** | | [optional]
1111
**gltfWithOpeningsFile** | **String** | | [optional]
1212
**bvhTreeFile** | **String** | | [optional]
13-
**viewer360File** | **String** | | [optional]
13+
**previewFile** | **String** | | [optional]
1414
**xktFile** | **String** | | [optional]
1515

1616

docs/ModelRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**name** | **String** | | [optional]
88
**source** | **String** | | [optional]
9+
**viewer360File** | **File** | DEPRECATED: Use 'preview_file' instead. |
910
**worldPosition** | **[Number]** | [x,y,z] array of the position of the local_placement in world coordinates | [optional]
1011
**sizeRatio** | **Number** | How many meters a unit represents | [optional]
1112
**archived** | **Boolean** | | [optional]

docs/PatchedModelRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**name** | **String** | | [optional]
88
**source** | **String** | | [optional]
9+
**viewer360File** | **File** | DEPRECATED: Use 'preview_file' instead. | [optional]
910
**worldPosition** | **[Number]** | [x,y,z] array of the position of the local_placement in world coordinates | [optional]
1011
**sizeRatio** | **Number** | How many meters a unit represents | [optional]
1112
**archived** | **Boolean** | | [optional]

src/api/CollaborationApi.js

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

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

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

src/api/IfcApi.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10024,7 +10024,7 @@ export default class IfcApi {
1002410024
* @param {File} opts.gltfFile
1002510025
* @param {File} opts.gltfWithOpeningsFile
1002610026
* @param {File} opts.bvhTreeFile
10027-
* @param {File} opts.viewer360File
10027+
* @param {File} opts.previewFile
1002810028
* @param {File} opts.xktFile
1002910029
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ModelFiles} and HTTP response
1003010030
*/
@@ -10060,7 +10060,7 @@ export default class IfcApi {
1006010060
'gltf_file': opts['gltfFile'],
1006110061
'gltf_with_openings_file': opts['gltfWithOpeningsFile'],
1006210062
'bvh_tree_file': opts['bvhTreeFile'],
10063-
'viewer_360_file': opts['viewer360File'],
10063+
'preview_file': opts['previewFile'],
1006410064
'xkt_file': opts['xktFile']
1006510065
};
1006610066

@@ -10088,7 +10088,7 @@ export default class IfcApi {
1008810088
* @param {File} opts.gltfFile
1008910089
* @param {File} opts.gltfWithOpeningsFile
1009010090
* @param {File} opts.bvhTreeFile
10091-
* @param {File} opts.viewer360File
10091+
* @param {File} opts.previewFile
1009210092
* @param {File} opts.xktFile
1009310093
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ModelFiles}
1009410094
*/

src/api/ModelApi.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9301,7 +9301,7 @@ export default class ModelApi {
93019301
* @param {File} opts.gltfFile
93029302
* @param {File} opts.gltfWithOpeningsFile
93039303
* @param {File} opts.bvhTreeFile
9304-
* @param {File} opts.viewer360File
9304+
* @param {File} opts.previewFile
93059305
* @param {File} opts.xktFile
93069306
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ModelFiles} and HTTP response
93079307
*/
@@ -9337,7 +9337,7 @@ export default class ModelApi {
93379337
'gltf_file': opts['gltfFile'],
93389338
'gltf_with_openings_file': opts['gltfWithOpeningsFile'],
93399339
'bvh_tree_file': opts['bvhTreeFile'],
9340-
'viewer_360_file': opts['viewer360File'],
9340+
'preview_file': opts['previewFile'],
93419341
'xkt_file': opts['xktFile']
93429342
};
93439343

@@ -9365,7 +9365,7 @@ export default class ModelApi {
93659365
* @param {File} opts.gltfFile
93669366
* @param {File} opts.gltfWithOpeningsFile
93679367
* @param {File} opts.bvhTreeFile
9368-
* @param {File} opts.viewer360File
9368+
* @param {File} opts.previewFile
93699369
* @param {File} opts.xktFile
93709370
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ModelFiles}
93719371
*/

0 commit comments

Comments
 (0)