Skip to content

Commit

Permalink
PATCH: Add document history count (#681)
Browse files Browse the repository at this point in the history
* add document history count

* typo fixe
  • Loading branch information
Bimdata-io committed Sep 6, 2023
1 parent 9db7ba9 commit 7ae8374
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
17 changes: 15 additions & 2 deletions package/src/apis/BcfApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ export interface DownloadBcfExportRequest {
export interface DownloadBcfExportXlsxRequest {
id: number;
format?: string;
locale?: DownloadBcfExportXlsxLocaleEnum;
topics?: string;
}

Expand Down Expand Up @@ -1657,6 +1658,10 @@ export class BcfApi extends runtime.BaseAPI {
queryParameters['format'] = requestParameters.format;
}

if (requestParameters.locale !== undefined) {
queryParameters['locale'] = requestParameters.locale;
}

if (requestParameters.topics !== undefined) {
queryParameters['topics'] = requestParameters.topics;
}
Expand Down Expand Up @@ -1695,8 +1700,8 @@ export class BcfApi extends runtime.BaseAPI {
* This is not a standard route. Export project\'s topics in excel format Required scopes: bcf:read
* Export project\'s topics in excel format
*/
async downloadBcfExportXlsx(id: number, format?: string, topics?: string, initOverrides?: RequestInit): Promise<Blob> {
const response = await this.downloadBcfExportXlsxRaw({ id: id, format: format, topics: topics }, initOverrides);
async downloadBcfExportXlsx(id: number, format?: string, locale?: DownloadBcfExportXlsxLocaleEnum, topics?: string, initOverrides?: RequestInit): Promise<Blob> {
const response = await this.downloadBcfExportXlsxRaw({ id: id, format: format, locale: locale, topics: topics }, initOverrides);
return await response.value();
}

Expand Down Expand Up @@ -4169,6 +4174,14 @@ export enum CreateViewpointImgFormatEnum {
export enum DeleteViewpointImgFormatEnum {
Url = 'url'
}
/**
* @export
* @enum {string}
*/
export enum DownloadBcfExportXlsxLocaleEnum {
En = 'en',
Fr = 'fr'
}
/**
* @export
* @enum {string}
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 @@ -1574,7 +1574,7 @@ export class CollaborationApi extends runtime.BaseAPI {
}

/**
* Create a document. If the document is one of {\'POINT_CLOUD\', \'IFC\', \'GLTF\', \'DWG\', \'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\', \'OBJ\', \'DWG\', \'IFC\', \'DXF\', \'GLTF\'}, 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 @@ -1677,7 +1677,7 @@ export class CollaborationApi extends runtime.BaseAPI {
}

/**
* Create a document. If the document is one of {\'POINT_CLOUD\', \'IFC\', \'GLTF\', \'DWG\', \'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\', \'OBJ\', \'DWG\', \'IFC\', \'DXF\', \'GLTF\'}, 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

0 comments on commit 7ae8374

Please sign in to comment.