@emilgroup/tenant-sdk 1.22.0 → 1.22.1-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +5 -11
- package/README.md +2 -2
- package/api/dashboard-api.ts +99 -0
- package/api/data-report-api.ts +0 -97
- package/api/invite-organizations-api.ts +15 -15
- package/api/invite-users-api.ts +34 -137
- package/api/roles-api.ts +4 -0
- package/api/users-api.ts +18 -447
- package/dist/api/dashboard-api.d.ts +52 -0
- package/dist/api/dashboard-api.js +88 -0
- package/dist/api/data-report-api.d.ts +0 -51
- package/dist/api/data-report-api.js +0 -88
- package/dist/api/invite-organizations-api.d.ts +9 -9
- package/dist/api/invite-organizations-api.js +12 -12
- package/dist/api/invite-users-api.d.ts +22 -78
- package/dist/api/invite-users-api.js +27 -119
- package/dist/api/roles-api.d.ts +4 -0
- package/dist/api/roles-api.js +4 -0
- package/dist/api/users-api.d.ts +15 -242
- package/dist/api/users-api.js +15 -382
- package/dist/models/{assign-user-roles-request-dto.d.ts → create-tenant-db-config-request-dto.d.ts} +10 -10
- package/dist/models/{enable-user-response-class.d.ts → get-embedded-url-response-class.d.ts} +6 -7
- package/dist/models/index.d.ts +5 -11
- package/dist/models/index.js +5 -11
- package/dist/models/invite-class.d.ts +12 -12
- package/dist/models/{invite-org-request-dto.d.ts → invite-org-request-dto-rest.d.ts} +27 -14
- package/dist/models/invite-user-request-dto-rest.d.ts +49 -0
- package/dist/models/invite-users-request-dto-rest.d.ts +49 -0
- package/dist/models/user-class.d.ts +8 -8
- package/models/{assign-user-roles-request-dto.ts → create-tenant-db-config-request-dto.ts} +10 -10
- package/models/{enable-user-response-class.ts → get-embedded-url-response-class.ts} +6 -7
- package/models/index.ts +5 -11
- package/models/invite-class.ts +12 -12
- package/models/{invite-org-request-dto.ts → invite-org-request-dto-rest.ts} +27 -14
- package/models/invite-user-request-dto-rest.ts +55 -0
- package/models/invite-users-request-dto-rest.ts +55 -0
- package/models/user-class.ts +8 -8
- package/package.json +1 -1
- package/dist/models/assign-user-roles-response-class.d.ts +0 -25
- package/dist/models/create-permission-request-dto.d.ts +0 -42
- package/dist/models/create-role-request-dto.d.ts +0 -36
- package/dist/models/disable-user-response-class.d.ts +0 -25
- package/dist/models/enable-user-response-class.js +0 -15
- package/dist/models/invite-org-request-dto.js +0 -15
- package/dist/models/invite-user-request-dto.d.ts +0 -43
- package/dist/models/invite-user-request-dto.js +0 -15
- package/dist/models/invite-users-request-dto.d.ts +0 -36
- package/dist/models/invite-users-request-dto.js +0 -15
- package/dist/models/partner-invitation-data-dto.d.ts +0 -36
- package/dist/models/partner-invitation-data-dto.js +0 -15
- package/dist/models/update-role-request-dto.d.ts +0 -42
- package/dist/models/update-role-request-dto.js +0 -15
- package/models/assign-user-roles-response-class.ts +0 -31
- package/models/create-permission-request-dto.ts +0 -48
- package/models/create-role-request-dto.ts +0 -42
- package/models/disable-user-response-class.ts +0 -31
- package/models/invite-user-request-dto.ts +0 -49
- package/models/invite-users-request-dto.ts +0 -42
- package/models/partner-invitation-data-dto.ts +0 -42
- package/models/update-role-request-dto.ts +0 -48
- /package/dist/models/{assign-user-roles-request-dto.js → create-tenant-db-config-request-dto.js} +0 -0
- /package/dist/models/{assign-user-roles-response-class.js → get-embedded-url-response-class.js} +0 -0
- /package/dist/models/{create-permission-request-dto.js → invite-org-request-dto-rest.js} +0 -0
- /package/dist/models/{create-role-request-dto.js → invite-user-request-dto-rest.js} +0 -0
- /package/dist/models/{disable-user-response-class.js → invite-users-request-dto-rest.js} +0 -0
package/api/users-api.ts
CHANGED
|
@@ -21,24 +21,14 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
23
|
// @ts-ignore
|
|
24
|
-
import { AssignUserRolesRequestDto } from '../models';
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
import { AssignUserRolesResponseClass } from '../models';
|
|
27
|
-
// @ts-ignore
|
|
28
24
|
import { BatchDeleteRequestDto } from '../models';
|
|
29
25
|
// @ts-ignore
|
|
30
26
|
import { BatchDeleteResponseClass } from '../models';
|
|
31
27
|
// @ts-ignore
|
|
32
|
-
import { DeleteResponseClass } from '../models';
|
|
33
|
-
// @ts-ignore
|
|
34
|
-
import { DisableUserResponseClass } from '../models';
|
|
35
|
-
// @ts-ignore
|
|
36
28
|
import { DisableUsersRequestDto } from '../models';
|
|
37
29
|
// @ts-ignore
|
|
38
30
|
import { DisableUsersResponseClass } from '../models';
|
|
39
31
|
// @ts-ignore
|
|
40
|
-
import { EnableUserResponseClass } from '../models';
|
|
41
|
-
// @ts-ignore
|
|
42
32
|
import { EnableUsersRequestDto } from '../models';
|
|
43
33
|
// @ts-ignore
|
|
44
34
|
import { EnableUsersResponseClass } from '../models';
|
|
@@ -56,100 +46,6 @@ import { ListUsersResponseClass } from '../models';
|
|
|
56
46
|
*/
|
|
57
47
|
export const UsersApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
58
48
|
return {
|
|
59
|
-
/**
|
|
60
|
-
*
|
|
61
|
-
* @param {number} id
|
|
62
|
-
* @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
|
|
63
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
64
|
-
* @param {*} [options] Override http request option.
|
|
65
|
-
* @throws {RequiredError}
|
|
66
|
-
*/
|
|
67
|
-
assignUserRoles: async (id: number, assignUserRolesRequestDto: AssignUserRolesRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
68
|
-
// verify required parameter 'id' is not null or undefined
|
|
69
|
-
assertParamExists('assignUserRoles', 'id', id)
|
|
70
|
-
// verify required parameter 'assignUserRolesRequestDto' is not null or undefined
|
|
71
|
-
assertParamExists('assignUserRoles', 'assignUserRolesRequestDto', assignUserRolesRequestDto)
|
|
72
|
-
const localVarPath = `/tenantservice/v1/users/{id}/assign-roles`
|
|
73
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
74
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
75
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
76
|
-
let baseOptions;
|
|
77
|
-
let baseAccessToken;
|
|
78
|
-
if (configuration) {
|
|
79
|
-
baseOptions = configuration.baseOptions;
|
|
80
|
-
baseAccessToken = configuration.accessToken;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
84
|
-
const localVarHeaderParameter = {} as any;
|
|
85
|
-
const localVarQueryParameter = {} as any;
|
|
86
|
-
|
|
87
|
-
// authentication bearer required
|
|
88
|
-
// http bearer authentication required
|
|
89
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
90
|
-
|
|
91
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
92
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
98
|
-
|
|
99
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
100
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
101
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
102
|
-
localVarRequestOptions.data = serializeDataIfNeeded(assignUserRolesRequestDto, localVarRequestOptions, configuration)
|
|
103
|
-
|
|
104
|
-
return {
|
|
105
|
-
url: toPathString(localVarUrlObj),
|
|
106
|
-
options: localVarRequestOptions,
|
|
107
|
-
};
|
|
108
|
-
},
|
|
109
|
-
/**
|
|
110
|
-
*
|
|
111
|
-
* @param {number} id
|
|
112
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
113
|
-
* @param {*} [options] Override http request option.
|
|
114
|
-
* @throws {RequiredError}
|
|
115
|
-
*/
|
|
116
|
-
deleteUser: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
117
|
-
// verify required parameter 'id' is not null or undefined
|
|
118
|
-
assertParamExists('deleteUser', 'id', id)
|
|
119
|
-
const localVarPath = `/tenantservice/v1/users/{id}`
|
|
120
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
121
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
122
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
123
|
-
let baseOptions;
|
|
124
|
-
let baseAccessToken;
|
|
125
|
-
if (configuration) {
|
|
126
|
-
baseOptions = configuration.baseOptions;
|
|
127
|
-
baseAccessToken = configuration.accessToken;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
131
|
-
const localVarHeaderParameter = {} as any;
|
|
132
|
-
const localVarQueryParameter = {} as any;
|
|
133
|
-
|
|
134
|
-
// authentication bearer required
|
|
135
|
-
// http bearer authentication required
|
|
136
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
137
|
-
|
|
138
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
139
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
145
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
146
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
147
|
-
|
|
148
|
-
return {
|
|
149
|
-
url: toPathString(localVarUrlObj),
|
|
150
|
-
options: localVarRequestOptions,
|
|
151
|
-
};
|
|
152
|
-
},
|
|
153
49
|
/**
|
|
154
50
|
*
|
|
155
51
|
* @param {BatchDeleteRequestDto} batchDeleteRequestDto
|
|
@@ -196,50 +92,6 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
196
92
|
options: localVarRequestOptions,
|
|
197
93
|
};
|
|
198
94
|
},
|
|
199
|
-
/**
|
|
200
|
-
*
|
|
201
|
-
* @param {number} id
|
|
202
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
203
|
-
* @param {*} [options] Override http request option.
|
|
204
|
-
* @throws {RequiredError}
|
|
205
|
-
*/
|
|
206
|
-
disableUser: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
207
|
-
// verify required parameter 'id' is not null or undefined
|
|
208
|
-
assertParamExists('disableUser', 'id', id)
|
|
209
|
-
const localVarPath = `/tenantservice/v1/users/{id}/disable`
|
|
210
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
211
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
212
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
213
|
-
let baseOptions;
|
|
214
|
-
let baseAccessToken;
|
|
215
|
-
if (configuration) {
|
|
216
|
-
baseOptions = configuration.baseOptions;
|
|
217
|
-
baseAccessToken = configuration.accessToken;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
221
|
-
const localVarHeaderParameter = {} as any;
|
|
222
|
-
const localVarQueryParameter = {} as any;
|
|
223
|
-
|
|
224
|
-
// authentication bearer required
|
|
225
|
-
// http bearer authentication required
|
|
226
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
227
|
-
|
|
228
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
229
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
235
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
236
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
237
|
-
|
|
238
|
-
return {
|
|
239
|
-
url: toPathString(localVarUrlObj),
|
|
240
|
-
options: localVarRequestOptions,
|
|
241
|
-
};
|
|
242
|
-
},
|
|
243
95
|
/**
|
|
244
96
|
*
|
|
245
97
|
* @param {DisableUsersRequestDto} disableUsersRequestDto
|
|
@@ -286,50 +138,6 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
286
138
|
options: localVarRequestOptions,
|
|
287
139
|
};
|
|
288
140
|
},
|
|
289
|
-
/**
|
|
290
|
-
*
|
|
291
|
-
* @param {number} id
|
|
292
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
293
|
-
* @param {*} [options] Override http request option.
|
|
294
|
-
* @throws {RequiredError}
|
|
295
|
-
*/
|
|
296
|
-
enableUser: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
297
|
-
// verify required parameter 'id' is not null or undefined
|
|
298
|
-
assertParamExists('enableUser', 'id', id)
|
|
299
|
-
const localVarPath = `/tenantservice/v1/users/{id}/enable`
|
|
300
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
301
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
302
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
303
|
-
let baseOptions;
|
|
304
|
-
let baseAccessToken;
|
|
305
|
-
if (configuration) {
|
|
306
|
-
baseOptions = configuration.baseOptions;
|
|
307
|
-
baseAccessToken = configuration.accessToken;
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
311
|
-
const localVarHeaderParameter = {} as any;
|
|
312
|
-
const localVarQueryParameter = {} as any;
|
|
313
|
-
|
|
314
|
-
// authentication bearer required
|
|
315
|
-
// http bearer authentication required
|
|
316
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
317
|
-
|
|
318
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
319
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
325
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
326
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
327
|
-
|
|
328
|
-
return {
|
|
329
|
-
url: toPathString(localVarUrlObj),
|
|
330
|
-
options: localVarRequestOptions,
|
|
331
|
-
};
|
|
332
|
-
},
|
|
333
141
|
/**
|
|
334
142
|
*
|
|
335
143
|
* @param {EnableUsersRequestDto} enableUsersRequestDto
|
|
@@ -379,17 +187,14 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
379
187
|
/**
|
|
380
188
|
*
|
|
381
189
|
* @param {string} code
|
|
382
|
-
* @param {string} code2 code
|
|
383
190
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
384
191
|
* @param {string} [expand] Fields to expand response by
|
|
385
192
|
* @param {*} [options] Override http request option.
|
|
386
193
|
* @throws {RequiredError}
|
|
387
194
|
*/
|
|
388
|
-
getUser: async (code: string,
|
|
195
|
+
getUser: async (code: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
389
196
|
// verify required parameter 'code' is not null or undefined
|
|
390
197
|
assertParamExists('getUser', 'code', code)
|
|
391
|
-
// verify required parameter 'code2' is not null or undefined
|
|
392
|
-
assertParamExists('getUser', 'code2', code2)
|
|
393
198
|
const localVarPath = `/tenantservice/v1/users/{code}`
|
|
394
199
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
395
200
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -409,10 +214,6 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
409
214
|
// http bearer authentication required
|
|
410
215
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
411
216
|
|
|
412
|
-
if (code2 !== undefined) {
|
|
413
|
-
localVarQueryParameter['code'] = code2;
|
|
414
|
-
}
|
|
415
|
-
|
|
416
217
|
if (expand !== undefined) {
|
|
417
218
|
localVarQueryParameter['expand'] = expand;
|
|
418
219
|
}
|
|
@@ -488,11 +289,11 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
488
289
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
489
290
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
490
291
|
* @param {any} [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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
491
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, email, sub, status, organizationId, ern</i>
|
|
292
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode</i>
|
|
492
293
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
493
294
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: email</i>
|
|
494
|
-
* @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.<br/> <br/> <i>Allowed values:
|
|
495
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, email, sub, status, organizationId, ern</i>
|
|
295
|
+
* @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.<br/> <br/> <i>Allowed values: subscriptions, organizations<i>
|
|
296
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode</i>
|
|
496
297
|
* @param {*} [options] Override http request option.
|
|
497
298
|
* @throws {RequiredError}
|
|
498
299
|
*/
|
|
@@ -568,29 +369,6 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
568
369
|
export const UsersApiFp = function(configuration?: Configuration) {
|
|
569
370
|
const localVarAxiosParamCreator = UsersApiAxiosParamCreator(configuration)
|
|
570
371
|
return {
|
|
571
|
-
/**
|
|
572
|
-
*
|
|
573
|
-
* @param {number} id
|
|
574
|
-
* @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
|
|
575
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
576
|
-
* @param {*} [options] Override http request option.
|
|
577
|
-
* @throws {RequiredError}
|
|
578
|
-
*/
|
|
579
|
-
async assignUserRoles(id: number, assignUserRolesRequestDto: AssignUserRolesRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssignUserRolesResponseClass>> {
|
|
580
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.assignUserRoles(id, assignUserRolesRequestDto, authorization, options);
|
|
581
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
582
|
-
},
|
|
583
|
-
/**
|
|
584
|
-
*
|
|
585
|
-
* @param {number} id
|
|
586
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
587
|
-
* @param {*} [options] Override http request option.
|
|
588
|
-
* @throws {RequiredError}
|
|
589
|
-
*/
|
|
590
|
-
async deleteUser(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>> {
|
|
591
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUser(id, authorization, options);
|
|
592
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
593
|
-
},
|
|
594
372
|
/**
|
|
595
373
|
*
|
|
596
374
|
* @param {BatchDeleteRequestDto} batchDeleteRequestDto
|
|
@@ -602,17 +380,6 @@ export const UsersApiFp = function(configuration?: Configuration) {
|
|
|
602
380
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUsers(batchDeleteRequestDto, authorization, options);
|
|
603
381
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
604
382
|
},
|
|
605
|
-
/**
|
|
606
|
-
*
|
|
607
|
-
* @param {number} id
|
|
608
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
609
|
-
* @param {*} [options] Override http request option.
|
|
610
|
-
* @throws {RequiredError}
|
|
611
|
-
*/
|
|
612
|
-
async disableUser(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DisableUserResponseClass>> {
|
|
613
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.disableUser(id, authorization, options);
|
|
614
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
615
|
-
},
|
|
616
383
|
/**
|
|
617
384
|
*
|
|
618
385
|
* @param {DisableUsersRequestDto} disableUsersRequestDto
|
|
@@ -624,17 +391,6 @@ export const UsersApiFp = function(configuration?: Configuration) {
|
|
|
624
391
|
const localVarAxiosArgs = await localVarAxiosParamCreator.disableUsers(disableUsersRequestDto, authorization, options);
|
|
625
392
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
626
393
|
},
|
|
627
|
-
/**
|
|
628
|
-
*
|
|
629
|
-
* @param {number} id
|
|
630
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
631
|
-
* @param {*} [options] Override http request option.
|
|
632
|
-
* @throws {RequiredError}
|
|
633
|
-
*/
|
|
634
|
-
async enableUser(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EnableUserResponseClass>> {
|
|
635
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.enableUser(id, authorization, options);
|
|
636
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
637
|
-
},
|
|
638
394
|
/**
|
|
639
395
|
*
|
|
640
396
|
* @param {EnableUsersRequestDto} enableUsersRequestDto
|
|
@@ -649,14 +405,13 @@ export const UsersApiFp = function(configuration?: Configuration) {
|
|
|
649
405
|
/**
|
|
650
406
|
*
|
|
651
407
|
* @param {string} code
|
|
652
|
-
* @param {string} code2 code
|
|
653
408
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
654
409
|
* @param {string} [expand] Fields to expand response by
|
|
655
410
|
* @param {*} [options] Override http request option.
|
|
656
411
|
* @throws {RequiredError}
|
|
657
412
|
*/
|
|
658
|
-
async getUser(code: string,
|
|
659
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getUser(code,
|
|
413
|
+
async getUser(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetUserResponseClass>> {
|
|
414
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUser(code, authorization, expand, options);
|
|
660
415
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
661
416
|
},
|
|
662
417
|
/**
|
|
@@ -677,11 +432,11 @@ export const UsersApiFp = function(configuration?: Configuration) {
|
|
|
677
432
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
678
433
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
679
434
|
* @param {any} [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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
680
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, email, sub, status, organizationId, ern</i>
|
|
435
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode</i>
|
|
681
436
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
682
437
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: email</i>
|
|
683
|
-
* @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.<br/> <br/> <i>Allowed values:
|
|
684
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, email, sub, status, organizationId, ern</i>
|
|
438
|
+
* @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.<br/> <br/> <i>Allowed values: subscriptions, organizations<i>
|
|
439
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode</i>
|
|
685
440
|
* @param {*} [options] Override http request option.
|
|
686
441
|
* @throws {RequiredError}
|
|
687
442
|
*/
|
|
@@ -699,27 +454,6 @@ export const UsersApiFp = function(configuration?: Configuration) {
|
|
|
699
454
|
export const UsersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
700
455
|
const localVarFp = UsersApiFp(configuration)
|
|
701
456
|
return {
|
|
702
|
-
/**
|
|
703
|
-
*
|
|
704
|
-
* @param {number} id
|
|
705
|
-
* @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
|
|
706
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
707
|
-
* @param {*} [options] Override http request option.
|
|
708
|
-
* @throws {RequiredError}
|
|
709
|
-
*/
|
|
710
|
-
assignUserRoles(id: number, assignUserRolesRequestDto: AssignUserRolesRequestDto, authorization?: string, options?: any): AxiosPromise<AssignUserRolesResponseClass> {
|
|
711
|
-
return localVarFp.assignUserRoles(id, assignUserRolesRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
712
|
-
},
|
|
713
|
-
/**
|
|
714
|
-
*
|
|
715
|
-
* @param {number} id
|
|
716
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
717
|
-
* @param {*} [options] Override http request option.
|
|
718
|
-
* @throws {RequiredError}
|
|
719
|
-
*/
|
|
720
|
-
deleteUser(id: number, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass> {
|
|
721
|
-
return localVarFp.deleteUser(id, authorization, options).then((request) => request(axios, basePath));
|
|
722
|
-
},
|
|
723
457
|
/**
|
|
724
458
|
*
|
|
725
459
|
* @param {BatchDeleteRequestDto} batchDeleteRequestDto
|
|
@@ -730,16 +464,6 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
|
|
|
730
464
|
deleteUsers(batchDeleteRequestDto: BatchDeleteRequestDto, authorization?: string, options?: any): AxiosPromise<BatchDeleteResponseClass> {
|
|
731
465
|
return localVarFp.deleteUsers(batchDeleteRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
732
466
|
},
|
|
733
|
-
/**
|
|
734
|
-
*
|
|
735
|
-
* @param {number} id
|
|
736
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
737
|
-
* @param {*} [options] Override http request option.
|
|
738
|
-
* @throws {RequiredError}
|
|
739
|
-
*/
|
|
740
|
-
disableUser(id: number, authorization?: string, options?: any): AxiosPromise<DisableUserResponseClass> {
|
|
741
|
-
return localVarFp.disableUser(id, authorization, options).then((request) => request(axios, basePath));
|
|
742
|
-
},
|
|
743
467
|
/**
|
|
744
468
|
*
|
|
745
469
|
* @param {DisableUsersRequestDto} disableUsersRequestDto
|
|
@@ -750,16 +474,6 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
|
|
|
750
474
|
disableUsers(disableUsersRequestDto: DisableUsersRequestDto, authorization?: string, options?: any): AxiosPromise<DisableUsersResponseClass> {
|
|
751
475
|
return localVarFp.disableUsers(disableUsersRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
752
476
|
},
|
|
753
|
-
/**
|
|
754
|
-
*
|
|
755
|
-
* @param {number} id
|
|
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
|
-
enableUser(id: number, authorization?: string, options?: any): AxiosPromise<EnableUserResponseClass> {
|
|
761
|
-
return localVarFp.enableUser(id, authorization, options).then((request) => request(axios, basePath));
|
|
762
|
-
},
|
|
763
477
|
/**
|
|
764
478
|
*
|
|
765
479
|
* @param {EnableUsersRequestDto} enableUsersRequestDto
|
|
@@ -773,14 +487,13 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
|
|
|
773
487
|
/**
|
|
774
488
|
*
|
|
775
489
|
* @param {string} code
|
|
776
|
-
* @param {string} code2 code
|
|
777
490
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
778
491
|
* @param {string} [expand] Fields to expand response by
|
|
779
492
|
* @param {*} [options] Override http request option.
|
|
780
493
|
* @throws {RequiredError}
|
|
781
494
|
*/
|
|
782
|
-
getUser(code: string,
|
|
783
|
-
return localVarFp.getUser(code,
|
|
495
|
+
getUser(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetUserResponseClass> {
|
|
496
|
+
return localVarFp.getUser(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
784
497
|
},
|
|
785
498
|
/**
|
|
786
499
|
*
|
|
@@ -799,11 +512,11 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
|
|
|
799
512
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
800
513
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
801
514
|
* @param {any} [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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
802
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, email, sub, status, organizationId, ern</i>
|
|
515
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode</i>
|
|
803
516
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
804
517
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: email</i>
|
|
805
|
-
* @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.<br/> <br/> <i>Allowed values:
|
|
806
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, email, sub, status, organizationId, ern</i>
|
|
518
|
+
* @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.<br/> <br/> <i>Allowed values: subscriptions, organizations<i>
|
|
519
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode</i>
|
|
807
520
|
* @param {*} [options] Override http request option.
|
|
808
521
|
* @throws {RequiredError}
|
|
809
522
|
*/
|
|
@@ -813,55 +526,6 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
|
|
|
813
526
|
};
|
|
814
527
|
};
|
|
815
528
|
|
|
816
|
-
/**
|
|
817
|
-
* Request parameters for assignUserRoles operation in UsersApi.
|
|
818
|
-
* @export
|
|
819
|
-
* @interface UsersApiAssignUserRolesRequest
|
|
820
|
-
*/
|
|
821
|
-
export interface UsersApiAssignUserRolesRequest {
|
|
822
|
-
/**
|
|
823
|
-
*
|
|
824
|
-
* @type {number}
|
|
825
|
-
* @memberof UsersApiAssignUserRoles
|
|
826
|
-
*/
|
|
827
|
-
readonly id: number
|
|
828
|
-
|
|
829
|
-
/**
|
|
830
|
-
*
|
|
831
|
-
* @type {AssignUserRolesRequestDto}
|
|
832
|
-
* @memberof UsersApiAssignUserRoles
|
|
833
|
-
*/
|
|
834
|
-
readonly assignUserRolesRequestDto: AssignUserRolesRequestDto
|
|
835
|
-
|
|
836
|
-
/**
|
|
837
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
838
|
-
* @type {string}
|
|
839
|
-
* @memberof UsersApiAssignUserRoles
|
|
840
|
-
*/
|
|
841
|
-
readonly authorization?: string
|
|
842
|
-
}
|
|
843
|
-
|
|
844
|
-
/**
|
|
845
|
-
* Request parameters for deleteUser operation in UsersApi.
|
|
846
|
-
* @export
|
|
847
|
-
* @interface UsersApiDeleteUserRequest
|
|
848
|
-
*/
|
|
849
|
-
export interface UsersApiDeleteUserRequest {
|
|
850
|
-
/**
|
|
851
|
-
*
|
|
852
|
-
* @type {number}
|
|
853
|
-
* @memberof UsersApiDeleteUser
|
|
854
|
-
*/
|
|
855
|
-
readonly id: number
|
|
856
|
-
|
|
857
|
-
/**
|
|
858
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
859
|
-
* @type {string}
|
|
860
|
-
* @memberof UsersApiDeleteUser
|
|
861
|
-
*/
|
|
862
|
-
readonly authorization?: string
|
|
863
|
-
}
|
|
864
|
-
|
|
865
529
|
/**
|
|
866
530
|
* Request parameters for deleteUsers operation in UsersApi.
|
|
867
531
|
* @export
|
|
@@ -883,27 +547,6 @@ export interface UsersApiDeleteUsersRequest {
|
|
|
883
547
|
readonly authorization?: string
|
|
884
548
|
}
|
|
885
549
|
|
|
886
|
-
/**
|
|
887
|
-
* Request parameters for disableUser operation in UsersApi.
|
|
888
|
-
* @export
|
|
889
|
-
* @interface UsersApiDisableUserRequest
|
|
890
|
-
*/
|
|
891
|
-
export interface UsersApiDisableUserRequest {
|
|
892
|
-
/**
|
|
893
|
-
*
|
|
894
|
-
* @type {number}
|
|
895
|
-
* @memberof UsersApiDisableUser
|
|
896
|
-
*/
|
|
897
|
-
readonly id: number
|
|
898
|
-
|
|
899
|
-
/**
|
|
900
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
901
|
-
* @type {string}
|
|
902
|
-
* @memberof UsersApiDisableUser
|
|
903
|
-
*/
|
|
904
|
-
readonly authorization?: string
|
|
905
|
-
}
|
|
906
|
-
|
|
907
550
|
/**
|
|
908
551
|
* Request parameters for disableUsers operation in UsersApi.
|
|
909
552
|
* @export
|
|
@@ -925,27 +568,6 @@ export interface UsersApiDisableUsersRequest {
|
|
|
925
568
|
readonly authorization?: string
|
|
926
569
|
}
|
|
927
570
|
|
|
928
|
-
/**
|
|
929
|
-
* Request parameters for enableUser operation in UsersApi.
|
|
930
|
-
* @export
|
|
931
|
-
* @interface UsersApiEnableUserRequest
|
|
932
|
-
*/
|
|
933
|
-
export interface UsersApiEnableUserRequest {
|
|
934
|
-
/**
|
|
935
|
-
*
|
|
936
|
-
* @type {number}
|
|
937
|
-
* @memberof UsersApiEnableUser
|
|
938
|
-
*/
|
|
939
|
-
readonly id: number
|
|
940
|
-
|
|
941
|
-
/**
|
|
942
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
943
|
-
* @type {string}
|
|
944
|
-
* @memberof UsersApiEnableUser
|
|
945
|
-
*/
|
|
946
|
-
readonly authorization?: string
|
|
947
|
-
}
|
|
948
|
-
|
|
949
571
|
/**
|
|
950
572
|
* Request parameters for enableUsers operation in UsersApi.
|
|
951
573
|
* @export
|
|
@@ -980,13 +602,6 @@ export interface UsersApiGetUserRequest {
|
|
|
980
602
|
*/
|
|
981
603
|
readonly code: string
|
|
982
604
|
|
|
983
|
-
/**
|
|
984
|
-
* code
|
|
985
|
-
* @type {string}
|
|
986
|
-
* @memberof UsersApiGetUser
|
|
987
|
-
*/
|
|
988
|
-
readonly code2: string
|
|
989
|
-
|
|
990
605
|
/**
|
|
991
606
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
992
607
|
* @type {string}
|
|
@@ -1058,7 +673,7 @@ export interface UsersApiListUsersRequest {
|
|
|
1058
673
|
readonly pageToken?: any
|
|
1059
674
|
|
|
1060
675
|
/**
|
|
1061
|
-
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, email, sub, status, organizationId, ern</i>
|
|
676
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode</i>
|
|
1062
677
|
* @type {string}
|
|
1063
678
|
* @memberof UsersApiListUsers
|
|
1064
679
|
*/
|
|
@@ -1079,14 +694,14 @@ export interface UsersApiListUsersRequest {
|
|
|
1079
694
|
readonly order?: string
|
|
1080
695
|
|
|
1081
696
|
/**
|
|
1082
|
-
* 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.<br/> <br/> <i>Allowed values:
|
|
697
|
+
* 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.<br/> <br/> <i>Allowed values: subscriptions, organizations<i>
|
|
1083
698
|
* @type {string}
|
|
1084
699
|
* @memberof UsersApiListUsers
|
|
1085
700
|
*/
|
|
1086
701
|
readonly expand?: string
|
|
1087
702
|
|
|
1088
703
|
/**
|
|
1089
|
-
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, email, sub, status, organizationId, ern</i>
|
|
704
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode</i>
|
|
1090
705
|
* @type {string}
|
|
1091
706
|
* @memberof UsersApiListUsers
|
|
1092
707
|
*/
|
|
@@ -1100,28 +715,6 @@ export interface UsersApiListUsersRequest {
|
|
|
1100
715
|
* @extends {BaseAPI}
|
|
1101
716
|
*/
|
|
1102
717
|
export class UsersApi extends BaseAPI {
|
|
1103
|
-
/**
|
|
1104
|
-
*
|
|
1105
|
-
* @param {UsersApiAssignUserRolesRequest} requestParameters Request parameters.
|
|
1106
|
-
* @param {*} [options] Override http request option.
|
|
1107
|
-
* @throws {RequiredError}
|
|
1108
|
-
* @memberof UsersApi
|
|
1109
|
-
*/
|
|
1110
|
-
public assignUserRoles(requestParameters: UsersApiAssignUserRolesRequest, options?: AxiosRequestConfig) {
|
|
1111
|
-
return UsersApiFp(this.configuration).assignUserRoles(requestParameters.id, requestParameters.assignUserRolesRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1112
|
-
}
|
|
1113
|
-
|
|
1114
|
-
/**
|
|
1115
|
-
*
|
|
1116
|
-
* @param {UsersApiDeleteUserRequest} requestParameters Request parameters.
|
|
1117
|
-
* @param {*} [options] Override http request option.
|
|
1118
|
-
* @throws {RequiredError}
|
|
1119
|
-
* @memberof UsersApi
|
|
1120
|
-
*/
|
|
1121
|
-
public deleteUser(requestParameters: UsersApiDeleteUserRequest, options?: AxiosRequestConfig) {
|
|
1122
|
-
return UsersApiFp(this.configuration).deleteUser(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1123
|
-
}
|
|
1124
|
-
|
|
1125
718
|
/**
|
|
1126
719
|
*
|
|
1127
720
|
* @param {UsersApiDeleteUsersRequest} requestParameters Request parameters.
|
|
@@ -1133,17 +726,6 @@ export class UsersApi extends BaseAPI {
|
|
|
1133
726
|
return UsersApiFp(this.configuration).deleteUsers(requestParameters.batchDeleteRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1134
727
|
}
|
|
1135
728
|
|
|
1136
|
-
/**
|
|
1137
|
-
*
|
|
1138
|
-
* @param {UsersApiDisableUserRequest} requestParameters Request parameters.
|
|
1139
|
-
* @param {*} [options] Override http request option.
|
|
1140
|
-
* @throws {RequiredError}
|
|
1141
|
-
* @memberof UsersApi
|
|
1142
|
-
*/
|
|
1143
|
-
public disableUser(requestParameters: UsersApiDisableUserRequest, options?: AxiosRequestConfig) {
|
|
1144
|
-
return UsersApiFp(this.configuration).disableUser(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1145
|
-
}
|
|
1146
|
-
|
|
1147
729
|
/**
|
|
1148
730
|
*
|
|
1149
731
|
* @param {UsersApiDisableUsersRequest} requestParameters Request parameters.
|
|
@@ -1155,17 +737,6 @@ export class UsersApi extends BaseAPI {
|
|
|
1155
737
|
return UsersApiFp(this.configuration).disableUsers(requestParameters.disableUsersRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1156
738
|
}
|
|
1157
739
|
|
|
1158
|
-
/**
|
|
1159
|
-
*
|
|
1160
|
-
* @param {UsersApiEnableUserRequest} requestParameters Request parameters.
|
|
1161
|
-
* @param {*} [options] Override http request option.
|
|
1162
|
-
* @throws {RequiredError}
|
|
1163
|
-
* @memberof UsersApi
|
|
1164
|
-
*/
|
|
1165
|
-
public enableUser(requestParameters: UsersApiEnableUserRequest, options?: AxiosRequestConfig) {
|
|
1166
|
-
return UsersApiFp(this.configuration).enableUser(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1167
|
-
}
|
|
1168
|
-
|
|
1169
740
|
/**
|
|
1170
741
|
*
|
|
1171
742
|
* @param {UsersApiEnableUsersRequest} requestParameters Request parameters.
|
|
@@ -1185,7 +756,7 @@ export class UsersApi extends BaseAPI {
|
|
|
1185
756
|
* @memberof UsersApi
|
|
1186
757
|
*/
|
|
1187
758
|
public getUser(requestParameters: UsersApiGetUserRequest, options?: AxiosRequestConfig) {
|
|
1188
|
-
return UsersApiFp(this.configuration).getUser(requestParameters.code, requestParameters.
|
|
759
|
+
return UsersApiFp(this.configuration).getUser(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
1189
760
|
}
|
|
1190
761
|
|
|
1191
762
|
/**
|