@bitmovin/api-sdk 1.166.0 → 1.168.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 (69) hide show
  1. package/README.md +1 -1
  2. package/dist/bitmovin-api-sdk.browser.js +504 -88
  3. package/dist/bitmovin-api-sdk.browser.min.js +1 -1
  4. package/dist/common/RestClient.js +1 -1
  5. package/dist/encoding/encodings/EncodingListQueryParams.d.ts +4 -4
  6. package/dist/encoding/encodings/EncodingListQueryParams.js +2 -2
  7. package/dist/encoding/encodings/live/LiveApi.d.ts +2 -0
  8. package/dist/encoding/encodings/live/LiveApi.js +2 -0
  9. package/dist/encoding/encodings/live/hd/HdApi.d.ts +19 -0
  10. package/dist/encoding/encodings/live/hd/HdApi.js +48 -0
  11. package/dist/encoding/encodings/muxings/mp4/Mp4Api.d.ts +1 -1
  12. package/dist/encoding/encodings/muxings/mp4/Mp4Api.js +1 -1
  13. package/dist/encoding/statistics/encodings/live/LiveApi.d.ts +2 -0
  14. package/dist/encoding/statistics/encodings/live/LiveApi.js +2 -0
  15. package/dist/encoding/statistics/encodings/live/options/LiveOptionsStatisticsListByDateRangeQueryParams.d.ts +50 -0
  16. package/dist/encoding/statistics/encodings/live/options/LiveOptionsStatisticsListByDateRangeQueryParams.js +45 -0
  17. package/dist/encoding/statistics/encodings/live/options/OptionsApi.d.ts +28 -0
  18. package/dist/encoding/statistics/encodings/live/options/OptionsApi.js +68 -0
  19. package/dist/models/AdAnalyticsAttribute.d.ts +1 -0
  20. package/dist/models/AdAnalyticsAttribute.js +1 -0
  21. package/dist/models/AnalyticsAdsImpressionSample.d.ts +6 -0
  22. package/dist/models/AnalyticsAdsImpressionSample.js +1 -0
  23. package/dist/models/AnalyticsAttribute.d.ts +1 -0
  24. package/dist/models/AnalyticsAttribute.js +1 -0
  25. package/dist/models/AnalyticsImpressionSample.d.ts +6 -0
  26. package/dist/models/AnalyticsImpressionSample.js +1 -0
  27. package/dist/models/AnalyticsLicense.d.ts +7 -1
  28. package/dist/models/AnalyticsLicense.js +1 -0
  29. package/dist/models/AnalyticsVirtualLicense.d.ts +6 -0
  30. package/dist/models/AnalyticsVirtualLicense.js +1 -0
  31. package/dist/models/LiveEncodingOptionsStatistics.d.ts +26 -0
  32. package/dist/models/LiveEncodingOptionsStatistics.js +21 -0
  33. package/dist/models/LiveOptionsBreakdownEntry.d.ts +20 -0
  34. package/dist/models/LiveOptionsBreakdownEntry.js +21 -0
  35. package/dist/models/LiveOptionsEntry.d.ts +14 -0
  36. package/dist/models/LiveOptionsEntry.js +19 -0
  37. package/dist/models/LiveOptionsStatistics.d.ts +21 -0
  38. package/dist/models/LiveOptionsStatistics.js +22 -0
  39. package/dist/models/LiveOptionsSummary.d.ts +14 -0
  40. package/dist/models/LiveOptionsSummary.js +20 -0
  41. package/dist/models/Mp4Muxing.d.ts +1 -1
  42. package/dist/models/PrewarmedEncoderPool.d.ts +6 -0
  43. package/dist/models/PrewarmedEncoderPool.js +1 -0
  44. package/dist/models/StartLiveChannelEncodingRequest.d.ts +9 -0
  45. package/dist/models/StartLiveChannelEncodingRequest.js +36 -0
  46. package/dist/models/StreamsLiveCreateRequest.d.ts +2 -2
  47. package/dist/models/StreamsLiveCreateRequest.js +1 -1
  48. package/dist/models/StreamsLiveResponse.d.ts +3 -3
  49. package/dist/models/StreamsLiveResponse.js +2 -2
  50. package/dist/models/StreamsLiveUpdateRequest.d.ts +2 -2
  51. package/dist/models/StreamsLiveUpdateRequest.js +1 -1
  52. package/dist/models/{StreamsConfigPlayerStyle.d.ts → StreamsStyleConfigPlayerStyle.d.ts} +11 -11
  53. package/dist/models/{StreamsConfigPlayerStyle.js → StreamsStyleConfigPlayerStyle.js} +7 -7
  54. package/dist/models/StreamsStyleConfigResponse.d.ts +38 -0
  55. package/dist/models/{StreamsConfigResponse.js → StreamsStyleConfigResponse.js} +9 -9
  56. package/dist/models/StreamsVideoCreateRequest.d.ts +2 -2
  57. package/dist/models/StreamsVideoCreateRequest.js +1 -1
  58. package/dist/models/StreamsVideoResponse.d.ts +3 -3
  59. package/dist/models/StreamsVideoResponse.js +2 -2
  60. package/dist/models/StreamsVideoUpdateRequest.d.ts +2 -2
  61. package/dist/models/StreamsVideoUpdateRequest.js +1 -1
  62. package/dist/models/index.d.ts +8 -2
  63. package/dist/models/index.js +8 -2
  64. package/dist/streams/live/LiveApi.d.ts +1 -1
  65. package/dist/streams/live/LiveApi.js +1 -1
  66. package/dist/streams/video/VideoApi.d.ts +1 -1
  67. package/dist/streams/video/VideoApi.js +1 -1
  68. package/package.json +1 -1
  69. package/dist/models/StreamsConfigResponse.d.ts +0 -38
