Skip to content

Commit 1908960

Browse files
committed
PATCH: bimdata_elevation response can be null
1 parent 3aac344 commit 1908960

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

package/src/apis/CollaborationApi.ts

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

16791679
/**
1680-
* Create a document. If the document is one of {\'OBJ\', \'GLTF\', \'IFC\', \'DXF\', \'DWG\', \'POINT_CLOUD\'}, a model will be created and attached to this document Required scopes: document:write
1680+
* Create a document. If the document is one of {\'GLTF\', \'DXF\', \'DWG\', \'IFC\', \'OBJ\', \'POINT_CLOUD\'}, a model will be created and attached to this document Required scopes: document:write
16811681
* Create a document
16821682
*/
16831683
async createDocumentRaw(requestParameters: CreateDocumentRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<Document>> {
@@ -1780,7 +1780,7 @@ export class CollaborationApi extends runtime.BaseAPI {
17801780
}
17811781

17821782
/**
1783-
* Create a document. If the document is one of {\'OBJ\', \'GLTF\', \'IFC\', \'DXF\', \'DWG\', \'POINT_CLOUD\'}, a model will be created and attached to this document Required scopes: document:write
1783+
* Create a document. If the document is one of {\'GLTF\', \'DXF\', \'DWG\', \'IFC\', \'OBJ\', \'POINT_CLOUD\'}, a model will be created and attached to this document Required scopes: document:write
17841784
* Create a document
17851785
*/
17861786
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/Building.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export interface Building {
4343
* @type {number}
4444
* @memberof Building
4545
*/
46-
readonly bimdata_elevation: number;
46+
readonly bimdata_elevation: number | null;
4747
/**
4848
*
4949
* @type {Array<ModelWithPositioningPlan>}

package/src/models/Storey.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export interface Storey {
4343
* @type {number}
4444
* @memberof Storey
4545
*/
46-
readonly bimdata_elevation: number;
46+
readonly bimdata_elevation: number | null;
4747
/**
4848
*
4949
* @type {Array<ModelWithPositioningPlan>}

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
2423
*
25-
* * `1` - denied
26-
* * `50` - read_only
27-
* * `100` - read_write
2824
* @type {number}
2925
* @memberof WriteFolderRequest
3026
*/
31-
default_permission?: WriteFolderRequestDefaultPermissionEnum;
27+
parent_id?: number | null;
3228
/**
3329
* Name of the folder
3430
* @type {string}
3531
* @memberof WriteFolderRequest
3632
*/
3733
name: string;
3834
/**
35+
* Permission for a Folder
3936
*
37+
* * `1` - denied
38+
* * `50` - read_only
39+
* * `100` - read_write
4040
* @type {number}
4141
* @memberof WriteFolderRequest
4242
*/
43-
parent_id?: number | null;
43+
default_permission?: WriteFolderRequestDefaultPermissionEnum;
4444
/**
4545
*
4646
* @type {Array<WriteFolderRequest>}
@@ -69,9 +69,9 @@ export function WriteFolderRequestFromJSONTyped(json: any, ignoreDiscriminator:
6969
}
7070
return {
7171

72-
'default_permission': !exists(json, 'default_permission') ? undefined : json['default_permission'],
73-
'name': json['name'],
7472
'parent_id': !exists(json, 'parent_id') ? undefined : json['parent_id'],
73+
'name': json['name'],
74+
'default_permission': !exists(json, 'default_permission') ? undefined : json['default_permission'],
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-
'default_permission': value.default_permission,
89-
'name': value.name,
9088
'parent_id': value.parent_id,
89+
'name': value.name,
90+
'default_permission': value.default_permission,
9191
'children': value.children === undefined ? undefined : (value.children === null ? null : (value.children as Array<any>).map(WriteFolderRequestToJSON)),
9292
};
9393
}

0 commit comments

Comments
 (0)