@emilgroup/tenant-sdk-node 1.33.1-beta.8 → 1.34.1-beta.14

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/.openapi-generator/FILES +5 -0
  2. package/README.md +2 -2
  3. package/api/invitation-controller-rest-api.ts +561 -0
  4. package/api/invite-users-api.ts +12 -12
  5. package/api/settings-api.ts +304 -0
  6. package/api/user-controller-rest-api.ts +1413 -0
  7. package/api/users-api.ts +12 -12
  8. package/api.ts +4 -0
  9. package/base.ts +1 -0
  10. package/dist/api/invitation-controller-rest-api.d.ts +315 -0
  11. package/dist/api/invitation-controller-rest-api.js +538 -0
  12. package/dist/api/invite-users-api.d.ts +12 -12
  13. package/dist/api/invite-users-api.js +10 -10
  14. package/dist/api/settings-api.d.ts +156 -0
  15. package/dist/api/settings-api.js +268 -0
  16. package/dist/api/user-controller-rest-api.d.ts +777 -0
  17. package/dist/api/user-controller-rest-api.js +1227 -0
  18. package/dist/api/users-api.d.ts +12 -12
  19. package/dist/api/users-api.js +10 -10
  20. package/dist/api.d.ts +2 -0
  21. package/dist/api.js +2 -0
  22. package/dist/base.d.ts +2 -1
  23. package/dist/base.js +1 -0
  24. package/dist/models/get-settings-response-class.d.ts +5 -3
  25. package/dist/models/index.d.ts +3 -0
  26. package/dist/models/index.js +3 -0
  27. package/dist/models/set-setting-grpc-request-dto.d.ts +42 -0
  28. package/dist/models/set-setting-grpc-request-dto.js +15 -0
  29. package/dist/models/set-setting-request-dto.d.ts +6 -6
  30. package/dist/models/set-tenant-setting-response-class.d.ts +36 -0
  31. package/dist/models/set-tenant-setting-response-class.js +15 -0
  32. package/dist/models/set-user-setting-response-class.d.ts +36 -0
  33. package/dist/models/set-user-setting-response-class.js +15 -0
  34. package/dist/models/tenant-settings-class.d.ts +6 -0
  35. package/models/get-settings-response-class.ts +3 -3
  36. package/models/index.ts +3 -0
  37. package/models/set-setting-grpc-request-dto.ts +48 -0
  38. package/models/set-setting-request-dto.ts +6 -6
  39. package/models/set-tenant-setting-response-class.ts +42 -0
  40. package/models/set-user-setting-response-class.ts +42 -0
  41. package/models/tenant-settings-class.ts +6 -0
  42. package/package.json +2 -2
