@bitmovin/api-sdk 1.215.0 → 1.216.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.
@@ -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.215.0',
243
+ 'X-Api-Client-Version': '1.216.0',
244
244
  'Content-Type': 'application/json'
245
245
  };
246
246
  if (tenantOrgId) {
@@ -10,6 +10,7 @@ import OutputPathsApi from './outputPaths/OutputPathsApi';
10
10
  import CaptionsApi from './captions/CaptionsApi';
11
11
  import SidecarsApi from './sidecars/SidecarsApi';
12
12
  import KeyframesApi from './keyframes/KeyframesApi';
13
+ import Scte35TriggersApi from './scte35Triggers/Scte35TriggersApi';
13
14
  import BitmovinResponse from '../../models/BitmovinResponse';
14
15
  import Encoding from '../../models/Encoding';
15
16
  import ReprioritizeEncodingRequest from '../../models/ReprioritizeEncodingRequest';
@@ -35,6 +36,7 @@ export default class EncodingsApi extends BaseAPI {
35
36
  captions: CaptionsApi;
36
37
  sidecars: SidecarsApi;
37
38
  keyframes: KeyframesApi;
39
+ scte35Triggers: Scte35TriggersApi;
38
40
  constructor(configuration: Configuration);
39
41
  /**
40
42
  * @summary Create Encoding
@@ -27,6 +27,7 @@ var OutputPathsApi_1 = require("./outputPaths/OutputPathsApi");
27
27
  var CaptionsApi_1 = require("./captions/CaptionsApi");
28
28
  var SidecarsApi_1 = require("./sidecars/SidecarsApi");
29
29
  var KeyframesApi_1 = require("./keyframes/KeyframesApi");
30
+ var Scte35TriggersApi_1 = require("./scte35Triggers/Scte35TriggersApi");
30
31
  var BitmovinResponse_1 = require("../../models/BitmovinResponse");
31
32
  var Encoding_1 = require("../../models/Encoding");
32
33
  var StartEncodingRequest_1 = require("../../models/StartEncodingRequest");
@@ -53,6 +54,7 @@ var EncodingsApi = /** @class */ (function (_super) {
53
54
  _this.captions = new CaptionsApi_1.default(configuration);
54
55
  _this.sidecars = new SidecarsApi_1.default(configuration);
55
56
  _this.keyframes = new KeyframesApi_1.default(configuration);
57
+ _this.scte35Triggers = new Scte35TriggersApi_1.default(configuration);
56
58
  return _this;
57
59
  }
58
60
  /**
@@ -0,0 +1,28 @@
1
+ export interface Scte35TriggerListQueryParams {
2
+ /**
3
+ * Index of the first item to return, starting at 0. Default is 0
4
+ * @type {number}
5
+ * @memberof Scte35TriggerListQueryParams
6
+ */
7
+ offset?: number | undefined;
8
+ /**
9
+ * Maximum number of items to return. Default is 25, maximum is 100
10
+ * @type {number}
11
+ * @memberof Scte35TriggerListQueryParams
12
+ */
13
+ limit?: number | undefined;
14
+ }
15
+ export declare class Scte35TriggerListQueryParamsBuilder {
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(): Scte35TriggerListQueryParams;
28
+ }
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Scte35TriggerListQueryParamsBuilder = void 0;
4
+ var Scte35TriggerListQueryParamsBuilder = /** @class */ (function () {
5
+ function Scte35TriggerListQueryParamsBuilder() {
6
+ this.internalParams = {};
7
+ }
8
+ /**
9
+ *
10
+ * @param offset Index of the first item to return, starting at 0. Default is 0
11
+ */
12
+ Scte35TriggerListQueryParamsBuilder.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
+ Scte35TriggerListQueryParamsBuilder.prototype.limit = function (limit) {
21
+ this.internalParams.limit = limit;
22
+ return this;
23
+ };
24
+ Scte35TriggerListQueryParamsBuilder.prototype.buildQueryParams = function () {
25
+ return this.internalParams;
26
+ };
27
+ return Scte35TriggerListQueryParamsBuilder;
28
+ }());
29
+ exports.Scte35TriggerListQueryParamsBuilder = Scte35TriggerListQueryParamsBuilder;
@@ -0,0 +1,47 @@
1
+ import { BaseAPI } from '../../../common/BaseAPI';
2
+ import Configuration from '../../../common/Configuration';
3
+ import BitmovinResponse from '../../../models/BitmovinResponse';
4
+ import Scte35Trigger from '../../../models/Scte35Trigger';
5
+ import PaginationResponse from '../../../models/PaginationResponse';
6
+ import { Scte35TriggerListQueryParams, Scte35TriggerListQueryParamsBuilder } from './Scte35TriggerListQueryParams';
7
+ /**
8
+ * Scte35TriggersApi - object-oriented interface
9
+ * @export
10
+ * @class Scte35TriggersApi
11
+ * @extends {BaseAPI}
12
+ */
13
+ export default class Scte35TriggersApi extends BaseAPI {
14
+ constructor(configuration: Configuration);
15
+ /**
16
+ * @summary Create SCTE 35 trigger
17
+ * @param {string} encodingId Id of the encoding.
18
+ * @param {Scte35Trigger} scte35Trigger The SCTE 35 trigger to be created
19
+ * @throws {BitmovinError}
20
+ * @memberof Scte35TriggersApi
21
+ */
22
+ create(encodingId: string, scte35Trigger?: Scte35Trigger): Promise<Scte35Trigger>;
23
+ /**
24
+ * @summary Delete SCTE 35 trigger
25
+ * @param {string} encodingId Id of the encoding
26
+ * @param {string} scte35triggerId Id of the SCTE 35 trigger
27
+ * @throws {BitmovinError}
28
+ * @memberof Scte35TriggersApi
29
+ */
30
+ delete(encodingId: string, scte35triggerId: string): Promise<BitmovinResponse>;
31
+ /**
32
+ * @summary SCTE 35 trigger Details
33
+ * @param {string} encodingId Id of the encoding
34
+ * @param {string} scte35triggerId Id of the SCTE 35 trigger
35
+ * @throws {BitmovinError}
36
+ * @memberof Scte35TriggersApi
37
+ */
38
+ get(encodingId: string, scte35triggerId: string): Promise<Scte35Trigger>;
39
+ /**
40
+ * @summary List all SCTE 35 triggers for an encoding
41
+ * @param {string} encodingId Id of the encoding.
42
+ * @param {*} [queryParameters] query parameters for filtering, sorting and pagination
43
+ * @throws {BitmovinError}
44
+ * @memberof Scte35TriggersApi
45
+ */
46
+ list(encodingId: string, queryParameters?: Scte35TriggerListQueryParams | ((q: Scte35TriggerListQueryParamsBuilder) => Scte35TriggerListQueryParamsBuilder)): Promise<PaginationResponse<Scte35Trigger>>;
47
+ }
@@ -0,0 +1,106 @@
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 Scte35Trigger_1 = require("../../../models/Scte35Trigger");
22
+ var PaginationResponse_1 = require("../../../models/PaginationResponse");
23
+ var Scte35TriggerListQueryParams_1 = require("./Scte35TriggerListQueryParams");
24
+ /**
25
+ * Scte35TriggersApi - object-oriented interface
26
+ * @export
27
+ * @class Scte35TriggersApi
28
+ * @extends {BaseAPI}
29
+ */
30
+ var Scte35TriggersApi = /** @class */ (function (_super) {
31
+ __extends(Scte35TriggersApi, _super);
32
+ function Scte35TriggersApi(configuration) {
33
+ return _super.call(this, configuration) || this;
34
+ }
35
+ /**
36
+ * @summary Create SCTE 35 trigger
37
+ * @param {string} encodingId Id of the encoding.
38
+ * @param {Scte35Trigger} scte35Trigger The SCTE 35 trigger to be created
39
+ * @throws {BitmovinError}
40
+ * @memberof Scte35TriggersApi
41
+ */
42
+ Scte35TriggersApi.prototype.create = function (encodingId, scte35Trigger) {
43
+ var pathParamMap = {
44
+ encoding_id: encodingId
45
+ };
46
+ return this.restClient.post('/encoding/encodings/{encoding_id}/scte-35-triggers', pathParamMap, scte35Trigger).then(function (response) {
47
+ return (0, Mapper_1.map)(response, Scte35Trigger_1.default);
48
+ });
49
+ };
50
+ /**
51
+ * @summary Delete SCTE 35 trigger
52
+ * @param {string} encodingId Id of the encoding
53
+ * @param {string} scte35triggerId Id of the SCTE 35 trigger
54
+ * @throws {BitmovinError}
55
+ * @memberof Scte35TriggersApi
56
+ */
57
+ Scte35TriggersApi.prototype.delete = function (encodingId, scte35triggerId) {
58
+ var pathParamMap = {
59
+ encoding_id: encodingId,
60
+ scte35trigger_id: scte35triggerId
61
+ };
62
+ return this.restClient.delete('/encoding/encodings/{encoding_id}/scte-35-triggers/{scte35trigger_id}', pathParamMap).then(function (response) {
63
+ return (0, Mapper_1.map)(response, BitmovinResponse_1.default);
64
+ });
65
+ };
66
+ /**
67
+ * @summary SCTE 35 trigger Details
68
+ * @param {string} encodingId Id of the encoding
69
+ * @param {string} scte35triggerId Id of the SCTE 35 trigger
70
+ * @throws {BitmovinError}
71
+ * @memberof Scte35TriggersApi
72
+ */
73
+ Scte35TriggersApi.prototype.get = function (encodingId, scte35triggerId) {
74
+ var pathParamMap = {
75
+ encoding_id: encodingId,
76
+ scte35trigger_id: scte35triggerId
77
+ };
78
+ return this.restClient.get('/encoding/encodings/{encoding_id}/scte-35-triggers/{scte35trigger_id}', pathParamMap).then(function (response) {
79
+ return (0, Mapper_1.map)(response, Scte35Trigger_1.default);
80
+ });
81
+ };
82
+ /**
83
+ * @summary List all SCTE 35 triggers for an encoding
84
+ * @param {string} encodingId Id of the encoding.
85
+ * @param {*} [queryParameters] query parameters for filtering, sorting and pagination
86
+ * @throws {BitmovinError}
87
+ * @memberof Scte35TriggersApi
88
+ */
89
+ Scte35TriggersApi.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 Scte35TriggerListQueryParams_1.Scte35TriggerListQueryParamsBuilder()).buildQueryParams();
96
+ }
97
+ else if (queryParameters) {
98
+ queryParams = queryParameters;
99
+ }
100
+ return this.restClient.get('/encoding/encodings/{encoding_id}/scte-35-triggers', pathParamMap, queryParams).then(function (response) {
101
+ return new PaginationResponse_1.default(response, Scte35Trigger_1.default);
102
+ });
103
+ };
104
+ return Scte35TriggersApi;
105
+ }(BaseAPI_1.BaseAPI));
106
+ exports.default = Scte35TriggersApi;
@@ -0,0 +1,21 @@
1
+ import BitmovinResponse from './BitmovinResponse';
2
+ /**
3
+ * @export
4
+ * @class Scte35Trigger
5
+ */
6
+ export declare class Scte35Trigger extends BitmovinResponse {
7
+ /**
8
+ * Time in seconds where the SCTE 35 trigger should be inserted (required)
9
+ * @type {number}
10
+ * @memberof Scte35Trigger
11
+ */
12
+ time?: number;
13
+ /**
14
+ * The base 64 encoded data for the SCTE trigger (required)
15
+ * @type {string}
16
+ * @memberof Scte35Trigger
17
+ */
18
+ base64EncodedMetadata?: string;
19
+ constructor(obj?: Partial<Scte35Trigger>);
20
+ }
21
+ export default Scte35Trigger;
@@ -0,0 +1,39 @@
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.Scte35Trigger = void 0;
19
+ var Mapper_1 = require("../common/Mapper");
20
+ var BitmovinResponse_1 = require("./BitmovinResponse");
21
+ /**
22
+ * @export
23
+ * @class Scte35Trigger
24
+ */
25
+ var Scte35Trigger = /** @class */ (function (_super) {
26
+ __extends(Scte35Trigger, _super);
27
+ function Scte35Trigger(obj) {
28
+ var _this = _super.call(this, obj) || this;
29
+ if (!obj) {
30
+ return _this;
31
+ }
32
+ _this.time = (0, Mapper_1.map)(obj.time);
33
+ _this.base64EncodedMetadata = (0, Mapper_1.map)(obj.base64EncodedMetadata);
34
+ return _this;
35
+ }
36
+ return Scte35Trigger;
37
+ }(BitmovinResponse_1.default));
38
+ exports.Scte35Trigger = Scte35Trigger;
39
+ exports.default = Scte35Trigger;
@@ -634,6 +634,7 @@ export * from './ScheduledInsertableContent';
634
634
  export * from './ScheduledInsertableContentStatus';
635
635
  export * from './Scheduling';
636
636
  export * from './Scte35Cue';
637
+ export * from './Scte35Trigger';
637
638
  export * from './SegmentedRawMuxing';
638
639
  export * from './SegmentsMediaInfo';
639
640
  export * from './SftpInput';
@@ -650,6 +650,7 @@ __exportStar(require("./ScheduledInsertableContent"), exports);
650
650
  __exportStar(require("./ScheduledInsertableContentStatus"), exports);
651
651
  __exportStar(require("./Scheduling"), exports);
652
652
  __exportStar(require("./Scte35Cue"), exports);
653
+ __exportStar(require("./Scte35Trigger"), exports);
653
654
  __exportStar(require("./SegmentedRawMuxing"), exports);
654
655
  __exportStar(require("./SegmentsMediaInfo"), exports);
655
656
  __exportStar(require("./SftpInput"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitmovin/api-sdk",
3
- "version": "1.215.0",
3
+ "version": "1.216.0",
4
4
  "description": "Bitmovin JS/TS API SDK",
5
5
  "author": "Bitmovin Inc",
6
6
  "keywords": [