@emilgroup/partner-sdk 1.5.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 (43) hide show
  1. package/.openapi-generator/FILES +10 -4
  2. package/README.md +2 -2
  3. package/api/{partners-api.ts → partner-api.ts} +82 -82
  4. package/api/partner-invitation-api.ts +165 -0
  5. package/api/{partner-relations-api.ts → partner-relation-api.ts} +87 -87
  6. package/api/{partner-tags-api.ts → partner-tag-api.ts} +62 -62
  7. package/api/{partner-types-api.ts → partner-type-api.ts} +64 -64
  8. package/api.ts +10 -8
  9. package/dist/api/{partners-api.d.ts → partner-api.d.ts} +74 -74
  10. package/dist/api/{partners-api.js → partner-api.js} +49 -49
  11. package/dist/api/partner-invitation-api.d.ts +97 -0
  12. package/dist/api/partner-invitation-api.js +224 -0
  13. package/dist/api/{partner-relations-api.d.ts → partner-relation-api.d.ts} +78 -78
  14. package/dist/api/{partner-relations-api.js → partner-relation-api.js} +47 -47
  15. package/dist/api/{partner-tags-api.d.ts → partner-tag-api.d.ts} +55 -55
  16. package/dist/api/{partner-tags-api.js → partner-tag-api.js} +39 -39
  17. package/dist/api/{partner-types-api.d.ts → partner-type-api.d.ts} +57 -57
  18. package/dist/api/{partner-types-api.js → partner-type-api.js} +39 -39
  19. package/dist/api.d.ts +5 -4
  20. package/dist/api.js +5 -4
  21. package/dist/models/create-partner-response-class.d.ts +7 -0
  22. package/dist/models/index.d.ts +5 -0
  23. package/dist/models/index.js +5 -0
  24. package/dist/models/invite-class.d.ts +79 -0
  25. package/dist/models/invite-class.js +15 -0
  26. package/dist/models/invite-partner-to-eis-response-class.d.ts +25 -0
  27. package/dist/models/invite-partner-to-eis-response-class.js +15 -0
  28. package/dist/models/invite-partner-to-eisrequest-dto.d.ts +42 -0
  29. package/dist/models/invite-partner-to-eisrequest-dto.js +15 -0
  30. package/dist/models/partner-class.d.ts +12 -0
  31. package/dist/models/permission-class.d.ts +72 -0
  32. package/dist/models/permission-class.js +15 -0
  33. package/dist/models/role-class.d.ts +73 -0
  34. package/dist/models/role-class.js +15 -0
  35. package/models/create-partner-response-class.ts +7 -0
  36. package/models/index.ts +5 -0
  37. package/models/invite-class.ts +85 -0
  38. package/models/invite-partner-to-eis-response-class.ts +31 -0
  39. package/models/invite-partner-to-eisrequest-dto.ts +48 -0
  40. package/models/partner-class.ts +12 -0
  41. package/models/permission-class.ts +78 -0
  42. package/models/role-class.ts +79 -0
  43. package/package.json +1 -1
@@ -4,11 +4,12 @@
4
4
  README.md
5
5
  api.ts
6
6
  api/default-api.ts
7
- api/partner-relations-api.ts
8
- api/partner-tags-api.ts
9
- api/partner-types-api.ts
7
+ api/partner-api.ts
8
+ api/partner-invitation-api.ts
9
+ api/partner-relation-api.ts
10
+ api/partner-tag-api.ts
11
+ api/partner-type-api.ts
10
12
  api/partner-version-api.ts
11
- api/partners-api.ts
12
13
  base.ts
13
14
  common.ts
14
15
  configuration.ts
@@ -32,6 +33,9 @@ models/get-tag-response-class.ts
32
33
  models/index.ts
33
34
  models/inline-response200.ts
34
35
  models/inline-response503.ts
36
+ models/invite-class.ts
37
+ models/invite-partner-to-eis-response-class.ts
38
+ models/invite-partner-to-eisrequest-dto.ts
35
39
  models/list-partner-relation-class.ts
36
40
  models/list-partner-relation-types-class.ts
37
41
  models/list-partner-types-response-class.ts
@@ -42,6 +46,8 @@ models/partner-class.ts
42
46
  models/partner-relation-class.ts
