Skip to content

Commit ddbca3b

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

File tree

5 files changed

+36
-12
lines changed

5 files changed

+36
-12
lines changed

package/src/apis/CollaborationApi.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1656,7 +1656,7 @@ export class CollaborationApi extends runtime.BaseAPI {
16561656
}
16571657

16581658
/**
1659-
* 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
1659+
* 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
16601660
* Create a document
16611661
*/
16621662
async createDocumentRaw(requestParameters: CreateDocumentRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<Document>> {
@@ -1759,7 +1759,7 @@ export class CollaborationApi extends runtime.BaseAPI {
17591759
}
17601760

17611761
/**
1762-
* 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
1762+
* 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
17631763
* Create a document
17641764
*/
17651765
async createDocument(cloud_pk: number, project_pk: number, name: string, file: Blob, parent_id?: number | null, file_name?: string, description?: string | null, model_source?: CreateDocumentModelSourceEnum, ifc_source?: CreateDocumentIfcSourceEnum, successor_of?: number, initOverrides?: RequestInit): Promise<Document> {

package/src/models/PatchedVisaValidationRequest.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ export interface PatchedVisaValidationRequest {
2525
* @memberof PatchedVisaValidationRequest
2626
*/
2727
validator_id?: number;
28+
/**
29+
*
30+
* @type {Blob}
31+
* @memberof PatchedVisaValidationRequest
32+
*/
33+
attachment?: Blob | null;
2834
}
2935

3036
export function PatchedVisaValidationRequestFromJSON(json: any): PatchedVisaValidationRequest {
@@ -38,6 +44,7 @@ export function PatchedVisaValidationRequestFromJSONTyped(json: any, ignoreDiscr
3844
return {
3945

4046
'validator_id': !exists(json, 'validator_id') ? undefined : json['validator_id'],
47+
'attachment': !exists(json, 'attachment') ? undefined : json['attachment'],
4148
};
4249
}
4350

@@ -51,6 +58,7 @@ export function PatchedVisaValidationRequestToJSON(value?: PatchedVisaValidation
5158
return {
5259

5360
'validator_id': value.validator_id,
61+
'attachment': value.attachment,
5462
};
5563
}
5664

package/src/models/VisaValidation.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,12 @@ export interface VisaValidation {
7070
* @memberof VisaValidation
7171
*/
7272
readonly updated_at: Date;
73+
/**
74+
*
75+
* @type {string}
76+
* @memberof VisaValidation
77+
*/
78+
attachment?: string | null;
7379
}
7480

7581
/**
@@ -99,6 +105,7 @@ export function VisaValidationFromJSONTyped(json: any, ignoreDiscriminator: bool
99105
'has_commented': json['has_commented'],
100106
'created_at': (new Date(json['created_at'])),
101107
'updated_at': (new Date(json['updated_at'])),
108+
'attachment': !exists(json, 'attachment') ? undefined : json['attachment'],
102109
};
103110
}
104111

@@ -111,6 +118,7 @@ export function VisaValidationToJSON(value?: VisaValidation | null): any {
111118
}
112119
return {
113120

121+
'attachment': value.attachment,
114122
};
115123
}
116124

package/src/models/VisaValidationRequest.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ export interface VisaValidationRequest {
2525
* @memberof VisaValidationRequest
2626
*/
2727
validator_id: number;
28+
/**
29+
*
30+
* @type {Blob}
31+
* @memberof VisaValidationRequest
32+
*/
33+
attachment?: Blob | null;
2834
}
2935

3036
export function VisaValidationRequestFromJSON(json: any): VisaValidationRequest {
@@ -38,6 +44,7 @@ export function VisaValidationRequestFromJSONTyped(json: any, ignoreDiscriminato
3844
return {
3945

4046
'validator_id': json['validator_id'],
47+
'attachment': !exists(json, 'attachment') ? undefined : json['attachment'],
4148
};
4249
}
4350

@@ -51,6 +58,7 @@ export function VisaValidationRequestToJSON(value?: VisaValidationRequest | null
5158
return {
5259

5360
'validator_id': value.validator_id,
61+
'attachment': value.attachment,
5462
};
5563
}
5664

package/src/models/WriteFolderRequest.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,27 +20,27 @@ import { exists, mapValues } from '../runtime';
2020
*/
2121
export interface WriteFolderRequest {
2222
/**
23+
* Permission for a Folder
2324
*
25+
* * `1` - denied
26+
* * `50` - read_only
27+
* * `100` - read_write
2428
* @type {number}
2529
* @memberof WriteFolderRequest
2630
*/
27-
parent_id?: number | null;
31+
default_permission?: WriteFolderRequestDefaultPermissionEnum;
2832
/**
2933
* Name of the folder
3034
* @type {string}
3135
* @memberof WriteFolderRequest
3236
*/
3337
name: string;
3438
/**
35-
* Permission for a Folder
3639
*
37-
* * `1` - denied
38-
* * `50` - read_only
39-
* * `100` - read_write
4040
* @type {number}
4141
* @memberof WriteFolderRequest
4242
*/
43-
default_permission?: WriteFolderRequestDefaultPermissionEnum;
43+
parent_id?: number | null;
4444
/**
4545
*
4646
* @type {Array<WriteFolderRequest>}
@@ -69,9 +69,9 @@ export function WriteFolderRequestFromJSONTyped(json: any, ignoreDiscriminator:
6969
}
7070
return {
7171

72-
'parent_id': !exists(json, 'parent_id') ? undefined : json['parent_id'],
73-
'name': json['name'],
7472
'default_permission': !exists(json, 'default_permission') ? undefined : json['default_permission'],
73+
'name': json['name'],
74+
'parent_id': !exists(json, 'parent_id') ? undefined : json['parent_id'],
7575
'children': !exists(json, 'children') ? undefined : (json['children'] === null ? null : (json['children'] as Array<any>).map(WriteFolderRequestFromJSON)),
7676
};
7777
}
@@ -85,9 +85,9 @@ export function WriteFolderRequestToJSON(value?: WriteFolderRequest | null): any
8585
}
8686
return {
8787

88-
'parent_id': value.parent_id,
89-
'name': value.name,
9088
'default_permission': value.default_permission,
89+
'name': value.name,
90+
'parent_id': value.parent_id,
9191
'children': value.children === undefined ? undefined : (value.children === null ? null : (value.children as Array<any>).map(WriteFolderRequestToJSON)),
9292
};
9393
}

0 commit comments

Comments
 (0)