@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,738 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL InsuranceService
6
+ * The EMIL InsuranceService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator = (this && this.__generator) || function (thisArg, body) {
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ var __importDefault = (this && this.__importDefault) || function (mod) {
78
+ return (mod && mod.__esModule) ? mod : { "default": mod };
79
+ };
80
+ Object.defineProperty(exports, "__esModule", { value: true });
81
+ exports.PartnerLinksApi = exports.PartnerLinksApiFactory = exports.PartnerLinksApiFp = exports.PartnerLinksApiAxiosParamCreator = void 0;
82
+ var axios_1 = __importDefault(require("axios"));
83
+ // Some imports not used depending on template conditions
84
+ // @ts-ignore
85
+ var common_1 = require("../common");
86
+ // @ts-ignore
87
+ var base_1 = require("../base");
88
+ // URLSearchParams not necessarily used
89
+ // @ts-ignore
90
+ var url_1 = require("url");
91
+ var FormData = require('form-data');
92
+ /**
93
+ * PartnerLinksApi - axios parameter creator
94
+ * @export
95
+ */
96
+ var PartnerLinksApiAxiosParamCreator = function (configuration) {
97
+ var _this = this;
98
+ return {
99
+ /**
100
+ * Permanently deletes the partner link. Supply the unique id that was returned when you created the partner link and this will delete it.
101
+ * @summary Delete the partner link
102
+ * @param {number} id
103
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
104
+ * @param {*} [options] Override http request option.
105
+ * @throws {RequiredError}
106
+ */
107
+ deletePartnerLink: function (id, authorization, options) {
108
+ if (options === void 0) { options = {}; }
109
+ return __awaiter(_this, void 0, void 0, function () {
110
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
111
+ return __generator(this, function (_a) {
112
+ switch (_a.label) {
113
+ case 0:
114
+ // verify required parameter 'id' is not null or undefined
115
+ (0, common_1.assertParamExists)('deletePartnerLink', 'id', id);
116
+ localVarPath = "/insuranceservice/v1/partner-link/{id}"
117
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
118
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
119
+ if (configuration) {
120
+ baseOptions = configuration.baseOptions;
121
+ baseAccessToken = configuration.accessToken;
122
+ }
123
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
124
+ localVarHeaderParameter = {};
125
+ localVarQueryParameter = {};
126
+ // authentication bearer required
127
+ // http bearer authentication required
128
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
129
+ case 1:
130
+ // authentication bearer required
131
+ // http bearer authentication required
132
+ _a.sent();
133
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
134
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
135
+ }
136
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
137
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
138
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
139
+ return [2 /*return*/, {
140
+ url: (0, common_1.toPathString)(localVarUrlObj),
141
+ options: localVarRequestOptions,
142
+ }];
143
+ }
144
+ });
145
+ });
146
+ },
147
+ /**
148
+ * 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.
149
+ * @summary Retrieve the partner link
150
+ * @param {number} id
151
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
152
+ * @param {string} [expand] You can expand partner link in this endpoint. \&#39; + \&#39;Allowed values: role, partner.
153
+ * @param {*} [options] Override http request option.
154
+ * @throws {RequiredError}
155
+ */
156
+ getPartnerLink: function (id, authorization, expand, options) {
157
+ if (options === void 0) { options = {}; }
158
+ return __awaiter(_this, void 0, void 0, function () {
159
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
160
+ return __generator(this, function (_a) {
161
+ switch (_a.label) {
162
+ case 0:
163
+ // verify required parameter 'id' is not null or undefined
164
+ (0, common_1.assertParamExists)('getPartnerLink', 'id', id);
165
+ localVarPath = "/insuranceservice/v1/partner-link/{id}"
166
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
167
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
168
+ if (configuration) {
169
+ baseOptions = configuration.baseOptions;
170
+ baseAccessToken = configuration.accessToken;
171
+ }
172
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
173
+ localVarHeaderParameter = {};
174
+ localVarQueryParameter = {};
175
+ // authentication bearer required
176
+ // http bearer authentication required
177
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
178
+ case 1:
179
+ // authentication bearer required
180
+ // http bearer authentication required
181
+ _a.sent();
182
+ if (expand !== undefined) {
183
+ localVarQueryParameter['expand'] = expand;
184
+ }
185
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
186
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
187
+ }
188
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
189
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
190
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
191
+ return [2 /*return*/, {
192
+ url: (0, common_1.toPathString)(localVarUrlObj),
193
+ options: localVarRequestOptions,
194
+ }];
195
+ }
196
+ });
197
+ });
198
+ },
199
+ /**
200
+ * This will create a partner link.
201
+ * @summary Create the partner link
202
+ * @param {LinkPartnerRequestDto} linkPartnerRequestDto
203
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
204
+ * @param {*} [options] Override http request option.
205
+ * @throws {RequiredError}
206
+ */
207
+ linkPartner: function (linkPartnerRequestDto, authorization, options) {
208
+ if (options === void 0) { options = {}; }
209
+ return __awaiter(_this, void 0, void 0, function () {
210
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
211
+ return __generator(this, function (_a) {
212
+ switch (_a.label) {
213
+ case 0:
214
+ // verify required parameter 'linkPartnerRequestDto' is not null or undefined
215
+ (0, common_1.assertParamExists)('linkPartner', 'linkPartnerRequestDto', linkPartnerRequestDto);
216
+ localVarPath = "/insuranceservice/v1/partner-link";
217
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
218
+ if (configuration) {
219
+ baseOptions = configuration.baseOptions;
220
+ baseAccessToken = configuration.accessToken;
221
+ }
222
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
223
+ localVarHeaderParameter = {};
224
+ localVarQueryParameter = {};
225
+ // authentication bearer required
226
+ // http bearer authentication required
227
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
228
+ case 1:
229
+ // authentication bearer required
230
+ // http bearer authentication required
231
+ _a.sent();
232
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
233
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
234
+ }
235
+ localVarHeaderParameter['Content-Type'] = 'application/json';
236
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
237
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
238
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
239
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(linkPartnerRequestDto, localVarRequestOptions, configuration);
240
+ return [2 /*return*/, {
241
+ url: (0, common_1.toPathString)(localVarUrlObj),
242
+ options: localVarRequestOptions,
243
+ }];
244
+ }
245
+ });
246
+ });
247
+ },
248
+ /**
249
+ * 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.
250
+ * @summary List partner links
251
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
252
+ * @param {number} [pageSize] Page size.
253
+ * @param {string} [pageToken] Page token.
254
+ * @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;
255
+ * @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;
256
+ * @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;
257
+ * @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;
258
+ * @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;
259
+ * @param {*} [options] Override http request option.
260
+ * @throws {RequiredError}
261
+ */
262
+ listPartnerLinks: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
263
+ if (options === void 0) { options = {}; }
264
+ return __awaiter(_this, void 0, void 0, function () {
265
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
266
+ return __generator(this, function (_a) {
267
+ switch (_a.label) {
268
+ case 0:
269
+ localVarPath = "/insuranceservice/v1/partner-link";
270
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
271
+ if (configuration) {
272
+ baseOptions = configuration.baseOptions;
273
+ baseAccessToken = configuration.accessToken;
274
+ }
275
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
276
+ localVarHeaderParameter = {};
277
+ localVarQueryParameter = {};
278
+ // authentication bearer required
279
+ // http bearer authentication required
280
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
281
+ case 1:
282
+ // authentication bearer required
283
+ // http bearer authentication required
284
+ _a.sent();
285
+ if (pageSize !== undefined) {
286
+ localVarQueryParameter['pageSize'] = pageSize;
287
+ }
288
+ if (pageToken !== undefined) {
289
+ localVarQueryParameter['pageToken'] = pageToken;
290
+ }
291
+ if (filter !== undefined) {
292
+ localVarQueryParameter['filter'] = filter;
293
+ }
294
+ if (search !== undefined) {
295
+ localVarQueryParameter['search'] = search;
296
+ }
297
+ if (order !== undefined) {
298
+ localVarQueryParameter['order'] = order;
299
+ }
300
+ if (expand !== undefined) {
301
+ localVarQueryParameter['expand'] = expand;
302
+ }
303
+ if (filters !== undefined) {
304
+ localVarQueryParameter['filters'] = filters;
305
+ }
306
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
307
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
308
+ }
309
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
310
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
311
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
312
+ return [2 /*return*/, {
313
+ url: (0, common_1.toPathString)(localVarUrlObj),
314
+ options: localVarRequestOptions,
315
+ }];
316
+ }
317
+ });
318
+ });
319
+ },
320
+ /**
321
+ * Ends the partner link setting the end date of the specified partner link to today.
322
+ * @summary Ends the partner link
323
+ * @param {number} id
324
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
325
+ * @param {*} [options] Override http request option.
326
+ * @throws {RequiredError}
327
+ */
328
+ unlinkPartner: function (id, authorization, options) {
329
+ if (options === void 0) { options = {}; }
330
+ return __awaiter(_this, void 0, void 0, function () {
331
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
332
+ return __generator(this, function (_a) {
333
+ switch (_a.label) {
334
+ case 0:
335
+ // verify required parameter 'id' is not null or undefined
336
+ (0, common_1.assertParamExists)('unlinkPartner', 'id', id);
337
+ localVarPath = "/insuranceservice/v1/partner-link/{id}/unlink"
338
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
339
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
340
+ if (configuration) {
341
+ baseOptions = configuration.baseOptions;
342
+ baseAccessToken = configuration.accessToken;
343
+ }
344
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
345
+ localVarHeaderParameter = {};
346
+ localVarQueryParameter = {};
347
+ // authentication bearer required
348
+ // http bearer authentication required
349
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
350
+ case 1:
351
+ // authentication bearer required
352
+ // http bearer authentication required
353
+ _a.sent();
354
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
355
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
356
+ }
357
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
358
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
359
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
360
+ return [2 /*return*/, {
361
+ url: (0, common_1.toPathString)(localVarUrlObj),
362
+ options: localVarRequestOptions,
363
+ }];
364
+ }
365
+ });
366
+ });
367
+ },
368
+ /**
369
+ * Updates the specified partner link by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
370
+ * @summary Update the partner link
371
+ * @param {number} id
372
+ * @param {UpdatePartnerLinkRequestDto} updatePartnerLinkRequestDto
373
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
374
+ * @param {*} [options] Override http request option.
375
+ * @throws {RequiredError}
376
+ */
377
+ updatePartnerLink: function (id, updatePartnerLinkRequestDto, authorization, options) {
378
+ if (options === void 0) { options = {}; }
379
+ return __awaiter(_this, void 0, void 0, function () {
380
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
381
+ return __generator(this, function (_a) {
382
+ switch (_a.label) {
383
+ case 0:
384
+ // verify required parameter 'id' is not null or undefined
385
+ (0, common_1.assertParamExists)('updatePartnerLink', 'id', id);
386
+ // verify required parameter 'updatePartnerLinkRequestDto' is not null or undefined
387
+ (0, common_1.assertParamExists)('updatePartnerLink', 'updatePartnerLinkRequestDto', updatePartnerLinkRequestDto);
388
+ localVarPath = "/insuranceservice/v1/partner-link/{id}"
389
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
390
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
391
+ if (configuration) {
392
+ baseOptions = configuration.baseOptions;
393
+ baseAccessToken = configuration.accessToken;
394
+ }
395
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
396
+ localVarHeaderParameter = {};
397
+ localVarQueryParameter = {};
398
+ // authentication bearer required
399
+ // http bearer authentication required
400
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
401
+ case 1:
402
+ // authentication bearer required
403
+ // http bearer authentication required
404
+ _a.sent();
405
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
406
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
407
+ }
408
+ localVarHeaderParameter['Content-Type'] = 'application/json';
409
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
410
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
411
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
412
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updatePartnerLinkRequestDto, localVarRequestOptions, configuration);
413
+ return [2 /*return*/, {
414
+ url: (0, common_1.toPathString)(localVarUrlObj),
415
+ options: localVarRequestOptions,
416
+ }];
417
+ }
418
+ });
419
+ });
420
+ },
421
+ };
422
+ };
423
+ exports.PartnerLinksApiAxiosParamCreator = PartnerLinksApiAxiosParamCreator;
424
+ /**
425
+ * PartnerLinksApi - functional programming interface
426
+ * @export
427
+ */
428
+ var PartnerLinksApiFp = function (configuration) {
429
+ var localVarAxiosParamCreator = (0, exports.PartnerLinksApiAxiosParamCreator)(configuration);
430
+ return {
431
+ /**
432
+ * Permanently deletes the partner link. Supply the unique id that was returned when you created the partner link and this will delete it.
433
+ * @summary Delete the partner link
434
+ * @param {number} id
435
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
436
+ * @param {*} [options] Override http request option.
437
+ * @throws {RequiredError}
438
+ */
439
+ deletePartnerLink: function (id, authorization, options) {
440
+ return __awaiter(this, void 0, void 0, function () {
441
+ var localVarAxiosArgs;
442
+ return __generator(this, function (_a) {
443
+ switch (_a.label) {
444
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deletePartnerLink(id, authorization, options)];
445
+ case 1:
446
+ localVarAxiosArgs = _a.sent();
447
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
448
+ }
449
+ });
450
+ });
451
+ },
452
+ /**
453
+ * 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.
454
+ * @summary Retrieve the partner link
455
+ * @param {number} id
456
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
457
+ * @param {string} [expand] You can expand partner link in this endpoint. \&#39; + \&#39;Allowed values: role, partner.
458
+ * @param {*} [options] Override http request option.
459
+ * @throws {RequiredError}
460
+ */
461
+ getPartnerLink: function (id, authorization, expand, options) {
462
+ return __awaiter(this, void 0, void 0, function () {
463
+ var localVarAxiosArgs;
464
+ return __generator(this, function (_a) {
465
+ switch (_a.label) {
466
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPartnerLink(id, authorization, expand, options)];
467
+ case 1:
468
+ localVarAxiosArgs = _a.sent();
469
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
470
+ }
471
+ });
472
+ });
473
+ },
474
+ /**
475
+ * This will create a partner link.
476
+ * @summary Create the partner link
477
+ * @param {LinkPartnerRequestDto} linkPartnerRequestDto
478
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
479
+ * @param {*} [options] Override http request option.
480
+ * @throws {RequiredError}
481
+ */
482
+ linkPartner: function (linkPartnerRequestDto, authorization, options) {
483
+ return __awaiter(this, void 0, void 0, function () {
484
+ var localVarAxiosArgs;
485
+ return __generator(this, function (_a) {
486
+ switch (_a.label) {
487
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.linkPartner(linkPartnerRequestDto, authorization, options)];
488
+ case 1:
489
+ localVarAxiosArgs = _a.sent();
490
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
491
+ }
492
+ });
493
+ });
494
+ },
495
+ /**
496
+ * 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.
497
+ * @summary List partner links
498
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
499
+ * @param {number} [pageSize] Page size.
500
+ * @param {string} [pageToken] Page token.
501
+ * @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;
502
+ * @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;
503
+ * @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;
504
+ * @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;
505
+ * @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;
506
+ * @param {*} [options] Override http request option.
507
+ * @throws {RequiredError}
508
+ */
509
+ listPartnerLinks: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
510
+ return __awaiter(this, void 0, void 0, function () {
511
+ var localVarAxiosArgs;
512
+ return __generator(this, function (_a) {
513
+ switch (_a.label) {
514
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPartnerLinks(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
515
+ case 1:
516
+ localVarAxiosArgs = _a.sent();
517
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
518
+ }
519
+ });
520
+ });
521
+ },
522
+ /**
523
+ * Ends the partner link setting the end date of the specified partner link to today.
524
+ * @summary Ends the partner link
525
+ * @param {number} id
526
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
527
+ * @param {*} [options] Override http request option.
528
+ * @throws {RequiredError}
529
+ */
530
+ unlinkPartner: function (id, authorization, options) {
531
+ return __awaiter(this, void 0, void 0, function () {
532
+ var localVarAxiosArgs;
533
+ return __generator(this, function (_a) {
534
+ switch (_a.label) {
535
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.unlinkPartner(id, authorization, options)];
536
+ case 1:
537
+ localVarAxiosArgs = _a.sent();
538
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
539
+ }
540
+ });
541
+ });
542
+ },
543
+ /**
544
+ * Updates the specified partner link by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
545
+ * @summary Update the partner link
546
+ * @param {number} id
547
+ * @param {UpdatePartnerLinkRequestDto} updatePartnerLinkRequestDto
548
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
549
+ * @param {*} [options] Override http request option.
550
+ * @throws {RequiredError}
551
+ */
552
+ updatePartnerLink: function (id, updatePartnerLinkRequestDto, authorization, options) {
553
+ return __awaiter(this, void 0, void 0, function () {
554
+ var localVarAxiosArgs;
555
+ return __generator(this, function (_a) {
556
+ switch (_a.label) {
557
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updatePartnerLink(id, updatePartnerLinkRequestDto, authorization, options)];
558
+ case 1:
559
+ localVarAxiosArgs = _a.sent();
560
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
561
+ }
562
+ });
563
+ });
564
+ },
565
+ };
566
+ };
567
+ exports.PartnerLinksApiFp = PartnerLinksApiFp;
568
+ /**
569
+ * PartnerLinksApi - factory interface
570
+ * @export
571
+ */
572
+ var PartnerLinksApiFactory = function (configuration, basePath, axios) {
573
+ var localVarFp = (0, exports.PartnerLinksApiFp)(configuration);
574
+ return {
575
+ /**
576
+ * Permanently deletes the partner link. Supply the unique id that was returned when you created the partner link and this will delete it.
577
+ * @summary Delete the partner link
578
+ * @param {number} id
579
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
580
+ * @param {*} [options] Override http request option.
581
+ * @throws {RequiredError}
582
+ */
583
+ deletePartnerLink: function (id, authorization, options) {
584
+ return localVarFp.deletePartnerLink(id, authorization, options).then(function (request) { return request(axios, basePath); });
585
+ },
586
+ /**
587
+ * 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.
588
+ * @summary Retrieve the partner link
589
+ * @param {number} id
590
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
591
+ * @param {string} [expand] You can expand partner link in this endpoint. \&#39; + \&#39;Allowed values: role, partner.
592
+ * @param {*} [options] Override http request option.
593
+ * @throws {RequiredError}
594
+ */
595
+ getPartnerLink: function (id, authorization, expand, options) {
596
+ return localVarFp.getPartnerLink(id, authorization, expand, options).then(function (request) { return request(axios, basePath); });
597
+ },
598
+ /**
599
+ * This will create a partner link.
600
+ * @summary Create the partner link
601
+ * @param {LinkPartnerRequestDto} linkPartnerRequestDto
602
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
603
+ * @param {*} [options] Override http request option.
604
+ * @throws {RequiredError}
605
+ */
606
+ linkPartner: function (linkPartnerRequestDto, authorization, options) {
607
+ return localVarFp.linkPartner(linkPartnerRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
608
+ },
609
+ /**
610
+ * 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.
611
+ * @summary List partner links
612
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
613
+ * @param {number} [pageSize] Page size.
614
+ * @param {string} [pageToken] Page token.
615
+ * @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;
616
+ * @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;
617
+ * @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;
618
+ * @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;
619
+ * @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;
620
+ * @param {*} [options] Override http request option.
621
+ * @throws {RequiredError}
622
+ */
623
+ listPartnerLinks: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
624
+ return localVarFp.listPartnerLinks(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
625
+ },
626
+ /**
627
+ * Ends the partner link setting the end date of the specified partner link to today.
628
+ * @summary Ends the partner link
629
+ * @param {number} id
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
+ unlinkPartner: function (id, authorization, options) {
635
+ return localVarFp.unlinkPartner(id, authorization, options).then(function (request) { return request(axios, basePath); });
636
+ },
637
+ /**
638
+ * Updates the specified partner link by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
639
+ * @summary Update the partner link
640
+ * @param {number} id
641
+ * @param {UpdatePartnerLinkRequestDto} updatePartnerLinkRequestDto
642
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
643
+ * @param {*} [options] Override http request option.
644
+ * @throws {RequiredError}
645
+ */
646
+ updatePartnerLink: function (id, updatePartnerLinkRequestDto, authorization, options) {
647
+ return localVarFp.updatePartnerLink(id, updatePartnerLinkRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
648
+ },
649
+ };
650
+ };
651
+ exports.PartnerLinksApiFactory = PartnerLinksApiFactory;
652
+ /**
653
+ * PartnerLinksApi - object-oriented interface
654
+ * @export
655
+ * @class PartnerLinksApi
656
+ * @extends {BaseAPI}
657
+ */
658
+ var PartnerLinksApi = /** @class */ (function (_super) {
659
+ __extends(PartnerLinksApi, _super);
660
+ function PartnerLinksApi() {
661
+ return _super !== null && _super.apply(this, arguments) || this;
662
+ }
663
+ /**
664
+ * Permanently deletes the partner link. Supply the unique id that was returned when you created the partner link and this will delete it.
665
+ * @summary Delete the partner link
666
+ * @param {PartnerLinksApiDeletePartnerLinkRequest} requestParameters Request parameters.
667
+ * @param {*} [options] Override http request option.
668
+ * @throws {RequiredError}
669
+ * @memberof PartnerLinksApi
670
+ */
671
+ PartnerLinksApi.prototype.deletePartnerLink = function (requestParameters, options) {
672
+ var _this = this;
673
+ return (0, exports.PartnerLinksApiFp)(this.configuration).deletePartnerLink(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
674
+ };
675
+ /**
676
+ * 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.
677
+ * @summary Retrieve the partner link
678
+ * @param {PartnerLinksApiGetPartnerLinkRequest} requestParameters Request parameters.
679
+ * @param {*} [options] Override http request option.
680
+ * @throws {RequiredError}
681
+ * @memberof PartnerLinksApi
682
+ */
683
+ PartnerLinksApi.prototype.getPartnerLink = function (requestParameters, options) {
684
+ var _this = this;
685
+ return (0, exports.PartnerLinksApiFp)(this.configuration).getPartnerLink(requestParameters.id, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
686
+ };
687
+ /**
688
+ * This will create a partner link.
689
+ * @summary Create the partner link
690
+ * @param {PartnerLinksApiLinkPartnerRequest} requestParameters Request parameters.
691
+ * @param {*} [options] Override http request option.
692
+ * @throws {RequiredError}
693
+ * @memberof PartnerLinksApi
694
+ */
695
+ PartnerLinksApi.prototype.linkPartner = function (requestParameters, options) {
696
+ var _this = this;
697
+ return (0, exports.PartnerLinksApiFp)(this.configuration).linkPartner(requestParameters.linkPartnerRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
698
+ };
699
+ /**
700
+ * 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.
701
+ * @summary List partner links
702
+ * @param {PartnerLinksApiListPartnerLinksRequest} requestParameters Request parameters.
703
+ * @param {*} [options] Override http request option.
704
+ * @throws {RequiredError}
705
+ * @memberof PartnerLinksApi
706
+ */
707
+ PartnerLinksApi.prototype.listPartnerLinks = function (requestParameters, options) {
708
+ var _this = this;
709
+ if (requestParameters === void 0) { requestParameters = {}; }
710
+ return (0, exports.PartnerLinksApiFp)(this.configuration).listPartnerLinks(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
711
+ };
712
+ /**
713
+ * Ends the partner link setting the end date of the specified partner link to today.
714
+ * @summary Ends the partner link
715
+ * @param {PartnerLinksApiUnlinkPartnerRequest} requestParameters Request parameters.
716
+ * @param {*} [options] Override http request option.
717
+ * @throws {RequiredError}
718
+ * @memberof PartnerLinksApi
719
+ */
720
+ PartnerLinksApi.prototype.unlinkPartner = function (requestParameters, options) {
721
+ var _this = this;
722
+ return (0, exports.PartnerLinksApiFp)(this.configuration).unlinkPartner(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
723
+ };
724
+ /**
725
+ * Updates the specified partner link by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
726
+ * @summary Update the partner link
727
+ * @param {PartnerLinksApiUpdatePartnerLinkRequest} requestParameters Request parameters.
728
+ * @param {*} [options] Override http request option.
729
+ * @throws {RequiredError}
730
+ * @memberof PartnerLinksApi
731
+ */
732
+ PartnerLinksApi.prototype.updatePartnerLink = function (requestParameters, options) {
733
+ var _this = this;
734
+ return (0, exports.PartnerLinksApiFp)(this.configuration).updatePartnerLink(requestParameters.id, requestParameters.updatePartnerLinkRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
735
+ };
736
+ return PartnerLinksApi;
737
+ }(base_1.BaseAPI));
738
+ exports.PartnerLinksApi = PartnerLinksApi;