@emilgroup/insurance-sdk-node 1.49.1 → 1.49.2-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/.openapi-generator/FILES +18 -8
  2. package/README.md +2 -2
  3. package/api/partner-links-api.ts +800 -0
  4. package/api/partner-roles-api.ts +683 -0
  5. package/api/policies-api.ts +13 -13
  6. package/api.ts +4 -2
  7. package/dist/api/partner-links-api.d.ts +450 -0
  8. package/dist/api/partner-links-api.js +738 -0
  9. package/dist/api/partner-roles-api.d.ts +385 -0
  10. package/dist/api/{policy-partner-roles-api.js → partner-roles-api.js} +136 -136
  11. package/dist/api/policies-api.d.ts +13 -13
  12. package/dist/api/policies-api.js +6 -6
  13. package/dist/api.d.ts +2 -1
  14. package/dist/api.js +2 -1
  15. package/dist/models/create-account-request-dto.d.ts +1 -1
  16. package/dist/models/create-account-request-dto.js +1 -1
  17. package/dist/models/create-lead-request-dto.d.ts +12 -0
  18. package/dist/models/{update-policy-partner-role-request-dto.d.ts → create-partner-role-request-dto.d.ts} +5 -5
  19. package/dist/models/{get-policy-partner-role-response-class.d.ts → create-partner-role-response-class.d.ts} +7 -7
  20. package/dist/models/{update-policy-partner-role-response-class.d.ts → get-partner-link-response-class.d.ts} +7 -7
  21. package/dist/models/{create-policy-partner-role-response-class.d.ts → get-partner-role-response-class.d.ts} +7 -7
  22. package/dist/models/index.d.ts +16 -7
  23. package/dist/models/index.js +16 -7
  24. package/dist/models/lead-class.d.ts +7 -0
  25. package/dist/models/link-partner-request-dto.d.ts +54 -0
  26. package/dist/models/link-partner-response-class.d.ts +25 -0
  27. package/dist/models/{list-policy-partner-roles-response-class.d.ts → list-partner-links-response-class.d.ts} +8 -8
  28. package/dist/models/list-partner-roles-response-class.d.ts +31 -0
  29. package/dist/models/list-partner-roles-response-class.js +15 -0
  30. package/dist/models/partner-class.d.ts +60 -0
  31. package/dist/models/partner-class.js +15 -0
  32. package/dist/models/partner-link-class.d.ts +86 -0
  33. package/dist/models/partner-link-class.js +15 -0
  34. package/dist/models/{policy-partner-role-class.d.ts → partner-role-class.d.ts} +9 -9
  35. package/dist/models/partner-role-class.js +15 -0
  36. package/dist/models/policy-class.d.ts +7 -0
  37. package/dist/models/unlink-partner-response-class.d.ts +25 -0
  38. package/dist/models/unlink-partner-response-class.js +15 -0
  39. package/dist/models/update-partner-link-request-dto.d.ts +30 -0
  40. package/dist/models/update-partner-link-request-dto.js +15 -0
  41. package/dist/models/update-partner-link-response-class.d.ts +25 -0
  42. package/dist/models/update-partner-link-response-class.js +15 -0
  43. package/dist/models/{create-policy-partner-role-request-dto.d.ts → update-partner-role-request-dto.d.ts} +5 -5
  44. package/dist/models/update-partner-role-request-dto.js +15 -0
  45. package/dist/models/update-partner-role-response-class.d.ts +25 -0
  46. package/dist/models/update-partner-role-response-class.js +15 -0
  47. package/models/create-account-request-dto.ts +1 -1
  48. package/models/create-lead-request-dto.ts +12 -0
  49. package/models/{update-policy-partner-role-request-dto.ts → create-partner-role-request-dto.ts} +5 -5
  50. package/models/{get-policy-partner-role-response-class.ts → create-partner-role-response-class.ts} +7 -7
  51. package/models/{create-policy-partner-role-response-class.ts → get-partner-link-response-class.ts} +7 -7
  52. package/models/{update-policy-partner-role-response-class.ts → get-partner-role-response-class.ts} +7 -7
  53. package/models/index.ts +16 -7
  54. package/models/lead-class.ts +7 -0
  55. package/models/link-partner-request-dto.ts +60 -0
  56. package/models/link-partner-response-class.ts +31 -0
  57. package/models/{list-policy-partner-roles-response-class.ts → list-partner-links-response-class.ts} +8 -8
  58. package/models/list-partner-roles-response-class.ts +37 -0
  59. package/models/partner-class.ts +66 -0
  60. package/models/partner-link-class.ts +92 -0
  61. package/models/{policy-partner-role-class.ts → partner-role-class.ts} +9 -9
  62. package/models/policy-class.ts +7 -0
  63. package/models/unlink-partner-response-class.ts +31 -0
  64. package/models/update-partner-link-request-dto.ts +36 -0
  65. package/models/update-partner-link-response-class.ts +31 -0
  66. package/models/{create-policy-partner-role-request-dto.ts → update-partner-role-request-dto.ts} +5 -5
  67. package/models/update-partner-role-response-class.ts +31 -0
  68. package/package.json +1 -1
  69. package/api/policy-partner-roles-api.ts +0 -683
  70. package/dist/api/policy-partner-roles-api.d.ts +0 -385
  71. /package/dist/models/{create-policy-partner-role-request-dto.js → create-partner-role-request-dto.js} +0 -0
  72. /package/dist/models/{create-policy-partner-role-response-class.js → create-partner-role-response-class.js} +0 -0
  73. /package/dist/models/{get-policy-partner-role-response-class.js → get-partner-link-response-class.js} +0 -0
  74. /package/dist/models/{list-policy-partner-roles-response-class.js → get-partner-role-response-class.js} +0 -0
  75. /package/dist/models/{policy-partner-role-class.js → link-partner-request-dto.js} +0 -0
  76. /package/dist/models/{update-policy-partner-role-request-dto.js → link-partner-response-class.js} +0 -0
  77. /package/dist/models/{update-policy-partner-role-response-class.js → list-partner-links-response-class.js} +0 -0
