UNPKG

@itwin/imodels-client-management

Version:

iModels API client wrapper for applications that manage iModels.

28 lines 1.48 kB
/*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *--------------------------------------------------------------------------------------------*/ import { OperationsBase, } from "../../base/internal"; export class OperationOperations extends OperationsBase { constructor(options) { super(options); } /** * Returns the information about iModel creation process. Wraps the * {@link https://developer.bentley.com/apis/imodels-v2/operations/get-create-imodel-operation-details/ Get Create iModel Operation Details} * operation from iModels API. * @param {GetCreateIModelOperationDetailsParams} params parameters for this operation. See {@link GetCreateIModelOperationDetailsParams}. * @returns {Promise<CreateIModelOperationDetails>} iModel creation details. See {@link CreateIModelOperationDetails}. */ async getCreateIModelDetails(params) { const response = await this.sendGetRequest({ authorization: params.authorization, url: this._options.urlFormatter.getCreateIModelOperationDetailsUrl({ iModelId: params.iModelId, }), headers: params.headers, }); return response.body.createOperation; } } //# sourceMappingURL=OperationOperations.js.map