@emilgroup/tenant-sdk 1.23.0 → 1.25.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 (45) hide show
  1. package/.openapi-generator/FILES +5 -7
  2. package/README.md +2 -2
  3. package/api/invite-organizations-api.ts +15 -15
  4. package/api/invite-users-api.ts +34 -34
  5. package/api/roles-api.ts +4 -0
  6. package/api/users-api.ts +124 -4
  7. package/dist/api/invite-organizations-api.d.ts +9 -9
  8. package/dist/api/invite-organizations-api.js +12 -12
  9. package/dist/api/invite-users-api.d.ts +22 -22
  10. package/dist/api/invite-users-api.js +27 -27
  11. package/dist/api/roles-api.d.ts +4 -0
  12. package/dist/api/roles-api.js +4 -0
  13. package/dist/api/users-api.d.ts +70 -4
  14. package/dist/api/users-api.js +102 -3
  15. package/dist/models/{invite-users-request-dto.d.ts → assign-user-roles-request-dto.d.ts} +8 -14
  16. package/dist/models/assign-user-roles-response-class.d.ts +25 -0
  17. package/dist/models/index.d.ts +5 -7
  18. package/dist/models/index.js +5 -7
  19. package/dist/models/{invite-org-request-dto.d.ts → invite-org-request-dto-rest.d.ts} +27 -14
  20. package/dist/models/invite-user-request-dto-rest.d.ts +49 -0
  21. package/dist/models/invite-users-request-dto-rest.d.ts +49 -0
  22. package/models/{invite-users-request-dto.ts → assign-user-roles-request-dto.ts} +8 -14
  23. package/models/assign-user-roles-response-class.ts +31 -0
  24. package/models/index.ts +5 -7
  25. package/models/{invite-org-request-dto.ts → invite-org-request-dto-rest.ts} +27 -14
  26. package/models/invite-user-request-dto-rest.ts +55 -0
  27. package/models/invite-users-request-dto-rest.ts +55 -0
  28. package/package.json +1 -1
  29. package/dist/models/create-permission-request-dto.d.ts +0 -42
  30. package/dist/models/create-role-request-dto.d.ts +0 -36
  31. package/dist/models/invite-user-request-dto.d.ts +0 -43
  32. package/dist/models/partner-invitation-data-dto.d.ts +0 -36
  33. package/dist/models/partner-invitation-data-dto.js +0 -15
  34. package/dist/models/update-role-request-dto.d.ts +0 -42
  35. package/dist/models/update-role-request-dto.js +0 -15
  36. package/models/create-permission-request-dto.ts +0 -48
  37. package/models/create-role-request-dto.ts +0 -42
  38. package/models/invite-user-request-dto.ts +0 -49
  39. package/models/partner-invitation-data-dto.ts +0 -42
  40. package/models/update-role-request-dto.ts +0 -48
  41. /package/dist/models/{create-permission-request-dto.js → assign-user-roles-request-dto.js} +0 -0
  42. /package/dist/models/{create-role-request-dto.js → assign-user-roles-response-class.js} +0 -0
  43. /package/dist/models/{invite-org-request-dto.js → invite-org-request-dto-rest.js} +0 -0
  44. /package/dist/models/{invite-user-request-dto.js → invite-user-request-dto-rest.js} +0 -0
  45. /package/dist/models/{invite-users-request-dto.js → invite-users-request-dto-rest.js} +0 -0
@@ -12,6 +12,8 @@
12
12
  import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
13
  import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
+ import { AssignUserRolesRequestDto } from '../models';
16
+ import { AssignUserRolesResponseClass } from '../models';
15
17
  import { BatchDeleteRequestDto } from '../models';
16
18
  import { BatchDeleteResponseClass } from '../models';
17
19
  import { DisableUsersRequestDto } from '../models';
@@ -27,6 +29,16 @@ import { ListUsersResponseClass } from '../models';
27
29
  * @export
28
30
  */