@@ -0,0 +1,800 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL InsuranceService
5
+ * The EMIL InsuranceService 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 { DeleteResponseClass } from '../models';
25
+ // @ts-ignore
26
+ import { GetPartnerLinkResponseClass } from '../models';
27
+ // @ts-ignore
28
+ import { LinkPartnerRequestDto } from '../models';
29
+ // @ts-ignore
30
+ import { LinkPartnerResponseClass } from '../models';
31
+ // @ts-ignore
32
+ import { ListPartnerLinksResponseClass } from '../models';
33
+ // @ts-ignore
34
+ import { UnlinkPartnerResponseClass } from '../models';
35
+ // @ts-ignore
36
+ import { UpdatePartnerLinkRequestDto } from '../models';
37
+ // @ts-ignore
38
+ import { UpdatePartnerLinkResponseClass } from '../models';
39
+ // URLSearchParams not necessarily used
40
+ // @ts-ignore
41
+ import { URL, URLSearchParams } from 'url';
42
+ const FormData = require('form-data');
43
+ /**
44
+ * PartnerLinksApi - axios parameter creator
45
+ * @export
46
+ */
47
+ export const PartnerLinksApiAxiosParamCreator = function (configuration?: Configuration) {
48
+ return {
49
+ /**
50
+ * Permanently deletes the partner link. Supply the unique id that was returned when you created the partner link and this will delete it.
51
+ * @summary Delete the partner link
52
+ * @param {number} id
53
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
54
+ * @param {*} [options] Override http request option.
55
+ * @throws {RequiredError}
56
+ */
57
+ deletePartnerLink: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
58
+ // verify required parameter 'id' is not null or undefined
59
+ assertParamExists('deletePartnerLink', 'id', id)
60
+ const localVarPath = `/insuranceservice/v1/partner-link/{id}`
61
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
62
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
63
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
64
+ let baseOptions;
65
+ let baseAccessToken;
66
+ if (configuration) {
67
+ baseOptions = configuration.baseOptions;
68
+ baseAccessToken = configuration.accessToken;
69
+ }
70
+
71
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
72
+ const localVarHeaderParameter = {} as any;
73
+ const localVarQueryParameter = {} as any;
74
+
75
+ // authentication bearer required
76
+ // http bearer authentication required
77
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
78
+
79
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
80
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
81
+ }
82
+
83
+
84
+
85
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
86
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
87
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
88
+
89
+ return {
90
+ url: toPathString(localVarUrlObj),
91
+ options: localVarRequestOptions,
92
+ };
93
+ },
94
+ /**
95
+ * Retrieves the details of the partner link that was previously created. Supply the unique partner link id that was returned when you created it and Emil Api will return the corresponding partner link information.
96
+ * @summary Retrieve the partner link
97
+ * @param {number} id
98
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
99
+ * @param {string} [expand] You can expand partner link in this endpoint. \&#39; + \&#39;Allowed values: role, partner.
100
+ * @param {*} [options] Override http request option.
101
+ * @throws {RequiredError}
102
+ */
103
+ getPartnerLink: async (id: number, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
104
+ // verify required parameter 'id' is not null or undefined
105
+ assertParamExists('getPartnerLink', 'id', id)
106
+ const localVarPath = `/insuranceservice/v1/partner-link/{id}`
107
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
108
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
109
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
110
+ let baseOptions;
111
+ let baseAccessToken;
112
+ if (configuration) {
113
+ baseOptions = configuration.baseOptions;
114
+ baseAccessToken = configuration.accessToken;
115
+ }
116
+
117
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
118
+ const localVarHeaderParameter = {} as any;
119
+ const localVarQueryParameter = {} as any;
120
+
121
+ // authentication bearer required
122
+ // http bearer authentication required
123
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
124
+
125
+ if (expand !== undefined) {
126
+ localVarQueryParameter['expand'] = expand;
127
+ }
128
+
129
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
130
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
131
+ }
132
+
133
+
134
+
135
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
136
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
137
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
138
+
139
+ return {
140
+ url: toPathString(localVarUrlObj),
141
+ options: localVarRequestOptions,
142
+ };
143
+ },
144
+ /**
145
+ * This will create a partner link.
146
+ * @summary Create the partner link
147
+ * @param {LinkPartnerRequestDto} linkPartnerRequestDto
148
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
149
+ * @param {*} [options] Override http request option.
150
+ * @throws {RequiredError}
151
+ */
152
+ linkPartner: async (linkPartnerRequestDto: LinkPartnerRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
153
+ // verify required parameter 'linkPartnerRequestDto' is not null or undefined
154
+ assertParamExists('linkPartner', 'linkPartnerRequestDto', linkPartnerRequestDto)
155
+ const localVarPath = `/insuranceservice/v1/partner-link`;
156
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
157
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
158
+ let baseOptions;
159
+ let baseAccessToken;
160
+ if (configuration) {
161
+ baseOptions = configuration.baseOptions;
162
+ baseAccessToken = configuration.accessToken;
163
+ }
164
+
165
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
166
+ const localVarHeaderParameter = {} as any;
167
+ const localVarQueryParameter = {} as any;
168
+
169
+ // authentication bearer required
170
+ // http bearer authentication required
171
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
172
+
173
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
174
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
175
+ }
176
+
177
+
178
+
179
+ localVarHeaderParameter['Content-Type'] = 'application/json';
180
+
181
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
182
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
183
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
184
+ localVarRequestOptions.data = serializeDataIfNeeded(linkPartnerRequestDto, localVarRequestOptions, configuration)
185
+
186
+ return {
187
+ url: toPathString(localVarUrlObj),
188
+ options: localVarRequestOptions,
189
+ };
190
+ },
191
+ /**
192
+ * Returns a list of partner links you have previously created. The partner links are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
193
+ * @summary List partner links
194
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
195
+ * @param {number} [pageSize] Page size.
196
+ * @param {string} [pageToken] Page token.
197
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: partnerCode, partnerRoleCode, policyCode, leadCode&lt;/i&gt;
198
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: partnerCode, partnerRoleCode, policyCode, leadCode&lt;/i&gt;
199
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt&lt;/i&gt;
200
+ * @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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: role.&lt;i&gt;
201
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: partnerCode, partnerRoleCode, policyCode, leadCode&lt;/i&gt;
202
+ * @param {*} [options] Override http request option.
203
+ * @throws {RequiredError}
204
+ */
205
+ listPartnerLinks: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
206
+ const localVarPath = `/insuranceservice/v1/partner-link`;
207
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
208
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
209
+ let baseOptions;
210
+ let baseAccessToken;
211
+ if (configuration) {
212
+ baseOptions = configuration.baseOptions;
213
+ baseAccessToken = configuration.accessToken;
214
+ }
215
+
216
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
217
+ const localVarHeaderParameter = {} as any;
218
+ const localVarQueryParameter = {} as any;
219
+
220
+ // authentication bearer required
221
+ // http bearer authentication required
222
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
223
+
224
+ if (pageSize !== undefined) {
225
+ localVarQueryParameter['pageSize'] = pageSize;
226
+ }
227
+
228
+ if (pageToken !== undefined) {
229
+ localVarQueryParameter['pageToken'] = pageToken;
230
+ }
231
+
232
+ if (filter !== undefined) {
233
+ localVarQueryParameter['filter'] = filter;
234
+ }
235
+
236
+ if (search !== undefined) {
237
+ localVarQueryParameter['search'] = search;
238
+ }
239
+
240
+ if (order !== undefined) {
241
+ localVarQueryParameter['order'] = order;
242
+ }
243
+
244
+ if (expand !== undefined) {
245
+ localVarQueryParameter['expand'] = expand;
246
+ }
247
+
248
+ if (filters !== undefined) {
249
+ localVarQueryParameter['filters'] = filters;
250
+ }
251
+
252
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
253
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
254
+ }
255
+
256
+
257
+
258
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
259
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
260
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
261
+
262
+ return {
263
+ url: toPathString(localVarUrlObj),
264
+ options: localVarRequestOptions,
265
+ };
266
+ },
267
+ /**
268
+ * Ends the partner link setting the end date of the specified partner link to today.
269
+ * @summary Ends the partner link
270
+ * @param {number} id
271
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
272
+ * @param {*} [options] Override http request option.
273
+ * @throws {RequiredError}
274
+ */
275
+ unlinkPartner: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
276
+ // verify required parameter 'id' is not null or undefined
277
+ assertParamExists('unlinkPartner', 'id', id)
278
+ const localVarPath = `/insuranceservice/v1/partner-link/{id}/unlink`
279
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
280
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
281
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
282
+ let baseOptions;
283
+ let baseAccessToken;
284
+ if (configuration) {
285
+ baseOptions = configuration.baseOptions;
286
+ baseAccessToken = configuration.accessToken;
287
+ }
288
+
289
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
290
+ const localVarHeaderParameter = {} as any;
291
+ const localVarQueryParameter = {} as any;
292
+
293
+ // authentication bearer required
294
+ // http bearer authentication required
295
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
296
+
297
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
298
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
299
+ }
300
+
301
+
302
+
303
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
304
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
305
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
306
+
307
+ return {
308
+ url: toPathString(localVarUrlObj),
309
+ options: localVarRequestOptions,
310
+ };
311
+ },
312
+ /**
313
+ * Updates the specified partner link by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
314
+ * @summary Update the partner link
315
+ * @param {number} id
316
+ * @param {UpdatePartnerLinkRequestDto} updatePartnerLinkRequestDto
317
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
318
+ * @param {*} [options] Override http request option.
319
+ * @throws {RequiredError}
320
+ */
321
+ updatePartnerLink: async (id: number, updatePartnerLinkRequestDto: UpdatePartnerLinkRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
322
+ // verify required parameter 'id' is not null or undefined
323
+ assertParamExists('updatePartnerLink', 'id', id)
324
+ // verify required parameter 'updatePartnerLinkRequestDto' is not null or undefined
325
+ assertParamExists('updatePartnerLink', 'updatePartnerLinkRequestDto', updatePartnerLinkRequestDto)
326
+ const localVarPath = `/insuranceservice/v1/partner-link/{id}`
327
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
328
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
329
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
330
+ let baseOptions;
331
+ let baseAccessToken;
332
+ if (configuration) {
333
+ baseOptions = configuration.baseOptions;
334
+ baseAccessToken = configuration.accessToken;
335
+ }
336
+
337
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
338
+ const localVarHeaderParameter = {} as any;
339
+ const localVarQueryParameter = {} as any;
340
+
341
+ // authentication bearer required
342
+ // http bearer authentication required
343
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
344
+
345
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
346
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
347
+ }
348
+
349
+
350
+
351
+ localVarHeaderParameter['Content-Type'] = 'application/json';
352
+
353
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
354
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
355
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
356
+ localVarRequestOptions.data = serializeDataIfNeeded(updatePartnerLinkRequestDto, localVarRequestOptions, configuration)
357
+
358
+ return {
359
+ url: toPathString(localVarUrlObj),
360
+ options: localVarRequestOptions,
361
+ };
362
+ },
363
+ }
364
+ };
365
+
366
+ /**
367
+ * PartnerLinksApi - functional programming interface
368
+ * @export
369
+ */
370
+ export const PartnerLinksApiFp = function(configuration?: Configuration) {
371
+ const localVarAxiosParamCreator = PartnerLinksApiAxiosParamCreator(configuration)
372
+ return {
373
+ /**
374
+ * Permanently deletes the partner link. Supply the unique id that was returned when you created the partner link and this will delete it.
375
+ * @summary Delete the partner link
376
+ * @param {number} id
377
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
378
+ * @param {*} [options] Override http request option.
379
+ * @throws {RequiredError}
380
+ */
381
+ async deletePartnerLink(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>> {
382
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deletePartnerLink(id, authorization, options);
383
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
384
+ },
385
+ /**
386
+ * Retrieves the details of the partner link that was previously created. Supply the unique partner link id that was returned when you created it and Emil Api will return the corresponding partner link information.
387
+ * @summary Retrieve the partner link
388
+ * @param {number} id
389
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
390
+ * @param {string} [expand] You can expand partner link in this endpoint. \&#39; + \&#39;Allowed values: role, partner.
391
+ * @param {*} [options] Override http request option.
392
+ * @throws {RequiredError}
393
+ */
394
+ async getPartnerLink(id: number, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPartnerLinkResponseClass>> {
395
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPartnerLink(id, authorization, expand, options);
396
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
397
+ },
398
+ /**
399
+ * This will create a partner link.
400
+ * @summary Create the partner link
401
+ * @param {LinkPartnerRequestDto} linkPartnerRequestDto
402
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
403
+ * @param {*} [options] Override http request option.
404
+ * @throws {RequiredError}
405
+ */
406
+ async linkPartner(linkPartnerRequestDto: LinkPartnerRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LinkPartnerResponseClass>> {
407
+ const localVarAxiosArgs = await localVarAxiosParamCreator.linkPartner(linkPartnerRequestDto, authorization, options);
408
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
409
+ },
410
+ /**
411
+ * Returns a list of partner links you have previously created. The partner links are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
412
+ * @summary List partner links
413
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
414
+ * @param {number} [pageSize] Page size.
415
+ * @param {string} [pageToken] Page token.
416
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: partnerCode, partnerRoleCode, policyCode, leadCode&lt;/i&gt;
417
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: partnerCode, partnerRoleCode, policyCode, leadCode&lt;/i&gt;
418
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt&lt;/i&gt;
419
+ * @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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: role.&lt;i&gt;
420
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: partnerCode, partnerRoleCode, policyCode, leadCode&lt;/i&gt;
421
+ * @param {*} [options] Override http request option.
422
+ * @throws {RequiredError}
423
+ */
424
+ async listPartnerLinks(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPartnerLinksResponseClass>> {
425
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPartnerLinks(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
426
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
427
+ },
428
+ /**
429
+ * Ends the partner link setting the end date of the specified partner link to today.
430
+ * @summary Ends the partner link
431
+ * @param {number} id
432
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
433
+ * @param {*} [options] Override http request option.
434
+ * @throws {RequiredError}
435
+ */
436
+ async unlinkPartner(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UnlinkPartnerResponseClass>> {
437
+ const localVarAxiosArgs = await localVarAxiosParamCreator.unlinkPartner(id, authorization, options);
438
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
439
+ },
440
+ /**
441
+ * Updates the specified partner link by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
442
+ * @summary Update the partner link
443
+ * @param {number} id
444
+ * @param {UpdatePartnerLinkRequestDto} updatePartnerLinkRequestDto
445
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
446
+ * @param {*} [options] Override http request option.
447
+ * @throws {RequiredError}
448
+ */
449
+ async updatePartnerLink(id: number, updatePartnerLinkRequestDto: UpdatePartnerLinkRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdatePartnerLinkResponseClass>> {
450
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updatePartnerLink(id, updatePartnerLinkRequestDto, authorization, options);
451
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
452
+ },
453
+ }
454
+ };
455
+
456
+ /**
457
+ * PartnerLinksApi - factory interface
458
+ * @export
459
+ */
460
+ export const PartnerLinksApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
461
+ const localVarFp = PartnerLinksApiFp(configuration)
462
+ return {
463
+ /**
464
+ * Permanently deletes the partner link. Supply the unique id that was returned when you created the partner link and this will delete it.
465
+ * @summary Delete the partner link
466
+ * @param {number} id
467
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
468
+ * @param {*} [options] Override http request option.
469
+ * @throws {RequiredError}
470
+ */
471
+ deletePartnerLink(id: number, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass> {
472
+ return localVarFp.deletePartnerLink(id, authorization, options).then((request) => request(axios, basePath));
473
+ },
474
+ /**
475
+ * Retrieves the details of the partner link that was previously created. Supply the unique partner link id that was returned when you created it and Emil Api will return the corresponding partner link information.
476
+ * @summary Retrieve the partner link
477
+ * @param {number} id
478
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
479
+ * @param {string} [expand] You can expand partner link in this endpoint. \&#39; + \&#39;Allowed values: role, partner.
480
+ * @param {*} [options] Override http request option.
481
+ * @throws {RequiredError}
482
+ */
483
+ getPartnerLink(id: number, authorization?: string, expand?: string, options?: any): AxiosPromise<GetPartnerLinkResponseClass> {
484
+ return localVarFp.getPartnerLink(id, authorization, expand, options).then((request) => request(axios, basePath));
485
+ },
486
+ /**
487
+ * This will create a partner link.
488
+ * @summary Create the partner link
489
+ * @param {LinkPartnerRequestDto} linkPartnerRequestDto
490
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
491
+ * @param {*} [options] Override http request option.
492
+ * @throws {RequiredError}
493
+ */
494
+ linkPartner(linkPartnerRequestDto: LinkPartnerRequestDto, authorization?: string, options?: any): AxiosPromise<LinkPartnerResponseClass> {
495
+ return localVarFp.linkPartner(linkPartnerRequestDto, authorization, options).then((request) => request(axios, basePath));
496
+ },
497
+ /**
498
+ * Returns a list of partner links you have previously created. The partner links are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
499
+ * @summary List partner links
500
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
501
+ * @param {number} [pageSize] Page size.
502
+ * @param {string} [pageToken] Page token.
503
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: partnerCode, partnerRoleCode, policyCode, leadCode&lt;/i&gt;
504
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: partnerCode, partnerRoleCode, policyCode, leadCode&lt;/i&gt;
505
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt&lt;/i&gt;
506
+ * @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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: role.&lt;i&gt;
507
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: partnerCode, partnerRoleCode, policyCode, leadCode&lt;/i&gt;
508
+ * @param {*} [options] Override http request option.
509
+ * @throws {RequiredError}
510
+ */
511
+ listPartnerLinks(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPartnerLinksResponseClass> {
512
+ return localVarFp.listPartnerLinks(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
513
+ },
514
+ /**
515
+ * Ends the partner link setting the end date of the specified partner link to today.
516
+ * @summary Ends the partner link
517
+ * @param {number} id
518
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
519
+ * @param {*} [options] Override http request option.
520
+ * @throws {RequiredError}
521
+ */
522
+ unlinkPartner(id: number, authorization?: string, options?: any): AxiosPromise<UnlinkPartnerResponseClass> {
523
+ return localVarFp.unlinkPartner(id, authorization, options).then((request) => request(axios, basePath));
524
+ },
525
+ /**
526
+ * Updates the specified partner link by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
527
+ * @summary Update the partner link
528
+ * @param {number} id
529
+ * @param {UpdatePartnerLinkRequestDto} updatePartnerLinkRequestDto
530
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
531
+ * @param {*} [options] Override http request option.
532
+ * @throws {RequiredError}
533
+ */
534
+ updatePartnerLink(id: number, updatePartnerLinkRequestDto: UpdatePartnerLinkRequestDto, authorization?: string, options?: any): AxiosPromise<UpdatePartnerLinkResponseClass> {
535
+ return localVarFp.updatePartnerLink(id, updatePartnerLinkRequestDto, authorization, options).then((request) => request(axios, basePath));
536
+ },
537
+ };
538
+ };
539
+
540
+ /**
541
+ * Request parameters for deletePartnerLink operation in PartnerLinksApi.
542
+ * @export
543
+ * @interface PartnerLinksApiDeletePartnerLinkRequest
544
+ */
545
+ export interface PartnerLinksApiDeletePartnerLinkRequest {
546
+ /**
547
+ *
548
+ * @type {number}
549
+ * @memberof PartnerLinksApiDeletePartnerLink
550
+ */
551
+ readonly id: number
552
+
553
+ /**
554
+ * Bearer Token: provided by the login endpoint under the name accessToken.
555
+ * @type {string}
556
+ * @memberof PartnerLinksApiDeletePartnerLink
557
+ */
558
+ readonly authorization?: string
559
+ }
560
+
561
+ /**
562
+ * Request parameters for getPartnerLink operation in PartnerLinksApi.
563
+ * @export
564
+ * @interface PartnerLinksApiGetPartnerLinkRequest
565
+ */
566
+ export interface PartnerLinksApiGetPartnerLinkRequest {
567
+ /**
568
+ *
569
+ * @type {number}
570
+ * @memberof PartnerLinksApiGetPartnerLink
571
+ */
572
+ readonly id: number
573
+
574
+ /**
575
+ * Bearer Token: provided by the login endpoint under the name accessToken.
576
+ * @type {string}
577
+ * @memberof PartnerLinksApiGetPartnerLink
578
+ */
579
+ readonly authorization?: string
580
+
581
+ /**
582
+ * You can expand partner link in this endpoint. \&#39; + \&#39;Allowed values: role, partner.
583
+ * @type {string}
584
+ * @memberof PartnerLinksApiGetPartnerLink
585
+ */
586
+ readonly expand?: string
587
+ }
588
+
589
+ /**
590
+ * Request parameters for linkPartner operation in PartnerLinksApi.
591
+ * @export
592
+ * @interface PartnerLinksApiLinkPartnerRequest
593
+ */
594
+ export interface PartnerLinksApiLinkPartnerRequest {
595
+ /**
596
+ *
597
+ * @type {LinkPartnerRequestDto}
598
+ * @memberof PartnerLinksApiLinkPartner
599
+ */
600
+ readonly linkPartnerRequestDto: LinkPartnerRequestDto
601
+
602
+ /**
603
+ * Bearer Token: provided by the login endpoint under the name accessToken.
604
+ * @type {string}
605
+ * @memberof PartnerLinksApiLinkPartner
606
+ */
607
+ readonly authorization?: string
608
+ }
609
+
610
+ /**
611
+ * Request parameters for listPartnerLinks operation in PartnerLinksApi.
612
+ * @export
613
+ * @interface PartnerLinksApiListPartnerLinksRequest
614
+ */
615
+ export interface PartnerLinksApiListPartnerLinksRequest {
616
+ /**
617
+ * Bearer Token: provided by the login endpoint under the name accessToken.
618
+ * @type {string}
619
+ * @memberof PartnerLinksApiListPartnerLinks
620
+ */
621
+ readonly authorization?: string
622
+
623
+ /**
624
+ * Page size.
625
+ * @type {number}
626
+ * @memberof PartnerLinksApiListPartnerLinks
627
+ */
628
+ readonly pageSize?: number
629
+
630
+ /**
631
+ * Page token.
632
+ * @type {string}
633
+ * @memberof PartnerLinksApiListPartnerLinks
634
+ */
635
+ readonly pageToken?: string
636
+
637
+ /**
638
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: partnerCode, partnerRoleCode, policyCode, leadCode&lt;/i&gt;
639
+ * @type {string}
640
+ * @memberof PartnerLinksApiListPartnerLinks
641
+ */
642
+ readonly filter?: string
643
+
644
+ /**
645
+ * Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: partnerCode, partnerRoleCode, policyCode, leadCode&lt;/i&gt;
646
+ * @type {string}
647
+ * @memberof PartnerLinksApiListPartnerLinks
648
+ */
649
+ readonly search?: string
650
+
651
+ /**
652
+ * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt&lt;/i&gt;
653
+ * @type {string}
654
+ * @memberof PartnerLinksApiListPartnerLinks
655
+ */
656
+ readonly order?: string
657
+
658
+ /**
659
+ * 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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: role.&lt;i&gt;
660
+ * @type {string}
661
+ * @memberof PartnerLinksApiListPartnerLinks
662
+ */
663
+ readonly expand?: string
664
+
665
+ /**
666
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: partnerCode, partnerRoleCode, policyCode, leadCode&lt;/i&gt;
667
+ * @type {string}
668
+ * @memberof PartnerLinksApiListPartnerLinks
669
+ */
670
+ readonly filters?: string
671
+ }
672
+
673
+ /**
674
+ * Request parameters for unlinkPartner operation in PartnerLinksApi.
675
+ * @export
676
+ * @interface PartnerLinksApiUnlinkPartnerRequest
677
+ */
678
+ export interface PartnerLinksApiUnlinkPartnerRequest {
679
+ /**
680
+ *
681
+ * @type {number}
682
+ * @memberof PartnerLinksApiUnlinkPartner
683
+ */
684
+ readonly id: number
685
+
686
+ /**
687
+ * Bearer Token: provided by the login endpoint under the name accessToken.
688
+ * @type {string}
689
+ * @memberof PartnerLinksApiUnlinkPartner
690
+ */
691
+ readonly authorization?: string
692
+ }
693
+
694
+ /**
695
+ * Request parameters for updatePartnerLink operation in PartnerLinksApi.
696
+ * @export
697
+ * @interface PartnerLinksApiUpdatePartnerLinkRequest
698
+ */
699
+ export interface PartnerLinksApiUpdatePartnerLinkRequest {
700
+ /**
701
+ *
702
+ * @type {number}
703
+ * @memberof PartnerLinksApiUpdatePartnerLink
704
+ */
705
+ readonly id: number
706
+
707
+ /**
708
+ *
709
+ * @type {UpdatePartnerLinkRequestDto}
710
+ * @memberof PartnerLinksApiUpdatePartnerLink
711
+ */
712
+ readonly updatePartnerLinkRequestDto: UpdatePartnerLinkRequestDto
713
+
714
+ /**
715
+ * Bearer Token: provided by the login endpoint under the name accessToken.
716
+ * @type {string}
717
+ * @memberof PartnerLinksApiUpdatePartnerLink
718
+ */
719
+ readonly authorization?: string
720
+ }
721
+
722
+ /**
723
+ * PartnerLinksApi - object-oriented interface
724
+ * @export
725
+ * @class PartnerLinksApi
726
+ * @extends {BaseAPI}
727
+ */
728
+ export class PartnerLinksApi extends BaseAPI {
729
+ /**
730
+ * Permanently deletes the partner link. Supply the unique id that was returned when you created the partner link and this will delete it.
731
+ * @summary Delete the partner link
732
+ * @param {PartnerLinksApiDeletePartnerLinkRequest} requestParameters Request parameters.
733
+ * @param {*} [options] Override http request option.
734
+ * @throws {RequiredError}
735
+ * @memberof PartnerLinksApi
736
+ */
737
+ public deletePartnerLink(requestParameters: PartnerLinksApiDeletePartnerLinkRequest, options?: AxiosRequestConfig) {
738
+ return PartnerLinksApiFp(this.configuration).deletePartnerLink(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
739
+ }
740
+
741
+ /**
742
+ * Retrieves the details of the partner link that was previously created. Supply the unique partner link id that was returned when you created it and Emil Api will return the corresponding partner link information.
743
+ * @summary Retrieve the partner link
744
+ * @param {PartnerLinksApiGetPartnerLinkRequest} requestParameters Request parameters.
745
+ * @param {*} [options] Override http request option.
746
+ * @throws {RequiredError}
747
+ * @memberof PartnerLinksApi
748
+ */
749
+ public getPartnerLink(requestParameters: PartnerLinksApiGetPartnerLinkRequest, options?: AxiosRequestConfig) {
750
+ return PartnerLinksApiFp(this.configuration).getPartnerLink(requestParameters.id, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
751
+ }
752
+
753
+ /**
754
+ * This will create a partner link.
755
+ * @summary Create the partner link
756
+ * @param {PartnerLinksApiLinkPartnerRequest} requestParameters Request parameters.
757
+ * @param {*} [options] Override http request option.
758
+ * @throws {RequiredError}
759
+ * @memberof PartnerLinksApi
760
+ */
761
+ public linkPartner(requestParameters: PartnerLinksApiLinkPartnerRequest, options?: AxiosRequestConfig) {
762
+ return PartnerLinksApiFp(this.configuration).linkPartner(requestParameters.linkPartnerRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
763
+ }
764
+
765
+ /**
766
+ * Returns a list of partner links you have previously created. The partner links are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
767
+ * @summary List partner links
768
+ * @param {PartnerLinksApiListPartnerLinksRequest} requestParameters Request parameters.
769
+ * @param {*} [options] Override http request option.
770
+ * @throws {RequiredError}
771
+ * @memberof PartnerLinksApi
772
+ */
773
+ public listPartnerLinks(requestParameters: PartnerLinksApiListPartnerLinksRequest = {}, options?: AxiosRequestConfig) {
774
+ return PartnerLinksApiFp(this.configuration).listPartnerLinks(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
775
+ }
776
+
777
+ /**
778
+ * Ends the partner link setting the end date of the specified partner link to today.
779
+ * @summary Ends the partner link
780
+ * @param {PartnerLinksApiUnlinkPartnerRequest} requestParameters Request parameters.
781
+ * @param {*} [options] Override http request option.
782
+ * @throws {RequiredError}
783
+ * @memberof PartnerLinksApi
784
+ */
785
+ public unlinkPartner(requestParameters: PartnerLinksApiUnlinkPartnerRequest, options?: AxiosRequestConfig) {
786
+ return PartnerLinksApiFp(this.configuration).unlinkPartner(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
787
+ }
788
+
789
+ /**
790
+ * Updates the specified partner link by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
791
+ * @summary Update the partner link
792
+ * @param {PartnerLinksApiUpdatePartnerLinkRequest} requestParameters Request parameters.
793
+ * @param {*} [options] Override http request option.
794
+ * @throws {RequiredError}
795
+ * @memberof PartnerLinksApi
796
+ */
797
+ public updatePartnerLink(requestParameters: PartnerLinksApiUpdatePartnerLinkRequest, options?: AxiosRequestConfig) {
798
+ return PartnerLinksApiFp(this.configuration).updatePartnerLink(requestParameters.id, requestParameters.updatePartnerLinkRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
799
+ }
800
+ }