@bitmovin/api-sdk
Version:
Bitmovin JS/TS API SDK
32 lines (31 loc) • 972 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const BaseAPI_1 = require("../../../common/BaseAPI");
const Mapper_1 = require("../../../common/Mapper");
const ManifestTypeResponse_1 = require("../../../models/ManifestTypeResponse");
/**
* TypeApi - object-oriented interface
* @export
* @class TypeApi
* @extends {BaseAPI}
*/
class TypeApi extends BaseAPI_1.BaseAPI {
constructor(configuration) {
super(configuration);
}
/**
* @summary Get Manifest Type
* @param {string} manifestId UUID of the manifest
* @throws {BitmovinError}
* @memberof TypeApi
*/
get(manifestId) {
const pathParamMap = {
manifest_id: manifestId
};
return this.restClient.get('/encoding/manifests/{manifest_id}/type', pathParamMap).then((response) => {
return (0, Mapper_1.map)(response, ManifestTypeResponse_1.default);
});
}
}
exports.default = TypeApi;