@bitmovin/api-sdk 1.167.0 → 1.169.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 (37) hide show
  1. package/README.md +1 -1
  2. package/dist/bitmovin-api-sdk.browser.js +500 -41
  3. package/dist/bitmovin-api-sdk.browser.min.js +1 -1
  4. package/dist/common/RestClient.js +1 -1
  5. package/dist/encoding/encodings/live/LiveApi.d.ts +2 -0
  6. package/dist/encoding/encodings/live/LiveApi.js +2 -0
  7. package/dist/encoding/encodings/live/hd/HdApi.d.ts +28 -0
  8. package/dist/encoding/encodings/live/hd/HdApi.js +64 -0
  9. package/dist/encoding/statistics/encodings/live/LiveApi.d.ts +2 -0
  10. package/dist/encoding/statistics/encodings/live/LiveApi.js +2 -0
  11. package/dist/encoding/statistics/encodings/live/options/LiveOptionsStatisticsListByDateRangeQueryParams.d.ts +50 -0
  12. package/dist/encoding/statistics/encodings/live/options/LiveOptionsStatisticsListByDateRangeQueryParams.js +45 -0
  13. package/dist/encoding/statistics/encodings/live/options/OptionsApi.d.ts +28 -0
  14. package/dist/encoding/statistics/encodings/live/options/OptionsApi.js +68 -0
  15. package/dist/models/AdAnalyticsAttribute.d.ts +1 -0
  16. package/dist/models/AdAnalyticsAttribute.js +1 -0
  17. package/dist/models/AnalyticsAdsImpressionSample.d.ts +6 -0
  18. package/dist/models/AnalyticsAdsImpressionSample.js +1 -0
  19. package/dist/models/AnalyticsAttribute.d.ts +1 -0
  20. package/dist/models/AnalyticsAttribute.js +1 -0
  21. package/dist/models/AnalyticsImpressionSample.d.ts +6 -0
  22. package/dist/models/AnalyticsImpressionSample.js +1 -0
  23. package/dist/models/LiveEncodingOptionsStatistics.d.ts +26 -0
  24. package/dist/models/LiveEncodingOptionsStatistics.js +21 -0
  25. package/dist/models/LiveOptionsBreakdownEntry.d.ts +20 -0
  26. package/dist/models/LiveOptionsBreakdownEntry.js +21 -0
  27. package/dist/models/LiveOptionsEntry.d.ts +14 -0
  28. package/dist/models/LiveOptionsEntry.js +19 -0
  29. package/dist/models/LiveOptionsStatistics.d.ts +21 -0
  30. package/dist/models/LiveOptionsStatistics.js +22 -0
  31. package/dist/models/LiveOptionsSummary.d.ts +14 -0
  32. package/dist/models/LiveOptionsSummary.js +20 -0
  33. package/dist/models/StartLiveChannelEncodingRequest.d.ts +9 -0
  34. package/dist/models/StartLiveChannelEncodingRequest.js +36 -0
  35. package/dist/models/index.d.ts +6 -0
  36. package/dist/models/index.js +6 -0
  37. package/package.json +1 -1
@@ -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.167.0',
243
+ 'X-Api-Client-Version': '1.169.0',
244
244
  'Content-Type': 'application/json'
245
245
  };
