@bitmovin/api-sdk 1.184.1 → 1.186.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/README.md +1 -1
  2. package/dist/bitmovin-api-sdk.browser.js +47 -223
  3. package/dist/bitmovin-api-sdk.browser.min.js +1 -1
  4. package/dist/common/RestClient.js +1 -1
  5. package/dist/encoding/encodings/inputStreams/subtitles/SubtitlesApi.d.ts +0 -2
  6. package/dist/encoding/encodings/inputStreams/subtitles/SubtitlesApi.js +0 -2
  7. package/dist/models/AnalyticsLicense.d.ts +6 -0
  8. package/dist/models/AnalyticsLicense.js +1 -0
  9. package/dist/models/AnalyticsVirtualLicense.d.ts +6 -0
  10. package/dist/models/AnalyticsVirtualLicense.js +1 -0
  11. package/dist/models/ConditionAttribute.d.ts +24 -0
  12. package/dist/models/ConditionAttribute.js +28 -0
  13. package/dist/models/InputStream.d.ts +1 -2
  14. package/dist/models/InputStream.js +0 -1
  15. package/dist/models/InputStreamType.d.ts +0 -1
  16. package/dist/models/InputStreamType.js +0 -1
  17. package/dist/models/WebhookNotification.d.ts +20 -0
  18. package/dist/models/WebhookNotification.js +4 -0
  19. package/dist/models/index.d.ts +1 -1
  20. package/dist/models/index.js +1 -1
  21. package/package.json +1 -1
  22. package/dist/encoding/encodings/inputStreams/subtitles/dvbTeletext/DvbTeletextApi.d.ts +0 -47
  23. package/dist/encoding/encodings/inputStreams/subtitles/dvbTeletext/DvbTeletextApi.js +0 -106
  24. package/dist/encoding/encodings/inputStreams/subtitles/dvbTeletext/DvbTeletextInputStreamListQueryParams.d.ts +0 -28
  25. package/dist/encoding/encodings/inputStreams/subtitles/dvbTeletext/DvbTeletextInputStreamListQueryParams.js +0 -29
  26. package/dist/models/DvbTeletextInputStream.d.ts +0 -47
  27. package/dist/models/DvbTeletextInputStream.js +0 -49
