@bitmovin/api-sdk 1.179.0 → 1.181.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/LICENSE +1 -1
- package/README.md +1 -1
- package/dist/bitmovin-api-sdk.browser.js +288 -67
- package/dist/bitmovin-api-sdk.browser.min.js +1 -1
- package/dist/common/RestClient.js +1 -1
- package/dist/encoding/manifests/ManifestListQueryParams.d.ts +11 -0
- package/dist/encoding/manifests/ManifestListQueryParams.js +8 -0
- package/dist/encoding/manifests/dash/DashManifestListQueryParams.d.ts +11 -0
- package/dist/encoding/manifests/dash/DashManifestListQueryParams.js +8 -0
- package/dist/encoding/manifests/hls/HlsManifestListQueryParams.d.ts +11 -0
- package/dist/encoding/manifests/hls/HlsManifestListQueryParams.js +8 -0
- package/dist/encoding/manifests/smooth/SmoothStreamingManifestListQueryParams.d.ts +11 -0
- package/dist/encoding/manifests/smooth/SmoothStreamingManifestListQueryParams.js +8 -0
- package/dist/models/AccountInformation.d.ts +5 -0
- package/dist/models/AccountInformation.js +1 -0
- package/dist/models/GenericS3Input.d.ts +13 -0
- package/dist/models/GenericS3Input.js +2 -0
- package/dist/models/GenericS3Output.d.ts +13 -0
- package/dist/models/GenericS3Output.js +2 -0
- package/dist/models/HlsManifestAdMarkerSettings.d.ts +15 -0
- package/dist/models/HlsManifestAdMarkerSettings.js +19 -0
- package/dist/models/HlsManifestAdMarkerType.d.ts +11 -0
- package/dist/models/HlsManifestAdMarkerType.js +15 -0
- package/dist/models/LiveHlsManifest.d.ts +7 -0
- package/dist/models/LiveHlsManifest.js +2 -0
- package/dist/models/S3AccessStyle.d.ts +10 -0
- package/dist/models/S3AccessStyle.js +14 -0
- package/dist/models/StreamsLiveResponse.d.ts +5 -21
- package/dist/models/StreamsLiveResponse.js +36 -14
- package/dist/models/StreamsResponse.d.ts +46 -0
- package/dist/models/{StreamsSearchResponse.js → StreamsResponse.js} +12 -7
- package/dist/models/StreamsVideoResponse.d.ts +5 -21
- package/dist/models/StreamsVideoResponse.js +39 -17
- package/dist/models/index.d.ts +4 -1
- package/dist/models/index.js +4 -1
- package/dist/streams/StreamsApi.d.ts +2 -2
- package/dist/streams/StreamsApi.js +2 -2
- package/dist/streams/search/SearchApi.d.ts +3 -3
- package/dist/streams/search/SearchApi.js +4 -4
- package/dist/streams/search/StreamsResponseListQueryParams.d.ts +107 -0
- package/dist/streams/search/StreamsResponseListQueryParams.js +85 -0
- package/package.json +1 -1
- package/dist/models/StreamsSearchResponse.d.ts +0 -39
- package/dist/streams/search/StreamsSearchResponseListQueryParams.d.ts +0 -39
- package/dist/streams/search/StreamsSearchResponseListQueryParams.js +0 -37
|
@@ -1,44 +1,28 @@
|
|
|
1
1
|
import StreamsAdConfigResponse from './StreamsAdConfigResponse';
|
|
2
2
|
import StreamsContentProtectionResponse from './StreamsContentProtectionResponse';
|
|
3
|
+
import StreamsResponse from './StreamsResponse';
|
|
3
4
|
import StreamsStyleConfigResponse from './StreamsStyleConfigResponse';
|
|
4
5
|
import StreamsTrimmingStatus from './StreamsTrimmingStatus';
|
|
6
|
+
import StreamsType from './StreamsType';
|
|
5
7
|
import StreamsVideoEncodingTask from './StreamsVideoEncodingTask';
|
|
6
8
|
import StreamsVideoStatus from './StreamsVideoStatus';
|
|
7
9
|
/**
|
|
8
10
|
* @export
|
|
9
11
|
* @class StreamsVideoResponse
|
|
10
12
|
*/
|
|
11
|
-
export declare class StreamsVideoResponse {
|
|
13
|
+
export declare class StreamsVideoResponse extends StreamsResponse {
|
|
12
14
|
/**
|
|
13
|
-
*
|
|
15
|
+
* Discriminator property for StreamsResponse
|
|
14
16
|
* @type {string}
|
|
15
17
|
* @memberof StreamsVideoResponse
|
|
16
18
|
*/
|
|
17
|
-
|
|
19
|
+
readonly type: StreamsType;
|
|
18
20
|
/**
|
|
19
21
|
* The asset URL of the stream
|
|
20
22
|
* @type {string}
|
|
21
23
|
* @memberof StreamsVideoResponse
|
|
22
24
|
*/
|
|
23
25
|
assetUrl?: string;
|
|
24
|
-
/**
|
|
25
|
-
* The title of the stream
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof StreamsVideoResponse
|
|
28
|
-
*/
|
|
29
|
-
title?: string;
|
|
30
|
-
/**
|
|
31
|
-
* The description of the stream
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof StreamsVideoResponse
|
|
34
|
-
*/
|
|
35
|
-
description?: string;
|
|
36
|
-
/**
|
|
37
|
-
* Creation timestamp, returned as UTC expressed in ISO 8601 format: YYYY-MM-DDThh:mm:ssZ
|
|
38
|
-
* @type {Date}
|
|
39
|
-
* @memberof StreamsVideoResponse
|
|
40
|
-
*/
|
|
41
|
-
createdAt?: Date;
|
|
42
26
|
/**
|
|
43
27
|
* The status of the stream
|
|
44
28
|
* @type {StreamsVideoStatus}
|
|
@@ -1,36 +1,58 @@
|
|
|
1
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
|
+
})();
|
|
2
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
18
|
exports.StreamsVideoResponse = void 0;
|
|
4
19
|
var Mapper_1 = require("../common/Mapper");
|
|
5
20
|
var StreamsAdConfigResponse_1 = require("./StreamsAdConfigResponse");
|
|
6
21
|
var StreamsContentProtectionResponse_1 = require("./StreamsContentProtectionResponse");
|
|
22
|
+
var StreamsResponse_1 = require("./StreamsResponse");
|
|
7
23
|
var StreamsStyleConfigResponse_1 = require("./StreamsStyleConfigResponse");
|
|
24
|
+
var StreamsType_1 = require("./StreamsType");
|
|
8
25
|
var StreamsVideoEncodingTask_1 = require("./StreamsVideoEncodingTask");
|
|
9
26
|
/**
|
|
10
27
|
* @export
|
|
11
28
|
* @class StreamsVideoResponse
|
|
12
29
|
*/
|
|
13
|
-
var StreamsVideoResponse = /** @class */ (function () {
|
|
30
|
+
var StreamsVideoResponse = /** @class */ (function (_super) {
|
|
31
|
+
__extends(StreamsVideoResponse, _super);
|
|
14
32
|
function StreamsVideoResponse(obj) {
|
|
33
|
+
var _this = _super.call(this, obj) || this;
|
|
34
|
+
/**
|
|
35
|
+
* Discriminator property for StreamsResponse
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof StreamsVideoResponse
|
|
38
|
+
*/
|
|
39
|
+
_this.type = StreamsType_1.default.VIDEO;
|
|
15
40
|
if (!obj) {
|
|
16
|
-
return;
|
|
41
|
+
return _this;
|
|
17
42
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
this.trimming = (0, Mapper_1.map)(obj.trimming);
|
|
30
|
-
this.downloadUrl = (0, Mapper_1.map)(obj.downloadUrl);
|
|
31
|
-
this.signed = (0, Mapper_1.map)(obj.signed);
|
|
43
|
+
_this.assetUrl = (0, Mapper_1.map)(obj.assetUrl);
|
|
44
|
+
_this.status = (0, Mapper_1.map)(obj.status);
|
|
45
|
+
_this.styleConfig = (0, Mapper_1.map)(obj.styleConfig, StreamsStyleConfigResponse_1.default);
|
|
46
|
+
_this.encodingTasks = (0, Mapper_1.mapArray)(obj.encodingTasks, StreamsVideoEncodingTask_1.default);
|
|
47
|
+
_this.posterUrl = (0, Mapper_1.map)(obj.posterUrl);
|
|
48
|
+
_this.adConfig = (0, Mapper_1.map)(obj.adConfig, StreamsAdConfigResponse_1.default);
|
|
49
|
+
_this.contentProtection = (0, Mapper_1.map)(obj.contentProtection, StreamsContentProtectionResponse_1.default);
|
|
50
|
+
_this.trimming = (0, Mapper_1.map)(obj.trimming);
|
|
51
|
+
_this.downloadUrl = (0, Mapper_1.map)(obj.downloadUrl);
|
|
52
|
+
_this.signed = (0, Mapper_1.map)(obj.signed);
|
|
53
|
+
return _this;
|
|
32
54
|
}
|
|
33
55
|
return StreamsVideoResponse;
|
|
34
|
-
}());
|
|
56
|
+
}(StreamsResponse_1.default));
|
|
35
57
|
exports.StreamsVideoResponse = StreamsVideoResponse;
|
|
36
58
|
exports.default = StreamsVideoResponse;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -406,6 +406,8 @@ export * from './HistoryEncoding';
|
|
|
406
406
|
export * from './HistoryMuxing';
|
|
407
407
|
export * from './HistoryStream';
|
|
408
408
|
export * from './HlsManifest';
|
|
409
|
+
export * from './HlsManifestAdMarkerSettings';
|
|
410
|
+
export * from './HlsManifestAdMarkerType';
|
|
409
411
|
export * from './HlsManifestDefault';
|
|
410
412
|
export * from './HlsManifestDefaultVersion';
|
|
411
413
|
export * from './HlsTargetDurationRoundingMode';
|
|
@@ -596,6 +598,7 @@ export * from './ReuploadSettings';
|
|
|
596
598
|
export * from './RotateFilter';
|
|
597
599
|
export * from './RtmpIngestPoint';
|
|
598
600
|
export * from './RtmpInput';
|
|
601
|
+
export * from './S3AccessStyle';
|
|
599
602
|
export * from './S3Input';
|
|
600
603
|
export * from './S3Output';
|
|
601
604
|
export * from './S3RoleBasedInput';
|
|
@@ -716,7 +719,7 @@ export * from './StreamsLiveResponse';
|
|
|
716
719
|
export * from './StreamsLiveUpdateRequest';
|
|
717
720
|
export * from './StreamsPublicSigningKey';
|
|
718
721
|
export * from './StreamsPublicSigningKeyResponse';
|
|
719
|
-
export * from './
|
|
722
|
+
export * from './StreamsResponse';
|
|
720
723
|
export * from './StreamsSigningKeyResponse';
|
|
721
724
|
export * from './StreamsStyleConfigPlayerStyle';
|
|
722
725
|
export * from './StreamsStyleConfigResponse';
|
package/dist/models/index.js
CHANGED
|
@@ -422,6 +422,8 @@ __exportStar(require("./HistoryEncoding"), exports);
|
|
|
422
422
|
__exportStar(require("./HistoryMuxing"), exports);
|
|
423
423
|
__exportStar(require("./HistoryStream"), exports);
|
|
424
424
|
__exportStar(require("./HlsManifest"), exports);
|
|
425
|
+
__exportStar(require("./HlsManifestAdMarkerSettings"), exports);
|
|
426
|
+
__exportStar(require("./HlsManifestAdMarkerType"), exports);
|
|
425
427
|
__exportStar(require("./HlsManifestDefault"), exports);
|
|
426
428
|
__exportStar(require("./HlsManifestDefaultVersion"), exports);
|
|
427
429
|
__exportStar(require("./HlsTargetDurationRoundingMode"), exports);
|
|
@@ -612,6 +614,7 @@ __exportStar(require("./ReuploadSettings"), exports);
|
|
|
612
614
|
__exportStar(require("./RotateFilter"), exports);
|
|
613
615
|
__exportStar(require("./RtmpIngestPoint"), exports);
|
|
614
616
|
__exportStar(require("./RtmpInput"), exports);
|
|
617
|
+
__exportStar(require("./S3AccessStyle"), exports);
|
|
615
618
|
__exportStar(require("./S3Input"), exports);
|
|
616
619
|
__exportStar(require("./S3Output"), exports);
|
|
617
620
|
__exportStar(require("./S3RoleBasedInput"), exports);
|
|
@@ -732,7 +735,7 @@ __exportStar(require("./StreamsLiveResponse"), exports);
|
|
|
732
735
|
__exportStar(require("./StreamsLiveUpdateRequest"), exports);
|
|
733
736
|
__exportStar(require("./StreamsPublicSigningKey"), exports);
|
|
734
737
|
__exportStar(require("./StreamsPublicSigningKeyResponse"), exports);
|
|
735
|
-
__exportStar(require("./
|
|
738
|
+
__exportStar(require("./StreamsResponse"), exports);
|
|
736
739
|
__exportStar(require("./StreamsSigningKeyResponse"), exports);
|
|
737
740
|
__exportStar(require("./StreamsStyleConfigPlayerStyle"), exports);
|
|
738
741
|
__exportStar(require("./StreamsStyleConfigResponse"), exports);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BaseAPI } from '../common/BaseAPI';
|
|
2
2
|
import Configuration from '../common/Configuration';
|
|
3
|
-
import SearchApi from './search/SearchApi';
|
|
4
3
|
import VideoApi from './video/VideoApi';
|
|
5
4
|
import LiveApi from './live/LiveApi';
|
|
5
|
+
import SearchApi from './search/SearchApi';
|
|
6
6
|
import SigningKeysApi from './signingKeys/SigningKeysApi';
|
|
7
7
|
/**
|
|
8
8
|
* StreamsApi - object-oriented interface
|
|
@@ -11,9 +11,9 @@ import SigningKeysApi from './signingKeys/SigningKeysApi';
|
|
|
11
11
|
* @extends {BaseAPI}
|
|
12
12
|
*/
|
|
13
13
|
export default class StreamsApi extends BaseAPI {
|
|
14
|
-
search: SearchApi;
|
|
15
14
|
video: VideoApi;
|
|
16
15
|
live: LiveApi;
|
|
16
|
+
search: SearchApi;
|
|
17
17
|
signingKeys: SigningKeysApi;
|
|
18
18
|
constructor(configuration: Configuration);
|
|
19
19
|
}
|
|
@@ -16,9 +16,9 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
16
16
|
})();
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
var BaseAPI_1 = require("../common/BaseAPI");
|
|
19
|
-
var SearchApi_1 = require("./search/SearchApi");
|
|
20
19
|
var VideoApi_1 = require("./video/VideoApi");
|
|
21
20
|
var LiveApi_1 = require("./live/LiveApi");
|
|
21
|
+
var SearchApi_1 = require("./search/SearchApi");
|
|
22
22
|
var SigningKeysApi_1 = require("./signingKeys/SigningKeysApi");
|
|
23
23
|
/**
|
|
24
24
|
* StreamsApi - object-oriented interface
|
|
@@ -30,9 +30,9 @@ var StreamsApi = /** @class */ (function (_super) {
|
|
|
30
30
|
__extends(StreamsApi, _super);
|
|
31
31
|
function StreamsApi(configuration) {
|
|
32
32
|
var _this = _super.call(this, configuration) || this;
|
|
33
|
-
_this.search = new SearchApi_1.default(configuration);
|
|
34
33
|
_this.video = new VideoApi_1.default(configuration);
|
|
35
34
|
_this.live = new LiveApi_1.default(configuration);
|
|
35
|
+
_this.search = new SearchApi_1.default(configuration);
|
|
36
36
|
_this.signingKeys = new SigningKeysApi_1.default(configuration);
|
|
37
37
|
return _this;
|
|
38
38
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BaseAPI } from '../../common/BaseAPI';
|
|
2
2
|
import Configuration from '../../common/Configuration';
|
|
3
|
-
import
|
|
3
|
+
import StreamsResponse from '../../models/StreamsResponse';
|
|
4
4
|
import PaginationResponse from '../../models/PaginationResponse';
|
|
5
|
-
import {
|
|
5
|
+
import { StreamsResponseListQueryParams, StreamsResponseListQueryParamsBuilder } from './StreamsResponseListQueryParams';
|
|
6
6
|
/**
|
|
7
7
|
* SearchApi - object-oriented interface
|
|
8
8
|
* @export
|
|
@@ -17,5 +17,5 @@ export default class SearchApi extends BaseAPI {
|
|
|
17
17
|
* @throws {BitmovinError}
|
|
18
18
|
* @memberof SearchApi
|
|
19
19
|
*/
|
|
20
|
-
list(queryParameters?:
|
|
20
|
+
list(queryParameters?: StreamsResponseListQueryParams | ((q: StreamsResponseListQueryParamsBuilder) => StreamsResponseListQueryParamsBuilder)): Promise<PaginationResponse<StreamsResponse>>;
|
|
21
21
|
}
|
|
@@ -16,9 +16,9 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
16
16
|
})();
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
var BaseAPI_1 = require("../../common/BaseAPI");
|
|
19
|
-
var
|
|
19
|
+
var StreamsResponse_1 = require("../../models/StreamsResponse");
|
|
20
20
|
var PaginationResponse_1 = require("../../models/PaginationResponse");
|
|
21
|
-
var
|
|
21
|
+
var StreamsResponseListQueryParams_1 = require("./StreamsResponseListQueryParams");
|
|
22
22
|
/**
|
|
23
23
|
* SearchApi - object-oriented interface
|
|
24
24
|
* @export
|
|
@@ -39,13 +39,13 @@ var SearchApi = /** @class */ (function (_super) {
|
|
|
39
39
|
SearchApi.prototype.list = function (queryParameters) {
|
|
40
40
|
var queryParams = {};
|
|
41
41
|
if (typeof queryParameters === 'function') {
|
|
42
|
-
queryParams = queryParameters(new
|
|
42
|
+
queryParams = queryParameters(new StreamsResponseListQueryParams_1.StreamsResponseListQueryParamsBuilder()).buildQueryParams();
|
|
43
43
|
}
|
|
44
44
|
else if (queryParameters) {
|
|
45
45
|
queryParams = queryParameters;
|
|
46
46
|
}
|
|
47
47
|
return this.restClient.get('/streams/search', {}, queryParams).then(function (response) {
|
|
48
|
-
return new PaginationResponse_1.default(response,
|
|
48
|
+
return new PaginationResponse_1.default(response, StreamsResponse_1.default);
|
|
49
49
|
});
|
|
50
50
|
};
|
|
51
51
|
return SearchApi;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import StreamsType from '../../models/StreamsType';
|
|
2
|
+
import StreamsVideoStatus from '../../models/StreamsVideoStatus';
|
|
3
|
+
export interface StreamsResponseListQueryParams {
|
|
4
|
+
/**
|
|
5
|
+
* Index of the first item to return, starting at 0. Default is 0
|
|
6
|
+
* @type {number}
|
|
7
|
+
* @memberof StreamsResponseListQueryParams
|
|
8
|
+
*/
|
|
9
|
+
offset?: number | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* Maximum number of items to return. Default is 25, maximum is 100
|
|
12
|
+
* @type {number}
|
|
13
|
+
* @memberof StreamsResponseListQueryParams
|
|
14
|
+
*/
|
|
15
|
+
limit?: number | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Query to search for in a streams' title, description and ID
|
|
18
|
+
* @type {string}
|
|
19
|
+
* @memberof StreamsResponseListQueryParams
|
|
20
|
+
*/
|
|
21
|
+
query?: string | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Type of stream to search for
|
|
24
|
+
* @type {StreamsType}
|
|
25
|
+
* @memberof StreamsResponseListQueryParams
|
|
26
|
+
*/
|
|
27
|
+
type?: StreamsType | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Status of the streams to search for
|
|
30
|
+
* @type {StreamsVideoStatus}
|
|
31
|
+
* @memberof StreamsResponseListQueryParams
|
|
32
|
+
*/
|
|
33
|
+
status?: StreamsVideoStatus | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Upper limit for the creation date of found streams as UTC in ISO 8601 format: YYYY-MM-DDThh:mm:ssZ
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof StreamsResponseListQueryParams
|
|
38
|
+
*/
|
|
39
|
+
createdBefore?: string | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* Lower limit for the creation date of found streams as UTC in ISO 8601 format: YYYY-MM-DDThh:mm:ssZ
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof StreamsResponseListQueryParams
|
|
44
|
+
*/
|
|
45
|
+
createdAfter?: string | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* Filter for token-protected/signed streams
|
|
48
|
+
* @type {boolean}
|
|
49
|
+
* @memberof StreamsResponseListQueryParams
|
|
50
|
+
*/
|
|
51
|
+
signed?: boolean | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* Filter for domain-restricted streams
|
|
54
|
+
* @type {boolean}
|
|
55
|
+
* @memberof StreamsResponseListQueryParams
|
|
56
|
+
*/
|
|
57
|
+
domainRestricted?: boolean | undefined;
|
|
58
|
+
}
|
|
59
|
+
export declare class StreamsResponseListQueryParamsBuilder {
|
|
60
|
+
private internalParams;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @param offset Index of the first item to return, starting at 0. Default is 0
|
|
64
|
+
*/
|
|
65
|
+
offset(offset: number): this;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @param limit Maximum number of items to return. Default is 25, maximum is 100
|
|
69
|
+
*/
|
|
70
|
+
limit(limit: number): this;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @param query Query to search for in a streams' title, description and ID
|
|
74
|
+
*/
|
|
75
|
+
query(query: string): this;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @param type Type of stream to search for
|
|
79
|
+
*/
|
|
80
|
+
type(type: StreamsType): this;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @param status Status of the streams to search for
|
|
84
|
+
*/
|
|
85
|
+
status(status: StreamsVideoStatus): this;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @param createdBefore Upper limit for the creation date of found streams as UTC in ISO 8601 format: YYYY-MM-DDThh:mm:ssZ
|
|
89
|
+
*/
|
|
90
|
+
createdBefore(createdBefore: string): this;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @param createdAfter Lower limit for the creation date of found streams as UTC in ISO 8601 format: YYYY-MM-DDThh:mm:ssZ
|
|
94
|
+
*/
|
|
95
|
+
createdAfter(createdAfter: string): this;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @param signed Filter for token-protected/signed streams
|
|
99
|
+
*/
|
|
100
|
+
signed(signed: boolean): this;
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* @param domainRestricted Filter for domain-restricted streams
|
|
104
|
+
*/
|
|
105
|
+
domainRestricted(domainRestricted: boolean): this;
|
|
106
|
+
buildQueryParams(): StreamsResponseListQueryParams;
|
|
107
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StreamsResponseListQueryParamsBuilder = void 0;
|
|
4
|
+
var StreamsResponseListQueryParamsBuilder = /** @class */ (function () {
|
|
5
|
+
function StreamsResponseListQueryParamsBuilder() {
|
|
6
|
+
this.internalParams = {};
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @param offset Index of the first item to return, starting at 0. Default is 0
|
|
11
|
+
*/
|
|
12
|
+
StreamsResponseListQueryParamsBuilder.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
|
+
StreamsResponseListQueryParamsBuilder.prototype.limit = function (limit) {
|
|
21
|
+
this.internalParams.limit = limit;
|
|
22
|
+
return this;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @param query Query to search for in a streams' title, description and ID
|
|
27
|
+
*/
|
|
28
|
+
StreamsResponseListQueryParamsBuilder.prototype.query = function (query) {
|
|
29
|
+
this.internalParams.query = query;
|
|
30
|
+
return this;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @param type Type of stream to search for
|
|
35
|
+
*/
|
|
36
|
+
StreamsResponseListQueryParamsBuilder.prototype.type = function (type) {
|
|
37
|
+
this.internalParams.type = type;
|
|
38
|
+
return this;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @param status Status of the streams to search for
|
|
43
|
+
*/
|
|
44
|
+
StreamsResponseListQueryParamsBuilder.prototype.status = function (status) {
|
|
45
|
+
this.internalParams.status = status;
|
|
46
|
+
return this;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @param createdBefore Upper limit for the creation date of found streams as UTC in ISO 8601 format: YYYY-MM-DDThh:mm:ssZ
|
|
51
|
+
*/
|
|
52
|
+
StreamsResponseListQueryParamsBuilder.prototype.createdBefore = function (createdBefore) {
|
|
53
|
+
this.internalParams.createdBefore = createdBefore;
|
|
54
|
+
return this;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @param createdAfter Lower limit for the creation date of found streams as UTC in ISO 8601 format: YYYY-MM-DDThh:mm:ssZ
|
|
59
|
+
*/
|
|
60
|
+
StreamsResponseListQueryParamsBuilder.prototype.createdAfter = function (createdAfter) {
|
|
61
|
+
this.internalParams.createdAfter = createdAfter;
|
|
62
|
+
return this;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @param signed Filter for token-protected/signed streams
|
|
67
|
+
*/
|
|
68
|
+
StreamsResponseListQueryParamsBuilder.prototype.signed = function (signed) {
|
|
69
|
+
this.internalParams.signed = signed;
|
|
70
|
+
return this;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @param domainRestricted Filter for domain-restricted streams
|
|
75
|
+
*/
|
|
76
|
+
StreamsResponseListQueryParamsBuilder.prototype.domainRestricted = function (domainRestricted) {
|
|
77
|
+
this.internalParams.domainRestricted = domainRestricted;
|
|
78
|
+
return this;
|
|
79
|
+
};
|
|
80
|
+
StreamsResponseListQueryParamsBuilder.prototype.buildQueryParams = function () {
|
|
81
|
+
return this.internalParams;
|
|
82
|
+
};
|
|
83
|
+
return StreamsResponseListQueryParamsBuilder;
|
|
84
|
+
}());
|
|
85
|
+
exports.StreamsResponseListQueryParamsBuilder = StreamsResponseListQueryParamsBuilder;
|
package/package.json
CHANGED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import StreamsType from './StreamsType';
|
|
2
|
-
/**
|
|
3
|
-
* @export
|
|
4
|
-
* @class StreamsSearchResponse
|
|
5
|
-
*/
|
|
6
|
-
export declare class StreamsSearchResponse {
|
|
7
|
-
/**
|
|
8
|
-
* The identifier of the stream
|
|
9
|
-
* @type {string}
|
|
10
|
-
* @memberof StreamsSearchResponse
|
|
11
|
-
*/
|
|
12
|
-
id?: string;
|
|
13
|
-
/**
|
|
14
|
-
* The title of the stream
|
|
15
|
-
* @type {string}
|
|
16
|
-
* @memberof StreamsSearchResponse
|
|
17
|
-
*/
|
|
18
|
-
title?: string;
|
|
19
|
-
/**
|
|
20
|
-
* The description of the stream
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof StreamsSearchResponse
|
|
23
|
-
*/
|
|
24
|
-
description?: string;
|
|
25
|
-
/**
|
|
26
|
-
* Creation timestamp, returned as UTC expressed in ISO 8601 format: YYYY-MM-DDThh:mm:ssZ
|
|
27
|
-
* @type {Date}
|
|
28
|
-
* @memberof StreamsSearchResponse
|
|
29
|
-
*/
|
|
30
|
-
createdAt?: Date;
|
|
31
|
-
/**
|
|
32
|
-
* The type the stream
|
|
33
|
-
* @type {StreamsType}
|
|
34
|
-
* @memberof StreamsSearchResponse
|
|
35
|
-
*/
|
|
36
|
-
type?: StreamsType;
|
|
37
|
-
constructor(obj?: Partial<StreamsSearchResponse>);
|
|
38
|
-
}
|
|
39
|
-
export default StreamsSearchResponse;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
export interface StreamsSearchResponseListQueryParams {
|
|
2
|
-
/**
|
|
3
|
-
* Index of the first item to return, starting at 0. Default is 0
|
|
4
|
-
* @type {number}
|
|
5
|
-
* @memberof StreamsSearchResponseListQueryParams
|
|
6
|
-
*/
|
|
7
|
-
offset?: number | undefined;
|
|
8
|
-
/**
|
|
9
|
-
* Maximum number of items to return. Default is 25, maximum is 100
|
|
10
|
-
* @type {number}
|
|
11
|
-
* @memberof StreamsSearchResponseListQueryParams
|
|
12
|
-
*/
|
|
13
|
-
limit?: number | undefined;
|
|
14
|
-
/**
|
|
15
|
-
* Query to search against
|
|
16
|
-
* @type {string}
|
|
17
|
-
* @memberof StreamsSearchResponseListQueryParams
|
|
18
|
-
*/
|
|
19
|
-
query?: string | undefined;
|
|
20
|
-
}
|
|
21
|
-
export declare class StreamsSearchResponseListQueryParamsBuilder {
|
|
22
|
-
private internalParams;
|
|
23
|
-
/**
|
|
24
|
-
*
|
|
25
|
-
* @param offset Index of the first item to return, starting at 0. Default is 0
|
|
26
|
-
*/
|
|
27
|
-
offset(offset: number): this;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @param limit Maximum number of items to return. Default is 25, maximum is 100
|
|
31
|
-
*/
|
|
32
|
-
limit(limit: number): this;
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
35
|
-
* @param query Query to search against
|
|
36
|
-
*/
|
|
37
|
-
query(query: string): this;
|
|
38
|
-
buildQueryParams(): StreamsSearchResponseListQueryParams;
|
|
39
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StreamsSearchResponseListQueryParamsBuilder = void 0;
|
|
4
|
-
var StreamsSearchResponseListQueryParamsBuilder = /** @class */ (function () {
|
|
5
|
-
function StreamsSearchResponseListQueryParamsBuilder() {
|
|
6
|
-
this.internalParams = {};
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
* @param offset Index of the first item to return, starting at 0. Default is 0
|
|
11
|
-
*/
|
|
12
|
-
StreamsSearchResponseListQueryParamsBuilder.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
|
-
StreamsSearchResponseListQueryParamsBuilder.prototype.limit = function (limit) {
|
|
21
|
-
this.internalParams.limit = limit;
|
|
22
|
-
return this;
|
|
23
|
-
};
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @param query Query to search against
|
|
27
|
-
*/
|
|
28
|
-
StreamsSearchResponseListQueryParamsBuilder.prototype.query = function (query) {
|
|
29
|
-
this.internalParams.query = query;
|
|
30
|
-
return this;
|
|
31
|
-
};
|
|
32
|
-
StreamsSearchResponseListQueryParamsBuilder.prototype.buildQueryParams = function () {
|
|
33
|
-
return this.internalParams;
|
|
34
|
-
};
|
|
35
|
-
return StreamsSearchResponseListQueryParamsBuilder;
|
|
36
|
-
}());
|
|
37
|
-
exports.StreamsSearchResponseListQueryParamsBuilder = StreamsSearchResponseListQueryParamsBuilder;
|