@bitmovin/api-sdk 1.211.0 → 1.213.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 (51) hide show
  1. package/README.md +1 -1
  2. package/dist/bitmovin-api-sdk.browser.js +904 -34
  3. package/dist/bitmovin-api-sdk.browser.min.js +1 -1
  4. package/dist/common/RestClient.js +1 -1
  5. package/dist/encoding/live/LiveApi.d.ts +2 -0
  6. package/dist/encoding/live/LiveApi.js +2 -0
  7. package/dist/encoding/live/standbyPools/StandbyPoolsApi.d.ts +58 -0
  8. package/dist/encoding/live/standbyPools/StandbyPoolsApi.js +108 -0
  9. package/dist/encoding/live/standbyPools/actions/ActionsApi.d.ts +26 -0
  10. package/dist/encoding/live/standbyPools/actions/ActionsApi.js +62 -0
  11. package/dist/encoding/live/standbyPools/encodings/EncodingsApi.d.ts +31 -0
  12. package/dist/encoding/live/standbyPools/encodings/EncodingsApi.js +75 -0
  13. package/dist/encoding/live/standbyPools/encodings/LiveStandbyPoolEncodingListQueryParams.d.ts +50 -0
  14. package/dist/encoding/live/standbyPools/encodings/LiveStandbyPoolEncodingListQueryParams.js +45 -0
  15. package/dist/encoding/live/standbyPools/logs/LiveStandbyPoolEventLogListQueryParams.d.ts +50 -0
  16. package/dist/encoding/live/standbyPools/logs/LiveStandbyPoolEventLogListQueryParams.js +45 -0
  17. package/dist/encoding/live/standbyPools/logs/LogsApi.d.ts +22 -0
  18. package/dist/encoding/live/standbyPools/logs/LogsApi.js +57 -0
  19. package/dist/models/LiveEncodingStatsEventDetails.d.ts +18 -0
  20. package/dist/models/LiveEncodingStatsEventDetails.js +3 -0
  21. package/dist/models/LiveStandbyPoolDetails.d.ts +15 -0
  22. package/dist/models/LiveStandbyPoolDetails.js +38 -0
  23. package/dist/models/LiveStandbyPoolEncoding.d.ts +47 -0
  24. package/dist/models/LiveStandbyPoolEncoding.js +27 -0
  25. package/dist/models/LiveStandbyPoolEncodingIngestPoint.d.ts +20 -0
  26. package/dist/models/LiveStandbyPoolEncodingIngestPoint.js +20 -0
  27. package/dist/models/LiveStandbyPoolEncodingManifest.d.ts +26 -0
  28. package/dist/models/LiveStandbyPoolEncodingManifest.js +21 -0
  29. package/dist/models/LiveStandbyPoolEncodingManifestType.d.ts +10 -0
  30. package/dist/models/LiveStandbyPoolEncodingManifestType.js +14 -0
  31. package/dist/models/LiveStandbyPoolEncodingStatus.d.ts +16 -0
  32. package/dist/models/LiveStandbyPoolEncodingStatus.js +20 -0
  33. package/dist/models/LiveStandbyPoolEventLog.d.ts +50 -0
  34. package/dist/models/LiveStandbyPoolEventLog.js +25 -0
  35. package/dist/models/LiveStandbyPoolEventLogType.d.ts +11 -0
  36. package/dist/models/LiveStandbyPoolEventLogType.js +15 -0
  37. package/dist/models/LiveStandbyPoolRequest.d.ts +21 -0
  38. package/dist/models/LiveStandbyPoolRequest.js +39 -0
  39. package/dist/models/LiveStandbyPoolResponse.d.ts +45 -0
  40. package/dist/models/LiveStandbyPoolResponse.js +43 -0
  41. package/dist/models/LiveStandbyPoolStatus.d.ts +10 -0
  42. package/dist/models/LiveStandbyPoolStatus.js +14 -0
  43. package/dist/models/LiveStandbyPoolUpdate.d.ts +20 -0
  44. package/dist/models/LiveStandbyPoolUpdate.js +20 -0
  45. package/dist/models/Mp4Muxing.d.ts +0 -6
  46. package/dist/models/Mp4Muxing.js +0 -2
  47. package/dist/models/index.d.ts +12 -1
  48. package/dist/models/index.js +12 -1
  49. package/package.json +1 -1
  50. package/dist/models/TimeCode.d.ts +0 -14
  51. package/dist/models/TimeCode.js +0 -19
