UNPKG

@bitmovin/api-sdk

Version:

Bitmovin JS/TS API SDK

32 lines (31 loc) 955 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const BaseAPI_1 = require("../../../common/BaseAPI"); const Mapper_1 = require("../../../common/Mapper"); const OutputTypeResponse_1 = require("../../../models/OutputTypeResponse"); /** * TypeApi - object-oriented interface * @export * @class TypeApi * @extends {BaseAPI} */ class TypeApi extends BaseAPI_1.BaseAPI { constructor(configuration) { super(configuration); } /** * @summary Get Output Type * @param {string} outputId Id of the wanted output * @throws {BitmovinError} * @memberof TypeApi */ get(outputId) { const pathParamMap = { output_id: outputId }; return this.restClient.get('/encoding/outputs/{output_id}/type', pathParamMap).then((response) => { return (0, Mapper_1.map)(response, OutputTypeResponse_1.default); }); } } exports.default = TypeApi;