246
246
  if (tenantOrgId) {
@@ -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,28 @@
1
+ import { BaseAPI } from '../../../../common/BaseAPI';
2
+ import Configuration from '../../../../common/Configuration';
3
+ import BitmovinResponse from '../../../../models/BitmovinResponse';
4
+ import StartLiveChannelEncodingRequest from '../../../../models/StartLiveChannelEncodingRequest';
5
+ /**
6
+ * HdApi - object-oriented interface
7
+ * @export
8
+ * @class HdApi
9
+ * @extends {BaseAPI}
10
+ */
11
+ export default class HdApi extends BaseAPI {
12
+ constructor(configuration: Configuration);
13
+ /**
14
+ * @summary Live Encoding Start Details
15
+ * @param {string} encodingId Id of the encoding
16
+ * @throws {BitmovinError}
17
+ * @memberof HdApi
18
+ */
19
+ getStartRequest(encodingId: string): Promise<StartLiveChannelEncodingRequest>;
20
+ /**
21
+ * @summary Start Live Encoding
22
+ * @param {string} encodingId Id of the encoding
23
+ * @param {StartLiveChannelEncodingRequest} startLiveChannelEncodingRequest Live Encoding startup options
24
+ * @throws {BitmovinError}
25
+ * @memberof HdApi
26
+ */
27
+ start(encodingId: string, startLiveChannelEncodingRequest?: StartLiveChannelEncodingRequest): Promise<BitmovinResponse>;
28
+ }
@@ -0,0 +1,64 @@
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 StartLiveChannelEncodingRequest_1 = require("../../../../models/StartLiveChannelEncodingRequest");
22
+ /**
23
+ * HdApi - object-oriented interface
24
+ * @export
25
+ * @class HdApi
26
+ * @extends {BaseAPI}
27
+ */
28
+ var HdApi = /** @class */ (function (_super) {
29
+ __extends(HdApi, _super);
30
+ function HdApi(configuration) {
31
+ return _super.call(this, configuration) || this;
32
+ }
33
+ /**
34
+ * @summary Live Encoding Start Details
35
+ * @param {string} encodingId Id of the encoding
36
+ * @throws {BitmovinError}
37
+ * @memberof HdApi
38
+ */
39
+ HdApi.prototype.getStartRequest = function (encodingId) {
40
+ var pathParamMap = {
41
+ encoding_id: encodingId
42
+ };
43
+ return this.restClient.get('/encoding/encodings/{encoding_id}/live/hd/start', pathParamMap).then(function (response) {
44
+ return (0, Mapper_1.map)(response, StartLiveChannelEncodingRequest_1.default);
45
+ });
46
+ };
47
+ /**
48
+ * @summary Start Live Encoding
49
+ * @param {string} encodingId Id of the encoding
50
+ * @param {StartLiveChannelEncodingRequest} startLiveChannelEncodingRequest Live Encoding startup options
51
+ * @throws {BitmovinError}
52
+ * @memberof HdApi
53
+ */
54
+ HdApi.prototype.start = function (encodingId, startLiveChannelEncodingRequest) {
55
+ var pathParamMap = {
56
+ encoding_id: encodingId
57
+ };
58
+ return this.restClient.post('/encoding/encodings/{encoding_id}/live/hd/start', pathParamMap, startLiveChannelEncodingRequest).then(function (response) {
59
+ return (0, Mapper_1.map)(response, BitmovinResponse_1.default);
60
+ });
61
+ };
62
+ return HdApi;
63
+ }(BaseAPI_1.BaseAPI));
64
+ exports.default = HdApi;
@@ -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);
@@ -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;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @export
3
+ * @class LiveOptionsEntry
4
+ */
5
+ export declare class LiveOptionsEntry {
6
+ /**
7
+ * Live option units used (required)
8
+ * @type {number}
9
+ * @memberof LiveOptionsEntry
10
+ */
11
+ unitsUsed?: number;
12
+ constructor(obj?: Partial<LiveOptionsEntry>);
13
+ }
14
+ export default LiveOptionsEntry;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LiveOptionsEntry = void 0;
4
+ var Mapper_1 = require("../common/Mapper");
5
+ /**
6
+ * @export
7
+ * @class LiveOptionsEntry
8
+ */
9
+ var LiveOptionsEntry = /** @class */ (function () {
10
+ function LiveOptionsEntry(obj) {
11
+ if (!obj) {
12
+ return;
13
+ }
14
+ this.unitsUsed = (0, Mapper_1.map)(obj.unitsUsed);
15
+ }
16
+ return LiveOptionsEntry;
17
+ }());
18
+ exports.LiveOptionsEntry = LiveOptionsEntry;
19
+ exports.default = LiveOptionsEntry;
@@ -0,0 +1,21 @@
1
+ import LiveOptionsBreakdownEntry from './LiveOptionsBreakdownEntry';
2
+ import LiveOptionsSummary from './LiveOptionsSummary';
3
+ /**
4
+ * @export
5
+ * @class LiveOptionsStatistics
6
+ */
7
+ export declare class LiveOptionsStatistics {
8
+ /**
9
+ * @type {LiveOptionsSummary}
10
+ * @memberof LiveOptionsStatistics
11
+ */
12
+ summary?: LiveOptionsSummary;
13
+ /**
14
+ * Live options statistics aggregated per day (required)
15
+ * @type {LiveOptionsBreakdownEntry[]}
16
+ * @memberof LiveOptionsStatistics
17
+ */
18
+ breakdown?: LiveOptionsBreakdownEntry[];
19
+ constructor(obj?: Partial<LiveOptionsStatistics>);
20
+ }
21
+ export default LiveOptionsStatistics;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LiveOptionsStatistics = void 0;
4
+ var Mapper_1 = require("../common/Mapper");
5
+ var LiveOptionsBreakdownEntry_1 = require("./LiveOptionsBreakdownEntry");
6
+ var LiveOptionsSummary_1 = require("./LiveOptionsSummary");
7
+ /**
8
+ * @export
9
+ * @class LiveOptionsStatistics
10
+ */
11
+ var LiveOptionsStatistics = /** @class */ (function () {
12
+ function LiveOptionsStatistics(obj) {
13
+ if (!obj) {
14
+ return;
15
+ }
16
+ this.summary = (0, Mapper_1.map)(obj.summary, LiveOptionsSummary_1.default);
17
+ this.breakdown = (0, Mapper_1.mapArray)(obj.breakdown, LiveOptionsBreakdownEntry_1.default);
18
+ }
19
+ return LiveOptionsStatistics;
20
+ }());
21
+ exports.LiveOptionsStatistics = LiveOptionsStatistics;
22
+ exports.default = LiveOptionsStatistics;
@@ -0,0 +1,14 @@
1
+ import LiveOptionsEntry from './LiveOptionsEntry';
2
+ /**
3
+ * @export
4
+ * @class LiveOptionsSummary
5
+ */
6
+ export declare class LiveOptionsSummary {
7
+ /**
8
+ * @type {LiveOptionsEntry}
9
+ * @memberof LiveOptionsSummary
10
+ */
11
+ hd?: LiveOptionsEntry;
12
+ constructor(obj?: Partial<LiveOptionsSummary>);
13
+ }
14
+ export default LiveOptionsSummary;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LiveOptionsSummary = void 0;
4
+ var Mapper_1 = require("../common/Mapper");
5
+ var LiveOptionsEntry_1 = require("./LiveOptionsEntry");
6
+ /**
7
+ * @export
8
+ * @class LiveOptionsSummary
9
+ */
10
+ var LiveOptionsSummary = /** @class */ (function () {
11
+ function LiveOptionsSummary(obj) {
12
+ if (!obj) {
13
+ return;
14
+ }
15
+ this.hd = (0, Mapper_1.map)(obj.hd, LiveOptionsEntry_1.default);
16
+ }
17
+ return LiveOptionsSummary;
18
+ }());
19
+ exports.LiveOptionsSummary = LiveOptionsSummary;
20
+ exports.default = LiveOptionsSummary;