@bitmovin/api-sdk 1.226.0 → 1.228.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.
Files changed (42) hide show
  1. package/README.md +1 -1
  2. package/dist/account/organizations/groups/GroupListQueryParams.d.ts +28 -0
  3. package/dist/account/organizations/groups/GroupListQueryParams.js +29 -0
  4. package/dist/account/organizations/groups/GroupsApi.d.ts +3 -1
  5. package/dist/account/organizations/groups/GroupsApi.js +11 -2
  6. package/dist/bitmovin-api-sdk.browser.js +419 -59
  7. package/dist/bitmovin-api-sdk.browser.min.js +1 -1
  8. package/dist/common/RestClient.js +1 -1
  9. package/dist/encoding/encodings/EncodingsApi.d.ts +2 -0
  10. package/dist/encoding/encodings/EncodingsApi.js +2 -0
  11. package/dist/encoding/encodings/streams/burnInSubtitles/BurnInSubtitlesApi.d.ts +2 -0
  12. package/dist/encoding/encodings/streams/burnInSubtitles/BurnInSubtitlesApi.js +2 -0
  13. package/dist/encoding/encodings/streams/burnInSubtitles/assa/AssaApi.d.ts +51 -0
  14. package/dist/encoding/encodings/streams/burnInSubtitles/assa/AssaApi.js +114 -0
  15. package/dist/encoding/encodings/streams/burnInSubtitles/assa/BurnInSubtitleAssaListQueryParams.d.ts +28 -0
  16. package/dist/encoding/encodings/streams/burnInSubtitles/assa/BurnInSubtitleAssaListQueryParams.js +29 -0
  17. package/dist/encoding/encodings/template/TemplateApi.d.ts +19 -0
  18. package/dist/encoding/encodings/template/TemplateApi.js +48 -0
  19. package/dist/models/AiSceneAnalysis.d.ts +22 -0
  20. package/dist/models/AiSceneAnalysis.js +22 -0
  21. package/dist/models/AiSceneAnalysisAssetDescription.d.ts +20 -0
  22. package/dist/models/{AiContentAnalysisAssetDescription.js → AiSceneAnalysisAssetDescription.js} +7 -7
  23. package/dist/models/AiSceneAnalysisAutomaticAdPlacement.d.ts +15 -0
  24. package/dist/models/AiSceneAnalysisAutomaticAdPlacement.js +20 -0
  25. package/dist/models/AiSceneAnalysisFeatures.d.ts +22 -0
  26. package/dist/models/AiSceneAnalysisFeatures.js +22 -0
  27. package/dist/models/BurnInSubtitleAssa.d.ts +23 -0
  28. package/dist/models/BurnInSubtitleAssa.js +40 -0
  29. package/dist/models/EncodingTemplateUrlResponse.d.ts +14 -0
  30. package/dist/models/EncodingTemplateUrlResponse.js +19 -0
  31. package/dist/models/StartEncodingRequest.d.ts +4 -4
  32. package/dist/models/StartEncodingRequest.js +2 -2
  33. package/dist/models/index.d.ts +6 -4
  34. package/dist/models/index.js +6 -4
  35. package/package.json +1 -1
  36. package/dist/models/AiContentAnalysis.d.ts +0 -22
  37. package/dist/models/AiContentAnalysis.js +0 -22
  38. package/dist/models/AiContentAnalysisAssetDescription.d.ts +0 -20
  39. package/dist/models/AiContentAnalysisAutomaticAdPlacement.d.ts +0 -15
  40. package/dist/models/AiContentAnalysisAutomaticAdPlacement.js +0 -20
  41. package/dist/models/AiContentAnalysisFeatures.d.ts +0 -22
  42. package/dist/models/AiContentAnalysisFeatures.js +0 -22
package/README.md CHANGED
@@ -31,7 +31,7 @@ If you have any questions regarding the SDK, provided examples or our services,
31
31
  ## Installation
32
32
 
33
33
  ``` bash
34
- npm install @bitmovin/api-sdk@1.226.0
34
+ npm install @bitmovin/api-sdk@1.228.0
35
35
  ```
36
36
 
37
37
  ## Initialization
