@bitmovin/api-sdk 1.196.1 → 1.198.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.
- package/README.md +1 -1
- package/dist/bitmovin-api-sdk.browser.js +601 -9
- package/dist/bitmovin-api-sdk.browser.min.js +1 -1
- package/dist/common/BitmovinErrorBuilder.js +2 -3
- package/dist/common/Mapper.js +2 -3
- package/dist/common/RestClient.js +3 -3
- package/dist/encoding/encodings/muxings/MuxingsApi.d.ts +2 -0
- package/dist/encoding/encodings/muxings/MuxingsApi.js +2 -0
- package/dist/encoding/encodings/muxings/progressiveWav/ProgressiveWavApi.d.ts +51 -0
- package/dist/encoding/encodings/muxings/progressiveWav/ProgressiveWavApi.js +111 -0
- package/dist/encoding/encodings/muxings/progressiveWav/ProgressiveWavMuxingListQueryParams.d.ts +28 -0
- package/dist/encoding/encodings/muxings/progressiveWav/ProgressiveWavMuxingListQueryParams.js +29 -0
- package/dist/encoding/encodings/muxings/progressiveWav/customdata/CustomdataApi.d.ts +20 -0
- package/dist/encoding/encodings/muxings/progressiveWav/customdata/CustomdataApi.js +50 -0
- package/dist/encoding/encodings/muxings/progressiveWav/information/InformationApi.d.ts +20 -0
- package/dist/encoding/encodings/muxings/progressiveWav/information/InformationApi.js +50 -0
- package/dist/models/CloudRegion.d.ts +1 -0
- package/dist/models/CloudRegion.js +1 -0
- package/dist/models/GoogleCloudRegion.d.ts +2 -1
- package/dist/models/GoogleCloudRegion.js +1 -0
- package/dist/models/H264VideoConfiguration.d.ts +3 -3
- package/dist/models/H265VideoConfiguration.d.ts +3 -3
- package/dist/models/LiveEncodingHeartbeatWebhook.d.ts +15 -0
- package/dist/models/LiveEncodingHeartbeatWebhook.js +38 -0
- package/dist/models/Muxing.d.ts +2 -1
- package/dist/models/Muxing.js +1 -0
- package/dist/models/MuxingType.d.ts +1 -0
- package/dist/models/MuxingType.js +1 -0
- package/dist/models/PcmChannelLayout.d.ts +2 -1
- package/dist/models/PcmChannelLayout.js +1 -0
- package/dist/models/PcmSampleFormat.d.ts +2 -1
- package/dist/models/PcmSampleFormat.js +1 -0
- package/dist/models/ProgressiveWavMuxing.d.ts +22 -0
- package/dist/models/ProgressiveWavMuxing.js +45 -0
- package/dist/models/ProgressiveWavMuxingInformation.d.ts +9 -0
- package/dist/models/ProgressiveWavMuxingInformation.js +36 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/dist/notifications/webhooks/encoding/encodings/EncodingsApi.d.ts +2 -0
- package/dist/notifications/webhooks/encoding/encodings/EncodingsApi.js +2 -0
- package/dist/notifications/webhooks/encoding/encodings/liveEncodingHeartbeat/LiveEncodingHeartbeatApi.d.ts +43 -0
- package/dist/notifications/webhooks/encoding/encodings/liveEncodingHeartbeat/LiveEncodingHeartbeatApi.js +94 -0
- package/dist/notifications/webhooks/encoding/encodings/liveEncodingHeartbeat/LiveEncodingHeartbeatWebhookListQueryParams.d.ts +28 -0
- package/dist/notifications/webhooks/encoding/encodings/liveEncodingHeartbeat/LiveEncodingHeartbeatWebhookListQueryParams.js +29 -0
- package/package.json +1 -1
|
@@ -8,5 +8,6 @@ exports.PcmChannelLayout = void 0;
|
|
|
8
8
|
var PcmChannelLayout;
|
|
9
9
|
(function (PcmChannelLayout) {
|
|
10
10
|
PcmChannelLayout["MONO"] = "MONO";
|
|
11
|
+
PcmChannelLayout["STEREO"] = "STEREO";
|
|
11
12
|
})(PcmChannelLayout || (exports.PcmChannelLayout = PcmChannelLayout = {}));
|
|
12
13
|
exports.default = PcmChannelLayout;
|
|
@@ -9,5 +9,6 @@ var PcmSampleFormat;
|
|
|
9
9
|
(function (PcmSampleFormat) {
|
|
10
10
|
PcmSampleFormat["S16LE"] = "S16LE";
|
|
11
11
|
PcmSampleFormat["S24LE"] = "S24LE";
|
|
12
|
+
PcmSampleFormat["S32LE"] = "S32LE";
|
|
12
13
|
})(PcmSampleFormat || (exports.PcmSampleFormat = PcmSampleFormat = {}));
|
|
13
14
|
exports.default = PcmSampleFormat;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import Muxing from './Muxing';
|
|
2
|
+
import MuxingType from './MuxingType';
|
|
3
|
+
/**
|
|
4
|
+
* @export
|
|
5
|
+
* @class ProgressiveWavMuxing
|
|
6
|
+
*/
|
|
7
|
+
export declare class ProgressiveWavMuxing extends Muxing {
|
|
8
|
+
/**
|
|
9
|
+
* Discriminator property for Muxing
|
|
10
|
+
* @type {string}
|
|
11
|
+
* @memberof ProgressiveWavMuxing
|
|
12
|
+
*/
|
|
13
|
+
readonly type: MuxingType;
|
|
14
|
+
/**
|
|
15
|
+
* Name of the output file (required)
|
|
16
|
+
* @type {string}
|
|
17
|
+
* @memberof ProgressiveWavMuxing
|
|
18
|
+
*/
|
|
19
|
+
filename?: string;
|
|
20
|
+
constructor(obj?: Partial<ProgressiveWavMuxing>);
|
|
21
|
+
}
|
|
22
|
+
export default ProgressiveWavMuxing;
|
|
@@ -0,0 +1,45 @@
|
|
|
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.ProgressiveWavMuxing = void 0;
|
|
19
|
+
var Mapper_1 = require("../common/Mapper");
|
|
20
|
+
var Muxing_1 = require("./Muxing");
|
|
21
|
+
var MuxingType_1 = require("./MuxingType");
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
* @class ProgressiveWavMuxing
|
|
25
|
+
*/
|
|
26
|
+
var ProgressiveWavMuxing = /** @class */ (function (_super) {
|
|
27
|
+
__extends(ProgressiveWavMuxing, _super);
|
|
28
|
+
function ProgressiveWavMuxing(obj) {
|
|
29
|
+
var _this = _super.call(this, obj) || this;
|
|
30
|
+
/**
|
|
31
|
+
* Discriminator property for Muxing
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ProgressiveWavMuxing
|
|
34
|
+
*/
|
|
35
|
+
_this.type = MuxingType_1.default.PROGRESSIVE_WAV;
|
|
36
|
+
if (!obj) {
|
|
37
|
+
return _this;
|
|
38
|
+
}
|
|
39
|
+
_this.filename = (0, Mapper_1.map)(obj.filename);
|
|
40
|
+
return _this;
|
|
41
|
+
}
|
|
42
|
+
return ProgressiveWavMuxing;
|
|
43
|
+
}(Muxing_1.default));
|
|
44
|
+
exports.ProgressiveWavMuxing = ProgressiveWavMuxing;
|
|
45
|
+
exports.default = ProgressiveWavMuxing;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import ProgressiveMuxingInformation from './ProgressiveMuxingInformation';
|
|
2
|
+
/**
|
|
3
|
+
* @export
|
|
4
|
+
* @class ProgressiveWavMuxingInformation
|
|
5
|
+
*/
|
|
6
|
+
export declare class ProgressiveWavMuxingInformation extends ProgressiveMuxingInformation {
|
|
7
|
+
constructor(obj?: Partial<ProgressiveWavMuxingInformation>);
|
|
8
|
+
}
|
|
9
|
+
export default ProgressiveWavMuxingInformation;
|
|
@@ -0,0 +1,36 @@
|
|
|
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.ProgressiveWavMuxingInformation = void 0;
|
|
19
|
+
var ProgressiveMuxingInformation_1 = require("./ProgressiveMuxingInformation");
|
|
20
|
+
/**
|
|
21
|
+
* @export
|
|
22
|
+
* @class ProgressiveWavMuxingInformation
|
|
23
|
+
*/
|
|
24
|
+
var ProgressiveWavMuxingInformation = /** @class */ (function (_super) {
|
|
25
|
+
__extends(ProgressiveWavMuxingInformation, _super);
|
|
26
|
+
function ProgressiveWavMuxingInformation(obj) {
|
|
27
|
+
var _this = _super.call(this, obj) || this;
|
|
28
|
+
if (!obj) {
|
|
29
|
+
return _this;
|
|
30
|
+
}
|
|
31
|
+
return _this;
|
|
32
|
+
}
|
|
33
|
+
return ProgressiveWavMuxingInformation;
|
|
34
|
+
}(ProgressiveMuxingInformation_1.default));
|
|
35
|
+
exports.ProgressiveWavMuxingInformation = ProgressiveWavMuxingInformation;
|
|
36
|
+
exports.default = ProgressiveWavMuxingInformation;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -462,6 +462,7 @@ export * from './LiveDashManifest';
|
|
|
462
462
|
export * from './LiveEncoding';
|
|
463
463
|
export * from './LiveEncodingCodec';
|
|
464
464
|
export * from './LiveEncodingEventName';
|
|
465
|
+
export * from './LiveEncodingHeartbeatWebhook';
|
|
465
466
|
export * from './LiveEncodingOptionsStatistics';
|
|
466
467
|
export * from './LiveEncodingStats';
|
|
467
468
|
export * from './LiveEncodingStatsEvent';
|
|
@@ -578,6 +579,8 @@ export * from './ProgressiveMuxingInformation';
|
|
|
578
579
|
export * from './ProgressiveTsMuxing';
|
|
579
580
|
export * from './ProgressiveTsMuxingInformation';
|
|
580
581
|
export * from './ProgressiveTsMuxingInformationByteRanges';
|
|
582
|
+
export * from './ProgressiveWavMuxing';
|
|
583
|
+
export * from './ProgressiveWavMuxingInformation';
|
|
581
584
|
export * from './ProgressiveWebmMuxing';
|
|
582
585
|
export * from './ProgressiveWebmMuxingInformation';
|
|
583
586
|
export * from './ProgressiveWebmMuxingManifestType';
|
package/dist/models/index.js
CHANGED
|
@@ -478,6 +478,7 @@ __exportStar(require("./LiveDashManifest"), exports);
|
|
|
478
478
|
__exportStar(require("./LiveEncoding"), exports);
|
|
479
479
|
__exportStar(require("./LiveEncodingCodec"), exports);
|
|
480
480
|
__exportStar(require("./LiveEncodingEventName"), exports);
|
|
481
|
+
__exportStar(require("./LiveEncodingHeartbeatWebhook"), exports);
|
|
481
482
|
__exportStar(require("./LiveEncodingOptionsStatistics"), exports);
|
|
482
483
|
__exportStar(require("./LiveEncodingStats"), exports);
|
|
483
484
|
__exportStar(require("./LiveEncodingStatsEvent"), exports);
|
|
@@ -594,6 +595,8 @@ __exportStar(require("./ProgressiveMuxingInformation"), exports);
|
|
|
594
595
|
__exportStar(require("./ProgressiveTsMuxing"), exports);
|
|
595
596
|
__exportStar(require("./ProgressiveTsMuxingInformation"), exports);
|
|
596
597
|
__exportStar(require("./ProgressiveTsMuxingInformationByteRanges"), exports);
|
|
598
|
+
__exportStar(require("./ProgressiveWavMuxing"), exports);
|
|
599
|
+
__exportStar(require("./ProgressiveWavMuxingInformation"), exports);
|
|
597
600
|
__exportStar(require("./ProgressiveWebmMuxing"), exports);
|
|
598
601
|
__exportStar(require("./ProgressiveWebmMuxingInformation"), exports);
|
|
599
602
|
__exportStar(require("./ProgressiveWebmMuxingManifestType"), exports);
|
|
@@ -2,6 +2,7 @@ import { BaseAPI } from '../../../../common/BaseAPI';
|
|
|
2
2
|
import Configuration from '../../../../common/Configuration';
|
|
3
3
|
import FinishedApi from './finished/FinishedApi';
|
|
4
4
|
import ErrorApi from './error/ErrorApi';
|
|
5
|
+
import LiveEncodingHeartbeatApi from './liveEncodingHeartbeat/LiveEncodingHeartbeatApi';
|
|
5
6
|
import TransferErrorApi from './transferError/TransferErrorApi';
|
|
6
7
|
import LiveInputStreamChangedApi from './liveInputStreamChanged/LiveInputStreamChangedApi';
|
|
7
8
|
import EncodingStatusChangedApi from './encodingStatusChanged/EncodingStatusChangedApi';
|
|
@@ -14,6 +15,7 @@ import EncodingStatusChangedApi from './encodingStatusChanged/EncodingStatusChan
|
|
|
14
15
|
export default class EncodingsApi extends BaseAPI {
|
|
15
16
|
finished: FinishedApi;
|
|
16
17
|
error: ErrorApi;
|
|
18
|
+
liveEncodingHeartbeat: LiveEncodingHeartbeatApi;
|
|
17
19
|
transferError: TransferErrorApi;
|
|
18
20
|
liveInputStreamChanged: LiveInputStreamChangedApi;
|
|
19
21
|
encodingStatusChanged: EncodingStatusChangedApi;
|
|
@@ -18,6 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
var BaseAPI_1 = require("../../../../common/BaseAPI");
|
|
19
19
|
var FinishedApi_1 = require("./finished/FinishedApi");
|
|
20
20
|
var ErrorApi_1 = require("./error/ErrorApi");
|
|
21
|
+
var LiveEncodingHeartbeatApi_1 = require("./liveEncodingHeartbeat/LiveEncodingHeartbeatApi");
|
|
21
22
|
var TransferErrorApi_1 = require("./transferError/TransferErrorApi");
|
|
22
23
|
var LiveInputStreamChangedApi_1 = require("./liveInputStreamChanged/LiveInputStreamChangedApi");
|
|
23
24
|
var EncodingStatusChangedApi_1 = require("./encodingStatusChanged/EncodingStatusChangedApi");
|
|
@@ -33,6 +34,7 @@ var EncodingsApi = /** @class */ (function (_super) {
|
|
|
33
34
|
var _this = _super.call(this, configuration) || this;
|
|
34
35
|
_this.finished = new FinishedApi_1.default(configuration);
|
|
35
36
|
_this.error = new ErrorApi_1.default(configuration);
|
|
37
|
+
_this.liveEncodingHeartbeat = new LiveEncodingHeartbeatApi_1.default(configuration);
|
|
36
38
|
_this.transferError = new TransferErrorApi_1.default(configuration);
|
|
37
39
|
_this.liveInputStreamChanged = new LiveInputStreamChangedApi_1.default(configuration);
|
|
38
40
|
_this.encodingStatusChanged = new EncodingStatusChangedApi_1.default(configuration);
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { BaseAPI } from '../../../../../common/BaseAPI';
|
|
2
|
+
import Configuration from '../../../../../common/Configuration';
|
|
3
|
+
import BitmovinResponse from '../../../../../models/BitmovinResponse';
|
|
4
|
+
import LiveEncodingHeartbeatWebhook from '../../../../../models/LiveEncodingHeartbeatWebhook';
|
|
5
|
+
import PaginationResponse from '../../../../../models/PaginationResponse';
|
|
6
|
+
import { LiveEncodingHeartbeatWebhookListQueryParams, LiveEncodingHeartbeatWebhookListQueryParamsBuilder } from './LiveEncodingHeartbeatWebhookListQueryParams';
|
|
7
|
+
/**
|
|
8
|
+
* LiveEncodingHeartbeatApi - object-oriented interface
|
|
9
|
+
* @export
|
|
10
|
+
* @class LiveEncodingHeartbeatApi
|
|
11
|
+
* @extends {BaseAPI}
|
|
12
|
+
*/
|
|
13
|
+
export default class LiveEncodingHeartbeatApi extends BaseAPI {
|
|
14
|
+
constructor(configuration: Configuration);
|
|
15
|
+
/**
|
|
16
|
+
* @summary Add 'Live Encoding Heartbeat' Webhook
|
|
17
|
+
* @param {LiveEncodingHeartbeatWebhook} liveEncodingHeartbeatWebhook The 'Live Encoding Heartbeat' Webhook to be added.
|
|
18
|
+
* @throws {BitmovinError}
|
|
19
|
+
* @memberof LiveEncodingHeartbeatApi
|
|
20
|
+
*/
|
|
21
|
+
create(liveEncodingHeartbeatWebhook?: LiveEncodingHeartbeatWebhook): Promise<LiveEncodingHeartbeatWebhook>;
|
|
22
|
+
/**
|
|
23
|
+
* @summary Delete 'Live Encoding Heartbeat' Webhook
|
|
24
|
+
* @param {string} webhookId Id of the webhook
|
|
25
|
+
* @throws {BitmovinError}
|
|
26
|
+
* @memberof LiveEncodingHeartbeatApi
|
|
27
|
+
*/
|
|
28
|
+
deleteByWebhookId(webhookId: string): Promise<BitmovinResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* @summary 'Live Encoding Heartbeat' Webhook Details
|
|
31
|
+
* @param {string} webhookId Id of the webhook
|
|
32
|
+
* @throws {BitmovinError}
|
|
33
|
+
* @memberof LiveEncodingHeartbeatApi
|
|
34
|
+
*/
|
|
35
|
+
getByWebhookId(webhookId: string): Promise<LiveEncodingHeartbeatWebhook>;
|
|
36
|
+
/**
|
|
37
|
+
* @summary List 'Live Encoding Heartbeat' Webhooks
|
|
38
|
+
* @param {*} [queryParameters] query parameters for filtering, sorting and pagination
|
|
39
|
+
* @throws {BitmovinError}
|
|
40
|
+
* @memberof LiveEncodingHeartbeatApi
|
|
41
|
+
*/
|
|
42
|
+
list(queryParameters?: LiveEncodingHeartbeatWebhookListQueryParams | ((q: LiveEncodingHeartbeatWebhookListQueryParamsBuilder) => LiveEncodingHeartbeatWebhookListQueryParamsBuilder)): Promise<PaginationResponse<LiveEncodingHeartbeatWebhook>>;
|
|
43
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
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 LiveEncodingHeartbeatWebhook_1 = require("../../../../../models/LiveEncodingHeartbeatWebhook");
|
|
22
|
+
var PaginationResponse_1 = require("../../../../../models/PaginationResponse");
|
|
23
|
+
var LiveEncodingHeartbeatWebhookListQueryParams_1 = require("./LiveEncodingHeartbeatWebhookListQueryParams");
|
|
24
|
+
/**
|
|
25
|
+
* LiveEncodingHeartbeatApi - object-oriented interface
|
|
26
|
+
* @export
|
|
27
|
+
* @class LiveEncodingHeartbeatApi
|
|
28
|
+
* @extends {BaseAPI}
|
|
29
|
+
*/
|
|
30
|
+
var LiveEncodingHeartbeatApi = /** @class */ (function (_super) {
|
|
31
|
+
__extends(LiveEncodingHeartbeatApi, _super);
|
|
32
|
+
function LiveEncodingHeartbeatApi(configuration) {
|
|
33
|
+
return _super.call(this, configuration) || this;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* @summary Add 'Live Encoding Heartbeat' Webhook
|
|
37
|
+
* @param {LiveEncodingHeartbeatWebhook} liveEncodingHeartbeatWebhook The 'Live Encoding Heartbeat' Webhook to be added.
|
|
38
|
+
* @throws {BitmovinError}
|
|
39
|
+
* @memberof LiveEncodingHeartbeatApi
|
|
40
|
+
*/
|
|
41
|
+
LiveEncodingHeartbeatApi.prototype.create = function (liveEncodingHeartbeatWebhook) {
|
|
42
|
+
return this.restClient.post('/notifications/webhooks/encoding/encodings/live-encoding-heartbeat', {}, liveEncodingHeartbeatWebhook).then(function (response) {
|
|
43
|
+
return (0, Mapper_1.map)(response, LiveEncodingHeartbeatWebhook_1.default);
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* @summary Delete 'Live Encoding Heartbeat' Webhook
|
|
48
|
+
* @param {string} webhookId Id of the webhook
|
|
49
|
+
* @throws {BitmovinError}
|
|
50
|
+
* @memberof LiveEncodingHeartbeatApi
|
|
51
|
+
*/
|
|
52
|
+
LiveEncodingHeartbeatApi.prototype.deleteByWebhookId = function (webhookId) {
|
|
53
|
+
var pathParamMap = {
|
|
54
|
+
webhook_id: webhookId
|
|
55
|
+
};
|
|
56
|
+
return this.restClient.delete('/notifications/webhooks/encoding/encodings/live-encoding-heartbeat/{webhook_id}', pathParamMap).then(function (response) {
|
|
57
|
+
return (0, Mapper_1.map)(response, BitmovinResponse_1.default);
|
|
58
|
+
});
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* @summary 'Live Encoding Heartbeat' Webhook Details
|
|
62
|
+
* @param {string} webhookId Id of the webhook
|
|
63
|
+
* @throws {BitmovinError}
|
|
64
|
+
* @memberof LiveEncodingHeartbeatApi
|
|
65
|
+
*/
|
|
66
|
+
LiveEncodingHeartbeatApi.prototype.getByWebhookId = function (webhookId) {
|
|
67
|
+
var pathParamMap = {
|
|
68
|
+
webhook_id: webhookId
|
|
69
|
+
};
|
|
70
|
+
return this.restClient.get('/notifications/webhooks/encoding/encodings/live-encoding-heartbeat/{webhook_id}', pathParamMap).then(function (response) {
|
|
71
|
+
return (0, Mapper_1.map)(response, LiveEncodingHeartbeatWebhook_1.default);
|
|
72
|
+
});
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* @summary List 'Live Encoding Heartbeat' Webhooks
|
|
76
|
+
* @param {*} [queryParameters] query parameters for filtering, sorting and pagination
|
|
77
|
+
* @throws {BitmovinError}
|
|
78
|
+
* @memberof LiveEncodingHeartbeatApi
|
|
79
|
+
*/
|
|
80
|
+
LiveEncodingHeartbeatApi.prototype.list = function (queryParameters) {
|
|
81
|
+
var queryParams = {};
|
|
82
|
+
if (typeof queryParameters === 'function') {
|
|
83
|
+
queryParams = queryParameters(new LiveEncodingHeartbeatWebhookListQueryParams_1.LiveEncodingHeartbeatWebhookListQueryParamsBuilder()).buildQueryParams();
|
|
84
|
+
}
|
|
85
|
+
else if (queryParameters) {
|
|
86
|
+
queryParams = queryParameters;
|
|
87
|
+
}
|
|
88
|
+
return this.restClient.get('/notifications/webhooks/encoding/encodings/live-encoding-heartbeat', {}, queryParams).then(function (response) {
|
|
89
|
+
return new PaginationResponse_1.default(response, LiveEncodingHeartbeatWebhook_1.default);
|
|
90
|
+
});
|
|
91
|
+
};
|
|
92
|
+
return LiveEncodingHeartbeatApi;
|
|
93
|
+
}(BaseAPI_1.BaseAPI));
|
|
94
|
+
exports.default = LiveEncodingHeartbeatApi;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export interface LiveEncodingHeartbeatWebhookListQueryParams {
|
|
2
|
+
/**
|
|
3
|
+
* Index of the first item to return, starting at 0. Default is 0
|
|
4
|
+
* @type {number}
|
|
5
|
+
* @memberof LiveEncodingHeartbeatWebhookListQueryParams
|
|
6
|
+
*/
|
|
7
|
+
offset?: number | undefined;
|
|
8
|
+
/**
|
|
9
|
+
* Maximum number of items to return. Default is 25, maximum is 100
|
|
10
|
+
* @type {number}
|
|
11
|
+
* @memberof LiveEncodingHeartbeatWebhookListQueryParams
|
|
12
|
+
*/
|
|
13
|
+
limit?: number | undefined;
|
|
14
|
+
}
|
|
15
|
+
export declare class LiveEncodingHeartbeatWebhookListQueryParamsBuilder {
|
|
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(): LiveEncodingHeartbeatWebhookListQueryParams;
|
|
28
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LiveEncodingHeartbeatWebhookListQueryParamsBuilder = void 0;
|
|
4
|
+
var LiveEncodingHeartbeatWebhookListQueryParamsBuilder = /** @class */ (function () {
|
|
5
|
+
function LiveEncodingHeartbeatWebhookListQueryParamsBuilder() {
|
|
6
|
+
this.internalParams = {};
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @param offset Index of the first item to return, starting at 0. Default is 0
|
|
11
|
+
*/
|
|
12
|
+
LiveEncodingHeartbeatWebhookListQueryParamsBuilder.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
|
+
LiveEncodingHeartbeatWebhookListQueryParamsBuilder.prototype.limit = function (limit) {
|
|
21
|
+
this.internalParams.limit = limit;
|
|
22
|
+
return this;
|
|
23
|
+
};
|
|
24
|
+
LiveEncodingHeartbeatWebhookListQueryParamsBuilder.prototype.buildQueryParams = function () {
|
|
25
|
+
return this.internalParams;
|
|
26
|
+
};
|
|
27
|
+
return LiveEncodingHeartbeatWebhookListQueryParamsBuilder;
|
|
28
|
+
}());
|
|
29
|
+
exports.LiveEncodingHeartbeatWebhookListQueryParamsBuilder = LiveEncodingHeartbeatWebhookListQueryParamsBuilder;
|