@bitmovin/api-sdk 1.187.0 → 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
|
@@ -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.
|
|
243
|
+
'X-Api-Client-Version': '1.188.0',
|
|
244
244
|
'Content-Type': 'application/json'
|
|
245
245
|
};
|
|
246
246
|
if (tenantOrgId) {
|
|
@@ -10,7 +10,7 @@ import CustomData from '../../../../../models/CustomData';
|
|
|
10
10
|
export default class CustomdataApi extends BaseAPI {
|
|
11
11
|
constructor(configuration: Configuration);
|
|
12
12
|
/**
|
|
13
|
-
* @summary AC3 Codec Configuration Custom Data.
|
|
13
|
+
* @summary AC3 Codec Configuration Custom Data.
|
|
14
14
|
* @param {string} configurationId Id of the codec configuration
|
|
15
15
|
* @throws {BitmovinError}
|
|
16
16
|
* @memberof CustomdataApi
|
|
@@ -30,7 +30,7 @@ var CustomdataApi = /** @class */ (function (_super) {
|
|
|
30
30
|
return _super.call(this, configuration) || this;
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
|
-
* @summary AC3 Codec Configuration Custom Data.
|
|
33
|
+
* @summary AC3 Codec Configuration Custom Data.
|
|
34
34
|
* @param {string} configurationId Id of the codec configuration
|
|
35
35
|
* @throws {BitmovinError}
|
|
36
36
|
* @memberof CustomdataApi
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @export
|
|
3
|
+
* @class StreamsDomainRestrictionCreateRequest
|
|
4
|
+
*/
|
|
5
|
+
export declare class StreamsDomainRestrictionCreateRequest {
|
|
6
|
+
/**
|
|
7
|
+
* The list of allowed domains (required)
|
|
8
|
+
* @type {string[]}
|
|
9
|
+
* @memberof StreamsDomainRestrictionCreateRequest
|
|
10
|
+
*/
|
|
11
|
+
allowedDomains?: string[];
|
|
12
|
+
/**
|
|
13
|
+
* Controls if requests to domain restricted streams without referer header should be allowed or denied
|
|
14
|
+
* @type {boolean}
|
|
15
|
+
* @memberof StreamsDomainRestrictionCreateRequest
|
|
16
|
+
*/
|
|
17
|
+
allowNoReferer?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Controls if Stream is accessible via sharing URL or not
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof StreamsDomainRestrictionCreateRequest
|
|
22
|
+
*/
|
|
23
|
+
allowShare?: boolean;
|
|
24
|
+
constructor(obj?: Partial<StreamsDomainRestrictionCreateRequest>);
|
|
25
|
+
}
|
|
26
|
+
export default StreamsDomainRestrictionCreateRequest;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StreamsDomainRestrictionCreateRequest = void 0;
|
|
4
|
+
var Mapper_1 = require("../common/Mapper");
|
|
5
|
+
/**
|
|
6
|
+
* @export
|
|
7
|
+
* @class StreamsDomainRestrictionCreateRequest
|
|
8
|
+
*/
|
|
9
|
+
var StreamsDomainRestrictionCreateRequest = /** @class */ (function () {
|
|
10
|
+
function StreamsDomainRestrictionCreateRequest(obj) {
|
|
11
|
+
if (!obj) {
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
this.allowedDomains = (0, Mapper_1.mapArray)(obj.allowedDomains);
|
|
15
|
+
this.allowNoReferer = (0, Mapper_1.map)(obj.allowNoReferer);
|
|
16
|
+
this.allowShare = (0, Mapper_1.map)(obj.allowShare);
|
|
17
|
+
}
|
|
18
|
+
return StreamsDomainRestrictionCreateRequest;
|
|
19
|
+
}());
|
|
20
|
+
exports.StreamsDomainRestrictionCreateRequest = StreamsDomainRestrictionCreateRequest;
|
|
21
|
+
exports.default = StreamsDomainRestrictionCreateRequest;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @export
|
|
3
|
+
* @class StreamsDomainRestrictionUpdateRequest
|
|
4
|
+
*/
|
|
5
|
+
export declare class StreamsDomainRestrictionUpdateRequest {
|
|
6
|
+
/**
|
|
7
|
+
* The list of allowed domains
|
|
8
|
+
* @type {string[]}
|
|
9
|
+
* @memberof StreamsDomainRestrictionUpdateRequest
|
|
10
|
+
*/
|
|
11
|
+
allowedDomains?: string[];
|
|
12
|
+
/**
|
|
13
|
+
* Controls if requests to domain restricted streams without referer header should be allowed or denied
|
|
14
|
+
* @type {boolean}
|
|
15
|
+
* @memberof StreamsDomainRestrictionUpdateRequest
|
|
16
|
+
*/
|
|
17
|
+
allowNoReferer?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Controls if Stream is accessible via sharing URL or not
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof StreamsDomainRestrictionUpdateRequest
|
|
22
|
+
*/
|
|
23
|
+
allowShare?: boolean;
|
|
24
|
+
constructor(obj?: Partial<StreamsDomainRestrictionUpdateRequest>);
|
|
25
|
+
}
|
|
26
|
+
export default StreamsDomainRestrictionUpdateRequest;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StreamsDomainRestrictionUpdateRequest = void 0;
|
|
4
|
+
var Mapper_1 = require("../common/Mapper");
|
|
5
|
+
/**
|
|
6
|
+
* @export
|
|
7
|
+
* @class StreamsDomainRestrictionUpdateRequest
|
|
8
|
+
*/
|
|
9
|
+
var StreamsDomainRestrictionUpdateRequest = /** @class */ (function () {
|
|
10
|
+
function StreamsDomainRestrictionUpdateRequest(obj) {
|
|
11
|
+
if (!obj) {
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
this.allowedDomains = (0, Mapper_1.mapArray)(obj.allowedDomains);
|
|
15
|
+
this.allowNoReferer = (0, Mapper_1.map)(obj.allowNoReferer);
|
|
16
|
+
this.allowShare = (0, Mapper_1.map)(obj.allowShare);
|
|
17
|
+
}
|
|
18
|
+
return StreamsDomainRestrictionUpdateRequest;
|
|
19
|
+
}());
|
|
20
|
+
exports.StreamsDomainRestrictionUpdateRequest = StreamsDomainRestrictionUpdateRequest;
|
|
21
|
+
exports.default = StreamsDomainRestrictionUpdateRequest;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -70,7 +70,6 @@ export * from './AnalyticsGreaterThanFilter';
|
|
|
70
70
|
export * from './AnalyticsGreaterThanOrEqualFilter';
|
|
71
71
|
export * from './AnalyticsHttpRequest';
|
|
72
72
|
export * from './AnalyticsHttpRequestType';
|
|
73
|
-
export * from './AnalyticsImpressionDetails';
|
|
74
73
|
export * from './AnalyticsImpressionListItem';
|
|
75
74
|
export * from './AnalyticsImpressionSample';
|
|
76
75
|
export * from './AnalyticsImpressionsQuery';
|
|
@@ -718,7 +717,9 @@ export * from './StreamPerTitleSettings';
|
|
|
718
717
|
export * from './StreamSelectionMode';
|
|
719
718
|
export * from './StreamsAdConfigAd';
|
|
720
719
|
export * from './StreamsAdConfigResponse';
|
|
720
|
+
export * from './StreamsDomainRestrictionCreateRequest';
|
|
721
721
|
export * from './StreamsDomainRestrictionResponse';
|
|
722
|
+
export * from './StreamsDomainRestrictionUpdateRequest';
|
|
722
723
|
export * from './StreamsEncodingProfile';
|
|
723
724
|
export * from './StreamsLiveCreateRequest';
|
|
724
725
|
export * from './StreamsLiveLifeCycle';
|
package/dist/models/index.js
CHANGED
|
@@ -86,7 +86,6 @@ __exportStar(require("./AnalyticsGreaterThanFilter"), exports);
|
|
|
86
86
|
__exportStar(require("./AnalyticsGreaterThanOrEqualFilter"), exports);
|
|
87
87
|
__exportStar(require("./AnalyticsHttpRequest"), exports);
|
|
88
88
|
__exportStar(require("./AnalyticsHttpRequestType"), exports);
|
|
89
|
-
__exportStar(require("./AnalyticsImpressionDetails"), exports);
|
|
90
89
|
__exportStar(require("./AnalyticsImpressionListItem"), exports);
|
|
91
90
|
__exportStar(require("./AnalyticsImpressionSample"), exports);
|
|
92
91
|
__exportStar(require("./AnalyticsImpressionsQuery"), exports);
|
|
@@ -734,7 +733,9 @@ __exportStar(require("./StreamPerTitleSettings"), exports);
|
|
|
734
733
|
__exportStar(require("./StreamSelectionMode"), exports);
|
|
735
734
|
__exportStar(require("./StreamsAdConfigAd"), exports);
|
|
736
735
|
__exportStar(require("./StreamsAdConfigResponse"), exports);
|
|
736
|
+
__exportStar(require("./StreamsDomainRestrictionCreateRequest"), exports);
|
|
737
737
|
__exportStar(require("./StreamsDomainRestrictionResponse"), exports);
|
|
738
|
+
__exportStar(require("./StreamsDomainRestrictionUpdateRequest"), exports);
|
|
738
739
|
__exportStar(require("./StreamsEncodingProfile"), exports);
|
|
739
740
|
__exportStar(require("./StreamsLiveCreateRequest"), exports);
|
|
740
741
|
__exportStar(require("./StreamsLiveLifeCycle"), exports);
|
|
@@ -2,6 +2,7 @@ import { BaseAPI } from '../common/BaseAPI';
|
|
|
2
2
|
import Configuration from '../common/Configuration';
|
|
3
3
|
import VideoApi from './video/VideoApi';
|
|
4
4
|
import LiveApi from './live/LiveApi';
|
|
5
|
+
import ConfigApi from './config/ConfigApi';
|
|
5
6
|
import SearchApi from './search/SearchApi';
|
|
6
7
|
import SigningKeysApi from './signingKeys/SigningKeysApi';
|
|
7
8
|
/**
|
|
@@ -13,6 +14,7 @@ import SigningKeysApi from './signingKeys/SigningKeysApi';
|
|
|
13
14
|
export default class StreamsApi extends BaseAPI {
|
|
14
15
|
video: VideoApi;
|
|
15
16
|
live: LiveApi;
|
|
17
|
+
config: ConfigApi;
|
|
16
18
|
search: SearchApi;
|
|
17
19
|
signingKeys: SigningKeysApi;
|
|
18
20
|
constructor(configuration: Configuration);
|
|
@@ -18,6 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
var BaseAPI_1 = require("../common/BaseAPI");
|
|
19
19
|
var VideoApi_1 = require("./video/VideoApi");
|
|
20
20
|
var LiveApi_1 = require("./live/LiveApi");
|
|
21
|
+
var ConfigApi_1 = require("./config/ConfigApi");
|
|
21
22
|
var SearchApi_1 = require("./search/SearchApi");
|
|
22
23
|
var SigningKeysApi_1 = require("./signingKeys/SigningKeysApi");
|
|
23
24
|
/**
|
|
@@ -32,6 +33,7 @@ var StreamsApi = /** @class */ (function (_super) {
|
|
|
32
33
|
var _this = _super.call(this, configuration) || this;
|
|
33
34
|
_this.video = new VideoApi_1.default(configuration);
|
|
34
35
|
_this.live = new LiveApi_1.default(configuration);
|
|
36
|
+
_this.config = new ConfigApi_1.default(configuration);
|
|
35
37
|
_this.search = new SearchApi_1.default(configuration);
|
|
36
38
|
_this.signingKeys = new SigningKeysApi_1.default(configuration);
|
|
37
39
|
return _this;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BaseAPI } from '../../common/BaseAPI';
|
|
2
|
+
import Configuration from '../../common/Configuration';
|
|
3
|
+
import DomainRestrictionApi from './domainRestriction/DomainRestrictionApi';
|
|
4
|
+
/**
|
|
5
|
+
* ConfigApi - object-oriented interface
|
|
6
|
+
* @export
|
|
7
|
+
* @class ConfigApi
|
|
8
|
+
* @extends {BaseAPI}
|
|
9
|
+
*/
|
|
10
|
+
export default class ConfigApi extends BaseAPI {
|
|
11
|
+
domainRestriction: DomainRestrictionApi;
|
|
12
|
+
constructor(configuration: Configuration);
|
|
13
|
+
}
|
|
@@ -15,21 +15,21 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
15
15
|
};
|
|
16
16
|
})();
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
|
|
18
|
+
var BaseAPI_1 = require("../../common/BaseAPI");
|
|
19
|
+
var DomainRestrictionApi_1 = require("./domainRestriction/DomainRestrictionApi");
|
|
19
20
|
/**
|
|
21
|
+
* ConfigApi - object-oriented interface
|
|
20
22
|
* @export
|
|
21
|
-
* @class
|
|
23
|
+
* @class ConfigApi
|
|
24
|
+
* @extends {BaseAPI}
|
|
22
25
|
*/
|
|
23
|
-
var
|
|
24
|
-
__extends(
|
|
25
|
-
function
|
|
26
|
-
var _this = _super.call(this,
|
|
27
|
-
|
|
28
|
-
return _this;
|
|
29
|
-
}
|
|
26
|
+
var ConfigApi = /** @class */ (function (_super) {
|
|
27
|
+
__extends(ConfigApi, _super);
|
|
28
|
+
function ConfigApi(configuration) {
|
|
29
|
+
var _this = _super.call(this, configuration) || this;
|
|
30
|
+
_this.domainRestriction = new DomainRestrictionApi_1.default(configuration);
|
|
30
31
|
return _this;
|
|
31
32
|
}
|
|
32
|
-
return
|
|
33
|
-
}(
|
|
34
|
-
exports.
|
|
35
|
-
exports.default = AnalyticsImpressionDetails;
|
|
33
|
+
return ConfigApi;
|
|
34
|
+
}(BaseAPI_1.BaseAPI));
|
|
35
|
+
exports.default = ConfigApi;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { BaseAPI } from '../../../common/BaseAPI';
|
|
2
|
+
import Configuration from '../../../common/Configuration';
|
|
3
|
+
import StreamsDomainRestrictionCreateRequest from '../../../models/StreamsDomainRestrictionCreateRequest';
|
|
4
|
+
import StreamsDomainRestrictionResponse from '../../../models/StreamsDomainRestrictionResponse';
|
|
5
|
+
import StreamsDomainRestrictionUpdateRequest from '../../../models/StreamsDomainRestrictionUpdateRequest';
|
|
6
|
+
import PaginationResponse from '../../../models/PaginationResponse';
|
|
7
|
+
import { StreamsDomainRestrictionResponseListQueryParams, StreamsDomainRestrictionResponseListQueryParamsBuilder } from './StreamsDomainRestrictionResponseListQueryParams';
|
|
8
|
+
/**
|
|
9
|
+
* DomainRestrictionApi - object-oriented interface
|
|
10
|
+
* @export
|
|
11
|
+
* @class DomainRestrictionApi
|
|
12
|
+
* @extends {BaseAPI}
|
|
13
|
+
*/
|
|
14
|
+
export default class DomainRestrictionApi extends BaseAPI {
|
|
15
|
+
constructor(configuration: Configuration);
|
|
16
|
+
/**
|
|
17
|
+
* @summary Create new streams domain restriction
|
|
18
|
+
* @param {StreamsDomainRestrictionCreateRequest} streamsDomainRestrictionCreateRequest Create a new streams domain restriction
|
|
19
|
+
* @throws {BitmovinError}
|
|
20
|
+
* @memberof DomainRestrictionApi
|
|
21
|
+
*/
|
|
22
|
+
create(streamsDomainRestrictionCreateRequest?: StreamsDomainRestrictionCreateRequest): Promise<StreamsDomainRestrictionResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* @summary Delete streams domain restriction by id
|
|
25
|
+
* @param {string} domainRestrictionId Id of the streams domain restriction.
|
|
26
|
+
* @throws {BitmovinError}
|
|
27
|
+
* @memberof DomainRestrictionApi
|
|
28
|
+
*/
|
|
29
|
+
delete(domainRestrictionId: string): Promise<Response>;
|
|
30
|
+
/**
|
|
31
|
+
* @summary Get streams domain restriction config by id
|
|
32
|
+
* @param {string} domainRestrictionId Id of the streams domain restriction.
|
|
33
|
+
* @throws {BitmovinError}
|
|
34
|
+
* @memberof DomainRestrictionApi
|
|
35
|
+
*/
|
|
36
|
+
get(domainRestrictionId: string): Promise<StreamsDomainRestrictionResponse>;
|
|
37
|
+
/**
|
|
38
|
+
* @summary Get paginated list of domain restriction configurations
|
|
39
|
+
* @param {*} [queryParameters] query parameters for filtering, sorting and pagination
|
|
40
|
+
* @throws {BitmovinError}
|
|
41
|
+
* @memberof DomainRestrictionApi
|
|
42
|
+
*/
|
|
43
|
+
list(queryParameters?: StreamsDomainRestrictionResponseListQueryParams | ((q: StreamsDomainRestrictionResponseListQueryParamsBuilder) => StreamsDomainRestrictionResponseListQueryParamsBuilder)): Promise<PaginationResponse<StreamsDomainRestrictionResponse>>;
|
|
44
|
+
/**
|
|
45
|
+
* @summary Partially update streams domain restriction by id
|
|
46
|
+
* @param {string} domainRestrictionId Id of the streams domain restriction.
|
|
47
|
+
* @param {StreamsDomainRestrictionUpdateRequest} streamsDomainRestrictionUpdateRequest The updated streams domain restriction object.
|
|
48
|
+
* @throws {BitmovinError}
|
|
49
|
+
* @memberof DomainRestrictionApi
|
|
50
|
+
*/
|
|
51
|
+
patchStreamsDomainRestriction(domainRestrictionId: string, streamsDomainRestrictionUpdateRequest?: StreamsDomainRestrictionUpdateRequest): Promise<StreamsDomainRestrictionResponse>;
|
|
52
|
+
}
|
|
@@ -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 StreamsDomainRestrictionResponse_1 = require("../../../models/StreamsDomainRestrictionResponse");
|
|
21
|
+
var PaginationResponse_1 = require("../../../models/PaginationResponse");
|
|
22
|
+
var StreamsDomainRestrictionResponseListQueryParams_1 = require("./StreamsDomainRestrictionResponseListQueryParams");
|
|
23
|
+
/**
|
|
24
|
+
* DomainRestrictionApi - object-oriented interface
|
|
25
|
+
* @export
|
|
26
|
+
* @class DomainRestrictionApi
|
|
27
|
+
* @extends {BaseAPI}
|
|
28
|
+
*/
|
|
29
|
+
var DomainRestrictionApi = /** @class */ (function (_super) {
|
|
30
|
+
__extends(DomainRestrictionApi, _super);
|
|
31
|
+
function DomainRestrictionApi(configuration) {
|
|
32
|
+
return _super.call(this, configuration) || this;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* @summary Create new streams domain restriction
|
|
36
|
+
* @param {StreamsDomainRestrictionCreateRequest} streamsDomainRestrictionCreateRequest Create a new streams domain restriction
|
|
37
|
+
* @throws {BitmovinError}
|
|
38
|
+
* @memberof DomainRestrictionApi
|
|
39
|
+
*/
|
|
40
|
+
DomainRestrictionApi.prototype.create = function (streamsDomainRestrictionCreateRequest) {
|
|
41
|
+
return this.restClient.post('/streams/config/domain-restriction/', {}, streamsDomainRestrictionCreateRequest).then(function (response) {
|
|
42
|
+
return (0, Mapper_1.map)(response, StreamsDomainRestrictionResponse_1.default);
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* @summary Delete streams domain restriction by id
|
|
47
|
+
* @param {string} domainRestrictionId Id of the streams domain restriction.
|
|
48
|
+
* @throws {BitmovinError}
|
|
49
|
+
* @memberof DomainRestrictionApi
|
|
50
|
+
*/
|
|
51
|
+
DomainRestrictionApi.prototype.delete = function (domainRestrictionId) {
|
|
52
|
+
var pathParamMap = {
|
|
53
|
+
domain_restriction_id: domainRestrictionId
|
|
54
|
+
};
|
|
55
|
+
return this.restClient.delete('/streams/config/domain-restriction/{domain_restriction_id}', pathParamMap).then(function (response) {
|
|
56
|
+
return (0, Mapper_1.map)(response);
|
|
57
|
+
});
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* @summary Get streams domain restriction config by id
|
|
61
|
+
* @param {string} domainRestrictionId Id of the streams domain restriction.
|
|
62
|
+
* @throws {BitmovinError}
|
|
63
|
+
* @memberof DomainRestrictionApi
|
|
64
|
+
*/
|
|
65
|
+
DomainRestrictionApi.prototype.get = function (domainRestrictionId) {
|
|
66
|
+
var pathParamMap = {
|
|
67
|
+
domain_restriction_id: domainRestrictionId
|
|
68
|
+
};
|
|
69
|
+
return this.restClient.get('/streams/config/domain-restriction/{domain_restriction_id}', pathParamMap).then(function (response) {
|
|
70
|
+
return (0, Mapper_1.map)(response, StreamsDomainRestrictionResponse_1.default);
|
|
71
|
+
});
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* @summary Get paginated list of domain restriction configurations
|
|
75
|
+
* @param {*} [queryParameters] query parameters for filtering, sorting and pagination
|
|
76
|
+
* @throws {BitmovinError}
|
|
77
|
+
* @memberof DomainRestrictionApi
|
|
78
|
+
*/
|
|
79
|
+
DomainRestrictionApi.prototype.list = function (queryParameters) {
|
|
80
|
+
var queryParams = {};
|
|
81
|
+
if (typeof queryParameters === 'function') {
|
|
82
|
+
queryParams = queryParameters(new StreamsDomainRestrictionResponseListQueryParams_1.StreamsDomainRestrictionResponseListQueryParamsBuilder()).buildQueryParams();
|
|
83
|
+
}
|
|
84
|
+
else if (queryParameters) {
|
|
85
|
+
queryParams = queryParameters;
|
|
86
|
+
}
|
|
87
|
+
return this.restClient.get('/streams/config/domain-restriction/', {}, queryParams).then(function (response) {
|
|
88
|
+
return new PaginationResponse_1.default(response, StreamsDomainRestrictionResponse_1.default);
|
|
89
|
+
});
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* @summary Partially update streams domain restriction by id
|
|
93
|
+
* @param {string} domainRestrictionId Id of the streams domain restriction.
|
|
94
|
+
* @param {StreamsDomainRestrictionUpdateRequest} streamsDomainRestrictionUpdateRequest The updated streams domain restriction object.
|
|
95
|
+
* @throws {BitmovinError}
|
|
96
|
+
* @memberof DomainRestrictionApi
|
|
97
|
+
*/
|
|
98
|
+
DomainRestrictionApi.prototype.patchStreamsDomainRestriction = function (domainRestrictionId, streamsDomainRestrictionUpdateRequest) {
|
|
99
|
+
var pathParamMap = {
|
|
100
|
+
domain_restriction_id: domainRestrictionId
|
|
101
|
+
};
|
|
102
|
+
return this.restClient.patch('/streams/config/domain-restriction/{domain_restriction_id}', pathParamMap, streamsDomainRestrictionUpdateRequest).then(function (response) {
|
|
103
|
+
return (0, Mapper_1.map)(response, StreamsDomainRestrictionResponse_1.default);
|
|
104
|
+
});
|
|
105
|
+
};
|
|
106
|
+
return DomainRestrictionApi;
|
|
107
|
+
}(BaseAPI_1.BaseAPI));
|
|
108
|
+
exports.default = DomainRestrictionApi;
|
package/dist/streams/config/domainRestriction/StreamsDomainRestrictionResponseListQueryParams.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export interface StreamsDomainRestrictionResponseListQueryParams {
|
|
2
|
+
/**
|
|
3
|
+
* Index of the first item to return, starting at 0. Default is 0
|
|
4
|
+
* @type {number}
|
|
5
|
+
* @memberof StreamsDomainRestrictionResponseListQueryParams
|
|
6
|
+
*/
|
|
7
|
+
offset?: number | undefined;
|
|
8
|
+
/**
|
|
9
|
+
* Maximum number of items to return. Default is 25, maximum is 100
|
|
10
|
+
* @type {number}
|
|
11
|
+
* @memberof StreamsDomainRestrictionResponseListQueryParams
|
|
12
|
+
*/
|
|
13
|
+
limit?: number | undefined;
|
|
14
|
+
}
|
|
15
|
+
export declare class StreamsDomainRestrictionResponseListQueryParamsBuilder {
|
|
16
|
+
private internalParams;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @param offset Index of the first item to return, starting at 0. Default is 0
|
|
20
|
+
*/
|
|
21
|
+
offset(offset: number): this;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @param limit Maximum number of items to return. Default is 25, maximum is 100
|
|
25
|
+
*/
|
|
26
|
+
limit(limit: number): this;
|
|
27
|
+
buildQueryParams(): StreamsDomainRestrictionResponseListQueryParams;
|
|
28
|
+
}
|
package/dist/streams/config/domainRestriction/StreamsDomainRestrictionResponseListQueryParams.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StreamsDomainRestrictionResponseListQueryParamsBuilder = void 0;
|
|
4
|
+
var StreamsDomainRestrictionResponseListQueryParamsBuilder = /** @class */ (function () {
|
|
5
|
+
function StreamsDomainRestrictionResponseListQueryParamsBuilder() {
|
|
6
|
+
this.internalParams = {};
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @param offset Index of the first item to return, starting at 0. Default is 0
|
|
11
|
+
*/
|
|
12
|
+
StreamsDomainRestrictionResponseListQueryParamsBuilder.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
|
+
StreamsDomainRestrictionResponseListQueryParamsBuilder.prototype.limit = function (limit) {
|
|
21
|
+
this.internalParams.limit = limit;
|
|
22
|
+
return this;
|
|
23
|
+
};
|
|
24
|
+
StreamsDomainRestrictionResponseListQueryParamsBuilder.prototype.buildQueryParams = function () {
|
|
25
|
+
return this.internalParams;
|
|
26
|
+
};
|
|
27
|
+
return StreamsDomainRestrictionResponseListQueryParamsBuilder;
|
|
28
|
+
}());
|
|
29
|
+
exports.StreamsDomainRestrictionResponseListQueryParamsBuilder = StreamsDomainRestrictionResponseListQueryParamsBuilder;
|
package/package.json
CHANGED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import AnalyticsImpressionSample from './AnalyticsImpressionSample';
|
|
2
|
-
/**
|
|
3
|
-
* @export
|
|
4
|
-
* @class AnalyticsImpressionDetails
|
|
5
|
-
*/
|
|
6
|
-
export declare class AnalyticsImpressionDetails extends Array<AnalyticsImpressionSample> {
|
|
7
|
-
constructor(obj?: any);
|
|
8
|
-
}
|
|
9
|
-
export default AnalyticsImpressionDetails;
|