@emilgroup/partner-sdk-node 1.4.1-beta.0 → 1.5.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.
Files changed (83) hide show
  1. package/.openapi-generator/FILES +10 -5
  2. package/README.md +2 -2
  3. package/api/{partners-api.ts → partner-api.ts} +90 -90
  4. package/api/partner-invitation-api.ts +169 -0
  5. package/api/{partner-relations-api.ts → partner-relation-api.ts} +95 -95
  6. package/api/{partner-tags-api.ts → partner-tag-api.ts} +70 -70
  7. package/api/{partner-types-api.ts → partner-type-api.ts} +68 -68
  8. package/api/partner-version-api.ts +4 -4
  9. package/api.ts +10 -8
  10. package/base.ts +3 -3
  11. package/dist/api/{partners-api.d.ts → partner-api.d.ts} +82 -82
  12. package/dist/api/{partners-api.js → partner-api.js} +56 -56
  13. package/dist/api/partner-invitation-api.d.ts +97 -0
  14. package/dist/api/partner-invitation-api.js +228 -0
  15. package/dist/api/{partner-relations-api.d.ts → partner-relation-api.d.ts} +86 -86
  16. package/dist/api/{partner-relations-api.js → partner-relation-api.js} +53 -53
  17. package/dist/api/{partner-tags-api.d.ts → partner-tag-api.d.ts} +63 -63
  18. package/dist/api/{partner-tags-api.js → partner-tag-api.js} +46 -46
  19. package/dist/api/{partner-types-api.d.ts → partner-type-api.d.ts} +61 -61
  20. package/dist/api/{partner-types-api.js → partner-type-api.js} +43 -43
  21. package/dist/api/partner-version-api.d.ts +4 -4
  22. package/dist/api/partner-version-api.js +3 -3
  23. package/dist/api.d.ts +5 -4
  24. package/dist/api.js +5 -4
  25. package/dist/base.d.ts +2 -2
  26. package/dist/base.js +1 -2
  27. package/dist/models/create-partner-response-class.d.ts +7 -0
  28. package/dist/models/create-partner-type-request-dto.d.ts +2 -3
  29. package/dist/models/create-partner-type-response-class.d.ts +1 -1
  30. package/dist/models/create-tag-request-dto.d.ts +1 -1
  31. package/dist/models/get-partner-type-response-class.d.ts +1 -1
  32. package/dist/models/get-partner-version-response-class.d.ts +3 -3
  33. package/dist/models/index.d.ts +5 -1
  34. package/dist/models/index.js +5 -1
  35. package/dist/models/invite-class.d.ts +79 -0
  36. package/dist/models/invite-partner-to-eis-response-class.d.ts +25 -0
  37. package/dist/models/invite-partner-to-eis-response-class.js +15 -0
  38. package/dist/models/invite-partner-to-eisrequest-dto.d.ts +42 -0
  39. package/dist/models/invite-partner-to-eisrequest-dto.js +15 -0
  40. package/dist/models/list-partner-relation-class.d.ts +1 -1
  41. package/dist/models/list-partner-relation-types-class.d.ts +1 -1
  42. package/dist/models/list-partner-types-response-class.d.ts +1 -1
  43. package/dist/models/list-partner-versions-response-class.d.ts +7 -1
  44. package/dist/models/list-partners-response-class.d.ts +1 -1
  45. package/dist/models/partner-class.d.ts +24 -6
  46. package/dist/models/partner-relation-class.d.ts +12 -0
  47. package/dist/models/partner-relation-type-class.d.ts +12 -0
  48. package/dist/models/partner-type-class.d.ts +12 -0
  49. package/dist/models/permission-class.d.ts +72 -0
  50. package/dist/models/permission-class.js +15 -0
  51. package/dist/models/role-class.d.ts +73 -0
  52. package/dist/models/role-class.js +15 -0
  53. package/dist/models/tag-class.d.ts +12 -0
  54. package/dist/models/update-partner-type-request-dto.d.ts +2 -3
  55. package/dist/models/update-partner-type-response-class.d.ts +1 -1
  56. package/models/create-partner-response-class.ts +7 -0
  57. package/models/create-partner-type-request-dto.ts +2 -3
  58. package/models/create-partner-type-response-class.ts +1 -1
  59. package/models/create-tag-request-dto.ts +1 -1
  60. package/models/get-partner-type-response-class.ts +1 -1
  61. package/models/get-partner-version-response-class.ts +3 -3
  62. package/models/index.ts +5 -1
  63. package/models/invite-class.ts +85 -0
  64. package/models/invite-partner-to-eis-response-class.ts +31 -0
  65. package/models/invite-partner-to-eisrequest-dto.ts +48 -0
  66. package/models/list-partner-relation-class.ts +1 -1
  67. package/models/list-partner-relation-types-class.ts +1 -1
  68. package/models/list-partner-types-response-class.ts +1 -1
  69. package/models/list-partner-versions-response-class.ts +7 -1
  70. package/models/list-partners-response-class.ts +1 -1
  71. package/models/partner-class.ts +24 -6
  72. package/models/partner-relation-class.ts +12 -0
  73. package/models/partner-relation-type-class.ts +12 -0
  74. package/models/partner-type-class.ts +12 -0
  75. package/models/permission-class.ts +78 -0
  76. package/models/role-class.ts +79 -0
  77. package/models/tag-class.ts +12 -0
  78. package/models/update-partner-type-request-dto.ts +2 -3
  79. package/models/update-partner-type-response-class.ts +1 -1
  80. package/package.json +1 -1
  81. package/dist/models/partner-type-custom-schema-dto.d.ts +0 -102
  82. package/models/partner-type-custom-schema-dto.ts +0 -108
  83. /package/dist/models/{partner-type-custom-schema-dto.js → invite-class.js} +0 -0
