@bitmovin/api-sdk 1.278.0 → 1.280.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 +1425 -166
- package/dist/bitmovin-api-sdk.browser.min.js +1 -1
- package/dist/common/RestClient.js +1 -1
- package/dist/models/AdAnalyticsQueryRequest.d.ts +6 -0
- package/dist/models/AdAnalyticsQueryRequest.js +1 -0
- package/dist/models/AkamaiCloudRegion.d.ts +1 -0
- package/dist/models/AkamaiCloudRegion.js +1 -0
- package/dist/models/Av1PerTitleConfiguration.d.ts +1 -1
- package/dist/models/CloudRegion.d.ts +1 -0
- package/dist/models/CloudRegion.js +1 -0
- package/dist/models/PccCell.d.ts +75 -0
- package/dist/models/PccCell.js +29 -0
- package/dist/models/PccCodecDeviceTypeReach.d.ts +25 -0
- package/dist/models/PccCodecDeviceTypeReach.js +20 -0
- package/dist/models/PccCodecReach.d.ts +19 -0
- package/dist/models/PccCodecReach.js +20 -0
- package/dist/models/PccCombination.d.ts +32 -0
- package/dist/models/PccCombination.js +21 -0
- package/dist/models/PccCombinationEvidence.d.ts +56 -0
- package/dist/models/PccCombinationEvidence.js +25 -0
- package/dist/models/PccCompatibilityMatrix.d.ts +83 -0
- package/dist/models/PccCompatibilityMatrix.js +36 -0
- package/dist/models/PccCoverage.d.ts +79 -0
- package/dist/models/PccCoverage.js +29 -0
- package/dist/models/PccDevice.d.ts +56 -0
- package/dist/models/PccDevice.js +27 -0
- package/dist/models/PccDeviceHdrVerdict.d.ts +35 -0
- package/dist/models/PccDeviceHdrVerdict.js +22 -0
- package/dist/models/PccDeviceTypeShare.d.ts +32 -0
- package/dist/models/PccDeviceTypeShare.js +21 -0
- package/dist/models/PccDeviceUnit.d.ts +35 -0
- package/dist/models/PccDeviceUnit.js +22 -0
- package/dist/models/PccHdrConfidence.d.ts +11 -0
- package/dist/models/PccHdrConfidence.js +15 -0
- package/dist/models/PccHdrDevice.d.ts +43 -0
- package/dist/models/PccHdrDevice.js +25 -0
- package/dist/models/PccHdrFinding.d.ts +30 -0
- package/dist/models/PccHdrFinding.js +21 -0
- package/dist/models/PccHdrLegendEntry.d.ts +39 -0
- package/dist/models/PccHdrLegendEntry.js +22 -0
- package/dist/models/PccHdrOutcome.d.ts +13 -0
- package/dist/models/PccHdrOutcome.js +17 -0
- package/dist/models/PccHdrOutcomeCount.d.ts +32 -0
- package/dist/models/PccHdrOutcomeCount.js +21 -0
- package/dist/models/PccHdrShare.d.ts +24 -0
- package/dist/models/PccHdrShare.js +20 -0
- package/dist/models/PccHdrSummary.d.ts +51 -0
- package/dist/models/PccHdrSummary.js +28 -0
- package/dist/models/PccOverview.d.ts +26 -0
- package/dist/models/PccOverview.js +20 -0
- package/dist/models/PccPicture.d.ts +31 -0
- package/dist/models/PccPicture.js +21 -0
- package/dist/models/PccReport.d.ts +27 -0
- package/dist/models/PccReport.js +21 -0
- package/dist/models/PccReportView.d.ts +38 -0
- package/dist/models/PccReportView.js +22 -0
- package/dist/models/PccSummary.d.ts +62 -0
- package/dist/models/PccSummary.js +33 -0
- package/dist/models/PccSupportShare.d.ts +26 -0
- package/dist/models/PccSupportShare.js +20 -0
- package/dist/models/PccVerdict.d.ts +17 -0
- package/dist/models/PccVerdict.js +21 -0
- package/dist/models/PccVerdictLegendEntry.d.ts +32 -0
- package/dist/models/PccVerdictLegendEntry.js +21 -0
- package/dist/models/PccVerdictShare.d.ts +32 -0
- package/dist/models/PccVerdictShare.js +21 -0
- package/dist/models/PerTitleConfiguration.d.ts +1 -1
- package/dist/models/StreamMetadata.d.ts +12 -0
- package/dist/models/StreamMetadata.js +2 -0
- package/dist/models/index.d.ts +28 -1
- package/dist/models/index.js +28 -1
- package/dist/notifications/webhooks/encoding/encodings/liveEncodingHeartbeat/LiveEncodingHeartbeatApi.d.ts +35 -0
- package/dist/notifications/webhooks/encoding/encodings/liveEncodingHeartbeat/LiveEncodingHeartbeatApi.js +72 -0
- package/dist/notifications/webhooks/encoding/encodings/liveEncodingHeartbeat/LiveEncodingHeartbeatWebhookListByEncodingIdQueryParams.d.ts +28 -0
- package/dist/notifications/webhooks/encoding/encodings/liveEncodingHeartbeat/LiveEncodingHeartbeatWebhookListByEncodingIdQueryParams.js +28 -0
- package/dist/notifications/webhooks/encoding/encodings/liveEncodingHeartbeat/customdata/CustomdataApi.d.ts +27 -0
- package/dist/notifications/webhooks/encoding/encodings/liveEncodingHeartbeat/customdata/CustomdataApi.js +47 -0
- package/dist/player/PlayerApi.d.ts +2 -0
- package/dist/player/PlayerApi.js +2 -0
- package/dist/player/testing/TestingApi.d.ts +13 -0
- package/dist/player/testing/TestingApi.js +17 -0
- package/dist/player/testing/codecCompatibility/CodecCompatibilityApi.d.ts +20 -0
- package/dist/player/testing/codecCompatibility/CodecCompatibilityApi.js +36 -0
- package/dist/player/testing/codecCompatibility/PccReportGetQueryParams.d.ts +61 -0
- package/dist/player/testing/codecCompatibility/PccReportGetQueryParams.js +52 -0
- package/package.json +1 -1
- package/dist/models/MediaConfigBitrate.d.ts +0 -16
- package/dist/models/MediaConfigBitrate.js +0 -20
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { BaseAPI } from '../../../../../common/BaseAPI';
|
|
2
2
|
import Configuration from '../../../../../common/Configuration';
|
|
3
|
+
import CustomdataApi from './customdata/CustomdataApi';
|
|
3
4
|
import BitmovinResponse from '../../../../../models/BitmovinResponse';
|
|
4
5
|
import LiveEncodingHeartbeatWebhook from '../../../../../models/LiveEncodingHeartbeatWebhook';
|
|
5
6
|
import PaginationResponse from '../../../../../models/PaginationResponse';
|
|
6
7
|
import { LiveEncodingHeartbeatWebhookListQueryParams, LiveEncodingHeartbeatWebhookListQueryParamsBuilder } from './LiveEncodingHeartbeatWebhookListQueryParams';
|
|
8
|
+
import { LiveEncodingHeartbeatWebhookListByEncodingIdQueryParams, LiveEncodingHeartbeatWebhookListByEncodingIdQueryParamsBuilder } from './LiveEncodingHeartbeatWebhookListByEncodingIdQueryParams';
|
|
7
9
|
/**
|
|
8
10
|
* LiveEncodingHeartbeatApi - object-oriented interface
|
|
9
11
|
* @export
|
|
@@ -11,6 +13,7 @@ import { LiveEncodingHeartbeatWebhookListQueryParams, LiveEncodingHeartbeatWebho
|
|
|
11
13
|
* @extends {BaseAPI}
|
|
12
14
|
*/
|
|
13
15
|
export default class LiveEncodingHeartbeatApi extends BaseAPI {
|
|
16
|
+
customdata: CustomdataApi;
|
|
14
17
|
constructor(configuration: Configuration);
|
|
15
18
|
/**
|
|
16
19
|
* @summary Create 'Live Encoding Heartbeat' Webhook
|
|
@@ -19,6 +22,22 @@ export default class LiveEncodingHeartbeatApi extends BaseAPI {
|
|
|
19
22
|
* @memberof LiveEncodingHeartbeatApi
|
|
20
23
|
*/
|
|
21
24
|
create(liveEncodingHeartbeatWebhook?: LiveEncodingHeartbeatWebhook): Promise<LiveEncodingHeartbeatWebhook>;
|
|
25
|
+
/**
|
|
26
|
+
* @summary Create 'Live Encoding Heartbeat' Webhook for a specific Encoding
|
|
27
|
+
* @param {string} encodingId Id of the encoding
|
|
28
|
+
* @param {LiveEncodingHeartbeatWebhook} liveEncodingHeartbeatWebhook The 'Live Encoding Heartbeat' Webhook to be added.
|
|
29
|
+
* @throws {BitmovinError}
|
|
30
|
+
* @memberof LiveEncodingHeartbeatApi
|
|
31
|
+
*/
|
|
32
|
+
createByEncodingId(encodingId: string, liveEncodingHeartbeatWebhook?: LiveEncodingHeartbeatWebhook): Promise<LiveEncodingHeartbeatWebhook>;
|
|
33
|
+
/**
|
|
34
|
+
* @summary Delete 'Live Encoding Heartbeat' Webhook for a specific Encoding
|
|
35
|
+
* @param {string} encodingId Id of the encoding
|
|
36
|
+
* @param {string} webhookId Id of the webhook
|
|
37
|
+
* @throws {BitmovinError}
|
|
38
|
+
* @memberof LiveEncodingHeartbeatApi
|
|
39
|
+
*/
|
|
40
|
+
deleteByEncodingIdAndWebhookId(encodingId: string, webhookId: string): Promise<BitmovinResponse>;
|
|
22
41
|
/**
|
|
23
42
|
* @summary Delete 'Live Encoding Heartbeat' Webhook
|
|
24
43
|
* @param {string} webhookId Id of the webhook
|
|
@@ -26,6 +45,14 @@ export default class LiveEncodingHeartbeatApi extends BaseAPI {
|
|
|
26
45
|
* @memberof LiveEncodingHeartbeatApi
|
|
27
46
|
*/
|
|
28
47
|
deleteByWebhookId(webhookId: string): Promise<BitmovinResponse>;
|
|
48
|
+
/**
|
|
49
|
+
* @summary Get 'Live Encoding Heartbeat' Webhook details for a specific Encoding
|
|
50
|
+
* @param {string} encodingId Id of the encoding
|
|
51
|
+
* @param {string} webhookId Id of the webhook
|
|
52
|
+
* @throws {BitmovinError}
|
|
53
|
+
* @memberof LiveEncodingHeartbeatApi
|
|
54
|
+
*/
|
|
55
|
+
getByEncodingIdAndWebhookId(encodingId: string, webhookId: string): Promise<LiveEncodingHeartbeatWebhook>;
|
|
29
56
|
/**
|
|
30
57
|
* @summary Get 'Live Encoding Heartbeat' Webhook details
|
|
31
58
|
* @param {string} webhookId Id of the webhook
|
|
@@ -40,4 +67,12 @@ export default class LiveEncodingHeartbeatApi extends BaseAPI {
|
|
|
40
67
|
* @memberof LiveEncodingHeartbeatApi
|
|
41
68
|
*/
|
|
42
69
|
list(queryParameters?: LiveEncodingHeartbeatWebhookListQueryParams | ((q: LiveEncodingHeartbeatWebhookListQueryParamsBuilder) => LiveEncodingHeartbeatWebhookListQueryParamsBuilder)): Promise<PaginationResponse<LiveEncodingHeartbeatWebhook>>;
|
|
70
|
+
/**
|
|
71
|
+
* @summary List 'Live Encoding Heartbeat' Webhooks for a specific Encoding
|
|
72
|
+
* @param {string} encodingId Id of the encoding
|
|
73
|
+
* @param {*} [queryParameters] query parameters for filtering, sorting and pagination
|
|
74
|
+
* @throws {BitmovinError}
|
|
75
|
+
* @memberof LiveEncodingHeartbeatApi
|
|
76
|
+
*/
|
|
77
|
+
listByEncodingId(encodingId: string, queryParameters?: LiveEncodingHeartbeatWebhookListByEncodingIdQueryParams | ((q: LiveEncodingHeartbeatWebhookListByEncodingIdQueryParamsBuilder) => LiveEncodingHeartbeatWebhookListByEncodingIdQueryParamsBuilder)): Promise<PaginationResponse<LiveEncodingHeartbeatWebhook>>;
|
|
43
78
|
}
|
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const BaseAPI_1 = require("../../../../../common/BaseAPI");
|
|
4
4
|
const Mapper_1 = require("../../../../../common/Mapper");
|
|
5
|
+
const CustomdataApi_1 = require("./customdata/CustomdataApi");
|
|
5
6
|
const BitmovinResponse_1 = require("../../../../../models/BitmovinResponse");
|
|
6
7
|
const LiveEncodingHeartbeatWebhook_1 = require("../../../../../models/LiveEncodingHeartbeatWebhook");
|
|
7
8
|
const PaginationResponse_1 = require("../../../../../models/PaginationResponse");
|
|
8
9
|
const LiveEncodingHeartbeatWebhookListQueryParams_1 = require("./LiveEncodingHeartbeatWebhookListQueryParams");
|
|
10
|
+
const LiveEncodingHeartbeatWebhookListByEncodingIdQueryParams_1 = require("./LiveEncodingHeartbeatWebhookListByEncodingIdQueryParams");
|
|
9
11
|
/**
|
|
10
12
|
* LiveEncodingHeartbeatApi - object-oriented interface
|
|
11
13
|
* @export
|
|
@@ -15,6 +17,7 @@ const LiveEncodingHeartbeatWebhookListQueryParams_1 = require("./LiveEncodingHea
|
|
|
15
17
|
class LiveEncodingHeartbeatApi extends BaseAPI_1.BaseAPI {
|
|
16
18
|
constructor(configuration) {
|
|
17
19
|
super(configuration);
|
|
20
|
+
this.customdata = new CustomdataApi_1.default(configuration);
|
|
18
21
|
}
|
|
19
22
|
/**
|
|
20
23
|
* @summary Create 'Live Encoding Heartbeat' Webhook
|
|
@@ -27,6 +30,37 @@ class LiveEncodingHeartbeatApi extends BaseAPI_1.BaseAPI {
|
|
|
27
30
|
return (0, Mapper_1.map)(response, LiveEncodingHeartbeatWebhook_1.default);
|
|
28
31
|
});
|
|
29
32
|
}
|
|
33
|
+
/**
|
|
34
|
+
* @summary Create 'Live Encoding Heartbeat' Webhook for a specific Encoding
|
|
35
|
+
* @param {string} encodingId Id of the encoding
|
|
36
|
+
* @param {LiveEncodingHeartbeatWebhook} liveEncodingHeartbeatWebhook The 'Live Encoding Heartbeat' Webhook to be added.
|
|
37
|
+
* @throws {BitmovinError}
|
|
38
|
+
* @memberof LiveEncodingHeartbeatApi
|
|
39
|
+
*/
|
|
40
|
+
createByEncodingId(encodingId, liveEncodingHeartbeatWebhook) {
|
|
41
|
+
const pathParamMap = {
|
|
42
|
+
encoding_id: encodingId
|
|
43
|
+
};
|
|
44
|
+
return this.restClient.post('/notifications/webhooks/encoding/encodings/{encoding_id}/live-encoding-heartbeat', pathParamMap, liveEncodingHeartbeatWebhook).then((response) => {
|
|
45
|
+
return (0, Mapper_1.map)(response, LiveEncodingHeartbeatWebhook_1.default);
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* @summary Delete 'Live Encoding Heartbeat' Webhook for a specific Encoding
|
|
50
|
+
* @param {string} encodingId Id of the encoding
|
|
51
|
+
* @param {string} webhookId Id of the webhook
|
|
52
|
+
* @throws {BitmovinError}
|
|
53
|
+
* @memberof LiveEncodingHeartbeatApi
|
|
54
|
+
*/
|
|
55
|
+
deleteByEncodingIdAndWebhookId(encodingId, webhookId) {
|
|
56
|
+
const pathParamMap = {
|
|
57
|
+
encoding_id: encodingId,
|
|
58
|
+
webhook_id: webhookId
|
|
59
|
+
};
|
|
60
|
+
return this.restClient.delete('/notifications/webhooks/encoding/encodings/{encoding_id}/live-encoding-heartbeat/{webhook_id}', pathParamMap).then((response) => {
|
|
61
|
+
return (0, Mapper_1.map)(response, BitmovinResponse_1.default);
|
|
62
|
+
});
|
|
63
|
+
}
|
|
30
64
|
/**
|
|
31
65
|
* @summary Delete 'Live Encoding Heartbeat' Webhook
|
|
32
66
|
* @param {string} webhookId Id of the webhook
|
|
@@ -41,6 +75,22 @@ class LiveEncodingHeartbeatApi extends BaseAPI_1.BaseAPI {
|
|
|
41
75
|
return (0, Mapper_1.map)(response, BitmovinResponse_1.default);
|
|
42
76
|
});
|
|
43
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* @summary Get 'Live Encoding Heartbeat' Webhook details for a specific Encoding
|
|
80
|
+
* @param {string} encodingId Id of the encoding
|
|
81
|
+
* @param {string} webhookId Id of the webhook
|
|
82
|
+
* @throws {BitmovinError}
|
|
83
|
+
* @memberof LiveEncodingHeartbeatApi
|
|
84
|
+
*/
|
|
85
|
+
getByEncodingIdAndWebhookId(encodingId, webhookId) {
|
|
86
|
+
const pathParamMap = {
|
|
87
|
+
encoding_id: encodingId,
|
|
88
|
+
webhook_id: webhookId
|
|
89
|
+
};
|
|
90
|
+
return this.restClient.get('/notifications/webhooks/encoding/encodings/{encoding_id}/live-encoding-heartbeat/{webhook_id}', pathParamMap).then((response) => {
|
|
91
|
+
return (0, Mapper_1.map)(response, LiveEncodingHeartbeatWebhook_1.default);
|
|
92
|
+
});
|
|
93
|
+
}
|
|
44
94
|
/**
|
|
45
95
|
* @summary Get 'Live Encoding Heartbeat' Webhook details
|
|
46
96
|
* @param {string} webhookId Id of the webhook
|
|
@@ -73,5 +123,27 @@ class LiveEncodingHeartbeatApi extends BaseAPI_1.BaseAPI {
|
|
|
73
123
|
return new PaginationResponse_1.default(response, LiveEncodingHeartbeatWebhook_1.default);
|
|
74
124
|
});
|
|
75
125
|
}
|
|
126
|
+
/**
|
|
127
|
+
* @summary List 'Live Encoding Heartbeat' Webhooks for a specific Encoding
|
|
128
|
+
* @param {string} encodingId Id of the encoding
|
|
129
|
+
* @param {*} [queryParameters] query parameters for filtering, sorting and pagination
|
|
130
|
+
* @throws {BitmovinError}
|
|
131
|
+
* @memberof LiveEncodingHeartbeatApi
|
|
132
|
+
*/
|
|
133
|
+
listByEncodingId(encodingId, queryParameters) {
|
|
134
|
+
const pathParamMap = {
|
|
135
|
+
encoding_id: encodingId
|
|
136
|
+
};
|
|
137
|
+
let queryParams = {};
|
|
138
|
+
if (typeof queryParameters === 'function') {
|
|
139
|
+
queryParams = queryParameters(new LiveEncodingHeartbeatWebhookListByEncodingIdQueryParams_1.LiveEncodingHeartbeatWebhookListByEncodingIdQueryParamsBuilder()).buildQueryParams();
|
|
140
|
+
}
|
|
141
|
+
else if (queryParameters) {
|
|
142
|
+
queryParams = queryParameters;
|
|
143
|
+
}
|
|
144
|
+
return this.restClient.get('/notifications/webhooks/encoding/encodings/{encoding_id}/live-encoding-heartbeat', pathParamMap, queryParams).then((response) => {
|
|
145
|
+
return new PaginationResponse_1.default(response, LiveEncodingHeartbeatWebhook_1.default);
|
|
146
|
+
});
|
|
147
|
+
}
|
|
76
148
|
}
|
|
77
149
|
exports.default = LiveEncodingHeartbeatApi;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export interface LiveEncodingHeartbeatWebhookListByEncodingIdQueryParams {
|
|
2
|
+
/**
|
|
3
|
+
* Index of the first item to return, starting at 0. Default is 0
|
|
4
|
+
* @type {number}
|
|
5
|
+
* @memberof LiveEncodingHeartbeatWebhookListByEncodingIdQueryParams
|
|
6
|
+
*/
|
|
7
|
+
offset?: number | undefined;
|
|
8
|
+
/**
|
|
9
|
+
* Maximum number of items to return. Default is 25, maximum is 100
|
|
10
|
+
* @type {number}
|
|
11
|
+
* @memberof LiveEncodingHeartbeatWebhookListByEncodingIdQueryParams
|
|
12
|
+
*/
|
|
13
|
+
limit?: number | undefined;
|
|
14
|
+
}
|
|
15
|
+
export declare class LiveEncodingHeartbeatWebhookListByEncodingIdQueryParamsBuilder {
|
|
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(): LiveEncodingHeartbeatWebhookListByEncodingIdQueryParams;
|
|
28
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LiveEncodingHeartbeatWebhookListByEncodingIdQueryParamsBuilder = void 0;
|
|
4
|
+
class LiveEncodingHeartbeatWebhookListByEncodingIdQueryParamsBuilder {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.internalParams = {};
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @param offset Index of the first item to return, starting at 0. Default is 0
|
|
11
|
+
*/
|
|
12
|
+
offset(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
|
+
limit(limit) {
|
|
21
|
+
this.internalParams.limit = limit;
|
|
22
|
+
return this;
|
|
23
|
+
}
|
|
24
|
+
buildQueryParams() {
|
|
25
|
+
return this.internalParams;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.LiveEncodingHeartbeatWebhookListByEncodingIdQueryParamsBuilder = LiveEncodingHeartbeatWebhookListByEncodingIdQueryParamsBuilder;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { BaseAPI } from '../../../../../../common/BaseAPI';
|
|
2
|
+
import Configuration from '../../../../../../common/Configuration';
|
|
3
|
+
import CustomData from '../../../../../../models/CustomData';
|
|
4
|
+
/**
|
|
5
|
+
* CustomdataApi - object-oriented interface
|
|
6
|
+
* @export
|
|
7
|
+
* @class CustomdataApi
|
|
8
|
+
* @extends {BaseAPI}
|
|
9
|
+
*/
|
|
10
|
+
export default class CustomdataApi extends BaseAPI {
|
|
11
|
+
constructor(configuration: Configuration);
|
|
12
|
+
/**
|
|
13
|
+
* @summary Get 'Live Encoding Heartbeat' Webhook Custom Data for a specific Encoding
|
|
14
|
+
* @param {string} encodingId Id of the encoding
|
|
15
|
+
* @param {string} webhookId Id of the webhook
|
|
16
|
+
* @throws {BitmovinError}
|
|
17
|
+
* @memberof CustomdataApi
|
|
18
|
+
*/
|
|
19
|
+
getCustomDataByEncodingIdAndWebhookId(encodingId: string, webhookId: string): Promise<CustomData>;
|
|
20
|
+
/**
|
|
21
|
+
* @summary Get 'Live Encoding Heartbeat' Webhook Custom Data
|
|
22
|
+
* @param {string} webhookId Id of the webhook
|
|
23
|
+
* @throws {BitmovinError}
|
|
24
|
+
* @memberof CustomdataApi
|
|
25
|
+
*/
|
|
26
|
+
getCustomDataByWebhookId(webhookId: string): Promise<CustomData>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const BaseAPI_1 = require("../../../../../../common/BaseAPI");
|
|
4
|
+
const Mapper_1 = require("../../../../../../common/Mapper");
|
|
5
|
+
const CustomData_1 = require("../../../../../../models/CustomData");
|
|
6
|
+
/**
|
|
7
|
+
* CustomdataApi - object-oriented interface
|
|
8
|
+
* @export
|
|
9
|
+
* @class CustomdataApi
|
|
10
|
+
* @extends {BaseAPI}
|
|
11
|
+
*/
|
|
12
|
+
class CustomdataApi extends BaseAPI_1.BaseAPI {
|
|
13
|
+
constructor(configuration) {
|
|
14
|
+
super(configuration);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @summary Get 'Live Encoding Heartbeat' Webhook Custom Data for a specific Encoding
|
|
18
|
+
* @param {string} encodingId Id of the encoding
|
|
19
|
+
* @param {string} webhookId Id of the webhook
|
|
20
|
+
* @throws {BitmovinError}
|
|
21
|
+
* @memberof CustomdataApi
|
|
22
|
+
*/
|
|
23
|
+
getCustomDataByEncodingIdAndWebhookId(encodingId, webhookId) {
|
|
24
|
+
const pathParamMap = {
|
|
25
|
+
encoding_id: encodingId,
|
|
26
|
+
webhook_id: webhookId
|
|
27
|
+
};
|
|
28
|
+
return this.restClient.get('/notifications/webhooks/encoding/encodings/{encoding_id}/live-encoding-heartbeat/{webhook_id}/customData', pathParamMap).then((response) => {
|
|
29
|
+
return (0, Mapper_1.map)(response, CustomData_1.default);
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @summary Get 'Live Encoding Heartbeat' Webhook Custom Data
|
|
34
|
+
* @param {string} webhookId Id of the webhook
|
|
35
|
+
* @throws {BitmovinError}
|
|
36
|
+
* @memberof CustomdataApi
|
|
37
|
+
*/
|
|
38
|
+
getCustomDataByWebhookId(webhookId) {
|
|
39
|
+
const pathParamMap = {
|
|
40
|
+
webhook_id: webhookId
|
|
41
|
+
};
|
|
42
|
+
return this.restClient.get('/notifications/webhooks/encoding/encodings/live-encoding-heartbeat/{webhook_id}/customData', pathParamMap).then((response) => {
|
|
43
|
+
return (0, Mapper_1.map)(response, CustomData_1.default);
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.default = CustomdataApi;
|
|
@@ -3,6 +3,7 @@ import Configuration from '../common/Configuration';
|
|
|
3
3
|
import ChannelsApi from './channels/ChannelsApi';
|
|
4
4
|
import LicensesApi from './licenses/LicensesApi';
|
|
5
5
|
import CustomBuildsApi from './customBuilds/CustomBuildsApi';
|
|
6
|
+
import TestingApi from './testing/TestingApi';
|
|
6
7
|
/**
|
|
7
8
|
* PlayerApi - object-oriented interface
|
|
8
9
|
* @export
|
|
@@ -13,5 +14,6 @@ export default class PlayerApi extends BaseAPI {
|
|
|
13
14
|
channels: ChannelsApi;
|
|
14
15
|
licenses: LicensesApi;
|
|
15
16
|
customBuilds: CustomBuildsApi;
|
|
17
|
+
testing: TestingApi;
|
|
16
18
|
constructor(configuration: Configuration);
|
|
17
19
|
}
|
package/dist/player/PlayerApi.js
CHANGED
|
@@ -4,6 +4,7 @@ const BaseAPI_1 = require("../common/BaseAPI");
|
|
|
4
4
|
const ChannelsApi_1 = require("./channels/ChannelsApi");
|
|
5
5
|
const LicensesApi_1 = require("./licenses/LicensesApi");
|
|
6
6
|
const CustomBuildsApi_1 = require("./customBuilds/CustomBuildsApi");
|
|
7
|
+
const TestingApi_1 = require("./testing/TestingApi");
|
|
7
8
|
/**
|
|
8
9
|
* PlayerApi - object-oriented interface
|
|
9
10
|
* @export
|
|
@@ -16,6 +17,7 @@ class PlayerApi extends BaseAPI_1.BaseAPI {
|
|
|
16
17
|
this.channels = new ChannelsApi_1.default(configuration);
|
|
17
18
|
this.licenses = new LicensesApi_1.default(configuration);
|
|
18
19
|
this.customBuilds = new CustomBuildsApi_1.default(configuration);
|
|
20
|
+
this.testing = new TestingApi_1.default(configuration);
|
|
19
21
|
}
|
|
20
22
|
}
|
|
21
23
|
exports.default = PlayerApi;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BaseAPI } from '../../common/BaseAPI';
|
|
2
|
+
import Configuration from '../../common/Configuration';
|
|
3
|
+
import CodecCompatibilityApi from './codecCompatibility/CodecCompatibilityApi';
|
|
4
|
+
/**
|
|
5
|
+
* TestingApi - object-oriented interface
|
|
6
|
+
* @export
|
|
7
|
+
* @class TestingApi
|
|
8
|
+
* @extends {BaseAPI}
|
|
9
|
+
*/
|
|
10
|
+
export default class TestingApi extends BaseAPI {
|
|
11
|
+
codecCompatibility: CodecCompatibilityApi;
|
|
12
|
+
constructor(configuration: Configuration);
|
|
13
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const BaseAPI_1 = require("../../common/BaseAPI");
|
|
4
|
+
const CodecCompatibilityApi_1 = require("./codecCompatibility/CodecCompatibilityApi");
|
|
5
|
+
/**
|
|
6
|
+
* TestingApi - object-oriented interface
|
|
7
|
+
* @export
|
|
8
|
+
* @class TestingApi
|
|
9
|
+
* @extends {BaseAPI}
|
|
10
|
+
*/
|
|
11
|
+
class TestingApi extends BaseAPI_1.BaseAPI {
|
|
12
|
+
constructor(configuration) {
|
|
13
|
+
super(configuration);
|
|
14
|
+
this.codecCompatibility = new CodecCompatibilityApi_1.default(configuration);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.default = TestingApi;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BaseAPI } from '../../../common/BaseAPI';
|
|
2
|
+
import Configuration from '../../../common/Configuration';
|
|
3
|
+
import PccReport from '../../../models/PccReport';
|
|
4
|
+
import { PccReportGetQueryParams, PccReportGetQueryParamsBuilder } from './PccReportGetQueryParams';
|
|
5
|
+
/**
|
|
6
|
+
* CodecCompatibilityApi - object-oriented interface
|
|
7
|
+
* @export
|
|
8
|
+
* @class CodecCompatibilityApi
|
|
9
|
+
* @extends {BaseAPI}
|
|
10
|
+
*/
|
|
11
|
+
export default class CodecCompatibilityApi extends BaseAPI {
|
|
12
|
+
constructor(configuration: Configuration);
|
|
13
|
+
/**
|
|
14
|
+
* @summary Get Codec Compatibility Report
|
|
15
|
+
* @param {*} [queryParameters] query parameters for filtering, sorting and pagination
|
|
16
|
+
* @throws {BitmovinError}
|
|
17
|
+
* @memberof CodecCompatibilityApi
|
|
18
|
+
*/
|
|
19
|
+
get(queryParameters?: PccReportGetQueryParams | ((q: PccReportGetQueryParamsBuilder) => PccReportGetQueryParamsBuilder)): Promise<PccReport>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const BaseAPI_1 = require("../../../common/BaseAPI");
|
|
4
|
+
const Mapper_1 = require("../../../common/Mapper");
|
|
5
|
+
const PccReport_1 = require("../../../models/PccReport");
|
|
6
|
+
const PccReportGetQueryParams_1 = require("./PccReportGetQueryParams");
|
|
7
|
+
/**
|
|
8
|
+
* CodecCompatibilityApi - object-oriented interface
|
|
9
|
+
* @export
|
|
10
|
+
* @class CodecCompatibilityApi
|
|
11
|
+
* @extends {BaseAPI}
|
|
12
|
+
*/
|
|
13
|
+
class CodecCompatibilityApi extends BaseAPI_1.BaseAPI {
|
|
14
|
+
constructor(configuration) {
|
|
15
|
+
super(configuration);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @summary Get Codec Compatibility Report
|
|
19
|
+
* @param {*} [queryParameters] query parameters for filtering, sorting and pagination
|
|
20
|
+
* @throws {BitmovinError}
|
|
21
|
+
* @memberof CodecCompatibilityApi
|
|
22
|
+
*/
|
|
23
|
+
get(queryParameters) {
|
|
24
|
+
let queryParams = {};
|
|
25
|
+
if (typeof queryParameters === 'function') {
|
|
26
|
+
queryParams = queryParameters(new PccReportGetQueryParams_1.PccReportGetQueryParamsBuilder()).buildQueryParams();
|
|
27
|
+
}
|
|
28
|
+
else if (queryParameters) {
|
|
29
|
+
queryParams = queryParameters;
|
|
30
|
+
}
|
|
31
|
+
return this.restClient.get('/player/testing/codec-compatibility', {}, queryParams).then((response) => {
|
|
32
|
+
return (0, Mapper_1.map)(response, PccReport_1.default);
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.default = CodecCompatibilityApi;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export interface PccReportGetQueryParams {
|
|
2
|
+
/**
|
|
3
|
+
* Include pools with only prerelease browser evidence. Available to every report reader. Literal true or false.
|
|
4
|
+
* @type {boolean}
|
|
5
|
+
* @memberof PccReportGetQueryParams
|
|
6
|
+
*/
|
|
7
|
+
includePrerelease?: boolean | undefined;
|
|
8
|
+
/**
|
|
9
|
+
* Keep pools with a device answer in at least one selected cell. Literal true or false.
|
|
10
|
+
* @type {boolean}
|
|
11
|
+
* @memberof PccReportGetQueryParams
|
|
12
|
+
*/
|
|
13
|
+
reportedOnly?: boolean | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* Select only HDR columns. Literal true or false.
|
|
16
|
+
* @type {boolean}
|
|
17
|
+
* @memberof PccReportGetQueryParams
|
|
18
|
+
*/
|
|
19
|
+
hdrOnly?: boolean | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Trimmed case-insensitive substring of the codec identifier.
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof PccReportGetQueryParams
|
|
24
|
+
*/
|
|
25
|
+
codec?: string | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Trimmed case-insensitive substring of the published device name and qualifier.
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof PccReportGetQueryParams
|
|
30
|
+
*/
|
|
31
|
+
device?: string | undefined;
|
|
32
|
+
}
|
|
33
|
+
export declare class PccReportGetQueryParamsBuilder {
|
|
34
|
+
private internalParams;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @param includePrerelease Include pools with only prerelease browser evidence. Available to every report reader. Literal true or false.
|
|
38
|
+
*/
|
|
39
|
+
includePrerelease(includePrerelease: boolean): this;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @param reportedOnly Keep pools with a device answer in at least one selected cell. Literal true or false.
|
|
43
|
+
*/
|
|
44
|
+
reportedOnly(reportedOnly: boolean): this;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @param hdrOnly Select only HDR columns. Literal true or false.
|
|
48
|
+
*/
|
|
49
|
+
hdrOnly(hdrOnly: boolean): this;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @param codec Trimmed case-insensitive substring of the codec identifier.
|
|
53
|
+
*/
|
|
54
|
+
codec(codec: string): this;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @param device Trimmed case-insensitive substring of the published device name and qualifier.
|
|
58
|
+
*/
|
|
59
|
+
device(device: string): this;
|
|
60
|
+
buildQueryParams(): PccReportGetQueryParams;
|
|
61
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PccReportGetQueryParamsBuilder = void 0;
|
|
4
|
+
class PccReportGetQueryParamsBuilder {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.internalParams = {};
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @param includePrerelease Include pools with only prerelease browser evidence. Available to every report reader. Literal true or false.
|
|
11
|
+
*/
|
|
12
|
+
includePrerelease(includePrerelease) {
|
|
13
|
+
this.internalParams.includePrerelease = includePrerelease;
|
|
14
|
+
return this;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @param reportedOnly Keep pools with a device answer in at least one selected cell. Literal true or false.
|
|
19
|
+
*/
|
|
20
|
+
reportedOnly(reportedOnly) {
|
|
21
|
+
this.internalParams.reportedOnly = reportedOnly;
|
|
22
|
+
return this;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @param hdrOnly Select only HDR columns. Literal true or false.
|
|
27
|
+
*/
|
|
28
|
+
hdrOnly(hdrOnly) {
|
|
29
|
+
this.internalParams.hdrOnly = hdrOnly;
|
|
30
|
+
return this;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @param codec Trimmed case-insensitive substring of the codec identifier.
|
|
35
|
+
*/
|
|
36
|
+
codec(codec) {
|
|
37
|
+
this.internalParams.codec = codec;
|
|
38
|
+
return this;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @param device Trimmed case-insensitive substring of the published device name and qualifier.
|
|
43
|
+
*/
|
|
44
|
+
device(device) {
|
|
45
|
+
this.internalParams.device = device;
|
|
46
|
+
return this;
|
|
47
|
+
}
|
|
48
|
+
buildQueryParams() {
|
|
49
|
+
return this.internalParams;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.PccReportGetQueryParamsBuilder = PccReportGetQueryParamsBuilder;
|
package/package.json
CHANGED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The supported bitrate
|
|
3
|
-
* @export
|
|
4
|
-
* @enum {string}
|
|
5
|
-
*/
|
|
6
|
-
export declare enum MediaConfigBitrate {
|
|
7
|
-
MCB_160000 = "160000",
|
|
8
|
-
MCB_192000 = "192000",
|
|
9
|
-
MCB_224000 = "224000",
|
|
10
|
-
MCB_256000 = "256000",
|
|
11
|
-
MCB_288000 = "288000",
|
|
12
|
-
MCB_320000 = "320000",
|
|
13
|
-
MCB_384000 = "384000",
|
|
14
|
-
MCB_448000 = "448000"
|
|
15
|
-
}
|
|
16
|
-
export default MediaConfigBitrate;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MediaConfigBitrate = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* The supported bitrate
|
|
6
|
-
* @export
|
|
7
|
-
* @enum {string}
|
|
8
|
-
*/
|
|
9
|
-
var MediaConfigBitrate;
|
|
10
|
-
(function (MediaConfigBitrate) {
|
|
11
|
-
MediaConfigBitrate["MCB_160000"] = "160000";
|
|
12
|
-
MediaConfigBitrate["MCB_192000"] = "192000";
|
|
13
|
-
MediaConfigBitrate["MCB_224000"] = "224000";
|
|
14
|
-
MediaConfigBitrate["MCB_256000"] = "256000";
|
|
15
|
-
MediaConfigBitrate["MCB_288000"] = "288000";
|
|
16
|
-
MediaConfigBitrate["MCB_320000"] = "320000";
|
|
17
|
-
MediaConfigBitrate["MCB_384000"] = "384000";
|
|
18
|
-
MediaConfigBitrate["MCB_448000"] = "448000";
|
|
19
|
-
})(MediaConfigBitrate || (exports.MediaConfigBitrate = MediaConfigBitrate = {}));
|
|
20
|
-
exports.default = MediaConfigBitrate;
|