@bitmovin/api-sdk
Version:
Bitmovin JS/TS API SDK
32 lines (31 loc) • 1.03 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const BaseAPI_1 = require("../../../common/BaseAPI");
const Mapper_1 = require("../../../common/Mapper");
const CodecConfigTypeResponse_1 = require("../../../models/CodecConfigTypeResponse");
/**
* TypeApi - object-oriented interface
* @export
* @class TypeApi
* @extends {BaseAPI}
*/
class TypeApi extends BaseAPI_1.BaseAPI {
constructor(configuration) {
super(configuration);
}
/**
* @summary Get Codec Configuration Type
* @param {string} configurationId Id of the codec configuration
* @throws {BitmovinError}
* @memberof TypeApi
*/
get(configurationId) {
const pathParamMap = {
configuration_id: configurationId
};
return this.restClient.get('/encoding/configurations/{configuration_id}/type', pathParamMap).then((response) => {
return (0, Mapper_1.map)(response, CodecConfigTypeResponse_1.default);
});
}
}
exports.default = TypeApi;