@@ -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.211.0',
243
+ 'X-Api-Client-Version': '1.213.0',
244
244
  'Content-Type': 'application/json'
245
245
  };
246
246
  if (tenantOrgId) {
@@ -1,6 +1,7 @@
1
1
  import { BaseAPI } from '../../common/BaseAPI';
2
2
  import Configuration from '../../common/Configuration';
3
3
  import StreamKeysApi from './streamKeys/StreamKeysApi';
4
+ import StandbyPoolsApi from './standbyPools/StandbyPoolsApi';
4
5
  /**
5
6
  * LiveApi - object-oriented interface
6
7
  * @export
@@ -9,5 +10,6 @@ import StreamKeysApi from './streamKeys/StreamKeysApi';
9
10
  */
10
11
  export default class LiveApi extends BaseAPI {
11
12
  streamKeys: StreamKeysApi;
13
+ standbyPools: StandbyPoolsApi;
12
14
  constructor(configuration: Configuration);
13
15
  }
@@ -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 StreamKeysApi_1 = require("./streamKeys/StreamKeysApi");
20
+ var StandbyPoolsApi_1 = require("./standbyPools/StandbyPoolsApi");
20
21
  /**
21
22
  * LiveApi - object-oriented interface
22
23
  * @export
@@ -28,6 +29,7 @@ var LiveApi = /** @class */ (function (_super) {
28
29
  function LiveApi(configuration) {
29
30
  var _this = _super.call(this, configuration) || this;
30
31
  _this.streamKeys = new StreamKeysApi_1.default(configuration);
32
+ _this.standbyPools = new StandbyPoolsApi_1.default(configuration);
31
33
  return _this;
32
34
  }
33
35
  return LiveApi;
@@ -0,0 +1,58 @@
1
+ import { BaseAPI } from '../../../common/BaseAPI';
2
+ import Configuration from '../../../common/Configuration';
3
+ import ActionsApi from './actions/ActionsApi';
4
+ import EncodingsApi from './encodings/EncodingsApi';
5
+ import LogsApi from './logs/LogsApi';
6
+ import BitmovinResponse from '../../../models/BitmovinResponse';
7
+ import LiveStandbyPoolDetails from '../../../models/LiveStandbyPoolDetails';
8
+ import LiveStandbyPoolRequest from '../../../models/LiveStandbyPoolRequest';
9
+ import LiveStandbyPoolResponse from '../../../models/LiveStandbyPoolResponse';
10
+ import LiveStandbyPoolUpdate from '../../../models/LiveStandbyPoolUpdate';
11
+ import PaginationResponse from '../../../models/PaginationResponse';
12
+ /**
13
+ * StandbyPoolsApi - object-oriented interface
14
+ * @export
15
+ * @class StandbyPoolsApi
16
+ * @extends {BaseAPI}
17
+ */
18
+ export default class StandbyPoolsApi extends BaseAPI {
19
+ actions: ActionsApi;
20
+ encodings: EncodingsApi;
21
+ logs: LogsApi;
22
+ constructor(configuration: Configuration);
23
+ /**
24
+ * @summary Create new standby pool
25
+ * @param {LiveStandbyPoolRequest} liveStandbyPoolRequest The pool to be created
26
+ * @throws {BitmovinError}
27
+ * @memberof StandbyPoolsApi
28
+ */
29
+ create(liveStandbyPoolRequest?: LiveStandbyPoolRequest): Promise<LiveStandbyPoolDetails>;
30
+ /**
31
+ * @summary Delete standby pool by id
32
+ * @param {string} poolId Id of the standby pool
33
+ * @throws {BitmovinError}
34
+ * @memberof StandbyPoolsApi
35
+ */
36
+ delete(poolId: string): Promise<BitmovinResponse>;
37
+ /**
38
+ * @summary Get details of a standby pool by id
39
+ * @param {string} poolId Id of the standby pool
40
+ * @throws {BitmovinError}
41
+ * @memberof StandbyPoolsApi
42
+ */
43
+ get(poolId: string): Promise<LiveStandbyPoolDetails>;
44
+ /**
45
+ * @summary List Standby pools
46
+ * @throws {BitmovinError}
47
+ * @memberof StandbyPoolsApi
48
+ */
49
+ list(): Promise<PaginationResponse<LiveStandbyPoolResponse>>;
50
+ /**
51
+ * @summary Partially update standby pool by id
52
+ * @param {string} poolId Id of the standby pool
53
+ * @param {LiveStandbyPoolUpdate} liveStandbyPoolUpdate The updated standby pool object.
54
+ * @throws {BitmovinError}
55
+ * @memberof StandbyPoolsApi
56
+ */
57
+ patch(poolId: string, liveStandbyPoolUpdate?: LiveStandbyPoolUpdate): Promise<LiveStandbyPoolDetails>;
58
+ }
@@ -0,0 +1,108 @@
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 ActionsApi_1 = require("./actions/ActionsApi");
21
+ var EncodingsApi_1 = require("./encodings/EncodingsApi");
22
+ var LogsApi_1 = require("./logs/LogsApi");
23
+ var BitmovinResponse_1 = require("../../../models/BitmovinResponse");
24
+ var LiveStandbyPoolDetails_1 = require("../../../models/LiveStandbyPoolDetails");
25
+ var LiveStandbyPoolResponse_1 = require("../../../models/LiveStandbyPoolResponse");
26
+ var PaginationResponse_1 = require("../../../models/PaginationResponse");
27
+ /**
28
+ * StandbyPoolsApi - object-oriented interface
29
+ * @export
30
+ * @class StandbyPoolsApi
31
+ * @extends {BaseAPI}
32
+ */
33
+ var StandbyPoolsApi = /** @class */ (function (_super) {
34
+ __extends(StandbyPoolsApi, _super);
35
+ function StandbyPoolsApi(configuration) {
36
+ var _this = _super.call(this, configuration) || this;
37
+ _this.actions = new ActionsApi_1.default(configuration);
38
+ _this.encodings = new EncodingsApi_1.default(configuration);
39
+ _this.logs = new LogsApi_1.default(configuration);
40
+ return _this;
41
+ }
42
+ /**
43
+ * @summary Create new standby pool
44
+ * @param {LiveStandbyPoolRequest} liveStandbyPoolRequest The pool to be created
45
+ * @throws {BitmovinError}
46
+ * @memberof StandbyPoolsApi
47
+ */
48
+ StandbyPoolsApi.prototype.create = function (liveStandbyPoolRequest) {
49
+ return this.restClient.post('/encoding/live/standby-pools', {}, liveStandbyPoolRequest).then(function (response) {
50
+ return (0, Mapper_1.map)(response, LiveStandbyPoolDetails_1.default);
51
+ });
52
+ };
53
+ /**
54
+ * @summary Delete standby pool by id
55
+ * @param {string} poolId Id of the standby pool
56
+ * @throws {BitmovinError}
57
+ * @memberof StandbyPoolsApi
58
+ */
59
+ StandbyPoolsApi.prototype.delete = function (poolId) {
60
+ var pathParamMap = {
61
+ pool_id: poolId
62
+ };
63
+ return this.restClient.delete('/encoding/live/standby-pools/{pool_id}', pathParamMap).then(function (response) {
64
+ return (0, Mapper_1.map)(response, BitmovinResponse_1.default);
65
+ });
66
+ };
67
+ /**
68
+ * @summary Get details of a standby pool by id
69
+ * @param {string} poolId Id of the standby pool
70
+ * @throws {BitmovinError}
71
+ * @memberof StandbyPoolsApi
72
+ */
73
+ StandbyPoolsApi.prototype.get = function (poolId) {
74
+ var pathParamMap = {
75
+ pool_id: poolId
76
+ };
77
+ return this.restClient.get('/encoding/live/standby-pools/{pool_id}', pathParamMap).then(function (response) {
78
+ return (0, Mapper_1.map)(response, LiveStandbyPoolDetails_1.default);
79
+ });
80
+ };
81
+ /**
82
+ * @summary List Standby pools
83
+ * @throws {BitmovinError}
84
+ * @memberof StandbyPoolsApi
85
+ */
86
+ StandbyPoolsApi.prototype.list = function () {
87
+ return this.restClient.get('/encoding/live/standby-pools', {}).then(function (response) {
88
+ return new PaginationResponse_1.default(response, LiveStandbyPoolResponse_1.default);
89
+ });
90
+ };
91
+ /**
92
+ * @summary Partially update standby pool by id
93
+ * @param {string} poolId Id of the standby pool
94
+ * @param {LiveStandbyPoolUpdate} liveStandbyPoolUpdate The updated standby pool object.
95
+ * @throws {BitmovinError}
96
+ * @memberof StandbyPoolsApi
97
+ */
98
+ StandbyPoolsApi.prototype.patch = function (poolId, liveStandbyPoolUpdate) {
99
+ var pathParamMap = {
100
+ pool_id: poolId
101
+ };
102
+ return this.restClient.patch('/encoding/live/standby-pools/{pool_id}', pathParamMap, liveStandbyPoolUpdate).then(function (response) {
103
+ return (0, Mapper_1.map)(response, LiveStandbyPoolDetails_1.default);
104
+ });
105
+ };
106
+ return StandbyPoolsApi;
107
+ }(BaseAPI_1.BaseAPI));
108
+ exports.default = StandbyPoolsApi;
@@ -0,0 +1,26 @@
1
+ import { BaseAPI } from '../../../../common/BaseAPI';
2
+ import Configuration from '../../../../common/Configuration';
3
+ import LiveStandbyPoolEncoding from '../../../../models/LiveStandbyPoolEncoding';
4
+ /**
5
+ * ActionsApi - object-oriented interface
6
+ * @export
7
+ * @class ActionsApi
8
+ * @extends {BaseAPI}
9
+ */
10
+ export default class ActionsApi extends BaseAPI {
11
+ constructor(configuration: Configuration);
12
+ /**
13
+ * @summary Acquire an encoding from a standby pool
14
+ * @param {string} poolId Id of the standby pool
15
+ * @throws {BitmovinError}
16
+ * @memberof ActionsApi
17
+ */
18
+ acquireEncoding(poolId: string): Promise<LiveStandbyPoolEncoding>;
19
+ /**
20
+ * @summary Delete error encodings from the standby pool
21
+ * @param {string} poolId Id of the standby pool
22
+ * @throws {BitmovinError}
23
+ * @memberof ActionsApi
24
+ */
25
+ deleteErrorEncodings(poolId: string): Promise<LiveStandbyPoolEncoding>;
26
+ }
@@ -0,0 +1,62 @@
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 LiveStandbyPoolEncoding_1 = require("../../../../models/LiveStandbyPoolEncoding");
21
+ /**
22
+ * ActionsApi - object-oriented interface
23
+ * @export
24
+ * @class ActionsApi
25
+ * @extends {BaseAPI}
26
+ */
27
+ var ActionsApi = /** @class */ (function (_super) {
28
+ __extends(ActionsApi, _super);
29
+ function ActionsApi(configuration) {
30
+ return _super.call(this, configuration) || this;
31
+ }
32
+ /**
33
+ * @summary Acquire an encoding from a standby pool
34
+ * @param {string} poolId Id of the standby pool
35
+ * @throws {BitmovinError}
36
+ * @memberof ActionsApi
37
+ */
38
+ ActionsApi.prototype.acquireEncoding = function (poolId) {
39
+ var pathParamMap = {
40
+ pool_id: poolId
41
+ };
42
+ return this.restClient.post('/encoding/live/standby-pools/{pool_id}/actions/acquire-encoding', pathParamMap).then(function (response) {
43
+ return (0, Mapper_1.map)(response, LiveStandbyPoolEncoding_1.default);
44
+ });
45
+ };
46
+ /**
47
+ * @summary Delete error encodings from the standby pool
48
+ * @param {string} poolId Id of the standby pool
49
+ * @throws {BitmovinError}
50
+ * @memberof ActionsApi
51
+ */
52
+ ActionsApi.prototype.deleteErrorEncodings = function (poolId) {
53
+ var pathParamMap = {
54
+ pool_id: poolId
55
+ };
56
+ return this.restClient.post('/encoding/live/standby-pools/{pool_id}/actions/delete-error-encodings', pathParamMap).then(function (response) {
57
+ return (0, Mapper_1.map)(response, LiveStandbyPoolEncoding_1.default);
58
+ });
59
+ };
60
+ return ActionsApi;
61
+ }(BaseAPI_1.BaseAPI));
62
+ exports.default = ActionsApi;
@@ -0,0 +1,31 @@
1
+ import { BaseAPI } from '../../../../common/BaseAPI';
2
+ import Configuration from '../../../../common/Configuration';
3
+ import BitmovinResponse from '../../../../models/BitmovinResponse';
4
+ import LiveStandbyPoolEncoding from '../../../../models/LiveStandbyPoolEncoding';
5
+ import PaginationResponse from '../../../../models/PaginationResponse';
6
+ import { LiveStandbyPoolEncodingListQueryParams, LiveStandbyPoolEncodingListQueryParamsBuilder } from './LiveStandbyPoolEncodingListQueryParams';
7
+ /**
8
+ * EncodingsApi - object-oriented interface
9
+ * @export
10
+ * @class EncodingsApi
11
+ * @extends {BaseAPI}
12
+ */
13
+ export default class EncodingsApi extends BaseAPI {
14
+ constructor(configuration: Configuration);
15
+ /**
16
+ * @summary Delete encoding from pool by id
17
+ * @param {string} poolId Id of the standby pool
18
+ * @param {string} id Id of the standby pool encoding
19
+ * @throws {BitmovinError}
20
+ * @memberof EncodingsApi
21
+ */
22
+ delete(poolId: string, id: string): Promise<BitmovinResponse>;
23
+ /**
24
+ * @summary List encodings from a standby pool
25
+ * @param {string} poolId Id of the standby pool
26
+ * @param {*} [queryParameters] query parameters for filtering, sorting and pagination
27
+ * @throws {BitmovinError}
28
+ * @memberof EncodingsApi
29
+ */
30
+ list(poolId: string, queryParameters?: LiveStandbyPoolEncodingListQueryParams | ((q: LiveStandbyPoolEncodingListQueryParamsBuilder) => LiveStandbyPoolEncodingListQueryParamsBuilder)): Promise<PaginationResponse<LiveStandbyPoolEncoding>>;
31
+ }
@@ -0,0 +1,75 @@
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 LiveStandbyPoolEncoding_1 = require("../../../../models/LiveStandbyPoolEncoding");
22
+ var PaginationResponse_1 = require("../../../../models/PaginationResponse");
23
+ var LiveStandbyPoolEncodingListQueryParams_1 = require("./LiveStandbyPoolEncodingListQueryParams");
24
+ /**
25
+ * EncodingsApi - object-oriented interface
26
+ * @export
27
+ * @class EncodingsApi
28
+ * @extends {BaseAPI}
29
+ */
30
+ var EncodingsApi = /** @class */ (function (_super) {
31
+ __extends(EncodingsApi, _super);
32
+ function EncodingsApi(configuration) {
33
+ return _super.call(this, configuration) || this;
34
+ }
35
+ /**
36
+ * @summary Delete encoding from pool by id
37
+ * @param {string} poolId Id of the standby pool
38
+ * @param {string} id Id of the standby pool encoding
39
+ * @throws {BitmovinError}
40
+ * @memberof EncodingsApi
41
+ */
42
+ EncodingsApi.prototype.delete = function (poolId, id) {
43
+ var pathParamMap = {
44
+ pool_id: poolId,
45
+ id: id
46
+ };
47
+ return this.restClient.delete('/encoding/live/standby-pools/{pool_id}/encodings/{id}', pathParamMap).then(function (response) {
48
+ return (0, Mapper_1.map)(response, BitmovinResponse_1.default);
49
+ });
50
+ };
51
+ /**
52
+ * @summary List encodings from a standby pool
53
+ * @param {string} poolId Id of the standby pool
54
+ * @param {*} [queryParameters] query parameters for filtering, sorting and pagination
55
+ * @throws {BitmovinError}
56
+ * @memberof EncodingsApi
57
+ */
58
+ EncodingsApi.prototype.list = function (poolId, queryParameters) {
59
+ var pathParamMap = {
60
+ pool_id: poolId
61
+ };
62
+ var queryParams = {};
63
+ if (typeof queryParameters === 'function') {
64
+ queryParams = queryParameters(new LiveStandbyPoolEncodingListQueryParams_1.LiveStandbyPoolEncodingListQueryParamsBuilder()).buildQueryParams();
65
+ }
66
+ else if (queryParameters) {
67
+ queryParams = queryParameters;
68
+ }
69
+ return this.restClient.get('/encoding/live/standby-pools/{pool_id}/encodings', pathParamMap, queryParams).then(function (response) {
70
+ return new PaginationResponse_1.default(response, LiveStandbyPoolEncoding_1.default);
71
+ });
72
+ };
73
+ return EncodingsApi;
74
+ }(BaseAPI_1.BaseAPI));
75
+ exports.default = EncodingsApi;
@@ -0,0 +1,50 @@
1
+ export interface LiveStandbyPoolEncodingListQueryParams {
2
+ /**
3
+ * Index of the first item to return, starting at 0. Default is 0
4
+ * @type {number}
5
+ * @memberof LiveStandbyPoolEncodingListQueryParams
6
+ */
7
+ offset?: number | undefined;
8
+ /**
9
+ * Maximum number of items to return. Default is 25, maximum is 100
10
+ * @type {number}
11
+ * @memberof LiveStandbyPoolEncodingListQueryParams
12
+ */
13
+ limit?: number | undefined;
14
+ /**
15
+ * Order list result according a stream key attribute. The fields that can be used for sorting are: + `createdAt` + `name` + `status`
16
+ * @type {string}
17
+ * @memberof LiveStandbyPoolEncodingListQueryParams
18
+ */
19
+ sort?: string | undefined;
20
+ /**
21
+ * Filter standby encodings by status
22
+ * @type {string}
23
+ * @memberof LiveStandbyPoolEncodingListQueryParams
24
+ */
25
+ status?: string | undefined;
26
+ }
27
+ export declare class LiveStandbyPoolEncodingListQueryParamsBuilder {
28
+ private internalParams;
29
+ /**
30
+ *
31
+ * @param offset Index of the first item to return, starting at 0. Default is 0
32
+ */
33
+ offset(offset: number): this;
34
+ /**
35
+ *
36
+ * @param limit Maximum number of items to return. Default is 25, maximum is 100
37
+ */
38
+ limit(limit: number): this;
39
+ /**
40
+ *
41
+ * @param sort Order list result according a stream key attribute. The fields that can be used for sorting are: + `createdAt` + `name` + `status`
42
+ */
43
+ sort(sort: string): this;
44
+ /**
45
+ *
46
+ * @param status Filter standby encodings by status
47
+ */
48
+ status(status: string): this;
49
+ buildQueryParams(): LiveStandbyPoolEncodingListQueryParams;
50
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LiveStandbyPoolEncodingListQueryParamsBuilder = void 0;
4
+ var LiveStandbyPoolEncodingListQueryParamsBuilder = /** @class */ (function () {
5
+ function LiveStandbyPoolEncodingListQueryParamsBuilder() {
6
+ this.internalParams = {};
7
+ }
8
+ /**
9
+ *
10
+ * @param offset Index of the first item to return, starting at 0. Default is 0
11
+ */
12
+ LiveStandbyPoolEncodingListQueryParamsBuilder.prototype.offset = function (offset) {
13
+ this.internalParams.offset = offset;
14
+ return this;
15
+ };
16
+ /**
17
+ *
18
+ * @param limit Maximum number of items to return. Default is 25, maximum is 100
19
+ */
20
+ LiveStandbyPoolEncodingListQueryParamsBuilder.prototype.limit = function (limit) {
21
+ this.internalParams.limit = limit;
22
+ return this;
23
+ };
24
+ /**
25
+ *
26
+ * @param sort Order list result according a stream key attribute. The fields that can be used for sorting are: + `createdAt` + `name` + `status`
27
+ */
28
+ LiveStandbyPoolEncodingListQueryParamsBuilder.prototype.sort = function (sort) {
29
+ this.internalParams.sort = sort;
30
+ return this;
31
+ };
32
+ /**
33
+ *
34
+ * @param status Filter standby encodings by status
35
+ */
36
+ LiveStandbyPoolEncodingListQueryParamsBuilder.prototype.status = function (status) {
37
+ this.internalParams.status = status;
38
+ return this;
39
+ };
40
+ LiveStandbyPoolEncodingListQueryParamsBuilder.prototype.buildQueryParams = function () {
41
+ return this.internalParams;
42
+ };
43
+ return LiveStandbyPoolEncodingListQueryParamsBuilder;
44
+ }());
45
+ exports.LiveStandbyPoolEncodingListQueryParamsBuilder = LiveStandbyPoolEncodingListQueryParamsBuilder;
@@ -0,0 +1,50 @@
1
+ export interface LiveStandbyPoolEventLogListQueryParams {
2
+ /**
3
+ * Index of the first item to return, starting at 0. Default is 0
4
+ * @type {number}
5
+ * @memberof LiveStandbyPoolEventLogListQueryParams
6
+ */
7
+ offset?: number | undefined;
8
+ /**
9
+ * Maximum number of items to return. Default is 25, maximum is 100
10
+ * @type {number}
11
+ * @memberof LiveStandbyPoolEventLogListQueryParams
12
+ */
13
+ limit?: number | undefined;
14
+ /**
15
+ * Order list result according a event log attribute. The fields that can be used for sorting are: + `createdAt` + `eventType` + `standByPoolId`
16
+ * @type {string}
17
+ * @memberof LiveStandbyPoolEventLogListQueryParams
18
+ */
19
+ sort?: string | undefined;
20
+ /**
21
+ * Filter event logs by log type. Allowed values are: + `INFO` + `WARN` + `ERROR`
22
+ * @type {string}
23
+ * @memberof LiveStandbyPoolEventLogListQueryParams
24
+ */
25
+ eventType?: string | undefined;
26
+ }
27
+ export declare class LiveStandbyPoolEventLogListQueryParamsBuilder {
28
+ private internalParams;
29
+ /**
30
+ *
31
+ * @param offset Index of the first item to return, starting at 0. Default is 0
32
+ */
33
+ offset(offset: number): this;
34
+ /**
35
+ *
36
+ * @param limit Maximum number of items to return. Default is 25, maximum is 100
37
+ */
38
+ limit(limit: number): this;
39
+ /**
40
+ *
41
+ * @param sort Order list result according a event log attribute. The fields that can be used for sorting are: + `createdAt` + `eventType` + `standByPoolId`
42
+ */
43
+ sort(sort: string): this;
44
+ /**
45
+ *
46
+ * @param eventType Filter event logs by log type. Allowed values are: + `INFO` + `WARN` + `ERROR`
47
+ */
48
+ eventType(eventType: string): this;
49
+ buildQueryParams(): LiveStandbyPoolEventLogListQueryParams;
50
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LiveStandbyPoolEventLogListQueryParamsBuilder = void 0;
4
+ var LiveStandbyPoolEventLogListQueryParamsBuilder = /** @class */ (function () {
5
+ function LiveStandbyPoolEventLogListQueryParamsBuilder() {
6
+ this.internalParams = {};
7
+ }
8
+ /**
9
+ *
10
+ * @param offset Index of the first item to return, starting at 0. Default is 0
11
+ */
12
+ LiveStandbyPoolEventLogListQueryParamsBuilder.prototype.offset = function (offset) {
13
+ this.internalParams.offset = offset;
14
+ return this;
15
+ };
16
+ /**
17
+ *
18
+ * @param limit Maximum number of items to return. Default is 25, maximum is 100
19
+ */
20
+ LiveStandbyPoolEventLogListQueryParamsBuilder.prototype.limit = function (limit) {
21
+ this.internalParams.limit = limit;
22
+ return this;
23
+ };
24
+ /**
25
+ *
26
+ * @param sort Order list result according a event log attribute. The fields that can be used for sorting are: + `createdAt` + `eventType` + `standByPoolId`
27
+ */
28
+ LiveStandbyPoolEventLogListQueryParamsBuilder.prototype.sort = function (sort) {
29
+ this.internalParams.sort = sort;
30
+ return this;
31
+ };
32
+ /**
33
+ *
34
+ * @param eventType Filter event logs by log type. Allowed values are: + `INFO` + `WARN` + `ERROR`
35
+ */
36
+ LiveStandbyPoolEventLogListQueryParamsBuilder.prototype.eventType = function (eventType) {
37
+ this.internalParams.eventType = eventType;
38
+ return this;
39
+ };
40
+ LiveStandbyPoolEventLogListQueryParamsBuilder.prototype.buildQueryParams = function () {
41
+ return this.internalParams;
42
+ };
43
+ return LiveStandbyPoolEventLogListQueryParamsBuilder;
44
+ }());
45
+ exports.LiveStandbyPoolEventLogListQueryParamsBuilder = LiveStandbyPoolEventLogListQueryParamsBuilder;
@@ -0,0 +1,22 @@
1
+ import { BaseAPI } from '../../../../common/BaseAPI';
2
+ import Configuration from '../../../../common/Configuration';
3
+ import LiveStandbyPoolEventLog from '../../../../models/LiveStandbyPoolEventLog';
4
+ import PaginationResponse from '../../../../models/PaginationResponse';
5
+ import { LiveStandbyPoolEventLogListQueryParams, LiveStandbyPoolEventLogListQueryParamsBuilder } from './LiveStandbyPoolEventLogListQueryParams';
6
+ /**
7
+ * LogsApi - object-oriented interface
8
+ * @export
9
+ * @class LogsApi
10
+ * @extends {BaseAPI}
11
+ */
12
+ export default class LogsApi extends BaseAPI {
13
+ constructor(configuration: Configuration);
14
+ /**
15
+ * @summary List event logs for a standby pool
16
+ * @param {string} poolId Id of the standby pool
17
+ * @param {*} [queryParameters] query parameters for filtering, sorting and pagination
18
+ * @throws {BitmovinError}
19
+ * @memberof LogsApi
20
+ */
21
+ list(poolId: string, queryParameters?: LiveStandbyPoolEventLogListQueryParams | ((q: LiveStandbyPoolEventLogListQueryParamsBuilder) => LiveStandbyPoolEventLogListQueryParamsBuilder)): Promise<PaginationResponse<LiveStandbyPoolEventLog>>;
22
+ }