@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,1413 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL Tenant Service
5
+ * The EMIL TenantService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { AssignUserRolesRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { AssignUserRolesResponseClass } from '../models';
27
+ // @ts-ignore
28
+ import { BatchDeleteRequestDto } from '../models';
29
+ // @ts-ignore
30
+ import { BatchDeleteResponseClass } from '../models';
31
+ // @ts-ignore
32
+ import { DisableUsersRequestDto } from '../models';
33
+ // @ts-ignore
34
+ import { DisableUsersResponseClass } from '../models';
35
+ // @ts-ignore
36
+ import { EnableUsersRequestDto } from '../models';
37
+ // @ts-ignore
38
+ import { EnableUsersResponseClass } from '../models';
39
+ // @ts-ignore
40
+ import { GetUserResponseClass } from '../models';
41
+ // @ts-ignore
42
+ import { InviteUserRequestDtoRest } from '../models';
43
+ // @ts-ignore
44
+ import { InviteUserResponseClass } from '../models';
45
+ // @ts-ignore
46
+ import { InviteUsersRequestDtoRest } from '../models';
47
+ // @ts-ignore
48
+ import { InviteUsersResponseClass } from '../models';
49
+ // @ts-ignore
50
+ import { LinkUserWithPartnerRequestDtoRest } from '../models';
51
+ // @ts-ignore
52
+ import { LinkUserWithPartnerResponseClass } from '../models';
53
+ // @ts-ignore
54
+ import { ListInvitesResponseClass } from '../models';
55
+ // @ts-ignore
56
+ import { ListUsersResponseClass } from '../models';
57
+ // URLSearchParams not necessarily used
58
+ // @ts-ignore
59
+ import { URL, URLSearchParams } from 'url';
60
+ const FormData = require('form-data');
61
+ /**
62
+ * UserControllerRestApi - axios parameter creator
63
+ * @export
64
+ */
65
+ export const UserControllerRestApiAxiosParamCreator = function (configuration?: Configuration) {
66
+ return {
67
+ /**
68
+ * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api. **Required Permissions** \"identity-management.roles.update\"
69
+ * @param {number} id
70
+ * @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
71
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
72
+ * @param {*} [options] Override http request option.
73
+ * @deprecated
74
+ * @throws {RequiredError}
75
+ */
76
+ assignUserRoles: async (id: number, assignUserRolesRequestDto: AssignUserRolesRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
77
+ // verify required parameter 'id' is not null or undefined
78
+ assertParamExists('assignUserRoles', 'id', id)
79
+ // verify required parameter 'assignUserRolesRequestDto' is not null or undefined
80
+ assertParamExists('assignUserRoles', 'assignUserRolesRequestDto', assignUserRolesRequestDto)
81
+ const localVarPath = `/tenantservice/v1/users/{id}/assign-roles`
82
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
83
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
84
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
85
+ let baseOptions;
86
+ let baseAccessToken;
87
+ if (configuration) {
88
+ baseOptions = configuration.baseOptions;
89
+ baseAccessToken = configuration.accessToken;
90
+ }
91
+
92
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
93
+ const localVarHeaderParameter = {} as any;
94
+ const localVarQueryParameter = {} as any;
95
+
96
+ // authentication bearer required
97
+ // http bearer authentication required
98
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
99
+
100
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
101
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
102
+ }
103
+
104
+
105
+
106
+ localVarHeaderParameter['Content-Type'] = 'application/json';
107
+
108
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
109
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
110
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
111
+ localVarRequestOptions.data = serializeDataIfNeeded(assignUserRolesRequestDto, localVarRequestOptions, configuration)
112
+
113
+ return {
114
+ url: toPathString(localVarUrlObj),
115
+ options: localVarRequestOptions,
116
+ };
117
+ },
118
+ /**
119
+ * 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\"
120
+ * @summary Delete invited users.
121
+ * @param {BatchDeleteRequestDto} batchDeleteRequestDto
122
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
123
+ * @param {*} [options] Override http request option.
124
+ * @throws {RequiredError}
125
+ */
126
+ deleteInvites: async (batchDeleteRequestDto: BatchDeleteRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
127
+ // verify required parameter 'batchDeleteRequestDto' is not null or undefined
128
+ assertParamExists('deleteInvites', 'batchDeleteRequestDto', batchDeleteRequestDto)
129
+ const localVarPath = `/tenantservice/v1/users/invites/delete-batch`;
130
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
131
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
132
+ let baseOptions;
133
+ let baseAccessToken;
134
+ if (configuration) {
135
+ baseOptions = configuration.baseOptions;
136
+ baseAccessToken = configuration.accessToken;
137
+ }
138
+
139
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
140
+ const localVarHeaderParameter = {} as any;
141
+ const localVarQueryParameter = {} as any;
142
+
143
+ // authentication bearer required
144
+ // http bearer authentication required
145
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
146
+
147
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
148
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
149
+ }
150
+
151
+
152
+
153
+ localVarHeaderParameter['Content-Type'] = 'application/json';
154
+
155
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
156
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
157
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
158
+ localVarRequestOptions.data = serializeDataIfNeeded(batchDeleteRequestDto, localVarRequestOptions, configuration)
159
+
160
+ return {
161
+ url: toPathString(localVarUrlObj),
162
+ options: localVarRequestOptions,
163
+ };
164
+ },
165
+ /**
166
+ * undefined **Required Permissions** \"tenant-management.users.delete\"
167
+ * @param {BatchDeleteRequestDto} batchDeleteRequestDto
168
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
169
+ * @param {*} [options] Override http request option.
170
+ * @throws {RequiredError}
171
+ */
172
+ deleteUsers: async (batchDeleteRequestDto: BatchDeleteRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
173
+ // verify required parameter 'batchDeleteRequestDto' is not null or undefined
174
+ assertParamExists('deleteUsers', 'batchDeleteRequestDto', batchDeleteRequestDto)
175
+ const localVarPath = `/tenantservice/v1/users/delete-batch`;
176
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
177
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
178
+ let baseOptions;
179
+ let baseAccessToken;
180
+ if (configuration) {
181
+ baseOptions = configuration.baseOptions;
182
+ baseAccessToken = configuration.accessToken;
183
+ }
184
+
185
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
186
+ const localVarHeaderParameter = {} as any;
187
+ const localVarQueryParameter = {} as any;
188
+
189
+ // authentication bearer required
190
+ // http bearer authentication required
191
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
192
+
193
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
194
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
195
+ }
196
+
197
+
198
+
199
+ localVarHeaderParameter['Content-Type'] = 'application/json';
200
+
201
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
202
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
203
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
204
+ localVarRequestOptions.data = serializeDataIfNeeded(batchDeleteRequestDto, localVarRequestOptions, configuration)
205
+
206
+ return {
207
+ url: toPathString(localVarUrlObj),
208
+ options: localVarRequestOptions,
209
+ };
210
+ },
211
+ /**
212
+ * undefined **Required Permissions** \"tenant-management.users.update\"
213
+ * @param {DisableUsersRequestDto} disableUsersRequestDto
214
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
215
+ * @param {*} [options] Override http request option.
216
+ * @throws {RequiredError}
217
+ */
218
+ disableUsers: async (disableUsersRequestDto: DisableUsersRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
219
+ // verify required parameter 'disableUsersRequestDto' is not null or undefined
220
+ assertParamExists('disableUsers', 'disableUsersRequestDto', disableUsersRequestDto)
221
+ const localVarPath = `/tenantservice/v1/users/disable-batch`;
222
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
223
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
224
+ let baseOptions;
225
+ let baseAccessToken;
226
+ if (configuration) {
227
+ baseOptions = configuration.baseOptions;
228
+ baseAccessToken = configuration.accessToken;
229
+ }
230
+
231
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
232
+ const localVarHeaderParameter = {} as any;
233
+ const localVarQueryParameter = {} as any;
234
+
235
+ // authentication bearer required
236
+ // http bearer authentication required
237
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
238
+
239
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
240
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
241
+ }
242
+
243
+
244
+
245
+ localVarHeaderParameter['Content-Type'] = 'application/json';
246
+
247
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
248
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
249
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
250
+ localVarRequestOptions.data = serializeDataIfNeeded(disableUsersRequestDto, localVarRequestOptions, configuration)
251
+
252
+ return {
253
+ url: toPathString(localVarUrlObj),
254
+ options: localVarRequestOptions,
255
+ };
256
+ },
257
+ /**
258
+ * undefined **Required Permissions** \"tenant-management.users.update\"
259
+ * @param {EnableUsersRequestDto} enableUsersRequestDto
260
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
261
+ * @param {*} [options] Override http request option.
262
+ * @throws {RequiredError}
263
+ */
264
+ enableUsers: async (enableUsersRequestDto: EnableUsersRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
265
+ // verify required parameter 'enableUsersRequestDto' is not null or undefined
266
+ assertParamExists('enableUsers', 'enableUsersRequestDto', enableUsersRequestDto)
267
+ const localVarPath = `/tenantservice/v1/users/enable-batch`;
268
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
269
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
270
+ let baseOptions;
271
+ let baseAccessToken;
272
+ if (configuration) {
273
+ baseOptions = configuration.baseOptions;
274
+ baseAccessToken = configuration.accessToken;
275
+ }
276
+
277
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
278
+ const localVarHeaderParameter = {} as any;
279
+ const localVarQueryParameter = {} as any;
280
+
281
+ // authentication bearer required
282
+ // http bearer authentication required
283
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
284
+
285
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
286
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
287
+ }
288
+
289
+
290
+
291
+ localVarHeaderParameter['Content-Type'] = 'application/json';
292
+
293
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
294
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
295
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
296
+ localVarRequestOptions.data = serializeDataIfNeeded(enableUsersRequestDto, localVarRequestOptions, configuration)
297
+
298
+ return {
299
+ url: toPathString(localVarUrlObj),
300
+ options: localVarRequestOptions,
301
+ };
302
+ },
303
+ /**
304
+ * undefined **Required Permissions** \"tenant-management.users.view\"
305
+ * @param {string} code
306
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
307
+ * @param {string} [expand] Fields to expand response by
308
+ * @param {*} [options] Override http request option.
309
+ * @throws {RequiredError}
310
+ */
311
+ getUser: async (code: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
312
+ // verify required parameter 'code' is not null or undefined
313
+ assertParamExists('getUser', 'code', code)
314
+ const localVarPath = `/tenantservice/v1/users/{code}`
315
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
316
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
317
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
318
+ let baseOptions;
319
+ let baseAccessToken;
320
+ if (configuration) {
321
+ baseOptions = configuration.baseOptions;
322
+ baseAccessToken = configuration.accessToken;
323
+ }
324
+
325
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
326
+ const localVarHeaderParameter = {} as any;
327
+ const localVarQueryParameter = {} as any;
328
+
329
+ // authentication bearer required
330
+ // http bearer authentication required
331
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
332
+
333
+ if (expand !== undefined) {
334
+ localVarQueryParameter['expand'] = expand;
335
+ }
336
+
337
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
338
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
339
+ }
340
+
341
+
342
+
343
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
344
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
345
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
346
+
347
+ return {
348
+ url: toPathString(localVarUrlObj),
349
+ options: localVarRequestOptions,
350
+ };
351
+ },
352
+ /**
353
+ * This send an email to invite a user with the specific role/roles. **Required Permissions** \"tenant-management.users.create\"
354
+ * @summary Invite a user
355
+ * @param {InviteUserRequestDtoRest} inviteUserRequestDtoRest
356
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
357
+ * @param {*} [options] Override http request option.
358
+ * @throws {RequiredError}
359
+ */
360
+ inviteUser: async (inviteUserRequestDtoRest: InviteUserRequestDtoRest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
361
+ // verify required parameter 'inviteUserRequestDtoRest' is not null or undefined
362
+ assertParamExists('inviteUser', 'inviteUserRequestDtoRest', inviteUserRequestDtoRest)
363
+ const localVarPath = `/tenantservice/v1/users/invites`;
364
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
365
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
366
+ let baseOptions;
367
+ let baseAccessToken;
368
+ if (configuration) {
369
+ baseOptions = configuration.baseOptions;
370
+ baseAccessToken = configuration.accessToken;
371
+ }
372
+
373
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
374
+ const localVarHeaderParameter = {} as any;
375
+ const localVarQueryParameter = {} as any;
376
+
377
+ // authentication bearer required
378
+ // http bearer authentication required
379
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
380
+
381
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
382
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
383
+ }
384
+
385
+
386
+
387
+ localVarHeaderParameter['Content-Type'] = 'application/json';
388
+
389
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
390
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
391
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
392
+ localVarRequestOptions.data = serializeDataIfNeeded(inviteUserRequestDtoRest, localVarRequestOptions, configuration)
393
+
394
+ return {
395
+ url: toPathString(localVarUrlObj),
396
+ options: localVarRequestOptions,
397
+ };
398
+ },
399
+ /**
400
+ * This send bulk emails to invite users with the specific role/roles. **Required Permissions** \"tenant-management.users.create\"
401
+ * @summary Invite batch of users
402
+ * @param {InviteUsersRequestDtoRest} inviteUsersRequestDtoRest
403
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
404
+ * @param {*} [options] Override http request option.
405
+ * @throws {RequiredError}
406
+ */
407
+ inviteUsers: async (inviteUsersRequestDtoRest: InviteUsersRequestDtoRest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
408
+ // verify required parameter 'inviteUsersRequestDtoRest' is not null or undefined
409
+ assertParamExists('inviteUsers', 'inviteUsersRequestDtoRest', inviteUsersRequestDtoRest)
410
+ const localVarPath = `/tenantservice/v1/users/invites/batch`;
411
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
412
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
413
+ let baseOptions;
414
+ let baseAccessToken;
415
+ if (configuration) {
416
+ baseOptions = configuration.baseOptions;
417
+ baseAccessToken = configuration.accessToken;
418
+ }
419
+
420
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
421
+ const localVarHeaderParameter = {} as any;
422
+ const localVarQueryParameter = {} as any;
423
+
424
+ // authentication bearer required
425
+ // http bearer authentication required
426
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
427
+
428
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
429
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
430
+ }
431
+
432
+
433
+
434
+ localVarHeaderParameter['Content-Type'] = 'application/json';
435
+
436
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
437
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
438
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
439
+ localVarRequestOptions.data = serializeDataIfNeeded(inviteUsersRequestDtoRest, localVarRequestOptions, configuration)
440
+
441
+ return {
442
+ url: toPathString(localVarUrlObj),
443
+ options: localVarRequestOptions,
444
+ };
445
+ },
446
+ /**
447
+ * undefined **Required Permissions** \"partner-management.partners.update\"
448
+ * @param {string} code Unique identifier for the object.
449
+ * @param {LinkUserWithPartnerRequestDtoRest} linkUserWithPartnerRequestDtoRest
450
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
451
+ * @param {*} [options] Override http request option.
452
+ * @throws {RequiredError}
453
+ */
454
+ linkUserWithPartner: async (code: string, linkUserWithPartnerRequestDtoRest: LinkUserWithPartnerRequestDtoRest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
455
+ // verify required parameter 'code' is not null or undefined
456
+ assertParamExists('linkUserWithPartner', 'code', code)
457
+ // verify required parameter 'linkUserWithPartnerRequestDtoRest' is not null or undefined
458
+ assertParamExists('linkUserWithPartner', 'linkUserWithPartnerRequestDtoRest', linkUserWithPartnerRequestDtoRest)
459
+ const localVarPath = `/tenantservice/v1/users/{code}/link-partner`
460
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
461
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
462
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
463
+ let baseOptions;
464
+ let baseAccessToken;
465
+ if (configuration) {
466
+ baseOptions = configuration.baseOptions;
467
+ baseAccessToken = configuration.accessToken;
468
+ }
469
+
470
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
471
+ const localVarHeaderParameter = {} as any;
472
+ const localVarQueryParameter = {} as any;
473
+
474
+ // authentication bearer required
475
+ // http bearer authentication required
476
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
477
+
478
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
479
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
480
+ }
481
+
482
+
483
+
484
+ localVarHeaderParameter['Content-Type'] = 'application/json';
485
+
486
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
487
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
488
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
489
+ localVarRequestOptions.data = serializeDataIfNeeded(linkUserWithPartnerRequestDtoRest, localVarRequestOptions, configuration)
490
+
491
+ return {
492
+ url: toPathString(localVarUrlObj),
493
+ options: localVarRequestOptions,
494
+ };
495
+ },
496
+ /**
497
+ * 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\"
498
+ * @summary List invited users
499
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
500
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
501
+ * @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.
502
+ * @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;
503
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
504
+ * @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;
505
+ * @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;
506
+ * @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;
507
+ * @param {*} [options] Override http request option.
508
+ * @throws {RequiredError}
509
+ */
510
+ listInvites: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
511
+ const localVarPath = `/tenantservice/v1/users/invites`;
512
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
513
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
514
+ let baseOptions;
515
+ let baseAccessToken;
516
+ if (configuration) {
517
+ baseOptions = configuration.baseOptions;
518
+ baseAccessToken = configuration.accessToken;
519
+ }
520
+
521
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
522
+ const localVarHeaderParameter = {} as any;
523
+ const localVarQueryParameter = {} as any;
524
+
525
+ // authentication bearer required
526
+ // http bearer authentication required
527
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
528
+
529
+ if (pageSize !== undefined) {
530
+ localVarQueryParameter['pageSize'] = pageSize;
531
+ }
532
+
533
+ if (pageToken !== undefined) {
534
+ localVarQueryParameter['pageToken'] = pageToken;
535
+ }
536
+
537
+ if (filter !== undefined) {
538
+ localVarQueryParameter['filter'] = filter;
539
+ }
540
+
541
+ if (search !== undefined) {
542
+ localVarQueryParameter['search'] = search;
543
+ }
544
+
545
+ if (order !== undefined) {
546
+ localVarQueryParameter['order'] = order;
547
+ }
548
+
549
+ if (expand !== undefined) {
550
+ localVarQueryParameter['expand'] = expand;
551
+ }
552
+
553
+ if (filters !== undefined) {
554
+ localVarQueryParameter['filters'] = filters;
555
+ }
556
+
557
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
558
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
559
+ }
560
+
561
+
562
+
563
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
564
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
565
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
566
+
567
+ return {
568
+ url: toPathString(localVarUrlObj),
569
+ options: localVarRequestOptions,
570
+ };
571
+ },
572
+ /**
573
+ * 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\"
574
+ * @summary List users
575
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
576
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
577
+ * @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.
578
+ * @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;
579
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
580
+ * @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;
581
+ * @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;
582
+ * @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;
583
+ * @param {*} [options] Override http request option.
584
+ * @throws {RequiredError}
585
+ */
586
+ listUsers: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
587
+ const localVarPath = `/tenantservice/v1/users`;
588
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
589
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
590
+ let baseOptions;
591
+ let baseAccessToken;
592
+ if (configuration) {
593
+ baseOptions = configuration.baseOptions;
594
+ baseAccessToken = configuration.accessToken;
595
+ }
596
+
597
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
598
+ const localVarHeaderParameter = {} as any;
599
+ const localVarQueryParameter = {} as any;
600
+
601
+ // authentication bearer required
602
+ // http bearer authentication required
603
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
604
+
605
+ if (pageSize !== undefined) {
606
+ localVarQueryParameter['pageSize'] = pageSize;
607
+ }
608
+
609
+ if (pageToken !== undefined) {
610
+ localVarQueryParameter['pageToken'] = pageToken;
611
+ }
612
+
613
+ if (filter !== undefined) {
614
+ localVarQueryParameter['filter'] = filter;
615
+ }
616
+
617
+ if (search !== undefined) {
618
+ localVarQueryParameter['search'] = search;
619
+ }
620
+
621
+ if (order !== undefined) {
622
+ localVarQueryParameter['order'] = order;
623
+ }
624
+
625
+ if (expand !== undefined) {
626
+ localVarQueryParameter['expand'] = expand;
627
+ }
628
+
629
+ if (filters !== undefined) {
630
+ localVarQueryParameter['filters'] = filters;
631
+ }
632
+
633
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
634
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
635
+ }
636
+
637
+
638
+
639
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
640
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
641
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
642
+
643
+ return {
644
+ url: toPathString(localVarUrlObj),
645
+ options: localVarRequestOptions,
646
+ };
647
+ },
648
+ }
649
+ };
650
+
651
+ /**
652
+ * UserControllerRestApi - functional programming interface
653
+ * @export
654
+ */
655
+ export const UserControllerRestApiFp = function(configuration?: Configuration) {
656
+ const localVarAxiosParamCreator = UserControllerRestApiAxiosParamCreator(configuration)
657
+ return {
658
+ /**
659
+ * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api. **Required Permissions** \"identity-management.roles.update\"
660
+ * @param {number} id
661
+ * @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
662
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
663
+ * @param {*} [options] Override http request option.
664
+ * @deprecated
665
+ * @throws {RequiredError}
666
+ */
667
+ async assignUserRoles(id: number, assignUserRolesRequestDto: AssignUserRolesRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssignUserRolesResponseClass>> {
668
+ const localVarAxiosArgs = await localVarAxiosParamCreator.assignUserRoles(id, assignUserRolesRequestDto, authorization, options);
669
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
670
+ },
671
+ /**
672
+ * 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\"
673
+ * @summary Delete invited users.
674
+ * @param {BatchDeleteRequestDto} batchDeleteRequestDto
675
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
676
+ * @param {*} [options] Override http request option.
677
+ * @throws {RequiredError}
678
+ */
679
+ async deleteInvites(batchDeleteRequestDto: BatchDeleteRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BatchDeleteResponseClass>> {
680
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteInvites(batchDeleteRequestDto, authorization, options);
681
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
682
+ },
683
+ /**
684
+ * undefined **Required Permissions** \"tenant-management.users.delete\"
685
+ * @param {BatchDeleteRequestDto} batchDeleteRequestDto
686
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
687
+ * @param {*} [options] Override http request option.
688
+ * @throws {RequiredError}
689
+ */
690
+ async deleteUsers(batchDeleteRequestDto: BatchDeleteRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BatchDeleteResponseClass>> {
691
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUsers(batchDeleteRequestDto, authorization, options);
692
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
693
+ },
694
+ /**
695
+ * undefined **Required Permissions** \"tenant-management.users.update\"
696
+ * @param {DisableUsersRequestDto} disableUsersRequestDto
697
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
698
+ * @param {*} [options] Override http request option.
699
+ * @throws {RequiredError}
700
+ */
701
+ async disableUsers(disableUsersRequestDto: DisableUsersRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DisableUsersResponseClass>> {
702
+ const localVarAxiosArgs = await localVarAxiosParamCreator.disableUsers(disableUsersRequestDto, authorization, options);
703
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
704
+ },
705
+ /**
706
+ * undefined **Required Permissions** \"tenant-management.users.update\"
707
+ * @param {EnableUsersRequestDto} enableUsersRequestDto
708
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
709
+ * @param {*} [options] Override http request option.
710
+ * @throws {RequiredError}
711
+ */
712
+ async enableUsers(enableUsersRequestDto: EnableUsersRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EnableUsersResponseClass>> {
713
+ const localVarAxiosArgs = await localVarAxiosParamCreator.enableUsers(enableUsersRequestDto, authorization, options);
714
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
715
+ },
716
+ /**
717
+ * undefined **Required Permissions** \"tenant-management.users.view\"
718
+ * @param {string} code
719
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
720
+ * @param {string} [expand] Fields to expand response by
721
+ * @param {*} [options] Override http request option.
722
+ * @throws {RequiredError}
723
+ */
724
+ async getUser(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetUserResponseClass>> {
725
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getUser(code, authorization, expand, options);
726
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
727
+ },
728
+ /**
729
+ * This send an email to invite a user with the specific role/roles. **Required Permissions** \"tenant-management.users.create\"
730
+ * @summary Invite a user
731
+ * @param {InviteUserRequestDtoRest} inviteUserRequestDtoRest
732
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
733
+ * @param {*} [options] Override http request option.
734
+ * @throws {RequiredError}
735
+ */
736
+ async inviteUser(inviteUserRequestDtoRest: InviteUserRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteUserResponseClass>> {
737
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inviteUser(inviteUserRequestDtoRest, authorization, options);
738
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
739
+ },
740
+ /**
741
+ * This send bulk emails to invite users with the specific role/roles. **Required Permissions** \"tenant-management.users.create\"
742
+ * @summary Invite batch of users
743
+ * @param {InviteUsersRequestDtoRest} inviteUsersRequestDtoRest
744
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
745
+ * @param {*} [options] Override http request option.
746
+ * @throws {RequiredError}
747
+ */
748
+ async inviteUsers(inviteUsersRequestDtoRest: InviteUsersRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteUsersResponseClass>> {
749
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inviteUsers(inviteUsersRequestDtoRest, authorization, options);
750
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
751
+ },
752
+ /**
753
+ * undefined **Required Permissions** \"partner-management.partners.update\"
754
+ * @param {string} code Unique identifier for the object.
755
+ * @param {LinkUserWithPartnerRequestDtoRest} linkUserWithPartnerRequestDtoRest
756
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
757
+ * @param {*} [options] Override http request option.
758
+ * @throws {RequiredError}
759
+ */
760
+ async linkUserWithPartner(code: string, linkUserWithPartnerRequestDtoRest: LinkUserWithPartnerRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LinkUserWithPartnerResponseClass>> {
761
+ const localVarAxiosArgs = await localVarAxiosParamCreator.linkUserWithPartner(code, linkUserWithPartnerRequestDtoRest, authorization, options);
762
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
763
+ },
764
+ /**
765
+ * 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\"
766
+ * @summary List invited users
767
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
768
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
769
+ * @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.
770
+ * @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;
771
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
772
+ * @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;
773
+ * @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;
774
+ * @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;
775
+ * @param {*} [options] Override http request option.
776
+ * @throws {RequiredError}
777
+ */
778
+ async listInvites(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListInvitesResponseClass>> {
779
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listInvites(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
780
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
781
+ },
782
+ /**
783
+ * 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\"
784
+ * @summary List users
785
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
786
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
787
+ * @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.
788
+ * @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;
789
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
790
+ * @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;
791
+ * @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;
792
+ * @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;
793
+ * @param {*} [options] Override http request option.
794
+ * @throws {RequiredError}
795
+ */
796
+ async listUsers(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListUsersResponseClass>> {
797
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listUsers(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
798
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
799
+ },
800
+ }
801
+ };
802
+
803
+ /**
804
+ * UserControllerRestApi - factory interface
805
+ * @export
806
+ */
807
+ export const UserControllerRestApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
808
+ const localVarFp = UserControllerRestApiFp(configuration)
809
+ return {
810
+ /**
811
+ * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api. **Required Permissions** \"identity-management.roles.update\"
812
+ * @param {number} id
813
+ * @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
814
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
815
+ * @param {*} [options] Override http request option.
816
+ * @deprecated
817
+ * @throws {RequiredError}
818
+ */
819
+ assignUserRoles(id: number, assignUserRolesRequestDto: AssignUserRolesRequestDto, authorization?: string, options?: any): AxiosPromise<AssignUserRolesResponseClass> {
820
+ return localVarFp.assignUserRoles(id, assignUserRolesRequestDto, authorization, options).then((request) => request(axios, basePath));
821
+ },
822
+ /**
823
+ * 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\"
824
+ * @summary Delete invited users.
825
+ * @param {BatchDeleteRequestDto} batchDeleteRequestDto
826
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
827
+ * @param {*} [options] Override http request option.
828
+ * @throws {RequiredError}
829
+ */
830
+ deleteInvites(batchDeleteRequestDto: BatchDeleteRequestDto, authorization?: string, options?: any): AxiosPromise<BatchDeleteResponseClass> {
831
+ return localVarFp.deleteInvites(batchDeleteRequestDto, authorization, options).then((request) => request(axios, basePath));
832
+ },
833
+ /**
834
+ * undefined **Required Permissions** \"tenant-management.users.delete\"
835
+ * @param {BatchDeleteRequestDto} batchDeleteRequestDto
836
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
837
+ * @param {*} [options] Override http request option.
838
+ * @throws {RequiredError}
839
+ */
840
+ deleteUsers(batchDeleteRequestDto: BatchDeleteRequestDto, authorization?: string, options?: any): AxiosPromise<BatchDeleteResponseClass> {
841
+ return localVarFp.deleteUsers(batchDeleteRequestDto, authorization, options).then((request) => request(axios, basePath));
842
+ },
843
+ /**
844
+ * undefined **Required Permissions** \"tenant-management.users.update\"
845
+ * @param {DisableUsersRequestDto} disableUsersRequestDto
846
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
847
+ * @param {*} [options] Override http request option.
848
+ * @throws {RequiredError}
849
+ */
850
+ disableUsers(disableUsersRequestDto: DisableUsersRequestDto, authorization?: string, options?: any): AxiosPromise<DisableUsersResponseClass> {
851
+ return localVarFp.disableUsers(disableUsersRequestDto, authorization, options).then((request) => request(axios, basePath));
852
+ },
853
+ /**
854
+ * undefined **Required Permissions** \"tenant-management.users.update\"
855
+ * @param {EnableUsersRequestDto} enableUsersRequestDto
856
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
857
+ * @param {*} [options] Override http request option.
858
+ * @throws {RequiredError}
859
+ */
860
+ enableUsers(enableUsersRequestDto: EnableUsersRequestDto, authorization?: string, options?: any): AxiosPromise<EnableUsersResponseClass> {
861
+ return localVarFp.enableUsers(enableUsersRequestDto, authorization, options).then((request) => request(axios, basePath));
862
+ },
863
+ /**
864
+ * undefined **Required Permissions** \"tenant-management.users.view\"
865
+ * @param {string} code
866
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
867
+ * @param {string} [expand] Fields to expand response by
868
+ * @param {*} [options] Override http request option.
869
+ * @throws {RequiredError}
870
+ */
871
+ getUser(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetUserResponseClass> {
872
+ return localVarFp.getUser(code, authorization, expand, options).then((request) => request(axios, basePath));
873
+ },
874
+ /**
875
+ * This send an email to invite a user with the specific role/roles. **Required Permissions** \"tenant-management.users.create\"
876
+ * @summary Invite a user
877
+ * @param {InviteUserRequestDtoRest} inviteUserRequestDtoRest
878
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
879
+ * @param {*} [options] Override http request option.
880
+ * @throws {RequiredError}
881
+ */
882
+ inviteUser(inviteUserRequestDtoRest: InviteUserRequestDtoRest, authorization?: string, options?: any): AxiosPromise<InviteUserResponseClass> {
883
+ return localVarFp.inviteUser(inviteUserRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
884
+ },
885
+ /**
886
+ * This send bulk emails to invite users with the specific role/roles. **Required Permissions** \"tenant-management.users.create\"
887
+ * @summary Invite batch of users
888
+ * @param {InviteUsersRequestDtoRest} inviteUsersRequestDtoRest
889
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
890
+ * @param {*} [options] Override http request option.
891
+ * @throws {RequiredError}
892
+ */
893
+ inviteUsers(inviteUsersRequestDtoRest: InviteUsersRequestDtoRest, authorization?: string, options?: any): AxiosPromise<InviteUsersResponseClass> {
894
+ return localVarFp.inviteUsers(inviteUsersRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
895
+ },
896
+ /**
897
+ * undefined **Required Permissions** \"partner-management.partners.update\"
898
+ * @param {string} code Unique identifier for the object.
899
+ * @param {LinkUserWithPartnerRequestDtoRest} linkUserWithPartnerRequestDtoRest
900
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
901
+ * @param {*} [options] Override http request option.
902
+ * @throws {RequiredError}
903
+ */
904
+ linkUserWithPartner(code: string, linkUserWithPartnerRequestDtoRest: LinkUserWithPartnerRequestDtoRest, authorization?: string, options?: any): AxiosPromise<LinkUserWithPartnerResponseClass> {
905
+ return localVarFp.linkUserWithPartner(code, linkUserWithPartnerRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
906
+ },
907
+ /**
908
+ * 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\"
909
+ * @summary List invited users
910
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
911
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
912
+ * @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.
913
+ * @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;
914
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
915
+ * @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;
916
+ * @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;
917
+ * @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;
918
+ * @param {*} [options] Override http request option.
919
+ * @throws {RequiredError}
920
+ */
921
+ listInvites(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListInvitesResponseClass> {
922
+ return localVarFp.listInvites(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
923
+ },
924
+ /**
925
+ * 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\"
926
+ * @summary List users
927
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
928
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
929
+ * @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.
930
+ * @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;
931
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
932
+ * @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;
933
+ * @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;
934
+ * @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;
935
+ * @param {*} [options] Override http request option.
936
+ * @throws {RequiredError}
937
+ */
938
+ listUsers(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListUsersResponseClass> {
939
+ return localVarFp.listUsers(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
940
+ },
941
+ };
942
+ };
943
+
944
+ /**
945
+ * Request parameters for assignUserRoles operation in UserControllerRestApi.
946
+ * @export
947
+ * @interface UserControllerRestApiAssignUserRolesRequest
948
+ */
949
+ export interface UserControllerRestApiAssignUserRolesRequest {
950
+ /**
951
+ *
952
+ * @type {number}
953
+ * @memberof UserControllerRestApiAssignUserRoles
954
+ */
955
+ readonly id: number
956
+
957
+ /**
958
+ *
959
+ * @type {AssignUserRolesRequestDto}
960
+ * @memberof UserControllerRestApiAssignUserRoles
961
+ */
962
+ readonly assignUserRolesRequestDto: AssignUserRolesRequestDto
963
+
964
+ /**
965
+ * Bearer Token: provided by the login endpoint under the name accessToken.
966
+ * @type {string}
967
+ * @memberof UserControllerRestApiAssignUserRoles
968
+ */
969
+ readonly authorization?: string
970
+ }
971
+
972
+ /**
973
+ * Request parameters for deleteInvites operation in UserControllerRestApi.
974
+ * @export
975
+ * @interface UserControllerRestApiDeleteInvitesRequest
976
+ */
977
+ export interface UserControllerRestApiDeleteInvitesRequest {
978
+ /**
979
+ *
980
+ * @type {BatchDeleteRequestDto}
981
+ * @memberof UserControllerRestApiDeleteInvites
982
+ */
983
+ readonly batchDeleteRequestDto: BatchDeleteRequestDto
984
+
985
+ /**
986
+ * Bearer Token: provided by the login endpoint under the name accessToken.
987
+ * @type {string}
988
+ * @memberof UserControllerRestApiDeleteInvites
989
+ */
990
+ readonly authorization?: string
991
+ }
992
+
993
+ /**
994
+ * Request parameters for deleteUsers operation in UserControllerRestApi.
995
+ * @export
996
+ * @interface UserControllerRestApiDeleteUsersRequest
997
+ */
998
+ export interface UserControllerRestApiDeleteUsersRequest {
999
+ /**
1000
+ *
1001
+ * @type {BatchDeleteRequestDto}
1002
+ * @memberof UserControllerRestApiDeleteUsers
1003
+ */
1004
+ readonly batchDeleteRequestDto: BatchDeleteRequestDto
1005
+
1006
+ /**
1007
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1008
+ * @type {string}
1009
+ * @memberof UserControllerRestApiDeleteUsers
1010
+ */
1011
+ readonly authorization?: string
1012
+ }
1013
+
1014
+ /**
1015
+ * Request parameters for disableUsers operation in UserControllerRestApi.
1016
+ * @export
1017
+ * @interface UserControllerRestApiDisableUsersRequest
1018
+ */
1019
+ export interface UserControllerRestApiDisableUsersRequest {
1020
+ /**
1021
+ *
1022
+ * @type {DisableUsersRequestDto}
1023
+ * @memberof UserControllerRestApiDisableUsers
1024
+ */
1025
+ readonly disableUsersRequestDto: DisableUsersRequestDto
1026
+
1027
+ /**
1028
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1029
+ * @type {string}
1030
+ * @memberof UserControllerRestApiDisableUsers
1031
+ */
1032
+ readonly authorization?: string
1033
+ }
1034
+
1035
+ /**
1036
+ * Request parameters for enableUsers operation in UserControllerRestApi.
1037
+ * @export
1038
+ * @interface UserControllerRestApiEnableUsersRequest
1039
+ */
1040
+ export interface UserControllerRestApiEnableUsersRequest {
1041
+ /**
1042
+ *
1043
+ * @type {EnableUsersRequestDto}
1044
+ * @memberof UserControllerRestApiEnableUsers
1045
+ */
1046
+ readonly enableUsersRequestDto: EnableUsersRequestDto
1047
+
1048
+ /**
1049
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1050
+ * @type {string}
1051
+ * @memberof UserControllerRestApiEnableUsers
1052
+ */
1053
+ readonly authorization?: string
1054
+ }
1055
+
1056
+ /**
1057
+ * Request parameters for getUser operation in UserControllerRestApi.
1058
+ * @export
1059
+ * @interface UserControllerRestApiGetUserRequest
1060
+ */
1061
+ export interface UserControllerRestApiGetUserRequest {
1062
+ /**
1063
+ *
1064
+ * @type {string}
1065
+ * @memberof UserControllerRestApiGetUser
1066
+ */
1067
+ readonly code: string
1068
+
1069
+ /**
1070
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1071
+ * @type {string}
1072
+ * @memberof UserControllerRestApiGetUser
1073
+ */
1074
+ readonly authorization?: string
1075
+
1076
+ /**
1077
+ * Fields to expand response by
1078
+ * @type {string}
1079
+ * @memberof UserControllerRestApiGetUser
1080
+ */
1081
+ readonly expand?: string
1082
+ }
1083
+
1084
+ /**
1085
+ * Request parameters for inviteUser operation in UserControllerRestApi.
1086
+ * @export
1087
+ * @interface UserControllerRestApiInviteUserRequest
1088
+ */
1089
+ export interface UserControllerRestApiInviteUserRequest {
1090
+ /**
1091
+ *
1092
+ * @type {InviteUserRequestDtoRest}
1093
+ * @memberof UserControllerRestApiInviteUser
1094
+ */
1095
+ readonly inviteUserRequestDtoRest: InviteUserRequestDtoRest
1096
+
1097
+ /**
1098
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1099
+ * @type {string}
1100
+ * @memberof UserControllerRestApiInviteUser
1101
+ */
1102
+ readonly authorization?: string
1103
+ }
1104
+
1105
+ /**
1106
+ * Request parameters for inviteUsers operation in UserControllerRestApi.
1107
+ * @export
1108
+ * @interface UserControllerRestApiInviteUsersRequest
1109
+ */
1110
+ export interface UserControllerRestApiInviteUsersRequest {
1111
+ /**
1112
+ *
1113
+ * @type {InviteUsersRequestDtoRest}
1114
+ * @memberof UserControllerRestApiInviteUsers
1115
+ */
1116
+ readonly inviteUsersRequestDtoRest: InviteUsersRequestDtoRest
1117
+
1118
+ /**
1119
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1120
+ * @type {string}
1121
+ * @memberof UserControllerRestApiInviteUsers
1122
+ */
1123
+ readonly authorization?: string
1124
+ }
1125
+
1126
+ /**
1127
+ * Request parameters for linkUserWithPartner operation in UserControllerRestApi.
1128
+ * @export
1129
+ * @interface UserControllerRestApiLinkUserWithPartnerRequest
1130
+ */
1131
+ export interface UserControllerRestApiLinkUserWithPartnerRequest {
1132
+ /**
1133
+ * Unique identifier for the object.
1134
+ * @type {string}
1135
+ * @memberof UserControllerRestApiLinkUserWithPartner
1136
+ */
1137
+ readonly code: string
1138
+
1139
+ /**
1140
+ *
1141
+ * @type {LinkUserWithPartnerRequestDtoRest}
1142
+ * @memberof UserControllerRestApiLinkUserWithPartner
1143
+ */
1144
+ readonly linkUserWithPartnerRequestDtoRest: LinkUserWithPartnerRequestDtoRest
1145
+
1146
+ /**
1147
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1148
+ * @type {string}
1149
+ * @memberof UserControllerRestApiLinkUserWithPartner
1150
+ */
1151
+ readonly authorization?: string
1152
+ }
1153
+
1154
+ /**
1155
+ * Request parameters for listInvites operation in UserControllerRestApi.
1156
+ * @export
1157
+ * @interface UserControllerRestApiListInvitesRequest
1158
+ */
1159
+ export interface UserControllerRestApiListInvitesRequest {
1160
+ /**
1161
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1162
+ * @type {string}
1163
+ * @memberof UserControllerRestApiListInvites
1164
+ */
1165
+ readonly authorization?: string
1166
+
1167
+ /**
1168
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1169
+ * @type {number}
1170
+ * @memberof UserControllerRestApiListInvites
1171
+ */
1172
+ readonly pageSize?: number
1173
+
1174
+ /**
1175
+ * 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.
1176
+ * @type {string}
1177
+ * @memberof UserControllerRestApiListInvites
1178
+ */
1179
+ readonly pageToken?: string
1180
+
1181
+ /**
1182
+ * 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;
1183
+ * @type {string}
1184
+ * @memberof UserControllerRestApiListInvites
1185
+ */
1186
+ readonly filter?: string
1187
+
1188
+ /**
1189
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
1190
+ * @type {string}
1191
+ * @memberof UserControllerRestApiListInvites
1192
+ */
1193
+ readonly search?: string
1194
+
1195
+ /**
1196
+ * 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;
1197
+ * @type {string}
1198
+ * @memberof UserControllerRestApiListInvites
1199
+ */
1200
+ readonly order?: string
1201
+
1202
+ /**
1203
+ * 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;
1204
+ * @type {string}
1205
+ * @memberof UserControllerRestApiListInvites
1206
+ */
1207
+ readonly expand?: string
1208
+
1209
+ /**
1210
+ * 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;
1211
+ * @type {string}
1212
+ * @memberof UserControllerRestApiListInvites
1213
+ */
1214
+ readonly filters?: string
1215
+ }
1216
+
1217
+ /**
1218
+ * Request parameters for listUsers operation in UserControllerRestApi.
1219
+ * @export
1220
+ * @interface UserControllerRestApiListUsersRequest
1221
+ */
1222
+ export interface UserControllerRestApiListUsersRequest {
1223
+ /**
1224
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1225
+ * @type {string}
1226
+ * @memberof UserControllerRestApiListUsers
1227
+ */
1228
+ readonly authorization?: string
1229
+
1230
+ /**
1231
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1232
+ * @type {number}
1233
+ * @memberof UserControllerRestApiListUsers
1234
+ */
1235
+ readonly pageSize?: number
1236
+
1237
+ /**
1238
+ * 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.
1239
+ * @type {string}
1240
+ * @memberof UserControllerRestApiListUsers
1241
+ */
1242
+ readonly pageToken?: string
1243
+
1244
+ /**
1245
+ * 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;
1246
+ * @type {string}
1247
+ * @memberof UserControllerRestApiListUsers
1248
+ */
1249
+ readonly filter?: string
1250
+
1251
+ /**
1252
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
1253
+ * @type {string}
1254
+ * @memberof UserControllerRestApiListUsers
1255
+ */
1256
+ readonly search?: string
1257
+
1258
+ /**
1259
+ * 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;
1260
+ * @type {string}
1261
+ * @memberof UserControllerRestApiListUsers
1262
+ */
1263
+ readonly order?: string
1264
+
1265
+ /**
1266
+ * 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;
1267
+ * @type {string}
1268
+ * @memberof UserControllerRestApiListUsers
1269
+ */
1270
+ readonly expand?: string
1271
+
1272
+ /**
1273
+ * 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;
1274
+ * @type {string}
1275
+ * @memberof UserControllerRestApiListUsers
1276
+ */
1277
+ readonly filters?: string
1278
+ }
1279
+
1280
+ /**
1281
+ * UserControllerRestApi - object-oriented interface
1282
+ * @export
1283
+ * @class UserControllerRestApi
1284
+ * @extends {BaseAPI}
1285
+ */
1286
+ export class UserControllerRestApi extends BaseAPI {
1287
+ /**
1288
+ * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api. **Required Permissions** \"identity-management.roles.update\"
1289
+ * @param {UserControllerRestApiAssignUserRolesRequest} requestParameters Request parameters.
1290
+ * @param {*} [options] Override http request option.
1291
+ * @deprecated
1292
+ * @throws {RequiredError}
1293
+ * @memberof UserControllerRestApi
1294
+ */
1295
+ public assignUserRoles(requestParameters: UserControllerRestApiAssignUserRolesRequest, options?: AxiosRequestConfig) {
1296
+ return UserControllerRestApiFp(this.configuration).assignUserRoles(requestParameters.id, requestParameters.assignUserRolesRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1297
+ }
1298
+
1299
+ /**
1300
+ * 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\"
1301
+ * @summary Delete invited users.
1302
+ * @param {UserControllerRestApiDeleteInvitesRequest} requestParameters Request parameters.
1303
+ * @param {*} [options] Override http request option.
1304
+ * @throws {RequiredError}
1305
+ * @memberof UserControllerRestApi
1306
+ */
1307
+ public deleteInvites(requestParameters: UserControllerRestApiDeleteInvitesRequest, options?: AxiosRequestConfig) {
1308
+ return UserControllerRestApiFp(this.configuration).deleteInvites(requestParameters.batchDeleteRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1309
+ }
1310
+
1311
+ /**
1312
+ * undefined **Required Permissions** \"tenant-management.users.delete\"
1313
+ * @param {UserControllerRestApiDeleteUsersRequest} requestParameters Request parameters.
1314
+ * @param {*} [options] Override http request option.
1315
+ * @throws {RequiredError}
1316
+ * @memberof UserControllerRestApi
1317
+ */
1318
+ public deleteUsers(requestParameters: UserControllerRestApiDeleteUsersRequest, options?: AxiosRequestConfig) {
1319
+ return UserControllerRestApiFp(this.configuration).deleteUsers(requestParameters.batchDeleteRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1320
+ }
1321
+
1322
+ /**
1323
+ * undefined **Required Permissions** \"tenant-management.users.update\"
1324
+ * @param {UserControllerRestApiDisableUsersRequest} requestParameters Request parameters.
1325
+ * @param {*} [options] Override http request option.
1326
+ * @throws {RequiredError}
1327
+ * @memberof UserControllerRestApi
1328
+ */
1329
+ public disableUsers(requestParameters: UserControllerRestApiDisableUsersRequest, options?: AxiosRequestConfig) {
1330
+ return UserControllerRestApiFp(this.configuration).disableUsers(requestParameters.disableUsersRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1331
+ }
1332
+
1333
+ /**
1334
+ * undefined **Required Permissions** \"tenant-management.users.update\"
1335
+ * @param {UserControllerRestApiEnableUsersRequest} requestParameters Request parameters.
1336
+ * @param {*} [options] Override http request option.
1337
+ * @throws {RequiredError}
1338
+ * @memberof UserControllerRestApi
1339
+ */
1340
+ public enableUsers(requestParameters: UserControllerRestApiEnableUsersRequest, options?: AxiosRequestConfig) {
1341
+ return UserControllerRestApiFp(this.configuration).enableUsers(requestParameters.enableUsersRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1342
+ }
1343
+
1344
+ /**
1345
+ * undefined **Required Permissions** \"tenant-management.users.view\"
1346
+ * @param {UserControllerRestApiGetUserRequest} requestParameters Request parameters.
1347
+ * @param {*} [options] Override http request option.
1348
+ * @throws {RequiredError}
1349
+ * @memberof UserControllerRestApi
1350
+ */
1351
+ public getUser(requestParameters: UserControllerRestApiGetUserRequest, options?: AxiosRequestConfig) {
1352
+ return UserControllerRestApiFp(this.configuration).getUser(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
1353
+ }
1354
+
1355
+ /**
1356
+ * This send an email to invite a user with the specific role/roles. **Required Permissions** \"tenant-management.users.create\"
1357
+ * @summary Invite a user
1358
+ * @param {UserControllerRestApiInviteUserRequest} requestParameters Request parameters.
1359
+ * @param {*} [options] Override http request option.
1360
+ * @throws {RequiredError}
1361
+ * @memberof UserControllerRestApi
1362
+ */
1363
+ public inviteUser(requestParameters: UserControllerRestApiInviteUserRequest, options?: AxiosRequestConfig) {
1364
+ return UserControllerRestApiFp(this.configuration).inviteUser(requestParameters.inviteUserRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1365
+ }
1366
+
1367
+ /**
1368
+ * This send bulk emails to invite users with the specific role/roles. **Required Permissions** \"tenant-management.users.create\"
1369
+ * @summary Invite batch of users
1370
+ * @param {UserControllerRestApiInviteUsersRequest} requestParameters Request parameters.
1371
+ * @param {*} [options] Override http request option.
1372
+ * @throws {RequiredError}
1373
+ * @memberof UserControllerRestApi
1374
+ */
1375
+ public inviteUsers(requestParameters: UserControllerRestApiInviteUsersRequest, options?: AxiosRequestConfig) {
1376
+ return UserControllerRestApiFp(this.configuration).inviteUsers(requestParameters.inviteUsersRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1377
+ }
1378
+
1379
+ /**
1380
+ * undefined **Required Permissions** \"partner-management.partners.update\"
1381
+ * @param {UserControllerRestApiLinkUserWithPartnerRequest} requestParameters Request parameters.
1382
+ * @param {*} [options] Override http request option.
1383
+ * @throws {RequiredError}
1384
+ * @memberof UserControllerRestApi
1385
+ */
1386
+ public linkUserWithPartner(requestParameters: UserControllerRestApiLinkUserWithPartnerRequest, options?: AxiosRequestConfig) {
1387
+ return UserControllerRestApiFp(this.configuration).linkUserWithPartner(requestParameters.code, requestParameters.linkUserWithPartnerRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1388
+ }
1389
+
1390
+ /**
1391
+ * 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\"
1392
+ * @summary List invited users
1393
+ * @param {UserControllerRestApiListInvitesRequest} requestParameters Request parameters.
1394
+ * @param {*} [options] Override http request option.
1395
+ * @throws {RequiredError}
1396
+ * @memberof UserControllerRestApi
1397
+ */
1398
+ public listInvites(requestParameters: UserControllerRestApiListInvitesRequest = {}, options?: AxiosRequestConfig) {
1399
+ return UserControllerRestApiFp(this.configuration).listInvites(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
1400
+ }
1401
+
1402
+ /**
1403
+ * 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\"
1404
+ * @summary List users
1405
+ * @param {UserControllerRestApiListUsersRequest} requestParameters Request parameters.
1406
+ * @param {*} [options] Override http request option.
1407
+ * @throws {RequiredError}
1408
+ * @memberof UserControllerRestApi
1409
+ */
1410
+ public listUsers(requestParameters: UserControllerRestApiListUsersRequest = {}, options?: AxiosRequestConfig) {
1411
+ return UserControllerRestApiFp(this.configuration).listUsers(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
1412
+ }
1413
+ }