UNPKG

@itwin/imodels-client-management

Version:

iModels API client wrapper for applications that manage iModels.

32 lines 1.65 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.OperationOperations = void 0; /*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *--------------------------------------------------------------------------------------------*/ const internal_1 = require("../../base/internal"); class OperationOperations extends internal_1.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; } } exports.OperationOperations = OperationOperations; //# sourceMappingURL=OperationOperations.js.map