@emilgroup/tenant-sdk-node 1.0.0 → 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/api/users-api.ts CHANGED
@@ -58,15 +58,13 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
58
58
  return {
59
59
  /**
60
60
  *
61
- * @param {string} authorization Bearer Token
62
61
  * @param {number} id
63
62
  * @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
63
+ * @param {string} [authorization] Bearer Token
64
64
  * @param {*} [options] Override http request option.
65
65
  * @throws {RequiredError}
66
66
  */
67
- assignUserRoles: async (authorization: string, id: number, assignUserRolesRequestDto: AssignUserRolesRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
68
- // verify required parameter 'authorization' is not null or undefined
69
- assertParamExists('assignUserRoles', 'authorization', authorization)
67
+ assignUserRoles: async (id: number, assignUserRolesRequestDto: AssignUserRolesRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
70
68
  // verify required parameter 'id' is not null or undefined
71
69
  assertParamExists('assignUserRoles', 'id', id)
72
70
  // verify required parameter 'assignUserRolesRequestDto' is not null or undefined
@@ -110,14 +108,12 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
110
108
  },
111
109
  /**
112
110
  *
113
- * @param {string} authorization Bearer Token
114
111
  * @param {number} id
112
+ * @param {string} [authorization] Bearer Token
115
113
  * @param {*} [options] Override http request option.
116
114
  * @throws {RequiredError}
117
115
  */
118
- deleteUser: async (authorization: string, id: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
119
- // verify required parameter 'authorization' is not null or undefined
120
- assertParamExists('deleteUser', 'authorization', authorization)
116
+ deleteUser: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
121
117
  // verify required parameter 'id' is not null or undefined
122
118
  assertParamExists('deleteUser', 'id', id)
123
119
  const localVarPath = `/tenantservice/v1/users/{id}`
@@ -156,14 +152,12 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
156
152
  },
157
153
  /**
158
154
  *
159
- * @param {string} authorization Bearer Token
160
155
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
156
+ * @param {string} [authorization] Bearer Token
161
157
  * @param {*} [options] Override http request option.
162
158
  * @throws {RequiredError}
163
159
  */
164
- deleteUsers: async (authorization: string, batchDeleteRequestDto: BatchDeleteRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
165
- // verify required parameter 'authorization' is not null or undefined
166
- assertParamExists('deleteUsers', 'authorization', authorization)
160
+ deleteUsers: async (batchDeleteRequestDto: BatchDeleteRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
167
161
  // verify required parameter 'batchDeleteRequestDto' is not null or undefined
168
162
  assertParamExists('deleteUsers', 'batchDeleteRequestDto', batchDeleteRequestDto)
169
163
  const localVarPath = `/tenantservice/v1/users/delete-batch`;
@@ -204,14 +198,12 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
204
198
  },
205
199
  /**
206
200
  *
207
- * @param {string} authorization Bearer Token
208
201
  * @param {number} id
202
+ * @param {string} [authorization] Bearer Token
209
203
  * @param {*} [options] Override http request option.
210
204
  * @throws {RequiredError}
211
205
  */
212
- disableUser: async (authorization: string, id: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
213
- // verify required parameter 'authorization' is not null or undefined
214
- assertParamExists('disableUser', 'authorization', authorization)
206
+ disableUser: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
215
207
  // verify required parameter 'id' is not null or undefined
216
208
  assertParamExists('disableUser', 'id', id)
217
209
  const localVarPath = `/tenantservice/v1/users/{id}/disable`
@@ -250,14 +242,12 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
250
242
  },
251
243
  /**
252
244
  *
253
- * @param {string} authorization Bearer Token
254
245
  * @param {DisableUsersRequestDto} disableUsersRequestDto
246
+ * @param {string} [authorization] Bearer Token
255
247
  * @param {*} [options] Override http request option.
256
248
  * @throws {RequiredError}
257
249
  */
258
- disableUsers: async (authorization: string, disableUsersRequestDto: DisableUsersRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
259
- // verify required parameter 'authorization' is not null or undefined
260
- assertParamExists('disableUsers', 'authorization', authorization)
250
+ disableUsers: async (disableUsersRequestDto: DisableUsersRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
261
251
  // verify required parameter 'disableUsersRequestDto' is not null or undefined
262
252
  assertParamExists('disableUsers', 'disableUsersRequestDto', disableUsersRequestDto)
263
253
  const localVarPath = `/tenantservice/v1/users/disable-batch`;
@@ -298,14 +288,12 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
298
288
  },
299
289
  /**
300
290
  *
301
- * @param {string} authorization Bearer Token
302
291
  * @param {number} id
292
+ * @param {string} [authorization] Bearer Token
303
293
  * @param {*} [options] Override http request option.
304
294
  * @throws {RequiredError}
305
295
  */
306
- enableUser: async (authorization: string, id: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
307
- // verify required parameter 'authorization' is not null or undefined
308
- assertParamExists('enableUser', 'authorization', authorization)
296
+ enableUser: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
309
297
  // verify required parameter 'id' is not null or undefined
310
298
  assertParamExists('enableUser', 'id', id)
311
299
  const localVarPath = `/tenantservice/v1/users/{id}/enable`
@@ -344,14 +332,12 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
344
332
  },
345
333
  /**
346
334
  *
347
- * @param {string} authorization Bearer Token
348
335
  * @param {EnableUsersRequestDto} enableUsersRequestDto
336
+ * @param {string} [authorization] Bearer Token
349
337
  * @param {*} [options] Override http request option.
350
338
  * @throws {RequiredError}
351
339
  */
352
- enableUsers: async (authorization: string, enableUsersRequestDto: EnableUsersRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
353
- // verify required parameter 'authorization' is not null or undefined
354
- assertParamExists('enableUsers', 'authorization', authorization)
340
+ enableUsers: async (enableUsersRequestDto: EnableUsersRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
355
341
  // verify required parameter 'enableUsersRequestDto' is not null or undefined
356
342
  assertParamExists('enableUsers', 'enableUsersRequestDto', enableUsersRequestDto)
357
343
  const localVarPath = `/tenantservice/v1/users/enable-batch`;
@@ -392,16 +378,14 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
392
378
  },
393
379
  /**
394
380
  *
395
- * @param {string} authorization Bearer Token
396
381
  * @param {string} code
397
382
  * @param {string} code2 code
383
+ * @param {string} [authorization] Bearer Token
398
384
  * @param {string} [expand] Fields to expand response by
399
385
  * @param {*} [options] Override http request option.
400
386
  * @throws {RequiredError}
401
387
  */
402
- getUser: async (authorization: string, code: string, code2: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
403
- // verify required parameter 'authorization' is not null or undefined
404
- assertParamExists('getUser', 'authorization', authorization)
388
+ getUser: async (code: string, code2: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
405
389
  // verify required parameter 'code' is not null or undefined
406
390
  assertParamExists('getUser', 'code', code)
407
391
  // verify required parameter 'code2' is not null or undefined
@@ -451,7 +435,7 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
451
435
  /**
452
436
  * Returns a list of users you have previously created. The users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
453
437
  * @summary List users
454
- * @param {string} authorization Bearer Token
438
+ * @param {string} [authorization] Bearer Token
455
439
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
456
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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
457
441
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -461,9 +445,7 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
461
445
  * @param {*} [options] Override http request option.
462
446
  * @throws {RequiredError}
463
447
  */
464
- listUsers: async (authorization: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
465
- // verify required parameter 'authorization' is not null or undefined
466
- assertParamExists('listUsers', 'authorization', authorization)
448
+ listUsers: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
467
449
  const localVarPath = `/tenantservice/v1/users`;
468
450
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
469
451
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -533,99 +515,99 @@ export const UsersApiFp = function(configuration?: Configuration) {
533
515
  return {
534
516
  /**
535
517
  *
536
- * @param {string} authorization Bearer Token
537
518
  * @param {number} id
538
519
  * @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
520
+ * @param {string} [authorization] Bearer Token
539
521
  * @param {*} [options] Override http request option.
540
522
  * @throws {RequiredError}
541
523
  */
542
- async assignUserRoles(authorization: string, id: number, assignUserRolesRequestDto: AssignUserRolesRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssignUserRolesResponseClass>> {
543
- const localVarAxiosArgs = await localVarAxiosParamCreator.assignUserRoles(authorization, id, assignUserRolesRequestDto, options);
524
+ async assignUserRoles(id: number, assignUserRolesRequestDto: AssignUserRolesRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssignUserRolesResponseClass>> {
525
+ const localVarAxiosArgs = await localVarAxiosParamCreator.assignUserRoles(id, assignUserRolesRequestDto, authorization, options);
544
526
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
545
527
  },
546
528
  /**
547
529
  *
548
- * @param {string} authorization Bearer Token
549
530
  * @param {number} id
531
+ * @param {string} [authorization] Bearer Token
550
532
  * @param {*} [options] Override http request option.
551
533
  * @throws {RequiredError}
552
534
  */
553
- async deleteUser(authorization: string, id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>> {
554
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUser(authorization, id, options);
535
+ async deleteUser(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>> {
536
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUser(id, authorization, options);
555
537
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
556
538
  },
557
539
  /**
558
540
  *
559
- * @param {string} authorization Bearer Token
560
541
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
542
+ * @param {string} [authorization] Bearer Token
561
543
  * @param {*} [options] Override http request option.
562
544
  * @throws {RequiredError}
563
545
  */
564
- async deleteUsers(authorization: string, batchDeleteRequestDto: BatchDeleteRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BatchDeleteResponseClass>> {
565
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUsers(authorization, batchDeleteRequestDto, options);
546
+ async deleteUsers(batchDeleteRequestDto: BatchDeleteRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BatchDeleteResponseClass>> {
547
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUsers(batchDeleteRequestDto, authorization, options);
566
548
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
567
549
  },
568
550
  /**
569
551
  *
570
- * @param {string} authorization Bearer Token
571
552
  * @param {number} id
553
+ * @param {string} [authorization] Bearer Token
572
554
  * @param {*} [options] Override http request option.
573
555
  * @throws {RequiredError}
574
556
  */
575
- async disableUser(authorization: string, id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DisableUserResponseClass>> {
576
- const localVarAxiosArgs = await localVarAxiosParamCreator.disableUser(authorization, id, options);
557
+ async disableUser(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DisableUserResponseClass>> {
558
+ const localVarAxiosArgs = await localVarAxiosParamCreator.disableUser(id, authorization, options);
577
559
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
578
560
  },
579
561
  /**
580
562
  *
581
- * @param {string} authorization Bearer Token
582
563
  * @param {DisableUsersRequestDto} disableUsersRequestDto
564
+ * @param {string} [authorization] Bearer Token
583
565
  * @param {*} [options] Override http request option.
584
566
  * @throws {RequiredError}
585
567
  */
586
- async disableUsers(authorization: string, disableUsersRequestDto: DisableUsersRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DisableUsersResponseClass>> {
587
- const localVarAxiosArgs = await localVarAxiosParamCreator.disableUsers(authorization, disableUsersRequestDto, options);
568
+ async disableUsers(disableUsersRequestDto: DisableUsersRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DisableUsersResponseClass>> {
569
+ const localVarAxiosArgs = await localVarAxiosParamCreator.disableUsers(disableUsersRequestDto, authorization, options);
588
570
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
589
571
  },
590
572
  /**
591
573
  *
592
- * @param {string} authorization Bearer Token
593
574
  * @param {number} id
575
+ * @param {string} [authorization] Bearer Token
594
576
  * @param {*} [options] Override http request option.
595
577
  * @throws {RequiredError}
596
578
  */
597
- async enableUser(authorization: string, id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EnableUserResponseClass>> {
598
- const localVarAxiosArgs = await localVarAxiosParamCreator.enableUser(authorization, id, options);
579
+ async enableUser(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EnableUserResponseClass>> {
580
+ const localVarAxiosArgs = await localVarAxiosParamCreator.enableUser(id, authorization, options);
599
581
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
600
582
  },
601
583
  /**
602
584
  *
603
- * @param {string} authorization Bearer Token
604
585
  * @param {EnableUsersRequestDto} enableUsersRequestDto
586
+ * @param {string} [authorization] Bearer Token
605
587
  * @param {*} [options] Override http request option.
606
588
  * @throws {RequiredError}
607
589
  */
608
- async enableUsers(authorization: string, enableUsersRequestDto: EnableUsersRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EnableUsersResponseClass>> {
609
- const localVarAxiosArgs = await localVarAxiosParamCreator.enableUsers(authorization, enableUsersRequestDto, options);
590
+ async enableUsers(enableUsersRequestDto: EnableUsersRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EnableUsersResponseClass>> {
591
+ const localVarAxiosArgs = await localVarAxiosParamCreator.enableUsers(enableUsersRequestDto, authorization, options);
610
592
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
611
593
  },
612
594
  /**
613
595
  *
614
- * @param {string} authorization Bearer Token
615
596
  * @param {string} code
616
597
  * @param {string} code2 code
598
+ * @param {string} [authorization] Bearer Token
617
599
  * @param {string} [expand] Fields to expand response by
618
600
  * @param {*} [options] Override http request option.
619
601
  * @throws {RequiredError}
620
602
  */
621
- async getUser(authorization: string, code: string, code2: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetUserResponseClass>> {
622
- const localVarAxiosArgs = await localVarAxiosParamCreator.getUser(authorization, code, code2, expand, options);
603
+ async getUser(code: string, code2: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetUserResponseClass>> {
604
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getUser(code, code2, authorization, expand, options);
623
605
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
624
606
  },
625
607
  /**
626
608
  * Returns a list of users you have previously created. The users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
627
609
  * @summary List users
628
- * @param {string} authorization Bearer Token
610
+ * @param {string} [authorization] Bearer Token
629
611
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
630
612
  * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
631
613
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -635,7 +617,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
635
617
  * @param {*} [options] Override http request option.
636
618
  * @throws {RequiredError}
637
619
  */
638
- async listUsers(authorization: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListUsersResponseClass>> {
620
+ async listUsers(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListUsersResponseClass>> {
639
621
  const localVarAxiosArgs = await localVarAxiosParamCreator.listUsers(authorization, pageSize, pageToken, filter, search, order, expand, options);
640
622
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
641
623
  },
@@ -651,91 +633,91 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
651
633
  return {
652
634
  /**
653
635
  *
654
- * @param {string} authorization Bearer Token
655
636
  * @param {number} id
656
637
  * @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
638
+ * @param {string} [authorization] Bearer Token
657
639
  * @param {*} [options] Override http request option.
658
640
  * @throws {RequiredError}
659
641
  */
660
- assignUserRoles(authorization: string, id: number, assignUserRolesRequestDto: AssignUserRolesRequestDto, options?: any): AxiosPromise<AssignUserRolesResponseClass> {
661
- return localVarFp.assignUserRoles(authorization, id, assignUserRolesRequestDto, options).then((request) => request(axios, basePath));
642
+ assignUserRoles(id: number, assignUserRolesRequestDto: AssignUserRolesRequestDto, authorization?: string, options?: any): AxiosPromise<AssignUserRolesResponseClass> {
643
+ return localVarFp.assignUserRoles(id, assignUserRolesRequestDto, authorization, options).then((request) => request(axios, basePath));
662
644
  },
663
645
  /**
664
646
  *
665
- * @param {string} authorization Bearer Token
666
647
  * @param {number} id
648
+ * @param {string} [authorization] Bearer Token
667
649
  * @param {*} [options] Override http request option.
668
650
  * @throws {RequiredError}
669
651
  */
670
- deleteUser(authorization: string, id: number, options?: any): AxiosPromise<DeleteResponseClass> {
671
- return localVarFp.deleteUser(authorization, id, options).then((request) => request(axios, basePath));
652
+ deleteUser(id: number, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass> {
653
+ return localVarFp.deleteUser(id, authorization, options).then((request) => request(axios, basePath));
672
654
  },
673
655
  /**
674
656
  *
675
- * @param {string} authorization Bearer Token
676
657
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
658
+ * @param {string} [authorization] Bearer Token
677
659
  * @param {*} [options] Override http request option.
678
660
  * @throws {RequiredError}
679
661
  */
680
- deleteUsers(authorization: string, batchDeleteRequestDto: BatchDeleteRequestDto, options?: any): AxiosPromise<BatchDeleteResponseClass> {
681
- return localVarFp.deleteUsers(authorization, batchDeleteRequestDto, options).then((request) => request(axios, basePath));
662
+ deleteUsers(batchDeleteRequestDto: BatchDeleteRequestDto, authorization?: string, options?: any): AxiosPromise<BatchDeleteResponseClass> {
663
+ return localVarFp.deleteUsers(batchDeleteRequestDto, authorization, options).then((request) => request(axios, basePath));
682
664
  },
683
665
  /**
684
666
  *
685
- * @param {string} authorization Bearer Token
686
667
  * @param {number} id
668
+ * @param {string} [authorization] Bearer Token
687
669
  * @param {*} [options] Override http request option.
688
670
  * @throws {RequiredError}
689
671
  */
690
- disableUser(authorization: string, id: number, options?: any): AxiosPromise<DisableUserResponseClass> {
691
- return localVarFp.disableUser(authorization, id, options).then((request) => request(axios, basePath));
672
+ disableUser(id: number, authorization?: string, options?: any): AxiosPromise<DisableUserResponseClass> {
673
+ return localVarFp.disableUser(id, authorization, options).then((request) => request(axios, basePath));
692
674
  },
693
675
  /**
694
676
  *
695
- * @param {string} authorization Bearer Token
696
677
  * @param {DisableUsersRequestDto} disableUsersRequestDto
678
+ * @param {string} [authorization] Bearer Token
697
679
  * @param {*} [options] Override http request option.
698
680
  * @throws {RequiredError}
699
681
  */
700
- disableUsers(authorization: string, disableUsersRequestDto: DisableUsersRequestDto, options?: any): AxiosPromise<DisableUsersResponseClass> {
701
- return localVarFp.disableUsers(authorization, disableUsersRequestDto, options).then((request) => request(axios, basePath));
682
+ disableUsers(disableUsersRequestDto: DisableUsersRequestDto, authorization?: string, options?: any): AxiosPromise<DisableUsersResponseClass> {
683
+ return localVarFp.disableUsers(disableUsersRequestDto, authorization, options).then((request) => request(axios, basePath));
702
684
  },
703
685
  /**
704
686
  *
705
- * @param {string} authorization Bearer Token
706
687
  * @param {number} id
688
+ * @param {string} [authorization] Bearer Token
707
689
  * @param {*} [options] Override http request option.
708
690
  * @throws {RequiredError}
709
691
  */
710
- enableUser(authorization: string, id: number, options?: any): AxiosPromise<EnableUserResponseClass> {
711
- return localVarFp.enableUser(authorization, id, options).then((request) => request(axios, basePath));
692
+ enableUser(id: number, authorization?: string, options?: any): AxiosPromise<EnableUserResponseClass> {
693
+ return localVarFp.enableUser(id, authorization, options).then((request) => request(axios, basePath));
712
694
  },
713
695
  /**
714
696
  *
715
- * @param {string} authorization Bearer Token
716
697
  * @param {EnableUsersRequestDto} enableUsersRequestDto
698
+ * @param {string} [authorization] Bearer Token
717
699
  * @param {*} [options] Override http request option.
718
700
  * @throws {RequiredError}
719
701
  */
720
- enableUsers(authorization: string, enableUsersRequestDto: EnableUsersRequestDto, options?: any): AxiosPromise<EnableUsersResponseClass> {
721
- return localVarFp.enableUsers(authorization, enableUsersRequestDto, options).then((request) => request(axios, basePath));
702
+ enableUsers(enableUsersRequestDto: EnableUsersRequestDto, authorization?: string, options?: any): AxiosPromise<EnableUsersResponseClass> {
703
+ return localVarFp.enableUsers(enableUsersRequestDto, authorization, options).then((request) => request(axios, basePath));
722
704
  },
723
705
  /**
724
706
  *
725
- * @param {string} authorization Bearer Token
726
707
  * @param {string} code
727
708
  * @param {string} code2 code
709
+ * @param {string} [authorization] Bearer Token
728
710
  * @param {string} [expand] Fields to expand response by
729
711
  * @param {*} [options] Override http request option.
730
712
  * @throws {RequiredError}
731
713
  */
732
- getUser(authorization: string, code: string, code2: string, expand?: string, options?: any): AxiosPromise<GetUserResponseClass> {
733
- return localVarFp.getUser(authorization, code, code2, expand, options).then((request) => request(axios, basePath));
714
+ getUser(code: string, code2: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetUserResponseClass> {
715
+ return localVarFp.getUser(code, code2, authorization, expand, options).then((request) => request(axios, basePath));
734
716
  },
735
717
  /**
736
718
  * Returns a list of users you have previously created. The users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
737
719
  * @summary List users
738
- * @param {string} authorization Bearer Token
720
+ * @param {string} [authorization] Bearer Token
739
721
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
740
722
  * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
741
723
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -745,7 +727,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
745
727
  * @param {*} [options] Override http request option.
746
728
  * @throws {RequiredError}
747
729
  */
748
- listUsers(authorization: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListUsersResponseClass> {
730
+ listUsers(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListUsersResponseClass> {
749
731
  return localVarFp.listUsers(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
750
732
  },
751
733
  };
@@ -757,13 +739,6 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
757
739
  * @interface UsersApiAssignUserRolesRequest
758
740
  */
759
741
  export interface UsersApiAssignUserRolesRequest {
760
- /**
761
- * Bearer Token
762
- * @type {string}
763
- * @memberof UsersApiAssignUserRoles
764
- */
765
- readonly authorization: string
766
-
767
742
  /**
768
743
  *
769
744
  * @type {number}
@@ -777,6 +752,13 @@ export interface UsersApiAssignUserRolesRequest {
777
752
  * @memberof UsersApiAssignUserRoles
778
753
  */
779
754
  readonly assignUserRolesRequestDto: AssignUserRolesRequestDto
755
+
756
+ /**
757
+ * Bearer Token
758
+ * @type {string}
759
+ * @memberof UsersApiAssignUserRoles
760
+ */
761
+ readonly authorization?: string
780
762
  }
781
763
 
782
764
  /**
@@ -786,18 +768,18 @@ export interface UsersApiAssignUserRolesRequest {
786
768
  */
787
769
  export interface UsersApiDeleteUserRequest {
788
770
  /**
789
- * Bearer Token
790
- * @type {string}
771
+ *
772
+ * @type {number}
791
773
  * @memberof UsersApiDeleteUser
792
774
  */
793
- readonly authorization: string
775
+ readonly id: number
794
776
 
795
777
  /**
796
- *
797
- * @type {number}
778
+ * Bearer Token
779
+ * @type {string}
798
780
  * @memberof UsersApiDeleteUser
799
781
  */
800
- readonly id: number
782
+ readonly authorization?: string
801
783
  }
802
784
 
803
785
  /**
@@ -807,18 +789,18 @@ export interface UsersApiDeleteUserRequest {
807
789
  */
808
790
  export interface UsersApiDeleteUsersRequest {
809
791
  /**
810
- * Bearer Token
811
- * @type {string}
792
+ *
793
+ * @type {BatchDeleteRequestDto}
812
794
  * @memberof UsersApiDeleteUsers
813
795
  */
814
- readonly authorization: string
796
+ readonly batchDeleteRequestDto: BatchDeleteRequestDto
815
797
 
816
798
  /**
817
- *
818
- * @type {BatchDeleteRequestDto}
799
+ * Bearer Token
800
+ * @type {string}
819
801
  * @memberof UsersApiDeleteUsers
820
802
  */
821
- readonly batchDeleteRequestDto: BatchDeleteRequestDto
803
+ readonly authorization?: string
822
804
  }
823
805
 
824
806
  /**
@@ -828,18 +810,18 @@ export interface UsersApiDeleteUsersRequest {
828
810
  */
829
811
  export interface UsersApiDisableUserRequest {
830
812
  /**
831
- * Bearer Token
832
- * @type {string}
813
+ *
814
+ * @type {number}
833
815
  * @memberof UsersApiDisableUser
834
816
  */
835
- readonly authorization: string
817
+ readonly id: number
836
818
 
837
819
  /**
838
- *
839
- * @type {number}
820
+ * Bearer Token
821
+ * @type {string}
840
822
  * @memberof UsersApiDisableUser
841
823
  */
842
- readonly id: number
824
+ readonly authorization?: string
843
825
  }
844
826
 
845
827
  /**
@@ -849,18 +831,18 @@ export interface UsersApiDisableUserRequest {
849
831
  */
850
832
  export interface UsersApiDisableUsersRequest {
851
833
  /**
852
- * Bearer Token
853
- * @type {string}
834
+ *
835
+ * @type {DisableUsersRequestDto}
854
836
  * @memberof UsersApiDisableUsers
855
837
  */
856
- readonly authorization: string
838
+ readonly disableUsersRequestDto: DisableUsersRequestDto
857
839
 
858
840
  /**
859
- *
860
- * @type {DisableUsersRequestDto}
841
+ * Bearer Token
842
+ * @type {string}
861
843
  * @memberof UsersApiDisableUsers
862
844
  */
863
- readonly disableUsersRequestDto: DisableUsersRequestDto
845
+ readonly authorization?: string
864
846
  }
865
847
 
866
848
  /**
@@ -870,18 +852,18 @@ export interface UsersApiDisableUsersRequest {
870
852
  */
871
853
  export interface UsersApiEnableUserRequest {
872
854
  /**
873
- * Bearer Token
874
- * @type {string}
855
+ *
856
+ * @type {number}
875
857
  * @memberof UsersApiEnableUser
876
858
  */
877
- readonly authorization: string
859
+ readonly id: number
878
860
 
879
861
  /**
880
- *
881
- * @type {number}
862
+ * Bearer Token
863
+ * @type {string}
882
864
  * @memberof UsersApiEnableUser
883
865
  */
884
- readonly id: number
866
+ readonly authorization?: string
885
867
  }
886
868
 
887
869
  /**
@@ -891,18 +873,18 @@ export interface UsersApiEnableUserRequest {
891
873
  */
892
874
  export interface UsersApiEnableUsersRequest {
893
875
  /**
894
- * Bearer Token
895
- * @type {string}
876
+ *
877
+ * @type {EnableUsersRequestDto}
896
878
  * @memberof UsersApiEnableUsers
897
879
  */
898
- readonly authorization: string
880
+ readonly enableUsersRequestDto: EnableUsersRequestDto
899
881
 
900
882
  /**
901
- *
902
- * @type {EnableUsersRequestDto}
883
+ * Bearer Token
884
+ * @type {string}
903
885
  * @memberof UsersApiEnableUsers
904
886
  */
905
- readonly enableUsersRequestDto: EnableUsersRequestDto
887
+ readonly authorization?: string
906
888
  }
907
889
 
908
890
  /**
@@ -912,25 +894,25 @@ export interface UsersApiEnableUsersRequest {
912
894
  */
913
895
  export interface UsersApiGetUserRequest {
914
896
  /**
915
- * Bearer Token
897
+ *
916
898
  * @type {string}
917
899
  * @memberof UsersApiGetUser
918
900
  */
919
- readonly authorization: string
901
+ readonly code: string
920
902
 
921
903
  /**
922
- *
904
+ * code
923
905
  * @type {string}
924
906
  * @memberof UsersApiGetUser
925
907
  */
926
- readonly code: string
908
+ readonly code2: string
927
909
 
928
910
  /**
929
- * code
911
+ * Bearer Token
930
912
  * @type {string}
931
913
  * @memberof UsersApiGetUser
932
914
  */
933
- readonly code2: string
915
+ readonly authorization?: string
934
916
 
935
917
  /**
936
918
  * Fields to expand response by
@@ -951,7 +933,7 @@ export interface UsersApiListUsersRequest {
951
933
  * @type {string}
952
934
  * @memberof UsersApiListUsers
953
935
  */
954
- readonly authorization: string
936
+ readonly authorization?: string
955
937
 
956
938
  /**
957
939
  * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
@@ -1011,7 +993,7 @@ export class UsersApi extends BaseAPI {
1011
993
  * @memberof UsersApi
1012
994
  */
1013
995
  public assignUserRoles(requestParameters: UsersApiAssignUserRolesRequest, options?: AxiosRequestConfig) {
1014
- return UsersApiFp(this.configuration).assignUserRoles(requestParameters.authorization, requestParameters.id, requestParameters.assignUserRolesRequestDto, options).then((request) => request(this.axios, this.basePath));
996
+ return UsersApiFp(this.configuration).assignUserRoles(requestParameters.id, requestParameters.assignUserRolesRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1015
997
  }
1016
998
 
1017
999
  /**
@@ -1022,7 +1004,7 @@ export class UsersApi extends BaseAPI {
1022
1004
  * @memberof UsersApi
1023
1005
  */
1024
1006
  public deleteUser(requestParameters: UsersApiDeleteUserRequest, options?: AxiosRequestConfig) {
1025
- return UsersApiFp(this.configuration).deleteUser(requestParameters.authorization, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1007
+ return UsersApiFp(this.configuration).deleteUser(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1026
1008
  }
1027
1009
 
1028
1010
  /**
@@ -1033,7 +1015,7 @@ export class UsersApi extends BaseAPI {
1033
1015
  * @memberof UsersApi
1034
1016
  */
1035
1017
  public deleteUsers(requestParameters: UsersApiDeleteUsersRequest, options?: AxiosRequestConfig) {
1036
- return UsersApiFp(this.configuration).deleteUsers(requestParameters.authorization, requestParameters.batchDeleteRequestDto, options).then((request) => request(this.axios, this.basePath));
1018
+ return UsersApiFp(this.configuration).deleteUsers(requestParameters.batchDeleteRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1037
1019
  }
1038
1020
 
1039
1021
  /**
@@ -1044,7 +1026,7 @@ export class UsersApi extends BaseAPI {
1044
1026
  * @memberof UsersApi
1045
1027
  */
1046
1028
  public disableUser(requestParameters: UsersApiDisableUserRequest, options?: AxiosRequestConfig) {
1047
- return UsersApiFp(this.configuration).disableUser(requestParameters.authorization, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1029
+ return UsersApiFp(this.configuration).disableUser(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1048
1030
  }
1049
1031
 
1050
1032
  /**
@@ -1055,7 +1037,7 @@ export class UsersApi extends BaseAPI {
1055
1037
  * @memberof UsersApi
1056
1038
  */
1057
1039
  public disableUsers(requestParameters: UsersApiDisableUsersRequest, options?: AxiosRequestConfig) {
1058
- return UsersApiFp(this.configuration).disableUsers(requestParameters.authorization, requestParameters.disableUsersRequestDto, options).then((request) => request(this.axios, this.basePath));
1040
+ return UsersApiFp(this.configuration).disableUsers(requestParameters.disableUsersRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1059
1041
  }
1060
1042
 
1061
1043
  /**
@@ -1066,7 +1048,7 @@ export class UsersApi extends BaseAPI {
1066
1048
  * @memberof UsersApi
1067
1049
  */
1068
1050
  public enableUser(requestParameters: UsersApiEnableUserRequest, options?: AxiosRequestConfig) {
1069
- return UsersApiFp(this.configuration).enableUser(requestParameters.authorization, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1051
+ return UsersApiFp(this.configuration).enableUser(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1070
1052
  }
1071
1053
 
1072
1054
  /**
@@ -1077,7 +1059,7 @@ export class UsersApi extends BaseAPI {
1077
1059
  * @memberof UsersApi
1078
1060
  */
1079
1061
  public enableUsers(requestParameters: UsersApiEnableUsersRequest, options?: AxiosRequestConfig) {
1080
- return UsersApiFp(this.configuration).enableUsers(requestParameters.authorization, requestParameters.enableUsersRequestDto, options).then((request) => request(this.axios, this.basePath));
1062
+ return UsersApiFp(this.configuration).enableUsers(requestParameters.enableUsersRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1081
1063
  }
1082
1064
 
1083
1065
  /**
@@ -1088,7 +1070,7 @@ export class UsersApi extends BaseAPI {
1088
1070
  * @memberof UsersApi
1089
1071
  */
1090
1072
  public getUser(requestParameters: UsersApiGetUserRequest, options?: AxiosRequestConfig) {
1091
- return UsersApiFp(this.configuration).getUser(requestParameters.authorization, requestParameters.code, requestParameters.code2, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
1073
+ return UsersApiFp(this.configuration).getUser(requestParameters.code, requestParameters.code2, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
1092
1074
  }
1093
1075
 
1094
1076
  /**
@@ -1099,7 +1081,7 @@ export class UsersApi extends BaseAPI {
1099
1081
  * @throws {RequiredError}
1100
1082
  * @memberof UsersApi
1101
1083
  */
1102
- public listUsers(requestParameters: UsersApiListUsersRequest, options?: AxiosRequestConfig) {
1084
+ public listUsers(requestParameters: UsersApiListUsersRequest = {}, options?: AxiosRequestConfig) {
1103
1085
  return UsersApiFp(this.configuration).listUsers(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
1104
1086
  }
1105
1087
  }