@@ -39,10 +39,10 @@ import { UpdatePartnerTypeResponseClass } from '../models';
39
39
  import { URL, URLSearchParams } from 'url';
40
40
  const FormData = require('form-data');
41
41
  /**
42
- * PartnerTypesApi - axios parameter creator
42
+ * PartnerTypeApi - axios parameter creator
43
43
  * @export
44
44
  */
45
- export const PartnerTypesApiAxiosParamCreator = function (configuration?: Configuration) {
45
+ export const PartnerTypeApiAxiosParamCreator = function (configuration?: Configuration) {
46
46
  return {
47
47
  /**
48
48
  * This will create a partner type.
@@ -137,7 +137,7 @@ export const PartnerTypesApiAxiosParamCreator = function (configuration?: Config
137
137
  };
138
138
  },
139
139
  /**
140
- * Retrieves the details of the partner-types that was previously created. Supply the unique partner-types code that was returned when you created it and Emil Api will return the corresponding partner-types information.
140
+ * Retrieves the details of the partner-types that was previously created. Supply the unique partner-types code that was returned when you created it and Emil Api will return the corresponding partner-types information.
141
141
  * @summary Retrieve the partner-types
142
142
  * @param {string} code Unique identifier for the object.
143
143
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -317,11 +317,11 @@ export const PartnerTypesApiAxiosParamCreator = function (configuration?: Config
317
317
  };
318
318
 
319
319
  /**
320
- * PartnerTypesApi - functional programming interface
320
+ * PartnerTypeApi - functional programming interface
321
321
  * @export
322
322
  */
323
- export const PartnerTypesApiFp = function(configuration?: Configuration) {
324
- const localVarAxiosParamCreator = PartnerTypesApiAxiosParamCreator(configuration)
323
+ export const PartnerTypeApiFp = function(configuration?: Configuration) {
324
+ const localVarAxiosParamCreator = PartnerTypeApiAxiosParamCreator(configuration)
325
325
  return {
326
326
  /**
327
327
  * This will create a partner type.
@@ -348,7 +348,7 @@ export const PartnerTypesApiFp = function(configuration?: Configuration) {
348
348
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
349
349
  },
350
350
  /**
351
- * Retrieves the details of the partner-types that was previously created. Supply the unique partner-types code that was returned when you created it and Emil Api will return the corresponding partner-types information.
351
+ * Retrieves the details of the partner-types that was previously created. Supply the unique partner-types code that was returned when you created it and Emil Api will return the corresponding partner-types information.
352
352
  * @summary Retrieve the partner-types
353
353
  * @param {string} code Unique identifier for the object.
354
354
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -395,11 +395,11 @@ export const PartnerTypesApiFp = function(configuration?: Configuration) {
395
395
  };
396
396
 
397
397
  /**
398
- * PartnerTypesApi - factory interface
398
+ * PartnerTypeApi - factory interface
399
399
  * @export
400
400
  */
401
- export const PartnerTypesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
402
- const localVarFp = PartnerTypesApiFp(configuration)
401
+ export const PartnerTypeApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
402
+ const localVarFp = PartnerTypeApiFp(configuration)
403
403
  return {
404
404
  /**
405
405
  * This will create a partner type.
@@ -424,7 +424,7 @@ export const PartnerTypesApiFactory = function (configuration?: Configuration, b
424
424
  return localVarFp.deletePartnerType(code, authorization, options).then((request) => request(axios, basePath));
425
425
  },
426
426
  /**
427
- * Retrieves the details of the partner-types that was previously created. Supply the unique partner-types code that was returned when you created it and Emil Api will return the corresponding partner-types information.
427
+ * Retrieves the details of the partner-types that was previously created. Supply the unique partner-types code that was returned when you created it and Emil Api will return the corresponding partner-types information.
428
428
  * @summary Retrieve the partner-types
429
429
  * @param {string} code Unique identifier for the object.
430
430
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -468,230 +468,230 @@ export const PartnerTypesApiFactory = function (configuration?: Configuration, b
468
468
  };
469
469
 
470
470
  /**
471
- * Request parameters for createPartnerType operation in PartnerTypesApi.
471
+ * Request parameters for createPartnerType operation in PartnerTypeApi.
472
472
  * @export
473
- * @interface PartnerTypesApiCreatePartnerTypeRequest
473
+ * @interface PartnerTypeApiCreatePartnerTypeRequest
474
474
  */
475
- export interface PartnerTypesApiCreatePartnerTypeRequest {
475
+ export interface PartnerTypeApiCreatePartnerTypeRequest {
476
476
  /**
477
477
  *
478
478
  * @type {CreatePartnerTypeRequestDto}
479
- * @memberof PartnerTypesApiCreatePartnerType
479
+ * @memberof PartnerTypeApiCreatePartnerType
480
480
  */
481
481
  readonly createPartnerTypeRequestDto: CreatePartnerTypeRequestDto
482
482
 
483
483
  /**
484
484
  * Bearer Token: provided by the login endpoint under the name accessToken.
485
485
  * @type {string}
486
- * @memberof PartnerTypesApiCreatePartnerType
486
+ * @memberof PartnerTypeApiCreatePartnerType
487
487
  */
488
488
  readonly authorization?: string
489
489
  }
490
490
 
491
491
  /**
492
- * Request parameters for deletePartnerType operation in PartnerTypesApi.
492
+ * Request parameters for deletePartnerType operation in PartnerTypeApi.
493
493
  * @export
494
- * @interface PartnerTypesApiDeletePartnerTypeRequest
494
+ * @interface PartnerTypeApiDeletePartnerTypeRequest
495
495
  */
496
- export interface PartnerTypesApiDeletePartnerTypeRequest {
496
+ export interface PartnerTypeApiDeletePartnerTypeRequest {
497
497
  /**
498
498
  *
499
499
  * @type {string}
500
- * @memberof PartnerTypesApiDeletePartnerType
500
+ * @memberof PartnerTypeApiDeletePartnerType
501
501
  */
502
502
  readonly code: string
503
503
 
504
504
  /**
505
505
  * Bearer Token: provided by the login endpoint under the name accessToken.
506
506
  * @type {string}
507
- * @memberof PartnerTypesApiDeletePartnerType
507
+ * @memberof PartnerTypeApiDeletePartnerType
508
508
  */
509
509
  readonly authorization?: string
510
510
  }
511
511
 
512
512
  /**
513
- * Request parameters for getPartnerType operation in PartnerTypesApi.
513
+ * Request parameters for getPartnerType operation in PartnerTypeApi.
514
514
  * @export
515
- * @interface PartnerTypesApiGetPartnerTypeRequest
515
+ * @interface PartnerTypeApiGetPartnerTypeRequest
516
516
  */
517
- export interface PartnerTypesApiGetPartnerTypeRequest {
517
+ export interface PartnerTypeApiGetPartnerTypeRequest {
518
518
  /**
519
519
  * Unique identifier for the object.
520
520
  * @type {string}
521
- * @memberof PartnerTypesApiGetPartnerType
521
+ * @memberof PartnerTypeApiGetPartnerType
522
522
  */
523
523
  readonly code: string
524
524
 
525
525
  /**
526
526
  * Bearer Token: provided by the login endpoint under the name accessToken.
527
527
  * @type {string}
528
- * @memberof PartnerTypesApiGetPartnerType
528
+ * @memberof PartnerTypeApiGetPartnerType
529
529
  */
530
530
  readonly authorization?: string
531
531
 
532
532
  /**
533
533
  *
534
534
  * @type {any}
535
- * @memberof PartnerTypesApiGetPartnerType
535
+ * @memberof PartnerTypeApiGetPartnerType
536
536
  */
537
537
  readonly expand?: any
538
538
  }
539
539
 
540
540
  /**
541
- * Request parameters for listPartnerTypes operation in PartnerTypesApi.
541
+ * Request parameters for listPartnerTypes operation in PartnerTypeApi.
542
542
  * @export
543
- * @interface PartnerTypesApiListPartnerTypesRequest
543
+ * @interface PartnerTypeApiListPartnerTypesRequest
544
544
  */
545
- export interface PartnerTypesApiListPartnerTypesRequest {
545
+ export interface PartnerTypeApiListPartnerTypesRequest {
546
546
  /**
547
547
  * Bearer Token: provided by the login endpoint under the name accessToken.
548
548
  * @type {string}
549
- * @memberof PartnerTypesApiListPartnerTypes
549
+ * @memberof PartnerTypeApiListPartnerTypes
550
550
  */
551
551
  readonly authorization?: string
552
552
 
553
553
  /**
554
554
  * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
555
555
  * @type {any}
556
- * @memberof PartnerTypesApiListPartnerTypes
556
+ * @memberof PartnerTypeApiListPartnerTypes
557
557
  */
558
558
  readonly pageSize?: any
559
559
 
560
560
  /**
561
561
  * 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.
562
562
  * @type {any}
563
- * @memberof PartnerTypesApiListPartnerTypes
563
+ * @memberof PartnerTypeApiListPartnerTypes
564
564
  */
565
565
  readonly pageToken?: any
566
566
 
567
567
  /**
568
568
  * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
569
569
  * @type {any}
570
- * @memberof PartnerTypesApiListPartnerTypes
570
+ * @memberof PartnerTypeApiListPartnerTypes
571
571
  */
572
572
  readonly filter?: any
573
573
 
574
574
  /**
575
575
  * To search the list by any field, pass search=xxx to fetch the result.
576
576
  * @type {any}
577
- * @memberof PartnerTypesApiListPartnerTypes
577
+ * @memberof PartnerTypeApiListPartnerTypes
578
578
  */
579
579
  readonly search?: any
580
580
 
581
581
  /**
582
582
  * The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
583
583
  * @type {any}
584
- * @memberof PartnerTypesApiListPartnerTypes
584
+ * @memberof PartnerTypeApiListPartnerTypes
585
585
  */
586
586
  readonly order?: any
587
587
 
588
588
  /**
589
589
  * Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
590
590
  * @type {any}
591
- * @memberof PartnerTypesApiListPartnerTypes
591
+ * @memberof PartnerTypeApiListPartnerTypes
592
592
  */
593
593
  readonly expand?: any
594
594
 
595
595
  /**
596
596
  * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
597
597
  * @type {any}
598
- * @memberof PartnerTypesApiListPartnerTypes
598
+ * @memberof PartnerTypeApiListPartnerTypes
599
599
  */
600
600
  readonly filters?: any
601
601
  }
602
602
 
603
603
  /**
604
- * Request parameters for updatePartnerType operation in PartnerTypesApi.
604
+ * Request parameters for updatePartnerType operation in PartnerTypeApi.
605
605
  * @export
606
- * @interface PartnerTypesApiUpdatePartnerTypeRequest
606
+ * @interface PartnerTypeApiUpdatePartnerTypeRequest
607
607
  */
608
- export interface PartnerTypesApiUpdatePartnerTypeRequest {
608
+ export interface PartnerTypeApiUpdatePartnerTypeRequest {
609
609
  /**
610
610
  * Unique identifier for the object.
611
611
  * @type {string}
612
- * @memberof PartnerTypesApiUpdatePartnerType
612
+ * @memberof PartnerTypeApiUpdatePartnerType
613
613
  */
614
614
  readonly code: string
615
615
 
616
616
  /**
617
617
  *
618
618
  * @type {UpdatePartnerTypeRequestDto}
619
- * @memberof PartnerTypesApiUpdatePartnerType
619
+ * @memberof PartnerTypeApiUpdatePartnerType
620
620
  */
621
621
  readonly updatePartnerTypeRequestDto: UpdatePartnerTypeRequestDto
622
622
 
623
623
  /**
624
624
  * Bearer Token: provided by the login endpoint under the name accessToken.
625
625
  * @type {string}
626
- * @memberof PartnerTypesApiUpdatePartnerType
626
+ * @memberof PartnerTypeApiUpdatePartnerType
627
627
  */
628
628
  readonly authorization?: string
629
629
  }
630
630
 
631
631
  /**
632
- * PartnerTypesApi - object-oriented interface
632
+ * PartnerTypeApi - object-oriented interface
633
633
  * @export
634
- * @class PartnerTypesApi
634
+ * @class PartnerTypeApi
635
635
  * @extends {BaseAPI}
636
636
  */
637
- export class PartnerTypesApi extends BaseAPI {
637
+ export class PartnerTypeApi extends BaseAPI {
638
638
  /**
639
639
  * This will create a partner type.
640
640
  * @summary Create the partner-types
641
- * @param {PartnerTypesApiCreatePartnerTypeRequest} requestParameters Request parameters.
641
+ * @param {PartnerTypeApiCreatePartnerTypeRequest} requestParameters Request parameters.
642
642
  * @param {*} [options] Override http request option.
643
643
  * @throws {RequiredError}
644
- * @memberof PartnerTypesApi
644
+ * @memberof PartnerTypeApi
645
645
  */
646
- public createPartnerType(requestParameters: PartnerTypesApiCreatePartnerTypeRequest, options?: AxiosRequestConfig) {
647
- return PartnerTypesApiFp(this.configuration).createPartnerType(requestParameters.createPartnerTypeRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
646
+ public createPartnerType(requestParameters: PartnerTypeApiCreatePartnerTypeRequest, options?: AxiosRequestConfig) {
647
+ return PartnerTypeApiFp(this.configuration).createPartnerType(requestParameters.createPartnerTypeRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
648
648
  }
649
649
 
650
650
  /**
651
651
  * Permanently deletes the partner-types. Supply the unique code that was returned when you created the partner-types and this will delete it.
652
652
  * @summary Delete the partner-types
653
- * @param {PartnerTypesApiDeletePartnerTypeRequest} requestParameters Request parameters.
653
+ * @param {PartnerTypeApiDeletePartnerTypeRequest} requestParameters Request parameters.
654
654
  * @param {*} [options] Override http request option.
655
655
  * @throws {RequiredError}
656
- * @memberof PartnerTypesApi
656
+ * @memberof PartnerTypeApi
657
657
  */
658
- public deletePartnerType(requestParameters: PartnerTypesApiDeletePartnerTypeRequest, options?: AxiosRequestConfig) {
659
- return PartnerTypesApiFp(this.configuration).deletePartnerType(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
658
+ public deletePartnerType(requestParameters: PartnerTypeApiDeletePartnerTypeRequest, options?: AxiosRequestConfig) {
659
+ return PartnerTypeApiFp(this.configuration).deletePartnerType(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
660
660
  }
661
661
 
662
662
  /**
663
- * Retrieves the details of the partner-types that was previously created. Supply the unique partner-types code that was returned when you created it and Emil Api will return the corresponding partner-types information.
663
+ * Retrieves the details of the partner-types that was previously created. Supply the unique partner-types code that was returned when you created it and Emil Api will return the corresponding partner-types information.
664
664
  * @summary Retrieve the partner-types
665
- * @param {PartnerTypesApiGetPartnerTypeRequest} requestParameters Request parameters.
665
+ * @param {PartnerTypeApiGetPartnerTypeRequest} requestParameters Request parameters.
666
666
  * @param {*} [options] Override http request option.
667
667
  * @throws {RequiredError}
668
- * @memberof PartnerTypesApi
668
+ * @memberof PartnerTypeApi
669
669
  */
670
- public getPartnerType(requestParameters: PartnerTypesApiGetPartnerTypeRequest, options?: AxiosRequestConfig) {
671
- return PartnerTypesApiFp(this.configuration).getPartnerType(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
670
+ public getPartnerType(requestParameters: PartnerTypeApiGetPartnerTypeRequest, options?: AxiosRequestConfig) {
671
+ return PartnerTypeApiFp(this.configuration).getPartnerType(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
672
672
  }
673
673
 
674
674
  /**
675
675
  * Returns a list of partner-types you have previously created. The partner-types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
676
676
  * @summary List partner-types
677
- * @param {PartnerTypesApiListPartnerTypesRequest} requestParameters Request parameters.
677
+ * @param {PartnerTypeApiListPartnerTypesRequest} requestParameters Request parameters.
678
678
  * @param {*} [options] Override http request option.
679
679
  * @throws {RequiredError}
680
- * @memberof PartnerTypesApi
680
+ * @memberof PartnerTypeApi
681
681
  */
682
- public listPartnerTypes(requestParameters: PartnerTypesApiListPartnerTypesRequest = {}, options?: AxiosRequestConfig) {
683
- return PartnerTypesApiFp(this.configuration).listPartnerTypes(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
682
+ public listPartnerTypes(requestParameters: PartnerTypeApiListPartnerTypesRequest = {}, options?: AxiosRequestConfig) {
683
+ return PartnerTypeApiFp(this.configuration).listPartnerTypes(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
684
684
  }
685
685
 
686
686
  /**
687
687
  * Updates the specified partner-types by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
688
688
  * @summary Update the partner-types
689
- * @param {PartnerTypesApiUpdatePartnerTypeRequest} requestParameters Request parameters.
689
+ * @param {PartnerTypeApiUpdatePartnerTypeRequest} requestParameters Request parameters.
690
690
  * @param {*} [options] Override http request option.
691
691
  * @throws {RequiredError}
692
- * @memberof PartnerTypesApi
692
+ * @memberof PartnerTypeApi
693
693
  */
694
- public updatePartnerType(requestParameters: PartnerTypesApiUpdatePartnerTypeRequest, options?: AxiosRequestConfig) {
695
- return PartnerTypesApiFp(this.configuration).updatePartnerType(requestParameters.code, requestParameters.updatePartnerTypeRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
694
+ public updatePartnerType(requestParameters: PartnerTypeApiUpdatePartnerTypeRequest, options?: AxiosRequestConfig) {
695
+ return PartnerTypeApiFp(this.configuration).updatePartnerType(requestParameters.code, requestParameters.updatePartnerTypeRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
696
696
  }
697
697
  }
@@ -93,7 +93,7 @@ export const PartnerVersionApiAxiosParamCreator = function (configuration?: Conf
93
93
  * @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: code, version, displayName, updatedAt, updatedBy</i>
94
94
  * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
95
95
  * @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: displayName, createdAt, updatedAt, version</i>
96
- * @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: partnerType.<i>
96
+ * @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: partnerType<i>
97
97
  * @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: code, version, displayName, updatedAt, updatedBy</i>
98
98
  * @param {*} [options] Override http request option.
99
99
  * @throws {RequiredError}
@@ -196,7 +196,7 @@ export const PartnerVersionApiFp = function(configuration?: Configuration) {
196
196
  * @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: code, version, displayName, updatedAt, updatedBy</i>
197
197
  * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
198
198
  * @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: displayName, createdAt, updatedAt, version</i>
199
- * @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: partnerType.<i>
199
+ * @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: partnerType<i>
200
200
  * @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: code, version, displayName, updatedAt, updatedBy</i>
201
201
  * @param {*} [options] Override http request option.
202
202
  * @throws {RequiredError}
@@ -237,7 +237,7 @@ export const PartnerVersionApiFactory = function (configuration?: Configuration,
237
237
  * @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: code, version, displayName, updatedAt, updatedBy</i>
238
238
  * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
239
239
  * @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: displayName, createdAt, updatedAt, version</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: partnerType.<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: partnerType<i>
241
241
  * @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: code, version, displayName, updatedAt, updatedBy</i>
242
242
  * @param {*} [options] Override http request option.
243
243
  * @throws {RequiredError}
@@ -332,7 +332,7 @@ export interface PartnerVersionApiListPartnerVersionRequest {
332
332
  readonly order?: string
333
333
 
334
334
  /**
335
- * 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: partnerType.<i>
335
+ * 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: partnerType<i>
336
336
  * @type {string}
337
337
  * @memberof PartnerVersionApiListPartnerVersion
338
338
  */
package/api.ts CHANGED
@@ -25,17 +25,19 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
25
25
  // @ts-ignore
26
26
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
27
27
  import { DefaultApi } from './api';
28
- import { PartnerRelationsApi } from './api';
29
- import { PartnerTagsApi } from './api';
30
- import { PartnerTypesApi } from './api';
28
+ import { PartnerApi } from './api';
29
+ import { PartnerInvitationApi } from './api';
30
+ import { PartnerRelationApi } from './api';
31
+ import { PartnerTagApi } from './api';
32
+ import { PartnerTypeApi } from './api';
31
33
  import { PartnerVersionApi } from './api';
32
- import { PartnersApi } from './api';
33
34
 
34
35
 
35
36
  export * from './api/default-api';
36
- export * from './api/partner-relations-api';
37
- export * from './api/partner-tags-api';
38
- export * from './api/partner-types-api';
37
+ export * from './api/partner-api';
38
+ export * from './api/partner-invitation-api';
39
+ export * from './api/partner-relation-api';
40
+ export * from './api/partner-tag-api';
41
+ export * from './api/partner-type-api';
39
42
  export * from './api/partner-version-api';
40
- export * from './api/partners-api';
41
43
 
package/base.ts CHANGED
@@ -41,7 +41,7 @@ export const COLLECTION_FORMATS = {
41
41
 
42
42
  export interface LoginClass {
43
43
  accessToken: string;
44
- permissions: Array<string>;
44
+ permissions: string;
45
45
  }
46
46
 
47
47
  export enum Environment {
@@ -79,7 +79,7 @@ export class BaseAPI {
79
79
  protected configuration: Configuration;
80
80
  private username?: string;
81
81
  private password?: string;
82
- private permissions: Array<string> = [];
82
+ private permissions?: string;
83
83
 
84
84
  constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {
85
85
  if (configuration) {
@@ -151,7 +151,7 @@ export class BaseAPI {
151
151
  }
152
152
 
153
153
  getPermissions(): Array<string> {
154
- return this.permissions;
154
+ return this.permissions.split(',');
155
155
  }
156
156
 
157
157
  async authorize(username: string, password: string): Promise<void> {