@emilgroup/partner-sdk-node 1.0.0 → 1.0.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 +0 -7
- package/README.md +2 -2
- package/api/partner-types-api.ts +10 -24
- package/api/partners-api.ts +10 -24
- package/api.ts +0 -4
- package/base.ts +0 -1
- package/dist/api/partner-types-api.d.ts +7 -16
- package/dist/api/partner-types-api.js +9 -15
- package/dist/api/partners-api.d.ts +7 -16
- package/dist/api/partners-api.js +9 -15
- package/dist/api.d.ts +0 -2
- package/dist/api.js +0 -2
- package/dist/base.js +0 -1
- package/dist/models/index.d.ts +0 -5
- package/dist/models/index.js +0 -5
- package/dist/models/partner-class.d.ts +0 -12
- package/dist/models/update-partner-type-request-dto.d.ts +0 -6
- package/models/index.ts +0 -5
- package/models/partner-class.ts +0 -12
- package/models/update-partner-type-request-dto.ts +0 -6
- package/package.json +1 -4
- package/api/partner-relations-api.ts +0 -349
- package/api/partner-version-api.ts +0 -375
- package/dist/api/partner-relations-api.d.ts +0 -206
- package/dist/api/partner-relations-api.js +0 -352
- package/dist/api/partner-version-api.d.ts +0 -224
- package/dist/api/partner-version-api.js +0 -363
- package/dist/models/get-partner-relation-type-class.d.ts +0 -25
- package/dist/models/get-partner-relation-type-class.js +0 -15
- package/dist/models/get-partner-version-response-class.d.ts +0 -25
- package/dist/models/get-partner-version-response-class.js +0 -15
- package/dist/models/list-partner-relation-types-class.d.ts +0 -31
- package/dist/models/list-partner-relation-types-class.js +0 -15
- package/dist/models/list-partner-versions-response-class.d.ts +0 -25
- package/dist/models/list-partner-versions-response-class.js +0 -15
- package/dist/models/partner-relation-type-class.d.ts +0 -66
- package/dist/models/partner-relation-type-class.js +0 -15
- package/models/get-partner-relation-type-class.ts +0 -31
- package/models/get-partner-version-response-class.ts +0 -31
- package/models/list-partner-relation-types-class.ts +0 -37
- package/models/list-partner-versions-response-class.ts +0 -31
- package/models/partner-relation-type-class.ts +0 -72
|
@@ -1,375 +0,0 @@
|
|
|
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 { GetPartnerVersionResponseClass } from '../models';
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
import { ListPartnerVersionsResponseClass } from '../models';
|
|
27
|
-
/**
|
|
28
|
-
* PartnerVersionApi - axios parameter creator
|
|
29
|
-
* @export
|
|
30
|
-
*/
|
|
31
|
-
export const PartnerVersionApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
32
|
-
return {
|
|
33
|
-
/**
|
|
34
|
-
* Retrieve a partner version by providing partner code and version number
|
|
35
|
-
* @summary Retrieve the partner version
|
|
36
|
-
* @param {string} code Unique identifier for the object.
|
|
37
|
-
* @param {number} version
|
|
38
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
39
|
-
* @param {*} [options] Override http request option.
|
|
40
|
-
* @throws {RequiredError}
|
|
41
|
-
*/
|
|
42
|
-
getPartnerVersion: async (code: string, version: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43
|
-
// verify required parameter 'code' is not null or undefined
|
|
44
|
-
assertParamExists('getPartnerVersion', 'code', code)
|
|
45
|
-
// verify required parameter 'version' is not null or undefined
|
|
46
|
-
assertParamExists('getPartnerVersion', 'version', version)
|
|
47
|
-
const localVarPath = `/partnerservice/v1/partners/{code}/versions/{version}`
|
|
48
|
-
.replace(`{${"code"}}`, encodeURIComponent(String(code)))
|
|
49
|
-
.replace(`{${"version"}}`, encodeURIComponent(String(version)));
|
|
50
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
51
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
52
|
-
let baseOptions;
|
|
53
|
-
let baseAccessToken;
|
|
54
|
-
if (configuration) {
|
|
55
|
-
baseOptions = configuration.baseOptions;
|
|
56
|
-
baseAccessToken = configuration.accessToken;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
60
|
-
const localVarHeaderParameter = {} as any;
|
|
61
|
-
const localVarQueryParameter = {} as any;
|
|
62
|
-
|
|
63
|
-
// authentication bearer required
|
|
64
|
-
// http bearer authentication required
|
|
65
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
66
|
-
|
|
67
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
68
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
74
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
75
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
76
|
-
|
|
77
|
-
return {
|
|
78
|
-
url: toPathString(localVarUrlObj),
|
|
79
|
-
options: localVarRequestOptions,
|
|
80
|
-
};
|
|
81
|
-
},
|
|
82
|
-
/**
|
|
83
|
-
* List all partner versions by providing partner code
|
|
84
|
-
* @summary List partner versions
|
|
85
|
-
* @param {string} code
|
|
86
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
87
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
88
|
-
* @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.
|
|
89
|
-
* @param {any} [filter] Filter the response by one or multiple fields<br/> <br/> <i>Allowed values: code, version, displayName, updatedAt, updatedBy</i>
|
|
90
|
-
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
91
|
-
* @param {any} [order] Order allowing you to specify the desired order of entities retrieved from the server.<br/> <br/> <i>Allowed values: displayName, createdAt, updatedAt, version</i>
|
|
92
|
-
* @param {'partnerType'} [expand] Allowed expands for the partner version
|
|
93
|
-
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
94
|
-
* @param {*} [options] Override http request option.
|
|
95
|
-
* @throws {RequiredError}
|
|
96
|
-
*/
|
|
97
|
-
listPartnerVersion: async (code: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: 'partnerType', filters?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
98
|
-
// verify required parameter 'code' is not null or undefined
|
|
99
|
-
assertParamExists('listPartnerVersion', 'code', code)
|
|
100
|
-
const localVarPath = `/partnerservice/v1/partners/{code}/versions`
|
|
101
|
-
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
102
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
103
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
104
|
-
let baseOptions;
|
|
105
|
-
let baseAccessToken;
|
|
106
|
-
if (configuration) {
|
|
107
|
-
baseOptions = configuration.baseOptions;
|
|
108
|
-
baseAccessToken = configuration.accessToken;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
112
|
-
const localVarHeaderParameter = {} as any;
|
|
113
|
-
const localVarQueryParameter = {} as any;
|
|
114
|
-
|
|
115
|
-
// authentication bearer required
|
|
116
|
-
// http bearer authentication required
|
|
117
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
118
|
-
|
|
119
|
-
if (pageSize !== undefined) {
|
|
120
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
if (pageToken !== undefined) {
|
|
124
|
-
localVarQueryParameter['pageToken'] = pageToken;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
if (filter !== undefined) {
|
|
128
|
-
localVarQueryParameter['filter'] = filter;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
if (search !== undefined) {
|
|
132
|
-
localVarQueryParameter['search'] = search;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
if (order !== undefined) {
|
|
136
|
-
localVarQueryParameter['order'] = order;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
if (expand !== undefined) {
|
|
140
|
-
localVarQueryParameter['expand'] = expand;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
if (filters !== undefined) {
|
|
144
|
-
localVarQueryParameter['filters'] = filters;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
148
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
154
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
155
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
156
|
-
|
|
157
|
-
return {
|
|
158
|
-
url: toPathString(localVarUrlObj),
|
|
159
|
-
options: localVarRequestOptions,
|
|
160
|
-
};
|
|
161
|
-
},
|
|
162
|
-
}
|
|
163
|
-
};
|
|
164
|
-
|
|
165
|
-
/**
|
|
166
|
-
* PartnerVersionApi - functional programming interface
|
|
167
|
-
* @export
|
|
168
|
-
*/
|
|
169
|
-
export const PartnerVersionApiFp = function(configuration?: Configuration) {
|
|
170
|
-
const localVarAxiosParamCreator = PartnerVersionApiAxiosParamCreator(configuration)
|
|
171
|
-
return {
|
|
172
|
-
/**
|
|
173
|
-
* Retrieve a partner version by providing partner code and version number
|
|
174
|
-
* @summary Retrieve the partner version
|
|
175
|
-
* @param {string} code Unique identifier for the object.
|
|
176
|
-
* @param {number} version
|
|
177
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
178
|
-
* @param {*} [options] Override http request option.
|
|
179
|
-
* @throws {RequiredError}
|
|
180
|
-
*/
|
|
181
|
-
async getPartnerVersion(code: string, version: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPartnerVersionResponseClass>> {
|
|
182
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPartnerVersion(code, version, authorization, options);
|
|
183
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
184
|
-
},
|
|
185
|
-
/**
|
|
186
|
-
* List all partner versions by providing partner code
|
|
187
|
-
* @summary List partner versions
|
|
188
|
-
* @param {string} code
|
|
189
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
190
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
191
|
-
* @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.
|
|
192
|
-
* @param {any} [filter] Filter the response by one or multiple fields<br/> <br/> <i>Allowed values: code, version, displayName, updatedAt, updatedBy</i>
|
|
193
|
-
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
194
|
-
* @param {any} [order] Order allowing you to specify the desired order of entities retrieved from the server.<br/> <br/> <i>Allowed values: displayName, createdAt, updatedAt, version</i>
|
|
195
|
-
* @param {'partnerType'} [expand] Allowed expands for the partner version
|
|
196
|
-
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
197
|
-
* @param {*} [options] Override http request option.
|
|
198
|
-
* @throws {RequiredError}
|
|
199
|
-
*/
|
|
200
|
-
async listPartnerVersion(code: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: 'partnerType', filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPartnerVersionsResponseClass>> {
|
|
201
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPartnerVersion(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
202
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
203
|
-
},
|
|
204
|
-
}
|
|
205
|
-
};
|
|
206
|
-
|
|
207
|
-
/**
|
|
208
|
-
* PartnerVersionApi - factory interface
|
|
209
|
-
* @export
|
|
210
|
-
*/
|
|
211
|
-
export const PartnerVersionApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
212
|
-
const localVarFp = PartnerVersionApiFp(configuration)
|
|
213
|
-
return {
|
|
214
|
-
/**
|
|
215
|
-
* Retrieve a partner version by providing partner code and version number
|
|
216
|
-
* @summary Retrieve the partner version
|
|
217
|
-
* @param {string} code Unique identifier for the object.
|
|
218
|
-
* @param {number} version
|
|
219
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
220
|
-
* @param {*} [options] Override http request option.
|
|
221
|
-
* @throws {RequiredError}
|
|
222
|
-
*/
|
|
223
|
-
getPartnerVersion(code: string, version: number, authorization?: string, options?: any): AxiosPromise<GetPartnerVersionResponseClass> {
|
|
224
|
-
return localVarFp.getPartnerVersion(code, version, authorization, options).then((request) => request(axios, basePath));
|
|
225
|
-
},
|
|
226
|
-
/**
|
|
227
|
-
* List all partner versions by providing partner code
|
|
228
|
-
* @summary List partner versions
|
|
229
|
-
* @param {string} code
|
|
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 {any} [filter] Filter the response by one or multiple fields<br/> <br/> <i>Allowed values: code, version, displayName, updatedAt, updatedBy</i>
|
|
234
|
-
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
235
|
-
* @param {any} [order] Order allowing you to specify the desired order of entities retrieved from the server.<br/> <br/> <i>Allowed values: displayName, createdAt, updatedAt, version</i>
|
|
236
|
-
* @param {'partnerType'} [expand] Allowed expands for the partner version
|
|
237
|
-
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
238
|
-
* @param {*} [options] Override http request option.
|
|
239
|
-
* @throws {RequiredError}
|
|
240
|
-
*/
|
|
241
|
-
listPartnerVersion(code: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: 'partnerType', filters?: any, options?: any): AxiosPromise<ListPartnerVersionsResponseClass> {
|
|
242
|
-
return localVarFp.listPartnerVersion(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
243
|
-
},
|
|
244
|
-
};
|
|
245
|
-
};
|
|
246
|
-
|
|
247
|
-
/**
|
|
248
|
-
* Request parameters for getPartnerVersion operation in PartnerVersionApi.
|
|
249
|
-
* @export
|
|
250
|
-
* @interface PartnerVersionApiGetPartnerVersionRequest
|
|
251
|
-
*/
|
|
252
|
-
export interface PartnerVersionApiGetPartnerVersionRequest {
|
|
253
|
-
/**
|
|
254
|
-
* Unique identifier for the object.
|
|
255
|
-
* @type {string}
|
|
256
|
-
* @memberof PartnerVersionApiGetPartnerVersion
|
|
257
|
-
*/
|
|
258
|
-
readonly code: string
|
|
259
|
-
|
|
260
|
-
/**
|
|
261
|
-
*
|
|
262
|
-
* @type {number}
|
|
263
|
-
* @memberof PartnerVersionApiGetPartnerVersion
|
|
264
|
-
*/
|
|
265
|
-
readonly version: number
|
|
266
|
-
|
|
267
|
-
/**
|
|
268
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
269
|
-
* @type {string}
|
|
270
|
-
* @memberof PartnerVersionApiGetPartnerVersion
|
|
271
|
-
*/
|
|
272
|
-
readonly authorization?: string
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
/**
|
|
276
|
-
* Request parameters for listPartnerVersion operation in PartnerVersionApi.
|
|
277
|
-
* @export
|
|
278
|
-
* @interface PartnerVersionApiListPartnerVersionRequest
|
|
279
|
-
*/
|
|
280
|
-
export interface PartnerVersionApiListPartnerVersionRequest {
|
|
281
|
-
/**
|
|
282
|
-
*
|
|
283
|
-
* @type {string}
|
|
284
|
-
* @memberof PartnerVersionApiListPartnerVersion
|
|
285
|
-
*/
|
|
286
|
-
readonly code: string
|
|
287
|
-
|
|
288
|
-
/**
|
|
289
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
290
|
-
* @type {string}
|
|
291
|
-
* @memberof PartnerVersionApiListPartnerVersion
|
|
292
|
-
*/
|
|
293
|
-
readonly authorization?: string
|
|
294
|
-
|
|
295
|
-
/**
|
|
296
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
297
|
-
* @type {any}
|
|
298
|
-
* @memberof PartnerVersionApiListPartnerVersion
|
|
299
|
-
*/
|
|
300
|
-
readonly pageSize?: any
|
|
301
|
-
|
|
302
|
-
/**
|
|
303
|
-
* 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.
|
|
304
|
-
* @type {any}
|
|
305
|
-
* @memberof PartnerVersionApiListPartnerVersion
|
|
306
|
-
*/
|
|
307
|
-
readonly pageToken?: any
|
|
308
|
-
|
|
309
|
-
/**
|
|
310
|
-
* Filter the response by one or multiple fields<br/> <br/> <i>Allowed values: code, version, displayName, updatedAt, updatedBy</i>
|
|
311
|
-
* @type {any}
|
|
312
|
-
* @memberof PartnerVersionApiListPartnerVersion
|
|
313
|
-
*/
|
|
314
|
-
readonly filter?: any
|
|
315
|
-
|
|
316
|
-
/**
|
|
317
|
-
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
318
|
-
* @type {any}
|
|
319
|
-
* @memberof PartnerVersionApiListPartnerVersion
|
|
320
|
-
*/
|
|
321
|
-
readonly search?: any
|
|
322
|
-
|
|
323
|
-
/**
|
|
324
|
-
* Order allowing you to specify the desired order of entities retrieved from the server.<br/> <br/> <i>Allowed values: displayName, createdAt, updatedAt, version</i>
|
|
325
|
-
* @type {any}
|
|
326
|
-
* @memberof PartnerVersionApiListPartnerVersion
|
|
327
|
-
*/
|
|
328
|
-
readonly order?: any
|
|
329
|
-
|
|
330
|
-
/**
|
|
331
|
-
* Allowed expands for the partner version
|
|
332
|
-
* @type {'partnerType'}
|
|
333
|
-
* @memberof PartnerVersionApiListPartnerVersion
|
|
334
|
-
*/
|
|
335
|
-
readonly expand?: 'partnerType'
|
|
336
|
-
|
|
337
|
-
/**
|
|
338
|
-
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
339
|
-
* @type {any}
|
|
340
|
-
* @memberof PartnerVersionApiListPartnerVersion
|
|
341
|
-
*/
|
|
342
|
-
readonly filters?: any
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
/**
|
|
346
|
-
* PartnerVersionApi - object-oriented interface
|
|
347
|
-
* @export
|
|
348
|
-
* @class PartnerVersionApi
|
|
349
|
-
* @extends {BaseAPI}
|
|
350
|
-
*/
|
|
351
|
-
export class PartnerVersionApi extends BaseAPI {
|
|
352
|
-
/**
|
|
353
|
-
* Retrieve a partner version by providing partner code and version number
|
|
354
|
-
* @summary Retrieve the partner version
|
|
355
|
-
* @param {PartnerVersionApiGetPartnerVersionRequest} requestParameters Request parameters.
|
|
356
|
-
* @param {*} [options] Override http request option.
|
|
357
|
-
* @throws {RequiredError}
|
|
358
|
-
* @memberof PartnerVersionApi
|
|
359
|
-
*/
|
|
360
|
-
public getPartnerVersion(requestParameters: PartnerVersionApiGetPartnerVersionRequest, options?: AxiosRequestConfig) {
|
|
361
|
-
return PartnerVersionApiFp(this.configuration).getPartnerVersion(requestParameters.code, requestParameters.version, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
/**
|
|
365
|
-
* List all partner versions by providing partner code
|
|
366
|
-
* @summary List partner versions
|
|
367
|
-
* @param {PartnerVersionApiListPartnerVersionRequest} requestParameters Request parameters.
|
|
368
|
-
* @param {*} [options] Override http request option.
|
|
369
|
-
* @throws {RequiredError}
|
|
370
|
-
* @memberof PartnerVersionApi
|
|
371
|
-
*/
|
|
372
|
-
public listPartnerVersion(requestParameters: PartnerVersionApiListPartnerVersionRequest, options?: AxiosRequestConfig) {
|
|
373
|
-
return PartnerVersionApiFp(this.configuration).listPartnerVersion(requestParameters.code, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
374
|
-
}
|
|
375
|
-
}
|
|
@@ -1,206 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* EMIL PartnerService
|
|
3
|
-
* The EMIL PartnerService API description
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0
|
|
6
|
-
* Contact: kontakt@emil.de
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
|
-
import { Configuration } from '../configuration';
|
|
14
|
-
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
-
import { GetPartnerRelationTypeClass } from '../models';
|
|
16
|
-
import { ListPartnerRelationTypesClass } from '../models';
|
|
17
|
-
/**
|
|
18
|
-
* PartnerRelationsApi - axios parameter creator
|
|
19
|
-
* @export
|
|
20
|
-
*/
|
|
21
|
-
export declare const PartnerRelationsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
22
|
-
/**
|
|
23
|
-
* Retrieve a single partner relation type identified with a slug - can be used to create partner relations
|
|
24
|
-
* @summary Retrieve the partner relation type
|
|
25
|
-
* @param {string} slug Identifying slug of the partner relation type
|
|
26
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
27
|
-
* @param {*} [options] Override http request option.
|
|
28
|
-
* @throws {RequiredError}
|
|
29
|
-
*/
|
|
30
|
-
getPartnerRelationType: (slug: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
31
|
-
/**
|
|
32
|
-
* List all partner relation types - is used to create partner relations
|
|
33
|
-
* @summary List partner relation types
|
|
34
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
35
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
36
|
-
* @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.
|
|
37
|
-
* @param {any} [filter] Filter the response by one or multiple fields<br/> <br/> <i>Allowed values: id, slug, relationName, maxCardinality, inverseCardinality</i>
|
|
38
|
-
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
39
|
-
* @param {any} [order] Order allowing you to specify the desired order of entities retrieved from the server.<br/> <br/> <i>Allowed values: id, slug, maxCardinality, inverseMaxCardinality, createdAt, updatedAt</i>
|
|
40
|
-
* @param {number} [expand] Allowed expands for the partner relation types - there are no possible expands for partner relation types
|
|
41
|
-
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
42
|
-
* @param {*} [options] Override http request option.
|
|
43
|
-
* @throws {RequiredError}
|
|
44
|
-
*/
|
|
45
|
-
listPartnerVersion: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: number, filters?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
46
|
-
};
|
|
47
|
-
/**
|
|
48
|
-
* PartnerRelationsApi - functional programming interface
|
|
49
|
-
* @export
|
|
50
|
-
*/
|
|
51
|
-
export declare const PartnerRelationsApiFp: (configuration?: Configuration) => {
|
|
52
|
-
/**
|
|
53
|
-
* Retrieve a single partner relation type identified with a slug - can be used to create partner relations
|
|
54
|
-
* @summary Retrieve the partner relation type
|
|
55
|
-
* @param {string} slug Identifying slug of the partner relation type
|
|
56
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
57
|
-
* @param {*} [options] Override http request option.
|
|
58
|
-
* @throws {RequiredError}
|
|
59
|
-
*/
|
|
60
|
-
getPartnerRelationType(slug: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPartnerRelationTypeClass>>;
|
|
61
|
-
/**
|
|
62
|
-
* List all partner relation types - is used to create partner relations
|
|
63
|
-
* @summary List partner relation types
|
|
64
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
65
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
66
|
-
* @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.
|
|
67
|
-
* @param {any} [filter] Filter the response by one or multiple fields<br/> <br/> <i>Allowed values: id, slug, relationName, maxCardinality, inverseCardinality</i>
|
|
68
|
-
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
69
|
-
* @param {any} [order] Order allowing you to specify the desired order of entities retrieved from the server.<br/> <br/> <i>Allowed values: id, slug, maxCardinality, inverseMaxCardinality, createdAt, updatedAt</i>
|
|
70
|
-
* @param {number} [expand] Allowed expands for the partner relation types - there are no possible expands for partner relation types
|
|
71
|
-
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
72
|
-
* @param {*} [options] Override http request option.
|
|
73
|
-
* @throws {RequiredError}
|
|
74
|
-
*/
|
|
75
|
-
listPartnerVersion(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: number, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPartnerRelationTypesClass>>;
|
|
76
|
-
};
|
|
77
|
-
/**
|
|
78
|
-
* PartnerRelationsApi - factory interface
|
|
79
|
-
* @export
|
|
80
|
-
*/
|
|
81
|
-
export declare const PartnerRelationsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
82
|
-
/**
|
|
83
|
-
* Retrieve a single partner relation type identified with a slug - can be used to create partner relations
|
|
84
|
-
* @summary Retrieve the partner relation type
|
|
85
|
-
* @param {string} slug Identifying slug of the partner relation type
|
|
86
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
87
|
-
* @param {*} [options] Override http request option.
|
|
88
|
-
* @throws {RequiredError}
|
|
89
|
-
*/
|
|
90
|
-
getPartnerRelationType(slug: string, authorization?: string, options?: any): AxiosPromise<GetPartnerRelationTypeClass>;
|
|
91
|
-
/**
|
|
92
|
-
* List all partner relation types - is used to create partner relations
|
|
93
|
-
* @summary List partner relation types
|
|
94
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
95
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
96
|
-
* @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.
|
|
97
|
-
* @param {any} [filter] Filter the response by one or multiple fields<br/> <br/> <i>Allowed values: id, slug, relationName, maxCardinality, inverseCardinality</i>
|
|
98
|
-
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
99
|
-
* @param {any} [order] Order allowing you to specify the desired order of entities retrieved from the server.<br/> <br/> <i>Allowed values: id, slug, maxCardinality, inverseMaxCardinality, createdAt, updatedAt</i>
|
|
100
|
-
* @param {number} [expand] Allowed expands for the partner relation types - there are no possible expands for partner relation types
|
|
101
|
-
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
102
|
-
* @param {*} [options] Override http request option.
|
|
103
|
-
* @throws {RequiredError}
|
|
104
|
-
*/
|
|
105
|
-
listPartnerVersion(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: number, filters?: any, options?: any): AxiosPromise<ListPartnerRelationTypesClass>;
|
|
106
|
-
};
|
|
107
|
-
/**
|
|
108
|
-
* Request parameters for getPartnerRelationType operation in PartnerRelationsApi.
|
|
109
|
-
* @export
|
|
110
|
-
* @interface PartnerRelationsApiGetPartnerRelationTypeRequest
|
|
111
|
-
*/
|
|
112
|
-
export interface PartnerRelationsApiGetPartnerRelationTypeRequest {
|
|
113
|
-
/**
|
|
114
|
-
* Identifying slug of the partner relation type
|
|
115
|
-
* @type {string}
|
|
116
|
-
* @memberof PartnerRelationsApiGetPartnerRelationType
|
|
117
|
-
*/
|
|
118
|
-
readonly slug: string;
|
|
119
|
-
/**
|
|
120
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
121
|
-
* @type {string}
|
|
122
|
-
* @memberof PartnerRelationsApiGetPartnerRelationType
|
|
123
|
-
*/
|
|
124
|
-
readonly authorization?: string;
|
|
125
|
-
}
|
|
126
|
-
/**
|
|
127
|
-
* Request parameters for listPartnerVersion operation in PartnerRelationsApi.
|
|
128
|
-
* @export
|
|
129
|
-
* @interface PartnerRelationsApiListPartnerVersionRequest
|
|
130
|
-
*/
|
|
131
|
-
export interface PartnerRelationsApiListPartnerVersionRequest {
|
|
132
|
-
/**
|
|
133
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
134
|
-
* @type {string}
|
|
135
|
-
* @memberof PartnerRelationsApiListPartnerVersion
|
|
136
|
-
*/
|
|
137
|
-
readonly authorization?: string;
|
|
138
|
-
/**
|
|
139
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
140
|
-
* @type {any}
|
|
141
|
-
* @memberof PartnerRelationsApiListPartnerVersion
|
|
142
|
-
*/
|
|
143
|
-
readonly pageSize?: any;
|
|
144
|
-
/**
|
|
145
|
-
* 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.
|
|
146
|
-
* @type {any}
|
|
147
|
-
* @memberof PartnerRelationsApiListPartnerVersion
|
|
148
|
-
*/
|
|
149
|
-
readonly pageToken?: any;
|
|
150
|
-
/**
|
|
151
|
-
* Filter the response by one or multiple fields<br/> <br/> <i>Allowed values: id, slug, relationName, maxCardinality, inverseCardinality</i>
|
|
152
|
-
* @type {any}
|
|
153
|
-
* @memberof PartnerRelationsApiListPartnerVersion
|
|
154
|
-
*/
|
|
155
|
-
readonly filter?: any;
|
|
156
|
-
/**
|
|
157
|
-
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
158
|
-
* @type {any}
|
|
159
|
-
* @memberof PartnerRelationsApiListPartnerVersion
|
|
160
|
-
*/
|
|
161
|
-
readonly search?: any;
|
|
162
|
-
/**
|
|
163
|
-
* Order allowing you to specify the desired order of entities retrieved from the server.<br/> <br/> <i>Allowed values: id, slug, maxCardinality, inverseMaxCardinality, createdAt, updatedAt</i>
|
|
164
|
-
* @type {any}
|
|
165
|
-
* @memberof PartnerRelationsApiListPartnerVersion
|
|
166
|
-
*/
|
|
167
|
-
readonly order?: any;
|
|
168
|
-
/**
|
|
169
|
-
* Allowed expands for the partner relation types - there are no possible expands for partner relation types
|
|
170
|
-
* @type {number}
|
|
171
|
-
* @memberof PartnerRelationsApiListPartnerVersion
|
|
172
|
-
*/
|
|
173
|
-
readonly expand?: number;
|
|
174
|
-
/**
|
|
175
|
-
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
176
|
-
* @type {any}
|
|
177
|
-
* @memberof PartnerRelationsApiListPartnerVersion
|
|
178
|
-
*/
|
|
179
|
-
readonly filters?: any;
|
|
180
|
-
}
|
|
181
|
-
/**
|
|
182
|
-
* PartnerRelationsApi - object-oriented interface
|
|
183
|
-
* @export
|
|
184
|
-
* @class PartnerRelationsApi
|
|
185
|
-
* @extends {BaseAPI}
|
|
186
|
-
*/
|
|
187
|
-
export declare class PartnerRelationsApi extends BaseAPI {
|
|
188
|
-
/**
|
|
189
|
-
* Retrieve a single partner relation type identified with a slug - can be used to create partner relations
|
|
190
|
-
* @summary Retrieve the partner relation type
|
|
191
|
-
* @param {PartnerRelationsApiGetPartnerRelationTypeRequest} requestParameters Request parameters.
|
|
192
|
-
* @param {*} [options] Override http request option.
|
|
193
|
-
* @throws {RequiredError}
|
|
194
|
-
* @memberof PartnerRelationsApi
|
|
195
|
-
*/
|
|
196
|
-
getPartnerRelationType(requestParameters: PartnerRelationsApiGetPartnerRelationTypeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPartnerRelationTypeClass, any>>;
|
|
197
|
-
/**
|
|
198
|
-
* List all partner relation types - is used to create partner relations
|
|
199
|
-
* @summary List partner relation types
|
|
200
|
-
* @param {PartnerRelationsApiListPartnerVersionRequest} requestParameters Request parameters.
|
|
201
|
-
* @param {*} [options] Override http request option.
|
|
202
|
-
* @throws {RequiredError}
|
|
203
|
-
* @memberof PartnerRelationsApi
|
|
204
|
-
*/
|
|
205
|
-
listPartnerVersion(requestParameters?: PartnerRelationsApiListPartnerVersionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPartnerRelationTypesClass, any>>;
|
|
206
|
-
}
|