Skip to content

Commit a547913

Browse files
committed
MINOR: Add missing attachment in visa validation serializer. (#726)
1 parent 11c3e4c commit a547913

14 files changed

+63
-18
lines changed

docs/CollaborationApi.md

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

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

966966
### Example
967967

docs/PatchedVisaValidationRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**validatorId** | **Number** | This is the userproject_id | [optional]
8+
**attachment** | **File** | | [optional]
89

910

docs/VisaValidation.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
1111
**hasCommented** | **Boolean** | Return True if validator has commented the visa | [readonly]
1212
**createdAt** | **Date** | | [readonly]
1313
**updatedAt** | **Date** | | [readonly]
14+
**attachment** | **String** | | [optional]
1415

1516

1617

docs/VisaValidationRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**validatorId** | **Number** | This is the userproject_id |
8+
**attachment** | **File** | | [optional]
89

910

docs/WriteFolderRequest.md

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

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**parentId** | **Number** | | [optional]
8-
**name** | **String** | Name of the folder |
97
**defaultPermission** | **Number** | Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write | [optional]
8+
**name** | **String** | Name of the folder |
9+
**parentId** | **Number** | | [optional]
1010
**children** | [**[WriteFolderRequest]**](WriteFolderRequest.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 {'GLTF', 'DXF', 'IFC', 'POINT_CLOUD', 'DWG', 'OBJ'}, 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', 'DWG', 'POINT_CLOUD', 'DXF', 'IFC', 'GLTF'}, 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
@@ -932,7 +932,7 @@ export default class CollaborationApi {
932932

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

src/model/PatchedVisaValidationRequest.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ class PatchedVisaValidationRequest {
5050
if (data.hasOwnProperty('validator_id')) {
5151
obj['validator_id'] = ApiClient.convertToType(data['validator_id'], 'Number');
5252
}
53+
if (data.hasOwnProperty('attachment')) {
54+
obj['attachment'] = ApiClient.convertToType(data['attachment'], File);
55+
}
5356
}
5457
return obj;
5558
}
@@ -63,6 +66,11 @@ class PatchedVisaValidationRequest {
6366
*/
6467
PatchedVisaValidationRequest.prototype['validator_id'] = undefined;
6568

69+
/**
70+
* @member {File} attachment
71+
*/
72+
PatchedVisaValidationRequest.prototype['attachment'] = undefined;
73+
6674

6775

6876

src/model/VisaValidation.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ class VisaValidation {
8383
if (data.hasOwnProperty('updated_at')) {
8484
obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'Date');
8585
}
86+
if (data.hasOwnProperty('attachment')) {
87+
obj['attachment'] = ApiClient.convertToType(data['attachment'], 'String');
88+
}
8689
}
8790
return obj;
8891
}
@@ -127,6 +130,11 @@ VisaValidation.prototype['created_at'] = undefined;
127130
*/
128131
VisaValidation.prototype['updated_at'] = undefined;
129132

133+
/**
134+
* @member {String} attachment
135+
*/
136+
VisaValidation.prototype['attachment'] = undefined;
137+
130138

131139

132140

src/model/VisaValidationRequest.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ class VisaValidationRequest {
5252
if (data.hasOwnProperty('validator_id')) {
5353
obj['validator_id'] = ApiClient.convertToType(data['validator_id'], 'Number');
5454
}
55+
if (data.hasOwnProperty('attachment')) {
56+
obj['attachment'] = ApiClient.convertToType(data['attachment'], File);
57+
}
5558
}
5659
return obj;
5760
}
@@ -65,6 +68,11 @@ class VisaValidationRequest {
6568
*/
6669
VisaValidationRequest.prototype['validator_id'] = undefined;
6770

71+
/**
72+
* @member {File} attachment
73+
*/
74+
VisaValidationRequest.prototype['attachment'] = undefined;
75+
6876

6977

7078

src/model/WriteFolderRequest.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ class WriteFolderRequest {
4949
if (data) {
5050
obj = obj || new WriteFolderRequest();
5151

52-
if (data.hasOwnProperty('parent_id')) {
53-
obj['parent_id'] = ApiClient.convertToType(data['parent_id'], 'Number');
52+
if (data.hasOwnProperty('default_permission')) {
53+
obj['default_permission'] = ApiClient.convertToType(data['default_permission'], 'Number');
5454
}
5555
if (data.hasOwnProperty('name')) {
5656
obj['name'] = ApiClient.convertToType(data['name'], 'String');
5757
}
58-
if (data.hasOwnProperty('default_permission')) {
59-
obj['default_permission'] = ApiClient.convertToType(data['default_permission'], 'Number');
58+
if (data.hasOwnProperty('parent_id')) {
59+
obj['parent_id'] = ApiClient.convertToType(data['parent_id'], 'Number');
6060
}
6161
if (data.hasOwnProperty('children')) {
6262
obj['children'] = ApiClient.convertToType(data['children'], [WriteFolderRequest]);
@@ -69,9 +69,10 @@ class WriteFolderRequest {
6969
}
7070

7171
/**
72-
* @member {Number} parent_id
72+
* Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write
73+
* @member {module:model/WriteFolderRequest.DefaultPermissionEnum} default_permission
7374
*/
74-
WriteFolderRequest.prototype['parent_id'] = undefined;
75+
WriteFolderRequest.prototype['default_permission'] = undefined;
7576

7677
/**
7778
* Name of the folder
@@ -80,10 +81,9 @@ WriteFolderRequest.prototype['parent_id'] = undefined;
8081
WriteFolderRequest.prototype['name'] = undefined;
8182

8283
/**
83-
* Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write
84-
* @member {module:model/WriteFolderRequest.DefaultPermissionEnum} default_permission
84+
* @member {Number} parent_id
8585
*/
86-
WriteFolderRequest.prototype['default_permission'] = undefined;
86+
WriteFolderRequest.prototype['parent_id'] = undefined;
8787

8888
/**
8989
* @member {Array.<module:model/WriteFolderRequest>} children

0 commit comments

Comments
 (0)