@bitmovin/api-sdk 1.93.0 → 1.97.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 (82) hide show
  1. package/README.md +1 -1
  2. package/dist/account/organizations/groups/invitations/InvitationListQueryParams.d.ts +28 -0
  3. package/dist/account/organizations/groups/invitations/InvitationListQueryParams.js +30 -0
  4. package/dist/account/organizations/groups/invitations/InvitationListQueryParams.js.map +1 -0
  5. package/dist/account/organizations/groups/invitations/InvitationsApi.d.ts +22 -1
  6. package/dist/account/organizations/groups/invitations/InvitationsApi.js +48 -2
  7. package/dist/account/organizations/groups/invitations/InvitationsApi.js.map +1 -1
  8. package/dist/account/organizations/groups/tenants/TenantListQueryParams.d.ts +28 -0
  9. package/dist/account/organizations/groups/tenants/TenantListQueryParams.js +30 -0
  10. package/dist/account/organizations/groups/tenants/TenantListQueryParams.js.map +1 -0
  11. package/dist/account/organizations/groups/tenants/TenantsApi.d.ts +3 -1
  12. package/dist/account/organizations/groups/tenants/TenantsApi.js +11 -2
  13. package/dist/account/organizations/groups/tenants/TenantsApi.js.map +1 -1
  14. package/dist/bitmovin-api-sdk.browser.js +340 -146
  15. package/dist/bitmovin-api-sdk.browser.js.map +1 -1
  16. package/dist/bitmovin-api-sdk.browser.min.js +2 -2
  17. package/dist/common/RestClient.js +1 -1
  18. package/dist/encoding/configurations/video/av1/Av1Api.js.map +1 -1
  19. package/dist/encoding/manifests/hls/media/customTags/CustomTagsApi.d.ts +6 -6
  20. package/dist/encoding/manifests/hls/media/customTags/CustomTagsApi.js +6 -6
  21. package/dist/models/AdAnalyticsAttribute.d.ts +20 -0
  22. package/dist/models/AdAnalyticsAttribute.js +20 -0
  23. package/dist/models/AdAnalyticsAttribute.js.map +1 -1
  24. package/dist/models/AdaptationSet.d.ts +7 -0
  25. package/dist/models/AdaptationSet.js +2 -0
  26. package/dist/models/AdaptationSet.js.map +1 -1
  27. package/dist/models/AnalyticsAdsImpressionSample.d.ts +108 -0
  28. package/dist/models/AnalyticsAdsImpressionSample.js +18 -0
  29. package/dist/models/AnalyticsAdsImpressionSample.js.map +1 -1
  30. package/dist/models/AnalyticsAttribute.d.ts +20 -0
  31. package/dist/models/AnalyticsAttribute.js +20 -0
  32. package/dist/models/AnalyticsAttribute.js.map +1 -1
  33. package/dist/models/AnalyticsImpressionSample.d.ts +108 -0
  34. package/dist/models/AnalyticsImpressionSample.js +18 -0
  35. package/dist/models/AnalyticsImpressionSample.js.map +1 -1
  36. package/dist/models/AnalyticsLicenseCustomDataFieldLabels.d.ts +108 -0
  37. package/dist/models/AnalyticsLicenseCustomDataFieldLabels.js +18 -0
  38. package/dist/models/AnalyticsLicenseCustomDataFieldLabels.js.map +1 -1
  39. package/dist/models/AudioAdaptationSet.js.map +1 -1
  40. package/dist/models/Av1VideoConfiguration.d.ts +0 -150
  41. package/dist/models/Av1VideoConfiguration.js +0 -26
  42. package/dist/models/Av1VideoConfiguration.js.map +1 -1
  43. package/dist/models/AzureCloudRegion.d.ts +5 -50
  44. package/dist/models/AzureCloudRegion.js +5 -50
  45. package/dist/models/AzureCloudRegion.js.map +1 -1
  46. package/dist/models/ChunkedTextMuxing.d.ts +6 -0
  47. package/dist/models/ChunkedTextMuxing.js +1 -0
  48. package/dist/models/ChunkedTextMuxing.js.map +1 -1
  49. package/dist/models/CloudRegion.d.ts +0 -1
  50. package/dist/models/CloudRegion.js +0 -1
  51. package/dist/models/CloudRegion.js.map +1 -1
  52. package/dist/models/H264DynamicRangeFormat.d.ts +9 -0
  53. package/dist/models/H264DynamicRangeFormat.js +14 -0
  54. package/dist/models/H264DynamicRangeFormat.js.map +1 -0
  55. package/dist/models/H264VideoConfiguration.d.ts +7 -0
  56. package/dist/models/H264VideoConfiguration.js +1 -0
  57. package/dist/models/H264VideoConfiguration.js.map +1 -1
  58. package/dist/models/ImageAdaptationSet.js.map +1 -1
  59. package/dist/models/Label.d.ts +26 -0
  60. package/dist/models/Label.js +22 -0
  61. package/dist/models/Label.js.map +1 -0
  62. package/dist/models/SubtitleAdaptationSet.js.map +1 -1
  63. package/dist/models/TextMuxing.d.ts +6 -0
  64. package/dist/models/TextMuxing.js +1 -0
  65. package/dist/models/TextMuxing.js.map +1 -1
  66. package/dist/models/VideoAdaptationSet.js.map +1 -1
  67. package/dist/models/Vp9DynamicRangeFormat.d.ts +10 -0
  68. package/dist/models/Vp9DynamicRangeFormat.js +15 -0
  69. package/dist/models/Vp9DynamicRangeFormat.js.map +1 -0
  70. package/dist/models/Vp9VideoConfiguration.d.ts +7 -0
  71. package/dist/models/Vp9VideoConfiguration.js +1 -0
  72. package/dist/models/Vp9VideoConfiguration.js.map +1 -1
  73. package/dist/models/index.d.ts +3 -2
  74. package/dist/models/index.js +3 -2
  75. package/dist/models/index.js.map +1 -1
  76. package/package.json +1 -1
  77. package/dist/models/Av1AdaptiveQuantMode.d.ts +0 -13
  78. package/dist/models/Av1AdaptiveQuantMode.js +0 -18
  79. package/dist/models/Av1AdaptiveQuantMode.js.map +0 -1
  80. package/dist/models/Av1KeyPlacementMode.d.ts +0 -11
  81. package/dist/models/Av1KeyPlacementMode.js +0 -16
  82. package/dist/models/Av1KeyPlacementMode.js.map +0 -1
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.93.0
34
+ npm install @bitmovin/api-sdk@1.97.0
35
35
  ```
36
36
 
37
37
  ## Initialization
@@ -0,0 +1,28 @@
1
+ export interface InvitationListQueryParams {
2
+ /**
3
+ * Index of the first item to return, starting at 0. Default is 0
4
+ * @type {number}
5
+ * @memberof InvitationListQueryParams
6
+ */
7
+ offset?: number | undefined;
8
+ /**
9
+ * Maximum number of items to return. Default is 25, maximum is 100
10
+ * @type {number}
11
+ * @memberof InvitationListQueryParams
12
+ */
13
+ limit?: number | undefined;
14
+ }
15
+ export declare class InvitationListQueryParamsBuilder {
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(): InvitationListQueryParams;
28
+ }
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InvitationListQueryParamsBuilder = void 0;
4
+ var InvitationListQueryParamsBuilder = /** @class */ (function () {
5
+ function InvitationListQueryParamsBuilder() {
6
+ this.internalParams = {};
7
+ }
8
+ /**
9
+ *
10
+ * @param offset Index of the first item to return, starting at 0. Default is 0
11
+ */
12
+ InvitationListQueryParamsBuilder.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
+ InvitationListQueryParamsBuilder.prototype.limit = function (limit) {
21
+ this.internalParams.limit = limit;
22
+ return this;
23
+ };
24
+ InvitationListQueryParamsBuilder.prototype.buildQueryParams = function () {
25
+ return this.internalParams;
26
+ };
27
+ return InvitationListQueryParamsBuilder;
28
+ }());
29
+ exports.InvitationListQueryParamsBuilder = InvitationListQueryParamsBuilder;
30
+ //# sourceMappingURL=InvitationListQueryParams.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InvitationListQueryParams.js","sourceRoot":"","sources":["../../../../../src/account/organizations/groups/invitations/InvitationListQueryParams.ts"],"names":[],"mappings":";;;AAkBA;IAAA;QACY,mBAAc,GAA8B,EAAE,CAAC;IAuB3D,CAAC;IArBG;;;OAGG;IACI,iDAAM,GAAb,UAAc,MAAc;QACxB,IAAI,CAAC,cAAc,CAAC,MAAM,GAAG,MAAM,CAAC;QACpC,OAAO,IAAI,CAAC;IAChB,CAAC;IAED;;;OAGG;IACI,gDAAK,GAAZ,UAAa,KAAa;QACtB,IAAI,CAAC,cAAc,CAAC,KAAK,GAAG,KAAK,CAAC;QAClC,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,2DAAgB,GAAvB;QACI,OAAO,IAAI,CAAC,cAAc,CAAC;IAC/B,CAAC;IACL,uCAAC;AAAD,CAAC,AAxBD,IAwBC;AAxBY,4EAAgC"}
@@ -1,7 +1,9 @@
1
1
  import { BaseAPI } from '../../../../common/BaseAPI';
2
2
  import Configuration from '../../../../common/Configuration';
3
+ import BitmovinResponse from '../../../../models/BitmovinResponse';
3
4
  import Invitation from '../../../../models/Invitation';
4
5
  import PaginationResponse from '../../../../models/PaginationResponse';
6
+ import { InvitationListQueryParams, InvitationListQueryParamsBuilder } from './InvitationListQueryParams';
5
7
  /**
6
8
  * InvitationsApi - object-oriented interface
7
9
  * @export
@@ -19,12 +21,31 @@ export default class InvitationsApi extends BaseAPI {
19
21
  * @memberof InvitationsApi
20
22
  */
21
23
  create(organizationId: string, groupId: string, invitation?: Invitation): Promise<Invitation>;
24
+ /**
25
+ * @summary Delete Invitation
26
+ * @param {string} organizationId Id of the organization
27
+ * @param {string} groupId Id of the group
28
+ * @param {string} invitationId Id of the invitation.
29
+ * @throws {BitmovinError}
30
+ * @memberof InvitationsApi
31
+ */
32
+ delete(organizationId: string, groupId: string, invitationId: string): Promise<BitmovinResponse>;
33
+ /**
34
+ * @summary Invitation Details
35
+ * @param {string} organizationId Id of the organization
36
+ * @param {string} groupId Id of the group
37
+ * @param {string} invitationId Id of the invitation.
38
+ * @throws {BitmovinError}
39
+ * @memberof InvitationsApi
40
+ */
41
+ get(organizationId: string, groupId: string, invitationId: string): Promise<Invitation>;
22
42
  /**
23
43
  * @summary List Invitations
24
44
  * @param {string} organizationId Id of the organization
25
45
  * @param {string} groupId Id of the group
46
+ * @param {*} [queryParameters] query parameters for filtering, sorting and pagination
26
47
  * @throws {BitmovinError}
27
48
  * @memberof InvitationsApi
28
49
  */
29
- list(organizationId: string, groupId: string): Promise<PaginationResponse<Invitation>>;
50
+ list(organizationId: string, groupId: string, queryParameters?: InvitationListQueryParams | ((q: InvitationListQueryParamsBuilder) => InvitationListQueryParamsBuilder)): Promise<PaginationResponse<Invitation>>;
30
51
  }
@@ -15,8 +15,10 @@ var __extends = (this && this.__extends) || (function () {
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  var BaseAPI_1 = require("../../../../common/BaseAPI");
17
17
  var Mapper_1 = require("../../../../common/Mapper");
18
+ var BitmovinResponse_1 = require("../../../../models/BitmovinResponse");
18
19
  var Invitation_1 = require("../../../../models/Invitation");
19
20
  var PaginationResponse_1 = require("../../../../models/PaginationResponse");
21
+ var InvitationListQueryParams_1 = require("./InvitationListQueryParams");
20
22
  /**
21
23
  * InvitationsApi - object-oriented interface
22
24
  * @export
@@ -45,19 +47,63 @@ var InvitationsApi = /** @class */ (function (_super) {
45
47
  return Mapper_1.map(response, Invitation_1.default);
46
48
  });
47
49
  };
50
+ /**
51
+ * @summary Delete Invitation
52
+ * @param {string} organizationId Id of the organization
53
+ * @param {string} groupId Id of the group
54
+ * @param {string} invitationId Id of the invitation.
55
+ * @throws {BitmovinError}
56
+ * @memberof InvitationsApi
57
+ */
58
+ InvitationsApi.prototype.delete = function (organizationId, groupId, invitationId) {
59
+ var pathParamMap = {
60
+ organization_id: organizationId,
61
+ group_id: groupId,
62
+ invitation_id: invitationId
63
+ };
64
+ return this.restClient.delete('/account/organizations/{organization_id}/groups/{group_id}/invitations/{invitation_id}', pathParamMap).then(function (response) {
65
+ return Mapper_1.map(response, BitmovinResponse_1.default);
66
+ });
67
+ };
68
+ /**
69
+ * @summary Invitation Details
70
+ * @param {string} organizationId Id of the organization
71
+ * @param {string} groupId Id of the group
72
+ * @param {string} invitationId Id of the invitation.
73
+ * @throws {BitmovinError}
74
+ * @memberof InvitationsApi
75
+ */
76
+ InvitationsApi.prototype.get = function (organizationId, groupId, invitationId) {
77
+ var pathParamMap = {
78
+ organization_id: organizationId,
79
+ group_id: groupId,
80
+ invitation_id: invitationId
81
+ };
82
+ return this.restClient.get('/account/organizations/{organization_id}/groups/{group_id}/invitations/{invitation_id}', pathParamMap).then(function (response) {
83
+ return Mapper_1.map(response, Invitation_1.default);
84
+ });
85
+ };
48
86
  /**
49
87
  * @summary List Invitations
50
88
  * @param {string} organizationId Id of the organization
51
89
  * @param {string} groupId Id of the group
90
+ * @param {*} [queryParameters] query parameters for filtering, sorting and pagination
52
91
  * @throws {BitmovinError}
53
92
  * @memberof InvitationsApi
54
93
  */
55
- InvitationsApi.prototype.list = function (organizationId, groupId) {
94
+ InvitationsApi.prototype.list = function (organizationId, groupId, queryParameters) {
56
95
  var pathParamMap = {
57
96
  organization_id: organizationId,
58
97
  group_id: groupId
59
98
  };
60
- return this.restClient.get('/account/organizations/{organization_id}/groups/{group_id}/invitations', pathParamMap).then(function (response) {
99
+ var queryParams = {};
100
+ if (typeof queryParameters === 'function') {
101
+ queryParams = queryParameters(new InvitationListQueryParams_1.InvitationListQueryParamsBuilder()).buildQueryParams();
102
+ }
103
+ else if (queryParameters) {
104
+ queryParams = queryParameters;
105
+ }
106
+ return this.restClient.get('/account/organizations/{organization_id}/groups/{group_id}/invitations', pathParamMap, queryParams).then(function (response) {
61
107
  return new PaginationResponse_1.default(response, Invitation_1.default);
62
108
  });
63
109
  };
@@ -1 +1 @@
1
- {"version":3,"file":"InvitationsApi.js","sourceRoot":"","sources":["../../../../../src/account/organizations/groups/invitations/InvitationsApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,sDAAmD;AAEnD,oDAAwD;AACxD,4DAAuD;AACvD,4EAAuE;AAEvE;;;;;GAKG;AACH;IAA4C,kCAAO;IAEjD,wBAAY,aAA4B;eACtC,kBAAM,aAAa,CAAC;IACtB,CAAC;IAED;;;;;;;OAOG;IACI,+BAAM,GAAb,UAAc,cAAsB,EAAE,OAAe,EAAE,UAAuB;QAC5E,IAAM,YAAY,GAAG;YACnB,eAAe,EAAE,cAAc;YAC/B,QAAQ,EAAE,OAAO;SAClB,CAAC;QACF,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAa,wEAAwE,EAAE,YAAY,EAAE,UAAU,CAAC,CAAC,IAAI,CAAC,UAAC,QAAQ;YACxJ,OAAO,YAAG,CAAC,QAAQ,EAAE,oBAAU,CAAC,CAAC;QACnC,CAAC,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACI,6BAAI,GAAX,UAAY,cAAsB,EAAE,OAAe;QACjD,IAAM,YAAY,GAAG;YACnB,eAAe,EAAE,cAAc;YAC/B,QAAQ,EAAE,OAAO;SAClB,CAAC;QACF,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAiC,wEAAwE,EAAE,YAAY,CAAC,CAAC,IAAI,CAAC,UAAC,QAAQ;YAC/J,OAAO,IAAI,4BAAkB,CAAa,QAAQ,EAAE,oBAAU,CAAC,CAAC;QAClE,CAAC,CAAC,CAAC;IACL,CAAC;IACH,qBAAC;AAAD,CAAC,AAxCD,CAA4C,iBAAO,GAwClD"}
1
+ {"version":3,"file":"InvitationsApi.js","sourceRoot":"","sources":["../../../../../src/account/organizations/groups/invitations/InvitationsApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,sDAAmD;AAEnD,oDAAwD;AACxD,wEAAmE;AACnE,4DAAuD;AACvD,4EAAuE;AACvE,yEAAwG;AAExG;;;;;GAKG;AACH;IAA4C,kCAAO;IAEjD,wBAAY,aAA4B;eACtC,kBAAM,aAAa,CAAC;IACtB,CAAC;IAED;;;;;;;OAOG;IACI,+BAAM,GAAb,UAAc,cAAsB,EAAE,OAAe,EAAE,UAAuB;QAC5E,IAAM,YAAY,GAAG;YACnB,eAAe,EAAE,cAAc;YAC/B,QAAQ,EAAE,OAAO;SAClB,CAAC;QACF,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAa,wEAAwE,EAAE,YAAY,EAAE,UAAU,CAAC,CAAC,IAAI,CAAC,UAAC,QAAQ;YACxJ,OAAO,YAAG,CAAC,QAAQ,EAAE,oBA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AC,UAAU,CAAC,GAAG,CAAiC,wEAAwE,EAAE,YAAY,EAAE,WAAW,CAAC,CAAC,IAAI,CAAC,UAAC,QAAQ;YAC5K,OAAO,IAAI,4BAAkB,CAAa,QAAQ,EAAE,oBAAU,CAAC,CAAC;QAClE,CAAC,CAAC,CAAC;IACL,CAAC;IACH,qBAAC;AAAD,CAAC,AArFD,CAA4C,iBAAO,GAqFlD"}
@@ -0,0 +1,28 @@
1
+ export interface TenantListQueryParams {
2
+ /**
3
+ * Index of the first item to return, starting at 0. Default is 0
4
+ * @type {number}
5
+ * @memberof TenantListQueryParams
6
+ */
7
+ offset?: number | undefined;
8
+ /**
9
+ * Maximum number of items to return. Default is 25, maximum is 100
10
+ * @type {number}
11
+ * @memberof TenantListQueryParams
12
+ */
13
+ limit?: number | undefined;
14
+ }
15
+ export declare class TenantListQueryParamsBuilder {
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(): TenantListQueryParams;
28
+ }
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TenantListQueryParamsBuilder = void 0;
4
+ var TenantListQueryParamsBuilder = /** @class */ (function () {
5
+ function TenantListQueryParamsBuilder() {
6
+ this.internalParams = {};
7
+ }
8
+ /**
9
+ *
10
+ * @param offset Index of the first item to return, starting at 0. Default is 0
11
+ */
12
+ TenantListQueryParamsBuilder.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
+ TenantListQueryParamsBuilder.prototype.limit = function (limit) {
21
+ this.internalParams.limit = limit;
22
+ return this;
23
+ };
24
+ TenantListQueryParamsBuilder.prototype.buildQueryParams = function () {
25
+ return this.internalParams;
26
+ };
27
+ return TenantListQueryParamsBuilder;
28
+ }());
29
+ exports.TenantListQueryParamsBuilder = TenantListQueryParamsBuilder;
30
+ //# sourceMappingURL=TenantListQueryParams.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TenantListQueryParams.js","sourceRoot":"","sources":["../../../../../src/account/organizations/groups/tenants/TenantListQueryParams.ts"],"names":[],"mappings":";;;AAkBA;IAAA;QACY,mBAAc,GAA0B,EAAE,CAAC;IAuBvD,CAAC;IArBG;;;OAGG;IACI,6CAAM,GAAb,UAAc,MAAc;QACxB,IAAI,CAAC,cAAc,CAAC,MAAM,GAAG,MAAM,CAAC;QACpC,OAAO,IAAI,CAAC;IAChB,CAAC;IAED;;;OAGG;IACI,4CAAK,GAAZ,UAAa,KAAa;QACtB,IAAI,CAAC,cAAc,CAAC,KAAK,GAAG,KAAK,CAAC;QAClC,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,uDAAgB,GAAvB;QACI,OAAO,IAAI,CAAC,cAAc,CAAC;IAC/B,CAAC;IACL,mCAAC;AAAD,CAAC,AAxBD,IAwBC;AAxBY,oEAA4B"}
@@ -3,6 +3,7 @@ import Configuration from '../../../../common/Configuration';
3
3
  import BitmovinResponse from '../../../../models/BitmovinResponse';
4
4
  import Tenant from '../../../../models/Tenant';
5
5
  import PaginationResponse from '../../../../models/PaginationResponse';
6
+ import { TenantListQueryParams, TenantListQueryParamsBuilder } from './TenantListQueryParams';
6
7
  /**
7
8
  * TenantsApi - object-oriented interface
8
9
  * @export
@@ -42,8 +43,9 @@ export default class TenantsApi extends BaseAPI {
42
43
  * @summary List Tenants
43
44
  * @param {string} organizationId Id of the organization
44
45
  * @param {string} groupId Id of the group
46
+ * @param {*} [queryParameters] query parameters for filtering, sorting and pagination
45
47
  * @throws {BitmovinError}
46
48
  * @memberof TenantsApi
47
49
  */
48
- list(organizationId: string, groupId: string): Promise<PaginationResponse<Tenant>>;
50
+ list(organizationId: string, groupId: string, queryParameters?: TenantListQueryParams | ((q: TenantListQueryParamsBuilder) => TenantListQueryParamsBuilder)): Promise<PaginationResponse<Tenant>>;
49
51
  }
@@ -18,6 +18,7 @@ var Mapper_1 = require("../../../../common/Mapper");
18
18
  var BitmovinResponse_1 = require("../../../../models/BitmovinResponse");
19
19
  var Tenant_1 = require("../../../../models/Tenant");
20
20
  var PaginationResponse_1 = require("../../../../models/PaginationResponse");
21
+ var TenantListQueryParams_1 = require("./TenantListQueryParams");
21
22
  /**
22
23
  * TenantsApi - object-oriented interface
23
24
  * @export
@@ -86,15 +87,23 @@ var TenantsApi = /** @class */ (function (_super) {
86
87
  * @summary List Tenants
87
88
  * @param {string} organizationId Id of the organization
88
89
  * @param {string} groupId Id of the group
90
+ * @param {*} [queryParameters] query parameters for filtering, sorting and pagination
89
91
  * @throws {BitmovinError}
90
92
  * @memberof TenantsApi
91
93
  */
92
- TenantsApi.prototype.list = function (organizationId, groupId) {
94
+ TenantsApi.prototype.list = function (organizationId, groupId, queryParameters) {
93
95
  var pathParamMap = {
94
96
  organization_id: organizationId,
95
97
  group_id: groupId
96
98
  };
97
- return this.restClient.get('/account/organizations/{organization_id}/groups/{group_id}/tenants', pathParamMap).then(function (response) {
99
+ var queryParams = {};
100
+ if (typeof queryParameters === 'function') {
101
+ queryParams = queryParameters(new TenantListQueryParams_1.TenantListQueryParamsBuilder()).buildQueryParams();
102
+ }
103
+ else if (queryParameters) {
104
+ queryParams = queryParameters;
105
+ }
106
+ return this.restClient.get('/account/organizations/{organization_id}/groups/{group_id}/tenants', pathParamMap, queryParams).then(function (response) {
98
107
  return new PaginationResponse_1.default(response, Tenant_1.default);
99
108
  });
100
109
  };
@@ -1 +1 @@
1
- {"version":3,"file":"TenantsApi.js","sourceRoot":"","sources":["../../../../../src/account/organizations/groups/tenants/TenantsApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,sDAAmD;AAEnD,oDAAwD;AACxD,wEAAmE;AACnE,oDAA+C;A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AC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACI,yBAAI,GAAX,UAAY,cAAsB,EAAE,OAAe;QACjD,IAAM,YAAY,GAAG;YACnB,eAAe,EAAE,cAAc;YAC/B,QAAQ,EAAE,OAAO;SAClB,CAAC;QACF,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAA6B,oEAAoE,EAAE,YAAY,CAAC,CAAC,IAAI,CAAC,UAAC,QAAQ;YACvJ,OAAO,IAAI,4BAAkB,CAAS,QAAQ,EAAE,gBAAM,CAAC,CAAC;QAC1D,CAAC,CAAC,CAAC;IACL,CAAC;IACH,iBAAC;AAAD,CAAC,AA9ED,CAAwC,iBAAO,GA8E9C"}
1
+ {"version":3,"file":"TenantsApi.js","sourceRoot":"","sources":["../../../../../src/account/organizations/groups/tenants/TenantsApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,sDAAmD;AAEnD,oDAAwD;AACxD,wEAAmE;AACnE,oDAA+C;AAC/C,4EAAuE;AACvE,iEAA4F;AAE5F;;;;;GAKG;AACH;IAAwC,8BAAO;IAE7C,oBAAY,aAA4B;eACtC,kBAAM,aAAa,CAAC;IACtB,CAAC;IAED;;;;;;;OAOG;IACI,2BAAM,GAAb,UAAc,cAAsB,EAAE,OAAe,EAAE,MAAe;QACpE,IAAM,YAAY,GAAG;YACnB,eAAe,EAAE,cAAc;YAC/B,QAAQ,EAAE,OAAO;SAClB,CAAC;QACF,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAS,oEAAoE,EAAE,YAAY,EAAE,MAAM,CAAC,CAAC,IAAI,CAAC,UAAC,QAAQ;YAC5I,OAAO,YAAG,CAAC,QAAQ,EAAE,gBAAM,CAAC,CAAC;QAC/B,CAAC,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACI,2BAAM,GAAb,UAAc,cAAsB,EAAE,OAAe,EAAE,QAAgB;QACrE,IAAM,YAAY,GAAG;YACnB,eAAe,EAAE,cAAc;YAC/B,QAA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