Skip to content

Commit

Permalink
MINOR: Add bcf bimdata_viewer_layout (#759)
Browse files Browse the repository at this point in the history
* Add bcf bimdata_layout

* Rename into bimdata_viewer_layout

* Fix test...
  • Loading branch information
Bimdata-io committed Jul 4, 2024
1 parent 8d772e3 commit 57af22c
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package/src/apis/CollaborationApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1674,7 +1674,7 @@ export class CollaborationApi extends runtime.BaseAPI {
}

/**
* Create a document. If the document is one of {\'POINT_CLOUD\', \'DXF\', \'DWG\', \'GLTF\', \'OBJ\', \'IFC\'}, a model will be created and attached to this document Required scopes: document:write
* Create a document. If the document is one of {\'OBJ\', \'IFC\', \'DXF\', \'GLTF\', \'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 @@ -1777,7 +1777,7 @@ export class CollaborationApi extends runtime.BaseAPI {
}

/**
* Create a document. If the document is one of {\'POINT_CLOUD\', \'DXF\', \'DWG\', \'GLTF\', \'OBJ\', \'IFC\'}, a model will be created and attached to this document Required scopes: document:write
* Create a document. If the document is one of {\'OBJ\', \'IFC\', \'DXF\', \'GLTF\', \'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
8 changes: 8 additions & 0 deletions package/src/models/FullTopic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,12 @@ export interface FullTopic {
* @memberof FullTopic
*/
project: number;
/**
* Non standard field. JSON describing bimdataViewerLayout.
* @type {{ [key: string]: any; }}
* @memberof FullTopic
*/
bimdata_viewer_layout?: { [key: string]: any; } | null;
}

export function FullTopicFromJSON(json: any): FullTopic {
Expand Down Expand Up @@ -203,6 +209,7 @@ export function FullTopicFromJSONTyped(json: any, ignoreDiscriminator: boolean):
'comments': !exists(json, 'comments') ? undefined : ((json['comments'] as Array<any>).map(CommentFromJSON)),
'viewpoints': !exists(json, 'viewpoints') ? undefined : ((json['viewpoints'] as Array<any>).map(ViewpointFromJSON)),
'project': json['project'],
'bimdata_viewer_layout': !exists(json, 'bimdata_viewer_layout') ? undefined : json['bimdata_viewer_layout'],
};
}

Expand Down Expand Up @@ -236,6 +243,7 @@ export function FullTopicToJSON(value?: FullTopic | null): any {
'comments': value.comments === undefined ? undefined : ((value.comments as Array<any>).map(CommentToJSON)),
'viewpoints': value.viewpoints === undefined ? undefined : ((value.viewpoints as Array<any>).map(ViewpointToJSON)),
'project': value.project,
'bimdata_viewer_layout': value.bimdata_viewer_layout,
};
}

8 changes: 8 additions & 0 deletions package/src/models/FullTopicRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,12 @@ export interface FullTopicRequest {
* @memberof FullTopicRequest
*/
project: number;
/**
* Non standard field. JSON describing bimdataViewerLayout.
* @type {{ [key: string]: any; }}
* @memberof FullTopicRequest
*/
bimdata_viewer_layout?: { [key: string]: any; } | null;
}

export function FullTopicRequestFromJSON(json: any): FullTopicRequest {
Expand Down Expand Up @@ -196,6 +202,7 @@ export function FullTopicRequestFromJSONTyped(json: any, ignoreDiscriminator: bo
'comments': !exists(json, 'comments') ? undefined : ((json['comments'] as Array<any>).map(CommentRequestFromJSON)),
'viewpoints': !exists(json, 'viewpoints') ? undefined : ((json['viewpoints'] as Array<any>).map(ViewpointRequestFromJSON)),
'project': json['project'],
'bimdata_viewer_layout': !exists(json, 'bimdata_viewer_layout') ? undefined : json['bimdata_viewer_layout'],
};
}

Expand Down Expand Up @@ -229,6 +236,7 @@ export function FullTopicRequestToJSON(value?: FullTopicRequest | null): any {
'comments': value.comments === undefined ? undefined : ((value.comments as Array<any>).map(CommentRequestToJSON)),
'viewpoints': value.viewpoints === undefined ? undefined : ((value.viewpoints as Array<any>).map(ViewpointRequestToJSON)),
'project': value.project,
'bimdata_viewer_layout': value.bimdata_viewer_layout,
};
}

8 changes: 8 additions & 0 deletions package/src/models/PatchedFullTopicRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,12 @@ export interface PatchedFullTopicRequest {
* @memberof PatchedFullTopicRequest
*/
project?: number;
/**
* Non standard field. JSON describing bimdataViewerLayout.
* @type {{ [key: string]: any; }}
* @memberof PatchedFullTopicRequest
*/
bimdata_viewer_layout?: { [key: string]: any; } | null;
}

