@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/invite-users-api.ts
CHANGED
|
@@ -25,13 +25,11 @@ import { BatchDeleteRequestDto } from '../models';
|
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { BatchDeleteResponseClass } from '../models';
|
|
27
27
|
// @ts-ignore
|
|
28
|
-
import {
|
|
29
|
-
// @ts-ignore
|
|
30
|
-
import { InviteUserRequestDto } from '../models';
|
|
28
|
+
import { InviteUserRequestDtoRest } from '../models';
|
|
31
29
|
// @ts-ignore
|
|
32
30
|
import { InviteUserResponseClass } from '../models';
|
|
33
31
|
// @ts-ignore
|
|
34
|
-
import {
|
|
32
|
+
import { InviteUsersRequestDtoRest } from '../models';
|
|
35
33
|
// @ts-ignore
|
|
36
34
|
import { InviteUsersResponseClass } from '../models';
|
|
37
35
|
// @ts-ignore
|
|
@@ -42,51 +40,6 @@ import { ListInvitesResponseClass } from '../models';
|
|
|
42
40
|
*/
|
|
43
41
|
export const InviteUsersApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
44
42
|
return {
|
|
45
|
-
/**
|
|
46
|
-
* Permanently deletes the invited user. Supply the unique id that was returned when you created the invited user and this will delete it.
|
|
47
|
-
* @summary Delete the invited user
|
|
48
|
-
* @param {number} id
|
|
49
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
50
|
-
* @param {*} [options] Override http request option.
|
|
51
|
-
* @throws {RequiredError}
|
|
52
|
-
*/
|
|
53
|
-
deleteInvite: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
54
|
-
// verify required parameter 'id' is not null or undefined
|
|
55
|
-
assertParamExists('deleteInvite', 'id', id)
|
|
56
|
-
const localVarPath = `/tenantservice/v1/users/invites/{id}`
|
|
57
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
58
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
59
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
60
|
-
let baseOptions;
|
|
61
|
-
let baseAccessToken;
|
|
62
|
-
if (configuration) {
|
|
63
|
-
baseOptions = configuration.baseOptions;
|
|
64
|
-
baseAccessToken = configuration.accessToken;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
68
|
-
const localVarHeaderParameter = {} as any;
|
|
69
|
-
const localVarQueryParameter = {} as any;
|
|
70
|
-
|
|
71
|
-
// authentication bearer required
|
|
72
|
-
// http bearer authentication required
|
|
73
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
74
|
-
|
|
75
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
76
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
82
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
83
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
84
|
-
|
|
85
|
-
return {
|
|
86
|
-
url: toPathString(localVarUrlObj),
|
|
87
|
-
options: localVarRequestOptions,
|
|
88
|
-
};
|
|
89
|
-
},
|
|
90
43
|
/**
|
|
91
44
|
* 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.
|
|
92
45
|
* @summary Delete invited users.
|
|
@@ -137,14 +90,14 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
|
|
|
137
90
|
/**
|
|
138
91
|
* This send an email to invite a user with the specific role/roles.
|
|
139
92
|
* @summary Invite a user
|
|
140
|
-
* @param {
|
|
93
|
+
* @param {InviteUserRequestDtoRest} inviteUserRequestDtoRest
|
|
141
94
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
142
95
|
* @param {*} [options] Override http request option.
|
|
143
96
|
* @throws {RequiredError}
|
|
144
97
|
*/
|
|
145
|
-
inviteUser: async (
|
|
146
|
-
// verify required parameter '
|
|
147
|
-
assertParamExists('inviteUser', '
|
|
98
|
+
inviteUser: async (inviteUserRequestDtoRest: InviteUserRequestDtoRest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
99
|
+
// verify required parameter 'inviteUserRequestDtoRest' is not null or undefined
|
|
100
|
+
assertParamExists('inviteUser', 'inviteUserRequestDtoRest', inviteUserRequestDtoRest)
|
|
148
101
|
const localVarPath = `/tenantservice/v1/users/invites`;
|
|
149
102
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
150
103
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -174,7 +127,7 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
|
|
|
174
127
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
175
128
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
176
129
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
177
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
130
|
+
localVarRequestOptions.data = serializeDataIfNeeded(inviteUserRequestDtoRest, localVarRequestOptions, configuration)
|
|
178
131
|
|
|
179
132
|
return {
|
|
180
133
|
url: toPathString(localVarUrlObj),
|
|
@@ -184,14 +137,14 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
|
|
|
184
137
|
/**
|
|
185
138
|
* This send bulk emails to invite users with the specific role/roles.
|
|
186
139
|
* @summary Invite batch of users
|
|
187
|
-
* @param {
|
|
140
|
+
* @param {InviteUsersRequestDtoRest} inviteUsersRequestDtoRest
|
|
188
141
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
189
142
|
* @param {*} [options] Override http request option.
|
|
190
143
|
* @throws {RequiredError}
|
|
191
144
|
*/
|
|
192
|
-
inviteUsers: async (
|
|
193
|
-
// verify required parameter '
|
|
194
|
-
assertParamExists('inviteUsers', '
|
|
145
|
+
inviteUsers: async (inviteUsersRequestDtoRest: InviteUsersRequestDtoRest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
146
|
+
// verify required parameter 'inviteUsersRequestDtoRest' is not null or undefined
|
|
147
|
+
assertParamExists('inviteUsers', 'inviteUsersRequestDtoRest', inviteUsersRequestDtoRest)
|
|
195
148
|
const localVarPath = `/tenantservice/v1/users/invites/batch`;
|
|
196
149
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
197
150
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -221,7 +174,7 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
|
|
|
221
174
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
222
175
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
223
176
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
224
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
177
|
+
localVarRequestOptions.data = serializeDataIfNeeded(inviteUsersRequestDtoRest, localVarRequestOptions, configuration)
|
|
225
178
|
|
|
226
179
|
return {
|
|
227
180
|
url: toPathString(localVarUrlObj),
|
|
@@ -237,7 +190,7 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
|
|
|
237
190
|
* @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, email, token, organizationId, ern</i>
|
|
238
191
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
239
192
|
* @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, expiresOn</i>
|
|
240
|
-
* @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:
|
|
193
|
+
* @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: organizations<i>
|
|
241
194
|
* @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, email, token, organizationId, ern</i>
|
|
242
195
|
* @param {*} [options] Override http request option.
|
|
243
196
|
* @throws {RequiredError}
|
|
@@ -314,18 +267,6 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
|
|
|
314
267
|
export const InviteUsersApiFp = function(configuration?: Configuration) {
|
|
315
268
|
const localVarAxiosParamCreator = InviteUsersApiAxiosParamCreator(configuration)
|
|
316
269
|
return {
|
|
317
|
-
/**
|
|
318
|
-
* Permanently deletes the invited user. Supply the unique id that was returned when you created the invited user and this will delete it.
|
|
319
|
-
* @summary Delete the invited user
|
|
320
|
-
* @param {number} id
|
|
321
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
322
|
-
* @param {*} [options] Override http request option.
|
|
323
|
-
* @throws {RequiredError}
|
|
324
|
-
*/
|
|
325
|
-
async deleteInvite(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>> {
|
|
326
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteInvite(id, authorization, options);
|
|
327
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
328
|
-
},
|
|
329
270
|
/**
|
|
330
271
|
* 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.
|
|
331
272
|
* @summary Delete invited users.
|
|
@@ -341,25 +282,25 @@ export const InviteUsersApiFp = function(configuration?: Configuration) {
|
|
|
341
282
|
/**
|
|
342
283
|
* This send an email to invite a user with the specific role/roles.
|
|
343
284
|
* @summary Invite a user
|
|
344
|
-
* @param {
|
|
285
|
+
* @param {InviteUserRequestDtoRest} inviteUserRequestDtoRest
|
|
345
286
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
346
287
|
* @param {*} [options] Override http request option.
|
|
347
288
|
* @throws {RequiredError}
|
|
348
289
|
*/
|
|
349
|
-
async inviteUser(
|
|
350
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.inviteUser(
|
|
290
|
+
async inviteUser(inviteUserRequestDtoRest: InviteUserRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteUserResponseClass>> {
|
|
291
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.inviteUser(inviteUserRequestDtoRest, authorization, options);
|
|
351
292
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
352
293
|
},
|
|
353
294
|
/**
|
|
354
295
|
* This send bulk emails to invite users with the specific role/roles.
|
|
355
296
|
* @summary Invite batch of users
|
|
356
|
-
* @param {
|
|
297
|
+
* @param {InviteUsersRequestDtoRest} inviteUsersRequestDtoRest
|
|
357
298
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
358
299
|
* @param {*} [options] Override http request option.
|
|
359
300
|
* @throws {RequiredError}
|
|
360
301
|
*/
|
|
361
|
-
async inviteUsers(
|
|
362
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.inviteUsers(
|
|
302
|
+
async inviteUsers(inviteUsersRequestDtoRest: InviteUsersRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteUsersResponseClass>> {
|
|
303
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.inviteUsers(inviteUsersRequestDtoRest, authorization, options);
|
|
363
304
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
364
305
|
},
|
|
365
306
|
/**
|
|
@@ -371,7 +312,7 @@ export const InviteUsersApiFp = function(configuration?: Configuration) {
|
|
|
371
312
|
* @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, email, token, organizationId, ern</i>
|
|
372
313
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
373
314
|
* @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, expiresOn</i>
|
|
374
|
-
* @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:
|
|
315
|
+
* @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: organizations<i>
|
|
375
316
|
* @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, email, token, organizationId, ern</i>
|
|
376
317
|
* @param {*} [options] Override http request option.
|
|
377
318
|
* @throws {RequiredError}
|
|
@@ -390,17 +331,6 @@ export const InviteUsersApiFp = function(configuration?: Configuration) {
|
|
|
390
331
|
export const InviteUsersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
391
332
|
const localVarFp = InviteUsersApiFp(configuration)
|
|
392
333
|
return {
|
|
393
|
-
/**
|
|
394
|
-
* Permanently deletes the invited user. Supply the unique id that was returned when you created the invited user and this will delete it.
|
|
395
|
-
* @summary Delete the invited user
|
|
396
|
-
* @param {number} id
|
|
397
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
398
|
-
* @param {*} [options] Override http request option.
|
|
399
|
-
* @throws {RequiredError}
|
|
400
|
-
*/
|
|
401
|
-
deleteInvite(id: number, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass> {
|
|
402
|
-
return localVarFp.deleteInvite(id, authorization, options).then((request) => request(axios, basePath));
|
|
403
|
-
},
|
|
404
334
|
/**
|
|
405
335
|
* 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.
|
|
406
336
|
* @summary Delete invited users.
|
|
@@ -415,24 +345,24 @@ export const InviteUsersApiFactory = function (configuration?: Configuration, ba
|
|
|
415
345
|
/**
|
|
416
346
|
* This send an email to invite a user with the specific role/roles.
|
|
417
347
|
* @summary Invite a user
|
|
418
|
-
* @param {
|
|
348
|
+
* @param {InviteUserRequestDtoRest} inviteUserRequestDtoRest
|
|
419
349
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
420
350
|
* @param {*} [options] Override http request option.
|
|
421
351
|
* @throws {RequiredError}
|
|
422
352
|
*/
|
|
423
|
-
inviteUser(
|
|
424
|
-
return localVarFp.inviteUser(
|
|
353
|
+
inviteUser(inviteUserRequestDtoRest: InviteUserRequestDtoRest, authorization?: string, options?: any): AxiosPromise<InviteUserResponseClass> {
|
|
354
|
+
return localVarFp.inviteUser(inviteUserRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
|
|
425
355
|
},
|
|
426
356
|
/**
|
|
427
357
|
* This send bulk emails to invite users with the specific role/roles.
|
|
428
358
|
* @summary Invite batch of users
|
|
429
|
-
* @param {
|
|
359
|
+
* @param {InviteUsersRequestDtoRest} inviteUsersRequestDtoRest
|
|
430
360
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
431
361
|
* @param {*} [options] Override http request option.
|
|
432
362
|
* @throws {RequiredError}
|
|
433
363
|
*/
|
|
434
|
-
inviteUsers(
|
|
435
|
-
return localVarFp.inviteUsers(
|
|
364
|
+
inviteUsers(inviteUsersRequestDtoRest: InviteUsersRequestDtoRest, authorization?: string, options?: any): AxiosPromise<InviteUsersResponseClass> {
|
|
365
|
+
return localVarFp.inviteUsers(inviteUsersRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
|
|
436
366
|
},
|
|
437
367
|
/**
|
|
438
368
|
* 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.
|
|
@@ -443,7 +373,7 @@ export const InviteUsersApiFactory = function (configuration?: Configuration, ba
|
|
|
443
373
|
* @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, email, token, organizationId, ern</i>
|
|
444
374
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
445
375
|
* @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, expiresOn</i>
|
|
446
|
-
* @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:
|
|
376
|
+
* @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: organizations<i>
|
|
447
377
|
* @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, email, token, organizationId, ern</i>
|
|
448
378
|
* @param {*} [options] Override http request option.
|
|
449
379
|
* @throws {RequiredError}
|
|
@@ -454,27 +384,6 @@ export const InviteUsersApiFactory = function (configuration?: Configuration, ba
|
|
|
454
384
|
};
|
|
455
385
|
};
|
|
456
386
|
|
|
457
|
-
/**
|
|
458
|
-
* Request parameters for deleteInvite operation in InviteUsersApi.
|
|
459
|
-
* @export
|
|
460
|
-
* @interface InviteUsersApiDeleteInviteRequest
|
|
461
|
-
*/
|
|
462
|
-
export interface InviteUsersApiDeleteInviteRequest {
|
|
463
|
-
/**
|
|
464
|
-
*
|
|
465
|
-
* @type {number}
|
|
466
|
-
* @memberof InviteUsersApiDeleteInvite
|
|
467
|
-
*/
|
|
468
|
-
readonly id: number
|
|
469
|
-
|
|
470
|
-
/**
|
|
471
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
472
|
-
* @type {string}
|
|
473
|
-
* @memberof InviteUsersApiDeleteInvite
|
|
474
|
-
*/
|
|
475
|
-
readonly authorization?: string
|
|
476
|
-
}
|
|
477
|
-
|
|
478
387
|
/**
|
|
479
388
|
* Request parameters for deleteInvites operation in InviteUsersApi.
|
|
480
389
|
* @export
|
|
@@ -504,10 +413,10 @@ export interface InviteUsersApiDeleteInvitesRequest {
|
|
|
504
413
|
export interface InviteUsersApiInviteUserRequest {
|
|
505
414
|
/**
|
|
506
415
|
*
|
|
507
|
-
* @type {
|
|
416
|
+
* @type {InviteUserRequestDtoRest}
|
|
508
417
|
* @memberof InviteUsersApiInviteUser
|
|
509
418
|
*/
|
|
510
|
-
readonly
|
|
419
|
+
readonly inviteUserRequestDtoRest: InviteUserRequestDtoRest
|
|
511
420
|
|
|
512
421
|
/**
|
|
513
422
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -525,10 +434,10 @@ export interface InviteUsersApiInviteUserRequest {
|
|
|
525
434
|
export interface InviteUsersApiInviteUsersRequest {
|
|
526
435
|
/**
|
|
527
436
|
*
|
|
528
|
-
* @type {
|
|
437
|
+
* @type {InviteUsersRequestDtoRest}
|
|
529
438
|
* @memberof InviteUsersApiInviteUsers
|
|
530
439
|
*/
|
|
531
|
-
readonly
|
|
440
|
+
readonly inviteUsersRequestDtoRest: InviteUsersRequestDtoRest
|
|
532
441
|
|
|
533
442
|
/**
|
|
534
443
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -587,7 +496,7 @@ export interface InviteUsersApiListInvitesRequest {
|
|
|
587
496
|
readonly order?: string
|
|
588
497
|
|
|
589
498
|
/**
|
|
590
|
-
* 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:
|
|
499
|
+
* 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: organizations<i>
|
|
591
500
|
* @type {string}
|
|
592
501
|
* @memberof InviteUsersApiListInvites
|
|
593
502
|
*/
|
|
@@ -608,18 +517,6 @@ export interface InviteUsersApiListInvitesRequest {
|
|
|
608
517
|
* @extends {BaseAPI}
|
|
609
518
|
*/
|
|
610
519
|
export class InviteUsersApi extends BaseAPI {
|
|
611
|
-
/**
|
|
612
|
-
* Permanently deletes the invited user. Supply the unique id that was returned when you created the invited user and this will delete it.
|
|
613
|
-
* @summary Delete the invited user
|
|
614
|
-
* @param {InviteUsersApiDeleteInviteRequest} requestParameters Request parameters.
|
|
615
|
-
* @param {*} [options] Override http request option.
|
|
616
|
-
* @throws {RequiredError}
|
|
617
|
-
* @memberof InviteUsersApi
|
|
618
|
-
*/
|
|
619
|
-
public deleteInvite(requestParameters: InviteUsersApiDeleteInviteRequest, options?: AxiosRequestConfig) {
|
|
620
|
-
return InviteUsersApiFp(this.configuration).deleteInvite(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
621
|
-
}
|
|
622
|
-
|
|
623
520
|
/**
|
|
624
521
|
* 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.
|
|
625
522
|
* @summary Delete invited users.
|
|
@@ -641,7 +538,7 @@ export class InviteUsersApi extends BaseAPI {
|
|
|
641
538
|
* @memberof InviteUsersApi
|
|
642
539
|
*/
|
|
643
540
|
public inviteUser(requestParameters: InviteUsersApiInviteUserRequest, options?: AxiosRequestConfig) {
|
|
644
|
-
return InviteUsersApiFp(this.configuration).inviteUser(requestParameters.
|
|
541
|
+
return InviteUsersApiFp(this.configuration).inviteUser(requestParameters.inviteUserRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
645
542
|
}
|
|
646
543
|
|
|
647
544
|
/**
|
|
@@ -653,7 +550,7 @@ export class InviteUsersApi extends BaseAPI {
|
|
|
653
550
|
* @memberof InviteUsersApi
|
|
654
551
|
*/
|
|
655
552
|
public inviteUsers(requestParameters: InviteUsersApiInviteUsersRequest, options?: AxiosRequestConfig) {
|
|
656
|
-
return InviteUsersApiFp(this.configuration).inviteUsers(requestParameters.
|
|
553
|
+
return InviteUsersApiFp(this.configuration).inviteUsers(requestParameters.inviteUsersRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
657
554
|
}
|
|
658
555
|
|
|
659
556
|
/**
|
package/api/roles-api.ts
CHANGED
|
@@ -39,6 +39,7 @@ export const RolesApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
39
39
|
* @param {string} [order] Order allowing you to specify the desired order of entities retrieved from the server.
|
|
40
40
|
* @param {string} [expand] You can expand roles in this endpoint. By default, permissions will be an empty array.
|
|
41
41
|
* @param {*} [options] Override http request option.
|
|
42
|
+
* @deprecated
|
|
42
43
|
* @throws {RequiredError}
|
|
43
44
|
*/
|
|
44
45
|
listRoles: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
@@ -120,6 +121,7 @@ export const RolesApiFp = function(configuration?: Configuration) {
|
|
|
120
121
|
* @param {string} [order] Order allowing you to specify the desired order of entities retrieved from the server.
|
|
121
122
|
* @param {string} [expand] You can expand roles in this endpoint. By default, permissions will be an empty array.
|
|
122
123
|
* @param {*} [options] Override http request option.
|
|
124
|
+
* @deprecated
|
|
123
125
|
* @throws {RequiredError}
|
|
124
126
|
*/
|
|
125
127
|
async listRoles(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListRolesResponseClass>> {
|
|
@@ -147,6 +149,7 @@ export const RolesApiFactory = function (configuration?: Configuration, basePath
|
|
|
147
149
|
* @param {string} [order] Order allowing you to specify the desired order of entities retrieved from the server.
|
|
148
150
|
* @param {string} [expand] You can expand roles in this endpoint. By default, permissions will be an empty array.
|
|
149
151
|
* @param {*} [options] Override http request option.
|
|
152
|
+
* @deprecated
|
|
150
153
|
* @throws {RequiredError}
|
|
151
154
|
*/
|
|
152
155
|
listRoles(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListRolesResponseClass> {
|
|
@@ -223,6 +226,7 @@ export class RolesApi extends BaseAPI {
|
|
|
223
226
|
* @summary List roles
|
|
224
227
|
* @param {RolesApiListRolesRequest} requestParameters Request parameters.
|
|
225
228
|
* @param {*} [options] Override http request option.
|
|
229
|
+
* @deprecated
|
|
226
230
|
* @throws {RequiredError}
|
|
227
231
|
* @memberof RolesApi
|
|
228
232
|
*/
|