You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 18, 2025. It is now read-only.
PATCH: fix(storey): allow to add photosphere as storey plan + fix process_hint on createDocument (#790)
* fix(storey): allow to add photosphere as storey plan
* fix(storey): create STOREY_CHILD_TYPES list + add 'process_hint' to Docuemnt serializer fields
Copy file name to clipboardExpand all lines: docs/CollaborationApi.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -960,7 +960,7 @@ Name | Type | Description | Notes
960
960
961
961
Create a document
962
962
963
-
Create a document. If the document is one of {'GLTF', 'OBJ', 'IFC', 'DWG', 'DXF', 'POINT_CLOUD'}, a model will be created and attached to this document Required scopes: document:write
963
+
Create a document. If the document is one of {'OBJ', 'IFC', 'GLTF', 'DXF', 'POINT_CLOUD', 'DWG'}, a model will be created and attached to this document Required scopes: document:write
964
964
965
965
### Example
966
966
@@ -995,7 +995,8 @@ let opts = {
995
995
'description':"description_example", // String | Description of the file
996
996
'modelSource':"modelSource_example", // String | Define the model.source field if the upload is a Model (IFC, PDF, DWG...) * `UPLOAD` - UPLOAD * `SPLIT` - SPLIT * `MERGE` - MERGE * `EXPORT` - EXPORT * `OPTIMIZED` - OPTIMIZED
997
997
'ifcSource':"ifcSource_example", // String | DEPRECATED: Use 'model_source' instead. Define the model.source field if the upload is a Model (IFC, PDF, DWG...) * `UPLOAD` - UPLOAD * `SPLIT` - SPLIT * `MERGE` - MERGE * `EXPORT` - EXPORT * `OPTIMIZED` - OPTIMIZED
998
-
'successorOf':56// Number | Old document version to replace. Only for create
998
+
'successorOf':56, // Number | Old document version to replace. Only for create
999
+
'processHint':"processHint_example"// String | Provide a info about the document in order to customize the way it is processed. * `PHOTOSPHERE` - PHOTOSPHERE
console.log('API called successfully. Returned data: '+ data);
@@ -1020,6 +1021,7 @@ Name | Type | Description | Notes
1020
1021
**modelSource** | **String**| Define the model.source field if the upload is a Model (IFC, PDF, DWG...) * `UPLOAD` - UPLOAD * `SPLIT` - SPLIT * `MERGE` - MERGE * `EXPORT` - EXPORT * `OPTIMIZED` - OPTIMIZED | [optional]
1021
1022
**ifcSource** | **String**| DEPRECATED: Use 'model_source' instead. Define the model.source field if the upload is a Model (IFC, PDF, DWG...) * `UPLOAD` - UPLOAD * `SPLIT` - SPLIT * `MERGE` - MERGE * `EXPORT` - EXPORT * `OPTIMIZED` - OPTIMIZED | [optional]
1022
1023
**successorOf** | **Number**| Old document version to replace. Only for create | [optional]
1024
+
**processHint** | **String**| Provide a info about the document in order to customize the way it is processed. * `PHOTOSPHERE` - PHOTOSPHERE | [optional]
Copy file name to clipboardExpand all lines: docs/ModelApi.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1270,7 +1270,7 @@ Name | Type | Description | Notes
1270
1270
1271
1271
Create a relation between a 2d model and a building
1272
1272
1273
-
Create a relation between a 2d model and a building. The model type must be one of : ('DWG', 'DXF', 'PDF', 'JPEG', 'PNG') Required scopes: ifc:write, model:write
1273
+
Create a relation between a 2d model and a building. The model type must be one of : ('DWG', 'DXF', 'PDF', 'JPEG', 'PNG', 'PHOTOSPHERE') Required scopes: ifc:write, model:write
1274
1274
1275
1275
### Example
1276
1276
@@ -2772,7 +2772,7 @@ Name | Type | Description | Notes
2772
2772
2773
2773
Create a relation between a 2d model and a storey
2774
2774
2775
-
Create a relation between a 2d model and a storey. The model type must be one of : ('DWG', 'DXF', 'PDF', 'JPEG', 'PNG') Required scopes: ifc:write, model:write
2775
+
Create a relation between a 2d model and a storey. The model type must be one of : ('DWG', 'DXF', 'PDF', 'JPEG', 'PNG', 'PHOTOSPHERE') Required scopes: ifc:write, model:write
Copy file name to clipboardExpand all lines: docs/PatchedDocumentRequest.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
12
12
**modelSource** | **String** | Define the model.source field if the upload is a Model (IFC, PDF, DWG...) * `UPLOAD` - UPLOAD * `SPLIT` - SPLIT * `MERGE` - MERGE * `EXPORT` - EXPORT * `OPTIMIZED` - OPTIMIZED | [optional]
13
13
**ifcSource** | **String** | DEPRECATED: Use 'model_source' instead. Define the model.source field if the upload is a Model (IFC, PDF, DWG...) * `UPLOAD` - UPLOAD * `SPLIT` - SPLIT * `MERGE` - MERGE * `EXPORT` - EXPORT * `OPTIMIZED` - OPTIMIZED | [optional]
14
14
**successorOf** | **Number** | Old document version to replace. Only for create | [optional]
15
+
**processHint** | **String** | Provide a info about the document in order to customize the way it is processed. * `PHOTOSPHERE` - PHOTOSPHERE | [optional]
15
16
16
17
17
18
@@ -48,3 +49,12 @@ Name | Type | Description | Notes
Copy file name to clipboardExpand all lines: src/api/CollaborationApi.js
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -866,7 +866,7 @@ export default class CollaborationApi {
866
866
867
867
/**
868
868
* Create a document
869
-
* Create a document. If the document is one of {'GLTF', 'OBJ', 'IFC', 'DWG', 'DXF', 'POINT_CLOUD'}, a model will be created and attached to this document Required scopes: document:write
869
+
* Create a document. If the document is one of {'OBJ', 'IFC', 'GLTF', 'DXF', 'POINT_CLOUD', 'DWG'}, a model will be created and attached to this document Required scopes: document:write
870
870
* @param {Number} cloudPk A unique integer value identifying this cloud.
871
871
* @param {Number} projectPk A unique integer value identifying this project.
872
872
* @param {String} name Shown name of the file
@@ -878,6 +878,7 @@ export default class CollaborationApi {
878
878
* @param {module:model/String} opts.modelSource Define the model.source field if the upload is a Model (IFC, PDF, DWG...) * `UPLOAD` - UPLOAD * `SPLIT` - SPLIT * `MERGE` - MERGE * `EXPORT` - EXPORT * `OPTIMIZED` - OPTIMIZED
879
879
* @param {module:model/String} opts.ifcSource DEPRECATED: Use 'model_source' instead. Define the model.source field if the upload is a Model (IFC, PDF, DWG...) * `UPLOAD` - UPLOAD * `SPLIT` - SPLIT * `MERGE` - MERGE * `EXPORT` - EXPORT * `OPTIMIZED` - OPTIMIZED
880
880
* @param {Number} opts.successorOf Old document version to replace. Only for create
881
+
* @param {module:model/String} opts.processHint Provide a info about the document in order to customize the way it is processed. * `PHOTOSPHERE` - PHOTOSPHERE
881
882
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Document} and HTTP response
@@ -932,7 +934,7 @@ export default class CollaborationApi {
932
934
933
935
/**
934
936
* Create a document
935
-
* Create a document. If the document is one of {'GLTF', 'OBJ', 'IFC', 'DWG', 'DXF', 'POINT_CLOUD'}, a model will be created and attached to this document Required scopes: document:write
937
+
* Create a document. If the document is one of {'OBJ', 'IFC', 'GLTF', 'DXF', 'POINT_CLOUD', 'DWG'}, a model will be created and attached to this document Required scopes: document:write
936
938
* @param {Number} cloudPk A unique integer value identifying this cloud.
937
939
* @param {Number} projectPk A unique integer value identifying this project.
938
940
* @param {String} name Shown name of the file
@@ -944,6 +946,7 @@ export default class CollaborationApi {
944
946
* @param {module:model/String} opts.modelSource Define the model.source field if the upload is a Model (IFC, PDF, DWG...) * `UPLOAD` - UPLOAD * `SPLIT` - SPLIT * `MERGE` - MERGE * `EXPORT` - EXPORT * `OPTIMIZED` - OPTIMIZED
945
947
* @param {module:model/String} opts.ifcSource DEPRECATED: Use 'model_source' instead. Define the model.source field if the upload is a Model (IFC, PDF, DWG...) * `UPLOAD` - UPLOAD * `SPLIT` - SPLIT * `MERGE` - MERGE * `EXPORT` - EXPORT * `OPTIMIZED` - OPTIMIZED
946
948
* @param {Number} opts.successorOf Old document version to replace. Only for create
949
+
* @param {module:model/String} opts.processHint Provide a info about the document in order to customize the way it is processed. * `PHOTOSPHERE` - PHOTOSPHERE
947
950
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Document}
Copy file name to clipboardExpand all lines: src/api/ModelApi.js
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1243,7 +1243,7 @@ export default class ModelApi {
1243
1243
1244
1244
/**
1245
1245
* Create a relation between a 2d model and a building
1246
-
* Create a relation between a 2d model and a building. The model type must be one of : ('DWG', 'DXF', 'PDF', 'JPEG', 'PNG') Required scopes: ifc:write, model:write
1246
+
* Create a relation between a 2d model and a building. The model type must be one of : ('DWG', 'DXF', 'PDF', 'JPEG', 'PNG', 'PHOTOSPHERE') Required scopes: ifc:write, model:write
1247
1247
* @param {String} buildingUuid
1248
1248
* @param {Number} cloudPk A unique integer value identifying this cloud.
1249
1249
* @param {Number} modelPk A unique integer value identifying this model.
@@ -1300,7 +1300,7 @@ export default class ModelApi {
1300
1300
1301
1301
/**
1302
1302
* Create a relation between a 2d model and a building
1303
-
* Create a relation between a 2d model and a building. The model type must be one of : ('DWG', 'DXF', 'PDF', 'JPEG', 'PNG') Required scopes: ifc:write, model:write
1303
+
* Create a relation between a 2d model and a building. The model type must be one of : ('DWG', 'DXF', 'PDF', 'JPEG', 'PNG', 'PHOTOSPHERE') Required scopes: ifc:write, model:write
1304
1304
* @param {String} buildingUuid
1305
1305
* @param {Number} cloudPk A unique integer value identifying this cloud.
1306
1306
* @param {Number} modelPk A unique integer value identifying this model.
@@ -2805,7 +2805,7 @@ export default class ModelApi {
2805
2805
2806
2806
/**
2807
2807
* Create a relation between a 2d model and a storey
2808
-
* Create a relation between a 2d model and a storey. The model type must be one of : ('DWG', 'DXF', 'PDF', 'JPEG', 'PNG') Required scopes: ifc:write, model:write
2808
+
* Create a relation between a 2d model and a storey. The model type must be one of : ('DWG', 'DXF', 'PDF', 'JPEG', 'PNG', 'PHOTOSPHERE') Required scopes: ifc:write, model:write
2809
2809
* @param {Number} cloudPk A unique integer value identifying this cloud.
2810
2810
* @param {Number} modelPk A unique integer value identifying this model.
2811
2811
* @param {Number} projectPk A unique integer value identifying this project.
@@ -2862,7 +2862,7 @@ export default class ModelApi {
2862
2862
2863
2863
/**
2864
2864
* Create a relation between a 2d model and a storey
2865
-
* Create a relation between a 2d model and a storey. The model type must be one of : ('DWG', 'DXF', 'PDF', 'JPEG', 'PNG') Required scopes: ifc:write, model:write
2865
+
* Create a relation between a 2d model and a storey. The model type must be one of : ('DWG', 'DXF', 'PDF', 'JPEG', 'PNG', 'PHOTOSPHERE') Required scopes: ifc:write, model:write
2866
2866
* @param {Number} cloudPk A unique integer value identifying this cloud.
2867
2867
* @param {Number} modelPk A unique integer value identifying this model.
2868
2868
* @param {Number} projectPk A unique integer value identifying this project.
0 commit comments