@bitmovin/api-sdk 1.187.1 → 1.189.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 +0 -10
- package/dist/analytics/impressions/ImpressionsApi.js +0 -16
- package/dist/bitmovin-api-sdk.browser.js +297 -235
- 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/CencFairPlay.d.ts +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 -3
- package/dist/models/index.js +2 -3
- package/dist/notifications/webhooks/encoding/manifest/error/ErrorApi.d.ts +7 -0
- package/dist/notifications/webhooks/encoding/manifest/error/ErrorApi.js +11 -0
- package/dist/notifications/webhooks/encoding/manifest/finished/FinishedApi.d.ts +7 -0
- package/dist/notifications/webhooks/encoding/manifest/finished/FinishedApi.js +11 -0
- 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/dist/models/AnalyticsImpressionSample.d.ts +0 -687
- package/dist/models/AnalyticsImpressionSample.js +0 -131
- package/dist/models/AnalyticsVideoStartFailedReason.d.ts +0 -11
- package/dist/models/AnalyticsVideoStartFailedReason.js +0 -15
|
@@ -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.189.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
|
|
@@ -10,7 +10,7 @@ export declare class CencFairPlay {
|
|
|
10
10
|
*/
|
|
11
11
|
iv?: string;
|
|
12
12
|
/**
|
|
13
|
-
* URL of the licensing server
|
|
13
|
+
* URL of the licensing server. Typically starts with a skd://. Please check with your DRM provider on their required format.
|
|
14
14
|
* @type {string}
|
|
15
15
|
* @memberof CencFairPlay
|
|
16
16
|
*/
|
|
@@ -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,9 +70,7 @@ 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
|
-
export * from './AnalyticsImpressionSample';
|
|
76
74
|
export * from './AnalyticsImpressionsQuery';
|
|
77
75
|
export * from './AnalyticsImpressionsResponse';
|
|
78
76
|
export * from './AnalyticsInFilter';
|
|
@@ -107,7 +105,6 @@ export * from './AnalyticsS3RoleBasedOutput';
|
|
|
107
105
|
export * from './AnalyticsStddevQueryRequest';
|
|
108
106
|
export * from './AnalyticsSumQueryRequest';
|
|
109
107
|
export * from './AnalyticsVarianceQueryRequest';
|
|
110
|
-
export * from './AnalyticsVideoStartFailedReason';
|
|
111
108
|
export * from './AnalyticsVirtualLicense';
|
|
112
109
|
export * from './AnalyticsVirtualLicenseLicensesListItem';
|
|
113
110
|
export * from './AnalyticsVirtualLicenseRequest';
|
|
@@ -718,7 +715,9 @@ export * from './StreamPerTitleSettings';
|
|
|
718
715
|
export * from './StreamSelectionMode';
|
|
719
716
|
export * from './StreamsAdConfigAd';
|
|
720
717
|
export * from './StreamsAdConfigResponse';
|
|
718
|
+
export * from './StreamsDomainRestrictionCreateRequest';
|
|
721
719
|
export * from './StreamsDomainRestrictionResponse';
|
|
720
|
+
export * from './StreamsDomainRestrictionUpdateRequest';
|
|
722
721
|
export * from './StreamsEncodingProfile';
|
|
723
722
|
export * from './StreamsLiveCreateRequest';
|
|
724
723
|
export * from './StreamsLiveLifeCycle';
|
package/dist/models/index.js
CHANGED
|
@@ -86,9 +86,7 @@ __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
|
-
__exportStar(require("./AnalyticsImpressionSample"), exports);
|
|
92
90
|
__exportStar(require("./AnalyticsImpressionsQuery"), exports);
|
|
93
91
|
__exportStar(require("./AnalyticsImpressionsResponse"), exports);
|
|
94
92
|
__exportStar(require("./AnalyticsInFilter"), exports);
|
|
@@ -123,7 +121,6 @@ __exportStar(require("./AnalyticsS3RoleBasedOutput"), exports);
|
|
|
123
121
|
__exportStar(require("./AnalyticsStddevQueryRequest"), exports);
|
|
124
122
|
__exportStar(require("./AnalyticsSumQueryRequest"), exports);
|
|
125
123
|
__exportStar(require("./AnalyticsVarianceQueryRequest"), exports);
|
|
126
|
-
__exportStar(require("./AnalyticsVideoStartFailedReason"), exports);
|
|
127
124
|
__exportStar(require("./AnalyticsVirtualLicense"), exports);
|
|
128
125
|
__exportStar(require("./AnalyticsVirtualLicenseLicensesListItem"), exports);
|
|
129
126
|
__exportStar(require("./AnalyticsVirtualLicenseRequest"), exports);
|
|
@@ -734,7 +731,9 @@ __exportStar(require("./StreamPerTitleSettings"), exports);
|
|
|
734
731
|
__exportStar(require("./StreamSelectionMode"), exports);
|
|
735
732
|
__exportStar(require("./StreamsAdConfigAd"), exports);
|
|
736
733
|
__exportStar(require("./StreamsAdConfigResponse"), exports);
|
|
734
|
+
__exportStar(require("./StreamsDomainRestrictionCreateRequest"), exports);
|
|
737
735
|
__exportStar(require("./StreamsDomainRestrictionResponse"), exports);
|
|
736
|
+
__exportStar(require("./StreamsDomainRestrictionUpdateRequest"), exports);
|
|
738
737
|
__exportStar(require("./StreamsEncodingProfile"), exports);
|
|
739
738
|
__exportStar(require("./StreamsLiveCreateRequest"), exports);
|
|
740
739
|
__exportStar(require("./StreamsLiveLifeCycle"), exports);
|
|
@@ -2,6 +2,7 @@ import { BaseAPI } from '../../../../../common/BaseAPI';
|
|
|
2
2
|
import Configuration from '../../../../../common/Configuration';
|
|
3
3
|
import BitmovinResponse from '../../../../../models/BitmovinResponse';
|
|
4
4
|
import Webhook from '../../../../../models/Webhook';
|
|
5
|
+
import PaginationResponse from '../../../../../models/PaginationResponse';
|
|
5
6
|
/**
|
|
6
7
|
* ErrorApi - object-oriented interface
|
|
7
8
|
* @export
|
|
@@ -32,6 +33,12 @@ export default class ErrorApi extends BaseAPI {
|
|
|
32
33
|
* @memberof ErrorApi
|
|
33
34
|
*/
|
|
34
35
|
delete(notificationId: string): Promise<BitmovinResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* @summary Get 'Manifest Error' Webhooks (All Manifests)
|
|
38
|
+
* @throws {BitmovinError}
|
|
39
|
+
* @memberof ErrorApi
|
|
40
|
+
*/
|
|
41
|
+
list(): Promise<PaginationResponse<Webhook>>;
|
|
35
42
|
/**
|
|
36
43
|
* @summary Replace 'Manifest Error' Webhook Notification
|
|
37
44
|
* @param {string} notificationId Id of the webhook notification
|
|
@@ -19,6 +19,7 @@ var BaseAPI_1 = require("../../../../../common/BaseAPI");
|
|
|
19
19
|
var Mapper_1 = require("../../../../../common/Mapper");
|
|
20
20
|
var BitmovinResponse_1 = require("../../../../../models/BitmovinResponse");
|
|
21
21
|
var Webhook_1 = require("../../../../../models/Webhook");
|
|
22
|
+
var PaginationResponse_1 = require("../../../../../models/PaginationResponse");
|
|
22
23
|
/**
|
|
23
24
|
* ErrorApi - object-oriented interface
|
|
24
25
|
* @export
|
|
@@ -70,6 +71,16 @@ var ErrorApi = /** @class */ (function (_super) {
|
|
|
70
71
|
return (0, Mapper_1.map)(response, BitmovinResponse_1.default);
|
|
71
72
|
});
|
|
72
73
|
};
|
|
74
|
+
/**
|
|
75
|
+
* @summary Get 'Manifest Error' Webhooks (All Manifests)
|
|
76
|
+
* @throws {BitmovinError}
|
|
77
|
+
* @memberof ErrorApi
|
|
78
|
+
*/
|
|
79
|
+
ErrorApi.prototype.list = function () {
|
|
80
|
+
return this.restClient.get('/notifications/webhooks/encoding/manifest/error', {}).then(function (response) {
|
|
81
|
+
return new PaginationResponse_1.default(response, Webhook_1.default);
|
|
82
|
+
});
|
|
83
|
+
};
|
|
73
84
|
/**
|
|
74
85
|
* @summary Replace 'Manifest Error' Webhook Notification
|
|
75
86
|
* @param {string} notificationId Id of the webhook notification
|
|
@@ -2,6 +2,7 @@ import { BaseAPI } from '../../../../../common/BaseAPI';
|
|
|
2
2
|
import Configuration from '../../../../../common/Configuration';
|
|
3
3
|
import BitmovinResponse from '../../../../../models/BitmovinResponse';
|
|
4
4
|
import Webhook from '../../../../../models/Webhook';
|
|
5
|
+
import PaginationResponse from '../../../../../models/PaginationResponse';
|
|
5
6
|
/**
|
|
6
7
|
* FinishedApi - object-oriented interface
|
|
7
8
|
* @export
|
|
@@ -32,6 +33,12 @@ export default class FinishedApi extends BaseAPI {
|
|
|
32
33
|
* @memberof FinishedApi
|
|
33
34
|
*/
|
|
34
35
|
delete(notificationId: string): Promise<BitmovinResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* @summary Get 'Manifest Finished' Webhooks (All Manifests)
|
|
38
|
+
* @throws {BitmovinError}
|
|
39
|
+
* @memberof FinishedApi
|
|
40
|
+
*/
|
|
41
|
+
list(): Promise<PaginationResponse<Webhook>>;
|
|
35
42
|
/**
|
|
36
43
|
* @summary Replace Manifest Finished Webhook Notification
|
|
37
44
|
* @param {string} notificationId Id of the webhook notification
|
|
@@ -19,6 +19,7 @@ var BaseAPI_1 = require("../../../../../common/BaseAPI");
|
|
|
19
19
|
var Mapper_1 = require("../../../../../common/Mapper");
|
|
20
20
|
var BitmovinResponse_1 = require("../../../../../models/BitmovinResponse");
|
|
21
21
|
var Webhook_1 = require("../../../../../models/Webhook");
|
|
22
|
+
var PaginationResponse_1 = require("../../../../../models/PaginationResponse");
|
|
22
23
|
/**
|
|
23
24
|
* FinishedApi - object-oriented interface
|
|
24
25
|
* @export
|
|
@@ -70,6 +71,16 @@ var FinishedApi = /** @class */ (function (_super) {
|
|
|
70
71
|
return (0, Mapper_1.map)(response, BitmovinResponse_1.default);
|
|
71
72
|
});
|
|
72
73
|
};
|
|
74
|
+
/**
|
|
75
|
+
* @summary Get 'Manifest Finished' Webhooks (All Manifests)
|
|
76
|
+
* @throws {BitmovinError}
|
|
77
|
+
* @memberof FinishedApi
|
|
78
|
+
*/
|
|
79
|
+
FinishedApi.prototype.list = function () {
|
|
80
|
+
return this.restClient.get('/notifications/webhooks/encoding/manifest/finished', {}).then(function (response) {
|
|
81
|
+
return new PaginationResponse_1.default(response, Webhook_1.default);
|
|
82
|
+
});
|
|
83
|
+
};
|
|
73
84
|
/**
|
|
74
85
|
* @summary Replace Manifest Finished Webhook Notification
|
|
75
86
|
* @param {string} notificationId Id of the webhook notification
|
|
@@ -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;
|