@@ -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.166.0',
243
+ 'X-Api-Client-Version': '1.168.0',
244
244
  'Content-Type': 'application/json'
245
245
  };
246
246
  if (tenantOrgId) {
@@ -14,13 +14,13 @@ export interface EncodingListQueryParams {
14
14
  */
15
15
  limit?: number | undefined;
16
16
  /**
17
- * A boolean indicating whether the total count should be returned as well. Default is true
17
+ * A boolean indicating whether the total count should be returned as well. Default is false. Setting this flag to true is discouraged.
18
18
  * @type {boolean}
19
19
  * @memberof EncodingListQueryParams
20
20
  */
21
21
  includeTotalCount?: boolean | undefined;
22
22
  /**
23
- * Order list result according an encoding resource attribute. The fields that can be used for sorting are: + `id` + `startedAt` + `createdAt` + `modifiedAt` + `finishedAt` + `type` + `name` + `status` + `cloudRegion` + `encoderVersion`
23
+ * Order list result according an encoding resource attribute. The fields that can be used for sorting are: + `id` + `startedAt` + `createdAt` + `modifiedAt` + `finishedAt` + `type` + `name` + `status` + `cloudRegion` + `encoderVersion`
24
24
  * @type {string}
25
25
  * @memberof EncodingListQueryParams
26
26
  */
@@ -130,12 +130,12 @@ export declare class EncodingListQueryParamsBuilder {
130
130
  limit(limit: number): this;
131
131
  /**
132
132
  *
133
- * @param includeTotalCount A boolean indicating whether the total count should be returned as well. Default is true
133
+ * @param includeTotalCount A boolean indicating whether the total count should be returned as well. Default is false. Setting this flag to true is discouraged.
134
134
  */
135
135
  includeTotalCount(includeTotalCount: boolean): this;
136
136
  /**
137
137
  *
138
- * @param sort Order list result according an encoding resource attribute. The fields that can be used for sorting are: + `id` + `startedAt` + `createdAt` + `modifiedAt` + `finishedAt` + `type` + `name` + `status` + `cloudRegion` + `encoderVersion`
138
+ * @param sort Order list result according an encoding resource attribute. The fields that can be used for sorting are: + `id` + `startedAt` + `createdAt` + `modifiedAt` + `finishedAt` + `type` + `name` + `status` + `cloudRegion` + `encoderVersion`
139
139
  */
140
140
  sort(sort: string): this;
141
141
  /**
@@ -23,7 +23,7 @@ var EncodingListQueryParamsBuilder = /** @class */ (function () {
23
23
  };
24
24
  /**
25
25
  *
26
- * @param includeTotalCount A boolean indicating whether the total count should be returned as well. Default is true
26
+ * @param includeTotalCount A boolean indicating whether the total count should be returned as well. Default is false. Setting this flag to true is discouraged.
27
27
  */
28
28
  EncodingListQueryParamsBuilder.prototype.includeTotalCount = function (includeTotalCount) {
29
29
  this.internalParams.includeTotalCount = includeTotalCount;
@@ -31,7 +31,7 @@ var EncodingListQueryParamsBuilder = /** @class */ (function () {
31
31
  };
32
32
  /**
33
33
  *
34
- * @param sort Order list result according an encoding resource attribute. The fields that can be used for sorting are: + `id` + `startedAt` + `createdAt` + `modifiedAt` + `finishedAt` + `type` + `name` + `status` + `cloudRegion` + `encoderVersion`
34
+ * @param sort Order list result according an encoding resource attribute. The fields that can be used for sorting are: + `id` + `startedAt` + `createdAt` + `modifiedAt` + `finishedAt` + `type` + `name` + `status` + `cloudRegion` + `encoderVersion`
35
35
  */
36
36
  EncodingListQueryParamsBuilder.prototype.sort = function (sort) {
37
37
  this.internalParams.sort = sort;
@@ -1,5 +1,6 @@
1
1
  import { BaseAPI } from '../../../common/BaseAPI';
2
2
  import Configuration from '../../../common/Configuration';
3
+ import HdApi from './hd/HdApi';
3
4
  import InsertableContentApi from './insertableContent/InsertableContentApi';
4
5
  import Scte35CueApi from './scte35Cue/Scte35CueApi';
5
6
  import BitmovinResponse from '../../../models/BitmovinResponse';
@@ -12,6 +13,7 @@ import StartLiveEncodingRequest from '../../../models/StartLiveEncodingRequest';
12
13
  * @extends {BaseAPI}
13
14
  */
14
15
  export default class LiveApi extends BaseAPI {
16
+ hd: HdApi;
15
17
  insertableContent: InsertableContentApi;
16
18
  scte35Cue: Scte35CueApi;
17
19
  constructor(configuration: Configuration);
@@ -17,6 +17,7 @@ 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 Mapper_1 = require("../../../common/Mapper");
20
+ var HdApi_1 = require("./hd/HdApi");
20
21
  var InsertableContentApi_1 = require("./insertableContent/InsertableContentApi");
21
22
  var Scte35CueApi_1 = require("./scte35Cue/Scte35CueApi");
22
23
  var BitmovinResponse_1 = require("../../../models/BitmovinResponse");
@@ -32,6 +33,7 @@ var LiveApi = /** @class */ (function (_super) {
32
33
  __extends(LiveApi, _super);
33
34
  function LiveApi(configuration) {
34
35
  var _this = _super.call(this, configuration) || this;
36
+ _this.hd = new HdApi_1.default(configuration);
35
37
  _this.insertableContent = new InsertableContentApi_1.default(configuration);
36
38
  _this.scte35Cue = new Scte35CueApi_1.default(configuration);
37
39
  return _this;
@@ -0,0 +1,19 @@
1
+ import { BaseAPI } from '../../../../common/BaseAPI';
2
+ import Configuration from '../../../../common/Configuration';
3
+ import StartLiveChannelEncodingRequest from '../../../../models/StartLiveChannelEncodingRequest';
4
+ /**
5
+ * HdApi - object-oriented interface
6
+ * @export
7
+ * @class HdApi
8
+ * @extends {BaseAPI}
9
+ */
10
+ export default class HdApi extends BaseAPI {
11
+ constructor(configuration: Configuration);
12
+ /**
13
+ * @summary Live Encoding Start Details
14
+ * @param {string} encodingId Id of the encoding
15
+ * @throws {BitmovinError}
16
+ * @memberof HdApi
17
+ */
18
+ getStartRequest(encodingId: string): Promise<StartLiveChannelEncodingRequest>;
19
+ }
@@ -0,0 +1,48 @@
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 StartLiveChannelEncodingRequest_1 = require("../../../../models/StartLiveChannelEncodingRequest");
21
+ /**
22
+ * HdApi - object-oriented interface
23
+ * @export
24
+ * @class HdApi
25
+ * @extends {BaseAPI}
26
+ */
27
+ var HdApi = /** @class */ (function (_super) {
28
+ __extends(HdApi, _super);
29
+ function HdApi(configuration) {
30
+ return _super.call(this, configuration) || this;
31
+ }
32
+ /**
33
+ * @summary Live Encoding Start Details
34
+ * @param {string} encodingId Id of the encoding
35
+ * @throws {BitmovinError}
36
+ * @memberof HdApi
37
+ */
38
+ HdApi.prototype.getStartRequest = function (encodingId) {
39
+ var pathParamMap = {
40
+ encoding_id: encodingId
41
+ };
42
+ return this.restClient.get('/encoding/encodings/{encoding_id}/live/hd/start', pathParamMap).then(function (response) {
43
+ return (0, Mapper_1.map)(response, StartLiveChannelEncodingRequest_1.default);
44
+ });
45
+ };
46
+ return HdApi;
47
+ }(BaseAPI_1.BaseAPI));
48
+ exports.default = HdApi;
@@ -21,7 +21,7 @@ export default class Mp4Api extends BaseAPI {
21
21
  /**
22
22
  * @summary Add MP4 muxing
23
23
  * @param {string} encodingId Id of the encoding.
24
- * @param {Mp4Muxing} mp4Muxing The MP4 muxing to be created
24
+ * @param {Mp4Muxing} mp4Muxing The progressive MP4 muxing to be created
25
25
  * @throws {BitmovinError}
26
26
  * @memberof Mp4Api
27
27
  */
@@ -42,7 +42,7 @@ var Mp4Api = /** @class */ (function (_super) {
42
42
  /**
43
43
  * @summary Add MP4 muxing
44
44
  * @param {string} encodingId Id of the encoding.
45
- * @param {Mp4Muxing} mp4Muxing The MP4 muxing to be created
45
+ * @param {Mp4Muxing} mp4Muxing The progressive MP4 muxing to be created
46
46
  * @throws {BitmovinError}
47
47
  * @memberof Mp4Api
48
48
  */
@@ -1,6 +1,7 @@
1
1
  import { BaseAPI } from '../../../../common/BaseAPI';
2
2
  import Configuration from '../../../../common/Configuration';
3
3
  import DailyApi from './daily/DailyApi';
4
+ import OptionsApi from './options/OptionsApi';
4
5
  import EncodingStatisticsLive from '../../../../models/EncodingStatisticsLive';
5
6
  import PaginationResponse from '../../../../models/PaginationResponse';
6
7
  import { EncodingStatisticsLiveListQueryParams, EncodingStatisticsLiveListQueryParamsBuilder } from './EncodingStatisticsLiveListQueryParams';
@@ -13,6 +14,7 @@ import { EncodingStatisticsLiveListByDateRangeQueryParams, EncodingStatisticsLiv
13
14
  */
14
15
  export default class LiveApi extends BaseAPI {
15
16
  daily: DailyApi;
17
+ options: OptionsApi;
16
18
  constructor(configuration: Configuration);
17
19
  /**
18
20
  * @summary List Live Encoding Statistics
@@ -17,6 +17,7 @@ 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 DailyApi_1 = require("./daily/DailyApi");
20
+ var OptionsApi_1 = require("./options/OptionsApi");
20
21
  var EncodingStatisticsLive_1 = require("../../../../models/EncodingStatisticsLive");
21
22
  var PaginationResponse_1 = require("../../../../models/PaginationResponse");
22
23
  var EncodingStatisticsLiveListQueryParams_1 = require("./EncodingStatisticsLiveListQueryParams");
@@ -32,6 +33,7 @@ var LiveApi = /** @class */ (function (_super) {
32
33
  function LiveApi(configuration) {
33
34
  var _this = _super.call(this, configuration) || this;
34
35
  _this.daily = new DailyApi_1.default(configuration);
36
+ _this.options = new OptionsApi_1.default(configuration);
35
37
  return _this;
36
38
  }
37
39
  /**
@@ -0,0 +1,50 @@
1
+ export interface LiveOptionsStatisticsListByDateRangeQueryParams {
2
+ /**
3
+ * Start date, format: yyyy-MM-dd
4
+ * @type {Date}
5
+ * @memberof LiveOptionsStatisticsListByDateRangeQueryParams
6
+ */
7
+ from?: Date | undefined;
8
+ /**
9
+ * End date, format: yyyy-MM-dd
10
+ * @type {Date}
11
+ * @memberof LiveOptionsStatisticsListByDateRangeQueryParams
12
+ */
13
+ to?: Date | undefined;
14
+ /**
15
+ * Index of the first item to return, starting at 0. Default is 0
16
+ * @type {number}
17
+ * @memberof LiveOptionsStatisticsListByDateRangeQueryParams
18
+ */
19
+ offset?: number | undefined;
20
+ /**
21
+ * Maximum number of items to return. Default is 25, maximum is 100
22
+ * @type {number}
23
+ * @memberof LiveOptionsStatisticsListByDateRangeQueryParams
24
+ */
25
+ limit?: number | undefined;
26
+ }
27
+ export declare class LiveOptionsStatisticsListByDateRangeQueryParamsBuilder {
28
+ private internalParams;
29
+ /**
30
+ *
31
+ * @param from Start date, format: yyyy-MM-dd
32
+ */
33
+ from(from: Date): this;
34
+ /**
35
+ *
36
+ * @param to End date, format: yyyy-MM-dd
37
+ */
38
+ to(to: Date): this;
39
+ /**
40
+ *
41
+ * @param offset Index of the first item to return, starting at 0. Default is 0
42
+ */
43
+ offset(offset: number): this;
44
+ /**
45
+ *
46
+ * @param limit Maximum number of items to return. Default is 25, maximum is 100
47
+ */
48
+ limit(limit: number): this;
49
+ buildQueryParams(): LiveOptionsStatisticsListByDateRangeQueryParams;
50
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LiveOptionsStatisticsListByDateRangeQueryParamsBuilder = void 0;
4
+ var LiveOptionsStatisticsListByDateRangeQueryParamsBuilder = /** @class */ (function () {
5
+ function LiveOptionsStatisticsListByDateRangeQueryParamsBuilder() {
6
+ this.internalParams = {};
7
+ }
8
+ /**
9
+ *
10
+ * @param from Start date, format: yyyy-MM-dd
11
+ */
12
+ LiveOptionsStatisticsListByDateRangeQueryParamsBuilder.prototype.from = function (from) {
13
+ this.internalParams.from = from;
14
+ return this;
15
+ };
16
+ /**
17
+ *
18
+ * @param to End date, format: yyyy-MM-dd
19
+ */
20
+ LiveOptionsStatisticsListByDateRangeQueryParamsBuilder.prototype.to = function (to) {
21
+ this.internalParams.to = to;
22
+ return this;
23
+ };
24
+ /**
25
+ *
26
+ * @param offset Index of the first item to return, starting at 0. Default is 0
27
+ */
28
+ LiveOptionsStatisticsListByDateRangeQueryParamsBuilder.prototype.offset = function (offset) {
29
+ this.internalParams.offset = offset;
30
+ return this;
31
+ };
32
+ /**
33
+ *
34
+ * @param limit Maximum number of items to return. Default is 25, maximum is 100
35
+ */
36
+ LiveOptionsStatisticsListByDateRangeQueryParamsBuilder.prototype.limit = function (limit) {
37
+ this.internalParams.limit = limit;
38
+ return this;
39
+ };
40
+ LiveOptionsStatisticsListByDateRangeQueryParamsBuilder.prototype.buildQueryParams = function () {
41
+ return this.internalParams;
42
+ };
43
+ return LiveOptionsStatisticsListByDateRangeQueryParamsBuilder;
44
+ }());
45
+ exports.LiveOptionsStatisticsListByDateRangeQueryParamsBuilder = LiveOptionsStatisticsListByDateRangeQueryParamsBuilder;
@@ -0,0 +1,28 @@
1
+ import { BaseAPI } from '../../../../../common/BaseAPI';
2
+ import Configuration from '../../../../../common/Configuration';
3
+ import LiveEncodingOptionsStatistics from '../../../../../models/LiveEncodingOptionsStatistics';
4
+ import LiveOptionsStatistics from '../../../../../models/LiveOptionsStatistics';
5
+ import { LiveOptionsStatisticsListByDateRangeQueryParams, LiveOptionsStatisticsListByDateRangeQueryParamsBuilder } from './LiveOptionsStatisticsListByDateRangeQueryParams';
6
+ /**
7
+ * OptionsApi - object-oriented interface
8
+ * @export
9
+ * @class OptionsApi
10
+ * @extends {BaseAPI}
11
+ */
12
+ export default class OptionsApi extends BaseAPI {
13
+ constructor(configuration: Configuration);
14
+ /**
15
+ * @summary List live options encoding statistics for a given encoding
16
+ * @param {string} encodingId Id of the encoding
17
+ * @throws {BitmovinError}
18
+ * @memberof OptionsApi
19
+ */
20
+ get(encodingId: string): Promise<LiveEncodingOptionsStatistics>;
21
+ /**
22
+ * @summary List live options encoding statistics within specific dates
23
+ * @param {*} [queryParameters] query parameters for filtering, sorting and pagination
24
+ * @throws {BitmovinError}
25
+ * @memberof OptionsApi
26
+ */
27
+ listByDateRange(queryParameters?: LiveOptionsStatisticsListByDateRangeQueryParams | ((q: LiveOptionsStatisticsListByDateRangeQueryParamsBuilder) => LiveOptionsStatisticsListByDateRangeQueryParamsBuilder)): Promise<LiveOptionsStatistics>;
28
+ }
@@ -0,0 +1,68 @@
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 LiveEncodingOptionsStatistics_1 = require("../../../../../models/LiveEncodingOptionsStatistics");
21
+ var LiveOptionsStatistics_1 = require("../../../../../models/LiveOptionsStatistics");
22
+ var LiveOptionsStatisticsListByDateRangeQueryParams_1 = require("./LiveOptionsStatisticsListByDateRangeQueryParams");
23
+ /**
24
+ * OptionsApi - object-oriented interface
25
+ * @export
26
+ * @class OptionsApi
27
+ * @extends {BaseAPI}
28
+ */
29
+ var OptionsApi = /** @class */ (function (_super) {
30
+ __extends(OptionsApi, _super);
31
+ function OptionsApi(configuration) {
32
+ return _super.call(this, configuration) || this;
33
+ }
34
+ /**
35
+ * @summary List live options encoding statistics for a given encoding
36
+ * @param {string} encodingId Id of the encoding
37
+ * @throws {BitmovinError}
38
+ * @memberof OptionsApi
39
+ */
40
+ OptionsApi.prototype.get = function (encodingId) {
41
+ var pathParamMap = {
42
+ encoding_id: encodingId
43
+ };
44
+ return this.restClient.get('/encoding/statistics/encodings/live/{encoding_id}/options', pathParamMap).then(function (response) {
45
+ return (0, Mapper_1.map)(response, LiveEncodingOptionsStatistics_1.default);
46
+ });
47
+ };
48
+ /**
49
+ * @summary List live options encoding statistics within specific dates
50
+ * @param {*} [queryParameters] query parameters for filtering, sorting and pagination
51
+ * @throws {BitmovinError}
52
+ * @memberof OptionsApi
53
+ */
54
+ OptionsApi.prototype.listByDateRange = function (queryParameters) {
55
+ var queryParams = {};
56
+ if (typeof queryParameters === 'function') {
57
+ queryParams = queryParameters(new LiveOptionsStatisticsListByDateRangeQueryParams_1.LiveOptionsStatisticsListByDateRangeQueryParamsBuilder()).buildQueryParams();
58
+ }
59
+ else if (queryParameters) {
60
+ queryParams = queryParameters;
61
+ }
62
+ return this.restClient.get('/encoding/statistics/encodings/live/options', {}, queryParams).then(function (response) {
63
+ return (0, Mapper_1.map)(response, LiveOptionsStatistics_1.default);
64
+ });
65
+ };
66
+ return OptionsApi;
67
+ }(BaseAPI_1.BaseAPI));
68
+ exports.default = OptionsApi;
@@ -125,6 +125,7 @@ export declare enum AdAnalyticsAttribute {
125
125
  SCALE_FACTOR = "SCALE_FACTOR",
126
126
  SCREEN_HEIGHT = "SCREEN_HEIGHT",
127
127
  SCREEN_WIDTH = "SCREEN_WIDTH",
128
+ SCREEN_ORIENTATION = "SCREEN_ORIENTATION",
128
129
  SIZE = "SIZE",
129
130
  SKIP_PERCENTAGE = "SKIP_PERCENTAGE",
130
131
  SKIP_POSITION = "SKIP_POSITION",
@@ -129,6 +129,7 @@ var AdAnalyticsAttribute;
129
129
  AdAnalyticsAttribute["SCALE_FACTOR"] = "SCALE_FACTOR";
130
130
  AdAnalyticsAttribute["SCREEN_HEIGHT"] = "SCREEN_HEIGHT";
131
131
  AdAnalyticsAttribute["SCREEN_WIDTH"] = "SCREEN_WIDTH";
132
+ AdAnalyticsAttribute["SCREEN_ORIENTATION"] = "SCREEN_ORIENTATION";
132
133
  AdAnalyticsAttribute["SIZE"] = "SIZE";
133
134
  AdAnalyticsAttribute["SKIP_PERCENTAGE"] = "SKIP_PERCENTAGE";
134
135
  AdAnalyticsAttribute["SKIP_POSITION"] = "SKIP_POSITION";
@@ -741,6 +741,12 @@ export declare class AnalyticsAdsImpressionSample {
741
741
  * @memberof AnalyticsAdsImpressionSample
742
742
  */
743
743
  screenWidth?: number;
744
+ /**
745
+ * Screen orientation (PORTRAIT, LANDSCAPE OR UNKNOWN)
746
+ * @type {string}
747
+ * @memberof AnalyticsAdsImpressionSample
748
+ */
749
+ screenOrientation?: string;
744
750
  /**
745
751
  * Video size (FULLSCREEN or WINDOW)
746
752
  * @type {string}
@@ -134,6 +134,7 @@ var AnalyticsAdsImpressionSample = /** @class */ (function () {
134
134
  this.region = (0, Mapper_1.map)(obj.region);
135
135
  this.screenHeight = (0, Mapper_1.map)(obj.screenHeight);
136
136
  this.screenWidth = (0, Mapper_1.map)(obj.screenWidth);
137
+ this.screenOrientation = (0, Mapper_1.map)(obj.screenOrientation);
137
138
  this.size = (0, Mapper_1.map)(obj.size);
138
139
  this.skipPercentage = (0, Mapper_1.map)(obj.skipPercentage);
139
140
  this.skipPosition = (0, Mapper_1.map)(obj.skipPosition);
@@ -97,6 +97,7 @@ export declare enum AnalyticsAttribute {
97
97
  SCALE_FACTOR = "SCALE_FACTOR",
98
98
  SCREEN_HEIGHT = "SCREEN_HEIGHT",
99
99
  SCREEN_WIDTH = "SCREEN_WIDTH",
100
+ SCREEN_ORIENTATION = "SCREEN_ORIENTATION",
100
101
  SEEKED = "SEEKED",
101
102
  SEQUENCE_NUMBER = "SEQUENCE_NUMBER",
102
103
  SIZE = "SIZE",
@@ -101,6 +101,7 @@ var AnalyticsAttribute;
101
101
  AnalyticsAttribute["SCALE_FACTOR"] = "SCALE_FACTOR";
102
102
  AnalyticsAttribute["SCREEN_HEIGHT"] = "SCREEN_HEIGHT";
103
103
  AnalyticsAttribute["SCREEN_WIDTH"] = "SCREEN_WIDTH";
104
+ AnalyticsAttribute["SCREEN_ORIENTATION"] = "SCREEN_ORIENTATION";
104
105
  AnalyticsAttribute["SEEKED"] = "SEEKED";
105
106
  AnalyticsAttribute["SEQUENCE_NUMBER"] = "SEQUENCE_NUMBER";
106
107
  AnalyticsAttribute["SIZE"] = "SIZE";
@@ -508,6 +508,12 @@ export declare class AnalyticsImpressionSample {
508
508
  * @memberof AnalyticsImpressionSample
509
509
  */
510
510
  screenWidth?: number;
511
+ /**
512
+ * Screen orientation (PORTRAIT, LANDSCAPE OR UNKNOWN)
513
+ * @type {string}
514
+ * @memberof AnalyticsImpressionSample
515
+ */
516
+ screenOrientation?: string;
511
517
  /**
512
518
  * Milliseconds it took the player to seek
513
519
  * @type {number}
@@ -95,6 +95,7 @@ var AnalyticsImpressionSample = /** @class */ (function () {
95
95
  this.region = (0, Mapper_1.map)(obj.region);
96
96
  this.screenHeight = (0, Mapper_1.map)(obj.screenHeight);
97
97
  this.screenWidth = (0, Mapper_1.map)(obj.screenWidth);
98
+ this.screenOrientation = (0, Mapper_1.map)(obj.screenOrientation);
98
99
  this.seeked = (0, Mapper_1.map)(obj.seeked);
99
100
  this.segmentDownloadCount = (0, Mapper_1.map)(obj.segmentDownloadCount);
100
101
  this.segmentDownloadSize = (0, Mapper_1.map)(obj.segmentDownloadSize);
@@ -13,7 +13,7 @@ export declare class AnalyticsLicense {
13
13
  */
14
14
  id?: string;
15
15
  /**
16
- * Creation date of the Analytics License in UTC format
16
+ * Creation date of the Analytics License, returned as ISO 8601 date-time format
17
17
  * @type {Date}
18
18
  * @memberof AnalyticsLicense
19
19
  */
@@ -121,6 +121,12 @@ export declare class AnalyticsLicense {
121
121
  * @memberof AnalyticsLicense
122
122
  */
123
123
  features?: AnalyticsLicenseFeatures;
124
+ /**
125
+ * The expiration date of the license if applicable, returned as ISO 8601 date-time format
126
+ * @type {Date}
127
+ * @memberof AnalyticsLicense
128
+ */
129
+ planExpiredAt?: Date;
124
130
  constructor(obj?: Partial<AnalyticsLicense>);
125
131
  }
126
132
  export default AnalyticsLicense;
@@ -33,6 +33,7 @@ var AnalyticsLicense = /** @class */ (function () {
33
33
  this.orderIndex = (0, Mapper_1.map)(obj.orderIndex);
34
34
  this.rateLimit = (0, Mapper_1.map)(obj.rateLimit);
35
35
  this.features = (0, Mapper_1.map)(obj.features, AnalyticsLicenseFeatures_1.default);
36
+ this.planExpiredAt = (0, Mapper_1.map)(obj.planExpiredAt, Date);
36
37
  }
37
38
  return AnalyticsLicense;
38
39
  }());
@@ -47,6 +47,12 @@ export declare class AnalyticsVirtualLicense {
47
47
  * @memberof AnalyticsVirtualLicense
48
48
  */
49
49
  customDataFieldLabels?: AnalyticsLicenseCustomDataFieldLabels;
50
+ /**
51
+ * The expiration date of the license if applicable, returned as ISO 8601 date-time format
52
+ * @type {Date}
53
+ * @memberof AnalyticsVirtualLicense
54
+ */
55
+ planExpiredAt?: Date;
50
56
  constructor(obj?: Partial<AnalyticsVirtualLicense>);
51
57
  }
52
58
  export default AnalyticsVirtualLicense;
@@ -20,6 +20,7 @@ var AnalyticsVirtualLicense = /** @class */ (function () {
20
20
  this.licenses = (0, Mapper_1.mapArray)(obj.licenses, AnalyticsVirtualLicenseLicensesListItem_1.default);
21
21
  this.customDataFieldsCount = (0, Mapper_1.map)(obj.customDataFieldsCount);
22
22
  this.customDataFieldLabels = (0, Mapper_1.map)(obj.customDataFieldLabels, AnalyticsLicenseCustomDataFieldLabels_1.default);
23
+ this.planExpiredAt = (0, Mapper_1.map)(obj.planExpiredAt, Date);
23
24
  }
24
25
  return AnalyticsVirtualLicense;
25
26
  }());
@@ -0,0 +1,26 @@
1
+ import LiveOptionsType from './LiveOptionsType';
2
+ /**
3
+ * @export
4
+ * @class LiveEncodingOptionsStatistics
5
+ */
6
+ export declare class LiveEncodingOptionsStatistics {
7
+ /**
8
+ * The ID of the encoding (required)
9
+ * @type {string}
10
+ * @memberof LiveEncodingOptionsStatistics
11
+ */
12
+ encodingId?: string;
13
+ /**
14
+ * Live option units used (required)
15
+ * @type {number}
16
+ * @memberof LiveEncodingOptionsStatistics
17
+ */
18
+ unitsUsed?: number;
19
+ /**
20
+ * @type {LiveOptionsType}
21
+ * @memberof LiveEncodingOptionsStatistics
22
+ */
23
+ type?: LiveOptionsType;
24
+ constructor(obj?: Partial<LiveEncodingOptionsStatistics>);
25
+ }
26
+ export default LiveEncodingOptionsStatistics;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LiveEncodingOptionsStatistics = void 0;
4
+ var Mapper_1 = require("../common/Mapper");
5
+ /**
6
+ * @export
7
+ * @class LiveEncodingOptionsStatistics
8
+ */
9
+ var LiveEncodingOptionsStatistics = /** @class */ (function () {
10
+ function LiveEncodingOptionsStatistics(obj) {
11
+ if (!obj) {
12
+ return;
13
+ }
14
+ this.encodingId = (0, Mapper_1.map)(obj.encodingId);
15
+ this.unitsUsed = (0, Mapper_1.map)(obj.unitsUsed);
16
+ this.type = (0, Mapper_1.map)(obj.type);
17
+ }
18
+ return LiveEncodingOptionsStatistics;
19
+ }());
20
+ exports.LiveEncodingOptionsStatistics = LiveEncodingOptionsStatistics;
21
+ exports.default = LiveEncodingOptionsStatistics;
@@ -0,0 +1,20 @@
1
+ import LiveOptionsEntry from './LiveOptionsEntry';
2
+ /**
3
+ * @export
4
+ * @class LiveOptionsBreakdownEntry
5
+ */
6
+ export declare class LiveOptionsBreakdownEntry {
7
+ /**
8
+ * Date, format: yyyy-MM-dd (required)
9
+ * @type {Date}
10
+ * @memberof LiveOptionsBreakdownEntry
11
+ */
12
+ date?: Date;
13
+ /**
14
+ * @type {LiveOptionsEntry}
15
+ * @memberof LiveOptionsBreakdownEntry
16
+ */
17
+ hd?: LiveOptionsEntry;
18
+ constructor(obj?: Partial<LiveOptionsBreakdownEntry>);
19
+ }
20
+ export default LiveOptionsBreakdownEntry;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LiveOptionsBreakdownEntry = void 0;
4
+ var Mapper_1 = require("../common/Mapper");
5
+ var LiveOptionsEntry_1 = require("./LiveOptionsEntry");
6
+ /**
7
+ * @export
8
+ * @class LiveOptionsBreakdownEntry
9
+ */
10
+ var LiveOptionsBreakdownEntry = /** @class */ (function () {
11
+ function LiveOptionsBreakdownEntry(obj) {
12
+ if (!obj) {
13
+ return;
14
+ }
15
+ this.date = (0, Mapper_1.map)(obj.date, Date);
16
+ this.hd = (0, Mapper_1.map)(obj.hd, LiveOptionsEntry_1.default);
17
+ }
18
+ return LiveOptionsBreakdownEntry;
19
+ }());
20
+ exports.LiveOptionsBreakdownEntry = LiveOptionsBreakdownEntry;
21
+ exports.default = LiveOptionsBreakdownEntry;