@bitmovin/api-sdk 1.181.0 → 1.182.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 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.181.0
34
+ npm install @bitmovin/api-sdk@1.182.0
35
35
  ```
36
36
 
37
37
  ## Initialization
@@ -2,6 +2,7 @@ import { BaseAPI } from '../../common/BaseAPI';
2
2
  import Configuration from '../../common/Configuration';
3
3
  import SubOrganizationsApi from './subOrganizations/SubOrganizationsApi';
4
4
  import TenantsApi from './tenants/TenantsApi';
5
+ import InvitationsApi from './invitations/InvitationsApi';
5
6
  import GroupsApi from './groups/GroupsApi';
6
7
  import Organization from '../../models/Organization';
7
8
  import UpdateOrganizationRequest from '../../models/UpdateOrganizationRequest';
@@ -15,6 +16,7 @@ import PaginationResponse from '../../models/PaginationResponse';
15
16
  export default class OrganizationsApi extends BaseAPI {
16
17
  subOrganizations: SubOrganizationsApi;
17
18
  tenants: TenantsApi;
19
+ invitations: InvitationsApi;
18
20
  groups: GroupsApi;
19
21
  constructor(configuration: Configuration);
20
22
  /**
@@ -19,6 +19,7 @@ var BaseAPI_1 = require("../../common/BaseAPI");
19
19
  var Mapper_1 = require("../../common/Mapper");
20
20
  var SubOrganizationsApi_1 = require("./subOrganizations/SubOrganizationsApi");
21
21
  var TenantsApi_1 = require("./tenants/TenantsApi");
22
+ var InvitationsApi_1 = require("./invitations/InvitationsApi");
22
23
  var GroupsApi_1 = require("./groups/GroupsApi");
23
24
  var Organization_1 = require("../../models/Organization");
24
25
  var PaginationResponse_1 = require("../../models/PaginationResponse");
@@ -34,6 +35,7 @@ var OrganizationsApi = /** @class */ (function (_super) {
34
35
  var _this = _super.call(this, configuration) || this;
35
36
  _this.subOrganizations = new SubOrganizationsApi_1.default(configuration);
36
37
  _this.tenants = new TenantsApi_1.default(configuration);
38
+ _this.invitations = new InvitationsApi_1.default(configuration);
37
39
  _this.groups = new GroupsApi_1.default(configuration);
38
40
  return _this;
39
41
  }
@@ -0,0 +1,20 @@
1
+ import { BaseAPI } from '../../../common/BaseAPI';
2
+ import Configuration from '../../../common/Configuration';
3
+ import OrganizationPendingInvitation from '../../../models/OrganizationPendingInvitation';
4
+ import PaginationResponse from '../../../models/PaginationResponse';
5
+ /**
6
+ * InvitationsApi - object-oriented interface
7
+ * @export
8
+ * @class InvitationsApi
9
+ * @extends {BaseAPI}
10
+ */
11
+ export default class InvitationsApi extends BaseAPI {
12
+ constructor(configuration: Configuration);
13
+ /**
14
+ * @summary List all pending invitations of an org id
15
+ * @param {string} organizationId Id of the organization
16
+ * @throws {BitmovinError}
17
+ * @memberof InvitationsApi
18
+ */
19
+ list(organizationId: string): Promise<PaginationResponse<OrganizationPendingInvitation>>;
20
+ }
@@ -0,0 +1,48 @@
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 OrganizationPendingInvitation_1 = require("../../../models/OrganizationPendingInvitation");
20
+ var PaginationResponse_1 = require("../../../models/PaginationResponse");
21
+ /**
22
+ * InvitationsApi - object-oriented interface
23
+ * @export
24
+ * @class InvitationsApi
25
+ * @extends {BaseAPI}
26
+ */
27
+ var InvitationsApi = /** @class */ (function (_super) {
28
+ __extends(InvitationsApi, _super);
29
+ function InvitationsApi(configuration) {
30
+ return _super.call(this, configuration) || this;
31
+ }
32
+ /**
33
+ * @summary List all pending invitations of an org id
34
+ * @param {string} organizationId Id of the organization
35
+ * @throws {BitmovinError}
36
+ * @memberof InvitationsApi
37
+ */
38
+ InvitationsApi.prototype.list = function (organizationId) {
39
+ var pathParamMap = {
40
+ organization_id: organizationId
41
+ };
42
+ return this.restClient.get('/account/organizations/{organization_id}/invitations', pathParamMap).then(function (response) {
43
+ return new PaginationResponse_1.default(response, OrganizationPendingInvitation_1.default);
44
+ });
45
+ };
46
+ return InvitationsApi;
47
+ }(BaseAPI_1.BaseAPI));
48
+ exports.default = InvitationsApi;
@@ -1496,6 +1496,7 @@ var BaseAPI_1 = __webpack_require__(/*! ../../common/BaseAPI */ "./common/BaseAP
1496
1496
  var Mapper_1 = __webpack_require__(/*! ../../common/Mapper */ "./common/Mapper.ts");
1497
1497
  var SubOrganizationsApi_1 = __webpack_require__(/*! ./subOrganizations/SubOrganizationsApi */ "./account/organizations/subOrganizations/SubOrganizationsApi.ts");
1498
1498
  var TenantsApi_1 = __webpack_require__(/*! ./tenants/TenantsApi */ "./account/organizations/tenants/TenantsApi.ts");
1499
+ var InvitationsApi_1 = __webpack_require__(/*! ./invitations/InvitationsApi */ "./account/organizations/invitations/InvitationsApi.ts");
1499
1500
  var GroupsApi_1 = __webpack_require__(/*! ./groups/GroupsApi */ "./account/organizations/groups/GroupsApi.ts");
1500
1501
  var Organization_1 = __webpack_require__(/*! ../../models/Organization */ "./models/Organization.ts");
1501
1502
  var PaginationResponse_1 = __webpack_require__(/*! ../../models/PaginationResponse */ "./models/PaginationResponse.ts");
@@ -1511,6 +1512,7 @@ var OrganizationsApi = /** @class */ (function (_super) {
1511
1512
  var _this = _super.call(this, configuration) || this;
1512
1513
  _this.subOrganizations = new SubOrganizationsApi_1.default(configuration);
1513
1514
  _this.tenants = new TenantsApi_1.default(configuration);
1515
+ _this.invitations = new InvitationsApi_1.default(configuration);
1514
1516
  _this.groups = new GroupsApi_1.default(configuration);
1515
1517
  return _this;
1516
1518
  }
@@ -2112,6 +2114,65 @@ var TenantsApi = /** @class */ (function (_super) {
2112
2114
  exports["default"] = TenantsApi;
2113
2115
 
2114
2116
 
2117
+ /***/ }),
2118
+
2119
+ /***/ "./account/organizations/invitations/InvitationsApi.ts":
2120
+ /*!*************************************************************!*\
2121
+ !*** ./account/organizations/invitations/InvitationsApi.ts ***!
2122
+ \*************************************************************/
2123
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
2124
+
2125
+ "use strict";
2126
+
2127
+ var __extends = (this && this.__extends) || (function () {
2128
+ var extendStatics = function (d, b) {
2129
+ extendStatics = Object.setPrototypeOf ||
2130
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
2131
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
2132
+ return extendStatics(d, b);
2133
+ };
2134
+ return function (d, b) {
2135
+ if (typeof b !== "function" && b !== null)
2136
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
2137
+ extendStatics(d, b);
2138
+ function __() { this.constructor = d; }
2139
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
2140
+ };
2141
+ })();
2142
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
2143
+ var BaseAPI_1 = __webpack_require__(/*! ../../../common/BaseAPI */ "./common/BaseAPI.ts");
2144
+ var OrganizationPendingInvitation_1 = __webpack_require__(/*! ../../../models/OrganizationPendingInvitation */ "./models/OrganizationPendingInvitation.ts");
2145
+ var PaginationResponse_1 = __webpack_require__(/*! ../../../models/PaginationResponse */ "./models/PaginationResponse.ts");
2146
+ /**
2147
+ * InvitationsApi - object-oriented interface
2148
+ * @export
2149
+ * @class InvitationsApi
2150
+ * @extends {BaseAPI}
2151
+ */
2152
+ var InvitationsApi = /** @class */ (function (_super) {
2153
+ __extends(InvitationsApi, _super);
2154
+ function InvitationsApi(configuration) {
2155
+ return _super.call(this, configuration) || this;
2156
+ }
2157
+ /**
2158
+ * @summary List all pending invitations of an org id
2159
+ * @param {string} organizationId Id of the organization
2160
+ * @throws {BitmovinError}
2161
+ * @memberof InvitationsApi
2162
+ */
2163
+ InvitationsApi.prototype.list = function (organizationId) {
2164
+ var pathParamMap = {
2165
+ organization_id: organizationId
2166
+ };
2167
+ return this.restClient.get('/account/organizations/{organization_id}/invitations', pathParamMap).then(function (response) {
2168
+ return new PaginationResponse_1.default(response, OrganizationPendingInvitation_1.default);
2169
+ });
2170
+ };
2171
+ return InvitationsApi;
2172
+ }(BaseAPI_1.BaseAPI));
2173
+ exports["default"] = InvitationsApi;
2174
+
2175
+
2115
2176
  /***/ }),
2116
2177
 
2117
2178
  /***/ "./account/organizations/subOrganizations/OrganizationListQueryParams.ts":
@@ -6048,7 +6109,7 @@ var HeaderHandler = /** @class */ (function (_super) {
6048
6109
  var headers = {
6049
6110
  'X-Api-Key': apiKey,
6050
6111
  'X-Api-Client': 'bitmovin-api-sdk-javascript',
6051
- 'X-Api-Client-Version': '1.181.0',
6112
+ 'X-Api-Client-Version': '1.182.0',
6052
6113
  'Content-Type': 'application/json'
6053
6114
  };
6054
6115
  if (tenantOrgId) {
@@ -6307,6 +6368,14 @@ var CodecConfigurationListQueryParamsBuilder = /** @class */ (function () {
6307
6368
  this.internalParams.name = name;
6308
6369
  return this;
6309
6370
  };
6371
+ /**
6372
+ *
6373
+ * @param sort Order list result according to a filter resource attribute. The fields that can be used for sorting are: + `id` + `createdAt` + `modifiedAt` + `type` + `name`
6374
+ */
6375
+ CodecConfigurationListQueryParamsBuilder.prototype.sort = function (sort) {
6376
+ this.internalParams.sort = sort;
6377
+ return this;
6378
+ };
6310
6379
  CodecConfigurationListQueryParamsBuilder.prototype.buildQueryParams = function () {
6311
6380
  return this.internalParams;
6312
6381
  };
@@ -75229,6 +75298,39 @@ exports.Organization = Organization;
75229
75298
  exports["default"] = Organization;
75230
75299
 
75231
75300
 
75301
+ /***/ }),
75302
+
75303
+ /***/ "./models/OrganizationPendingInvitation.ts":
75304
+ /*!*************************************************!*\
75305
+ !*** ./models/OrganizationPendingInvitation.ts ***!
75306
+ \*************************************************/
75307
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
75308
+
75309
+ "use strict";
75310
+
75311
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
75312
+ exports.OrganizationPendingInvitation = void 0;
75313
+ var Mapper_1 = __webpack_require__(/*! ../common/Mapper */ "./common/Mapper.ts");
75314
+ /**
75315
+ * @export
75316
+ * @class OrganizationPendingInvitation
75317
+ */
75318
+ var OrganizationPendingInvitation = /** @class */ (function () {
75319
+ function OrganizationPendingInvitation(obj) {
75320
+ if (!obj) {
75321
+ return;
75322
+ }
75323
+ this.id = (0, Mapper_1.map)(obj.id);
75324
+ this.email = (0, Mapper_1.map)(obj.email);
75325
+ this.groupId = (0, Mapper_1.map)(obj.groupId);
75326
+ this.groupName = (0, Mapper_1.map)(obj.groupName);
75327
+ }
75328
+ return OrganizationPendingInvitation;
75329
+ }());
75330
+ exports.OrganizationPendingInvitation = OrganizationPendingInvitation;
75331
+ exports["default"] = OrganizationPendingInvitation;
75332
+
75333
+
75232
75334
  /***/ }),
75233
75335
 
75234
75336
  /***/ "./models/OrganizationType.ts":
@@ -87164,6 +87266,7 @@ __exportStar(__webpack_require__(/*! ./OpusAudioConfiguration */ "./models/OpusA
87164
87266
  __exportStar(__webpack_require__(/*! ./OpusChannelLayout */ "./models/OpusChannelLayout.ts"), exports);
87165
87267
  __exportStar(__webpack_require__(/*! ./OrConjunction */ "./models/OrConjunction.ts"), exports);
87166
87268
  __exportStar(__webpack_require__(/*! ./Organization */ "./models/Organization.ts"), exports);
87269
+ __exportStar(__webpack_require__(/*! ./OrganizationPendingInvitation */ "./models/OrganizationPendingInvitation.ts"), exports);
87167
87270
  __exportStar(__webpack_require__(/*! ./OrganizationType */ "./models/OrganizationType.ts"), exports);
87168
87271
  __exportStar(__webpack_require__(/*! ./OttLoudnessMode */ "./models/OttLoudnessMode.ts"), exports);
87169
87272
  __exportStar(__webpack_require__(/*! ./Output */ "./models/Output.ts"), exports);