@bitmovin/api-sdk 1.217.0 → 1.218.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 +89 -1906
- package/dist/bitmovin-api-sdk.browser.min.js +1 -2
- package/dist/common/RestClient.js +2 -5
- package/dist/models/DashISO8601TimestampFormat.d.ts +9 -0
- package/dist/models/DashISO8601TimestampFormat.js +13 -0
- package/dist/models/DashManifest.d.ts +7 -0
- package/dist/models/DashManifest.js +1 -0
- package/dist/models/ProgramDateTimePlacement.d.ts +20 -0
- package/dist/models/ProgramDateTimePlacement.js +20 -0
- package/dist/models/ProgramDateTimePlacementMode.d.ts +11 -0
- package/dist/models/ProgramDateTimePlacementMode.js +15 -0
- package/dist/models/ProgramDateTimeSettings.d.ts +6 -0
- package/dist/models/ProgramDateTimeSettings.js +2 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/package.json +1 -4
- package/dist/bitmovin-api-sdk.browser.min.js.LICENSE.txt +0 -7
|
@@ -53,13 +53,10 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
53
53
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
54
|
exports.RestClient = void 0;
|
|
55
55
|
exports.copyAndPrepareBody = copyAndPrepareBody;
|
|
56
|
-
var e6p = require("es6-promise");
|
|
57
56
|
var urljoin = require("url-join");
|
|
58
|
-
var isomorphicFetch = require("isomorphic-fetch");
|
|
59
57
|
var BaseAPI_1 = require("./BaseAPI");
|
|
60
58
|
var NullLogger_1 = require("./NullLogger");
|
|
61
59
|
var BitmovinErrorBuilder_1 = require("./BitmovinErrorBuilder");
|
|
62
|
-
e6p.polyfill();
|
|
63
60
|
var BASE_URL = 'https://api.bitmovin.com/v1';
|
|
64
61
|
function prepareUrlParameterValue(parameterValue) {
|
|
65
62
|
if (parameterValue instanceof Date) {
|
|
@@ -155,7 +152,7 @@ var RestClient = /** @class */ (function () {
|
|
|
155
152
|
this.apiKey = configuration.apiKey;
|
|
156
153
|
this.tenantOrgId = configuration.tenantOrgId;
|
|
157
154
|
this.baseUrl = configuration.baseUrl || BASE_URL;
|
|
158
|
-
this.fetch = configuration.fetch ||
|
|
155
|
+
this.fetch = configuration.fetch || fetch;
|
|
159
156
|
this.logger = configuration.logger || new NullLogger_1.default();
|
|
160
157
|
this.headers = configuration.headers;
|
|
161
158
|
this.httpHandler = this.buildHttpHandler();
|
|
@@ -240,7 +237,7 @@ var HeaderHandler = /** @class */ (function (_super) {
|
|
|
240
237
|
var headers = {
|
|
241
238
|
'X-Api-Key': apiKey,
|
|
242
239
|
'X-Api-Client': 'bitmovin-api-sdk-javascript',
|
|
243
|
-
'X-Api-Client-Version': '1.
|
|
240
|
+
'X-Api-Client-Version': '1.218.0',
|
|
244
241
|
'Content-Type': 'application/json'
|
|
245
242
|
};
|
|
246
243
|
if (tenantOrgId) {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DashISO8601TimestampFormat = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @export
|
|
6
|
+
* @enum {string}
|
|
7
|
+
*/
|
|
8
|
+
var DashISO8601TimestampFormat;
|
|
9
|
+
(function (DashISO8601TimestampFormat) {
|
|
10
|
+
DashISO8601TimestampFormat["LONG"] = "LONG";
|
|
11
|
+
DashISO8601TimestampFormat["SHORT"] = "SHORT";
|
|
12
|
+
})(DashISO8601TimestampFormat || (exports.DashISO8601TimestampFormat = DashISO8601TimestampFormat = {}));
|
|
13
|
+
exports.default = DashISO8601TimestampFormat;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import DashEditionCompatibility from './DashEditionCompatibility';
|
|
2
|
+
import DashISO8601TimestampFormat from './DashISO8601TimestampFormat';
|
|
2
3
|
import DashProfile from './DashProfile';
|
|
3
4
|
import Manifest from './Manifest';
|
|
4
5
|
import UtcTiming from './UtcTiming';
|
|
@@ -38,6 +39,12 @@ export declare class DashManifest extends Manifest {
|
|
|
38
39
|
* @memberof DashManifest
|
|
39
40
|
*/
|
|
40
41
|
dashEditionCompatibility?: DashEditionCompatibility;
|
|
42
|
+
/**
|
|
43
|
+
* Determines how timestamps should appear in the manifest
|
|
44
|
+
* @type {DashISO8601TimestampFormat}
|
|
45
|
+
* @memberof DashManifest
|
|
46
|
+
*/
|
|
47
|
+
iso8601TimestampFormat?: DashISO8601TimestampFormat;
|
|
41
48
|
constructor(obj?: Partial<DashManifest>);
|
|
42
49
|
}
|
|
43
50
|
export default DashManifest;
|
|
@@ -36,6 +36,7 @@ var DashManifest = /** @class */ (function (_super) {
|
|
|
36
36
|
_this.namespaces = (0, Mapper_1.mapArray)(obj.namespaces, XmlNamespace_1.default);
|
|
37
37
|
_this.utcTimings = (0, Mapper_1.mapArray)(obj.utcTimings, UtcTiming_1.default);
|
|
38
38
|
_this.dashEditionCompatibility = (0, Mapper_1.map)(obj.dashEditionCompatibility);
|
|
39
|
+
_this.iso8601TimestampFormat = (0, Mapper_1.map)(obj.iso8601TimestampFormat);
|
|
39
40
|
return _this;
|
|
40
41
|
}
|
|
41
42
|
return DashManifest;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import ProgramDateTimePlacementMode from './ProgramDateTimePlacementMode';
|
|
2
|
+
/**
|
|
3
|
+
* @export
|
|
4
|
+
* @class ProgramDateTimePlacement
|
|
5
|
+
*/
|
|
6
|
+
export declare class ProgramDateTimePlacement {
|
|
7
|
+
/**
|
|
8
|
+
* @type {ProgramDateTimePlacementMode}
|
|
9
|
+
* @memberof ProgramDateTimePlacement
|
|
10
|
+
*/
|
|
11
|
+
programDateTimePlacementMode?: ProgramDateTimePlacementMode;
|
|
12
|
+
/**
|
|
13
|
+
* Interval for placing ProgramDateTime. Only required for SEGMENTS_INTERVAL or SECONDS_INTERVAL.
|
|
14
|
+
* @type {number}
|
|
15
|
+
* @memberof ProgramDateTimePlacement
|
|
16
|
+
*/
|
|
17
|
+
interval?: number;
|
|
18
|
+
constructor(obj?: Partial<ProgramDateTimePlacement>);
|
|
19
|
+
}
|
|
20
|
+
export default ProgramDateTimePlacement;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProgramDateTimePlacement = void 0;
|
|
4
|
+
var Mapper_1 = require("../common/Mapper");
|
|
5
|
+
/**
|
|
6
|
+
* @export
|
|
7
|
+
* @class ProgramDateTimePlacement
|
|
8
|
+
*/
|
|
9
|
+
var ProgramDateTimePlacement = /** @class */ (function () {
|
|
10
|
+
function ProgramDateTimePlacement(obj) {
|
|
11
|
+
if (!obj) {
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
this.programDateTimePlacementMode = (0, Mapper_1.map)(obj.programDateTimePlacementMode);
|
|
15
|
+
this.interval = (0, Mapper_1.map)(obj.interval);
|
|
16
|
+
}
|
|
17
|
+
return ProgramDateTimePlacement;
|
|
18
|
+
}());
|
|
19
|
+
exports.ProgramDateTimePlacement = ProgramDateTimePlacement;
|
|
20
|
+
exports.default = ProgramDateTimePlacement;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Placement mode of the ProgramDateTime tag.
|
|
3
|
+
* @export
|
|
4
|
+
* @enum {string}
|
|
5
|
+
*/
|
|
6
|
+
export declare enum ProgramDateTimePlacementMode {
|
|
7
|
+
ONCE_PER_PLAYLIST = "ONCE_PER_PLAYLIST",
|
|
8
|
+
SEGMENTS_INTERVAL = "SEGMENTS_INTERVAL",
|
|
9
|
+
SECONDS_INTERVAL = "SECONDS_INTERVAL"
|
|
10
|
+
}
|
|
11
|
+
export default ProgramDateTimePlacementMode;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProgramDateTimePlacementMode = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Placement mode of the ProgramDateTime tag.
|
|
6
|
+
* @export
|
|
7
|
+
* @enum {string}
|
|
8
|
+
*/
|
|
9
|
+
var ProgramDateTimePlacementMode;
|
|
10
|
+
(function (ProgramDateTimePlacementMode) {
|
|
11
|
+
ProgramDateTimePlacementMode["ONCE_PER_PLAYLIST"] = "ONCE_PER_PLAYLIST";
|
|
12
|
+
ProgramDateTimePlacementMode["SEGMENTS_INTERVAL"] = "SEGMENTS_INTERVAL";
|
|
13
|
+
ProgramDateTimePlacementMode["SECONDS_INTERVAL"] = "SECONDS_INTERVAL";
|
|
14
|
+
})(ProgramDateTimePlacementMode || (exports.ProgramDateTimePlacementMode = ProgramDateTimePlacementMode = {}));
|
|
15
|
+
exports.default = ProgramDateTimePlacementMode;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import ProgramDateTimePlacement from './ProgramDateTimePlacement';
|
|
1
2
|
import ProgramDateTimeSource from './ProgramDateTimeSource';
|
|
2
3
|
/**
|
|
3
4
|
* @export
|
|
@@ -9,6 +10,11 @@ export declare class ProgramDateTimeSettings {
|
|
|
9
10
|
* @memberof ProgramDateTimeSettings
|
|
10
11
|
*/
|
|
11
12
|
programDateTimeSource?: ProgramDateTimeSource;
|
|
13
|
+
/**
|
|
14
|
+
* @type {ProgramDateTimePlacement}
|
|
15
|
+
* @memberof ProgramDateTimeSettings
|
|
16
|
+
*/
|
|
17
|
+
programDateTimePlacement?: ProgramDateTimePlacement;
|
|
12
18
|
constructor(obj?: Partial<ProgramDateTimeSettings>);
|
|
13
19
|
}
|
|
14
20
|
export default ProgramDateTimeSettings;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ProgramDateTimeSettings = void 0;
|
|
4
4
|
var Mapper_1 = require("../common/Mapper");
|
|
5
|
+
var ProgramDateTimePlacement_1 = require("./ProgramDateTimePlacement");
|
|
5
6
|
/**
|
|
6
7
|
* @export
|
|
7
8
|
* @class ProgramDateTimeSettings
|
|
@@ -12,6 +13,7 @@ var ProgramDateTimeSettings = /** @class */ (function () {
|
|
|
12
13
|
return;
|
|
13
14
|
}
|
|
14
15
|
this.programDateTimeSource = (0, Mapper_1.map)(obj.programDateTimeSource);
|
|
16
|
+
this.programDateTimePlacement = (0, Mapper_1.map)(obj.programDateTimePlacement, ProgramDateTimePlacement_1.default);
|
|
15
17
|
}
|
|
16
18
|
return ProgramDateTimeSettings;
|
|
17
19
|
}());
|
package/dist/models/index.d.ts
CHANGED
|
@@ -233,6 +233,7 @@ export * from './DashCmafRepresentation';
|
|
|
233
233
|
export * from './DashEditionCompatibility';
|
|
234
234
|
export * from './DashFmp4DrmRepresentation';
|
|
235
235
|
export * from './DashFmp4Representation';
|
|
236
|
+
export * from './DashISO8601TimestampFormat';
|
|
236
237
|
export * from './DashImscRepresentation';
|
|
237
238
|
export * from './DashManifest';
|
|
238
239
|
export * from './DashManifestDefault';
|
|
@@ -587,6 +588,8 @@ export * from './PrimeTimeDrm';
|
|
|
587
588
|
export * from './ProfileH262';
|
|
588
589
|
export * from './ProfileH264';
|
|
589
590
|
export * from './ProfileH265';
|
|
591
|
+
export * from './ProgramDateTimePlacement';
|
|
592
|
+
export * from './ProgramDateTimePlacementMode';
|
|
590
593
|
export * from './ProgramDateTimeSettings';
|
|
591
594
|
export * from './ProgramDateTimeSource';
|
|
592
595
|
export * from './ProgressiveMovMuxing';
|
package/dist/models/index.js
CHANGED
|
@@ -249,6 +249,7 @@ __exportStar(require("./DashCmafRepresentation"), exports);
|
|
|
249
249
|
__exportStar(require("./DashEditionCompatibility"), exports);
|
|
250
250
|
__exportStar(require("./DashFmp4DrmRepresentation"), exports);
|
|
251
251
|
__exportStar(require("./DashFmp4Representation"), exports);
|
|
252
|
+
__exportStar(require("./DashISO8601TimestampFormat"), exports);
|
|
252
253
|
__exportStar(require("./DashImscRepresentation"), exports);
|
|
253
254
|
__exportStar(require("./DashManifest"), exports);
|
|
254
255
|
__exportStar(require("./DashManifestDefault"), exports);
|
|
@@ -603,6 +604,8 @@ __exportStar(require("./PrimeTimeDrm"), exports);
|
|
|
603
604
|
__exportStar(require("./ProfileH262"), exports);
|
|
604
605
|
__exportStar(require("./ProfileH264"), exports);
|
|
605
606
|
__exportStar(require("./ProfileH265"), exports);
|
|
607
|
+
__exportStar(require("./ProgramDateTimePlacement"), exports);
|
|
608
|
+
__exportStar(require("./ProgramDateTimePlacementMode"), exports);
|
|
606
609
|
__exportStar(require("./ProgramDateTimeSettings"), exports);
|
|
607
610
|
__exportStar(require("./ProgramDateTimeSource"), exports);
|
|
608
611
|
__exportStar(require("./ProgressiveMovMuxing"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bitmovin/api-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.218.0",
|
|
4
4
|
"description": "Bitmovin JS/TS API SDK",
|
|
5
5
|
"author": "Bitmovin Inc",
|
|
6
6
|
"keywords": [
|
|
@@ -24,15 +24,12 @@
|
|
|
24
24
|
"format-check": "prettier --list-different \"./src/**/*.{ts,tsx,scss}\""
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"es6-promise": "^4.2.5",
|
|
28
|
-
"isomorphic-fetch": ">=3.0.0",
|
|
29
27
|
"url-join": "^4.0.0"
|
|
30
28
|
},
|
|
31
29
|
"files": [
|
|
32
30
|
"dist"
|
|
33
31
|
],
|
|
34
32
|
"devDependencies": {
|
|
35
|
-
"@types/isomorphic-fetch": ">=0.0.35",
|
|
36
33
|
"@types/node": "^20.8.9",
|
|
37
34
|
"ts-loader": "^9.2.8",
|
|
38
35
|
"cross-env": "^5.2.0",
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @overview es6-promise - a tiny implementation of Promises/A+.
|
|
3
|
-
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
|
|
4
|
-
* @license Licensed under MIT license
|
|
5
|
-
* See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
|
|
6
|
-
* @version v4.2.8+1e68dce6
|
|
7
|
-
*/
|