@@ -0,0 +1,28 @@
1
+ export interface GroupListQueryParams {
2
+ /**
3
+ * Index of the first item to return, starting at 0. Default is 0
4
+ * @type {number}
5
+ * @memberof GroupListQueryParams
6
+ */
7
+ offset?: number | undefined;
8
+ /**
9
+ * Maximum number of items to return. Default is 25, maximum is 100
10
+ * @type {number}
11
+ * @memberof GroupListQueryParams
12
+ */
13
+ limit?: number | undefined;
14
+ }
15
+ export declare class GroupListQueryParamsBuilder {
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(): GroupListQueryParams;
28
+ }
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GroupListQueryParamsBuilder = void 0;
4
+ var GroupListQueryParamsBuilder = /** @class */ (function () {
5
+ function GroupListQueryParamsBuilder() {
6
+ this.internalParams = {};
7
+ }
8
+ /**
9
+ *
10
+ * @param offset Index of the first item to return, starting at 0. Default is 0
11
+ */
12
+ GroupListQueryParamsBuilder.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
+ GroupListQueryParamsBuilder.prototype.limit = function (limit) {
21
+ this.internalParams.limit = limit;
22
+ return this;
23
+ };
24
+ GroupListQueryParamsBuilder.prototype.buildQueryParams = function () {
25
+ return this.internalParams;
26
+ };
27
+ return GroupListQueryParamsBuilder;
28
+ }());
29
+ exports.GroupListQueryParamsBuilder = GroupListQueryParamsBuilder;
@@ -6,6 +6,7 @@ import PermissionsApi from './permissions/PermissionsApi';
6
6
  import BitmovinResponse from '../../../models/BitmovinResponse';
7
7
  import Group from '../../../models/Group';
8
8
  import PaginationResponse from '../../../models/PaginationResponse';
9
+ import { GroupListQueryParams, GroupListQueryParamsBuilder } from './GroupListQueryParams';
9
10
  /**
10
11
  * GroupsApi - object-oriented interface
11
12
  * @export
@@ -44,8 +45,9 @@ export default class GroupsApi extends BaseAPI {
44
45
  /**
45
46
  * @summary List Groups
46
47
  * @param {string} organizationId Id of the organization
48
+ * @param {*} [queryParameters] query parameters for filtering, sorting and pagination
47
49
  * @throws {BitmovinError}
48
50
  * @memberof GroupsApi
49
51
  */
50
- list(organizationId: string): Promise<PaginationResponse<Group>>;
52
+ list(organizationId: string, queryParameters?: GroupListQueryParams | ((q: GroupListQueryParamsBuilder) => GroupListQueryParamsBuilder)): Promise<PaginationResponse<Group>>;
51
53
  }
@@ -23,6 +23,7 @@ var PermissionsApi_1 = require("./permissions/PermissionsApi");
23
23
  var BitmovinResponse_1 = require("../../../models/BitmovinResponse");
24
24
  var Group_1 = require("../../../models/Group");
25
25
  var PaginationResponse_1 = require("../../../models/PaginationResponse");
26
+ var GroupListQueryParams_1 = require("./GroupListQueryParams");
26
27
  /**
27
28
  * GroupsApi - object-oriented interface
28
29
  * @export
@@ -88,14 +89,22 @@ var GroupsApi = /** @class */ (function (_super) {
88
89
  /**
89
90
  * @summary List Groups
90
91
  * @param {string} organizationId Id of the organization
92
+ * @param {*} [queryParameters] query parameters for filtering, sorting and pagination
91
93
  * @throws {BitmovinError}
92
94
  * @memberof GroupsApi
93
95
  */
94
- GroupsApi.prototype.list = function (organizationId) {
96
+ GroupsApi.prototype.list = function (organizationId, queryParameters) {
95
97
  var pathParamMap = {
96
98
  organization_id: organizationId
97
99
  };
98
- return this.restClient.get('/account/organizations/{organization_id}/groups', pathParamMap).then(function (response) {
100
+ var queryParams = {};
101
+ if (typeof queryParameters === 'function') {
102
+ queryParams = queryParameters(new GroupListQueryParams_1.GroupListQueryParamsBuilder()).buildQueryParams();
103
+ }
104
+ else if (queryParameters) {
105
+ queryParams = queryParameters;
106
+ }
107
+ return this.restClient.get('/account/organizations/{organization_id}/groups', pathParamMap, queryParams).then(function (response) {
99
108
  return new PaginationResponse_1.default(response, Group_1.default);
100
109
  });
101
110
  };