@emilgroup/tenant-sdk-node 1.0.1 → 1.0.2
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/README.md +2 -2
- package/api/custom-schema-api.ts +53 -61
- package/api/data-report-api.ts +66 -76
- package/api/invite-organizations-api.ts +24 -28
- package/api/invite-users-api.ts +69 -79
- package/api/organizations-api.ts +22 -26
- package/api/users-api.ts +130 -148
- package/dist/api/custom-schema-api.d.ts +43 -43
- package/dist/api/custom-schema-api.js +31 -38
- package/dist/api/data-report-api.d.ts +53 -53
- package/dist/api/data-report-api.js +40 -49
- package/dist/api/invite-organizations-api.d.ts +21 -21
- package/dist/api/invite-organizations-api.js +13 -16
- package/dist/api/invite-users-api.d.ts +57 -57
- package/dist/api/invite-users-api.js +40 -49
- package/dist/api/organizations-api.d.ts +19 -19
- package/dist/api/organizations-api.js +13 -16
- package/dist/api/users-api.d.ts +105 -105
- package/dist/api/users-api.js +76 -93
- package/package.json +1 -1
package/api/invite-users-api.ts
CHANGED
|
@@ -49,14 +49,12 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
|
|
|
49
49
|
/**
|
|
50
50
|
* Permanently deletes the invited user. Supply the unique id that was returned when you created the invited user and this will delete it.
|
|
51
51
|
* @summary Delete the invited user
|
|
52
|
-
* @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
|
|
53
52
|
* @param {number} id
|
|
53
|
+
* @param {string} [authorization] Bearer Token
|
|
54
54
|
* @param {*} [options] Override http request option.
|
|
55
55
|
* @throws {RequiredError}
|
|
56
56
|
*/
|
|
57
|
-
deleteInvite: async (
|
|
58
|
-
// verify required parameter 'authorization' is not null or undefined
|
|
59
|
-
assertParamExists('deleteInvite', 'authorization', authorization)
|
|
57
|
+
deleteInvite: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
60
58
|
// verify required parameter 'id' is not null or undefined
|
|
61
59
|
assertParamExists('deleteInvite', 'id', id)
|
|
62
60
|
const localVarPath = `/tenantservice/v1/users/invites/{id}`
|
|
@@ -96,14 +94,12 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
|
|
|
96
94
|
/**
|
|
97
95
|
* 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.
|
|
98
96
|
* @summary Delete invited users.
|
|
99
|
-
* @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
|
|
100
97
|
* @param {BatchDeleteRequestDto} batchDeleteRequestDto
|
|
98
|
+
* @param {string} [authorization] Bearer Token
|
|
101
99
|
* @param {*} [options] Override http request option.
|
|
102
100
|
* @throws {RequiredError}
|
|
103
101
|
*/
|
|
104
|
-
deleteInvites: async (
|
|
105
|
-
// verify required parameter 'authorization' is not null or undefined
|
|
106
|
-
assertParamExists('deleteInvites', 'authorization', authorization)
|
|
102
|
+
deleteInvites: async (batchDeleteRequestDto: BatchDeleteRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
107
103
|
// verify required parameter 'batchDeleteRequestDto' is not null or undefined
|
|
108
104
|
assertParamExists('deleteInvites', 'batchDeleteRequestDto', batchDeleteRequestDto)
|
|
109
105
|
const localVarPath = `/tenantservice/v1/users/invites/delete-batch`;
|
|
@@ -145,14 +141,12 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
|
|
|
145
141
|
/**
|
|
146
142
|
* This send an email to invite a user with the specific role/roles.
|
|
147
143
|
* @summary Invite a user
|
|
148
|
-
* @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
|
|
149
144
|
* @param {InviteUserRequestDto} inviteUserRequestDto
|
|
145
|
+
* @param {string} [authorization] Bearer Token
|
|
150
146
|
* @param {*} [options] Override http request option.
|
|
151
147
|
* @throws {RequiredError}
|
|
152
148
|
*/
|
|
153
|
-
inviteUser: async (
|
|
154
|
-
// verify required parameter 'authorization' is not null or undefined
|
|
155
|
-
assertParamExists('inviteUser', 'authorization', authorization)
|
|
149
|
+
inviteUser: async (inviteUserRequestDto: InviteUserRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
156
150
|
// verify required parameter 'inviteUserRequestDto' is not null or undefined
|
|
157
151
|
assertParamExists('inviteUser', 'inviteUserRequestDto', inviteUserRequestDto)
|
|
158
152
|
const localVarPath = `/tenantservice/v1/users/invites`;
|
|
@@ -194,14 +188,12 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
|
|
|
194
188
|
/**
|
|
195
189
|
* This send bulk emails to invite users with the specific role/roles.
|
|
196
190
|
* @summary Invite batch of users
|
|
197
|
-
* @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
|
|
198
191
|
* @param {InviteUsersRequestDto} inviteUsersRequestDto
|
|
192
|
+
* @param {string} [authorization] Bearer Token
|
|
199
193
|
* @param {*} [options] Override http request option.
|
|
200
194
|
* @throws {RequiredError}
|
|
201
195
|
*/
|
|
202
|
-
inviteUsers: async (
|
|
203
|
-
// verify required parameter 'authorization' is not null or undefined
|
|
204
|
-
assertParamExists('inviteUsers', 'authorization', authorization)
|
|
196
|
+
inviteUsers: async (inviteUsersRequestDto: InviteUsersRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
205
197
|
// verify required parameter 'inviteUsersRequestDto' is not null or undefined
|
|
206
198
|
assertParamExists('inviteUsers', 'inviteUsersRequestDto', inviteUsersRequestDto)
|
|
207
199
|
const localVarPath = `/tenantservice/v1/users/invites/batch`;
|
|
@@ -243,7 +235,7 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
|
|
|
243
235
|
/**
|
|
244
236
|
* 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.
|
|
245
237
|
* @summary List invited users
|
|
246
|
-
* @param {string} authorization Bearer Token
|
|
238
|
+
* @param {string} [authorization] Bearer Token
|
|
247
239
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
248
240
|
* @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.
|
|
249
241
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -253,9 +245,7 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
|
|
|
253
245
|
* @param {*} [options] Override http request option.
|
|
254
246
|
* @throws {RequiredError}
|
|
255
247
|
*/
|
|
256
|
-
listInvites: async (authorization
|
|
257
|
-
// verify required parameter 'authorization' is not null or undefined
|
|
258
|
-
assertParamExists('listInvites', 'authorization', authorization)
|
|
248
|
+
listInvites: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
259
249
|
const localVarPath = `/tenantservice/v1/users/invites`;
|
|
260
250
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
261
251
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -326,55 +316,55 @@ export const InviteUsersApiFp = function(configuration?: Configuration) {
|
|
|
326
316
|
/**
|
|
327
317
|
* Permanently deletes the invited user. Supply the unique id that was returned when you created the invited user and this will delete it.
|
|
328
318
|
* @summary Delete the invited user
|
|
329
|
-
* @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
|
|
330
319
|
* @param {number} id
|
|
320
|
+
* @param {string} [authorization] Bearer Token
|
|
331
321
|
* @param {*} [options] Override http request option.
|
|
332
322
|
* @throws {RequiredError}
|
|
333
323
|
*/
|
|
334
|
-
async deleteInvite(
|
|
335
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteInvite(
|
|
324
|
+
async deleteInvite(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>> {
|
|
325
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteInvite(id, authorization, options);
|
|
336
326
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
337
327
|
},
|
|
338
328
|
/**
|
|
339
329
|
* 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.
|
|
340
330
|
* @summary Delete invited users.
|
|
341
|
-
* @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
|
|
342
331
|
* @param {BatchDeleteRequestDto} batchDeleteRequestDto
|
|
332
|
+
* @param {string} [authorization] Bearer Token
|
|
343
333
|
* @param {*} [options] Override http request option.
|
|
344
334
|
* @throws {RequiredError}
|
|
345
335
|
*/
|
|
346
|
-
async deleteInvites(
|
|
347
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteInvites(
|
|
336
|
+
async deleteInvites(batchDeleteRequestDto: BatchDeleteRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BatchDeleteResponseClass>> {
|
|
337
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteInvites(batchDeleteRequestDto, authorization, options);
|
|
348
338
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
349
339
|
},
|
|
350
340
|
/**
|
|
351
341
|
* This send an email to invite a user with the specific role/roles.
|
|
352
342
|
* @summary Invite a user
|
|
353
|
-
* @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
|
|
354
343
|
* @param {InviteUserRequestDto} inviteUserRequestDto
|
|
344
|
+
* @param {string} [authorization] Bearer Token
|
|
355
345
|
* @param {*} [options] Override http request option.
|
|
356
346
|
* @throws {RequiredError}
|
|
357
347
|
*/
|
|
358
|
-
async inviteUser(
|
|
359
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.inviteUser(
|
|
348
|
+
async inviteUser(inviteUserRequestDto: InviteUserRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteUserResponseClass>> {
|
|
349
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.inviteUser(inviteUserRequestDto, authorization, options);
|
|
360
350
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
361
351
|
},
|
|
362
352
|
/**
|
|
363
353
|
* This send bulk emails to invite users with the specific role/roles.
|
|
364
354
|
* @summary Invite batch of users
|
|
365
|
-
* @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
|
|
366
355
|
* @param {InviteUsersRequestDto} inviteUsersRequestDto
|
|
356
|
+
* @param {string} [authorization] Bearer Token
|
|
367
357
|
* @param {*} [options] Override http request option.
|
|
368
358
|
* @throws {RequiredError}
|
|
369
359
|
*/
|
|
370
|
-
async inviteUsers(
|
|
371
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.inviteUsers(
|
|
360
|
+
async inviteUsers(inviteUsersRequestDto: InviteUsersRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteUsersResponseClass>> {
|
|
361
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.inviteUsers(inviteUsersRequestDto, authorization, options);
|
|
372
362
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
373
363
|
},
|
|
374
364
|
/**
|
|
375
365
|
* 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.
|
|
376
366
|
* @summary List invited users
|
|
377
|
-
* @param {string} authorization Bearer Token
|
|
367
|
+
* @param {string} [authorization] Bearer Token
|
|
378
368
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
379
369
|
* @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.
|
|
380
370
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -384,7 +374,7 @@ export const InviteUsersApiFp = function(configuration?: Configuration) {
|
|
|
384
374
|
* @param {*} [options] Override http request option.
|
|
385
375
|
* @throws {RequiredError}
|
|
386
376
|
*/
|
|
387
|
-
async listInvites(authorization
|
|
377
|
+
async listInvites(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListInvitesResponseClass>> {
|
|
388
378
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listInvites(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
389
379
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
390
380
|
},
|
|
@@ -401,51 +391,51 @@ export const InviteUsersApiFactory = function (configuration?: Configuration, ba
|
|
|
401
391
|
/**
|
|
402
392
|
* Permanently deletes the invited user. Supply the unique id that was returned when you created the invited user and this will delete it.
|
|
403
393
|
* @summary Delete the invited user
|
|
404
|
-
* @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
|
|
405
394
|
* @param {number} id
|
|
395
|
+
* @param {string} [authorization] Bearer Token
|
|
406
396
|
* @param {*} [options] Override http request option.
|
|
407
397
|
* @throws {RequiredError}
|
|
408
398
|
*/
|
|
409
|
-
deleteInvite(
|
|
410
|
-
return localVarFp.deleteInvite(
|
|
399
|
+
deleteInvite(id: number, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass> {
|
|
400
|
+
return localVarFp.deleteInvite(id, authorization, options).then((request) => request(axios, basePath));
|
|
411
401
|
},
|
|
412
402
|
/**
|
|
413
403
|
* 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.
|
|
414
404
|
* @summary Delete invited users.
|
|
415
|
-
* @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
|
|
416
405
|
* @param {BatchDeleteRequestDto} batchDeleteRequestDto
|
|
406
|
+
* @param {string} [authorization] Bearer Token
|
|
417
407
|
* @param {*} [options] Override http request option.
|
|
418
408
|
* @throws {RequiredError}
|
|
419
409
|
*/
|
|
420
|
-
deleteInvites(
|
|
421
|
-
return localVarFp.deleteInvites(
|
|
410
|
+
deleteInvites(batchDeleteRequestDto: BatchDeleteRequestDto, authorization?: string, options?: any): AxiosPromise<BatchDeleteResponseClass> {
|
|
411
|
+
return localVarFp.deleteInvites(batchDeleteRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
422
412
|
},
|
|
423
413
|
/**
|
|
424
414
|
* This send an email to invite a user with the specific role/roles.
|
|
425
415
|
* @summary Invite a user
|
|
426
|
-
* @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
|
|
427
416
|
* @param {InviteUserRequestDto} inviteUserRequestDto
|
|
417
|
+
* @param {string} [authorization] Bearer Token
|
|
428
418
|
* @param {*} [options] Override http request option.
|
|
429
419
|
* @throws {RequiredError}
|
|
430
420
|
*/
|
|
431
|
-
inviteUser(
|
|
432
|
-
return localVarFp.inviteUser(
|
|
421
|
+
inviteUser(inviteUserRequestDto: InviteUserRequestDto, authorization?: string, options?: any): AxiosPromise<InviteUserResponseClass> {
|
|
422
|
+
return localVarFp.inviteUser(inviteUserRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
433
423
|
},
|
|
434
424
|
/**
|
|
435
425
|
* This send bulk emails to invite users with the specific role/roles.
|
|
436
426
|
* @summary Invite batch of users
|
|
437
|
-
* @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
|
|
438
427
|
* @param {InviteUsersRequestDto} inviteUsersRequestDto
|
|
428
|
+
* @param {string} [authorization] Bearer Token
|
|
439
429
|
* @param {*} [options] Override http request option.
|
|
440
430
|
* @throws {RequiredError}
|
|
441
431
|
*/
|
|
442
|
-
inviteUsers(
|
|
443
|
-
return localVarFp.inviteUsers(
|
|
432
|
+
inviteUsers(inviteUsersRequestDto: InviteUsersRequestDto, authorization?: string, options?: any): AxiosPromise<InviteUsersResponseClass> {
|
|
433
|
+
return localVarFp.inviteUsers(inviteUsersRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
444
434
|
},
|
|
445
435
|
/**
|
|
446
436
|
* 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.
|
|
447
437
|
* @summary List invited users
|
|
448
|
-
* @param {string} authorization Bearer Token
|
|
438
|
+
* @param {string} [authorization] Bearer Token
|
|
449
439
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
450
440
|
* @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.
|
|
451
441
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -455,7 +445,7 @@ export const InviteUsersApiFactory = function (configuration?: Configuration, ba
|
|
|
455
445
|
* @param {*} [options] Override http request option.
|
|
456
446
|
* @throws {RequiredError}
|
|
457
447
|
*/
|
|
458
|
-
listInvites(authorization
|
|
448
|
+
listInvites(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListInvitesResponseClass> {
|
|
459
449
|
return localVarFp.listInvites(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
460
450
|
},
|
|
461
451
|
};
|
|
@@ -468,18 +458,18 @@ export const InviteUsersApiFactory = function (configuration?: Configuration, ba
|
|
|
468
458
|
*/
|
|
469
459
|
export interface InviteUsersApiDeleteInviteRequest {
|
|
470
460
|
/**
|
|
471
|
-
*
|
|
472
|
-
* @type {
|
|
461
|
+
*
|
|
462
|
+
* @type {number}
|
|
473
463
|
* @memberof InviteUsersApiDeleteInvite
|
|
474
464
|
*/
|
|
475
|
-
readonly
|
|
465
|
+
readonly id: number
|
|
476
466
|
|
|
477
467
|
/**
|
|
478
|
-
*
|
|
479
|
-
* @type {
|
|
468
|
+
* Bearer Token
|
|
469
|
+
* @type {string}
|
|
480
470
|
* @memberof InviteUsersApiDeleteInvite
|
|
481
471
|
*/
|
|
482
|
-
readonly
|
|
472
|
+
readonly authorization?: string
|
|
483
473
|
}
|
|
484
474
|
|
|
485
475
|
/**
|
|
@@ -489,18 +479,18 @@ export interface InviteUsersApiDeleteInviteRequest {
|
|
|
489
479
|
*/
|
|
490
480
|
export interface InviteUsersApiDeleteInvitesRequest {
|
|
491
481
|
/**
|
|
492
|
-
*
|
|
493
|
-
* @type {
|
|
482
|
+
*
|
|
483
|
+
* @type {BatchDeleteRequestDto}
|
|
494
484
|
* @memberof InviteUsersApiDeleteInvites
|
|
495
485
|
*/
|
|
496
|
-
readonly
|
|
486
|
+
readonly batchDeleteRequestDto: BatchDeleteRequestDto
|
|
497
487
|
|
|
498
488
|
/**
|
|
499
|
-
*
|
|
500
|
-
* @type {
|
|
489
|
+
* Bearer Token
|
|
490
|
+
* @type {string}
|
|
501
491
|
* @memberof InviteUsersApiDeleteInvites
|
|
502
492
|
*/
|
|
503
|
-
readonly
|
|
493
|
+
readonly authorization?: string
|
|
504
494
|
}
|
|
505
495
|
|
|
506
496
|
/**
|
|
@@ -510,18 +500,18 @@ export interface InviteUsersApiDeleteInvitesRequest {
|
|
|
510
500
|
*/
|
|
511
501
|
export interface InviteUsersApiInviteUserRequest {
|
|
512
502
|
/**
|
|
513
|
-
*
|
|
514
|
-
* @type {
|
|
503
|
+
*
|
|
504
|
+
* @type {InviteUserRequestDto}
|
|
515
505
|
* @memberof InviteUsersApiInviteUser
|
|
516
506
|
*/
|
|
517
|
-
readonly
|
|
507
|
+
readonly inviteUserRequestDto: InviteUserRequestDto
|
|
518
508
|
|
|
519
509
|
/**
|
|
520
|
-
*
|
|
521
|
-
* @type {
|
|
510
|
+
* Bearer Token
|
|
511
|
+
* @type {string}
|
|
522
512
|
* @memberof InviteUsersApiInviteUser
|
|
523
513
|
*/
|
|
524
|
-
readonly
|
|
514
|
+
readonly authorization?: string
|
|
525
515
|
}
|
|
526
516
|
|
|
527
517
|
/**
|
|
@@ -531,18 +521,18 @@ export interface InviteUsersApiInviteUserRequest {
|
|
|
531
521
|
*/
|
|
532
522
|
export interface InviteUsersApiInviteUsersRequest {
|
|
533
523
|
/**
|
|
534
|
-
*
|
|
535
|
-
* @type {
|
|
524
|
+
*
|
|
525
|
+
* @type {InviteUsersRequestDto}
|
|
536
526
|
* @memberof InviteUsersApiInviteUsers
|
|
537
527
|
*/
|
|
538
|
-
readonly
|
|
528
|
+
readonly inviteUsersRequestDto: InviteUsersRequestDto
|
|
539
529
|
|
|
540
530
|
/**
|
|
541
|
-
*
|
|
542
|
-
* @type {
|
|
531
|
+
* Bearer Token
|
|
532
|
+
* @type {string}
|
|
543
533
|
* @memberof InviteUsersApiInviteUsers
|
|
544
534
|
*/
|
|
545
|
-
readonly
|
|
535
|
+
readonly authorization?: string
|
|
546
536
|
}
|
|
547
537
|
|
|
548
538
|
/**
|
|
@@ -552,11 +542,11 @@ export interface InviteUsersApiInviteUsersRequest {
|
|
|
552
542
|
*/
|
|
553
543
|
export interface InviteUsersApiListInvitesRequest {
|
|
554
544
|
/**
|
|
555
|
-
* Bearer Token
|
|
545
|
+
* Bearer Token
|
|
556
546
|
* @type {string}
|
|
557
547
|
* @memberof InviteUsersApiListInvites
|
|
558
548
|
*/
|
|
559
|
-
readonly authorization
|
|
549
|
+
readonly authorization?: string
|
|
560
550
|
|
|
561
551
|
/**
|
|
562
552
|
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
@@ -617,7 +607,7 @@ export class InviteUsersApi extends BaseAPI {
|
|
|
617
607
|
* @memberof InviteUsersApi
|
|
618
608
|
*/
|
|
619
609
|
public deleteInvite(requestParameters: InviteUsersApiDeleteInviteRequest, options?: AxiosRequestConfig) {
|
|
620
|
-
return InviteUsersApiFp(this.configuration).deleteInvite(requestParameters.
|
|
610
|
+
return InviteUsersApiFp(this.configuration).deleteInvite(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
621
611
|
}
|
|
622
612
|
|
|
623
613
|
/**
|
|
@@ -629,7 +619,7 @@ export class InviteUsersApi extends BaseAPI {
|
|
|
629
619
|
* @memberof InviteUsersApi
|
|
630
620
|
*/
|
|
631
621
|
public deleteInvites(requestParameters: InviteUsersApiDeleteInvitesRequest, options?: AxiosRequestConfig) {
|
|
632
|
-
return InviteUsersApiFp(this.configuration).deleteInvites(requestParameters.
|
|
622
|
+
return InviteUsersApiFp(this.configuration).deleteInvites(requestParameters.batchDeleteRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
633
623
|
}
|
|
634
624
|
|
|
635
625
|
/**
|
|
@@ -641,7 +631,7 @@ export class InviteUsersApi extends BaseAPI {
|
|
|
641
631
|
* @memberof InviteUsersApi
|
|
642
632
|
*/
|
|
643
633
|
public inviteUser(requestParameters: InviteUsersApiInviteUserRequest, options?: AxiosRequestConfig) {
|
|
644
|
-
return InviteUsersApiFp(this.configuration).inviteUser(requestParameters.
|
|
634
|
+
return InviteUsersApiFp(this.configuration).inviteUser(requestParameters.inviteUserRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
645
635
|
}
|
|
646
636
|
|
|
647
637
|
/**
|
|
@@ -653,7 +643,7 @@ export class InviteUsersApi extends BaseAPI {
|
|
|
653
643
|
* @memberof InviteUsersApi
|
|
654
644
|
*/
|
|
655
645
|
public inviteUsers(requestParameters: InviteUsersApiInviteUsersRequest, options?: AxiosRequestConfig) {
|
|
656
|
-
return InviteUsersApiFp(this.configuration).inviteUsers(requestParameters.
|
|
646
|
+
return InviteUsersApiFp(this.configuration).inviteUsers(requestParameters.inviteUsersRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
657
647
|
}
|
|
658
648
|
|
|
659
649
|
/**
|
|
@@ -664,7 +654,7 @@ export class InviteUsersApi extends BaseAPI {
|
|
|
664
654
|
* @throws {RequiredError}
|
|
665
655
|
* @memberof InviteUsersApi
|
|
666
656
|
*/
|
|
667
|
-
public listInvites(requestParameters: InviteUsersApiListInvitesRequest, options?: AxiosRequestConfig) {
|
|
657
|
+
public listInvites(requestParameters: InviteUsersApiListInvitesRequest = {}, options?: AxiosRequestConfig) {
|
|
668
658
|
return InviteUsersApiFp(this.configuration).listInvites(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
669
659
|
}
|
|
670
660
|
}
|
package/api/organizations-api.ts
CHANGED
|
@@ -37,14 +37,12 @@ export const OrganizationsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
37
37
|
/**
|
|
38
38
|
* Get Organization by code
|
|
39
39
|
* @summary Retrieve the Organization
|
|
40
|
-
* @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
|
|
41
40
|
* @param {string} code
|
|
41
|
+
* @param {string} [authorization] Bearer Token
|
|
42
42
|
* @param {*} [options] Override http request option.
|
|
43
43
|
* @throws {RequiredError}
|
|
44
44
|
*/
|
|
45
|
-
getOrganization: async (
|
|
46
|
-
// verify required parameter 'authorization' is not null or undefined
|
|
47
|
-
assertParamExists('getOrganization', 'authorization', authorization)
|
|
45
|
+
getOrganization: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
48
46
|
// verify required parameter 'code' is not null or undefined
|
|
49
47
|
assertParamExists('getOrganization', 'code', code)
|
|
50
48
|
const localVarPath = `/tenantservice/v1/organizations/{code}`
|
|
@@ -84,7 +82,7 @@ export const OrganizationsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
84
82
|
/**
|
|
85
83
|
* This will fetch list of organizations
|
|
86
84
|
* @summary List organizations
|
|
87
|
-
* @param {string} authorization Bearer Token
|
|
85
|
+
* @param {string} [authorization] Bearer Token
|
|
88
86
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
89
87
|
* @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.
|
|
90
88
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -94,9 +92,7 @@ export const OrganizationsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
94
92
|
* @param {*} [options] Override http request option.
|
|
95
93
|
* @throws {RequiredError}
|
|
96
94
|
*/
|
|
97
|
-
listOrganizations: async (authorization
|
|
98
|
-
// verify required parameter 'authorization' is not null or undefined
|
|
99
|
-
assertParamExists('listOrganizations', 'authorization', authorization)
|
|
95
|
+
listOrganizations: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
100
96
|
const localVarPath = `/tenantservice/v1/organizations`;
|
|
101
97
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
102
98
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -167,19 +163,19 @@ export const OrganizationsApiFp = function(configuration?: Configuration) {
|
|
|
167
163
|
/**
|
|
168
164
|
* Get Organization by code
|
|
169
165
|
* @summary Retrieve the Organization
|
|
170
|
-
* @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
|
|
171
166
|
* @param {string} code
|
|
167
|
+
* @param {string} [authorization] Bearer Token
|
|
172
168
|
* @param {*} [options] Override http request option.
|
|
173
169
|
* @throws {RequiredError}
|
|
174
170
|
*/
|
|
175
|
-
async getOrganization(
|
|
176
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganization(
|
|
171
|
+
async getOrganization(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetOrganizationResponseClass>> {
|
|
172
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganization(code, authorization, options);
|
|
177
173
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
178
174
|
},
|
|
179
175
|
/**
|
|
180
176
|
* This will fetch list of organizations
|
|
181
177
|
* @summary List organizations
|
|
182
|
-
* @param {string} authorization Bearer Token
|
|
178
|
+
* @param {string} [authorization] Bearer Token
|
|
183
179
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
184
180
|
* @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.
|
|
185
181
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -189,7 +185,7 @@ export const OrganizationsApiFp = function(configuration?: Configuration) {
|
|
|
189
185
|
* @param {*} [options] Override http request option.
|
|
190
186
|
* @throws {RequiredError}
|
|
191
187
|
*/
|
|
192
|
-
async listOrganizations(authorization
|
|
188
|
+
async listOrganizations(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListOrganizationsResponseClass>> {
|
|
193
189
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listOrganizations(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
194
190
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
195
191
|
},
|
|
@@ -206,18 +202,18 @@ export const OrganizationsApiFactory = function (configuration?: Configuration,
|
|
|
206
202
|
/**
|
|
207
203
|
* Get Organization by code
|
|
208
204
|
* @summary Retrieve the Organization
|
|
209
|
-
* @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
|
|
210
205
|
* @param {string} code
|
|
206
|
+
* @param {string} [authorization] Bearer Token
|
|
211
207
|
* @param {*} [options] Override http request option.
|
|
212
208
|
* @throws {RequiredError}
|
|
213
209
|
*/
|
|
214
|
-
getOrganization(
|
|
215
|
-
return localVarFp.getOrganization(
|
|
210
|
+
getOrganization(code: string, authorization?: string, options?: any): AxiosPromise<GetOrganizationResponseClass> {
|
|
211
|
+
return localVarFp.getOrganization(code, authorization, options).then((request) => request(axios, basePath));
|
|
216
212
|
},
|
|
217
213
|
/**
|
|
218
214
|
* This will fetch list of organizations
|
|
219
215
|
* @summary List organizations
|
|
220
|
-
* @param {string} authorization Bearer Token
|
|
216
|
+
* @param {string} [authorization] Bearer Token
|
|
221
217
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
222
218
|
* @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.
|
|
223
219
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -227,7 +223,7 @@ export const OrganizationsApiFactory = function (configuration?: Configuration,
|
|
|
227
223
|
* @param {*} [options] Override http request option.
|
|
228
224
|
* @throws {RequiredError}
|
|
229
225
|
*/
|
|
230
|
-
listOrganizations(authorization
|
|
226
|
+
listOrganizations(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListOrganizationsResponseClass> {
|
|
231
227
|
return localVarFp.listOrganizations(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
232
228
|
},
|
|
233
229
|
};
|
|
@@ -240,18 +236,18 @@ export const OrganizationsApiFactory = function (configuration?: Configuration,
|
|
|
240
236
|
*/
|
|
241
237
|
export interface OrganizationsApiGetOrganizationRequest {
|
|
242
238
|
/**
|
|
243
|
-
*
|
|
239
|
+
*
|
|
244
240
|
* @type {string}
|
|
245
241
|
* @memberof OrganizationsApiGetOrganization
|
|
246
242
|
*/
|
|
247
|
-
readonly
|
|
243
|
+
readonly code: string
|
|
248
244
|
|
|
249
245
|
/**
|
|
250
|
-
*
|
|
246
|
+
* Bearer Token
|
|
251
247
|
* @type {string}
|
|
252
248
|
* @memberof OrganizationsApiGetOrganization
|
|
253
249
|
*/
|
|
254
|
-
readonly
|
|
250
|
+
readonly authorization?: string
|
|
255
251
|
}
|
|
256
252
|
|
|
257
253
|
/**
|
|
@@ -261,11 +257,11 @@ export interface OrganizationsApiGetOrganizationRequest {
|
|
|
261
257
|
*/
|
|
262
258
|
export interface OrganizationsApiListOrganizationsRequest {
|
|
263
259
|
/**
|
|
264
|
-
* Bearer Token
|
|
260
|
+
* Bearer Token
|
|
265
261
|
* @type {string}
|
|
266
262
|
* @memberof OrganizationsApiListOrganizations
|
|
267
263
|
*/
|
|
268
|
-
readonly authorization
|
|
264
|
+
readonly authorization?: string
|
|
269
265
|
|
|
270
266
|
/**
|
|
271
267
|
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
@@ -326,7 +322,7 @@ export class OrganizationsApi extends BaseAPI {
|
|
|
326
322
|
* @memberof OrganizationsApi
|
|
327
323
|
*/
|
|
328
324
|
public getOrganization(requestParameters: OrganizationsApiGetOrganizationRequest, options?: AxiosRequestConfig) {
|
|
329
|
-
return OrganizationsApiFp(this.configuration).getOrganization(requestParameters.
|
|
325
|
+
return OrganizationsApiFp(this.configuration).getOrganization(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
330
326
|
}
|
|
331
327
|
|
|
332
328
|
/**
|
|
@@ -337,7 +333,7 @@ export class OrganizationsApi extends BaseAPI {
|
|
|
337
333
|
* @throws {RequiredError}
|
|
338
334
|
* @memberof OrganizationsApi
|
|
339
335
|
*/
|
|
340
|
-
public listOrganizations(requestParameters: OrganizationsApiListOrganizationsRequest, options?: AxiosRequestConfig) {
|
|
336
|
+
public listOrganizations(requestParameters: OrganizationsApiListOrganizationsRequest = {}, options?: AxiosRequestConfig) {
|
|
341
337
|
return OrganizationsApiFp(this.configuration).listOrganizations(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
342
338
|
}
|
|
343
339
|
}
|