@@ -0,0 +1,1227 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL Tenant Service
6
+ * The EMIL TenantService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator = (this && this.__generator) || function (thisArg, body) {
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ var __importDefault = (this && this.__importDefault) || function (mod) {
78
+ return (mod && mod.__esModule) ? mod : { "default": mod };
79
+ };
80
+ Object.defineProperty(exports, "__esModule", { value: true });
81
+ exports.UserControllerRestApi = exports.UserControllerRestApiFactory = exports.UserControllerRestApiFp = exports.UserControllerRestApiAxiosParamCreator = void 0;
82
+ var axios_1 = __importDefault(require("axios"));
83
+ // Some imports not used depending on template conditions
84
+ // @ts-ignore
85
+ var common_1 = require("../common");
86
+ // @ts-ignore
87
+ var base_1 = require("../base");
88
+ // URLSearchParams not necessarily used
89
+ // @ts-ignore
90
+ var url_1 = require("url");
91
+ var FormData = require('form-data');
92
+ /**
93
+ * UserControllerRestApi - axios parameter creator
94
+ * @export
95
+ */
96
+ var UserControllerRestApiAxiosParamCreator = function (configuration) {
97
+ var _this = this;
98
+ return {
99
+ /**
100
+ * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api. **Required Permissions** \"identity-management.roles.update\"
101
+ * @param {number} id
102
+ * @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
103
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
104
+ * @param {*} [options] Override http request option.
105
+ * @deprecated
106
+ * @throws {RequiredError}
107
+ */
108
+ assignUserRoles: function (id, assignUserRolesRequestDto, authorization, options) {
109
+ if (options === void 0) { options = {}; }
110
+ return __awaiter(_this, void 0, void 0, function () {
111
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
112
+ return __generator(this, function (_a) {
113
+ switch (_a.label) {
114
+ case 0:
115
+ // verify required parameter 'id' is not null or undefined
116
+ (0, common_1.assertParamExists)('assignUserRoles', 'id', id);
117
+ // verify required parameter 'assignUserRolesRequestDto' is not null or undefined
118
+ (0, common_1.assertParamExists)('assignUserRoles', 'assignUserRolesRequestDto', assignUserRolesRequestDto);
119
+ localVarPath = "/tenantservice/v1/users/{id}/assign-roles"
120
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
121
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
122
+ if (configuration) {
123
+ baseOptions = configuration.baseOptions;
124
+ baseAccessToken = configuration.accessToken;
125
+ }
126
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
127
+ localVarHeaderParameter = {};
128
+ localVarQueryParameter = {};
129
+ // authentication bearer required
130
+ // http bearer authentication required
131
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
132
+ case 1:
133
+ // authentication bearer required
134
+ // http bearer authentication required
135
+ _a.sent();
136
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
137
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
138
+ }
139
+ localVarHeaderParameter['Content-Type'] = 'application/json';
140
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
141
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
142
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
143
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(assignUserRolesRequestDto, localVarRequestOptions, configuration);
144
+ return [2 /*return*/, {
145
+ url: (0, common_1.toPathString)(localVarUrlObj),
146
+ options: localVarRequestOptions,
147
+ }];
148
+ }
149
+ });
150
+ });
151
+ },
152
+ /**
153
+ * This will deletes the users who has been invited. Supply array of ids that were returned when users has been created and this will delete it. **Required Permissions** \"tenant-management.users.delete\"
154
+ * @summary Delete invited users.
155
+ * @param {BatchDeleteRequestDto} batchDeleteRequestDto
156
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
157
+ * @param {*} [options] Override http request option.
158
+ * @throws {RequiredError}
159
+ */
160
+ deleteInvites: function (batchDeleteRequestDto, authorization, options) {
161
+ if (options === void 0) { options = {}; }
162
+ return __awaiter(_this, void 0, void 0, function () {
163
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
164
+ return __generator(this, function (_a) {
165
+ switch (_a.label) {
166
+ case 0:
167
+ // verify required parameter 'batchDeleteRequestDto' is not null or undefined
168
+ (0, common_1.assertParamExists)('deleteInvites', 'batchDeleteRequestDto', batchDeleteRequestDto);
169
+ localVarPath = "/tenantservice/v1/users/invites/delete-batch";
170
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
171
+ if (configuration) {
172
+ baseOptions = configuration.baseOptions;
173
+ baseAccessToken = configuration.accessToken;
174
+ }
175
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
176
+ localVarHeaderParameter = {};
177
+ localVarQueryParameter = {};
178
+ // authentication bearer required
179
+ // http bearer authentication required
180
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
181
+ case 1:
182
+ // authentication bearer required
183
+ // http bearer authentication required
184
+ _a.sent();
185
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
186
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
187
+ }
188
+ localVarHeaderParameter['Content-Type'] = 'application/json';
189
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
190
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
191
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
192
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(batchDeleteRequestDto, localVarRequestOptions, configuration);
193
+ return [2 /*return*/, {
194
+ url: (0, common_1.toPathString)(localVarUrlObj),
195
+ options: localVarRequestOptions,
196
+ }];
197
+ }
198
+ });
199
+ });
200
+ },
201
+ /**
202
+ * undefined **Required Permissions** \"tenant-management.users.delete\"
203
+ * @param {BatchDeleteRequestDto} batchDeleteRequestDto
204
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
205
+ * @param {*} [options] Override http request option.
206
+ * @throws {RequiredError}
207
+ */
208
+ deleteUsers: function (batchDeleteRequestDto, authorization, options) {
209
+ if (options === void 0) { options = {}; }
210
+ return __awaiter(_this, void 0, void 0, function () {
211
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
212
+ return __generator(this, function (_a) {
213
+ switch (_a.label) {
214
+ case 0:
215
+ // verify required parameter 'batchDeleteRequestDto' is not null or undefined
216
+ (0, common_1.assertParamExists)('deleteUsers', 'batchDeleteRequestDto', batchDeleteRequestDto);
217
+ localVarPath = "/tenantservice/v1/users/delete-batch";
218
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
219
+ if (configuration) {
220
+ baseOptions = configuration.baseOptions;
221
+ baseAccessToken = configuration.accessToken;
222
+ }
223
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
224
+ localVarHeaderParameter = {};
225
+ localVarQueryParameter = {};
226
+ // authentication bearer required
227
+ // http bearer authentication required
228
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
229
+ case 1:
230
+ // authentication bearer required
231
+ // http bearer authentication required
232
+ _a.sent();
233
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
234
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
235
+ }
236
+ localVarHeaderParameter['Content-Type'] = 'application/json';
237
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
238
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
239
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
240
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(batchDeleteRequestDto, localVarRequestOptions, configuration);
241
+ return [2 /*return*/, {
242
+ url: (0, common_1.toPathString)(localVarUrlObj),
243
+ options: localVarRequestOptions,
244
+ }];
245
+ }
246
+ });
247
+ });
248
+ },
249
+ /**
250
+ * undefined **Required Permissions** \"tenant-management.users.update\"
251
+ * @param {DisableUsersRequestDto} disableUsersRequestDto
252
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
253
+ * @param {*} [options] Override http request option.
254
+ * @throws {RequiredError}
255
+ */
256
+ disableUsers: function (disableUsersRequestDto, authorization, options) {
257
+ if (options === void 0) { options = {}; }
258
+ return __awaiter(_this, void 0, void 0, function () {
259
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
260
+ return __generator(this, function (_a) {
261
+ switch (_a.label) {
262
+ case 0:
263
+ // verify required parameter 'disableUsersRequestDto' is not null or undefined
264
+ (0, common_1.assertParamExists)('disableUsers', 'disableUsersRequestDto', disableUsersRequestDto);
265
+ localVarPath = "/tenantservice/v1/users/disable-batch";
266
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
267
+ if (configuration) {
268
+ baseOptions = configuration.baseOptions;
269
+ baseAccessToken = configuration.accessToken;
270
+ }
271
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
272
+ localVarHeaderParameter = {};
273
+ localVarQueryParameter = {};
274
+ // authentication bearer required
275
+ // http bearer authentication required
276
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
277
+ case 1:
278
+ // authentication bearer required
279
+ // http bearer authentication required
280
+ _a.sent();
281
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
282
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
283
+ }
284
+ localVarHeaderParameter['Content-Type'] = 'application/json';
285
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
286
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
287
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
288
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(disableUsersRequestDto, localVarRequestOptions, configuration);
289
+ return [2 /*return*/, {
290
+ url: (0, common_1.toPathString)(localVarUrlObj),
291
+ options: localVarRequestOptions,
292
+ }];
293
+ }
294
+ });
295
+ });
296
+ },
297
+ /**
298
+ * undefined **Required Permissions** \"tenant-management.users.update\"
299
+ * @param {EnableUsersRequestDto} enableUsersRequestDto
300
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
301
+ * @param {*} [options] Override http request option.
302
+ * @throws {RequiredError}
303
+ */
304
+ enableUsers: function (enableUsersRequestDto, authorization, options) {
305
+ if (options === void 0) { options = {}; }
306
+ return __awaiter(_this, void 0, void 0, function () {
307
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
308
+ return __generator(this, function (_a) {
309
+ switch (_a.label) {
310
+ case 0:
311
+ // verify required parameter 'enableUsersRequestDto' is not null or undefined
312
+ (0, common_1.assertParamExists)('enableUsers', 'enableUsersRequestDto', enableUsersRequestDto);
313
+ localVarPath = "/tenantservice/v1/users/enable-batch";
314
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
315
+ if (configuration) {
316
+ baseOptions = configuration.baseOptions;
317
+ baseAccessToken = configuration.accessToken;
318
+ }
319
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
320
+ localVarHeaderParameter = {};
321
+ localVarQueryParameter = {};
322
+ // authentication bearer required
323
+ // http bearer authentication required
324
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
325
+ case 1:
326
+ // authentication bearer required
327
+ // http bearer authentication required
328
+ _a.sent();
329
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
330
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
331
+ }
332
+ localVarHeaderParameter['Content-Type'] = 'application/json';
333
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
334
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
335
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
336
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(enableUsersRequestDto, localVarRequestOptions, configuration);
337
+ return [2 /*return*/, {
338
+ url: (0, common_1.toPathString)(localVarUrlObj),
339
+ options: localVarRequestOptions,
340
+ }];
341
+ }
342
+ });
343
+ });
344
+ },
345
+ /**
346
+ * undefined **Required Permissions** \"tenant-management.users.view\"
347
+ * @param {string} code
348
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
349
+ * @param {string} [expand] Fields to expand response by
350
+ * @param {*} [options] Override http request option.
351
+ * @throws {RequiredError}
352
+ */
353
+ getUser: function (code, authorization, expand, options) {
354
+ if (options === void 0) { options = {}; }
355
+ return __awaiter(_this, void 0, void 0, function () {
356
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
357
+ return __generator(this, function (_a) {
358
+ switch (_a.label) {
359
+ case 0:
360
+ // verify required parameter 'code' is not null or undefined
361
+ (0, common_1.assertParamExists)('getUser', 'code', code);
362
+ localVarPath = "/tenantservice/v1/users/{code}"
363
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
364
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
365
+ if (configuration) {
366
+ baseOptions = configuration.baseOptions;
367
+ baseAccessToken = configuration.accessToken;
368
+ }
369
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
370
+ localVarHeaderParameter = {};
371
+ localVarQueryParameter = {};
372
+ // authentication bearer required
373
+ // http bearer authentication required
374
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
375
+ case 1:
376
+ // authentication bearer required
377
+ // http bearer authentication required
378
+ _a.sent();
379
+ if (expand !== undefined) {
380
+ localVarQueryParameter['expand'] = expand;
381
+ }
382
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
383
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
384
+ }
385
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
386
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
387
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
388
+ return [2 /*return*/, {
389
+ url: (0, common_1.toPathString)(localVarUrlObj),
390
+ options: localVarRequestOptions,
391
+ }];
392
+ }
393
+ });
394
+ });
395
+ },
396
+ /**
397
+ * This send an email to invite a user with the specific role/roles. **Required Permissions** \"tenant-management.users.create\"
398
+ * @summary Invite a user
399
+ * @param {InviteUserRequestDtoRest} inviteUserRequestDtoRest
400
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
401
+ * @param {*} [options] Override http request option.
402
+ * @throws {RequiredError}
403
+ */
404
+ inviteUser: function (inviteUserRequestDtoRest, authorization, options) {
405
+ if (options === void 0) { options = {}; }
406
+ return __awaiter(_this, void 0, void 0, function () {
407
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
408
+ return __generator(this, function (_a) {
409
+ switch (_a.label) {
410
+ case 0:
411
+ // verify required parameter 'inviteUserRequestDtoRest' is not null or undefined
412
+ (0, common_1.assertParamExists)('inviteUser', 'inviteUserRequestDtoRest', inviteUserRequestDtoRest);
413
+ localVarPath = "/tenantservice/v1/users/invites";
414
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
415
+ if (configuration) {
416
+ baseOptions = configuration.baseOptions;
417
+ baseAccessToken = configuration.accessToken;
418
+ }
419
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
420
+ localVarHeaderParameter = {};
421
+ localVarQueryParameter = {};
422
+ // authentication bearer required
423
+ // http bearer authentication required
424
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
425
+ case 1:
426
+ // authentication bearer required
427
+ // http bearer authentication required
428
+ _a.sent();
429
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
430
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
431
+ }
432
+ localVarHeaderParameter['Content-Type'] = 'application/json';
433
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
434
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
435
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
436
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(inviteUserRequestDtoRest, localVarRequestOptions, configuration);
437
+ return [2 /*return*/, {
438
+ url: (0, common_1.toPathString)(localVarUrlObj),
439
+ options: localVarRequestOptions,
440
+ }];
441
+ }
442
+ });
443
+ });
444
+ },
445
+ /**
446
+ * This send bulk emails to invite users with the specific role/roles. **Required Permissions** \"tenant-management.users.create\"
447
+ * @summary Invite batch of users
448
+ * @param {InviteUsersRequestDtoRest} inviteUsersRequestDtoRest
449
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
450
+ * @param {*} [options] Override http request option.
451
+ * @throws {RequiredError}
452
+ */
453
+ inviteUsers: function (inviteUsersRequestDtoRest, authorization, options) {
454
+ if (options === void 0) { options = {}; }
455
+ return __awaiter(_this, void 0, void 0, function () {
456
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
457
+ return __generator(this, function (_a) {
458
+ switch (_a.label) {
459
+ case 0:
460
+ // verify required parameter 'inviteUsersRequestDtoRest' is not null or undefined
461
+ (0, common_1.assertParamExists)('inviteUsers', 'inviteUsersRequestDtoRest', inviteUsersRequestDtoRest);
462
+ localVarPath = "/tenantservice/v1/users/invites/batch";
463
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
464
+ if (configuration) {
465
+ baseOptions = configuration.baseOptions;
466
+ baseAccessToken = configuration.accessToken;
467
+ }
468
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
469
+ localVarHeaderParameter = {};
470
+ localVarQueryParameter = {};
471
+ // authentication bearer required
472
+ // http bearer authentication required
473
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
474
+ case 1:
475
+ // authentication bearer required
476
+ // http bearer authentication required
477
+ _a.sent();
478
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
479
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
480
+ }
481
+ localVarHeaderParameter['Content-Type'] = 'application/json';
482
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
483
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
484
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
485
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(inviteUsersRequestDtoRest, localVarRequestOptions, configuration);
486
+ return [2 /*return*/, {
487
+ url: (0, common_1.toPathString)(localVarUrlObj),
488
+ options: localVarRequestOptions,
489
+ }];
490
+ }
491
+ });
492
+ });
493
+ },
494
+ /**
495
+ * undefined **Required Permissions** \"partner-management.partners.update\"
496
+ * @param {string} code Unique identifier for the object.
497
+ * @param {LinkUserWithPartnerRequestDtoRest} linkUserWithPartnerRequestDtoRest
498
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
499
+ * @param {*} [options] Override http request option.
500
+ * @throws {RequiredError}
501
+ */
502
+ linkUserWithPartner: function (code, linkUserWithPartnerRequestDtoRest, authorization, options) {
503
+ if (options === void 0) { options = {}; }
504
+ return __awaiter(_this, void 0, void 0, function () {
505
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
506
+ return __generator(this, function (_a) {
507
+ switch (_a.label) {
508
+ case 0:
509
+ // verify required parameter 'code' is not null or undefined
510
+ (0, common_1.assertParamExists)('linkUserWithPartner', 'code', code);
511
+ // verify required parameter 'linkUserWithPartnerRequestDtoRest' is not null or undefined
512
+ (0, common_1.assertParamExists)('linkUserWithPartner', 'linkUserWithPartnerRequestDtoRest', linkUserWithPartnerRequestDtoRest);
513
+ localVarPath = "/tenantservice/v1/users/{code}/link-partner"
514
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
515
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
516
+ if (configuration) {
517
+ baseOptions = configuration.baseOptions;
518
+ baseAccessToken = configuration.accessToken;
519
+ }
520
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
521
+ localVarHeaderParameter = {};
522
+ localVarQueryParameter = {};
523
+ // authentication bearer required
524
+ // http bearer authentication required
525
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
526
+ case 1:
527
+ // authentication bearer required
528
+ // http bearer authentication required
529
+ _a.sent();
530
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
531
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
532
+ }
533
+ localVarHeaderParameter['Content-Type'] = 'application/json';
534
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
535
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
536
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
537
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(linkUserWithPartnerRequestDtoRest, localVarRequestOptions, configuration);
538
+ return [2 /*return*/, {
539
+ url: (0, common_1.toPathString)(localVarUrlObj),
540
+ options: localVarRequestOptions,
541
+ }];
542
+ }
543
+ });
544
+ });
545
+ },
546
+ /**
547
+ * Returns a list of invited users you have previously created. The invited users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"tenant-management.users.view\"
548
+ * @summary List invited users
549
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
550
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
551
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
552
+ * @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, email, token, organizationId, ern, partnerCode&lt;/i&gt;
553
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
554
+ * @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: id, email, expiresOn&lt;/i&gt;
555
+ * @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: organizations&lt;i&gt;
556
+ * @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, email, token, organizationId, ern, partnerCode&lt;/i&gt;
557
+ * @param {*} [options] Override http request option.
558
+ * @throws {RequiredError}
559
+ */
560
+ listInvites: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
561
+ if (options === void 0) { options = {}; }
562
+ return __awaiter(_this, void 0, void 0, function () {
563
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
564
+ return __generator(this, function (_a) {
565
+ switch (_a.label) {
566
+ case 0:
567
+ localVarPath = "/tenantservice/v1/users/invites";
568
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
569
+ if (configuration) {
570
+ baseOptions = configuration.baseOptions;
571
+ baseAccessToken = configuration.accessToken;
572
+ }
573
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
574
+ localVarHeaderParameter = {};
575
+ localVarQueryParameter = {};
576
+ // authentication bearer required
577
+ // http bearer authentication required
578
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
579
+ case 1:
580
+ // authentication bearer required
581
+ // http bearer authentication required
582
+ _a.sent();
583
+ if (pageSize !== undefined) {
584
+ localVarQueryParameter['pageSize'] = pageSize;
585
+ }
586
+ if (pageToken !== undefined) {
587
+ localVarQueryParameter['pageToken'] = pageToken;
588
+ }
589
+ if (filter !== undefined) {
590
+ localVarQueryParameter['filter'] = filter;
591
+ }
592
+ if (search !== undefined) {
593
+ localVarQueryParameter['search'] = search;
594
+ }
595
+ if (order !== undefined) {
596
+ localVarQueryParameter['order'] = order;
597
+ }
598
+ if (expand !== undefined) {
599
+ localVarQueryParameter['expand'] = expand;
600
+ }
601
+ if (filters !== undefined) {
602
+ localVarQueryParameter['filters'] = filters;
603
+ }
604
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
605
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
606
+ }
607
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
608
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
609
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
610
+ return [2 /*return*/, {
611
+ url: (0, common_1.toPathString)(localVarUrlObj),
612
+ options: localVarRequestOptions,
613
+ }];
614
+ }
615
+ });
616
+ });
617
+ },
618
+ /**
619
+ * Returns a list of users you have previously created. The users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"tenant-management.users.view\"
620
+ * @summary List users
621
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
622
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
623
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
624
+ * @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;
625
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
626
+ * @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: id, email, firstName, lastName&lt;/i&gt;
627
+ * @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;
628
+ * @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;
629
+ * @param {*} [options] Override http request option.
630
+ * @throws {RequiredError}
631
+ */
632
+ listUsers: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
633
+ if (options === void 0) { options = {}; }
634
+ return __awaiter(_this, void 0, void 0, function () {
635
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
636
+ return __generator(this, function (_a) {
637
+ switch (_a.label) {
638
+ case 0:
639
+ localVarPath = "/tenantservice/v1/users";
640
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
641
+ if (configuration) {
642
+ baseOptions = configuration.baseOptions;
643
+ baseAccessToken = configuration.accessToken;
644
+ }
645
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
646
+ localVarHeaderParameter = {};
647
+ localVarQueryParameter = {};
648
+ // authentication bearer required
649
+ // http bearer authentication required
650
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
651
+ case 1:
652
+ // authentication bearer required
653
+ // http bearer authentication required
654
+ _a.sent();
655
+ if (pageSize !== undefined) {
656
+ localVarQueryParameter['pageSize'] = pageSize;
657
+ }
658
+ if (pageToken !== undefined) {
659
+ localVarQueryParameter['pageToken'] = pageToken;
660
+ }
661
+ if (filter !== undefined) {
662
+ localVarQueryParameter['filter'] = filter;
663
+ }
664
+ if (search !== undefined) {
665
+ localVarQueryParameter['search'] = search;
666
+ }
667
+ if (order !== undefined) {
668
+ localVarQueryParameter['order'] = order;
669
+ }
670
+ if (expand !== undefined) {
671
+ localVarQueryParameter['expand'] = expand;
672
+ }
673
+ if (filters !== undefined) {
674
+ localVarQueryParameter['filters'] = filters;
675
+ }
676
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
677
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
678
+ }
679
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
680
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
681
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
682
+ return [2 /*return*/, {
683
+ url: (0, common_1.toPathString)(localVarUrlObj),
684
+ options: localVarRequestOptions,
685
+ }];
686
+ }
687
+ });
688
+ });
689
+ },
690
+ };
691
+ };
692
+ exports.UserControllerRestApiAxiosParamCreator = UserControllerRestApiAxiosParamCreator;
693
+ /**
694
+ * UserControllerRestApi - functional programming interface
695
+ * @export
696
+ */
697
+ var UserControllerRestApiFp = function (configuration) {
698
+ var localVarAxiosParamCreator = (0, exports.UserControllerRestApiAxiosParamCreator)(configuration);
699
+ return {
700
+ /**
701
+ * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api. **Required Permissions** \"identity-management.roles.update\"
702
+ * @param {number} id
703
+ * @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
704
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
705
+ * @param {*} [options] Override http request option.
706
+ * @deprecated
707
+ * @throws {RequiredError}
708
+ */
709
+ assignUserRoles: function (id, assignUserRolesRequestDto, authorization, options) {
710
+ return __awaiter(this, void 0, void 0, function () {
711
+ var localVarAxiosArgs;
712
+ return __generator(this, function (_a) {
713
+ switch (_a.label) {
714
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.assignUserRoles(id, assignUserRolesRequestDto, authorization, options)];
715
+ case 1:
716
+ localVarAxiosArgs = _a.sent();
717
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
718
+ }
719
+ });
720
+ });
721
+ },
722
+ /**
723
+ * This will deletes the users who has been invited. Supply array of ids that were returned when users has been created and this will delete it. **Required Permissions** \"tenant-management.users.delete\"
724
+ * @summary Delete invited users.
725
+ * @param {BatchDeleteRequestDto} batchDeleteRequestDto
726
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
727
+ * @param {*} [options] Override http request option.
728
+ * @throws {RequiredError}
729
+ */
730
+ deleteInvites: function (batchDeleteRequestDto, authorization, options) {
731
+ return __awaiter(this, void 0, void 0, function () {
732
+ var localVarAxiosArgs;
733
+ return __generator(this, function (_a) {
734
+ switch (_a.label) {
735
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteInvites(batchDeleteRequestDto, authorization, options)];
736
+ case 1:
737
+ localVarAxiosArgs = _a.sent();
738
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
739
+ }
740
+ });
741
+ });
742
+ },
743
+ /**
744
+ * undefined **Required Permissions** \"tenant-management.users.delete\"
745
+ * @param {BatchDeleteRequestDto} batchDeleteRequestDto
746
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
747
+ * @param {*} [options] Override http request option.
748
+ * @throws {RequiredError}
749
+ */
750
+ deleteUsers: function (batchDeleteRequestDto, authorization, options) {
751
+ return __awaiter(this, void 0, void 0, function () {
752
+ var localVarAxiosArgs;
753
+ return __generator(this, function (_a) {
754
+ switch (_a.label) {
755
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteUsers(batchDeleteRequestDto, authorization, options)];
756
+ case 1:
757
+ localVarAxiosArgs = _a.sent();
758
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
759
+ }
760
+ });
761
+ });
762
+ },
763
+ /**
764
+ * undefined **Required Permissions** \"tenant-management.users.update\"
765
+ * @param {DisableUsersRequestDto} disableUsersRequestDto
766
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
767
+ * @param {*} [options] Override http request option.
768
+ * @throws {RequiredError}
769
+ */
770
+ disableUsers: function (disableUsersRequestDto, authorization, options) {
771
+ return __awaiter(this, void 0, void 0, function () {
772
+ var localVarAxiosArgs;
773
+ return __generator(this, function (_a) {
774
+ switch (_a.label) {
775
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.disableUsers(disableUsersRequestDto, authorization, options)];
776
+ case 1:
777
+ localVarAxiosArgs = _a.sent();
778
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
779
+ }
780
+ });
781
+ });
782
+ },
783
+ /**
784
+ * undefined **Required Permissions** \"tenant-management.users.update\"
785
+ * @param {EnableUsersRequestDto} enableUsersRequestDto
786
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
787
+ * @param {*} [options] Override http request option.
788
+ * @throws {RequiredError}
789
+ */
790
+ enableUsers: function (enableUsersRequestDto, authorization, options) {
791
+ return __awaiter(this, void 0, void 0, function () {
792
+ var localVarAxiosArgs;
793
+ return __generator(this, function (_a) {
794
+ switch (_a.label) {
795
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.enableUsers(enableUsersRequestDto, authorization, options)];
796
+ case 1:
797
+ localVarAxiosArgs = _a.sent();
798
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
799
+ }
800
+ });
801
+ });
802
+ },
803
+ /**
804
+ * undefined **Required Permissions** \"tenant-management.users.view\"
805
+ * @param {string} code
806
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
807
+ * @param {string} [expand] Fields to expand response by
808
+ * @param {*} [options] Override http request option.
809
+ * @throws {RequiredError}
810
+ */
811
+ getUser: function (code, authorization, expand, options) {
812
+ return __awaiter(this, void 0, void 0, function () {
813
+ var localVarAxiosArgs;
814
+ return __generator(this, function (_a) {
815
+ switch (_a.label) {
816
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getUser(code, authorization, expand, options)];
817
+ case 1:
818
+ localVarAxiosArgs = _a.sent();
819
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
820
+ }
821
+ });
822
+ });
823
+ },
824
+ /**
825
+ * This send an email to invite a user with the specific role/roles. **Required Permissions** \"tenant-management.users.create\"
826
+ * @summary Invite a user
827
+ * @param {InviteUserRequestDtoRest} inviteUserRequestDtoRest
828
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
829
+ * @param {*} [options] Override http request option.
830
+ * @throws {RequiredError}
831
+ */
832
+ inviteUser: function (inviteUserRequestDtoRest, authorization, options) {
833
+ return __awaiter(this, void 0, void 0, function () {
834
+ var localVarAxiosArgs;
835
+ return __generator(this, function (_a) {
836
+ switch (_a.label) {
837
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.inviteUser(inviteUserRequestDtoRest, authorization, options)];
838
+ case 1:
839
+ localVarAxiosArgs = _a.sent();
840
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
841
+ }
842
+ });
843
+ });
844
+ },
845
+ /**
846
+ * This send bulk emails to invite users with the specific role/roles. **Required Permissions** \"tenant-management.users.create\"
847
+ * @summary Invite batch of users
848
+ * @param {InviteUsersRequestDtoRest} inviteUsersRequestDtoRest
849
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
850
+ * @param {*} [options] Override http request option.
851
+ * @throws {RequiredError}
852
+ */
853
+ inviteUsers: function (inviteUsersRequestDtoRest, authorization, options) {
854
+ return __awaiter(this, void 0, void 0, function () {
855
+ var localVarAxiosArgs;
856
+ return __generator(this, function (_a) {
857
+ switch (_a.label) {
858
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.inviteUsers(inviteUsersRequestDtoRest, authorization, options)];
859
+ case 1:
860
+ localVarAxiosArgs = _a.sent();
861
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
862
+ }
863
+ });
864
+ });
865
+ },
866
+ /**
867
+ * undefined **Required Permissions** \"partner-management.partners.update\"
868
+ * @param {string} code Unique identifier for the object.
869
+ * @param {LinkUserWithPartnerRequestDtoRest} linkUserWithPartnerRequestDtoRest
870
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
871
+ * @param {*} [options] Override http request option.
872
+ * @throws {RequiredError}
873
+ */
874
+ linkUserWithPartner: function (code, linkUserWithPartnerRequestDtoRest, authorization, options) {
875
+ return __awaiter(this, void 0, void 0, function () {
876
+ var localVarAxiosArgs;
877
+ return __generator(this, function (_a) {
878
+ switch (_a.label) {
879
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.linkUserWithPartner(code, linkUserWithPartnerRequestDtoRest, authorization, options)];
880
+ case 1:
881
+ localVarAxiosArgs = _a.sent();
882
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
883
+ }
884
+ });
885
+ });
886
+ },
887
+ /**
888
+ * Returns a list of invited users you have previously created. The invited users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"tenant-management.users.view\"
889
+ * @summary List invited users
890
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
891
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
892
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
893
+ * @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, email, token, organizationId, ern, partnerCode&lt;/i&gt;
894
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
895
+ * @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: id, email, expiresOn&lt;/i&gt;
896
+ * @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: organizations&lt;i&gt;
897
+ * @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, email, token, organizationId, ern, partnerCode&lt;/i&gt;
898
+ * @param {*} [options] Override http request option.
899
+ * @throws {RequiredError}
900
+ */
901
+ listInvites: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
902
+ return __awaiter(this, void 0, void 0, function () {
903
+ var localVarAxiosArgs;
904
+ return __generator(this, function (_a) {
905
+ switch (_a.label) {
906
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listInvites(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
907
+ case 1:
908
+ localVarAxiosArgs = _a.sent();
909
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
910
+ }
911
+ });
912
+ });
913
+ },
914
+ /**
915
+ * Returns a list of users you have previously created. The users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"tenant-management.users.view\"
916
+ * @summary List users
917
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
918
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
919
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
920
+ * @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;
921
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
922
+ * @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: id, email, firstName, lastName&lt;/i&gt;
923
+ * @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;
924
+ * @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;
925
+ * @param {*} [options] Override http request option.
926
+ * @throws {RequiredError}
927
+ */
928
+ listUsers: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
929
+ return __awaiter(this, void 0, void 0, function () {
930
+ var localVarAxiosArgs;
931
+ return __generator(this, function (_a) {
932
+ switch (_a.label) {
933
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listUsers(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
934
+ case 1:
935
+ localVarAxiosArgs = _a.sent();
936
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
937
+ }
938
+ });
939
+ });
940
+ },
941
+ };
942
+ };
943
+ exports.UserControllerRestApiFp = UserControllerRestApiFp;
944
+ /**
945
+ * UserControllerRestApi - factory interface
946
+ * @export
947
+ */
948
+ var UserControllerRestApiFactory = function (configuration, basePath, axios) {
949
+ var localVarFp = (0, exports.UserControllerRestApiFp)(configuration);
950
+ return {
951
+ /**
952
+ * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api. **Required Permissions** \"identity-management.roles.update\"
953
+ * @param {number} id
954
+ * @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
955
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
956
+ * @param {*} [options] Override http request option.
957
+ * @deprecated
958
+ * @throws {RequiredError}
959
+ */
960
+ assignUserRoles: function (id, assignUserRolesRequestDto, authorization, options) {
961
+ return localVarFp.assignUserRoles(id, assignUserRolesRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
962
+ },
963
+ /**
964
+ * This will deletes the users who has been invited. Supply array of ids that were returned when users has been created and this will delete it. **Required Permissions** \"tenant-management.users.delete\"
965
+ * @summary Delete invited users.
966
+ * @param {BatchDeleteRequestDto} batchDeleteRequestDto
967
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
968
+ * @param {*} [options] Override http request option.
969
+ * @throws {RequiredError}
970
+ */
971
+ deleteInvites: function (batchDeleteRequestDto, authorization, options) {
972
+ return localVarFp.deleteInvites(batchDeleteRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
973
+ },
974
+ /**
975
+ * undefined **Required Permissions** \"tenant-management.users.delete\"
976
+ * @param {BatchDeleteRequestDto} batchDeleteRequestDto
977
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
978
+ * @param {*} [options] Override http request option.
979
+ * @throws {RequiredError}
980
+ */
981
+ deleteUsers: function (batchDeleteRequestDto, authorization, options) {
982
+ return localVarFp.deleteUsers(batchDeleteRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
983
+ },
984
+ /**
985
+ * undefined **Required Permissions** \"tenant-management.users.update\"
986
+ * @param {DisableUsersRequestDto} disableUsersRequestDto
987
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
988
+ * @param {*} [options] Override http request option.
989
+ * @throws {RequiredError}
990
+ */
991
+ disableUsers: function (disableUsersRequestDto, authorization, options) {
992
+ return localVarFp.disableUsers(disableUsersRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
993
+ },
994
+ /**
995
+ * undefined **Required Permissions** \"tenant-management.users.update\"
996
+ * @param {EnableUsersRequestDto} enableUsersRequestDto
997
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
998
+ * @param {*} [options] Override http request option.
999
+ * @throws {RequiredError}
1000
+ */
1001
+ enableUsers: function (enableUsersRequestDto, authorization, options) {
1002
+ return localVarFp.enableUsers(enableUsersRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1003
+ },
1004
+ /**
1005
+ * undefined **Required Permissions** \"tenant-management.users.view\"
1006
+ * @param {string} code
1007
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1008
+ * @param {string} [expand] Fields to expand response by
1009
+ * @param {*} [options] Override http request option.
1010
+ * @throws {RequiredError}
1011
+ */
1012
+ getUser: function (code, authorization, expand, options) {
1013
+ return localVarFp.getUser(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
1014
+ },
1015
+ /**
1016
+ * This send an email to invite a user with the specific role/roles. **Required Permissions** \"tenant-management.users.create\"
1017
+ * @summary Invite a user
1018
+ * @param {InviteUserRequestDtoRest} inviteUserRequestDtoRest
1019
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1020
+ * @param {*} [options] Override http request option.
1021
+ * @throws {RequiredError}
1022
+ */
1023
+ inviteUser: function (inviteUserRequestDtoRest, authorization, options) {
1024
+ return localVarFp.inviteUser(inviteUserRequestDtoRest, authorization, options).then(function (request) { return request(axios, basePath); });
1025
+ },
1026
+ /**
1027
+ * This send bulk emails to invite users with the specific role/roles. **Required Permissions** \"tenant-management.users.create\"
1028
+ * @summary Invite batch of users
1029
+ * @param {InviteUsersRequestDtoRest} inviteUsersRequestDtoRest
1030
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1031
+ * @param {*} [options] Override http request option.
1032
+ * @throws {RequiredError}
1033
+ */
1034
+ inviteUsers: function (inviteUsersRequestDtoRest, authorization, options) {
1035
+ return localVarFp.inviteUsers(inviteUsersRequestDtoRest, authorization, options).then(function (request) { return request(axios, basePath); });
1036
+ },
1037
+ /**
1038
+ * undefined **Required Permissions** \"partner-management.partners.update\"
1039
+ * @param {string} code Unique identifier for the object.
1040
+ * @param {LinkUserWithPartnerRequestDtoRest} linkUserWithPartnerRequestDtoRest
1041
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1042
+ * @param {*} [options] Override http request option.
1043
+ * @throws {RequiredError}
1044
+ */
1045
+ linkUserWithPartner: function (code, linkUserWithPartnerRequestDtoRest, authorization, options) {
1046
+ return localVarFp.linkUserWithPartner(code, linkUserWithPartnerRequestDtoRest, authorization, options).then(function (request) { return request(axios, basePath); });
1047
+ },
1048
+ /**
1049
+ * Returns a list of invited users you have previously created. The invited users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"tenant-management.users.view\"
1050
+ * @summary List invited users
1051
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1052
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1053
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
1054
+ * @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, email, token, organizationId, ern, partnerCode&lt;/i&gt;
1055
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
1056
+ * @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: id, email, expiresOn&lt;/i&gt;
1057
+ * @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: organizations&lt;i&gt;
1058
+ * @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, email, token, organizationId, ern, partnerCode&lt;/i&gt;
1059
+ * @param {*} [options] Override http request option.
1060
+ * @throws {RequiredError}
1061
+ */
1062
+ listInvites: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
1063
+ return localVarFp.listInvites(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
1064
+ },
1065
+ /**
1066
+ * Returns a list of users you have previously created. The users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"tenant-management.users.view\"
1067
+ * @summary List users
1068
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1069
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1070
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
1071
+ * @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;
1072
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
1073
+ * @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: id, email, firstName, lastName&lt;/i&gt;
1074
+ * @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;
1075
+ * @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;
1076
+ * @param {*} [options] Override http request option.
1077
+ * @throws {RequiredError}
1078
+ */
1079
+ listUsers: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
1080
+ return localVarFp.listUsers(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
1081
+ },
1082
+ };
1083
+ };
1084
+ exports.UserControllerRestApiFactory = UserControllerRestApiFactory;
1085
+ /**
1086
+ * UserControllerRestApi - object-oriented interface
1087
+ * @export
1088
+ * @class UserControllerRestApi
1089
+ * @extends {BaseAPI}
1090
+ */
1091
+ var UserControllerRestApi = /** @class */ (function (_super) {
1092
+ __extends(UserControllerRestApi, _super);
1093
+ function UserControllerRestApi() {
1094
+ return _super !== null && _super.apply(this, arguments) || this;
1095
+ }
1096
+ /**
1097
+ * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api. **Required Permissions** \"identity-management.roles.update\"
1098
+ * @param {UserControllerRestApiAssignUserRolesRequest} requestParameters Request parameters.
1099
+ * @param {*} [options] Override http request option.
1100
+ * @deprecated
1101
+ * @throws {RequiredError}
1102
+ * @memberof UserControllerRestApi
1103
+ */
1104
+ UserControllerRestApi.prototype.assignUserRoles = function (requestParameters, options) {
1105
+ var _this = this;
1106
+ return (0, exports.UserControllerRestApiFp)(this.configuration).assignUserRoles(requestParameters.id, requestParameters.assignUserRolesRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1107
+ };
1108
+ /**
1109
+ * This will deletes the users who has been invited. Supply array of ids that were returned when users has been created and this will delete it. **Required Permissions** \"tenant-management.users.delete\"
1110
+ * @summary Delete invited users.
1111
+ * @param {UserControllerRestApiDeleteInvitesRequest} requestParameters Request parameters.
1112
+ * @param {*} [options] Override http request option.
1113
+ * @throws {RequiredError}
1114
+ * @memberof UserControllerRestApi
1115
+ */
1116
+ UserControllerRestApi.prototype.deleteInvites = function (requestParameters, options) {
1117
+ var _this = this;
1118
+ return (0, exports.UserControllerRestApiFp)(this.configuration).deleteInvites(requestParameters.batchDeleteRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1119
+ };
1120
+ /**
1121
+ * undefined **Required Permissions** \"tenant-management.users.delete\"
1122
+ * @param {UserControllerRestApiDeleteUsersRequest} requestParameters Request parameters.
1123
+ * @param {*} [options] Override http request option.
1124
+ * @throws {RequiredError}
1125
+ * @memberof UserControllerRestApi
1126
+ */
1127
+ UserControllerRestApi.prototype.deleteUsers = function (requestParameters, options) {
1128
+ var _this = this;
1129
+ return (0, exports.UserControllerRestApiFp)(this.configuration).deleteUsers(requestParameters.batchDeleteRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1130
+ };
1131
+ /**
1132
+ * undefined **Required Permissions** \"tenant-management.users.update\"
1133
+ * @param {UserControllerRestApiDisableUsersRequest} requestParameters Request parameters.
1134
+ * @param {*} [options] Override http request option.
1135
+ * @throws {RequiredError}
1136
+ * @memberof UserControllerRestApi
1137
+ */
1138
+ UserControllerRestApi.prototype.disableUsers = function (requestParameters, options) {
1139
+ var _this = this;
1140
+ return (0, exports.UserControllerRestApiFp)(this.configuration).disableUsers(requestParameters.disableUsersRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1141
+ };
1142
+ /**
1143
+ * undefined **Required Permissions** \"tenant-management.users.update\"
1144
+ * @param {UserControllerRestApiEnableUsersRequest} requestParameters Request parameters.
1145
+ * @param {*} [options] Override http request option.
1146
+ * @throws {RequiredError}
1147
+ * @memberof UserControllerRestApi
1148
+ */
1149
+ UserControllerRestApi.prototype.enableUsers = function (requestParameters, options) {
1150
+ var _this = this;
1151
+ return (0, exports.UserControllerRestApiFp)(this.configuration).enableUsers(requestParameters.enableUsersRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1152
+ };
1153
+ /**
1154
+ * undefined **Required Permissions** \"tenant-management.users.view\"
1155
+ * @param {UserControllerRestApiGetUserRequest} requestParameters Request parameters.
1156
+ * @param {*} [options] Override http request option.
1157
+ * @throws {RequiredError}
1158
+ * @memberof UserControllerRestApi
1159
+ */
1160
+ UserControllerRestApi.prototype.getUser = function (requestParameters, options) {
1161
+ var _this = this;
1162
+ return (0, exports.UserControllerRestApiFp)(this.configuration).getUser(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
1163
+ };
1164
+ /**
1165
+ * This send an email to invite a user with the specific role/roles. **Required Permissions** \"tenant-management.users.create\"
1166
+ * @summary Invite a user
1167
+ * @param {UserControllerRestApiInviteUserRequest} requestParameters Request parameters.
1168
+ * @param {*} [options] Override http request option.
1169
+ * @throws {RequiredError}
1170
+ * @memberof UserControllerRestApi
1171
+ */
1172
+ UserControllerRestApi.prototype.inviteUser = function (requestParameters, options) {
1173
+ var _this = this;
1174
+ return (0, exports.UserControllerRestApiFp)(this.configuration).inviteUser(requestParameters.inviteUserRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1175
+ };
1176
+ /**
1177
+ * This send bulk emails to invite users with the specific role/roles. **Required Permissions** \"tenant-management.users.create\"
1178
+ * @summary Invite batch of users
1179
+ * @param {UserControllerRestApiInviteUsersRequest} requestParameters Request parameters.
1180
+ * @param {*} [options] Override http request option.
1181
+ * @throws {RequiredError}
1182
+ * @memberof UserControllerRestApi
1183
+ */
1184
+ UserControllerRestApi.prototype.inviteUsers = function (requestParameters, options) {
1185
+ var _this = this;
1186
+ return (0, exports.UserControllerRestApiFp)(this.configuration).inviteUsers(requestParameters.inviteUsersRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1187
+ };
1188
+ /**
1189
+ * undefined **Required Permissions** \"partner-management.partners.update\"
1190
+ * @param {UserControllerRestApiLinkUserWithPartnerRequest} requestParameters Request parameters.
1191
+ * @param {*} [options] Override http request option.
1192
+ * @throws {RequiredError}
1193
+ * @memberof UserControllerRestApi
1194
+ */
1195
+ UserControllerRestApi.prototype.linkUserWithPartner = function (requestParameters, options) {
1196
+ var _this = this;
1197
+ return (0, exports.UserControllerRestApiFp)(this.configuration).linkUserWithPartner(requestParameters.code, requestParameters.linkUserWithPartnerRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1198
+ };
1199
+ /**
1200
+ * Returns a list of invited users you have previously created. The invited users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"tenant-management.users.view\"
1201
+ * @summary List invited users
1202
+ * @param {UserControllerRestApiListInvitesRequest} requestParameters Request parameters.
1203
+ * @param {*} [options] Override http request option.
1204
+ * @throws {RequiredError}
1205
+ * @memberof UserControllerRestApi
1206
+ */
1207
+ UserControllerRestApi.prototype.listInvites = function (requestParameters, options) {
1208
+ var _this = this;
1209
+ if (requestParameters === void 0) { requestParameters = {}; }
1210
+ return (0, exports.UserControllerRestApiFp)(this.configuration).listInvites(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
1211
+ };
1212
+ /**
1213
+ * Returns a list of users you have previously created. The users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"tenant-management.users.view\"
1214
+ * @summary List users
1215
+ * @param {UserControllerRestApiListUsersRequest} requestParameters Request parameters.
1216
+ * @param {*} [options] Override http request option.
1217
+ * @throws {RequiredError}
1218
+ * @memberof UserControllerRestApi
1219
+ */
1220
+ UserControllerRestApi.prototype.listUsers = function (requestParameters, options) {
1221
+ var _this = this;
1222
+ if (requestParameters === void 0) { requestParameters = {}; }
1223
+ return (0, exports.UserControllerRestApiFp)(this.configuration).listUsers(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
1224
+ };
1225
+ return UserControllerRestApi;
1226
+ }(base_1.BaseAPI));
1227
+ exports.UserControllerRestApi = UserControllerRestApi;