Skip to content

Commit

Permalink
PATCH: bimdata_elevation response can be null
Browse files Browse the repository at this point in the history
  • Loading branch information
Bimdata-io committed Sep 9, 2024
1 parent 3aac344 commit 1908960
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions package/src/apis/CollaborationApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1677,7 +1677,7 @@ export class CollaborationApi extends runtime.BaseAPI {
}

/**
* 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
* 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
* Create a document
*/
async createDocumentRaw(requestParameters: CreateDocumentRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<Document>> {
Expand Down Expand Up @@ -1780,7 +1780,7 @@ export class CollaborationApi extends runtime.BaseAPI {
}

/**
* 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
* 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
* Create a document
*/
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> {
Expand Down
2 changes: 1 addition & 1 deletion package/src/models/Building.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export interface Building {
* @type {number}
* @memberof Building
*/
readonly bimdata_elevation: number;
readonly bimdata_elevation: number | null;
/**
*
* @type {Array<ModelWithPositioningPlan>}
Expand Down
2 changes: 1 addition & 1 deletion package/src/models/Storey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export interface Storey {
* @type {number}
* @memberof Storey
*/
readonly bimdata_elevation: number;
readonly bimdata_elevation: number | null;
/**
*
* @type {Array<ModelWithPositioningPlan>}
Expand Down
20 changes: 10 additions & 10 deletions package/src/models/WriteFolderRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,27 +20,27 @@ import { exists, mapValues } from '../runtime';
*/
export interface WriteFolderRequest {
/**
* Permission for a Folder
*
* * `1` - denied
* * `50` - read_only
* * `100` - read_write
* @type {number}
* @memberof WriteFolderRequest
*/
default_permission?: WriteFolderRequestDefaultPermissionEnum;
parent_id?: number | null;
/**
* Name of the folder
* @type {string}
* @memberof WriteFolderRequest
*/
name: string;
/**
* Permission for a Folder
*
* * `1` - denied
* * `50` - read_only
* * `100` - read_write
* @type {number}
* @memberof WriteFolderRequest
*/
parent_id?: number | null;
default_permission?: WriteFolderRequestDefaultPermissionEnum;
/**
*
* @type {Array<WriteFolderRequest>}
Expand Down Expand Up @@ -69,9 +69,9 @@ export function WriteFolderRequestFromJSONTyped(json: any, ignoreDiscriminator:
}
return {

'default_permission': !exists(json, 'default_permission') ? undefined : json['default_permission'],
'name': json['name'],
'parent_id': !exists(json, 'parent_id') ? undefined : json['parent_id'],
'name': json['name'],
'default_permission': !exists(json, 'default_permission') ? undefined : json['default_permission'],
'children': !exists(json, 'children') ? undefined : (json['children'] === null ? null : (json['children'] as Array<any>).map(WriteFolderRequestFromJSON)),
};
}
Expand All @@ -85,9 +85,9 @@ export function WriteFolderRequestToJSON(value?: WriteFolderRequest | null): any
}
return {

'default_permission': value.default_permission,
'name': value.name,
'parent_id': value.parent_id,
'name': value.name,
'default_permission': value.default_permission,
'children': value.children === undefined ? undefined : (value.children === null ? null : (value.children as Array<any>).map(WriteFolderRequestToJSON)),
};
}
Expand Down

0 comments on commit 1908960

Please sign in to comment.