@bitmovin/api-sdk
Version:
Bitmovin JS/TS API SDK
52 lines (51 loc) • 2.13 kB
JavaScript
;
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var BaseAPI_1 = require("../../../../common/BaseAPI");
var Mapper_1 = require("../../../../common/Mapper");
var LanguageApi_1 = require("./language/LanguageApi");
var SceneAnalysisDetailsResponse_1 = require("../../../../models/SceneAnalysisDetailsResponse");
/**
* DetailsApi - object-oriented interface
* @export
* @class DetailsApi
* @extends {BaseAPI}
*/
var DetailsApi = /** @class */ (function (_super) {
__extends(DetailsApi, _super);
function DetailsApi(configuration) {
var _this = _super.call(this, configuration) || this;
_this.language = new LanguageApi_1.default(configuration);
return _this;
}
/**
* @summary Get AI scene analysis details by encoding ID
* @param {string} encodingId The encoding ID
* @throws {BitmovinError}
* @memberof DetailsApi
*/
DetailsApi.prototype.get = function (encodingId) {
var pathParamMap = {
encoding_id: encodingId
};
return this.restClient.get('/ai-scene-analysis/analyses/by-encoding-id/{encoding_id}/details', pathParamMap).then(function (response) {
return (0, Mapper_1.map)(response, SceneAnalysisDetailsResponse_1.default);
});
};
return DetailsApi;
}(BaseAPI_1.BaseAPI));
exports.default = DetailsApi;