@bitmovin/api-sdk 1.187.1 → 1.188.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/analytics/impressions/ImpressionsApi.d.ts +2 -2
- package/dist/analytics/impressions/ImpressionsApi.js +2 -2
- package/dist/bitmovin-api-sdk.browser.js +277 -51
- package/dist/bitmovin-api-sdk.browser.min.js +1 -1
- package/dist/common/RestClient.js +1 -1
- package/dist/encoding/configurations/audio/ac3/customdata/CustomdataApi.d.ts +1 -1
- package/dist/encoding/configurations/audio/ac3/customdata/CustomdataApi.js +1 -1
- package/dist/models/StreamsDomainRestrictionCreateRequest.d.ts +26 -0
- package/dist/models/StreamsDomainRestrictionCreateRequest.js +21 -0
- package/dist/models/StreamsDomainRestrictionUpdateRequest.d.ts +26 -0
- package/dist/models/StreamsDomainRestrictionUpdateRequest.js +21 -0
- package/dist/models/index.d.ts +2 -1
- package/dist/models/index.js +2 -1
- package/dist/streams/StreamsApi.d.ts +2 -0
- package/dist/streams/StreamsApi.js +2 -0
- package/dist/streams/config/ConfigApi.d.ts +13 -0
- package/dist/{models/AnalyticsImpressionDetails.js → streams/config/ConfigApi.js} +13 -13
- package/dist/streams/config/domainRestriction/DomainRestrictionApi.d.ts +52 -0
- package/dist/streams/config/domainRestriction/DomainRestrictionApi.js +108 -0
- package/dist/streams/config/domainRestriction/StreamsDomainRestrictionResponseListQueryParams.d.ts +28 -0
- package/dist/streams/config/domainRestriction/StreamsDomainRestrictionResponseListQueryParams.js +29 -0
- package/package.json +1 -1
- package/dist/models/AnalyticsImpressionDetails.d.ts +0 -9
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@ import { BaseAPI } from '../../common/BaseAPI';
|
|
|
2
2
|
import Configuration from '../../common/Configuration';
|
|
3
3
|
import AdsApi from './ads/AdsApi';
|
|
4
4
|
import ErrorsApi from './errors/ErrorsApi';
|
|
5
|
-
import
|
|
5
|
+
import AnalyticsImpressionSample from '../../models/AnalyticsImpressionSample';
|
|
6
6
|
import AnalyticsImpressionsQuery from '../../models/AnalyticsImpressionsQuery';
|
|
7
7
|
import AnalyticsImpressionsResponse from '../../models/AnalyticsImpressionsResponse';
|
|
8
8
|
import AnalyticsLicenseKey from '../../models/AnalyticsLicenseKey';
|
|
@@ -23,7 +23,7 @@ export default class ImpressionsApi extends BaseAPI {
|
|
|
23
23
|
* @throws {BitmovinError}
|
|
24
24
|
* @memberof ImpressionsApi
|
|
25
25
|
*/
|
|
26
|
-
create(impressionId: string, analyticsLicenseKey?: AnalyticsLicenseKey): Promise<
|
|
26
|
+
create(impressionId: string, analyticsLicenseKey?: AnalyticsLicenseKey): Promise<AnalyticsImpressionSample[]>;
|
|
27
27
|
/**
|
|
28
28
|
* @summary List impressions
|
|
29
29
|
* @param {AnalyticsImpressionsQuery} analyticsImpressionsQuery Analytics impressions query object
|
|
@@ -19,7 +19,7 @@ var BaseAPI_1 = require("../../common/BaseAPI");
|
|
|
19
19
|
var Mapper_1 = require("../../common/Mapper");
|
|
20
20
|
var AdsApi_1 = require("./ads/AdsApi");
|
|
21
21
|
var ErrorsApi_1 = require("./errors/ErrorsApi");
|
|
22
|
-
var
|
|
22
|
+
var AnalyticsImpressionSample_1 = require("../../models/AnalyticsImpressionSample");
|
|
23
23
|
var AnalyticsImpressionsResponse_1 = require("../../models/AnalyticsImpressionsResponse");
|
|
24
24
|
/**
|
|
25
25
|
* ImpressionsApi - object-oriented interface
|
|
@@ -47,7 +47,7 @@ var ImpressionsApi = /** @class */ (function (_super) {
|
|
|
47
47
|
impression_id: impressionId
|
|
48
48
|
};
|
|
49
49
|
return this.restClient.post('/analytics/impressions/{impression_id}', pathParamMap, analyticsLicenseKey).then(function (response) {
|
|
50
|
-
return (0, Mapper_1.
|
|
50
|
+
return (0, Mapper_1.mapArray)(response, AnalyticsImpressionSample_1.default);
|
|
51
51
|
});
|
|
52
52
|
};
|
|
53
53
|
/**
|
|
@@ -3174,7 +3174,7 @@ var BaseAPI_1 = __webpack_require__(/*! ../../common/BaseAPI */ "./common/BaseAP
|
|
|
3174
3174
|
var Mapper_1 = __webpack_require__(/*! ../../common/Mapper */ "./common/Mapper.ts");
|
|
3175
3175
|
var AdsApi_1 = __webpack_require__(/*! ./ads/AdsApi */ "./analytics/impressions/ads/AdsApi.ts");
|
|
3176
3176
|
var ErrorsApi_1 = __webpack_require__(/*! ./errors/ErrorsApi */ "./analytics/impressions/errors/ErrorsApi.ts");
|
|
3177
|
-
var
|
|
3177
|
+
var AnalyticsImpressionSample_1 = __webpack_require__(/*! ../../models/AnalyticsImpressionSample */ "./models/AnalyticsImpressionSample.ts");
|
|
3178
3178
|
var AnalyticsImpressionsResponse_1 = __webpack_require__(/*! ../../models/AnalyticsImpressionsResponse */ "./models/AnalyticsImpressionsResponse.ts");
|
|
3179
3179
|
/**
|
|
3180
3180
|
* ImpressionsApi - object-oriented interface
|
|
@@ -3202,7 +3202,7 @@ var ImpressionsApi = /** @class */ (function (_super) {
|
|
|
3202
3202
|
impression_id: impressionId
|
|
3203
3203
|
};
|
|
3204
3204
|
return this.restClient.post('/analytics/impressions/{impression_id}', pathParamMap, analyticsLicenseKey).then(function (response) {
|
|
3205
|
-
return (0, Mapper_1.
|
|
3205
|
+
return (0, Mapper_1.mapArray)(response, AnalyticsImpressionSample_1.default);
|
|
3206
3206
|
});
|
|
3207
3207
|
};
|
|
3208
3208
|
/**
|
|
@@ -6109,7 +6109,7 @@ var HeaderHandler = /** @class */ (function (_super) {
|
|
|
6109
6109
|
var headers = {
|
|
6110
6110
|
'X-Api-Key': apiKey,
|
|
6111
6111
|
'X-Api-Client': 'bitmovin-api-sdk-javascript',
|
|
6112
|
-
'X-Api-Client-Version': '1.
|
|
6112
|
+
'X-Api-Client-Version': '1.188.0',
|
|
6113
6113
|
'Content-Type': 'application/json'
|
|
6114
6114
|
};
|
|
6115
6115
|
if (tenantOrgId) {
|
|
@@ -6962,7 +6962,7 @@ var CustomdataApi = /** @class */ (function (_super) {
|
|
|
6962
6962
|
return _super.call(this, configuration) || this;
|
|
6963
6963
|
}
|
|
6964
6964
|
/**
|
|
6965
|
-
* @summary AC3 Codec Configuration Custom Data.
|
|
6965
|
+
* @summary AC3 Codec Configuration Custom Data.
|
|
6966
6966
|
* @param {string} configurationId Id of the codec configuration
|
|
6967
6967
|
* @throws {BitmovinError}
|
|
6968
6968
|
* @memberof CustomdataApi
|
|
@@ -56743,52 +56743,6 @@ var AnalyticsHttpRequestType;
|
|
|
56743
56743
|
exports["default"] = AnalyticsHttpRequestType;
|
|
56744
56744
|
|
|
56745
56745
|
|
|
56746
|
-
/***/ }),
|
|
56747
|
-
|
|
56748
|
-
/***/ "./models/AnalyticsImpressionDetails.ts":
|
|
56749
|
-
/*!**********************************************!*\
|
|
56750
|
-
!*** ./models/AnalyticsImpressionDetails.ts ***!
|
|
56751
|
-
\**********************************************/
|
|
56752
|
-
/***/ (function(__unused_webpack_module, exports) {
|
|
56753
|
-
|
|
56754
|
-
"use strict";
|
|
56755
|
-
|
|
56756
|
-
var __extends = (this && this.__extends) || (function () {
|
|
56757
|
-
var extendStatics = function (d, b) {
|
|
56758
|
-
extendStatics = Object.setPrototypeOf ||
|
|
56759
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
56760
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
56761
|
-
return extendStatics(d, b);
|
|
56762
|
-
};
|
|
56763
|
-
return function (d, b) {
|
|
56764
|
-
if (typeof b !== "function" && b !== null)
|
|
56765
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
56766
|
-
extendStatics(d, b);
|
|
56767
|
-
function __() { this.constructor = d; }
|
|
56768
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
56769
|
-
};
|
|
56770
|
-
})();
|
|
56771
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
56772
|
-
exports.AnalyticsImpressionDetails = void 0;
|
|
56773
|
-
/**
|
|
56774
|
-
* @export
|
|
56775
|
-
* @class AnalyticsImpressionDetails
|
|
56776
|
-
*/
|
|
56777
|
-
var AnalyticsImpressionDetails = /** @class */ (function (_super) {
|
|
56778
|
-
__extends(AnalyticsImpressionDetails, _super);
|
|
56779
|
-
function AnalyticsImpressionDetails(obj) {
|
|
56780
|
-
var _this = _super.call(this, obj) || this;
|
|
56781
|
-
if (!obj) {
|
|
56782
|
-
return _this;
|
|
56783
|
-
}
|
|
56784
|
-
return _this;
|
|
56785
|
-
}
|
|
56786
|
-
return AnalyticsImpressionDetails;
|
|
56787
|
-
}(Array));
|
|
56788
|
-
exports.AnalyticsImpressionDetails = AnalyticsImpressionDetails;
|
|
56789
|
-
exports["default"] = AnalyticsImpressionDetails;
|
|
56790
|
-
|
|
56791
|
-
|
|
56792
56746
|
/***/ }),
|
|
56793
56747
|
|
|
56794
56748
|
/***/ "./models/AnalyticsImpressionListItem.ts":
|
|
@@ -82991,6 +82945,38 @@ exports.StreamsAdConfigResponse = StreamsAdConfigResponse;
|
|
|
82991
82945
|
exports["default"] = StreamsAdConfigResponse;
|
|
82992
82946
|
|
|
82993
82947
|
|
|
82948
|
+
/***/ }),
|
|
82949
|
+
|
|
82950
|
+
/***/ "./models/StreamsDomainRestrictionCreateRequest.ts":
|
|
82951
|
+
/*!*********************************************************!*\
|
|
82952
|
+
!*** ./models/StreamsDomainRestrictionCreateRequest.ts ***!
|
|
82953
|
+
\*********************************************************/
|
|
82954
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
82955
|
+
|
|
82956
|
+
"use strict";
|
|
82957
|
+
|
|
82958
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
82959
|
+
exports.StreamsDomainRestrictionCreateRequest = void 0;
|
|
82960
|
+
var Mapper_1 = __webpack_require__(/*! ../common/Mapper */ "./common/Mapper.ts");
|
|
82961
|
+
/**
|
|
82962
|
+
* @export
|
|
82963
|
+
* @class StreamsDomainRestrictionCreateRequest
|
|
82964
|
+
*/
|
|
82965
|
+
var StreamsDomainRestrictionCreateRequest = /** @class */ (function () {
|
|
82966
|
+
function StreamsDomainRestrictionCreateRequest(obj) {
|
|
82967
|
+
if (!obj) {
|
|
82968
|
+
return;
|
|
82969
|
+
}
|
|
82970
|
+
this.allowedDomains = (0, Mapper_1.mapArray)(obj.allowedDomains);
|
|
82971
|
+
this.allowNoReferer = (0, Mapper_1.map)(obj.allowNoReferer);
|
|
82972
|
+
this.allowShare = (0, Mapper_1.map)(obj.allowShare);
|
|
82973
|
+
}
|
|
82974
|
+
return StreamsDomainRestrictionCreateRequest;
|
|
82975
|
+
}());
|
|
82976
|
+
exports.StreamsDomainRestrictionCreateRequest = StreamsDomainRestrictionCreateRequest;
|
|
82977
|
+
exports["default"] = StreamsDomainRestrictionCreateRequest;
|
|
82978
|
+
|
|
82979
|
+
|
|
82994
82980
|
/***/ }),
|
|
82995
82981
|
|
|
82996
82982
|
/***/ "./models/StreamsDomainRestrictionResponse.ts":
|
|
@@ -83024,6 +83010,38 @@ exports.StreamsDomainRestrictionResponse = StreamsDomainRestrictionResponse;
|
|
|
83024
83010
|
exports["default"] = StreamsDomainRestrictionResponse;
|
|
83025
83011
|
|
|
83026
83012
|
|
|
83013
|
+
/***/ }),
|
|
83014
|
+
|
|
83015
|
+
/***/ "./models/StreamsDomainRestrictionUpdateRequest.ts":
|
|
83016
|
+
/*!*********************************************************!*\
|
|
83017
|
+
!*** ./models/StreamsDomainRestrictionUpdateRequest.ts ***!
|
|
83018
|
+
\*********************************************************/
|
|
83019
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
83020
|
+
|
|
83021
|
+
"use strict";
|
|
83022
|
+
|
|
83023
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
83024
|
+
exports.StreamsDomainRestrictionUpdateRequest = void 0;
|
|
83025
|
+
var Mapper_1 = __webpack_require__(/*! ../common/Mapper */ "./common/Mapper.ts");
|
|
83026
|
+
/**
|
|
83027
|
+
* @export
|
|
83028
|
+
* @class StreamsDomainRestrictionUpdateRequest
|
|
83029
|
+
*/
|
|
83030
|
+
var StreamsDomainRestrictionUpdateRequest = /** @class */ (function () {
|
|
83031
|
+
function StreamsDomainRestrictionUpdateRequest(obj) {
|
|
83032
|
+
if (!obj) {
|
|
83033
|
+
return;
|
|
83034
|
+
}
|
|
83035
|
+
this.allowedDomains = (0, Mapper_1.mapArray)(obj.allowedDomains);
|
|
83036
|
+
this.allowNoReferer = (0, Mapper_1.map)(obj.allowNoReferer);
|
|
83037
|
+
this.allowShare = (0, Mapper_1.map)(obj.allowShare);
|
|
83038
|
+
}
|
|
83039
|
+
return StreamsDomainRestrictionUpdateRequest;
|
|
83040
|
+
}());
|
|
83041
|
+
exports.StreamsDomainRestrictionUpdateRequest = StreamsDomainRestrictionUpdateRequest;
|
|
83042
|
+
exports["default"] = StreamsDomainRestrictionUpdateRequest;
|
|
83043
|
+
|
|
83044
|
+
|
|
83027
83045
|
/***/ }),
|
|
83028
83046
|
|
|
83029
83047
|
/***/ "./models/StreamsEncodingProfile.ts":
|
|
@@ -87073,7 +87091,6 @@ __exportStar(__webpack_require__(/*! ./AnalyticsGreaterThanFilter */ "./models/A
|
|
|
87073
87091
|
__exportStar(__webpack_require__(/*! ./AnalyticsGreaterThanOrEqualFilter */ "./models/AnalyticsGreaterThanOrEqualFilter.ts"), exports);
|
|
87074
87092
|
__exportStar(__webpack_require__(/*! ./AnalyticsHttpRequest */ "./models/AnalyticsHttpRequest.ts"), exports);
|
|
87075
87093
|
__exportStar(__webpack_require__(/*! ./AnalyticsHttpRequestType */ "./models/AnalyticsHttpRequestType.ts"), exports);
|
|
87076
|
-
__exportStar(__webpack_require__(/*! ./AnalyticsImpressionDetails */ "./models/AnalyticsImpressionDetails.ts"), exports);
|
|
87077
87094
|
__exportStar(__webpack_require__(/*! ./AnalyticsImpressionListItem */ "./models/AnalyticsImpressionListItem.ts"), exports);
|
|
87078
87095
|
__exportStar(__webpack_require__(/*! ./AnalyticsImpressionSample */ "./models/AnalyticsImpressionSample.ts"), exports);
|
|
87079
87096
|
__exportStar(__webpack_require__(/*! ./AnalyticsImpressionsQuery */ "./models/AnalyticsImpressionsQuery.ts"), exports);
|
|
@@ -87721,7 +87738,9 @@ __exportStar(__webpack_require__(/*! ./StreamPerTitleSettings */ "./models/Strea
|
|
|
87721
87738
|
__exportStar(__webpack_require__(/*! ./StreamSelectionMode */ "./models/StreamSelectionMode.ts"), exports);
|
|
87722
87739
|
__exportStar(__webpack_require__(/*! ./StreamsAdConfigAd */ "./models/StreamsAdConfigAd.ts"), exports);
|
|
87723
87740
|
__exportStar(__webpack_require__(/*! ./StreamsAdConfigResponse */ "./models/StreamsAdConfigResponse.ts"), exports);
|
|
87741
|
+
__exportStar(__webpack_require__(/*! ./StreamsDomainRestrictionCreateRequest */ "./models/StreamsDomainRestrictionCreateRequest.ts"), exports);
|
|
87724
87742
|
__exportStar(__webpack_require__(/*! ./StreamsDomainRestrictionResponse */ "./models/StreamsDomainRestrictionResponse.ts"), exports);
|
|
87743
|
+
__exportStar(__webpack_require__(/*! ./StreamsDomainRestrictionUpdateRequest */ "./models/StreamsDomainRestrictionUpdateRequest.ts"), exports);
|
|
87725
87744
|
__exportStar(__webpack_require__(/*! ./StreamsEncodingProfile */ "./models/StreamsEncodingProfile.ts"), exports);
|
|
87726
87745
|
__exportStar(__webpack_require__(/*! ./StreamsLiveCreateRequest */ "./models/StreamsLiveCreateRequest.ts"), exports);
|
|
87727
87746
|
__exportStar(__webpack_require__(/*! ./StreamsLiveLifeCycle */ "./models/StreamsLiveLifeCycle.ts"), exports);
|
|
@@ -91435,6 +91454,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
91435
91454
|
var BaseAPI_1 = __webpack_require__(/*! ../common/BaseAPI */ "./common/BaseAPI.ts");
|
|
91436
91455
|
var VideoApi_1 = __webpack_require__(/*! ./video/VideoApi */ "./streams/video/VideoApi.ts");
|
|
91437
91456
|
var LiveApi_1 = __webpack_require__(/*! ./live/LiveApi */ "./streams/live/LiveApi.ts");
|
|
91457
|
+
var ConfigApi_1 = __webpack_require__(/*! ./config/ConfigApi */ "./streams/config/ConfigApi.ts");
|
|
91438
91458
|
var SearchApi_1 = __webpack_require__(/*! ./search/SearchApi */ "./streams/search/SearchApi.ts");
|
|
91439
91459
|
var SigningKeysApi_1 = __webpack_require__(/*! ./signingKeys/SigningKeysApi */ "./streams/signingKeys/SigningKeysApi.ts");
|
|
91440
91460
|
/**
|
|
@@ -91449,6 +91469,7 @@ var StreamsApi = /** @class */ (function (_super) {
|
|
|
91449
91469
|
var _this = _super.call(this, configuration) || this;
|
|
91450
91470
|
_this.video = new VideoApi_1.default(configuration);
|
|
91451
91471
|
_this.live = new LiveApi_1.default(configuration);
|
|
91472
|
+
_this.config = new ConfigApi_1.default(configuration);
|
|
91452
91473
|
_this.search = new SearchApi_1.default(configuration);
|
|
91453
91474
|
_this.signingKeys = new SigningKeysApi_1.default(configuration);
|
|
91454
91475
|
return _this;
|
|
@@ -91458,6 +91479,211 @@ var StreamsApi = /** @class */ (function (_super) {
|
|
|
91458
91479
|
exports["default"] = StreamsApi;
|
|
91459
91480
|
|
|
91460
91481
|
|
|
91482
|
+
/***/ }),
|
|
91483
|
+
|
|
91484
|
+
/***/ "./streams/config/ConfigApi.ts":
|
|
91485
|
+
/*!*************************************!*\
|
|
91486
|
+
!*** ./streams/config/ConfigApi.ts ***!
|
|
91487
|
+
\*************************************/
|
|
91488
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
91489
|
+
|
|
91490
|
+
"use strict";
|
|
91491
|
+
|
|
91492
|
+
var __extends = (this && this.__extends) || (function () {
|
|
91493
|
+
var extendStatics = function (d, b) {
|
|
91494
|
+
extendStatics = Object.setPrototypeOf ||
|
|
91495
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
91496
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
91497
|
+
return extendStatics(d, b);
|
|
91498
|
+
};
|
|
91499
|
+
return function (d, b) {
|
|
91500
|
+
if (typeof b !== "function" && b !== null)
|
|
91501
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
91502
|
+
extendStatics(d, b);
|
|
91503
|
+
function __() { this.constructor = d; }
|
|
91504
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
91505
|
+
};
|
|
91506
|
+
})();
|
|
91507
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
91508
|
+
var BaseAPI_1 = __webpack_require__(/*! ../../common/BaseAPI */ "./common/BaseAPI.ts");
|
|
91509
|
+
var DomainRestrictionApi_1 = __webpack_require__(/*! ./domainRestriction/DomainRestrictionApi */ "./streams/config/domainRestriction/DomainRestrictionApi.ts");
|
|
91510
|
+
/**
|
|
91511
|
+
* ConfigApi - object-oriented interface
|
|
91512
|
+
* @export
|
|
91513
|
+
* @class ConfigApi
|
|
91514
|
+
* @extends {BaseAPI}
|
|
91515
|
+
*/
|
|
91516
|
+
var ConfigApi = /** @class */ (function (_super) {
|
|
91517
|
+
__extends(ConfigApi, _super);
|
|
91518
|
+
function ConfigApi(configuration) {
|
|
91519
|
+
var _this = _super.call(this, configuration) || this;
|
|
91520
|
+
_this.domainRestriction = new DomainRestrictionApi_1.default(configuration);
|
|
91521
|
+
return _this;
|
|
91522
|
+
}
|
|
91523
|
+
return ConfigApi;
|
|
91524
|
+
}(BaseAPI_1.BaseAPI));
|
|
91525
|
+
exports["default"] = ConfigApi;
|
|
91526
|
+
|
|
91527
|
+
|
|
91528
|
+
/***/ }),
|
|
91529
|
+
|
|
91530
|
+
/***/ "./streams/config/domainRestriction/DomainRestrictionApi.ts":
|
|
91531
|
+
/*!******************************************************************!*\
|
|
91532
|
+
!*** ./streams/config/domainRestriction/DomainRestrictionApi.ts ***!
|
|
91533
|
+
\******************************************************************/
|
|
91534
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
91535
|
+
|
|
91536
|
+
"use strict";
|
|
91537
|
+
|
|
91538
|
+
var __extends = (this && this.__extends) || (function () {
|
|
91539
|
+
var extendStatics = function (d, b) {
|
|
91540
|
+
extendStatics = Object.setPrototypeOf ||
|
|
91541
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
91542
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
91543
|
+
return extendStatics(d, b);
|
|
91544
|
+
};
|
|
91545
|
+
return function (d, b) {
|
|
91546
|
+
if (typeof b !== "function" && b !== null)
|
|
91547
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
91548
|
+
extendStatics(d, b);
|
|
91549
|
+
function __() { this.constructor = d; }
|
|
91550
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
91551
|
+
};
|
|
91552
|
+
})();
|
|
91553
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
91554
|
+
var BaseAPI_1 = __webpack_require__(/*! ../../../common/BaseAPI */ "./common/BaseAPI.ts");
|
|
91555
|
+
var Mapper_1 = __webpack_require__(/*! ../../../common/Mapper */ "./common/Mapper.ts");
|
|
91556
|
+
var StreamsDomainRestrictionResponse_1 = __webpack_require__(/*! ../../../models/StreamsDomainRestrictionResponse */ "./models/StreamsDomainRestrictionResponse.ts");
|
|
91557
|
+
var PaginationResponse_1 = __webpack_require__(/*! ../../../models/PaginationResponse */ "./models/PaginationResponse.ts");
|
|
91558
|
+
var StreamsDomainRestrictionResponseListQueryParams_1 = __webpack_require__(/*! ./StreamsDomainRestrictionResponseListQueryParams */ "./streams/config/domainRestriction/StreamsDomainRestrictionResponseListQueryParams.ts");
|
|
91559
|
+
/**
|
|
91560
|
+
* DomainRestrictionApi - object-oriented interface
|
|
91561
|
+
* @export
|
|
91562
|
+
* @class DomainRestrictionApi
|
|
91563
|
+
* @extends {BaseAPI}
|
|
91564
|
+
*/
|
|
91565
|
+
var DomainRestrictionApi = /** @class */ (function (_super) {
|
|
91566
|
+
__extends(DomainRestrictionApi, _super);
|
|
91567
|
+
function DomainRestrictionApi(configuration) {
|
|
91568
|
+
return _super.call(this, configuration) || this;
|
|
91569
|
+
}
|
|
91570
|
+
/**
|
|
91571
|
+
* @summary Create new streams domain restriction
|
|
91572
|
+
* @param {StreamsDomainRestrictionCreateRequest} streamsDomainRestrictionCreateRequest Create a new streams domain restriction
|
|
91573
|
+
* @throws {BitmovinError}
|
|
91574
|
+
* @memberof DomainRestrictionApi
|
|
91575
|
+
*/
|
|
91576
|
+
DomainRestrictionApi.prototype.create = function (streamsDomainRestrictionCreateRequest) {
|
|
91577
|
+
return this.restClient.post('/streams/config/domain-restriction/', {}, streamsDomainRestrictionCreateRequest).then(function (response) {
|
|
91578
|
+
return (0, Mapper_1.map)(response, StreamsDomainRestrictionResponse_1.default);
|
|
91579
|
+
});
|
|
91580
|
+
};
|
|
91581
|
+
/**
|
|
91582
|
+
* @summary Delete streams domain restriction by id
|
|
91583
|
+
* @param {string} domainRestrictionId Id of the streams domain restriction.
|
|
91584
|
+
* @throws {BitmovinError}
|
|
91585
|
+
* @memberof DomainRestrictionApi
|
|
91586
|
+
*/
|
|
91587
|
+
DomainRestrictionApi.prototype.delete = function (domainRestrictionId) {
|
|
91588
|
+
var pathParamMap = {
|
|
91589
|
+
domain_restriction_id: domainRestrictionId
|
|
91590
|
+
};
|
|
91591
|
+
return this.restClient.delete('/streams/config/domain-restriction/{domain_restriction_id}', pathParamMap).then(function (response) {
|
|
91592
|
+
return (0, Mapper_1.map)(response);
|
|
91593
|
+
});
|
|
91594
|
+
};
|
|
91595
|
+
/**
|
|
91596
|
+
* @summary Get streams domain restriction config by id
|
|
91597
|
+
* @param {string} domainRestrictionId Id of the streams domain restriction.
|
|
91598
|
+
* @throws {BitmovinError}
|
|
91599
|
+
* @memberof DomainRestrictionApi
|
|
91600
|
+
*/
|
|
91601
|
+
DomainRestrictionApi.prototype.get = function (domainRestrictionId) {
|
|
91602
|
+
var pathParamMap = {
|
|
91603
|
+
domain_restriction_id: domainRestrictionId
|
|
91604
|
+
};
|
|
91605
|
+
return this.restClient.get('/streams/config/domain-restriction/{domain_restriction_id}', pathParamMap).then(function (response) {
|
|
91606
|
+
return (0, Mapper_1.map)(response, StreamsDomainRestrictionResponse_1.default);
|
|
91607
|
+
});
|
|
91608
|
+
};
|
|
91609
|
+
/**
|
|
91610
|
+
* @summary Get paginated list of domain restriction configurations
|
|
91611
|
+
* @param {*} [queryParameters] query parameters for filtering, sorting and pagination
|
|
91612
|
+
* @throws {BitmovinError}
|
|
91613
|
+
* @memberof DomainRestrictionApi
|
|
91614
|
+
*/
|
|
91615
|
+
DomainRestrictionApi.prototype.list = function (queryParameters) {
|
|
91616
|
+
var queryParams = {};
|
|
91617
|
+
if (typeof queryParameters === 'function') {
|
|
91618
|
+
queryParams = queryParameters(new StreamsDomainRestrictionResponseListQueryParams_1.StreamsDomainRestrictionResponseListQueryParamsBuilder()).buildQueryParams();
|
|
91619
|
+
}
|
|
91620
|
+
else if (queryParameters) {
|
|
91621
|
+
queryParams = queryParameters;
|
|
91622
|
+
}
|
|
91623
|
+
return this.restClient.get('/streams/config/domain-restriction/', {}, queryParams).then(function (response) {
|
|
91624
|
+
return new PaginationResponse_1.default(response, StreamsDomainRestrictionResponse_1.default);
|
|
91625
|
+
});
|
|
91626
|
+
};
|
|
91627
|
+
/**
|
|
91628
|
+
* @summary Partially update streams domain restriction by id
|
|
91629
|
+
* @param {string} domainRestrictionId Id of the streams domain restriction.
|
|
91630
|
+
* @param {StreamsDomainRestrictionUpdateRequest} streamsDomainRestrictionUpdateRequest The updated streams domain restriction object.
|
|
91631
|
+
* @throws {BitmovinError}
|
|
91632
|
+
* @memberof DomainRestrictionApi
|
|
91633
|
+
*/
|
|
91634
|
+
DomainRestrictionApi.prototype.patchStreamsDomainRestriction = function (domainRestrictionId, streamsDomainRestrictionUpdateRequest) {
|
|
91635
|
+
var pathParamMap = {
|
|
91636
|
+
domain_restriction_id: domainRestrictionId
|
|
91637
|
+
};
|
|
91638
|
+
return this.restClient.patch('/streams/config/domain-restriction/{domain_restriction_id}', pathParamMap, streamsDomainRestrictionUpdateRequest).then(function (response) {
|
|
91639
|
+
return (0, Mapper_1.map)(response, StreamsDomainRestrictionResponse_1.default);
|
|
91640
|
+
});
|
|
91641
|
+
};
|
|
91642
|
+
return DomainRestrictionApi;
|
|
91643
|
+
}(BaseAPI_1.BaseAPI));
|
|
91644
|
+
exports["default"] = DomainRestrictionApi;
|
|
91645
|
+
|
|
91646
|
+
|
|
91647
|
+
/***/ }),
|
|
91648
|
+
|
|
91649
|
+
/***/ "./streams/config/domainRestriction/StreamsDomainRestrictionResponseListQueryParams.ts":
|
|
91650
|
+
/*!*********************************************************************************************!*\
|
|
91651
|
+
!*** ./streams/config/domainRestriction/StreamsDomainRestrictionResponseListQueryParams.ts ***!
|
|
91652
|
+
\*********************************************************************************************/
|
|
91653
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
91654
|
+
|
|
91655
|
+
"use strict";
|
|
91656
|
+
|
|
91657
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
91658
|
+
exports.StreamsDomainRestrictionResponseListQueryParamsBuilder = void 0;
|
|
91659
|
+
var StreamsDomainRestrictionResponseListQueryParamsBuilder = /** @class */ (function () {
|
|
91660
|
+
function StreamsDomainRestrictionResponseListQueryParamsBuilder() {
|
|
91661
|
+
this.internalParams = {};
|
|
91662
|
+
}
|
|
91663
|
+
/**
|
|
91664
|
+
*
|
|
91665
|
+
* @param offset Index of the first item to return, starting at 0. Default is 0
|
|
91666
|
+
*/
|
|
91667
|
+
StreamsDomainRestrictionResponseListQueryParamsBuilder.prototype.offset = function (offset) {
|
|
91668
|
+
this.internalParams.offset = offset;
|
|
91669
|
+
return this;
|
|
91670
|
+
};
|
|
91671
|
+
/**
|
|
91672
|
+
*
|
|
91673
|
+
* @param limit Maximum number of items to return. Default is 25, maximum is 100
|
|
91674
|
+
*/
|
|
91675
|
+
StreamsDomainRestrictionResponseListQueryParamsBuilder.prototype.limit = function (limit) {
|
|
91676
|
+
this.internalParams.limit = limit;
|
|
91677
|
+
return this;
|
|
91678
|
+
};
|
|
91679
|
+
StreamsDomainRestrictionResponseListQueryParamsBuilder.prototype.buildQueryParams = function () {
|
|
91680
|
+
return this.internalParams;
|
|
91681
|
+
};
|
|
91682
|
+
return StreamsDomainRestrictionResponseListQueryParamsBuilder;
|
|
91683
|
+
}());
|
|
91684
|
+
exports.StreamsDomainRestrictionResponseListQueryParamsBuilder = StreamsDomainRestrictionResponseListQueryParamsBuilder;
|
|
91685
|
+
|
|
91686
|
+
|
|
91461
91687
|
/***/ }),
|
|
91462
91688
|
|
|
91463
91689
|
/***/ "./streams/live/LiveApi.ts":
|