@emilgroup/partner-sdk-node 1.7.0 → 1.8.1-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +6 -6
- package/README.md +2 -2
- package/api/{partner-invitation-api.ts → partner-invitations-api.ts} +20 -20
- package/api/{partner-relation-api.ts → partner-relations-api.ts} +87 -87
- package/api/{partner-tag-api.ts → partner-tags-api.ts} +62 -62
- package/api/{partner-type-api.ts → partner-types-api.ts} +64 -64
- package/api/{partner-version-api.ts → partner-versions-api.ts} +37 -37
- package/api/{partner-api.ts → partners-api.ts} +74 -74
- package/api.ts +12 -12
- package/dist/api/{partner-invitation-api.d.ts → partner-invitations-api.d.ts} +17 -17
- package/dist/api/{partner-invitation-api.js → partner-invitations-api.js} +23 -23
- package/dist/api/{partner-relation-api.d.ts → partner-relations-api.d.ts} +78 -78
- package/dist/api/{partner-relation-api.js → partner-relations-api.js} +47 -47
- package/dist/api/{partner-tag-api.d.ts → partner-tags-api.d.ts} +55 -55
- package/dist/api/{partner-tag-api.js → partner-tags-api.js} +39 -39
- package/dist/api/{partner-type-api.d.ts → partner-types-api.d.ts} +57 -57
- package/dist/api/{partner-type-api.js → partner-types-api.js} +39 -39
- package/dist/api/{partner-version-api.d.ts → partner-versions-api.d.ts} +33 -33
- package/dist/api/{partner-version-api.js → partner-versions-api.js} +27 -27
- package/dist/api/{partner-api.d.ts → partners-api.d.ts} +66 -66
- package/dist/api/{partner-api.js → partners-api.js} +43 -43
- package/dist/api.d.ts +6 -6
- package/dist/api.js +6 -6
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
README.md
|
|
5
5
|
api.ts
|
|
6
6
|
api/default-api.ts
|
|
7
|
-
api/partner-api.ts
|
|
8
|
-
api/partner-
|
|
9
|
-
api/partner-
|
|
10
|
-
api/partner-
|
|
11
|
-
api/partner-
|
|
12
|
-
api/
|
|
7
|
+
api/partner-invitations-api.ts
|
|
8
|
+
api/partner-relations-api.ts
|
|
9
|
+
api/partner-tags-api.ts
|
|
10
|
+
api/partner-types-api.ts
|
|
11
|
+
api/partner-versions-api.ts
|
|
12
|
+
api/partners-api.ts
|
|
13
13
|
base.ts
|
|
14
14
|
common.ts
|
|
15
15
|
configuration.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-node@1.
|
|
20
|
+
npm install @emilgroup/partner-sdk-node@1.8.1-beta.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/partner-sdk-node@1.
|
|
24
|
+
yarn add @emilgroup/partner-sdk-node@1.8.1-beta.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PartnersApi`.
|
|
@@ -29,10 +29,10 @@ import { InvitePartnerToEisResponseClass } from '../models';
|
|
|
29
29
|
import { URL, URLSearchParams } from 'url';
|
|
30
30
|
const FormData = require('form-data');
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* PartnerInvitationsApi - axios parameter creator
|
|
33
33
|
* @export
|
|
34
34
|
*/
|
|
35
|
-
export const
|
|
35
|
+
export const PartnerInvitationsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
36
36
|
return {
|
|
37
37
|
/**
|
|
38
38
|
* Invites a partner to EIS Platform - partner must have one of vermittler,intermediary to be eligible for invitation.
|
|
@@ -85,11 +85,11 @@ export const PartnerInvitationApiAxiosParamCreator = function (configuration?: C
|
|
|
85
85
|
};
|
|
86
86
|
|
|
87
87
|
/**
|
|
88
|
-
*
|
|
88
|
+
* PartnerInvitationsApi - functional programming interface
|
|
89
89
|
* @export
|
|
90
90
|
*/
|
|
91
|
-
export const
|
|
92
|
-
const localVarAxiosParamCreator =
|
|
91
|
+
export const PartnerInvitationsApiFp = function(configuration?: Configuration) {
|
|
92
|
+
const localVarAxiosParamCreator = PartnerInvitationsApiAxiosParamCreator(configuration)
|
|
93
93
|
return {
|
|
94
94
|
/**
|
|
95
95
|
* Invites a partner to EIS Platform - partner must have one of vermittler,intermediary to be eligible for invitation.
|
|
@@ -107,11 +107,11 @@ export const PartnerInvitationApiFp = function(configuration?: Configuration) {
|
|
|
107
107
|
};
|
|
108
108
|
|
|
109
109
|
/**
|
|
110
|
-
*
|
|
110
|
+
* PartnerInvitationsApi - factory interface
|
|
111
111
|
* @export
|
|
112
112
|
*/
|
|
113
|
-
export const
|
|
114
|
-
const localVarFp =
|
|
113
|
+
export const PartnerInvitationsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
114
|
+
const localVarFp = PartnerInvitationsApiFp(configuration)
|
|
115
115
|
return {
|
|
116
116
|
/**
|
|
117
117
|
* Invites a partner to EIS Platform - partner must have one of vermittler,intermediary to be eligible for invitation.
|
|
@@ -128,42 +128,42 @@ export const PartnerInvitationApiFactory = function (configuration?: Configurati
|
|
|
128
128
|
};
|
|
129
129
|
|
|
130
130
|
/**
|
|
131
|
-
* Request parameters for invitePartnerToEIS operation in
|
|
131
|
+
* Request parameters for invitePartnerToEIS operation in PartnerInvitationsApi.
|
|
132
132
|
* @export
|
|
133
|
-
* @interface
|
|
133
|
+
* @interface PartnerInvitationsApiInvitePartnerToEISRequest
|
|
134
134
|
*/
|
|
135
|
-
export interface
|
|
135
|
+
export interface PartnerInvitationsApiInvitePartnerToEISRequest {
|
|
136
136
|
/**
|
|
137
137
|
*
|
|
138
138
|
* @type {InvitePartnerToEISRequestDto}
|
|
139
|
-
* @memberof
|
|
139
|
+
* @memberof PartnerInvitationsApiInvitePartnerToEIS
|
|
140
140
|
*/
|
|
141
141
|
readonly invitePartnerToEISRequestDto: InvitePartnerToEISRequestDto
|
|
142
142
|
|
|
143
143
|
/**
|
|
144
144
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
145
145
|
* @type {string}
|
|
146
|
-
* @memberof
|
|
146
|
+
* @memberof PartnerInvitationsApiInvitePartnerToEIS
|
|
147
147
|
*/
|
|
148
148
|
readonly authorization?: string
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
/**
|
|
152
|
-
*
|
|
152
|
+
* PartnerInvitationsApi - object-oriented interface
|
|
153
153
|
* @export
|
|
154
|
-
* @class
|
|
154
|
+
* @class PartnerInvitationsApi
|
|
155
155
|
* @extends {BaseAPI}
|
|
156
156
|
*/
|
|
157
|
-
export class
|
|
157
|
+
export class PartnerInvitationsApi extends BaseAPI {
|
|
158
158
|
/**
|
|
159
159
|
* Invites a partner to EIS Platform - partner must have one of vermittler,intermediary to be eligible for invitation.
|
|
160
160
|
* @summary Create the Partner Invitation
|
|
161
|
-
* @param {
|
|
161
|
+
* @param {PartnerInvitationsApiInvitePartnerToEISRequest} requestParameters Request parameters.
|
|
162
162
|
* @param {*} [options] Override http request option.
|
|
163
163
|
* @throws {RequiredError}
|
|
164
|
-
* @memberof
|
|
164
|
+
* @memberof PartnerInvitationsApi
|
|
165
165
|
*/
|
|
166
|
-
public invitePartnerToEIS(requestParameters:
|
|
167
|
-
return
|
|
166
|
+
public invitePartnerToEIS(requestParameters: PartnerInvitationsApiInvitePartnerToEISRequest, options?: AxiosRequestConfig) {
|
|
167
|
+
return PartnerInvitationsApiFp(this.configuration).invitePartnerToEIS(requestParameters.invitePartnerToEISRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
168
168
|
}
|
|
169
169
|
}
|
|
@@ -41,10 +41,10 @@ import { UpdatePartnerRelationRequestDtoRest } from '../models';
|
|
|
41
41
|
import { URL, URLSearchParams } from 'url';
|
|
42
42
|
const FormData = require('form-data');
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
44
|
+
* PartnerRelationsApi - axios parameter creator
|
|
45
45
|
* @export
|
|
46
46
|
*/
|
|
47
|
-
export const
|
|
47
|
+
export const PartnerRelationsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
48
48
|
return {
|
|
49
49
|
/**
|
|
50
50
|
* This will create a relationship between two partners. For example a parent-child relationship, or a partnership agreement.
|
|
@@ -435,11 +435,11 @@ export const PartnerRelationApiAxiosParamCreator = function (configuration?: Con
|
|
|
435
435
|
};
|
|
436
436
|
|
|
437
437
|
/**
|
|
438
|
-
*
|
|
438
|
+
* PartnerRelationsApi - functional programming interface
|
|
439
439
|
* @export
|
|
440
440
|
*/
|
|
441
|
-
export const
|
|
442
|
-
const localVarAxiosParamCreator =
|
|
441
|
+
export const PartnerRelationsApiFp = function(configuration?: Configuration) {
|
|
442
|
+
const localVarAxiosParamCreator = PartnerRelationsApiAxiosParamCreator(configuration)
|
|
443
443
|
return {
|
|
444
444
|
/**
|
|
445
445
|
* This will create a relationship between two partners. For example a parent-child relationship, or a partnership agreement.
|
|
@@ -542,11 +542,11 @@ export const PartnerRelationApiFp = function(configuration?: Configuration) {
|
|
|
542
542
|
};
|
|
543
543
|
|
|
544
544
|
/**
|
|
545
|
-
*
|
|
545
|
+
* PartnerRelationsApi - factory interface
|
|
546
546
|
* @export
|
|
547
547
|
*/
|
|
548
|
-
export const
|
|
549
|
-
const localVarFp =
|
|
548
|
+
export const PartnerRelationsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
549
|
+
const localVarFp = PartnerRelationsApiFp(configuration)
|
|
550
550
|
return {
|
|
551
551
|
/**
|
|
552
552
|
* This will create a relationship between two partners. For example a parent-child relationship, or a partnership agreement.
|
|
@@ -642,331 +642,331 @@ export const PartnerRelationApiFactory = function (configuration?: Configuration
|
|
|
642
642
|
};
|
|
643
643
|
|
|
644
644
|
/**
|
|
645
|
-
* Request parameters for createPartnerRelation operation in
|
|
645
|
+
* Request parameters for createPartnerRelation operation in PartnerRelationsApi.
|
|
646
646
|
* @export
|
|
647
|
-
* @interface
|
|
647
|
+
* @interface PartnerRelationsApiCreatePartnerRelationRequest
|
|
648
648
|
*/
|
|
649
|
-
export interface
|
|
649
|
+
export interface PartnerRelationsApiCreatePartnerRelationRequest {
|
|
650
650
|
/**
|
|
651
651
|
*
|
|
652
652
|
* @type {CreatePartnerRelationRequestDtoRest}
|
|
653
|
-
* @memberof
|
|
653
|
+
* @memberof PartnerRelationsApiCreatePartnerRelation
|
|
654
654
|
*/
|
|
655
655
|
readonly createPartnerRelationRequestDtoRest: CreatePartnerRelationRequestDtoRest
|
|
656
656
|
|
|
657
657
|
/**
|
|
658
658
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
659
659
|
* @type {string}
|
|
660
|
-
* @memberof
|
|
660
|
+
* @memberof PartnerRelationsApiCreatePartnerRelation
|
|
661
661
|
*/
|
|
662
662
|
readonly authorization?: string
|
|
663
663
|
}
|
|
664
664
|
|
|
665
665
|
/**
|
|
666
|
-
* Request parameters for deletePartnerRelation operation in
|
|
666
|
+
* Request parameters for deletePartnerRelation operation in PartnerRelationsApi.
|
|
667
667
|
* @export
|
|
668
|
-
* @interface
|
|
668
|
+
* @interface PartnerRelationsApiDeletePartnerRelationRequest
|
|
669
669
|
*/
|
|
670
|
-
export interface
|
|
670
|
+
export interface PartnerRelationsApiDeletePartnerRelationRequest {
|
|
671
671
|
/**
|
|
672
672
|
*
|
|
673
673
|
* @type {number}
|
|
674
|
-
* @memberof
|
|
674
|
+
* @memberof PartnerRelationsApiDeletePartnerRelation
|
|
675
675
|
*/
|
|
676
676
|
readonly id: number
|
|
677
677
|
|
|
678
678
|
/**
|
|
679
679
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
680
680
|
* @type {string}
|
|
681
|
-
* @memberof
|
|
681
|
+
* @memberof PartnerRelationsApiDeletePartnerRelation
|
|
682
682
|
*/
|
|
683
683
|
readonly authorization?: string
|
|
684
684
|
}
|
|
685
685
|
|
|
686
686
|
/**
|
|
687
|
-
* Request parameters for getPartnerRelation operation in
|
|
687
|
+
* Request parameters for getPartnerRelation operation in PartnerRelationsApi.
|
|
688
688
|
* @export
|
|
689
|
-
* @interface
|
|
689
|
+
* @interface PartnerRelationsApiGetPartnerRelationRequest
|
|
690
690
|
*/
|
|
691
|
-
export interface
|
|
691
|
+
export interface PartnerRelationsApiGetPartnerRelationRequest {
|
|
692
692
|
/**
|
|
693
693
|
* Id of the partner relation
|
|
694
694
|
* @type {number}
|
|
695
|
-
* @memberof
|
|
695
|
+
* @memberof PartnerRelationsApiGetPartnerRelation
|
|
696
696
|
*/
|
|
697
697
|
readonly id: number
|
|
698
698
|
|
|
699
699
|
/**
|
|
700
700
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
701
701
|
* @type {string}
|
|
702
|
-
* @memberof
|
|
702
|
+
* @memberof PartnerRelationsApiGetPartnerRelation
|
|
703
703
|
*/
|
|
704
704
|
readonly authorization?: string
|
|
705
705
|
}
|
|
706
706
|
|
|
707
707
|
/**
|
|
708
|
-
* Request parameters for getPartnerRelationType operation in
|
|
708
|
+
* Request parameters for getPartnerRelationType operation in PartnerRelationsApi.
|
|
709
709
|
* @export
|
|
710
|
-
* @interface
|
|
710
|
+
* @interface PartnerRelationsApiGetPartnerRelationTypeRequest
|
|
711
711
|
*/
|
|
712
|
-
export interface
|
|
712
|
+
export interface PartnerRelationsApiGetPartnerRelationTypeRequest {
|
|
713
713
|
/**
|
|
714
714
|
* Identifying slug of the partner relation type
|
|
715
715
|
* @type {string}
|
|
716
|
-
* @memberof
|
|
716
|
+
* @memberof PartnerRelationsApiGetPartnerRelationType
|
|
717
717
|
*/
|
|
718
718
|
readonly slug: string
|
|
719
719
|
|
|
720
720
|
/**
|
|
721
721
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
722
722
|
* @type {string}
|
|
723
|
-
* @memberof
|
|
723
|
+
* @memberof PartnerRelationsApiGetPartnerRelationType
|
|
724
724
|
*/
|
|
725
725
|
readonly authorization?: string
|
|
726
726
|
}
|
|
727
727
|
|
|
728
728
|
/**
|
|
729
|
-
* Request parameters for listPartnerRelationTypes operation in
|
|
729
|
+
* Request parameters for listPartnerRelationTypes operation in PartnerRelationsApi.
|
|
730
730
|
* @export
|
|
731
|
-
* @interface
|
|
731
|
+
* @interface PartnerRelationsApiListPartnerRelationTypesRequest
|
|
732
732
|
*/
|
|
733
|
-
export interface
|
|
733
|
+
export interface PartnerRelationsApiListPartnerRelationTypesRequest {
|
|
734
734
|
/**
|
|
735
735
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
736
736
|
* @type {string}
|
|
737
|
-
* @memberof
|
|
737
|
+
* @memberof PartnerRelationsApiListPartnerRelationTypes
|
|
738
738
|
*/
|
|
739
739
|
readonly authorization?: string
|
|
740
740
|
|
|
741
741
|
/**
|
|
742
742
|
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
743
743
|
* @type {any}
|
|
744
|
-
* @memberof
|
|
744
|
+
* @memberof PartnerRelationsApiListPartnerRelationTypes
|
|
745
745
|
*/
|
|
746
746
|
readonly pageSize?: any
|
|
747
747
|
|
|
748
748
|
/**
|
|
749
749
|
* 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.
|
|
750
750
|
* @type {any}
|
|
751
|
-
* @memberof
|
|
751
|
+
* @memberof PartnerRelationsApiListPartnerRelationTypes
|
|
752
752
|
*/
|
|
753
753
|
readonly pageToken?: any
|
|
754
754
|
|
|
755
755
|
/**
|
|
756
756
|
* 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, slug, relationName, maxCardinality, inverseMaxCardinality</i>
|
|
757
757
|
* @type {string}
|
|
758
|
-
* @memberof
|
|
758
|
+
* @memberof PartnerRelationsApiListPartnerRelationTypes
|
|
759
759
|
*/
|
|
760
760
|
readonly filter?: string
|
|
761
761
|
|
|
762
762
|
/**
|
|
763
763
|
* To search the list by any field, pass search=xxx to fetch the result.
|
|
764
764
|
* @type {any}
|
|
765
|
-
* @memberof
|
|
765
|
+
* @memberof PartnerRelationsApiListPartnerRelationTypes
|
|
766
766
|
*/
|
|
767
767
|
readonly search?: any
|
|
768
768
|
|
|
769
769
|
/**
|
|
770
770
|
* 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, slug, maxCardinality, inverseMaxCardinality, createdAt, updatedAt</i>
|
|
771
771
|
* @type {string}
|
|
772
|
-
* @memberof
|
|
772
|
+
* @memberof PartnerRelationsApiListPartnerRelationTypes
|
|
773
773
|
*/
|
|
774
774
|
readonly order?: string
|
|
775
775
|
|
|
776
776
|
/**
|
|
777
777
|
* 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: <i>
|
|
778
778
|
* @type {string}
|
|
779
|
-
* @memberof
|
|
779
|
+
* @memberof PartnerRelationsApiListPartnerRelationTypes
|
|
780
780
|
*/
|
|
781
781
|
readonly expand?: string
|
|
782
782
|
|
|
783
783
|
/**
|
|
784
784
|
* 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, slug, relationName, maxCardinality, inverseMaxCardinality</i>
|
|
785
785
|
* @type {string}
|
|
786
|
-
* @memberof
|
|
786
|
+
* @memberof PartnerRelationsApiListPartnerRelationTypes
|
|
787
787
|
*/
|
|
788
788
|
readonly filters?: string
|
|
789
789
|
}
|
|
790
790
|
|
|
791
791
|
/**
|
|
792
|
-
* Request parameters for listPartnerRelations operation in
|
|
792
|
+
* Request parameters for listPartnerRelations operation in PartnerRelationsApi.
|
|
793
793
|
* @export
|
|
794
|
-
* @interface
|
|
794
|
+
* @interface PartnerRelationsApiListPartnerRelationsRequest
|
|
795
795
|
*/
|
|
796
|
-
export interface
|
|
796
|
+
export interface PartnerRelationsApiListPartnerRelationsRequest {
|
|
797
797
|
/**
|
|
798
798
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
799
799
|
* @type {string}
|
|
800
|
-
* @memberof
|
|
800
|
+
* @memberof PartnerRelationsApiListPartnerRelations
|
|
801
801
|
*/
|
|
802
802
|
readonly authorization?: string
|
|
803
803
|
|
|
804
804
|
/**
|
|
805
805
|
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
806
806
|
* @type {any}
|
|
807
|
-
* @memberof
|
|
807
|
+
* @memberof PartnerRelationsApiListPartnerRelations
|
|
808
808
|
*/
|
|
809
809
|
readonly pageSize?: any
|
|
810
810
|
|
|
811
811
|
/**
|
|
812
812
|
* 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.
|
|
813
813
|
* @type {any}
|
|
814
|
-
* @memberof
|
|
814
|
+
* @memberof PartnerRelationsApiListPartnerRelations
|
|
815
815
|
*/
|
|
816
816
|
readonly pageToken?: any
|
|
817
817
|
|
|
818
818
|
/**
|
|
819
819
|
* 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, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId</i>
|
|
820
820
|
* @type {string}
|
|
821
|
-
* @memberof
|
|
821
|
+
* @memberof PartnerRelationsApiListPartnerRelations
|
|
822
822
|
*/
|
|
823
823
|
readonly filter?: string
|
|
824
824
|
|
|
825
825
|
/**
|
|
826
826
|
* To search the list by any field, pass search=xxx to fetch the result.
|
|
827
827
|
* @type {any}
|
|
828
|
-
* @memberof
|
|
828
|
+
* @memberof PartnerRelationsApiListPartnerRelations
|
|
829
829
|
*/
|
|
830
830
|
readonly search?: any
|
|
831
831
|
|
|
832
832
|
/**
|
|
833
833
|
* 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, partnerRelationTypeId, startDate, endDate, createdAt, updatedAt</i>
|
|
834
834
|
* @type {string}
|
|
835
|
-
* @memberof
|
|
835
|
+
* @memberof PartnerRelationsApiListPartnerRelations
|
|
836
836
|
*/
|
|
837
837
|
readonly order?: string
|
|
838
838
|
|
|
839
839
|
/**
|
|
840
840
|
* 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: partnerRelationType<i>
|
|
841
841
|
* @type {string}
|
|
842
|
-
* @memberof
|
|
842
|
+
* @memberof PartnerRelationsApiListPartnerRelations
|
|
843
843
|
*/
|
|
844
844
|
readonly expand?: string
|
|
845
845
|
|
|
846
846
|
/**
|
|
847
847
|
* 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, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId</i>
|
|
848
848
|
* @type {string}
|
|
849
|
-
* @memberof
|
|
849
|
+
* @memberof PartnerRelationsApiListPartnerRelations
|
|
850
850
|
*/
|
|
851
851
|
readonly filters?: string
|
|
852
852
|
}
|
|
853
853
|
|
|
854
854
|
/**
|
|
855
|
-
* Request parameters for updatePartnerRelation operation in
|
|
855
|
+
* Request parameters for updatePartnerRelation operation in PartnerRelationsApi.
|
|
856
856
|
* @export
|
|
857
|
-
* @interface
|
|
857
|
+
* @interface PartnerRelationsApiUpdatePartnerRelationRequest
|
|
858
858
|
*/
|
|
859
|
-
export interface
|
|
859
|
+
export interface PartnerRelationsApiUpdatePartnerRelationRequest {
|
|
860
860
|
/**
|
|
861
861
|
* Id of the partner relation
|
|
862
862
|
* @type {number}
|
|
863
|
-
* @memberof
|
|
863
|
+
* @memberof PartnerRelationsApiUpdatePartnerRelation
|
|
864
864
|
*/
|
|
865
865
|
readonly id: number
|
|
866
866
|
|
|
867
867
|
/**
|
|
868
868
|
*
|
|
869
869
|
* @type {UpdatePartnerRelationRequestDtoRest}
|
|
870
|
-
* @memberof
|
|
870
|
+
* @memberof PartnerRelationsApiUpdatePartnerRelation
|
|
871
871
|
*/
|
|
872
872
|
readonly updatePartnerRelationRequestDtoRest: UpdatePartnerRelationRequestDtoRest
|
|
873
873
|
|
|
874
874
|
/**
|
|
875
875
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
876
876
|
* @type {string}
|
|
877
|
-
* @memberof
|
|
877
|
+
* @memberof PartnerRelationsApiUpdatePartnerRelation
|
|
878
878
|
*/
|
|
879
879
|
readonly authorization?: string
|
|
880
880
|
}
|
|
881
881
|
|
|
882
882
|
/**
|
|
883
|
-
*
|
|
883
|
+
* PartnerRelationsApi - object-oriented interface
|
|
884
884
|
* @export
|
|
885
|
-
* @class
|
|
885
|
+
* @class PartnerRelationsApi
|
|
886
886
|
* @extends {BaseAPI}
|
|
887
887
|
*/
|
|
888
|
-
export class
|
|
888
|
+
export class PartnerRelationsApi extends BaseAPI {
|
|
889
889
|
/**
|
|
890
890
|
* This will create a relationship between two partners. For example a parent-child relationship, or a partnership agreement.
|
|
891
891
|
* @summary Create the partner relation
|
|
892
|
-
* @param {
|
|
892
|
+
* @param {PartnerRelationsApiCreatePartnerRelationRequest} requestParameters Request parameters.
|
|
893
893
|
* @param {*} [options] Override http request option.
|
|
894
894
|
* @throws {RequiredError}
|
|
895
|
-
* @memberof
|
|
895
|
+
* @memberof PartnerRelationsApi
|
|
896
896
|
*/
|
|
897
|
-
public createPartnerRelation(requestParameters:
|
|
898
|
-
return
|
|
897
|
+
public createPartnerRelation(requestParameters: PartnerRelationsApiCreatePartnerRelationRequest, options?: AxiosRequestConfig) {
|
|
898
|
+
return PartnerRelationsApiFp(this.configuration).createPartnerRelation(requestParameters.createPartnerRelationRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
899
899
|
}
|
|
900
900
|
|
|
901
901
|
/**
|
|
902
902
|
* Permanently deletes the partner-relation. Supply the unique code that was returned when you created the partner-relation and this will delete it.
|
|
903
903
|
* @summary Delete the partner-relation
|
|
904
|
-
* @param {
|
|
904
|
+
* @param {PartnerRelationsApiDeletePartnerRelationRequest} requestParameters Request parameters.
|
|
905
905
|
* @param {*} [options] Override http request option.
|
|
906
906
|
* @throws {RequiredError}
|
|
907
|
-
* @memberof
|
|
907
|
+
* @memberof PartnerRelationsApi
|
|
908
908
|
*/
|
|
909
|
-
public deletePartnerRelation(requestParameters:
|
|
910
|
-
return
|
|
909
|
+
public deletePartnerRelation(requestParameters: PartnerRelationsApiDeletePartnerRelationRequest, options?: AxiosRequestConfig) {
|
|
910
|
+
return PartnerRelationsApiFp(this.configuration).deletePartnerRelation(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
911
911
|
}
|
|
912
912
|
|
|
913
913
|
/**
|
|
914
914
|
* Retrieve a single partner relation identified by its id
|
|
915
915
|
* @summary Retrieve the partner relation
|
|
916
|
-
* @param {
|
|
916
|
+
* @param {PartnerRelationsApiGetPartnerRelationRequest} requestParameters Request parameters.
|
|
917
917
|
* @param {*} [options] Override http request option.
|
|
918
918
|
* @throws {RequiredError}
|
|
919
|
-
* @memberof
|
|
919
|
+
* @memberof PartnerRelationsApi
|
|
920
920
|
*/
|
|
921
|
-
public getPartnerRelation(requestParameters:
|
|
922
|
-
return
|
|
921
|
+
public getPartnerRelation(requestParameters: PartnerRelationsApiGetPartnerRelationRequest, options?: AxiosRequestConfig) {
|
|
922
|
+
return PartnerRelationsApiFp(this.configuration).getPartnerRelation(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
923
923
|
}
|
|
924
924
|
|
|
925
925
|
/**
|
|
926
926
|
* Retrieve a single partner relation type identified with a slug - can be used to create partner relations
|
|
927
927
|
* @summary Retrieve the partner relation type
|
|
928
|
-
* @param {
|
|
928
|
+
* @param {PartnerRelationsApiGetPartnerRelationTypeRequest} requestParameters Request parameters.
|
|
929
929
|
* @param {*} [options] Override http request option.
|
|
930
930
|
* @throws {RequiredError}
|
|
931
|
-
* @memberof
|
|
931
|
+
* @memberof PartnerRelationsApi
|
|
932
932
|
*/
|
|
933
|
-
public getPartnerRelationType(requestParameters:
|
|
934
|
-
return
|
|
933
|
+
public getPartnerRelationType(requestParameters: PartnerRelationsApiGetPartnerRelationTypeRequest, options?: AxiosRequestConfig) {
|
|
934
|
+
return PartnerRelationsApiFp(this.configuration).getPartnerRelationType(requestParameters.slug, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
935
935
|
}
|
|
936
936
|
|
|
937
937
|
/**
|
|
938
938
|
* List all partner relation types - is used to create partner relations
|
|
939
939
|
* @summary List partner relation types
|
|
940
|
-
* @param {
|
|
940
|
+
* @param {PartnerRelationsApiListPartnerRelationTypesRequest} requestParameters Request parameters.
|
|
941
941
|
* @param {*} [options] Override http request option.
|
|
942
942
|
* @throws {RequiredError}
|
|
943
|
-
* @memberof
|
|
943
|
+
* @memberof PartnerRelationsApi
|
|
944
944
|
*/
|
|
945
|
-
public listPartnerRelationTypes(requestParameters:
|
|
946
|
-
return
|
|
945
|
+
public listPartnerRelationTypes(requestParameters: PartnerRelationsApiListPartnerRelationTypesRequest = {}, options?: AxiosRequestConfig) {
|
|
946
|
+
return PartnerRelationsApiFp(this.configuration).listPartnerRelationTypes(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
947
947
|
}
|
|
948
948
|
|
|
949
949
|
/**
|
|
950
950
|
* List all partner relations
|
|
951
951
|
* @summary List partner relations
|
|
952
|
-
* @param {
|
|
952
|
+
* @param {PartnerRelationsApiListPartnerRelationsRequest} requestParameters Request parameters.
|
|
953
953
|
* @param {*} [options] Override http request option.
|
|
954
954
|
* @throws {RequiredError}
|
|
955
|
-
* @memberof
|
|
955
|
+
* @memberof PartnerRelationsApi
|
|
956
956
|
*/
|
|
957
|
-
public listPartnerRelations(requestParameters:
|
|
958
|
-
return
|
|
957
|
+
public listPartnerRelations(requestParameters: PartnerRelationsApiListPartnerRelationsRequest = {}, options?: AxiosRequestConfig) {
|
|
958
|
+
return PartnerRelationsApiFp(this.configuration).listPartnerRelations(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
959
959
|
}
|
|
960
960
|
|
|
961
961
|
/**
|
|
962
962
|
* Update a partner relation identified by its id
|
|
963
963
|
* @summary Update the partner relation
|
|
964
|
-
* @param {
|
|
964
|
+
* @param {PartnerRelationsApiUpdatePartnerRelationRequest} requestParameters Request parameters.
|
|
965
965
|
* @param {*} [options] Override http request option.
|
|
966
966
|
* @throws {RequiredError}
|
|
967
|
-
* @memberof
|
|
967
|
+
* @memberof PartnerRelationsApi
|
|
968
968
|
*/
|
|
969
|
-
public updatePartnerRelation(requestParameters:
|
|
970
|
-
return
|
|
969
|
+
public updatePartnerRelation(requestParameters: PartnerRelationsApiUpdatePartnerRelationRequest, options?: AxiosRequestConfig) {
|
|
970
|
+
return PartnerRelationsApiFp(this.configuration).updatePartnerRelation(requestParameters.id, requestParameters.updatePartnerRelationRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
971
971
|
}
|
|
972
972
|
}
|