43
47
  models/partner-relation-type-class.ts
44
48
  models/partner-type-class.ts
49
+ models/permission-class.ts
50
+ models/role-class.ts
45
51
  models/tag-class.ts
46
52
  models/tag-partner-request-dto-rest.ts
47
53
  models/update-partner-relation-request-dto-rest.ts
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/partner-sdk@1.5.0 --save
20
+ npm install @emilgroup/partner-sdk@1.5.1-beta.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/partner-sdk@1.5.0
24
+ yarn add @emilgroup/partner-sdk@1.5.1-beta.0
25
25
  ```
26
26
 
27
27
  And then you can import `PartnersApi`.
@@ -37,10 +37,10 @@ import { UpdatePartnerRequestDto } from '../models';
37
37
  // @ts-ignore
38
38
  import { UpdatePartnerResponseClass } from '../models';
39
39
  /**
40
- * PartnersApi - axios parameter creator
40
+ * PartnerApi - axios parameter creator
41
41
  * @export
42
42
  */
43
- export const PartnersApiAxiosParamCreator = function (configuration?: Configuration) {
43
+ export const PartnerApiAxiosParamCreator = function (configuration?: Configuration) {
44
44
  return {
45
45
  /**
46
46
  * This will create a partner.
@@ -190,11 +190,11 @@ export const PartnersApiAxiosParamCreator = function (configuration?: Configurat
190
190
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
191
191
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
192
192
  * @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.
193
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId</i>
193
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode</i>
194
194
  * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
195
195
  * @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: id, code, displayName, createdAt, updatedAt, version, tags, tagSlugs</i>
196
196
  * @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, tags<i>
197
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId</i>
197
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode</i>
198
198
  * @param {*} [options] Override http request option.
199
199
  * @throws {RequiredError}
200
200
  */
@@ -366,11 +366,11 @@ export const PartnersApiAxiosParamCreator = function (configuration?: Configurat
366
366
  };
367
367
 
368
368
  /**
369
- * PartnersApi - functional programming interface
369
+ * PartnerApi - functional programming interface
370
370
  * @export
371
371
  */
372
- export const PartnersApiFp = function(configuration?: Configuration) {
373
- const localVarAxiosParamCreator = PartnersApiAxiosParamCreator(configuration)
372
+ export const PartnerApiFp = function(configuration?: Configuration) {
373
+ const localVarAxiosParamCreator = PartnerApiAxiosParamCreator(configuration)
374
374
  return {
375
375
  /**
376
376
  * This will create a partner.
@@ -415,11 +415,11 @@ export const PartnersApiFp = function(configuration?: Configuration) {
415
415
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
416
416
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
417
417
  * @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.
418
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId</i>
418
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode</i>
419
419
  * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
420
420
  * @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: id, code, displayName, createdAt, updatedAt, version, tags, tagSlugs</i>
421
421
  * @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, tags<i>
422
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId</i>
422
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode</i>
423
423
  * @param {*} [options] Override http request option.
424
424
  * @throws {RequiredError}
425
425
  */
@@ -457,11 +457,11 @@ export const PartnersApiFp = function(configuration?: Configuration) {
457
457
  };
458
458
 
459
459
  /**
460
- * PartnersApi - factory interface
460
+ * PartnerApi - factory interface
461
461
  * @export
462
462
  */
463
- export const PartnersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
464
- const localVarFp = PartnersApiFp(configuration)
463
+ export const PartnerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
464
+ const localVarFp = PartnerApiFp(configuration)
465
465
  return {
466
466
  /**
467
467
  * This will create a partner.
@@ -503,11 +503,11 @@ export const PartnersApiFactory = function (configuration?: Configuration, baseP
503
503
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
504
504
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
505
505
  * @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.
506
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId</i>
506
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode</i>
507
507
  * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
508
508
  * @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: id, code, displayName, createdAt, updatedAt, version, tags, tagSlugs</i>
509
509
  * @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, tags<i>
510
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId</i>
510
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode</i>
511
511
  * @param {*} [options] Override http request option.
512
512
  * @throws {RequiredError}
513
513
  */
@@ -542,270 +542,270 @@ export const PartnersApiFactory = function (configuration?: Configuration, baseP
542
542
  };
543
543
 
544
544
  /**
545
- * Request parameters for createPartner operation in PartnersApi.
545
+ * Request parameters for createPartner operation in PartnerApi.
546
546
  * @export
547
- * @interface PartnersApiCreatePartnerRequest
547
+ * @interface PartnerApiCreatePartnerRequest
548
548
  */
549
- export interface PartnersApiCreatePartnerRequest {
549
+ export interface PartnerApiCreatePartnerRequest {
550
550
  /**
551
551
  *
552
552
  * @type {CreatePartnerRequestDto}
553
- * @memberof PartnersApiCreatePartner
553
+ * @memberof PartnerApiCreatePartner
554
554
  */
555
555
  readonly createPartnerRequestDto: CreatePartnerRequestDto
556
556
 
557
557
  /**
558
558
  * Bearer Token: provided by the login endpoint under the name accessToken.
559
559
  * @type {string}
560
- * @memberof PartnersApiCreatePartner
560
+ * @memberof PartnerApiCreatePartner
561
561
  */
562
562
  readonly authorization?: string
563
563
  }
564
564
 
565
565
  /**
566
- * Request parameters for deletePartner operation in PartnersApi.
566
+ * Request parameters for deletePartner operation in PartnerApi.
567
567
  * @export
568
- * @interface PartnersApiDeletePartnerRequest
568
+ * @interface PartnerApiDeletePartnerRequest
569
569
  */
570
- export interface PartnersApiDeletePartnerRequest {
570
+ export interface PartnerApiDeletePartnerRequest {
571
571
  /**
572
572
  *
573
573
  * @type {string}
574
- * @memberof PartnersApiDeletePartner
574
+ * @memberof PartnerApiDeletePartner
575
575
  */
576
576
  readonly code: string
577
577
 
578
578
  /**
579
579
  * Bearer Token: provided by the login endpoint under the name accessToken.
580
580
  * @type {string}
581
- * @memberof PartnersApiDeletePartner
581
+ * @memberof PartnerApiDeletePartner
582
582
  */
583
583
  readonly authorization?: string
584
584
  }
585
585
 
586
586
  /**
587
- * Request parameters for getPartner operation in PartnersApi.
587
+ * Request parameters for getPartner operation in PartnerApi.
588
588
  * @export
589
- * @interface PartnersApiGetPartnerRequest
589
+ * @interface PartnerApiGetPartnerRequest
590
590
  */
591
- export interface PartnersApiGetPartnerRequest {
591
+ export interface PartnerApiGetPartnerRequest {
592
592
  /**
593
593
  * Unique identifier for the object.
594
594
  * @type {string}
595
- * @memberof PartnersApiGetPartner
595
+ * @memberof PartnerApiGetPartner
596
596
  */
597
597
  readonly code: string
598
598
 
599
599
  /**
600
600
  * Bearer Token: provided by the login endpoint under the name accessToken.
601
601
  * @type {string}
602
- * @memberof PartnersApiGetPartner
602
+ * @memberof PartnerApiGetPartner
603
603
  */
604
604
  readonly authorization?: string
605
605
 
606
606
  /**
607
607
  *
608
608
  * @type {any}
609
- * @memberof PartnersApiGetPartner
609
+ * @memberof PartnerApiGetPartner
610
610
  */
611
611
  readonly expand?: any
612
612
  }
613
613
 
614
614
  /**
615
- * Request parameters for listPartners operation in PartnersApi.
615
+ * Request parameters for listPartners operation in PartnerApi.
616
616
  * @export
617
- * @interface PartnersApiListPartnersRequest
617
+ * @interface PartnerApiListPartnersRequest
618
618
  */
619
- export interface PartnersApiListPartnersRequest {
619
+ export interface PartnerApiListPartnersRequest {
620
620
  /**
621
621
  * Bearer Token: provided by the login endpoint under the name accessToken.
622
622
  * @type {string}
623
- * @memberof PartnersApiListPartners
623
+ * @memberof PartnerApiListPartners
624
624
  */
625
625
  readonly authorization?: string
626
626
 
627
627
  /**
628
628
  * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
629
629
  * @type {any}
630
- * @memberof PartnersApiListPartners
630
+ * @memberof PartnerApiListPartners
631
631
  */
632
632
  readonly pageSize?: any
633
633
 
634
634
  /**
635
635
  * 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.
636
636
  * @type {any}
637
- * @memberof PartnersApiListPartners
637
+ * @memberof PartnerApiListPartners
638
638
  */
639
639
  readonly pageToken?: any
640
640
 
641
641
  /**
642
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId</i>
642
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode</i>
643
643
  * @type {string}
644
- * @memberof PartnersApiListPartners
644
+ * @memberof PartnerApiListPartners
645
645
  */
646
646
  readonly filter?: string
647
647
 
648
648
  /**
649
649
  * To search the list by any field, pass search=xxx to fetch the result.
650
650
  * @type {any}
651
- * @memberof PartnersApiListPartners
651
+ * @memberof PartnerApiListPartners
652
652
  */
653
653
  readonly search?: any
654
654
 
655
655
  /**
656
656
  * 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: id, code, displayName, createdAt, updatedAt, version, tags, tagSlugs</i>
657
657
  * @type {string}
658
- * @memberof PartnersApiListPartners
658
+ * @memberof PartnerApiListPartners
659
659
  */
660
660
  readonly order?: string
661
661
 
662
662
  /**
663
663
  * 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, tags<i>
664
664
  * @type {string}
665
- * @memberof PartnersApiListPartners
665
+ * @memberof PartnerApiListPartners
666
666
  */
667
667
  readonly expand?: string
668
668
 
669
669
  /**
670
- * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId</i>
670
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode</i>
671
671
  * @type {string}
672
- * @memberof PartnersApiListPartners
672
+ * @memberof PartnerApiListPartners
673
673
  */
674
674
  readonly filters?: string
675
675
  }
676
676
 
677
677
  /**
678
- * Request parameters for tagPartner operation in PartnersApi.
678
+ * Request parameters for tagPartner operation in PartnerApi.
679
679
  * @export
680
- * @interface PartnersApiTagPartnerRequest
680
+ * @interface PartnerApiTagPartnerRequest
681
681
  */
682
- export interface PartnersApiTagPartnerRequest {
682
+ export interface PartnerApiTagPartnerRequest {
683
683
  /**
684
684
  *
685
685
  * @type {string}
686
- * @memberof PartnersApiTagPartner
686
+ * @memberof PartnerApiTagPartner
687
687
  */
688
688
  readonly code: string
689
689
 
690
690
  /**
691
691
  *
692
692
  * @type {TagPartnerRequestDtoRest}
693
- * @memberof PartnersApiTagPartner
693
+ * @memberof PartnerApiTagPartner
694
694
  */
695
695
  readonly tagPartnerRequestDtoRest: TagPartnerRequestDtoRest
696
696
 
697
697
  /**
698
698
  * Bearer Token: provided by the login endpoint under the name accessToken.
699
699
  * @type {string}
700
- * @memberof PartnersApiTagPartner
700
+ * @memberof PartnerApiTagPartner
701
701
  */
702
702
  readonly authorization?: string
703
703
  }
704
704
 
705
705
  /**
706
- * Request parameters for updatePartner operation in PartnersApi.
706
+ * Request parameters for updatePartner operation in PartnerApi.
707
707
  * @export
708
- * @interface PartnersApiUpdatePartnerRequest
708
+ * @interface PartnerApiUpdatePartnerRequest
709
709
  */
710
- export interface PartnersApiUpdatePartnerRequest {
710
+ export interface PartnerApiUpdatePartnerRequest {
711
711
  /**
712
712
  * Unique identifier for the object.
713
713
  * @type {string}
714
- * @memberof PartnersApiUpdatePartner
714
+ * @memberof PartnerApiUpdatePartner
715
715
  */
716
716
  readonly code: string
717
717
 
718
718
  /**
719
719
  *
720
720
  * @type {UpdatePartnerRequestDto}
721
- * @memberof PartnersApiUpdatePartner
721
+ * @memberof PartnerApiUpdatePartner
722
722
  */
723
723
  readonly updatePartnerRequestDto: UpdatePartnerRequestDto
724
724
 
725
725
  /**
726
726
  * Bearer Token: provided by the login endpoint under the name accessToken.
727
727
  * @type {string}
728
- * @memberof PartnersApiUpdatePartner
728
+ * @memberof PartnerApiUpdatePartner
729
729
  */
730
730
  readonly authorization?: string
731
731
  }
732
732
 
733
733
  /**
734
- * PartnersApi - object-oriented interface
734
+ * PartnerApi - object-oriented interface
735
735
  * @export
736
- * @class PartnersApi
736
+ * @class PartnerApi
737
737
  * @extends {BaseAPI}
738
738
  */
739
- export class PartnersApi extends BaseAPI {
739
+ export class PartnerApi extends BaseAPI {
740
740
  /**
741
741
  * This will create a partner.
742
742
  * @summary Create the partner
743
- * @param {PartnersApiCreatePartnerRequest} requestParameters Request parameters.
743
+ * @param {PartnerApiCreatePartnerRequest} requestParameters Request parameters.
744
744
  * @param {*} [options] Override http request option.
745
745
  * @throws {RequiredError}
746
- * @memberof PartnersApi
746
+ * @memberof PartnerApi
747
747
  */
748
- public createPartner(requestParameters: PartnersApiCreatePartnerRequest, options?: AxiosRequestConfig) {
749
- return PartnersApiFp(this.configuration).createPartner(requestParameters.createPartnerRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
748
+ public createPartner(requestParameters: PartnerApiCreatePartnerRequest, options?: AxiosRequestConfig) {
749
+ return PartnerApiFp(this.configuration).createPartner(requestParameters.createPartnerRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
750
750
  }
751
751
 
752
752
  /**
753
753
  * Permanently deletes the partner. Supply the unique code that was returned when you created the partner and this will delete it.
754
754
  * @summary Delete the partner
755
- * @param {PartnersApiDeletePartnerRequest} requestParameters Request parameters.
755
+ * @param {PartnerApiDeletePartnerRequest} requestParameters Request parameters.
756
756
  * @param {*} [options] Override http request option.
757
757
  * @throws {RequiredError}
758
- * @memberof PartnersApi
758
+ * @memberof PartnerApi
759
759
  */
760
- public deletePartner(requestParameters: PartnersApiDeletePartnerRequest, options?: AxiosRequestConfig) {
761
- return PartnersApiFp(this.configuration).deletePartner(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
760
+ public deletePartner(requestParameters: PartnerApiDeletePartnerRequest, options?: AxiosRequestConfig) {
761
+ return PartnerApiFp(this.configuration).deletePartner(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
762
762
  }
763
763
 
764
764
  /**
765
765
  * Retrieves the details of the partner that was previously created. Supply the unique partner code that was returned when you created it and Emil Api will return the corresponding partner information.
766
766
  * @summary Retrieve the partner
767
- * @param {PartnersApiGetPartnerRequest} requestParameters Request parameters.
767
+ * @param {PartnerApiGetPartnerRequest} requestParameters Request parameters.
768
768
  * @param {*} [options] Override http request option.
769
769
  * @throws {RequiredError}
770
- * @memberof PartnersApi
770
+ * @memberof PartnerApi
771
771
  */
772
- public getPartner(requestParameters: PartnersApiGetPartnerRequest, options?: AxiosRequestConfig) {
773
- return PartnersApiFp(this.configuration).getPartner(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
772
+ public getPartner(requestParameters: PartnerApiGetPartnerRequest, options?: AxiosRequestConfig) {
773
+ return PartnerApiFp(this.configuration).getPartner(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
774
774
  }
775
775
 
776
776
  /**
777
777
  * Returns a list of partners you have previously created. The partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
778
778
  * @summary List partners
779
- * @param {PartnersApiListPartnersRequest} requestParameters Request parameters.
779
+ * @param {PartnerApiListPartnersRequest} requestParameters Request parameters.
780
780
  * @param {*} [options] Override http request option.
781
781
  * @throws {RequiredError}
782
- * @memberof PartnersApi
782
+ * @memberof PartnerApi
783
783
  */
784
- public listPartners(requestParameters: PartnersApiListPartnersRequest = {}, options?: AxiosRequestConfig) {
785
- return PartnersApiFp(this.configuration).listPartners(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
784
+ public listPartners(requestParameters: PartnerApiListPartnersRequest = {}, options?: AxiosRequestConfig) {
785
+ return PartnerApiFp(this.configuration).listPartners(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
786
786
  }
787
787
 
788
788
  /**
789
789
  * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
790
790
  * @summary Update the partner
791
- * @param {PartnersApiTagPartnerRequest} requestParameters Request parameters.
791
+ * @param {PartnerApiTagPartnerRequest} requestParameters Request parameters.
792
792
  * @param {*} [options] Override http request option.
793
793
  * @throws {RequiredError}
794
- * @memberof PartnersApi
794
+ * @memberof PartnerApi
795
795
  */
796
- public tagPartner(requestParameters: PartnersApiTagPartnerRequest, options?: AxiosRequestConfig) {
797
- return PartnersApiFp(this.configuration).tagPartner(requestParameters.code, requestParameters.tagPartnerRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
796
+ public tagPartner(requestParameters: PartnerApiTagPartnerRequest, options?: AxiosRequestConfig) {
797
+ return PartnerApiFp(this.configuration).tagPartner(requestParameters.code, requestParameters.tagPartnerRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
798
798
  }
799
799
 
800
800
  /**
801
801
  * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
802
802
  * @summary Update the partner
803
- * @param {PartnersApiUpdatePartnerRequest} requestParameters Request parameters.
803
+ * @param {PartnerApiUpdatePartnerRequest} requestParameters Request parameters.
804
804
  * @param {*} [options] Override http request option.
805
805
  * @throws {RequiredError}
806
- * @memberof PartnersApi
806
+ * @memberof PartnerApi
807
807
  */
808
- public updatePartner(requestParameters: PartnersApiUpdatePartnerRequest, options?: AxiosRequestConfig) {
809
- return PartnersApiFp(this.configuration).updatePartner(requestParameters.code, requestParameters.updatePartnerRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
808
+ public updatePartner(requestParameters: PartnerApiUpdatePartnerRequest, options?: AxiosRequestConfig) {
809
+ return PartnerApiFp(this.configuration).updatePartner(requestParameters.code, requestParameters.updatePartnerRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
810
810
  }
811
811
  }
@@ -0,0 +1,165 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL PartnerService
5
+ * The EMIL PartnerService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { InvitePartnerToEISRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { InvitePartnerToEisResponseClass } from '../models';
27
+ /**
28
+ * PartnerInvitationApi - axios parameter creator
29
+ * @export
30
+ */
31
+ export const PartnerInvitationApiAxiosParamCreator = function (configuration?: Configuration) {
32
+ return {
33
+ /**
34
+ * Invites a partner to EIS Platform - partner must have one of vermittler,intermediary to be eligible for invitation.
35
+ * @summary Create the Partner Invitation
36
+ * @param {InvitePartnerToEISRequestDto} invitePartnerToEISRequestDto
37
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
38
+ * @param {*} [options] Override http request option.
39
+ * @throws {RequiredError}
40
+ */
41
+ invitePartnerToEIS: async (invitePartnerToEISRequestDto: InvitePartnerToEISRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
42
+ // verify required parameter 'invitePartnerToEISRequestDto' is not null or undefined
43
+ assertParamExists('invitePartnerToEIS', 'invitePartnerToEISRequestDto', invitePartnerToEISRequestDto)
44
+ const localVarPath = `/partnerservice/v1/partner-invitation`;
45
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
46
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
47
+ let baseOptions;
48
+ let baseAccessToken;
49
+ if (configuration) {
50
+ baseOptions = configuration.baseOptions;
51
+ baseAccessToken = configuration.accessToken;
52
+ }
53
+
54
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
55
+ const localVarHeaderParameter = {} as any;
56
+ const localVarQueryParameter = {} as any;
57
+
58
+ // authentication bearer required
59
+ // http bearer authentication required
60
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
61
+
62
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
63
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
64
+ }
65
+
66
+
67
+
68
+ localVarHeaderParameter['Content-Type'] = 'application/json';
69
+
70
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
71
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
72
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
73
+ localVarRequestOptions.data = serializeDataIfNeeded(invitePartnerToEISRequestDto, localVarRequestOptions, configuration)
74
+
75
+ return {
76
+ url: toPathString(localVarUrlObj),
77
+ options: localVarRequestOptions,
78
+ };
79
+ },
80
+ }
81
+ };
82
+
83
+ /**
84
+ * PartnerInvitationApi - functional programming interface
85
+ * @export
86
+ */
87
+ export const PartnerInvitationApiFp = function(configuration?: Configuration) {
88
+ const localVarAxiosParamCreator = PartnerInvitationApiAxiosParamCreator(configuration)
89
+ return {
90
+ /**
91
+ * Invites a partner to EIS Platform - partner must have one of vermittler,intermediary to be eligible for invitation.
92
+ * @summary Create the Partner Invitation
93
+ * @param {InvitePartnerToEISRequestDto} invitePartnerToEISRequestDto
94
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
95
+ * @param {*} [options] Override http request option.
96
+ * @throws {RequiredError}
97
+ */
98
+ async invitePartnerToEIS(invitePartnerToEISRequestDto: InvitePartnerToEISRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InvitePartnerToEisResponseClass>> {
99
+ const localVarAxiosArgs = await localVarAxiosParamCreator.invitePartnerToEIS(invitePartnerToEISRequestDto, authorization, options);
100
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
101
+ },
102
+ }
103
+ };
104
+
105
+ /**
106
+ * PartnerInvitationApi - factory interface
107
+ * @export
108
+ */
109
+ export const PartnerInvitationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
110
+ const localVarFp = PartnerInvitationApiFp(configuration)
111
+ return {
112
+ /**
113
+ * Invites a partner to EIS Platform - partner must have one of vermittler,intermediary to be eligible for invitation.
114
+ * @summary Create the Partner Invitation
115
+ * @param {InvitePartnerToEISRequestDto} invitePartnerToEISRequestDto
116
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
117
+ * @param {*} [options] Override http request option.
118
+ * @throws {RequiredError}
119
+ */
120
+ invitePartnerToEIS(invitePartnerToEISRequestDto: InvitePartnerToEISRequestDto, authorization?: string, options?: any): AxiosPromise<InvitePartnerToEisResponseClass> {
121
+ return localVarFp.invitePartnerToEIS(invitePartnerToEISRequestDto, authorization, options).then((request) => request(axios, basePath));
122
+ },
123
+ };
124
+ };
125
+
126
+ /**
127
+ * Request parameters for invitePartnerToEIS operation in PartnerInvitationApi.
128
+ * @export
129
+ * @interface PartnerInvitationApiInvitePartnerToEISRequest
130
+ */
131
+ export interface PartnerInvitationApiInvitePartnerToEISRequest {
132
+ /**
133
+ *
134
+ * @type {InvitePartnerToEISRequestDto}
135
+ * @memberof PartnerInvitationApiInvitePartnerToEIS
136
+ */
137
+ readonly invitePartnerToEISRequestDto: InvitePartnerToEISRequestDto
138
+
139
+ /**
140
+ * Bearer Token: provided by the login endpoint under the name accessToken.
141
+ * @type {string}
142
+ * @memberof PartnerInvitationApiInvitePartnerToEIS
143
+ */
144
+ readonly authorization?: string
145
+ }
146
+
147
+ /**
148
+ * PartnerInvitationApi - object-oriented interface
149
+ * @export
150
+ * @class PartnerInvitationApi
151
+ * @extends {BaseAPI}
152
+ */
153
+ export class PartnerInvitationApi extends BaseAPI {
154
+ /**
155
+ * Invites a partner to EIS Platform - partner must have one of vermittler,intermediary to be eligible for invitation.
156
+ * @summary Create the Partner Invitation
157
+ * @param {PartnerInvitationApiInvitePartnerToEISRequest} requestParameters Request parameters.
158
+ * @param {*} [options] Override http request option.
159
+ * @throws {RequiredError}
160
+ * @memberof PartnerInvitationApi
161
+ */
162
+ public invitePartnerToEIS(requestParameters: PartnerInvitationApiInvitePartnerToEISRequest, options?: AxiosRequestConfig) {
163
+ return PartnerInvitationApiFp(this.configuration).invitePartnerToEIS(requestParameters.invitePartnerToEISRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
164
+ }
165
+ }