Skip to content

Commit b85a4c3

Browse files
committed
MINOR: Bimdata elevation (#770)
* add BIMData Elevation to storey * add update storey elevation * fix typo in comment
1 parent 166b7d7 commit b85a4c3

File tree

6 files changed

+32
-11
lines changed

6 files changed

+32
-11
lines changed

package/.openapi-generator/FILES

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
.gitignore
2-
package.json
32
src/apis/BcfApi.ts
43
src/apis/CollaborationApi.ts
54
src/apis/ModelApi.ts

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 {\'POINT_CLOUD\', \'GLTF\', \'DWG\', \'IFC\', \'OBJ\', \'DXF\'}, a model will be created and attached to this document Required scopes: document:write
1680+
* 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
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 {\'POINT_CLOUD\', \'GLTF\', \'DWG\', \'IFC\', \'OBJ\', \'DXF\'}, a model will be created and attached to this document Required scopes: document:write
1783+
* 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
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: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ export interface Building {
3838
* @memberof Building
3939
*/
4040
readonly name: string;
41+
/**
42+
* Elevation computed by BIMData on storey's objects geometries.
43+
* @type {string}
44+
* @memberof Building
45+
*/
46+
readonly bimdata_elevation: string;
4147
/**
4248
*
4349
* @type {Array<ModelWithPositioningPlan>}
@@ -64,6 +70,7 @@ export function BuildingFromJSONTyped(json: any, ignoreDiscriminator: boolean):
6470

6571
'uuid': json['uuid'],
6672
'name': json['name'],
73+
'bimdata_elevation': json['bimdata_elevation'],
6774
'plans': ((json['plans'] as Array<any>).map(ModelWithPositioningPlanFromJSON)),
6875
'plans_unreachable_count': json['plans_unreachable_count'],
6976
};

package/src/models/PatchedStoreyBuildingRequest.ts

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

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

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

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

5360
'name': value.name,
61+
'bimdata_elevation': value.bimdata_elevation,
5462
};
5563
}
5664

package/src/models/Storey.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ export interface Storey {
3838
* @memberof Storey
3939
*/
4040
readonly name: string;
41+
/**
42+
* Elevation computed by BIMData on storey's objects geometries.
43+
* @type {string}
44+
* @memberof Storey
45+
*/
46+
readonly bimdata_elevation: string;
4147
/**
4248
*
4349
* @type {Array<ModelWithPositioningPlan>}
@@ -64,6 +70,7 @@ export function StoreyFromJSONTyped(json: any, ignoreDiscriminator: boolean): St
6470

6571
'uuid': json['uuid'],
6672
'name': json['name'],
73+
'bimdata_elevation': json['bimdata_elevation'],
6774
'plans': ((json['plans'] as Array<any>).map(ModelWithPositioningPlanFromJSON)),
6875
'plans_unreachable_count': json['plans_unreachable_count'],
6976
};

package/src/models/WriteFolderRequest.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,6 @@ import { exists, mapValues } from '../runtime';
1919
* @interface WriteFolderRequest
2020
*/
2121
export interface WriteFolderRequest {
22-
/**
23-
* Name of the folder
24-
* @type {string}
25-
* @memberof WriteFolderRequest
26-
*/
27-
name: string;
2822
/**
2923
* Permission for a Folder
3024
*
@@ -41,6 +35,12 @@ export interface WriteFolderRequest {
4135
* @memberof WriteFolderRequest
4236
*/
4337
parent_id?: number | null;
38+
/**
39+
* Name of the folder
40+
* @type {string}
41+
* @memberof WriteFolderRequest
42+
*/
43+
name: string;
4444
/**
4545
*
4646
* @type {Array<WriteFolderRequest>}
@@ -69,9 +69,9 @@ export function WriteFolderRequestFromJSONTyped(json: any, ignoreDiscriminator:
6969
}
7070
return {
7171

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

0 commit comments

Comments
 (0)