@emilgroup/partner-sdk 1.0.1 → 1.2.1-beta.1
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 +21 -1
- package/README.md +2 -2
- package/api/default-api.ts +8 -4
- package/api/partner-relations-api.ts +968 -0
- package/api/partner-tags-api.ts +662 -0
- package/api/partner-types-api.ts +36 -22
- package/api/partner-version-api.ts +375 -0
- package/api/partners-api.ts +154 -22
- package/api.ts +6 -0
- package/base.ts +6 -1
- package/dist/api/default-api.d.ts +8 -4
- package/dist/api/default-api.js +8 -4
- package/dist/api/partner-relations-api.d.ts +550 -0
- package/dist/api/partner-relations-api.js +857 -0
- package/dist/api/partner-tags-api.d.ts +375 -0
- package/dist/api/partner-tags-api.js +629 -0
- package/dist/api/partner-types-api.d.ts +28 -19
- package/dist/api/partner-types-api.js +26 -20
- package/dist/api/partner-version-api.d.ts +224 -0
- package/dist/api/partner-version-api.js +363 -0
- package/dist/api/partners-api.d.ts +93 -19
- package/dist/api/partners-api.js +125 -20
- package/dist/api.d.ts +3 -0
- package/dist/api.js +3 -0
- package/dist/base.d.ts +1 -0
- package/dist/base.js +5 -1
- package/dist/models/create-partner-relation-request-dto-rest.d.ts +65 -0
- package/dist/models/create-partner-relation-request-dto-rest.js +26 -0
- package/dist/models/create-partner-relation-response-class.d.ts +25 -0
- package/dist/models/create-partner-type-request-dto.d.ts +13 -3
- package/dist/models/create-partner-type-request-dto.js +5 -0
- package/dist/models/create-tag-request-dto.d.ts +36 -0
- package/dist/models/create-tag-request-dto.js +15 -0
- package/dist/models/create-tag-response-class.d.ts +25 -0
- package/dist/models/create-tag-response-class.js +15 -0
- package/dist/models/get-partner-relation-class.d.ts +25 -0
- package/dist/models/get-partner-relation-class.js +15 -0
- package/dist/models/get-partner-relation-type-class.d.ts +25 -0
- package/dist/models/get-partner-relation-type-class.js +15 -0
- package/dist/models/get-partner-version-response-class.d.ts +25 -0
- package/dist/models/get-partner-version-response-class.js +15 -0
- package/dist/models/get-tag-response-class.d.ts +25 -0
- package/dist/models/get-tag-response-class.js +15 -0
- package/dist/models/index.d.ts +18 -1
- package/dist/models/index.js +18 -1
- package/dist/models/list-partner-relation-class.d.ts +31 -0
- package/dist/models/list-partner-relation-class.js +15 -0
- package/dist/models/list-partner-relation-types-class.d.ts +31 -0
- package/dist/models/list-partner-relation-types-class.js +15 -0
- package/dist/models/list-partner-versions-response-class.d.ts +25 -0
- package/dist/models/list-partner-versions-response-class.js +15 -0
- package/dist/models/list-tags-response-class.d.ts +31 -0
- package/dist/models/list-tags-response-class.js +15 -0
- package/dist/models/partner-class.d.ts +18 -0
- package/dist/models/partner-relation-class.d.ts +72 -0
- package/dist/models/partner-relation-class.js +15 -0
- package/dist/models/partner-relation-type-class.d.ts +66 -0
- package/dist/models/partner-relation-type-class.js +15 -0
- package/dist/models/partner-type-class.d.ts +11 -0
- package/dist/models/partner-type-class.js +5 -0
- package/dist/models/tag-class.d.ts +54 -0
- package/dist/models/tag-class.js +15 -0
- package/dist/models/tag-partner-request-dto-rest.d.ts +24 -0
- package/dist/models/tag-partner-request-dto-rest.js +15 -0
- package/dist/models/update-partner-relation-request-dto-rest.d.ts +36 -0
- package/dist/models/update-partner-relation-request-dto-rest.js +15 -0
- package/dist/models/update-partner-type-request-dto.d.ts +20 -4
- package/dist/models/update-partner-type-request-dto.js +5 -0
- package/dist/models/update-tag-response-class.d.ts +25 -0
- package/dist/models/update-tag-response-class.js +15 -0
- package/models/create-partner-relation-request-dto-rest.ts +74 -0
- package/models/create-partner-relation-response-class.ts +31 -0
- package/models/create-partner-type-request-dto.ts +16 -3
- package/models/create-tag-request-dto.ts +42 -0
- package/models/create-tag-response-class.ts +31 -0
- package/models/get-partner-relation-class.ts +31 -0
- package/models/get-partner-relation-type-class.ts +31 -0
- package/models/get-partner-version-response-class.ts +31 -0
- package/models/get-tag-response-class.ts +31 -0
- package/models/index.ts +18 -1
- package/models/list-partner-relation-class.ts +37 -0
- package/models/list-partner-relation-types-class.ts +37 -0
- package/models/list-partner-versions-response-class.ts +31 -0
- package/models/list-tags-response-class.ts +37 -0
- package/models/partner-class.ts +18 -0
- package/models/partner-relation-class.ts +78 -0
- package/models/partner-relation-type-class.ts +72 -0
- package/models/partner-type-class.ts +14 -0
- package/models/tag-class.ts +60 -0
- package/models/tag-partner-request-dto-rest.ts +30 -0
- package/models/update-partner-relation-request-dto-rest.ts +42 -0
- package/models/update-partner-type-request-dto.ts +23 -4
- package/models/update-tag-response-class.ts +31 -0
- package/package.json +1 -1
- package/dist/models/partner-type-custom-schema-dto.d.ts +0 -66
- package/models/partner-type-custom-schema-dto.ts +0 -72
- /package/dist/models/{partner-type-custom-schema-dto.js → create-partner-relation-response-class.js} +0 -0
|
@@ -0,0 +1,968 @@
|
|
|
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 { CreatePartnerRelationRequestDtoRest } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { CreatePartnerRelationResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { DeleteResponseClass } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { GetPartnerRelationClass } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
import { GetPartnerRelationTypeClass } from '../models';
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
import { ListPartnerRelationClass } from '../models';
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
import { ListPartnerRelationTypesClass } from '../models';
|
|
37
|
+
// @ts-ignore
|
|
38
|
+
import { UpdatePartnerRelationRequestDtoRest } from '../models';
|
|
39
|
+
/**
|
|
40
|
+
* PartnerRelationsApi - axios parameter creator
|
|
41
|
+
* @export
|
|
42
|
+
*/
|
|
43
|
+
export const PartnerRelationsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
44
|
+
return {
|
|
45
|
+
/**
|
|
46
|
+
* This will create a relationship between two partners. For example a parent-child relationship, or a partnership agreement.
|
|
47
|
+
* @summary Create the partner relation
|
|
48
|
+
* @param {CreatePartnerRelationRequestDtoRest} createPartnerRelationRequestDtoRest
|
|
49
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
50
|
+
* @param {*} [options] Override http request option.
|
|
51
|
+
* @throws {RequiredError}
|
|
52
|
+
*/
|
|
53
|
+
createPartnerRelation: async (createPartnerRelationRequestDtoRest: CreatePartnerRelationRequestDtoRest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
54
|
+
// verify required parameter 'createPartnerRelationRequestDtoRest' is not null or undefined
|
|
55
|
+
assertParamExists('createPartnerRelation', 'createPartnerRelationRequestDtoRest', createPartnerRelationRequestDtoRest)
|
|
56
|
+
const localVarPath = `/partnerservice/v1/partners/relations`;
|
|
57
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
58
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
59
|
+
let baseOptions;
|
|
60
|
+
let baseAccessToken;
|
|
61
|
+
if (configuration) {
|
|
62
|
+
baseOptions = configuration.baseOptions;
|
|
63
|
+
baseAccessToken = configuration.accessToken;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
67
|
+
const localVarHeaderParameter = {} as any;
|
|
68
|
+
const localVarQueryParameter = {} as any;
|
|
69
|
+
|
|
70
|
+
// authentication bearer required
|
|
71
|
+
// http bearer authentication required
|
|
72
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
73
|
+
|
|
74
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
75
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
81
|
+
|
|
82
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
83
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
84
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
85
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createPartnerRelationRequestDtoRest, localVarRequestOptions, configuration)
|
|
86
|
+
|
|
87
|
+
return {
|
|
88
|
+
url: toPathString(localVarUrlObj),
|
|
89
|
+
options: localVarRequestOptions,
|
|
90
|
+
};
|
|
91
|
+
},
|
|
92
|
+
/**
|
|
93
|
+
* Permanently deletes the partner-relation. Supply the unique code that was returned when you created the partner-relation and this will delete it.
|
|
94
|
+
* @summary Delete the partner-relation
|
|
95
|
+
* @param {number} id
|
|
96
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
97
|
+
* @param {*} [options] Override http request option.
|
|
98
|
+
* @throws {RequiredError}
|
|
99
|
+
*/
|
|
100
|
+
deletePartnerRelation: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
101
|
+
// verify required parameter 'id' is not null or undefined
|
|
102
|
+
assertParamExists('deletePartnerRelation', 'id', id)
|
|
103
|
+
const localVarPath = `/partnerservice/v1/partners/relations/{id}`
|
|
104
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
105
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
106
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
107
|
+
let baseOptions;
|
|
108
|
+
let baseAccessToken;
|
|
109
|
+
if (configuration) {
|
|
110
|
+
baseOptions = configuration.baseOptions;
|
|
111
|
+
baseAccessToken = configuration.accessToken;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
115
|
+
const localVarHeaderParameter = {} as any;
|
|
116
|
+
const localVarQueryParameter = {} as any;
|
|
117
|
+
|
|
118
|
+
// authentication bearer required
|
|
119
|
+
// http bearer authentication required
|
|
120
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
121
|
+
|
|
122
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
123
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
129
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
130
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
131
|
+
|
|
132
|
+
return {
|
|
133
|
+
url: toPathString(localVarUrlObj),
|
|
134
|
+
options: localVarRequestOptions,
|
|
135
|
+
};
|
|
136
|
+
},
|
|
137
|
+
/**
|
|
138
|
+
* Retrieve a single partner relation identified by its id
|
|
139
|
+
* @summary Retrieve the partner relation
|
|
140
|
+
* @param {number} id Id of the partner relation
|
|
141
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
142
|
+
* @param {*} [options] Override http request option.
|
|
143
|
+
* @throws {RequiredError}
|
|
144
|
+
*/
|
|
145
|
+
getPartnerRelation: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
146
|
+
// verify required parameter 'id' is not null or undefined
|
|
147
|
+
assertParamExists('getPartnerRelation', 'id', id)
|
|
148
|
+
const localVarPath = `/partnerservice/v1/partners/relations/{id}`
|
|
149
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
150
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
151
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
152
|
+
let baseOptions;
|
|
153
|
+
let baseAccessToken;
|
|
154
|
+
if (configuration) {
|
|
155
|
+
baseOptions = configuration.baseOptions;
|
|
156
|
+
baseAccessToken = configuration.accessToken;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
160
|
+
const localVarHeaderParameter = {} as any;
|
|
161
|
+
const localVarQueryParameter = {} as any;
|
|
162
|
+
|
|
163
|
+
// authentication bearer required
|
|
164
|
+
// http bearer authentication required
|
|
165
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
166
|
+
|
|
167
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
168
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
174
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
175
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
176
|
+
|
|
177
|
+
return {
|
|
178
|
+
url: toPathString(localVarUrlObj),
|
|
179
|
+
options: localVarRequestOptions,
|
|
180
|
+
};
|
|
181
|
+
},
|
|
182
|
+
/**
|
|
183
|
+
* Retrieve a single partner relation type identified with a slug - can be used to create partner relations
|
|
184
|
+
* @summary Retrieve the partner relation type
|
|
185
|
+
* @param {string} slug Identifying slug of the partner relation type
|
|
186
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
187
|
+
* @param {*} [options] Override http request option.
|
|
188
|
+
* @throws {RequiredError}
|
|
189
|
+
*/
|
|
190
|
+
getPartnerRelationType: async (slug: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
191
|
+
// verify required parameter 'slug' is not null or undefined
|
|
192
|
+
assertParamExists('getPartnerRelationType', 'slug', slug)
|
|
193
|
+
const localVarPath = `/partnerservice/v1/partners/relations/types/{slug}`
|
|
194
|
+
.replace(`{${"slug"}}`, encodeURIComponent(String(slug)));
|
|
195
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
196
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
197
|
+
let baseOptions;
|
|
198
|
+
let baseAccessToken;
|
|
199
|
+
if (configuration) {
|
|
200
|
+
baseOptions = configuration.baseOptions;
|
|
201
|
+
baseAccessToken = configuration.accessToken;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
205
|
+
const localVarHeaderParameter = {} as any;
|
|
206
|
+
const localVarQueryParameter = {} as any;
|
|
207
|
+
|
|
208
|
+
// authentication bearer required
|
|
209
|
+
// http bearer authentication required
|
|
210
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
211
|
+
|
|
212
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
213
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
219
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
220
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
221
|
+
|
|
222
|
+
return {
|
|
223
|
+
url: toPathString(localVarUrlObj),
|
|
224
|
+
options: localVarRequestOptions,
|
|
225
|
+
};
|
|
226
|
+
},
|
|
227
|
+
/**
|
|
228
|
+
* List all partner relation types - is used to create partner relations
|
|
229
|
+
* @summary List partner relation types
|
|
230
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
231
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
232
|
+
* @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.
|
|
233
|
+
* @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, slug, relationName, maxCardinality, inverseMaxCardinality</i>
|
|
234
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
235
|
+
* @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, slug, maxCardinality, inverseMaxCardinality, createdAt, updatedAt</i>
|
|
236
|
+
* @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: .<i>
|
|
237
|
+
* @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, slug, relationName, maxCardinality, inverseMaxCardinality</i>
|
|
238
|
+
* @param {*} [options] Override http request option.
|
|
239
|
+
* @throws {RequiredError}
|
|
240
|
+
*/
|
|
241
|
+
listPartnerRelationTypes: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
242
|
+
const localVarPath = `/partnerservice/v1/partners/relations/types`;
|
|
243
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
244
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
245
|
+
let baseOptions;
|
|
246
|
+
let baseAccessToken;
|
|
247
|
+
if (configuration) {
|
|
248
|
+
baseOptions = configuration.baseOptions;
|
|
249
|
+
baseAccessToken = configuration.accessToken;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
253
|
+
const localVarHeaderParameter = {} as any;
|
|
254
|
+
const localVarQueryParameter = {} as any;
|
|
255
|
+
|
|
256
|
+
// authentication bearer required
|
|
257
|
+
// http bearer authentication required
|
|
258
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
259
|
+
|
|
260
|
+
if (pageSize !== undefined) {
|
|
261
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
if (pageToken !== undefined) {
|
|
265
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
if (filter !== undefined) {
|
|
269
|
+
localVarQueryParameter['filter'] = filter;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
if (search !== undefined) {
|
|
273
|
+
localVarQueryParameter['search'] = search;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
if (order !== undefined) {
|
|
277
|
+
localVarQueryParameter['order'] = order;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
if (expand !== undefined) {
|
|
281
|
+
localVarQueryParameter['expand'] = expand;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
if (filters !== undefined) {
|
|
285
|
+
localVarQueryParameter['filters'] = filters;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
289
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
295
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
296
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
297
|
+
|
|
298
|
+
return {
|
|
299
|
+
url: toPathString(localVarUrlObj),
|
|
300
|
+
options: localVarRequestOptions,
|
|
301
|
+
};
|
|
302
|
+
},
|
|
303
|
+
/**
|
|
304
|
+
* List all partner relations
|
|
305
|
+
* @summary List partner relations
|
|
306
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
307
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
308
|
+
* @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.
|
|
309
|
+
* @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, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId</i>
|
|
310
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
311
|
+
* @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, partnerRelationTypeId, startDate, endDate, createdAt, updatedAt</i>
|
|
312
|
+
* @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: partnerRelationType.<i>
|
|
313
|
+
* @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, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId</i>
|
|
314
|
+
* @param {*} [options] Override http request option.
|
|
315
|
+
* @throws {RequiredError}
|
|
316
|
+
*/
|
|
317
|
+
listPartnerRelations: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
318
|
+
const localVarPath = `/partnerservice/v1/partners/relations`;
|
|
319
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
320
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
321
|
+
let baseOptions;
|
|
322
|
+
let baseAccessToken;
|
|
323
|
+
if (configuration) {
|
|
324
|
+
baseOptions = configuration.baseOptions;
|
|
325
|
+
baseAccessToken = configuration.accessToken;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
329
|
+
const localVarHeaderParameter = {} as any;
|
|
330
|
+
const localVarQueryParameter = {} as any;
|
|
331
|
+
|
|
332
|
+
// authentication bearer required
|
|
333
|
+
// http bearer authentication required
|
|
334
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
335
|
+
|
|
336
|
+
if (pageSize !== undefined) {
|
|
337
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
if (pageToken !== undefined) {
|
|
341
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
if (filter !== undefined) {
|
|
345
|
+
localVarQueryParameter['filter'] = filter;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
if (search !== undefined) {
|
|
349
|
+
localVarQueryParameter['search'] = search;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
if (order !== undefined) {
|
|
353
|
+
localVarQueryParameter['order'] = order;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
if (expand !== undefined) {
|
|
357
|
+
localVarQueryParameter['expand'] = expand;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
if (filters !== undefined) {
|
|
361
|
+
localVarQueryParameter['filters'] = filters;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
365
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
371
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
372
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
373
|
+
|
|
374
|
+
return {
|
|
375
|
+
url: toPathString(localVarUrlObj),
|
|
376
|
+
options: localVarRequestOptions,
|
|
377
|
+
};
|
|
378
|
+
},
|
|
379
|
+
/**
|
|
380
|
+
* Update a partner relation identified by its id
|
|
381
|
+
* @summary Update the partner relation
|
|
382
|
+
* @param {number} id Id of the partner relation
|
|
383
|
+
* @param {UpdatePartnerRelationRequestDtoRest} updatePartnerRelationRequestDtoRest
|
|
384
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
385
|
+
* @param {*} [options] Override http request option.
|
|
386
|
+
* @throws {RequiredError}
|
|
387
|
+
*/
|
|
388
|
+
updatePartnerRelation: async (id: number, updatePartnerRelationRequestDtoRest: UpdatePartnerRelationRequestDtoRest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
389
|
+
// verify required parameter 'id' is not null or undefined
|
|
390
|
+
assertParamExists('updatePartnerRelation', 'id', id)
|
|
391
|
+
// verify required parameter 'updatePartnerRelationRequestDtoRest' is not null or undefined
|
|
392
|
+
assertParamExists('updatePartnerRelation', 'updatePartnerRelationRequestDtoRest', updatePartnerRelationRequestDtoRest)
|
|
393
|
+
const localVarPath = `/partnerservice/v1/partners/relations/{id}`
|
|
394
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
395
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
396
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
397
|
+
let baseOptions;
|
|
398
|
+
let baseAccessToken;
|
|
399
|
+
if (configuration) {
|
|
400
|
+
baseOptions = configuration.baseOptions;
|
|
401
|
+
baseAccessToken = configuration.accessToken;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
405
|
+
const localVarHeaderParameter = {} as any;
|
|
406
|
+
const localVarQueryParameter = {} as any;
|
|
407
|
+
|
|
408
|
+
// authentication bearer required
|
|
409
|
+
// http bearer authentication required
|
|
410
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
411
|
+
|
|
412
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
413
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
|
|
418
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
419
|
+
|
|
420
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
421
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
422
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
423
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updatePartnerRelationRequestDtoRest, localVarRequestOptions, configuration)
|
|
424
|
+
|
|
425
|
+
return {
|
|
426
|
+
url: toPathString(localVarUrlObj),
|
|
427
|
+
options: localVarRequestOptions,
|
|
428
|
+
};
|
|
429
|
+
},
|
|
430
|
+
}
|
|
431
|
+
};
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* PartnerRelationsApi - functional programming interface
|
|
435
|
+
* @export
|
|
436
|
+
*/
|
|
437
|
+
export const PartnerRelationsApiFp = function(configuration?: Configuration) {
|
|
438
|
+
const localVarAxiosParamCreator = PartnerRelationsApiAxiosParamCreator(configuration)
|
|
439
|
+
return {
|
|
440
|
+
/**
|
|
441
|
+
* This will create a relationship between two partners. For example a parent-child relationship, or a partnership agreement.
|
|
442
|
+
* @summary Create the partner relation
|
|
443
|
+
* @param {CreatePartnerRelationRequestDtoRest} createPartnerRelationRequestDtoRest
|
|
444
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
445
|
+
* @param {*} [options] Override http request option.
|
|
446
|
+
* @throws {RequiredError}
|
|
447
|
+
*/
|
|
448
|
+
async createPartnerRelation(createPartnerRelationRequestDtoRest: CreatePartnerRelationRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePartnerRelationResponseClass>> {
|
|
449
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createPartnerRelation(createPartnerRelationRequestDtoRest, authorization, options);
|
|
450
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
451
|
+
},
|
|
452
|
+
/**
|
|
453
|
+
* Permanently deletes the partner-relation. Supply the unique code that was returned when you created the partner-relation and this will delete it.
|
|
454
|
+
* @summary Delete the partner-relation
|
|
455
|
+
* @param {number} id
|
|
456
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
457
|
+
* @param {*} [options] Override http request option.
|
|
458
|
+
* @throws {RequiredError}
|
|
459
|
+
*/
|
|
460
|
+
async deletePartnerRelation(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>> {
|
|
461
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deletePartnerRelation(id, authorization, options);
|
|
462
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
463
|
+
},
|
|
464
|
+
/**
|
|
465
|
+
* Retrieve a single partner relation identified by its id
|
|
466
|
+
* @summary Retrieve the partner relation
|
|
467
|
+
* @param {number} id Id of the partner relation
|
|
468
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
469
|
+
* @param {*} [options] Override http request option.
|
|
470
|
+
* @throws {RequiredError}
|
|
471
|
+
*/
|
|
472
|
+
async getPartnerRelation(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPartnerRelationClass>> {
|
|
473
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPartnerRelation(id, authorization, options);
|
|
474
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
475
|
+
},
|
|
476
|
+
/**
|
|
477
|
+
* Retrieve a single partner relation type identified with a slug - can be used to create partner relations
|
|
478
|
+
* @summary Retrieve the partner relation type
|
|
479
|
+
* @param {string} slug Identifying slug of the partner relation type
|
|
480
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
481
|
+
* @param {*} [options] Override http request option.
|
|
482
|
+
* @throws {RequiredError}
|
|
483
|
+
*/
|
|
484
|
+
async getPartnerRelationType(slug: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPartnerRelationTypeClass>> {
|
|
485
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPartnerRelationType(slug, authorization, options);
|
|
486
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
487
|
+
},
|
|
488
|
+
/**
|
|
489
|
+
* List all partner relation types - is used to create partner relations
|
|
490
|
+
* @summary List partner relation types
|
|
491
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
492
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
493
|
+
* @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.
|
|
494
|
+
* @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, slug, relationName, maxCardinality, inverseMaxCardinality</i>
|
|
495
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
496
|
+
* @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, slug, maxCardinality, inverseMaxCardinality, createdAt, updatedAt</i>
|
|
497
|
+
* @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: .<i>
|
|
498
|
+
* @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, slug, relationName, maxCardinality, inverseMaxCardinality</i>
|
|
499
|
+
* @param {*} [options] Override http request option.
|
|
500
|
+
* @throws {RequiredError}
|
|
501
|
+
*/
|
|
502
|
+
async listPartnerRelationTypes(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPartnerRelationTypesClass>> {
|
|
503
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPartnerRelationTypes(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
504
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
505
|
+
},
|
|
506
|
+
/**
|
|
507
|
+
* List all partner relations
|
|
508
|
+
* @summary List partner relations
|
|
509
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
510
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
511
|
+
* @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.
|
|
512
|
+
* @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, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId</i>
|
|
513
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
514
|
+
* @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, partnerRelationTypeId, startDate, endDate, createdAt, updatedAt</i>
|
|
515
|
+
* @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: partnerRelationType.<i>
|
|
516
|
+
* @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, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId</i>
|
|
517
|
+
* @param {*} [options] Override http request option.
|
|
518
|
+
* @throws {RequiredError}
|
|
519
|
+
*/
|
|
520
|
+
async listPartnerRelations(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPartnerRelationClass>> {
|
|
521
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPartnerRelations(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
522
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
523
|
+
},
|
|
524
|
+
/**
|
|
525
|
+
* Update a partner relation identified by its id
|
|
526
|
+
* @summary Update the partner relation
|
|
527
|
+
* @param {number} id Id of the partner relation
|
|
528
|
+
* @param {UpdatePartnerRelationRequestDtoRest} updatePartnerRelationRequestDtoRest
|
|
529
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
530
|
+
* @param {*} [options] Override http request option.
|
|
531
|
+
* @throws {RequiredError}
|
|
532
|
+
*/
|
|
533
|
+
async updatePartnerRelation(id: number, updatePartnerRelationRequestDtoRest: UpdatePartnerRelationRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPartnerRelationClass>> {
|
|
534
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updatePartnerRelation(id, updatePartnerRelationRequestDtoRest, authorization, options);
|
|
535
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
536
|
+
},
|
|
537
|
+
}
|
|
538
|
+
};
|
|
539
|
+
|
|
540
|
+
/**
|
|
541
|
+
* PartnerRelationsApi - factory interface
|
|
542
|
+
* @export
|
|
543
|
+
*/
|
|
544
|
+
export const PartnerRelationsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
545
|
+
const localVarFp = PartnerRelationsApiFp(configuration)
|
|
546
|
+
return {
|
|
547
|
+
/**
|
|
548
|
+
* This will create a relationship between two partners. For example a parent-child relationship, or a partnership agreement.
|
|
549
|
+
* @summary Create the partner relation
|
|
550
|
+
* @param {CreatePartnerRelationRequestDtoRest} createPartnerRelationRequestDtoRest
|
|
551
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
552
|
+
* @param {*} [options] Override http request option.
|
|
553
|
+
* @throws {RequiredError}
|
|
554
|
+
*/
|
|
555
|
+
createPartnerRelation(createPartnerRelationRequestDtoRest: CreatePartnerRelationRequestDtoRest, authorization?: string, options?: any): AxiosPromise<CreatePartnerRelationResponseClass> {
|
|
556
|
+
return localVarFp.createPartnerRelation(createPartnerRelationRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
|
|
557
|
+
},
|
|
558
|
+
/**
|
|
559
|
+
* Permanently deletes the partner-relation. Supply the unique code that was returned when you created the partner-relation and this will delete it.
|
|
560
|
+
* @summary Delete the partner-relation
|
|
561
|
+
* @param {number} id
|
|
562
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
563
|
+
* @param {*} [options] Override http request option.
|
|
564
|
+
* @throws {RequiredError}
|
|
565
|
+
*/
|
|
566
|
+
deletePartnerRelation(id: number, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass> {
|
|
567
|
+
return localVarFp.deletePartnerRelation(id, authorization, options).then((request) => request(axios, basePath));
|
|
568
|
+
},
|
|
569
|
+
/**
|
|
570
|
+
* Retrieve a single partner relation identified by its id
|
|
571
|
+
* @summary Retrieve the partner relation
|
|
572
|
+
* @param {number} id Id of the partner relation
|
|
573
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
574
|
+
* @param {*} [options] Override http request option.
|
|
575
|
+
* @throws {RequiredError}
|
|
576
|
+
*/
|
|
577
|
+
getPartnerRelation(id: number, authorization?: string, options?: any): AxiosPromise<GetPartnerRelationClass> {
|
|
578
|
+
return localVarFp.getPartnerRelation(id, authorization, options).then((request) => request(axios, basePath));
|
|
579
|
+
},
|
|
580
|
+
/**
|
|
581
|
+
* Retrieve a single partner relation type identified with a slug - can be used to create partner relations
|
|
582
|
+
* @summary Retrieve the partner relation type
|
|
583
|
+
* @param {string} slug Identifying slug of the partner relation type
|
|
584
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
585
|
+
* @param {*} [options] Override http request option.
|
|
586
|
+
* @throws {RequiredError}
|
|
587
|
+
*/
|
|
588
|
+
getPartnerRelationType(slug: string, authorization?: string, options?: any): AxiosPromise<GetPartnerRelationTypeClass> {
|
|
589
|
+
return localVarFp.getPartnerRelationType(slug, authorization, options).then((request) => request(axios, basePath));
|
|
590
|
+
},
|
|
591
|
+
/**
|
|
592
|
+
* List all partner relation types - is used to create partner relations
|
|
593
|
+
* @summary List partner relation types
|
|
594
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
595
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
596
|
+
* @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.
|
|
597
|
+
* @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, slug, relationName, maxCardinality, inverseMaxCardinality</i>
|
|
598
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
599
|
+
* @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, slug, maxCardinality, inverseMaxCardinality, createdAt, updatedAt</i>
|
|
600
|
+
* @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: .<i>
|
|
601
|
+
* @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, slug, relationName, maxCardinality, inverseMaxCardinality</i>
|
|
602
|
+
* @param {*} [options] Override http request option.
|
|
603
|
+
* @throws {RequiredError}
|
|
604
|
+
*/
|
|
605
|
+
listPartnerRelationTypes(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPartnerRelationTypesClass> {
|
|
606
|
+
return localVarFp.listPartnerRelationTypes(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
607
|
+
},
|
|
608
|
+
/**
|
|
609
|
+
* List all partner relations
|
|
610
|
+
* @summary List partner relations
|
|
611
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
612
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
613
|
+
* @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.
|
|
614
|
+
* @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, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId</i>
|
|
615
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
616
|
+
* @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, partnerRelationTypeId, startDate, endDate, createdAt, updatedAt</i>
|
|
617
|
+
* @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: partnerRelationType.<i>
|
|
618
|
+
* @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, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId</i>
|
|
619
|
+
* @param {*} [options] Override http request option.
|
|
620
|
+
* @throws {RequiredError}
|
|
621
|
+
*/
|
|
622
|
+
listPartnerRelations(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPartnerRelationClass> {
|
|
623
|
+
return localVarFp.listPartnerRelations(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
624
|
+
},
|
|
625
|
+
/**
|
|
626
|
+
* Update a partner relation identified by its id
|
|
627
|
+
* @summary Update the partner relation
|
|
628
|
+
* @param {number} id Id of the partner relation
|
|
629
|
+
* @param {UpdatePartnerRelationRequestDtoRest} updatePartnerRelationRequestDtoRest
|
|
630
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
631
|
+
* @param {*} [options] Override http request option.
|
|
632
|
+
* @throws {RequiredError}
|
|
633
|
+
*/
|
|
634
|
+
updatePartnerRelation(id: number, updatePartnerRelationRequestDtoRest: UpdatePartnerRelationRequestDtoRest, authorization?: string, options?: any): AxiosPromise<GetPartnerRelationClass> {
|
|
635
|
+
return localVarFp.updatePartnerRelation(id, updatePartnerRelationRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
|
|
636
|
+
},
|
|
637
|
+
};
|
|
638
|
+
};
|
|
639
|
+
|
|
640
|
+
/**
|
|
641
|
+
* Request parameters for createPartnerRelation operation in PartnerRelationsApi.
|
|
642
|
+
* @export
|
|
643
|
+
* @interface PartnerRelationsApiCreatePartnerRelationRequest
|
|
644
|
+
*/
|
|
645
|
+
export interface PartnerRelationsApiCreatePartnerRelationRequest {
|
|
646
|
+
/**
|
|
647
|
+
*
|
|
648
|
+
* @type {CreatePartnerRelationRequestDtoRest}
|
|
649
|
+
* @memberof PartnerRelationsApiCreatePartnerRelation
|
|
650
|
+
*/
|
|
651
|
+
readonly createPartnerRelationRequestDtoRest: CreatePartnerRelationRequestDtoRest
|
|
652
|
+
|
|
653
|
+
/**
|
|
654
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
655
|
+
* @type {string}
|
|
656
|
+
* @memberof PartnerRelationsApiCreatePartnerRelation
|
|
657
|
+
*/
|
|
658
|
+
readonly authorization?: string
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
/**
|
|
662
|
+
* Request parameters for deletePartnerRelation operation in PartnerRelationsApi.
|
|
663
|
+
* @export
|
|
664
|
+
* @interface PartnerRelationsApiDeletePartnerRelationRequest
|
|
665
|
+
*/
|
|
666
|
+
export interface PartnerRelationsApiDeletePartnerRelationRequest {
|
|
667
|
+
/**
|
|
668
|
+
*
|
|
669
|
+
* @type {number}
|
|
670
|
+
* @memberof PartnerRelationsApiDeletePartnerRelation
|
|
671
|
+
*/
|
|
672
|
+
readonly id: number
|
|
673
|
+
|
|
674
|
+
/**
|
|
675
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
676
|
+
* @type {string}
|
|
677
|
+
* @memberof PartnerRelationsApiDeletePartnerRelation
|
|
678
|
+
*/
|
|
679
|
+
readonly authorization?: string
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
/**
|
|
683
|
+
* Request parameters for getPartnerRelation operation in PartnerRelationsApi.
|
|
684
|
+
* @export
|
|
685
|
+
* @interface PartnerRelationsApiGetPartnerRelationRequest
|
|
686
|
+
*/
|
|
687
|
+
export interface PartnerRelationsApiGetPartnerRelationRequest {
|
|
688
|
+
/**
|
|
689
|
+
* Id of the partner relation
|
|
690
|
+
* @type {number}
|
|
691
|
+
* @memberof PartnerRelationsApiGetPartnerRelation
|
|
692
|
+
*/
|
|
693
|
+
readonly id: number
|
|
694
|
+
|
|
695
|
+
/**
|
|
696
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
697
|
+
* @type {string}
|
|
698
|
+
* @memberof PartnerRelationsApiGetPartnerRelation
|
|
699
|
+
*/
|
|
700
|
+
readonly authorization?: string
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
/**
|
|
704
|
+
* Request parameters for getPartnerRelationType operation in PartnerRelationsApi.
|
|
705
|
+
* @export
|
|
706
|
+
* @interface PartnerRelationsApiGetPartnerRelationTypeRequest
|
|
707
|
+
*/
|
|
708
|
+
export interface PartnerRelationsApiGetPartnerRelationTypeRequest {
|
|
709
|
+
/**
|
|
710
|
+
* Identifying slug of the partner relation type
|
|
711
|
+
* @type {string}
|
|
712
|
+
* @memberof PartnerRelationsApiGetPartnerRelationType
|
|
713
|
+
*/
|
|
714
|
+
readonly slug: string
|
|
715
|
+
|
|
716
|
+
/**
|
|
717
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
718
|
+
* @type {string}
|
|
719
|
+
* @memberof PartnerRelationsApiGetPartnerRelationType
|
|
720
|
+
*/
|
|
721
|
+
readonly authorization?: string
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
/**
|
|
725
|
+
* Request parameters for listPartnerRelationTypes operation in PartnerRelationsApi.
|
|
726
|
+
* @export
|
|
727
|
+
* @interface PartnerRelationsApiListPartnerRelationTypesRequest
|
|
728
|
+
*/
|
|
729
|
+
export interface PartnerRelationsApiListPartnerRelationTypesRequest {
|
|
730
|
+
/**
|
|
731
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
732
|
+
* @type {string}
|
|
733
|
+
* @memberof PartnerRelationsApiListPartnerRelationTypes
|
|
734
|
+
*/
|
|
735
|
+
readonly authorization?: string
|
|
736
|
+
|
|
737
|
+
/**
|
|
738
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
739
|
+
* @type {any}
|
|
740
|
+
* @memberof PartnerRelationsApiListPartnerRelationTypes
|
|
741
|
+
*/
|
|
742
|
+
readonly pageSize?: any
|
|
743
|
+
|
|
744
|
+
/**
|
|
745
|
+
* 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.
|
|
746
|
+
* @type {any}
|
|
747
|
+
* @memberof PartnerRelationsApiListPartnerRelationTypes
|
|
748
|
+
*/
|
|
749
|
+
readonly pageToken?: any
|
|
750
|
+
|
|
751
|
+
/**
|
|
752
|
+
* 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>
|
|
753
|
+
* @type {string}
|
|
754
|
+
* @memberof PartnerRelationsApiListPartnerRelationTypes
|
|
755
|
+
*/
|
|
756
|
+
readonly filter?: string
|
|
757
|
+
|
|
758
|
+
/**
|
|
759
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
760
|
+
* @type {any}
|
|
761
|
+
* @memberof PartnerRelationsApiListPartnerRelationTypes
|
|
762
|
+
*/
|
|
763
|
+
readonly search?: any
|
|
764
|
+
|
|
765
|
+
/**
|
|
766
|
+
* 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>
|
|
767
|
+
* @type {string}
|
|
768
|
+
* @memberof PartnerRelationsApiListPartnerRelationTypes
|
|
769
|
+
*/
|
|
770
|
+
readonly order?: string
|
|
771
|
+
|
|
772
|
+
/**
|
|
773
|
+
* 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>
|
|
774
|
+
* @type {string}
|
|
775
|
+
* @memberof PartnerRelationsApiListPartnerRelationTypes
|
|
776
|
+
*/
|
|
777
|
+
readonly expand?: string
|
|
778
|
+
|
|
779
|
+
/**
|
|
780
|
+
* 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>
|
|
781
|
+
* @type {string}
|
|
782
|
+
* @memberof PartnerRelationsApiListPartnerRelationTypes
|
|
783
|
+
*/
|
|
784
|
+
readonly filters?: string
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
/**
|
|
788
|
+
* Request parameters for listPartnerRelations operation in PartnerRelationsApi.
|
|
789
|
+
* @export
|
|
790
|
+
* @interface PartnerRelationsApiListPartnerRelationsRequest
|
|
791
|
+
*/
|
|
792
|
+
export interface PartnerRelationsApiListPartnerRelationsRequest {
|
|
793
|
+
/**
|
|
794
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
795
|
+
* @type {string}
|
|
796
|
+
* @memberof PartnerRelationsApiListPartnerRelations
|
|
797
|
+
*/
|
|
798
|
+
readonly authorization?: string
|
|
799
|
+
|
|
800
|
+
/**
|
|
801
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
802
|
+
* @type {any}
|
|
803
|
+
* @memberof PartnerRelationsApiListPartnerRelations
|
|
804
|
+
*/
|
|
805
|
+
readonly pageSize?: any
|
|
806
|
+
|
|
807
|
+
/**
|
|
808
|
+
* 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.
|
|
809
|
+
* @type {any}
|
|
810
|
+
* @memberof PartnerRelationsApiListPartnerRelations
|
|
811
|
+
*/
|
|
812
|
+
readonly pageToken?: any
|
|
813
|
+
|
|
814
|
+
/**
|
|
815
|
+
* 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>
|
|
816
|
+
* @type {string}
|
|
817
|
+
* @memberof PartnerRelationsApiListPartnerRelations
|
|
818
|
+
*/
|
|
819
|
+
readonly filter?: string
|
|
820
|
+
|
|
821
|
+
/**
|
|
822
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
823
|
+
* @type {any}
|
|
824
|
+
* @memberof PartnerRelationsApiListPartnerRelations
|
|
825
|
+
*/
|
|
826
|
+
readonly search?: any
|
|
827
|
+
|
|
828
|
+
/**
|
|
829
|
+
* 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>
|
|
830
|
+
* @type {string}
|
|
831
|
+
* @memberof PartnerRelationsApiListPartnerRelations
|
|
832
|
+
*/
|
|
833
|
+
readonly order?: string
|
|
834
|
+
|
|
835
|
+
/**
|
|
836
|
+
* 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>
|
|
837
|
+
* @type {string}
|
|
838
|
+
* @memberof PartnerRelationsApiListPartnerRelations
|
|
839
|
+
*/
|
|
840
|
+
readonly expand?: string
|
|
841
|
+
|
|
842
|
+
/**
|
|
843
|
+
* 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>
|
|
844
|
+
* @type {string}
|
|
845
|
+
* @memberof PartnerRelationsApiListPartnerRelations
|
|
846
|
+
*/
|
|
847
|
+
readonly filters?: string
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
/**
|
|
851
|
+
* Request parameters for updatePartnerRelation operation in PartnerRelationsApi.
|
|
852
|
+
* @export
|
|
853
|
+
* @interface PartnerRelationsApiUpdatePartnerRelationRequest
|
|
854
|
+
*/
|
|
855
|
+
export interface PartnerRelationsApiUpdatePartnerRelationRequest {
|
|
856
|
+
/**
|
|
857
|
+
* Id of the partner relation
|
|
858
|
+
* @type {number}
|
|
859
|
+
* @memberof PartnerRelationsApiUpdatePartnerRelation
|
|
860
|
+
*/
|
|
861
|
+
readonly id: number
|
|
862
|
+
|
|
863
|
+
/**
|
|
864
|
+
*
|
|
865
|
+
* @type {UpdatePartnerRelationRequestDtoRest}
|
|
866
|
+
* @memberof PartnerRelationsApiUpdatePartnerRelation
|
|
867
|
+
*/
|
|
868
|
+
readonly updatePartnerRelationRequestDtoRest: UpdatePartnerRelationRequestDtoRest
|
|
869
|
+
|
|
870
|
+
/**
|
|
871
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
872
|
+
* @type {string}
|
|
873
|
+
* @memberof PartnerRelationsApiUpdatePartnerRelation
|
|
874
|
+
*/
|
|
875
|
+
readonly authorization?: string
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
/**
|
|
879
|
+
* PartnerRelationsApi - object-oriented interface
|
|
880
|
+
* @export
|
|
881
|
+
* @class PartnerRelationsApi
|
|
882
|
+
* @extends {BaseAPI}
|
|
883
|
+
*/
|
|
884
|
+
export class PartnerRelationsApi extends BaseAPI {
|
|
885
|
+
/**
|
|
886
|
+
* This will create a relationship between two partners. For example a parent-child relationship, or a partnership agreement.
|
|
887
|
+
* @summary Create the partner relation
|
|
888
|
+
* @param {PartnerRelationsApiCreatePartnerRelationRequest} requestParameters Request parameters.
|
|
889
|
+
* @param {*} [options] Override http request option.
|
|
890
|
+
* @throws {RequiredError}
|
|
891
|
+
* @memberof PartnerRelationsApi
|
|
892
|
+
*/
|
|
893
|
+
public createPartnerRelation(requestParameters: PartnerRelationsApiCreatePartnerRelationRequest, options?: AxiosRequestConfig) {
|
|
894
|
+
return PartnerRelationsApiFp(this.configuration).createPartnerRelation(requestParameters.createPartnerRelationRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
/**
|
|
898
|
+
* Permanently deletes the partner-relation. Supply the unique code that was returned when you created the partner-relation and this will delete it.
|
|
899
|
+
* @summary Delete the partner-relation
|
|
900
|
+
* @param {PartnerRelationsApiDeletePartnerRelationRequest} requestParameters Request parameters.
|
|
901
|
+
* @param {*} [options] Override http request option.
|
|
902
|
+
* @throws {RequiredError}
|
|
903
|
+
* @memberof PartnerRelationsApi
|
|
904
|
+
*/
|
|
905
|
+
public deletePartnerRelation(requestParameters: PartnerRelationsApiDeletePartnerRelationRequest, options?: AxiosRequestConfig) {
|
|
906
|
+
return PartnerRelationsApiFp(this.configuration).deletePartnerRelation(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
/**
|
|
910
|
+
* Retrieve a single partner relation identified by its id
|
|
911
|
+
* @summary Retrieve the partner relation
|
|
912
|
+
* @param {PartnerRelationsApiGetPartnerRelationRequest} requestParameters Request parameters.
|
|
913
|
+
* @param {*} [options] Override http request option.
|
|
914
|
+
* @throws {RequiredError}
|
|
915
|
+
* @memberof PartnerRelationsApi
|
|
916
|
+
*/
|
|
917
|
+
public getPartnerRelation(requestParameters: PartnerRelationsApiGetPartnerRelationRequest, options?: AxiosRequestConfig) {
|
|
918
|
+
return PartnerRelationsApiFp(this.configuration).getPartnerRelation(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
/**
|
|
922
|
+
* Retrieve a single partner relation type identified with a slug - can be used to create partner relations
|
|
923
|
+
* @summary Retrieve the partner relation type
|
|
924
|
+
* @param {PartnerRelationsApiGetPartnerRelationTypeRequest} requestParameters Request parameters.
|
|
925
|
+
* @param {*} [options] Override http request option.
|
|
926
|
+
* @throws {RequiredError}
|
|
927
|
+
* @memberof PartnerRelationsApi
|
|
928
|
+
*/
|
|
929
|
+
public getPartnerRelationType(requestParameters: PartnerRelationsApiGetPartnerRelationTypeRequest, options?: AxiosRequestConfig) {
|
|
930
|
+
return PartnerRelationsApiFp(this.configuration).getPartnerRelationType(requestParameters.slug, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
/**
|
|
934
|
+
* List all partner relation types - is used to create partner relations
|
|
935
|
+
* @summary List partner relation types
|
|
936
|
+
* @param {PartnerRelationsApiListPartnerRelationTypesRequest} requestParameters Request parameters.
|
|
937
|
+
* @param {*} [options] Override http request option.
|
|
938
|
+
* @throws {RequiredError}
|
|
939
|
+
* @memberof PartnerRelationsApi
|
|
940
|
+
*/
|
|
941
|
+
public listPartnerRelationTypes(requestParameters: PartnerRelationsApiListPartnerRelationTypesRequest = {}, options?: AxiosRequestConfig) {
|
|
942
|
+
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));
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
/**
|
|
946
|
+
* List all partner relations
|
|
947
|
+
* @summary List partner relations
|
|
948
|
+
* @param {PartnerRelationsApiListPartnerRelationsRequest} requestParameters Request parameters.
|
|
949
|
+
* @param {*} [options] Override http request option.
|
|
950
|
+
* @throws {RequiredError}
|
|
951
|
+
* @memberof PartnerRelationsApi
|
|
952
|
+
*/
|
|
953
|
+
public listPartnerRelations(requestParameters: PartnerRelationsApiListPartnerRelationsRequest = {}, options?: AxiosRequestConfig) {
|
|
954
|
+
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));
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
/**
|
|
958
|
+
* Update a partner relation identified by its id
|
|
959
|
+
* @summary Update the partner relation
|
|
960
|
+
* @param {PartnerRelationsApiUpdatePartnerRelationRequest} requestParameters Request parameters.
|
|
961
|
+
* @param {*} [options] Override http request option.
|
|
962
|
+
* @throws {RequiredError}
|
|
963
|
+
* @memberof PartnerRelationsApi
|
|
964
|
+
*/
|
|
965
|
+
public updatePartnerRelation(requestParameters: PartnerRelationsApiUpdatePartnerRelationRequest, options?: AxiosRequestConfig) {
|
|
966
|
+
return PartnerRelationsApiFp(this.configuration).updatePartnerRelation(requestParameters.id, requestParameters.updatePartnerRelationRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
967
|
+
}
|
|
968
|
+
}
|