@@ -240,7 +240,7 @@ var HeaderHandler = /** @class */ (function (_super) {
240
240
  var headers = {
241
241
  'X-Api-Key': apiKey,
242
242
  'X-Api-Client': 'bitmovin-api-sdk-javascript',
243
- 'X-Api-Client-Version': '1.184.1',
243
+ 'X-Api-Client-Version': '1.186.0',
244
244
  'Content-Type': 'application/json'
245
245
  };
246
246
  if (tenantOrgId) {
@@ -1,7 +1,6 @@
1
1
  import { BaseAPI } from '../../../../common/BaseAPI';
2
2
  import Configuration from '../../../../common/Configuration';
3
3
  import DvbSubtitleApi from './dvbSubtitle/DvbSubtitleApi';
4
- import DvbTeletextApi from './dvbTeletext/DvbTeletextApi';
5
4
  /**
6
5
  * SubtitlesApi - object-oriented interface
7
6
  * @export
@@ -10,6 +9,5 @@ import DvbTeletextApi from './dvbTeletext/DvbTeletextApi';
10
9
  */
11
10
  export default class SubtitlesApi extends BaseAPI {
12
11
  dvbSubtitle: DvbSubtitleApi;
13
- dvbTeletext: DvbTeletextApi;
14
12
  constructor(configuration: Configuration);
15
13
  }
@@ -17,7 +17,6 @@ var __extends = (this && this.__extends) || (function () {
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  var BaseAPI_1 = require("../../../../common/BaseAPI");
19
19
  var DvbSubtitleApi_1 = require("./dvbSubtitle/DvbSubtitleApi");
20
- var DvbTeletextApi_1 = require("./dvbTeletext/DvbTeletextApi");
21
20
  /**
22
21
  * SubtitlesApi - object-oriented interface
23
22
  * @export
@@ -29,7 +28,6 @@ var SubtitlesApi = /** @class */ (function (_super) {
29
28
  function SubtitlesApi(configuration) {
30
29
  var _this = _super.call(this, configuration) || this;
31
30
  _this.dvbSubtitle = new DvbSubtitleApi_1.default(configuration);
32
- _this.dvbTeletext = new DvbTeletextApi_1.default(configuration);
33
31
  return _this;
34
32
  }
35
33
  return SubtitlesApi;
@@ -80,6 +80,12 @@ export declare class AnalyticsLicense {
80
80
  * @memberof AnalyticsLicense
81
81
  */
82
82
  retentionTime?: string;
83
+ /**
84
+ * Retention time for compressed data, returned as ISO 8601 duration format: P(n)Y(n)M(n)DT(n)H(n)M(n)S
85
+ * @type {string}
86
+ * @memberof AnalyticsLicense
87
+ */
88
+ compressedRetentionTime?: string;
83
89
  /**
84
90
  * Whitelisted domains
85
91
  * @type {AnalyticsLicenseDomain[]}
@@ -26,6 +26,7 @@ var AnalyticsLicense = /** @class */ (function () {
26
26
  this.maxImpressions = (0, Mapper_1.map)(obj.maxImpressions);
27
27
  this.timeZone = (0, Mapper_1.map)(obj.timeZone);
28
28
  this.retentionTime = (0, Mapper_1.map)(obj.retentionTime);
29
+ this.compressedRetentionTime = (0, Mapper_1.map)(obj.compressedRetentionTime);
29
30
  this.domains = (0, Mapper_1.mapArray)(obj.domains, AnalyticsLicenseDomain_1.default);
30
31
  this.includeInInsights = (0, Mapper_1.map)(obj.includeInInsights);
31
32
  this.customDataFieldLabels = (0, Mapper_1.map)(obj.customDataFieldLabels, AnalyticsLicenseCustomDataFieldLabels_1.default);
@@ -29,6 +29,12 @@ export declare class AnalyticsVirtualLicense {
29
29
  * @memberof AnalyticsVirtualLicense
30
30
  */
31
31
  retentionTime?: string;
32
+ /**
33
+ * Retention time for compressed data, returned as ISO 8601 duration format: P(n)Y(n)M(n)DT(n)H(n)M(n)S
34
+ * @type {string}
35
+ * @memberof AnalyticsVirtualLicense
36
+ */
37
+ compressedRetentionTime?: string;
32
38
  /**
33
39
  * List of Analytics Licenses
34
40
  * @type {AnalyticsVirtualLicenseLicensesListItem[]}
@@ -17,6 +17,7 @@ var AnalyticsVirtualLicense = /** @class */ (function () {
17
17
  this.name = (0, Mapper_1.map)(obj.name);
18
18
  this.timezone = (0, Mapper_1.map)(obj.timezone);
19
19
  this.retentionTime = (0, Mapper_1.map)(obj.retentionTime);
20
+ this.compressedRetentionTime = (0, Mapper_1.map)(obj.compressedRetentionTime);
20
21
  this.licenses = (0, Mapper_1.mapArray)(obj.licenses, AnalyticsVirtualLicenseLicensesListItem_1.default);
21
22
  this.customDataFieldsCount = (0, Mapper_1.map)(obj.customDataFieldsCount);
22
23
  this.customDataFieldLabels = (0, Mapper_1.map)(obj.customDataFieldLabels, AnalyticsLicenseCustomDataFieldLabels_1.default);
@@ -0,0 +1,24 @@
1
+ /**
2
+ * The attribute that should be checked
3
+ * @export
4
+ * @enum {string}
5
+ */
6
+ export declare enum ConditionAttribute {
7
+ HEIGHT = "HEIGHT",
8
+ WIDTH = "WIDTH",
9
+ BITRATE = "BITRATE",
10
+ FPS = "FPS",
11
+ ASPECTRATIO = "ASPECTRATIO",
12
+ INPUTSTREAM = "INPUTSTREAM",
13
+ LANGUAGE = "LANGUAGE",
14
+ CHANNELFORMAT = "CHANNELFORMAT",
15
+ CHANNELLAYOUT = "CHANNELLAYOUT",
16
+ STREAMCOUNT = "STREAMCOUNT",
17
+ AUDIOSTREAMCOUNT = "AUDIOSTREAMCOUNT",
18
+ VIDEOSTREAMCOUNT = "VIDEOSTREAMCOUNT",
19
+ DURATION = "DURATION",
20
+ ROTATION = "ROTATION",
21
+ CONNECTION_STATUS = "CONNECTION_STATUS",
22
+ CONNECTION_STATUS_JUST_CHANGED = "CONNECTION_STATUS_JUST_CHANGED"
23
+ }
24
+ export default ConditionAttribute;
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ConditionAttribute = void 0;
4
+ /**
5
+ * The attribute that should be checked
6
+ * @export
7
+ * @enum {string}
8
+ */
9
+ var ConditionAttribute;
10
+ (function (ConditionAttribute) {
11
+ ConditionAttribute["HEIGHT"] = "HEIGHT";
12
+ ConditionAttribute["WIDTH"] = "WIDTH";
13
+ ConditionAttribute["BITRATE"] = "BITRATE";
14
+ ConditionAttribute["FPS"] = "FPS";
15
+ ConditionAttribute["ASPECTRATIO"] = "ASPECTRATIO";
16
+ ConditionAttribute["INPUTSTREAM"] = "INPUTSTREAM";
17
+ ConditionAttribute["LANGUAGE"] = "LANGUAGE";
18
+ ConditionAttribute["CHANNELFORMAT"] = "CHANNELFORMAT";
19
+ ConditionAttribute["CHANNELLAYOUT"] = "CHANNELLAYOUT";
20
+ ConditionAttribute["STREAMCOUNT"] = "STREAMCOUNT";
21
+ ConditionAttribute["AUDIOSTREAMCOUNT"] = "AUDIOSTREAMCOUNT";
22
+ ConditionAttribute["VIDEOSTREAMCOUNT"] = "VIDEOSTREAMCOUNT";
23
+ ConditionAttribute["DURATION"] = "DURATION";
24
+ ConditionAttribute["ROTATION"] = "ROTATION";
25
+ ConditionAttribute["CONNECTION_STATUS"] = "CONNECTION_STATUS";
26
+ ConditionAttribute["CONNECTION_STATUS_JUST_CHANGED"] = "CONNECTION_STATUS_JUST_CHANGED";
27
+ })(ConditionAttribute || (exports.ConditionAttribute = ConditionAttribute = {}));
28
+ exports.default = ConditionAttribute;
@@ -7,14 +7,13 @@ import DolbyAtmosIngestInputStream from './DolbyAtmosIngestInputStream';
7
7
  import DolbyVisionInputStream from './DolbyVisionInputStream';
8
8
  import DolbyVisionMetadataIngestInputStream from './DolbyVisionMetadataIngestInputStream';
9
9
  import DvbSubtitleInputStream from './DvbSubtitleInputStream';
10
- import DvbTeletextInputStream from './DvbTeletextInputStream';
11
10
  import FileInputStream from './FileInputStream';
12
11
  import H264PictureTimingTrimmingInputStream from './H264PictureTimingTrimmingInputStream';
13
12
  import IngestInputStream from './IngestInputStream';
14
13
  import InputStreamType from './InputStreamType';
15
14
  import TimeBasedTrimmingInputStream from './TimeBasedTrimmingInputStream';
16
15
  import TimecodeTrackTrimmingInputStream from './TimecodeTrackTrimmingInputStream';
17
- export type InputStreamUnion = IngestInputStream | ConcatenationInputStream | TimeBasedTrimmingInputStream | TimecodeTrackTrimmingInputStream | H264PictureTimingTrimmingInputStream | AudioMixInputStream | DolbyVisionMetadataIngestInputStream | Cea608CaptionInputStream | Cea708CaptionInputStream | FileInputStream | DvbSubtitleInputStream | DvbTeletextInputStream | DolbyAtmosIngestInputStream | DolbyVisionInputStream;
16
+ export type InputStreamUnion = IngestInputStream | ConcatenationInputStream | TimeBasedTrimmingInputStream | TimecodeTrackTrimmingInputStream | H264PictureTimingTrimmingInputStream | AudioMixInputStream | DolbyVisionMetadataIngestInputStream | Cea608CaptionInputStream | Cea708CaptionInputStream | FileInputStream | DvbSubtitleInputStream | DolbyAtmosIngestInputStream | DolbyVisionInputStream;
18
17
  /**
19
18
  * @export
20
19
  * @class InputStream
@@ -43,7 +43,6 @@ var InputStream = /** @class */ (function (_super) {
43
43
  CAPTION_CEA708: 'Cea708CaptionInputStream',
44
44
  FILE: 'FileInputStream',
45
45
  DVB_SUBTITLE: 'DvbSubtitleInputStream',
46
- DVB_TELETEXT: 'DvbTeletextInputStream',
47
46
  DOLBY_ATMOS: 'DolbyAtmosIngestInputStream',
48
47
  DOLBY_VISION: 'DolbyVisionInputStream'
49
48
  };
@@ -14,7 +14,6 @@ export declare enum InputStreamType {
14
14
  CAPTION_CEA608 = "CAPTION_CEA608",
15
15
  CAPTION_CEA708 = "CAPTION_CEA708",
16
16
  DVB_SUBTITLE = "DVB_SUBTITLE",
17
- DVB_TELETEXT = "DVB_TELETEXT",
18
17
  DOLBY_ATMOS = "DOLBY_ATMOS",
19
18
  DOLBY_VISION = "DOLBY_VISION"
20
19
  }
@@ -18,7 +18,6 @@ var InputStreamType;
18
18
  InputStreamType["CAPTION_CEA608"] = "CAPTION_CEA608";
19
19
  InputStreamType["CAPTION_CEA708"] = "CAPTION_CEA708";
20
20
  InputStreamType["DVB_SUBTITLE"] = "DVB_SUBTITLE";
21
- InputStreamType["DVB_TELETEXT"] = "DVB_TELETEXT";
22
21
  InputStreamType["DOLBY_ATMOS"] = "DOLBY_ATMOS";
23
22
  InputStreamType["DOLBY_VISION"] = "DOLBY_VISION";
24
23
  })(InputStreamType || (exports.InputStreamType = InputStreamType = {}));
@@ -1,4 +1,6 @@
1
1
  import Notification from './Notification';
2
+ import WebhookHttpMethod from './WebhookHttpMethod';
3
+ import WebhookSignature from './WebhookSignature';
2
4
  /**
3
5
  * @export
4
6
  * @class WebhookNotification
@@ -10,6 +12,24 @@ export declare class WebhookNotification extends Notification {
10
12
  * @memberof WebhookNotification
11
13
  */
12
14
  url?: string;
15
+ /**
16
+ * HTTP method used for the webhook
17
+ * @type {WebhookHttpMethod}
18
+ * @memberof WebhookNotification
19
+ */
20
+ method?: WebhookHttpMethod;
21
+ /**
22
+ * Skip verification of the SSL certificate
23
+ * @type {boolean}
24
+ * @memberof WebhookNotification
25
+ */
26
+ insecureSsl?: boolean;
27
+ /**
28
+ * Signature used for the webhook
29
+ * @type {WebhookSignature}
30
+ * @memberof WebhookNotification
31
+ */
32
+ signature?: WebhookSignature;
13
33
  constructor(obj?: Partial<WebhookNotification>);
14
34
  }
15
35
  export default WebhookNotification;
@@ -18,6 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.WebhookNotification = void 0;
19
19
  var Mapper_1 = require("../common/Mapper");
20
20
  var Notification_1 = require("./Notification");
21
+ var WebhookSignature_1 = require("./WebhookSignature");
21
22
  /**
22
23
  * @export
23
24
  * @class WebhookNotification
@@ -30,6 +31,9 @@ var WebhookNotification = /** @class */ (function (_super) {
30
31
  return _this;
31
32
  }
32
33
  _this.url = (0, Mapper_1.map)(obj.url);
34
+ _this.method = (0, Mapper_1.map)(obj.method);
35
+ _this.insecureSsl = (0, Mapper_1.map)(obj.insecureSsl);
36
+ _this.signature = (0, Mapper_1.map)(obj.signature, WebhookSignature_1.default);
33
37
  return _this;
34
38
  }
35
39
  return WebhookNotification;
@@ -206,6 +206,7 @@ export * from './ColorTransfer';
206
206
  export * from './ConcatenationInputConfiguration';
207
207
  export * from './ConcatenationInputStream';
208
208
  export * from './Condition';
209
+ export * from './ConditionAttribute';
209
210
  export * from './ConditionOperator';
210
211
  export * from './ConditionType';
211
212
  export * from './ConformFilter';
@@ -323,7 +324,6 @@ export * from './DtsXAudioConfiguration';
323
324
  export * from './DtsXChannelLayout';
324
325
  export * from './DvbSubtitleConfiguration';
325
326
  export * from './DvbSubtitleInputStream';
326
- export * from './DvbTeletextInputStream';
327
327
  export * from './Eac3AudioConfiguration';
328
328
  export * from './EbuR128SinglePassFilter';
329
329
  export * from './EgressCategory';
@@ -222,6 +222,7 @@ __exportStar(require("./ColorTransfer"), exports);
222
222
  __exportStar(require("./ConcatenationInputConfiguration"), exports);
223
223
  __exportStar(require("./ConcatenationInputStream"), exports);
224
224
  __exportStar(require("./Condition"), exports);
225
+ __exportStar(require("./ConditionAttribute"), exports);
225
226
  __exportStar(require("./ConditionOperator"), exports);
226
227
  __exportStar(require("./ConditionType"), exports);
227
228
  __exportStar(require("./ConformFilter"), exports);
@@ -339,7 +340,6 @@ __exportStar(require("./DtsXAudioConfiguration"), exports);
339
340
  __exportStar(require("./DtsXChannelLayout"), exports);
340
341
  __exportStar(require("./DvbSubtitleConfiguration"), exports);
341
342
  __exportStar(require("./DvbSubtitleInputStream"), exports);
342
- __exportStar(require("./DvbTeletextInputStream"), exports);
343
343
  __exportStar(require("./Eac3AudioConfiguration"), exports);
344
344
  __exportStar(require("./EbuR128SinglePassFilter"), exports);
345
345
  __exportStar(require("./EgressCategory"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitmovin/api-sdk",
3
- "version": "1.184.1",
3
+ "version": "1.186.0",
4
4
  "description": "Bitmovin JS/TS API SDK",
5
5
  "author": "Bitmovin Inc",
6
6
  "keywords": [
@@ -1,47 +0,0 @@
1
- import { BaseAPI } from '../../../../../common/BaseAPI';
2
- import Configuration from '../../../../../common/Configuration';
3
- import BitmovinResponse from '../../../../../models/BitmovinResponse';
4
- import DvbTeletextInputStream from '../../../../../models/DvbTeletextInputStream';
5
- import PaginationResponse from '../../../../../models/PaginationResponse';
6
- import { DvbTeletextInputStreamListQueryParams, DvbTeletextInputStreamListQueryParamsBuilder } from './DvbTeletextInputStreamListQueryParams';
7
- /**
8
- * DvbTeletextApi - object-oriented interface
9
- * @export
10
- * @class DvbTeletextApi
11
- * @extends {BaseAPI}
12
- */
13
- export default class DvbTeletextApi extends BaseAPI {
14
- constructor(configuration: Configuration);
15
- /**
16
- * @summary Add DVB-Teletext Input Stream
17
- * @param {string} encodingId Id of the encoding.
18
- * @param {DvbTeletextInputStream} dvbTeletextInputStream The DVB-Teletext Input Stream to be created
19
- * @throws {BitmovinError}
20
- * @memberof DvbTeletextApi
21
- */
22
- create(encodingId: string, dvbTeletextInputStream?: DvbTeletextInputStream): Promise<DvbTeletextInputStream>;
23
- /**
24
- * @summary Delete DVB-Teletext Input Stream
25
- * @param {string} encodingId Id of the encoding.
26
- * @param {string} inputStreamId Id of the DVB-Teletext input stream.
27
- * @throws {BitmovinError}
28
- * @memberof DvbTeletextApi
29
- */
30
- delete(encodingId: string, inputStreamId: string): Promise<BitmovinResponse>;
31
- /**
32
- * @summary DVB-Teletext Input Stream Details
33
- * @param {string} encodingId Id of the encoding.
34
- * @param {string} inputStreamId Id of the DVB-Teletext input stream.
35
- * @throws {BitmovinError}
36
- * @memberof DvbTeletextApi
37
- */
38
- get(encodingId: string, inputStreamId: string): Promise<DvbTeletextInputStream>;
39
- /**
40
- * @summary List DVB-Teletext Input Streams
41
- * @param {string} encodingId Id of the encoding.
42
- * @param {*} [queryParameters] query parameters for filtering, sorting and pagination
43
- * @throws {BitmovinError}
44
- * @memberof DvbTeletextApi
45
- */
46
- list(encodingId: string, queryParameters?: DvbTeletextInputStreamListQueryParams | ((q: DvbTeletextInputStreamListQueryParamsBuilder) => DvbTeletextInputStreamListQueryParamsBuilder)): Promise<PaginationResponse<DvbTeletextInputStream>>;
47
- }
@@ -1,106 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- var BaseAPI_1 = require("../../../../../common/BaseAPI");
19
- var Mapper_1 = require("../../../../../common/Mapper");
20
- var BitmovinResponse_1 = require("../../../../../models/BitmovinResponse");
21
- var DvbTeletextInputStream_1 = require("../../../../../models/DvbTeletextInputStream");
22
- var PaginationResponse_1 = require("../../../../../models/PaginationResponse");
23
- var DvbTeletextInputStreamListQueryParams_1 = require("./DvbTeletextInputStreamListQueryParams");
24
- /**
25
- * DvbTeletextApi - object-oriented interface
26
- * @export
27
- * @class DvbTeletextApi
28
- * @extends {BaseAPI}
29
- */
30
- var DvbTeletextApi = /** @class */ (function (_super) {
31
- __extends(DvbTeletextApi, _super);
32
- function DvbTeletextApi(configuration) {
33
- return _super.call(this, configuration) || this;
34
- }
35
- /**
36
- * @summary Add DVB-Teletext Input Stream
37
- * @param {string} encodingId Id of the encoding.
38
- * @param {DvbTeletextInputStream} dvbTeletextInputStream The DVB-Teletext Input Stream to be created
39
- * @throws {BitmovinError}
40
- * @memberof DvbTeletextApi
41
- */
42
- DvbTeletextApi.prototype.create = function (encodingId, dvbTeletextInputStream) {
43
- var pathParamMap = {
44
- encoding_id: encodingId
45
- };
46
- return this.restClient.post('/encoding/encodings/{encoding_id}/input-streams/subtitles/dvb-teletext', pathParamMap, dvbTeletextInputStream).then(function (response) {
47
- return (0, Mapper_1.map)(response, DvbTeletextInputStream_1.default);
48
- });
49
- };
50
- /**
51
- * @summary Delete DVB-Teletext Input Stream
52
- * @param {string} encodingId Id of the encoding.
53
- * @param {string} inputStreamId Id of the DVB-Teletext input stream.
54
- * @throws {BitmovinError}
55
- * @memberof DvbTeletextApi
56
- */
57
- DvbTeletextApi.prototype.delete = function (encodingId, inputStreamId) {
58
- var pathParamMap = {
59
- encoding_id: encodingId,
60
- input_stream_id: inputStreamId
61
- };
62
- return this.restClient.delete('/encoding/encodings/{encoding_id}/input-streams/subtitles/dvb-teletext/{input_stream_id}', pathParamMap).then(function (response) {
63
- return (0, Mapper_1.map)(response, BitmovinResponse_1.default);
64
- });
65
- };
66
- /**
67
- * @summary DVB-Teletext Input Stream Details
68
- * @param {string} encodingId Id of the encoding.
69
- * @param {string} inputStreamId Id of the DVB-Teletext input stream.
70
- * @throws {BitmovinError}
71
- * @memberof DvbTeletextApi
72
- */
73
- DvbTeletextApi.prototype.get = function (encodingId, inputStreamId) {
74
- var pathParamMap = {
75
- encoding_id: encodingId,
76
- input_stream_id: inputStreamId
77
- };
78
- return this.restClient.get('/encoding/encodings/{encoding_id}/input-streams/subtitles/dvb-teletext/{input_stream_id}', pathParamMap).then(function (response) {
79
- return (0, Mapper_1.map)(response, DvbTeletextInputStream_1.default);
80
- });
81
- };
82
- /**
83
- * @summary List DVB-Teletext Input Streams
84
- * @param {string} encodingId Id of the encoding.
85
- * @param {*} [queryParameters] query parameters for filtering, sorting and pagination
86
- * @throws {BitmovinError}
87
- * @memberof DvbTeletextApi
88
- */
89
- DvbTeletextApi.prototype.list = function (encodingId, queryParameters) {
90
- var pathParamMap = {
91
- encoding_id: encodingId
92
- };
93
- var queryParams = {};
94
- if (typeof queryParameters === 'function') {
95
- queryParams = queryParameters(new DvbTeletextInputStreamListQueryParams_1.DvbTeletextInputStreamListQueryParamsBuilder()).buildQueryParams();
96
- }
97
- else if (queryParameters) {
98
- queryParams = queryParameters;
99
- }
100
- return this.restClient.get('/encoding/encodings/{encoding_id}/input-streams/subtitles/dvb-teletext', pathParamMap, queryParams).then(function (response) {
101
- return new PaginationResponse_1.default(response, DvbTeletextInputStream_1.default);
102
- });
103
- };
104
- return DvbTeletextApi;
105
- }(BaseAPI_1.BaseAPI));
106
- exports.default = DvbTeletextApi;
@@ -1,28 +0,0 @@
1
- export interface DvbTeletextInputStreamListQueryParams {
2
- /**
3
- * Index of the first item to return, starting at 0. Default is 0
4
- * @type {number}
5
- * @memberof DvbTeletextInputStreamListQueryParams
6
- */
7
- offset?: number | undefined;
8
- /**
9
- * Maximum number of items to return. Default is 25, maximum is 100
10
- * @type {number}
11
- * @memberof DvbTeletextInputStreamListQueryParams
12
- */
13
- limit?: number | undefined;
14
- }
15
- export declare class DvbTeletextInputStreamListQueryParamsBuilder {
16
- private internalParams;
17
- /**
18
- *
19
- * @param offset Index of the first item to return, starting at 0. Default is 0
20
- */
21
- offset(offset: number): this;
22
- /**
23
- *
24
- * @param limit Maximum number of items to return. Default is 25, maximum is 100
25
- */
26
- limit(limit: number): this;
27
- buildQueryParams(): DvbTeletextInputStreamListQueryParams;
28
- }
@@ -1,29 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DvbTeletextInputStreamListQueryParamsBuilder = void 0;
4
- var DvbTeletextInputStreamListQueryParamsBuilder = /** @class */ (function () {
5
- function DvbTeletextInputStreamListQueryParamsBuilder() {
6
- this.internalParams = {};
7
- }
8
- /**
9
- *
10
- * @param offset Index of the first item to return, starting at 0. Default is 0
11
- */
12
- DvbTeletextInputStreamListQueryParamsBuilder.prototype.offset = function (offset) {
13
- this.internalParams.offset = offset;
14
- return this;
15
- };
16
- /**
17
- *
18
- * @param limit Maximum number of items to return. Default is 25, maximum is 100
19
- */
20
- DvbTeletextInputStreamListQueryParamsBuilder.prototype.limit = function (limit) {
21
- this.internalParams.limit = limit;
22
- return this;
23
- };
24
- DvbTeletextInputStreamListQueryParamsBuilder.prototype.buildQueryParams = function () {
25
- return this.internalParams;
26
- };
27
- return DvbTeletextInputStreamListQueryParamsBuilder;
28
- }());
29
- exports.DvbTeletextInputStreamListQueryParamsBuilder = DvbTeletextInputStreamListQueryParamsBuilder;
@@ -1,47 +0,0 @@
1
- import InputStream from './InputStream';
2
- import InputStreamType from './InputStreamType';
3
- import StreamSelectionMode from './StreamSelectionMode';
4
- /**
5
- * @export
6
- * @class DvbTeletextInputStream
7
- */
8
- export declare class DvbTeletextInputStream extends InputStream {
9
- /**
10
- * Discriminator property for InputStream
11
- * @type {string}
12
- * @memberof DvbTeletextInputStream
13
- */
14
- readonly type: InputStreamType;
15
- /**
16
- * ID of an Input resource defining the input storage
17
- * @type {string}
18
- * @memberof DvbTeletextInputStream
19
- */
20
- inputId?: string;
21
- /**
22
- * Path to an input media file
23
- * @type {string}
24
- * @memberof DvbTeletextInputStream
25
- */
26
- inputPath?: string;
27
- /**
28
- * Specifies the strategy for selecting a stream from the input file
29
- * @type {StreamSelectionMode}
30
- * @memberof DvbTeletextInputStream
31
- */
32
- selectionMode?: StreamSelectionMode;
33
- /**
34
- * Position of the stream to be selected from the input file (zero-based). Must not be set in combination with selectionMode 'AUTO', defaults to 0 for any other selectionMode.
35
- * @type {number}
36
- * @memberof DvbTeletextInputStream
37
- */
38
- position?: number;
39
- /**
40
- * Page number of the subtitles
41
- * @type {number}
42
- * @memberof DvbTeletextInputStream
43
- */
44
- page?: number;
45
- constructor(obj?: Partial<DvbTeletextInputStream>);
46
- }
47
- export default DvbTeletextInputStream;
@@ -1,49 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.DvbTeletextInputStream = void 0;
19
- var Mapper_1 = require("../common/Mapper");
20
- var InputStream_1 = require("./InputStream");
21
- var InputStreamType_1 = require("./InputStreamType");
22
- /**
23
- * @export
24
- * @class DvbTeletextInputStream
25
- */
26
- var DvbTeletextInputStream = /** @class */ (function (_super) {
27
- __extends(DvbTeletextInputStream, _super);
28
- function DvbTeletextInputStream(obj) {
29
- var _this = _super.call(this, obj) || this;
30
- /**
31
- * Discriminator property for InputStream
32
- * @type {string}
33
- * @memberof DvbTeletextInputStream
34
- */
35
- _this.type = InputStreamType_1.default.DVB_TELETEXT;
36
- if (!obj) {
37
- return _this;
38
- }
39
- _this.inputId = (0, Mapper_1.map)(obj.inputId);
40
- _this.inputPath = (0, Mapper_1.map)(obj.inputPath);
41
- _this.selectionMode = (0, Mapper_1.map)(obj.selectionMode);
42
- _this.position = (0, Mapper_1.map)(obj.position);
43
- _this.page = (0, Mapper_1.map)(obj.page);
44
- return _this;
45
- }
46
- return DvbTeletextInputStream;
47
- }(InputStream_1.default));
48
- exports.DvbTeletextInputStream = DvbTeletextInputStream;
49
- exports.default = DvbTeletextInputStream;