Skip to content

Commit

Permalink
PATCH: fix bimdata_elevation open api field type
Browse files Browse the repository at this point in the history
  • Loading branch information
Bimdata-io committed Sep 9, 2024
1 parent b85a4c3 commit 3aac344
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 {\'POINT_CLOUD\', \'DXF\', \'GLTF\', \'DWG\', \'IFC\', \'OBJ\'}, a model will be created and attached to this document Required scopes: document:write
* 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
*/
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 {\'POINT_CLOUD\', \'DXF\', \'GLTF\', \'DWG\', \'IFC\', \'OBJ\'}, a model will be created and attached to this document Required scopes: document:write
* 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
*/
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
4 changes: 2 additions & 2 deletions package/src/models/Building.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ export interface Building {
readonly name: string;
/**
* Elevation computed by BIMData on storey's objects geometries.
* @type {string}
* @type {number}
* @memberof Building
*/
readonly bimdata_elevation: string;
readonly bimdata_elevation: number;
/**
*
* @type {Array<ModelWithPositioningPlan>}
Expand Down
4 changes: 2 additions & 2 deletions package/src/models/Storey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ export interface Storey {
readonly name: string;
/**
* Elevation computed by BIMData on storey's objects geometries.
* @type {string}
* @type {number}
* @memberof Storey
*/
readonly bimdata_elevation: string;
readonly bimdata_elevation: number;
/**
*
* @type {Array<ModelWithPositioningPlan>}
Expand Down
16 changes: 8 additions & 8 deletions package/src/models/WriteFolderRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,18 @@ export interface WriteFolderRequest {
* @memberof WriteFolderRequest
*/
default_permission?: WriteFolderRequestDefaultPermissionEnum;
/**
*
* @type {number}
* @memberof WriteFolderRequest
*/
parent_id?: number | null;
/**
* Name of the folder
* @type {string}
* @memberof WriteFolderRequest
*/
name: string;
/**
*
* @type {number}
* @memberof WriteFolderRequest
*/
parent_id?: number | null;
/**
*
* @type {Array<WriteFolderRequest>}
Expand Down Expand Up @@ -70,8 +70,8 @@ export function WriteFolderRequestFromJSONTyped(json: any, ignoreDiscriminator:
return {

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

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

0 comments on commit 3aac344

Please sign in to comment.