29
31
  export declare const UsersApiAxiosParamCreator: (configuration?: Configuration) => {
32
+ /**
33
+ * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api.
34
+ * @param {number} id
35
+ * @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
36
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
37
+ * @param {*} [options] Override http request option.
38
+ * @deprecated
39
+ * @throws {RequiredError}
40
+ */
41
+ assignUserRoles: (id: number, assignUserRolesRequestDto: AssignUserRolesRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
30
42
  /**
31
43
  *
32
44
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
@@ -78,7 +90,7 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
78
90
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode&lt;/i&gt;
79
91
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
80
92
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: email&lt;/i&gt;
81
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: roles, subscriptions, organizations&lt;i&gt;
93
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: subscriptions, organizations&lt;i&gt;
82
94
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode&lt;/i&gt;
83
95
  * @param {*} [options] Override http request option.
84
96
  * @throws {RequiredError}
@@ -90,6 +102,16 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
90
102
  * @export
91
103
  */
92
104
  export declare const UsersApiFp: (configuration?: Configuration) => {
105
+ /**
106
+ * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api.
107
+ * @param {number} id
108
+ * @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
109
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
110
+ * @param {*} [options] Override http request option.
111
+ * @deprecated
112
+ * @throws {RequiredError}
113
+ */
114
+ assignUserRoles(id: number, assignUserRolesRequestDto: AssignUserRolesRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssignUserRolesResponseClass>>;
93
115
  /**
94
116
  *
95
117
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
@@ -141,7 +163,7 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
141
163
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode&lt;/i&gt;
142
164
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
143
165
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: email&lt;/i&gt;
144
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: roles, subscriptions, organizations&lt;i&gt;
166
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: subscriptions, organizations&lt;i&gt;
145
167
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode&lt;/i&gt;
146
168
  * @param {*} [options] Override http request option.
147
169
  * @throws {RequiredError}
@@ -153,6 +175,16 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
153
175
  * @export
154
176
  */
155
177
  export declare const UsersApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
178
+ /**
179
+ * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api.
180
+ * @param {number} id
181
+ * @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
182
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
183
+ * @param {*} [options] Override http request option.
184
+ * @deprecated
185
+ * @throws {RequiredError}
186
+ */
187
+ assignUserRoles(id: number, assignUserRolesRequestDto: AssignUserRolesRequestDto, authorization?: string, options?: any): AxiosPromise<AssignUserRolesResponseClass>;
156
188
  /**
157
189
  *
158
190
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
@@ -204,13 +236,38 @@ export declare const UsersApiFactory: (configuration?: Configuration, basePath?:
204
236
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode&lt;/i&gt;
205
237
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
206
238
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: email&lt;/i&gt;
207
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: roles, subscriptions, organizations&lt;i&gt;
239
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: subscriptions, organizations&lt;i&gt;
208
240
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode&lt;/i&gt;
209
241
  * @param {*} [options] Override http request option.
210
242
  * @throws {RequiredError}
211
243
  */
212
244
  listUsers(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListUsersResponseClass>;
213
245
  };
246
+ /**
247
+ * Request parameters for assignUserRoles operation in UsersApi.
248
+ * @export
249
+ * @interface UsersApiAssignUserRolesRequest
250
+ */
251
+ export interface UsersApiAssignUserRolesRequest {
252
+ /**
253
+ *
254
+ * @type {number}
255
+ * @memberof UsersApiAssignUserRoles
256
+ */
257
+ readonly id: number;
258
+ /**
259
+ *
260
+ * @type {AssignUserRolesRequestDto}
261
+ * @memberof UsersApiAssignUserRoles
262
+ */
263
+ readonly assignUserRolesRequestDto: AssignUserRolesRequestDto;
264
+ /**
265
+ * Bearer Token: provided by the login endpoint under the name accessToken.
266
+ * @type {string}
267
+ * @memberof UsersApiAssignUserRoles
268
+ */
269
+ readonly authorization?: string;
270
+ }
214
271
  /**
215
272
  * Request parameters for deleteUsers operation in UsersApi.
216
273
  * @export
@@ -361,7 +418,7 @@ export interface UsersApiListUsersRequest {
361
418
  */
362
419
  readonly order?: string;
363
420
  /**
364
- * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: roles, subscriptions, organizations&lt;i&gt;
421
+ * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: subscriptions, organizations&lt;i&gt;
365
422
  * @type {string}
366
423
  * @memberof UsersApiListUsers
367
424
  */
@@ -380,6 +437,15 @@ export interface UsersApiListUsersRequest {
380
437
  * @extends {BaseAPI}
381
438
  */
382
439
  export declare class UsersApi extends BaseAPI {
440
+ /**
441
+ * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api.
442
+ * @param {UsersApiAssignUserRolesRequest} requestParameters Request parameters.
443
+ * @param {*} [options] Override http request option.
444
+ * @deprecated
445
+ * @throws {RequiredError}
446
+ * @memberof UsersApi
447
+ */
448
+ assignUserRoles(requestParameters: UsersApiAssignUserRolesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<AssignUserRolesResponseClass, any>>;
383
449
  /**
384
450
  *
385
451
  * @param {UsersApiDeleteUsersRequest} requestParameters Request parameters.
@@ -92,6 +92,59 @@ var base_1 = require("../base");
92
92
  var UsersApiAxiosParamCreator = function (configuration) {
93
93
  var _this = this;
94
94
  return {
95
+ /**
96
+ * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api.
97
+ * @param {number} id
98
+ * @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
99
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
100
+ * @param {*} [options] Override http request option.
101
+ * @deprecated
102
+ * @throws {RequiredError}
103
+ */
104
+ assignUserRoles: function (id, assignUserRolesRequestDto, authorization, options) {
105
+ if (options === void 0) { options = {}; }
106
+ return __awaiter(_this, void 0, void 0, function () {
107
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
108
+ return __generator(this, function (_a) {
109
+ switch (_a.label) {
110
+ case 0:
111
+ // verify required parameter 'id' is not null or undefined
112
+ (0, common_1.assertParamExists)('assignUserRoles', 'id', id);
113
+ // verify required parameter 'assignUserRolesRequestDto' is not null or undefined
114
+ (0, common_1.assertParamExists)('assignUserRoles', 'assignUserRolesRequestDto', assignUserRolesRequestDto);
115
+ localVarPath = "/tenantservice/v1/users/{id}/assign-roles"
116
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
117
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
118
+ if (configuration) {
119
+ baseOptions = configuration.baseOptions;
120
+ baseAccessToken = configuration.accessToken;
121
+ }
122
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
123
+ localVarHeaderParameter = {};
124
+ localVarQueryParameter = {};
125
+ // authentication bearer required
126
+ // http bearer authentication required
127
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
128
+ case 1:
129
+ // authentication bearer required
130
+ // http bearer authentication required
131
+ _a.sent();
132
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
133
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
134
+ }
135
+ localVarHeaderParameter['Content-Type'] = 'application/json';
136
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
137
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
138
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
139
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(assignUserRolesRequestDto, localVarRequestOptions, configuration);
140
+ return [2 /*return*/, {
141
+ url: (0, common_1.toPathString)(localVarUrlObj),
142
+ options: localVarRequestOptions,
143
+ }];
144
+ }
145
+ });
146
+ });
147
+ },
95
148
  /**
96
149
  *
97
150
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
@@ -348,7 +401,7 @@ var UsersApiAxiosParamCreator = function (configuration) {
348
401
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode&lt;/i&gt;
349
402
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
350
403
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: email&lt;/i&gt;
351
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: roles, subscriptions, organizations&lt;i&gt;
404
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: subscriptions, organizations&lt;i&gt;
352
405
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode&lt;/i&gt;
353
406
  * @param {*} [options] Override http request option.
354
407
  * @throws {RequiredError}
@@ -421,6 +474,28 @@ exports.UsersApiAxiosParamCreator = UsersApiAxiosParamCreator;
421
474
  var UsersApiFp = function (configuration) {
422
475
  var localVarAxiosParamCreator = (0, exports.UsersApiAxiosParamCreator)(configuration);
423
476
  return {
477
+ /**
478
+ * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api.
479
+ * @param {number} id
480
+ * @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
481
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
482
+ * @param {*} [options] Override http request option.
483
+ * @deprecated
484
+ * @throws {RequiredError}
485
+ */
486
+ assignUserRoles: function (id, assignUserRolesRequestDto, authorization, options) {
487
+ return __awaiter(this, void 0, void 0, function () {
488
+ var localVarAxiosArgs;
489
+ return __generator(this, function (_a) {
490
+ switch (_a.label) {
491
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.assignUserRoles(id, assignUserRolesRequestDto, authorization, options)];
492
+ case 1:
493
+ localVarAxiosArgs = _a.sent();
494
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
495
+ }
496
+ });
497
+ });
498
+ },
424
499
  /**
425
500
  *
426
501
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
@@ -532,7 +607,7 @@ var UsersApiFp = function (configuration) {
532
607
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode&lt;/i&gt;
533
608
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
534
609
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: email&lt;/i&gt;
535
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: roles, subscriptions, organizations&lt;i&gt;
610
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: subscriptions, organizations&lt;i&gt;
536
611
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode&lt;/i&gt;
537
612
  * @param {*} [options] Override http request option.
538
613
  * @throws {RequiredError}
@@ -560,6 +635,18 @@ exports.UsersApiFp = UsersApiFp;
560
635
  var UsersApiFactory = function (configuration, basePath, axios) {
561
636
  var localVarFp = (0, exports.UsersApiFp)(configuration);
562
637
  return {
638
+ /**
639
+ * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api.
640
+ * @param {number} id
641
+ * @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
642
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
643
+ * @param {*} [options] Override http request option.
644
+ * @deprecated
645
+ * @throws {RequiredError}
646
+ */
647
+ assignUserRoles: function (id, assignUserRolesRequestDto, authorization, options) {
648
+ return localVarFp.assignUserRoles(id, assignUserRolesRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
649
+ },
563
650
  /**
564
651
  *
565
652
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
@@ -621,7 +708,7 @@ var UsersApiFactory = function (configuration, basePath, axios) {
621
708
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode&lt;/i&gt;
622
709
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
623
710
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: email&lt;/i&gt;
624
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: roles, subscriptions, organizations&lt;i&gt;
711
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: subscriptions, organizations&lt;i&gt;
625
712
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode&lt;/i&gt;
626
713
  * @param {*} [options] Override http request option.
627
714
  * @throws {RequiredError}
@@ -643,6 +730,18 @@ var UsersApi = /** @class */ (function (_super) {
643
730
  function UsersApi() {
644
731
  return _super !== null && _super.apply(this, arguments) || this;
645
732
  }
733
+ /**
734
+ * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api.
735
+ * @param {UsersApiAssignUserRolesRequest} requestParameters Request parameters.
736
+ * @param {*} [options] Override http request option.
737
+ * @deprecated
738
+ * @throws {RequiredError}
739
+ * @memberof UsersApi
740
+ */
741
+ UsersApi.prototype.assignUserRoles = function (requestParameters, options) {
742
+ var _this = this;
743
+ return (0, exports.UsersApiFp)(this.configuration).assignUserRoles(requestParameters.id, requestParameters.assignUserRolesRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
744
+ };
646
745
  /**
647
746
  *
648
747
  * @param {UsersApiDeleteUsersRequest} requestParameters Request parameters.
@@ -12,25 +12,19 @@
12
12
  /**
13
13
  *
14
14
  * @export
15
- * @interface InviteUsersRequestDto
15
+ * @interface AssignUserRolesRequestDto
16
16
  */
17
- export interface InviteUsersRequestDto {
17
+ export interface AssignUserRolesRequestDto {
18
18
  /**
19
- * User\'s email address.
20
- * @type {Array<string>}
21
- * @memberof InviteUsersRequestDto
19
+ * User id
20
+ * @type {number}
21
+ * @memberof AssignUserRolesRequestDto
22
22
  */
23
- 'emails': Array<string>;
23
+ 'userId': number;
24
24
  /**
25
- * Role ids to be assigned.
25
+ * Role ids to be assigned
26
26
  * @type {Array<number>}
27
- * @memberof InviteUsersRequestDto
27
+ * @memberof AssignUserRolesRequestDto
28
28
  */
29
29
  'roleIds': Array<number>;
30
- /**
31
- * Organization associated with the users.
32
- * @type {number}
33
- * @memberof InviteUsersRequestDto
34
- */
35
- 'organizationId'?: number;
36
30
  }
@@ -0,0 +1,25 @@
1
+ /**
2
+ * EMIL Tenant Service
3
+ * The EMIL TenantService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { UserClass } from './user-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AssignUserRolesResponseClass
17
+ */
18
+ export interface AssignUserRolesResponseClass {
19
+ /**
20
+ * user
21
+ * @type {UserClass}
22
+ * @memberof AssignUserRolesResponseClass
23
+ */
24
+ 'user': UserClass;
25
+ }
@@ -1,3 +1,5 @@
1
+ export * from './assign-user-roles-request-dto';
2
+ export * from './assign-user-roles-response-class';
1
3
  export * from './batch-delete-request-dto';
2
4
  export * from './batch-delete-response-class';
3
5
  export * from './create-custom-schema-request-dto';
@@ -8,8 +10,6 @@ export * from './create-dashboard-request-dto';
8
10
  export * from './create-dashboard-response-class';
9
11
  export * from './create-data-report-request-dto';
10
12
  export * from './create-data-report-response-class';
11
- export * from './create-permission-request-dto';
12
- export * from './create-role-request-dto';
13
13
  export * from './create-tenant-request-dto';
14
14
  export * from './custom-field-dto';
15
15
  export * from './custom-schema-class';
@@ -39,10 +39,10 @@ export * from './initial-tenant-config-class';
39
39
  export * from './inline-response200';
40
40
  export * from './inline-response503';
41
41
  export * from './invite-class';
42
- export * from './invite-org-request-dto';
43
- export * from './invite-user-request-dto';
42
+ export * from './invite-org-request-dto-rest';
43
+ export * from './invite-user-request-dto-rest';
44
44
  export * from './invite-user-response-class';
45
- export * from './invite-users-request-dto';
45
+ export * from './invite-users-request-dto-rest';
46
46
  export * from './invite-users-response-class';
47
47
  export * from './link-user-with-partner-request-dto-rest';
48
48
  export * from './link-user-with-partner-response-class';
@@ -58,7 +58,6 @@ export * from './list-users-response-class';
58
58
  export * from './org-invitation-class';
59
59
  export * from './org-invitation-response-class';
60
60
  export * from './organization-class';
61
- export * from './partner-invitation-data-dto';
62
61
  export * from './permission-class';
63
62
  export * from './re-invite-org-request-dto';
64
63
  export * from './role-class';
@@ -78,5 +77,4 @@ export * from './update-data-report-request-dto';
78
77
  export * from './update-data-report-response-class';
79
78
  export * from './update-organization-request-dto-rest';
80
79
  export * from './update-organization-response-class';
81
- export * from './update-role-request-dto';
82
80
  export * from './user-class';
@@ -14,6 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./assign-user-roles-request-dto"), exports);
18
+ __exportStar(require("./assign-user-roles-response-class"), exports);
17
19
  __exportStar(require("./batch-delete-request-dto"), exports);
18
20
  __exportStar(require("./batch-delete-response-class"), exports);
19
21
  __exportStar(require("./create-custom-schema-request-dto"), exports);
@@ -24,8 +26,6 @@ __exportStar(require("./create-dashboard-request-dto"), exports);
24
26
  __exportStar(require("./create-dashboard-response-class"), exports);
25
27
  __exportStar(require("./create-data-report-request-dto"), exports);
26
28
  __exportStar(require("./create-data-report-response-class"), exports);
27
- __exportStar(require("./create-permission-request-dto"), exports);
28
- __exportStar(require("./create-role-request-dto"), exports);
29
29
  __exportStar(require("./create-tenant-request-dto"), exports);
30
30
  __exportStar(require("./custom-field-dto"), exports);
31
31
  __exportStar(require("./custom-schema-class"), exports);
@@ -55,10 +55,10 @@ __exportStar(require("./initial-tenant-config-class"), exports);
55
55
  __exportStar(require("./inline-response200"), exports);
56
56
  __exportStar(require("./inline-response503"), exports);
57
57
  __exportStar(require("./invite-class"), exports);
58
- __exportStar(require("./invite-org-request-dto"), exports);
59
- __exportStar(require("./invite-user-request-dto"), exports);
58
+ __exportStar(require("./invite-org-request-dto-rest"), exports);
59
+ __exportStar(require("./invite-user-request-dto-rest"), exports);
60
60
  __exportStar(require("./invite-user-response-class"), exports);
61
- __exportStar(require("./invite-users-request-dto"), exports);
61
+ __exportStar(require("./invite-users-request-dto-rest"), exports);
62
62
  __exportStar(require("./invite-users-response-class"), exports);
63
63
  __exportStar(require("./link-user-with-partner-request-dto-rest"), exports);
64
64
  __exportStar(require("./link-user-with-partner-response-class"), exports);
@@ -74,7 +74,6 @@ __exportStar(require("./list-users-response-class"), exports);
74
74
  __exportStar(require("./org-invitation-class"), exports);
75
75
  __exportStar(require("./org-invitation-response-class"), exports);
76
76
  __exportStar(require("./organization-class"), exports);
77
- __exportStar(require("./partner-invitation-data-dto"), exports);
78
77
  __exportStar(require("./permission-class"), exports);
79
78
  __exportStar(require("./re-invite-org-request-dto"), exports);
80
79
  __exportStar(require("./role-class"), exports);
@@ -94,5 +93,4 @@ __exportStar(require("./update-data-report-request-dto"), exports);
94
93
  __exportStar(require("./update-data-report-response-class"), exports);
95
94
  __exportStar(require("./update-organization-request-dto-rest"), exports);
96
95
  __exportStar(require("./update-organization-response-class"), exports);
97
- __exportStar(require("./update-role-request-dto"), exports);
98
96
  __exportStar(require("./user-class"), exports);
@@ -12,73 +12,86 @@
12
12
  /**
13
13
  *
14
14
  * @export
15
- * @interface InviteOrgRequestDto
15
+ * @interface InviteOrgRequestDtoRest
16
16
  */
17
- export interface InviteOrgRequestDto {
17
+ export interface InviteOrgRequestDtoRest {
18
18
  /**
19
19
  * Organization\'s contact person email address.
20
20
  * @type {string}
21
- * @memberof InviteOrgRequestDto
21
+ * @memberof InviteOrgRequestDtoRest
22
22
  */
23
23
  'email': string;
24
24
  /**
25
- * Role ids to be assigned.
25
+ * Codes associated with the roles to be assigned.
26
+ * @type {Array<string>}
27
+ * @memberof InviteOrgRequestDtoRest
28
+ */
29
+ 'roleCodes': Array<string>;
30
+ /**
31
+ * Names of the roles to be assigned.
32
+ * @type {Array<string>}
33
+ * @memberof InviteOrgRequestDtoRest
34
+ */
35
+ 'roleNames': Array<string>;
36
+ /**
37
+ * Role ids to be assigned. Deprecated: please use roleNames or roleCodes. RoleIds will be removed in a future release.
26
38
  * @type {Array<number>}
27
- * @memberof InviteOrgRequestDto
39
+ * @memberof InviteOrgRequestDtoRest
40
+ * @deprecated
28
41
  */
29
42
  'roleIds': Array<number>;
30
43
  /**
31
44
  * Name of the invited organization.
32
45
  * @type {string}
33
- * @memberof InviteOrgRequestDto
46
+ * @memberof InviteOrgRequestDtoRest
34
47
  */
35
48
  'name': string;
36
49
  /**
37
50
  * Identifier for the organization. Restrictions: should have at least 3 characters; should not exceed 63 characters; must be unique within the hierarchy scope; only lowercase letters (a-z), digits (0-9), and underscores (_) are allowed; will be part of the organization\'s ERN; the ERN length must not exceed 63 characters, including the slug.
38
51
  * @type {string}
39
- * @memberof InviteOrgRequestDto
52
+ * @memberof InviteOrgRequestDtoRest
40
53
  */
41
54
  'slug': string;
42
55
  /**
43
56
  * Inviting organization.
44
57
  * @type {number}
45
- * @memberof InviteOrgRequestDto
58
+ * @memberof InviteOrgRequestDtoRest
46
59
  */
47
60
  'parentOrganizationId': number;
48
61
  /**
49
62
  * Organization\'s street name.
50
63
  * @type {string}
51
- * @memberof InviteOrgRequestDto
64
+ * @memberof InviteOrgRequestDtoRest
52
65
  */
53
66
  'street': string;
54
67
  /**
55
68
  * Organization\'s house number.
56
69
  * @type {string}
57
- * @memberof InviteOrgRequestDto
70
+ * @memberof InviteOrgRequestDtoRest
58
71
  */
59
72
  'houseNumber': string;
60
73
  /**
61
74
  * Zip code of the organization.
62
75
  * @type {string}
63
- * @memberof InviteOrgRequestDto
76
+ * @memberof InviteOrgRequestDtoRest
64
77
  */
65
78
  'zipCode': string;
66
79
  /**
67
80
  * City of the organization.
68
81
  * @type {string}
69
- * @memberof InviteOrgRequestDto
82
+ * @memberof InviteOrgRequestDtoRest
70
83
  */
71
84
  'city': string;
72
85
  /**
73
86
  * Country of the organization.
74
87
  * @type {string}
75
- * @memberof InviteOrgRequestDto
88
+ * @memberof InviteOrgRequestDtoRest
76
89
  */
77
90
  'country': string;
78
91
  /**
79
92
  * Custom fields of the organization
80
93
  * @type {object}
81
- * @memberof InviteOrgRequestDto
94
+ * @memberof InviteOrgRequestDtoRest
82
95
  */
83
96
  'customFields': object;
84
97
  }
@@ -0,0 +1,49 @@
1
+ /**
2
+ * EMIL Tenant Service
3
+ * The EMIL TenantService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface InviteUserRequestDtoRest
16
+ */
17
+ export interface InviteUserRequestDtoRest {
18
+ /**
19
+ * User\'s email address.
20
+ * @type {string}
21
+ * @memberof InviteUserRequestDtoRest
22
+ */
23
+ 'email': string;
24
+ /**
25
+ * Organization associated with the user.
26
+ * @type {number}
27
+ * @memberof InviteUserRequestDtoRest
28
+ */
29
+ 'organizationId': number;
30
+ /**
31
+ * Codes associated with the roles to be assigned.
32
+ * @type {Array<string>}
33
+ * @memberof InviteUserRequestDtoRest
34
+ */
35
+ 'roleCodes': Array<string>;
36
+ /**
37
+ * Names of the roles to be assigned.
38
+ * @type {Array<string>}
39
+ * @memberof InviteUserRequestDtoRest
40
+ */
41
+ 'roleNames': Array<string>;
42
+ /**
43
+ * Role ids to be assigned. Deprecated: please use roleNames or roleCodes. RoleIds will be removed in a future release.
44
+ * @type {Array<number>}
45
+ * @memberof InviteUserRequestDtoRest
46
+ * @deprecated
47
+ */
48
+ 'roleIds': Array<number>;
49
+ }
@@ -0,0 +1,49 @@
1
+ /**
2
+ * EMIL Tenant Service
3
+ * The EMIL TenantService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface InviteUsersRequestDtoRest
16
+ */
17
+ export interface InviteUsersRequestDtoRest {
18
+ /**
19
+ * User\'s email address.
20
+ * @type {Array<string>}
21
+ * @memberof InviteUsersRequestDtoRest
22
+ */
23
+ 'emails': Array<string>;
24
+ /**
25
+ * Codes associated with the roles to be assigned.
26
+ * @type {Array<string>}
27
+ * @memberof InviteUsersRequestDtoRest
28
+ */
29
+ 'roleCodes': Array<string>;
30
+ /**
31
+ * Names of the roles to be assigned.
32
+ * @type {Array<string>}
33
+ * @memberof InviteUsersRequestDtoRest
34
+ */
35
+ 'roleNames': Array<string>;
36
+ /**
37
+ * Role ids to be assigned. Deprecated: please use roleNames or roleCodes. RoleIds will be removed in a future release.
38
+ * @type {Array<number>}
39
+ * @memberof InviteUsersRequestDtoRest
40
+ * @deprecated
41
+ */
42
+ 'roleIds': Array<number>;
43
+ /**
44
+ * Organization associated with the users.
45
+ * @type {number}
46
+ * @memberof InviteUsersRequestDtoRest
47
+ */
48
+ 'organizationId': number;
49
+ }