export function PatchedFullTopicRequestFromJSON(json: any): PatchedFullTopicRequest {
Expand Down Expand Up @@ -196,6 +202,7 @@ export function PatchedFullTopicRequestFromJSONTyped(json: any, ignoreDiscrimina
'comments': !exists(json, 'comments') ? undefined : ((json['comments'] as Array<any>).map(CommentRequestFromJSON)),
'viewpoints': !exists(json, 'viewpoints') ? undefined : ((json['viewpoints'] as Array<any>).map(ViewpointRequestFromJSON)),
'project': !exists(json, 'project') ? undefined : json['project'],
'bimdata_viewer_layout': !exists(json, 'bimdata_viewer_layout') ? undefined : json['bimdata_viewer_layout'],
};
}

Expand Down Expand Up @@ -229,6 +236,7 @@ export function PatchedFullTopicRequestToJSON(value?: PatchedFullTopicRequest |
'comments': value.comments === undefined ? undefined : ((value.comments as Array<any>).map(CommentRequestToJSON)),
'viewpoints': value.viewpoints === undefined ? undefined : ((value.viewpoints as Array<any>).map(ViewpointRequestToJSON)),
'project': value.project,
'bimdata_viewer_layout': value.bimdata_viewer_layout,
};
}

8 changes: 8 additions & 0 deletions package/src/models/PatchedTopicRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,12 @@ export interface PatchedTopicRequest {
* @memberof PatchedTopicRequest
*/
project?: number;
/**
* Non standard field. JSON describing bimdataViewerLayout.
* @type {{ [key: string]: any; }}
* @memberof PatchedTopicRequest
*/
bimdata_viewer_layout?: { [key: string]: any; } | null;
}

export function PatchedTopicRequestFromJSON(json: any): PatchedTopicRequest {
Expand Down Expand Up @@ -169,6 +175,7 @@ export function PatchedTopicRequestFromJSONTyped(json: any, ignoreDiscriminator:
'format': !exists(json, 'format') ? undefined : json['format'],
'index': !exists(json, 'index') ? undefined : json['index'],
'project': !exists(json, 'project') ? undefined : json['project'],
'bimdata_viewer_layout': !exists(json, 'bimdata_viewer_layout') ? undefined : json['bimdata_viewer_layout'],
};
}

Expand Down Expand Up @@ -200,6 +207,7 @@ export function PatchedTopicRequestToJSON(value?: PatchedTopicRequest | null): a
'format': value.format,
'index': value.index,
'project': value.project,
'bimdata_viewer_layout': value.bimdata_viewer_layout,
};
}

8 changes: 8 additions & 0 deletions package/src/models/Topic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,12 @@ export interface Topic {
* @memberof Topic
*/
project: number;
/**
* Non standard field. JSON describing bimdataViewerLayout.
* @type {{ [key: string]: any; }}
* @memberof Topic
*/
bimdata_viewer_layout?: { [key: string]: any; } | null;
}

export function TopicFromJSON(json: any): Topic {
Expand Down Expand Up @@ -176,6 +182,7 @@ export function TopicFromJSONTyped(json: any, ignoreDiscriminator: boolean): Top
'format': !exists(json, 'format') ? undefined : json['format'],
'index': !exists(json, 'index') ? undefined : json['index'],
'project': json['project'],
'bimdata_viewer_layout': !exists(json, 'bimdata_viewer_layout') ? undefined : json['bimdata_viewer_layout'],
};
}

Expand Down Expand Up @@ -207,6 +214,7 @@ export function TopicToJSON(value?: Topic | null): any {
'format': value.format,
'index': value.index,
'project': value.project,
'bimdata_viewer_layout': value.bimdata_viewer_layout,
};
}

8 changes: 8 additions & 0 deletions package/src/models/TopicRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,12 @@ export interface TopicRequest {
* @memberof TopicRequest
*/
project: number;
/**
* Non standard field. JSON describing bimdataViewerLayout.
* @type {{ [key: string]: any; }}
* @memberof TopicRequest
*/
bimdata_viewer_layout?: { [key: string]: any; } | null;
}

export function TopicRequestFromJSON(json: any): TopicRequest {
Expand Down Expand Up @@ -169,6 +175,7 @@ export function TopicRequestFromJSONTyped(json: any, ignoreDiscriminator: boolea
'format': !exists(json, 'format') ? undefined : json['format'],
'index': !exists(json, 'index') ? undefined : json['index'],
'project': json['project'],
'bimdata_viewer_layout': !exists(json, 'bimdata_viewer_layout') ? undefined : json['bimdata_viewer_layout'],
};
}

Expand Down Expand Up @@ -200,6 +207,7 @@ export function TopicRequestToJSON(value?: TopicRequest | null): any {
'format': value.format,
'index': value.index,
'project': value.project,
'bimdata_viewer_layout': value.bimdata_viewer_layout,
};
}

0 comments on commit 57af22c

Please sign in to comment.