Skip to content

Commit 7410ece

Browse files
committed
PATCH: Fix mask_2d in model, can be null. (#840)
1 parent 7189b87 commit 7410ece

15 files changed

+100
-116
lines changed

docs/CollaborationApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,7 @@ Name | Type | Description | Notes
960960
961961
Create a document
962962

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

965965
### Example
966966

docs/Model.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Name | Type | Description | Notes
3535
**parentId** | **Number** | The first page of the pdf | [readonly]
3636
**pageNumber** | **Number** | The page number of the related pdf | [readonly]
3737
**layoutName** | **String** | The name of the DWG layout (only set when type==DWG) | [optional]
38-
**mask2d** | [**Mask2D**](Mask2D.md) | |
38+
**mask2d** | [**Mask2D**](Mask2D.md) | | [readonly]
3939
**children** | [**[ModelSerializerWithoutChildren]**](ModelSerializerWithoutChildren.md) | Contains additional pages of a pdf | [readonly]
4040

4141

docs/ModelSerializerWithoutChildren.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Name | Type | Description | Notes
3535
**parentId** | **Number** | The first page of the pdf | [readonly]
3636
**pageNumber** | **Number** | The page number of the related pdf | [readonly]
3737
**layoutName** | **String** | The name of the DWG layout (only set when type==DWG) | [optional]
38-
**mask2d** | [**Mask2D**](Mask2D.md) | |
38+
**mask2d** | [**Mask2D**](Mask2D.md) | | [readonly]
3939

4040

4141

docs/PatchedModelRequest.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ Name | Type | Description | Notes
1313
**northVector** | **[[Number]]** | This field is only for information. Updating it won't impact the export. | [optional]
1414
**recommanded2dAngle** | **Number** | This is the angle in clockwise degree to apply on the 2D to optimise the horizontality of objects. This field is only for information. Updating it won't impact the export. | [optional]
1515
**layoutName** | **String** | The name of the DWG layout (only set when type==DWG) | [optional]
16-
**mask2d** | [**Mask2DRequest**](Mask2DRequest.md) | | [optional]
1716

1817

1918

docs/WriteFolder.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7+
**defaultPermission** | **Number** | Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write | [optional]
78
**nature** | **String** | Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files | [readonly]
8-
**type** | **String** | DEPRECATED: Use 'nature' instead. Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files | [readonly]
9-
**createdAt** | **Date** | Creation date | [readonly]
10-
**parentId** | **Number** | | [optional]
9+
**groupsPermissions** | [**[GroupFolderRead]**](GroupFolderRead.md) | List of group permissions | [readonly]
1110
**createdBy** | [**ShortUser**](ShortUser.md) | | [readonly]
11+
**type** | **String** | DEPRECATED: Use 'nature' instead. Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files | [readonly]
12+
**userPermission** | **Number** | Aggregate of group user permissions and folder default permission | [readonly]
1213
**updatedAt** | **Date** | Date of the last update | [readonly]
1314
**id** | **Number** | | [readonly]
14-
**groupsPermissions** | [**[GroupFolderRead]**](GroupFolderRead.md) | List of group permissions | [readonly]
15-
**defaultPermission** | **Number** | Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write | [optional]
1615
**name** | **String** | Name of the folder |
17-
**userPermission** | **Number** | Aggregate of group user permissions and folder default permission | [readonly]
16+
**createdAt** | **Date** | Creation date | [readonly]
17+
**parentId** | **Number** | | [optional]
1818
**children** | [**[WriteFolder]**](WriteFolder.md) | | [optional]
1919

2020

docs/WriteFolderRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**parentId** | **Number** | | [optional]
87
**defaultPermission** | **Number** | Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write | [optional]
98
**name** | **String** | Name of the folder |
9+
**parentId** | **Number** | | [optional]
1010
**children** | [**[WriteFolder]**](WriteFolder.md) | | [optional]
1111

1212

src/api/CollaborationApi.js

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

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

935935
/**
936936
* Create a document
937-
* Create a document. If the document is one of {'POINT_CLOUD', 'IFC', 'GLTF', 'DWG', 'OBJ', 'DXF'}, a model will be created and attached to this document Required scopes: document:write
937+
* Create a document. If the document is one of {'DXF', 'OBJ', 'IFC', 'DWG', 'GLTF', 'POINT_CLOUD'}, a model will be created and attached to this document Required scopes: document:write
938938
* @param {Number} cloudPk A unique integer value identifying this cloud.
939939
* @param {Number} projectPk A unique integer value identifying this project.
940940
* @param {String} name Shown name of the file

src/model/Model.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ class Model {
194194
obj['layout_name'] = ApiClient.convertToType(data['layout_name'], 'String');
195195
}
196196
if (data.hasOwnProperty('mask_2d')) {
197-
obj['mask_2d'] = Mask2D.constructFromObject(data['mask_2d']);
197+
obj['mask_2d'] = ApiClient.convertToType(data['mask_2d'], Mask2D);
198198
}
199199
if (data.hasOwnProperty('children')) {
200200
obj['children'] = ApiClient.convertToType(data['children'], [ModelSerializerWithoutChildren]);

src/model/ModelSerializerWithoutChildren.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ class ModelSerializerWithoutChildren {
191191
obj['layout_name'] = ApiClient.convertToType(data['layout_name'], 'String');
192192
}
193193
if (data.hasOwnProperty('mask_2d')) {
194-
obj['mask_2d'] = Mask2D.constructFromObject(data['mask_2d']);
194+
obj['mask_2d'] = ApiClient.convertToType(data['mask_2d'], Mask2D);
195195
}
196196
}
197197
return obj;

src/model/PatchedModelRequest.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
*/
1313

1414
import ApiClient from '../ApiClient';
15-
import Mask2DRequest from './Mask2DRequest';
1615

1716
/**
1817
* The PatchedModelRequest model module.
@@ -75,9 +74,6 @@ class PatchedModelRequest {
7574
if (data.hasOwnProperty('layout_name')) {
7675
obj['layout_name'] = ApiClient.convertToType(data['layout_name'], 'String');
7776
}
78-
if (data.hasOwnProperty('mask_2d')) {
79-
obj['mask_2d'] = Mask2DRequest.constructFromObject(data['mask_2d']);
80-
}
8177
}
8278
return obj;
8379
}
@@ -137,11 +133,6 @@ PatchedModelRequest.prototype['recommanded_2d_angle'] = undefined;
137133
*/
138134
PatchedModelRequest.prototype['layout_name'] = undefined;
139135

140-
/**
141-
* @member {module:model/Mask2DRequest} mask_2d
142-
*/
143-
PatchedModelRequest.prototype['mask_2d'] = undefined;
144-
145136

146137

147138

0 commit comments

Comments
 (0)