Skip to content

Commit

Permalink
MINOR: Bimdata elevation (#770)
Browse files Browse the repository at this point in the history
* add BIMData Elevation to storey

* add update storey elevation

* fix typo in comment
  • Loading branch information
Bimdata-io committed Sep 9, 2024
1 parent 166b7d7 commit b85a4c3
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 11 deletions.
1 change: 0 additions & 1 deletion package/.openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.gitignore
package.json
src/apis/BcfApi.ts
src/apis/CollaborationApi.ts
src/apis/ModelApi.ts
Expand Down
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\', \'GLTF\', \'DWG\', \'IFC\', \'OBJ\', \'DXF\'}, a model will be created and attached to this document Required scopes: document:write
* 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
*/
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\', \'GLTF\', \'DWG\', \'IFC\', \'OBJ\', \'DXF\'}, a model will be created and attached to this document Required scopes: document:write
* 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
*/
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
7 changes: 7 additions & 0 deletions package/src/models/Building.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ export interface Building {
* @memberof Building
*/
readonly name: string;
/**
* Elevation computed by BIMData on storey's objects geometries.
* @type {string}
* @memberof Building
*/
readonly bimdata_elevation: string;
/**
*
* @type {Array<ModelWithPositioningPlan>}
Expand All @@ -64,6 +70,7 @@ export function BuildingFromJSONTyped(json: any, ignoreDiscriminator: boolean):

'uuid': json['uuid'],
'name': json['name'],
'bimdata_elevation': json['bimdata_elevation'],
'plans': ((json['plans'] as Array<any>).map(ModelWithPositioningPlanFromJSON)),
'plans_unreachable_count': json['plans_unreachable_count'],
};
Expand Down
8 changes: 8 additions & 0 deletions package/src/models/PatchedStoreyBuildingRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ export interface PatchedStoreyBuildingRequest {
* @memberof PatchedStoreyBuildingRequest
*/
name?: string;
/**
*
* @type {number}
* @memberof PatchedStoreyBuildingRequest
*/
bimdata_elevation?: number;
}

export function PatchedStoreyBuildingRequestFromJSON(json: any): PatchedStoreyBuildingRequest {
Expand All @@ -38,6 +44,7 @@ export function PatchedStoreyBuildingRequestFromJSONTyped(json: any, ignoreDiscr
return {

'name': !exists(json, 'name') ? undefined : json['name'],
'bimdata_elevation': !exists(json, 'bimdata_elevation') ? undefined : json['bimdata_elevation'],
};
}

Expand All @@ -51,6 +58,7 @@ export function PatchedStoreyBuildingRequestToJSON(value?: PatchedStoreyBuilding
return {

'name': value.name,
'bimdata_elevation': value.bimdata_elevation,
};
}

7 changes: 7 additions & 0 deletions package/src/models/Storey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ export interface Storey {
* @memberof Storey
*/
readonly name: string;
/**
* Elevation computed by BIMData on storey's objects geometries.
* @type {string}
* @memberof Storey
*/
readonly bimdata_elevation: string;
/**
*
* @type {Array<ModelWithPositioningPlan>}
Expand All @@ -64,6 +70,7 @@ export function StoreyFromJSONTyped(json: any, ignoreDiscriminator: boolean): St

'uuid': json['uuid'],
'name': json['name'],
'bimdata_elevation': json['bimdata_elevation'],
'plans': ((json['plans'] as Array<any>).map(ModelWithPositioningPlanFromJSON)),
'plans_unreachable_count': json['plans_unreachable_count'],
};
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 @@ -19,12 +19,6 @@ import { exists, mapValues } from '../runtime';
* @interface WriteFolderRequest
*/
export interface WriteFolderRequest {
/**
* Name of the folder
* @type {string}
* @memberof WriteFolderRequest
*/
name: string;
/**
* Permission for a Folder
*
Expand All @@ -41,6 +35,12 @@ export interface WriteFolderRequest {
* @memberof WriteFolderRequest
*/
parent_id?: number | null;
/**
* Name of the folder
* @type {string}
* @memberof WriteFolderRequest
*/
name: string;
/**
*
* @type {Array<WriteFolderRequest>}
Expand Down Expand Up @@ -69,9 +69,9 @@ export function WriteFolderRequestFromJSONTyped(json: any, ignoreDiscriminator:
}
return {

'name': json['name'],
'default_permission': !exists(json, 'default_permission') ? undefined : json['default_permission'],
'parent_id': !exists(json, 'parent_id') ? undefined : json['parent_id'],
'name': json['name'],
'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 {

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

0 comments on commit b85a4c3

Please sign in to comment.