@emilgroup/partner-portal-sdk-node 1.0.1-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/.openapi-generator/FILES +49 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +84 -0
  5. package/api/health-check-api.ts +128 -0
  6. package/api/intermediary-api.ts +1226 -0
  7. package/api.ts +33 -0
  8. package/base.ts +286 -0
  9. package/common.ts +199 -0
  10. package/configuration.ts +109 -0
  11. package/dist/api/health-check-api.d.ts +70 -0
  12. package/dist/api/health-check-api.js +204 -0
  13. package/dist/api/intermediary-api.d.ts +704 -0
  14. package/dist/api/intermediary-api.js +1019 -0
  15. package/dist/api.d.ts +13 -0
  16. package/dist/api.js +31 -0
  17. package/dist/base.d.ts +79 -0
  18. package/dist/base.js +395 -0
  19. package/dist/common.d.ts +92 -0
  20. package/dist/common.js +277 -0
  21. package/dist/configuration.d.ts +90 -0
  22. package/dist/configuration.js +44 -0
  23. package/dist/index.d.ts +15 -0
  24. package/dist/index.js +36 -0
  25. package/dist/models/account-class.d.ts +176 -0
  26. package/dist/models/account-class.js +22 -0
  27. package/dist/models/account-policy-class.d.ts +147 -0
  28. package/dist/models/account-policy-class.js +15 -0
  29. package/dist/models/create-payment-method-request-dto.d.ts +31 -0
  30. package/dist/models/create-payment-method-request-dto.js +15 -0
  31. package/dist/models/create-policy-request-dto.d.ts +55 -0
  32. package/dist/models/create-policy-request-dto.js +15 -0
  33. package/dist/models/index.d.ts +34 -0
  34. package/dist/models/index.js +50 -0
  35. package/dist/models/inline-response200.d.ts +54 -0
  36. package/dist/models/inline-response200.js +15 -0
  37. package/dist/models/inline-response503.d.ts +54 -0
  38. package/dist/models/inline-response503.js +15 -0
  39. package/dist/models/insured-object-type-class.d.ts +60 -0
  40. package/dist/models/insured-object-type-class.js +15 -0
  41. package/dist/models/invoice-class.d.ts +150 -0
  42. package/dist/models/invoice-class.js +30 -0
  43. package/dist/models/invoice-item-class.d.ts +117 -0
  44. package/dist/models/invoice-item-class.js +24 -0
  45. package/dist/models/invoice-status-class.d.ts +47 -0
  46. package/dist/models/invoice-status-class.js +20 -0
  47. package/dist/models/lead-bank-account-class.d.ts +30 -0
  48. package/dist/models/lead-bank-account-class.js +15 -0
  49. package/dist/models/lead-class.d.ts +157 -0
  50. package/dist/models/lead-class.js +15 -0
  51. package/dist/models/list-accounts-response-class.d.ts +31 -0
  52. package/dist/models/list-accounts-response-class.js +15 -0
  53. package/dist/models/list-leads-response-class.d.ts +43 -0
  54. package/dist/models/list-leads-response-class.js +15 -0
  55. package/dist/models/list-partners-response-class.d.ts +31 -0
  56. package/dist/models/list-partners-response-class.js +15 -0
  57. package/dist/models/list-policies-response-class.d.ts +43 -0
  58. package/dist/models/list-policies-response-class.js +15 -0
  59. package/dist/models/omit-type-class.d.ts +84 -0
  60. package/dist/models/omit-type-class.js +15 -0
  61. package/dist/models/partner-class.d.ts +103 -0
  62. package/dist/models/partner-class.js +15 -0
  63. package/dist/models/partner-link-class.d.ts +98 -0
  64. package/dist/models/partner-link-class.js +15 -0
  65. package/dist/models/partner-role-class.d.ts +72 -0
  66. package/dist/models/partner-role-class.js +15 -0
  67. package/dist/models/policy-class.d.ts +147 -0
  68. package/dist/models/policy-class.js +15 -0
  69. package/dist/models/policy-object-class.d.ts +84 -0
  70. package/dist/models/policy-object-class.js +15 -0
  71. package/dist/models/policy-premium-class.d.ts +61 -0
  72. package/dist/models/policy-premium-class.js +15 -0
  73. package/dist/models/policy-premium-item-class.d.ts +67 -0
  74. package/dist/models/policy-premium-item-class.js +15 -0
  75. package/dist/models/policy-version-class.d.ts +79 -0
  76. package/dist/models/policy-version-class.js +15 -0
  77. package/dist/models/premium-formula-class.d.ts +108 -0
  78. package/dist/models/premium-formula-class.js +15 -0
  79. package/dist/models/premium-override-dto.d.ts +55 -0
  80. package/dist/models/premium-override-dto.js +27 -0
  81. package/dist/models/premium-override-request-dto.d.ts +25 -0
  82. package/dist/models/premium-override-request-dto.js +15 -0
  83. package/dist/models/product-class.d.ts +92 -0
  84. package/dist/models/product-class.js +15 -0
  85. package/dist/models/product-version-class.d.ts +73 -0
  86. package/dist/models/product-version-class.js +22 -0
  87. package/dist/models/sepa-dto.d.ts +30 -0
  88. package/dist/models/sepa-dto.js +15 -0
  89. package/dist/models/tag-class.d.ts +54 -0
  90. package/dist/models/tag-class.js +15 -0
  91. package/dist/models/timeslice-class.d.ts +74 -0
  92. package/dist/models/timeslice-class.js +15 -0
  93. package/dist/models/uploaded-document-dto.d.ts +24 -0
  94. package/dist/models/uploaded-document-dto.js +15 -0
  95. package/git_push.sh +57 -0
  96. package/index.ts +19 -0
  97. package/models/account-class.ts +185 -0
  98. package/models/account-policy-class.ts +153 -0
  99. package/models/create-payment-method-request-dto.ts +37 -0
  100. package/models/create-policy-request-dto.ts +61 -0
  101. package/models/index.ts +34 -0
  102. package/models/inline-response200.ts +48 -0
  103. package/models/inline-response503.ts +48 -0
  104. package/models/insured-object-type-class.ts +66 -0
  105. package/models/invoice-class.ts +160 -0
  106. package/models/invoice-item-class.ts +126 -0
  107. package/models/invoice-status-class.ts +56 -0
  108. package/models/lead-bank-account-class.ts +36 -0
  109. package/models/lead-class.ts +163 -0
  110. package/models/list-accounts-response-class.ts +37 -0
  111. package/models/list-leads-response-class.ts +49 -0
  112. package/models/list-partners-response-class.ts +37 -0
  113. package/models/list-policies-response-class.ts +49 -0
  114. package/models/omit-type-class.ts +90 -0
  115. package/models/partner-class.ts +109 -0
  116. package/models/partner-link-class.ts +104 -0
  117. package/models/partner-role-class.ts +78 -0
  118. package/models/policy-class.ts +153 -0
  119. package/models/policy-object-class.ts +90 -0
  120. package/models/policy-premium-class.ts +67 -0
  121. package/models/policy-premium-item-class.ts +73 -0
  122. package/models/policy-version-class.ts +85 -0
  123. package/models/premium-formula-class.ts +114 -0
  124. package/models/premium-override-dto.ts +65 -0
  125. package/models/premium-override-request-dto.ts +31 -0
  126. package/models/product-class.ts +98 -0
  127. package/models/product-version-class.ts +82 -0
  128. package/models/sepa-dto.ts +36 -0
  129. package/models/tag-class.ts +60 -0
  130. package/models/timeslice-class.ts +80 -0
  131. package/models/uploaded-document-dto.ts +30 -0
  132. package/package.json +29 -0
  133. package/tsconfig.json +22 -0
@@ -0,0 +1,1019 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL PartnerPortal
6
+ * The EMIL PartnerPortal 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.IntermediaryApi = exports.IntermediaryApiFactory = exports.IntermediaryApiFp = exports.IntermediaryApiAxiosParamCreator = 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
+ * IntermediaryApi - axios parameter creator
94
+ * @export
95
+ */
96
+ var IntermediaryApiAxiosParamCreator = function (configuration) {
97
+ var _this = this;
98
+ return {
99
+ /**
100
+ * Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
101
+ * @summary Retrieve the lead
102
+ * @param {string} code Unique identifier for the object.
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
+ getLead: function (code, 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 'code' is not null or undefined
115
+ (0, common_1.assertParamExists)('getLead', 'code', code);
116
+ localVarPath = "/partner-portal/v1/intermediary/leads/{code}"
117
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
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: 'GET' }, 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 that was previously created. Supply the unique partner code that was returned when you created it and Emil Api will return the corresponding partner information.
149
+ * @summary Retrieve the partner
150
+ * @param {string} code Unique identifier for the object.
151
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
152
+ * @param {*} [options] Override http request option.
153
+ * @throws {RequiredError}
154
+ */
155
+ getPartner: function (code, authorization, options) {
156
+ if (options === void 0) { options = {}; }
157
+ return __awaiter(_this, void 0, void 0, function () {
158
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
159
+ return __generator(this, function (_a) {
160
+ switch (_a.label) {
161
+ case 0:
162
+ // verify required parameter 'code' is not null or undefined
163
+ (0, common_1.assertParamExists)('getPartner', 'code', code);
164
+ localVarPath = "/partner-portal/v1/intermediary/partners/{code}"
165
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
166
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
167
+ if (configuration) {
168
+ baseOptions = configuration.baseOptions;
169
+ baseAccessToken = configuration.accessToken;
170
+ }
171
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
172
+ localVarHeaderParameter = {};
173
+ localVarQueryParameter = {};
174
+ // authentication bearer required
175
+ // http bearer authentication required
176
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
177
+ case 1:
178
+ // authentication bearer required
179
+ // http bearer authentication required
180
+ _a.sent();
181
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
182
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
183
+ }
184
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
185
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
186
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
187
+ return [2 /*return*/, {
188
+ url: (0, common_1.toPathString)(localVarUrlObj),
189
+ options: localVarRequestOptions,
190
+ }];
191
+ }
192
+ });
193
+ });
194
+ },
195
+ /**
196
+ * Retrieves the details of the policy that was previously created. Supply the unique policy code that was returned when you created it and Emil Api will return the corresponding policy information.
197
+ * @summary Retrieve the policy
198
+ * @param {string} code Unique identifier for the object.
199
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
200
+ * @param {*} [options] Override http request option.
201
+ * @throws {RequiredError}
202
+ */
203
+ getPolicy: function (code, authorization, options) {
204
+ if (options === void 0) { options = {}; }
205
+ return __awaiter(_this, void 0, void 0, function () {
206
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
207
+ return __generator(this, function (_a) {
208
+ switch (_a.label) {
209
+ case 0:
210
+ // verify required parameter 'code' is not null or undefined
211
+ (0, common_1.assertParamExists)('getPolicy', 'code', code);
212
+ localVarPath = "/partner-portal/v1/intermediary/policies/{code}"
213
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
214
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
215
+ if (configuration) {
216
+ baseOptions = configuration.baseOptions;
217
+ baseAccessToken = configuration.accessToken;
218
+ }
219
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
220
+ localVarHeaderParameter = {};
221
+ localVarQueryParameter = {};
222
+ // authentication bearer required
223
+ // http bearer authentication required
224
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
225
+ case 1:
226
+ // authentication bearer required
227
+ // http bearer authentication required
228
+ _a.sent();
229
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
230
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
231
+ }
232
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
233
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
234
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
235
+ return [2 /*return*/, {
236
+ url: (0, common_1.toPathString)(localVarUrlObj),
237
+ options: localVarRequestOptions,
238
+ }];
239
+ }
240
+ });
241
+ });
242
+ },
243
+ /**
244
+ * Retrieves the details of the policyholder that was previously created. Supply the unique policyholder code that was returned when you created it and Emil Api will return the corresponding policyholder information.
245
+ * @summary Retrieve the policyholder
246
+ * @param {string} code Unique identifier for the object.
247
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
248
+ * @param {*} [options] Override http request option.
249
+ * @throws {RequiredError}
250
+ */
251
+ getPolicyholder: function (code, authorization, options) {
252
+ if (options === void 0) { options = {}; }
253
+ return __awaiter(_this, void 0, void 0, function () {
254
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
255
+ return __generator(this, function (_a) {
256
+ switch (_a.label) {
257
+ case 0:
258
+ // verify required parameter 'code' is not null or undefined
259
+ (0, common_1.assertParamExists)('getPolicyholder', 'code', code);
260
+ localVarPath = "/partner-portal/v1/intermediary/policyholders/{code}"
261
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
262
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
263
+ if (configuration) {
264
+ baseOptions = configuration.baseOptions;
265
+ baseAccessToken = configuration.accessToken;
266
+ }
267
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
268
+ localVarHeaderParameter = {};
269
+ localVarQueryParameter = {};
270
+ // authentication bearer required
271
+ // http bearer authentication required
272
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
273
+ case 1:
274
+ // authentication bearer required
275
+ // http bearer authentication required
276
+ _a.sent();
277
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
278
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
279
+ }
280
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
281
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
282
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
283
+ return [2 /*return*/, {
284
+ url: (0, common_1.toPathString)(localVarUrlObj),
285
+ options: localVarRequestOptions,
286
+ }];
287
+ }
288
+ });
289
+ });
290
+ },
291
+ /**
292
+ * Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
293
+ * @summary List leads
294
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
295
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
296
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
297
+ * @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: id, code, status, leadNumber, accountCode, productSlug, ern, createdAt, updatedAt, partnerCode&lt;/i&gt;
298
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
299
+ * @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, code, status, leadNumber, updatedAt&lt;/i&gt;
300
+ * @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: partnerLinks&lt;i&gt;
301
+ * @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: id, code, status, leadNumber, accountCode, productSlug, ern, createdAt, updatedAt, partnerCode&lt;/i&gt;
302
+ * @param {*} [options] Override http request option.
303
+ * @throws {RequiredError}
304
+ */
305
+ listLeads: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
306
+ if (options === void 0) { options = {}; }
307
+ return __awaiter(_this, void 0, void 0, function () {
308
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
309
+ return __generator(this, function (_a) {
310
+ switch (_a.label) {
311
+ case 0:
312
+ localVarPath = "/partner-portal/v1/intermediary/leads";
313
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
314
+ if (configuration) {
315
+ baseOptions = configuration.baseOptions;
316
+ baseAccessToken = configuration.accessToken;
317
+ }
318
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
319
+ localVarHeaderParameter = {};
320
+ localVarQueryParameter = {};
321
+ // authentication bearer required
322
+ // http bearer authentication required
323
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
324
+ case 1:
325
+ // authentication bearer required
326
+ // http bearer authentication required
327
+ _a.sent();
328
+ if (pageSize !== undefined) {
329
+ localVarQueryParameter['pageSize'] = pageSize;
330
+ }
331
+ if (pageToken !== undefined) {
332
+ localVarQueryParameter['pageToken'] = pageToken;
333
+ }
334
+ if (filter !== undefined) {
335
+ localVarQueryParameter['filter'] = filter;
336
+ }
337
+ if (search !== undefined) {
338
+ localVarQueryParameter['search'] = search;
339
+ }
340
+ if (order !== undefined) {
341
+ localVarQueryParameter['order'] = order;
342
+ }
343
+ if (expand !== undefined) {
344
+ localVarQueryParameter['expand'] = expand;
345
+ }
346
+ if (filters !== undefined) {
347
+ localVarQueryParameter['filters'] = filters;
348
+ }
349
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
350
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
351
+ }
352
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
353
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
354
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
355
+ return [2 /*return*/, {
356
+ url: (0, common_1.toPathString)(localVarUrlObj),
357
+ options: localVarRequestOptions,
358
+ }];
359
+ }
360
+ });
361
+ });
362
+ },
363
+ /**
364
+ * Returns a list of partners you have previously created. The partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
365
+ * @summary List partners
366
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
367
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
368
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
369
+ * @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: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode, partnerNumber&lt;/i&gt;
370
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
371
+ * @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, code, displayName, createdAt, updatedAt, version, tagSlugs&lt;/i&gt;
372
+ * @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: partner&lt;i&gt;
373
+ * @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: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode, partnerNumber&lt;/i&gt;
374
+ * @param {*} [options] Override http request option.
375
+ * @throws {RequiredError}
376
+ */
377
+ listPartners: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, 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
+ localVarPath = "/partner-portal/v1/intermediary/partners";
385
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
386
+ if (configuration) {
387
+ baseOptions = configuration.baseOptions;
388
+ baseAccessToken = configuration.accessToken;
389
+ }
390
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
391
+ localVarHeaderParameter = {};
392
+ localVarQueryParameter = {};
393
+ // authentication bearer required
394
+ // http bearer authentication required
395
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
396
+ case 1:
397
+ // authentication bearer required
398
+ // http bearer authentication required
399
+ _a.sent();
400
+ if (pageSize !== undefined) {
401
+ localVarQueryParameter['pageSize'] = pageSize;
402
+ }
403
+ if (pageToken !== undefined) {
404
+ localVarQueryParameter['pageToken'] = pageToken;
405
+ }
406
+ if (filter !== undefined) {
407
+ localVarQueryParameter['filter'] = filter;
408
+ }
409
+ if (search !== undefined) {
410
+ localVarQueryParameter['search'] = search;
411
+ }
412
+ if (order !== undefined) {
413
+ localVarQueryParameter['order'] = order;
414
+ }
415
+ if (expand !== undefined) {
416
+ localVarQueryParameter['expand'] = expand;
417
+ }
418
+ if (filters !== undefined) {
419
+ localVarQueryParameter['filters'] = filters;
420
+ }
421
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
422
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
423
+ }
424
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
425
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
426
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
427
+ return [2 /*return*/, {
428
+ url: (0, common_1.toPathString)(localVarUrlObj),
429
+ options: localVarRequestOptions,
430
+ }];
431
+ }
432
+ });
433
+ });
434
+ },
435
+ /**
436
+ * Returns a list of policies you have previously created. The policies are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
437
+ * @summary List policies
438
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
439
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
440
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
441
+ * @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: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData, partnerCode&lt;/i&gt;
442
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
443
+ * @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, policyNumber, createdAt, updatedAt, policyStartDate, productVersionId, productId&lt;/i&gt;
444
+ * @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: currentVersion, partnerLinks&lt;i&gt;
445
+ * @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: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData, partnerCode&lt;/i&gt;
446
+ * @param {*} [options] Override http request option.
447
+ * @throws {RequiredError}
448
+ */
449
+ listPolicies: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
450
+ if (options === void 0) { options = {}; }
451
+ return __awaiter(_this, void 0, void 0, function () {
452
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
453
+ return __generator(this, function (_a) {
454
+ switch (_a.label) {
455
+ case 0:
456
+ localVarPath = "/partner-portal/v1/intermediary/policies";
457
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
458
+ if (configuration) {
459
+ baseOptions = configuration.baseOptions;
460
+ baseAccessToken = configuration.accessToken;
461
+ }
462
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
463
+ localVarHeaderParameter = {};
464
+ localVarQueryParameter = {};
465
+ // authentication bearer required
466
+ // http bearer authentication required
467
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
468
+ case 1:
469
+ // authentication bearer required
470
+ // http bearer authentication required
471
+ _a.sent();
472
+ if (pageSize !== undefined) {
473
+ localVarQueryParameter['pageSize'] = pageSize;
474
+ }
475
+ if (pageToken !== undefined) {
476
+ localVarQueryParameter['pageToken'] = pageToken;
477
+ }
478
+ if (filter !== undefined) {
479
+ localVarQueryParameter['filter'] = filter;
480
+ }
481
+ if (search !== undefined) {
482
+ localVarQueryParameter['search'] = search;
483
+ }
484
+ if (order !== undefined) {
485
+ localVarQueryParameter['order'] = order;
486
+ }
487
+ if (expand !== undefined) {
488
+ localVarQueryParameter['expand'] = expand;
489
+ }
490
+ if (filters !== undefined) {
491
+ localVarQueryParameter['filters'] = filters;
492
+ }
493
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
494
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
495
+ }
496
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
497
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
498
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
499
+ return [2 /*return*/, {
500
+ url: (0, common_1.toPathString)(localVarUrlObj),
501
+ options: localVarRequestOptions,
502
+ }];
503
+ }
504
+ });
505
+ });
506
+ },
507
+ /**
508
+ * Returns a list of policyholders you have previously created. The policyholders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
509
+ * @summary List policyholders
510
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
511
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
512
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
513
+ * @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: firstName, code, email, createdAt, birthDate, accountNumber, title, lastName, gender, street, zipCode, city, houseNumber, phone, type, companyName&lt;/i&gt;
514
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
515
+ * @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, firstName, lastName, email, createdAt, accountNumber&lt;/i&gt;
516
+ * @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: &lt;i&gt;
517
+ * @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: firstName, code, email, createdAt, birthDate, accountNumber, title, lastName, gender, street, zipCode, city, houseNumber, phone, type, companyName&lt;/i&gt;
518
+ * @param {*} [options] Override http request option.
519
+ * @throws {RequiredError}
520
+ */
521
+ listPolicyholders: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
522
+ if (options === void 0) { options = {}; }
523
+ return __awaiter(_this, void 0, void 0, function () {
524
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
525
+ return __generator(this, function (_a) {
526
+ switch (_a.label) {
527
+ case 0:
528
+ localVarPath = "/partner-portal/v1/intermediary/policyholders";
529
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
530
+ if (configuration) {
531
+ baseOptions = configuration.baseOptions;
532
+ baseAccessToken = configuration.accessToken;
533
+ }
534
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
535
+ localVarHeaderParameter = {};
536
+ localVarQueryParameter = {};
537
+ // authentication bearer required
538
+ // http bearer authentication required
539
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
540
+ case 1:
541
+ // authentication bearer required
542
+ // http bearer authentication required
543
+ _a.sent();
544
+ if (pageSize !== undefined) {
545
+ localVarQueryParameter['pageSize'] = pageSize;
546
+ }
547
+ if (pageToken !== undefined) {
548
+ localVarQueryParameter['pageToken'] = pageToken;
549
+ }
550
+ if (filter !== undefined) {
551
+ localVarQueryParameter['filter'] = filter;
552
+ }
553
+ if (search !== undefined) {
554
+ localVarQueryParameter['search'] = search;
555
+ }
556
+ if (order !== undefined) {
557
+ localVarQueryParameter['order'] = order;
558
+ }
559
+ if (expand !== undefined) {
560
+ localVarQueryParameter['expand'] = expand;
561
+ }
562
+ if (filters !== undefined) {
563
+ localVarQueryParameter['filters'] = filters;
564
+ }
565
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
566
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
567
+ }
568
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
569
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
570
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
571
+ return [2 /*return*/, {
572
+ url: (0, common_1.toPathString)(localVarUrlObj),
573
+ options: localVarRequestOptions,
574
+ }];
575
+ }
576
+ });
577
+ });
578
+ },
579
+ };
580
+ };
581
+ exports.IntermediaryApiAxiosParamCreator = IntermediaryApiAxiosParamCreator;
582
+ /**
583
+ * IntermediaryApi - functional programming interface
584
+ * @export
585
+ */
586
+ var IntermediaryApiFp = function (configuration) {
587
+ var localVarAxiosParamCreator = (0, exports.IntermediaryApiAxiosParamCreator)(configuration);
588
+ return {
589
+ /**
590
+ * Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
591
+ * @summary Retrieve the lead
592
+ * @param {string} code Unique identifier for the object.
593
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
594
+ * @param {*} [options] Override http request option.
595
+ * @throws {RequiredError}
596
+ */
597
+ getLead: function (code, authorization, options) {
598
+ return __awaiter(this, void 0, void 0, function () {
599
+ var localVarAxiosArgs;
600
+ return __generator(this, function (_a) {
601
+ switch (_a.label) {
602
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getLead(code, authorization, options)];
603
+ case 1:
604
+ localVarAxiosArgs = _a.sent();
605
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
606
+ }
607
+ });
608
+ });
609
+ },
610
+ /**
611
+ * Retrieves the details of the partner that was previously created. Supply the unique partner code that was returned when you created it and Emil Api will return the corresponding partner information.
612
+ * @summary Retrieve the partner
613
+ * @param {string} code Unique identifier for the object.
614
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
615
+ * @param {*} [options] Override http request option.
616
+ * @throws {RequiredError}
617
+ */
618
+ getPartner: function (code, authorization, options) {
619
+ return __awaiter(this, void 0, void 0, function () {
620
+ var localVarAxiosArgs;
621
+ return __generator(this, function (_a) {
622
+ switch (_a.label) {
623
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPartner(code, authorization, options)];
624
+ case 1:
625
+ localVarAxiosArgs = _a.sent();
626
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
627
+ }
628
+ });
629
+ });
630
+ },
631
+ /**
632
+ * Retrieves the details of the policy that was previously created. Supply the unique policy code that was returned when you created it and Emil Api will return the corresponding policy information.
633
+ * @summary Retrieve the policy
634
+ * @param {string} code Unique identifier for the object.
635
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
636
+ * @param {*} [options] Override http request option.
637
+ * @throws {RequiredError}
638
+ */
639
+ getPolicy: function (code, authorization, options) {
640
+ return __awaiter(this, void 0, void 0, function () {
641
+ var localVarAxiosArgs;
642
+ return __generator(this, function (_a) {
643
+ switch (_a.label) {
644
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPolicy(code, authorization, options)];
645
+ case 1:
646
+ localVarAxiosArgs = _a.sent();
647
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
648
+ }
649
+ });
650
+ });
651
+ },
652
+ /**
653
+ * Retrieves the details of the policyholder that was previously created. Supply the unique policyholder code that was returned when you created it and Emil Api will return the corresponding policyholder information.
654
+ * @summary Retrieve the policyholder
655
+ * @param {string} code Unique identifier for the object.
656
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
657
+ * @param {*} [options] Override http request option.
658
+ * @throws {RequiredError}
659
+ */
660
+ getPolicyholder: function (code, authorization, options) {
661
+ return __awaiter(this, void 0, void 0, function () {
662
+ var localVarAxiosArgs;
663
+ return __generator(this, function (_a) {
664
+ switch (_a.label) {
665
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPolicyholder(code, authorization, options)];
666
+ case 1:
667
+ localVarAxiosArgs = _a.sent();
668
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
669
+ }
670
+ });
671
+ });
672
+ },
673
+ /**
674
+ * Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
675
+ * @summary List leads
676
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
677
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
678
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
679
+ * @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: id, code, status, leadNumber, accountCode, productSlug, ern, createdAt, updatedAt, partnerCode&lt;/i&gt;
680
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
681
+ * @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, code, status, leadNumber, updatedAt&lt;/i&gt;
682
+ * @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: partnerLinks&lt;i&gt;
683
+ * @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: id, code, status, leadNumber, accountCode, productSlug, ern, createdAt, updatedAt, partnerCode&lt;/i&gt;
684
+ * @param {*} [options] Override http request option.
685
+ * @throws {RequiredError}
686
+ */
687
+ listLeads: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
688
+ return __awaiter(this, void 0, void 0, function () {
689
+ var localVarAxiosArgs;
690
+ return __generator(this, function (_a) {
691
+ switch (_a.label) {
692
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listLeads(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
693
+ case 1:
694
+ localVarAxiosArgs = _a.sent();
695
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
696
+ }
697
+ });
698
+ });
699
+ },
700
+ /**
701
+ * Returns a list of partners you have previously created. The partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
702
+ * @summary List partners
703
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
704
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
705
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
706
+ * @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: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode, partnerNumber&lt;/i&gt;
707
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
708
+ * @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, code, displayName, createdAt, updatedAt, version, tagSlugs&lt;/i&gt;
709
+ * @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: partner&lt;i&gt;
710
+ * @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: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode, partnerNumber&lt;/i&gt;
711
+ * @param {*} [options] Override http request option.
712
+ * @throws {RequiredError}
713
+ */
714
+ listPartners: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
715
+ return __awaiter(this, void 0, void 0, function () {
716
+ var localVarAxiosArgs;
717
+ return __generator(this, function (_a) {
718
+ switch (_a.label) {
719
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPartners(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
720
+ case 1:
721
+ localVarAxiosArgs = _a.sent();
722
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
723
+ }
724
+ });
725
+ });
726
+ },
727
+ /**
728
+ * Returns a list of policies you have previously created. The policies are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
729
+ * @summary List policies
730
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
731
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
732
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
733
+ * @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: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData, partnerCode&lt;/i&gt;
734
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
735
+ * @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, policyNumber, createdAt, updatedAt, policyStartDate, productVersionId, productId&lt;/i&gt;
736
+ * @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: currentVersion, partnerLinks&lt;i&gt;
737
+ * @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: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData, partnerCode&lt;/i&gt;
738
+ * @param {*} [options] Override http request option.
739
+ * @throws {RequiredError}
740
+ */
741
+ listPolicies: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
742
+ return __awaiter(this, void 0, void 0, function () {
743
+ var localVarAxiosArgs;
744
+ return __generator(this, function (_a) {
745
+ switch (_a.label) {
746
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPolicies(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
747
+ case 1:
748
+ localVarAxiosArgs = _a.sent();
749
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
750
+ }
751
+ });
752
+ });
753
+ },
754
+ /**
755
+ * Returns a list of policyholders you have previously created. The policyholders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
756
+ * @summary List policyholders
757
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
758
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
759
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
760
+ * @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: firstName, code, email, createdAt, birthDate, accountNumber, title, lastName, gender, street, zipCode, city, houseNumber, phone, type, companyName&lt;/i&gt;
761
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
762
+ * @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, firstName, lastName, email, createdAt, accountNumber&lt;/i&gt;
763
+ * @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: &lt;i&gt;
764
+ * @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: firstName, code, email, createdAt, birthDate, accountNumber, title, lastName, gender, street, zipCode, city, houseNumber, phone, type, companyName&lt;/i&gt;
765
+ * @param {*} [options] Override http request option.
766
+ * @throws {RequiredError}
767
+ */
768
+ listPolicyholders: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
769
+ return __awaiter(this, void 0, void 0, function () {
770
+ var localVarAxiosArgs;
771
+ return __generator(this, function (_a) {
772
+ switch (_a.label) {
773
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPolicyholders(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
774
+ case 1:
775
+ localVarAxiosArgs = _a.sent();
776
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
777
+ }
778
+ });
779
+ });
780
+ },
781
+ };
782
+ };
783
+ exports.IntermediaryApiFp = IntermediaryApiFp;
784
+ /**
785
+ * IntermediaryApi - factory interface
786
+ * @export
787
+ */
788
+ var IntermediaryApiFactory = function (configuration, basePath, axios) {
789
+ var localVarFp = (0, exports.IntermediaryApiFp)(configuration);
790
+ return {
791
+ /**
792
+ * Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
793
+ * @summary Retrieve the lead
794
+ * @param {string} code Unique identifier for the object.
795
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
796
+ * @param {*} [options] Override http request option.
797
+ * @throws {RequiredError}
798
+ */
799
+ getLead: function (code, authorization, options) {
800
+ return localVarFp.getLead(code, authorization, options).then(function (request) { return request(axios, basePath); });
801
+ },
802
+ /**
803
+ * Retrieves the details of the partner that was previously created. Supply the unique partner code that was returned when you created it and Emil Api will return the corresponding partner information.
804
+ * @summary Retrieve the partner
805
+ * @param {string} code Unique identifier for the object.
806
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
807
+ * @param {*} [options] Override http request option.
808
+ * @throws {RequiredError}
809
+ */
810
+ getPartner: function (code, authorization, options) {
811
+ return localVarFp.getPartner(code, authorization, options).then(function (request) { return request(axios, basePath); });
812
+ },
813
+ /**
814
+ * Retrieves the details of the policy that was previously created. Supply the unique policy code that was returned when you created it and Emil Api will return the corresponding policy information.
815
+ * @summary Retrieve the policy
816
+ * @param {string} code Unique identifier for the object.
817
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
818
+ * @param {*} [options] Override http request option.
819
+ * @throws {RequiredError}
820
+ */
821
+ getPolicy: function (code, authorization, options) {
822
+ return localVarFp.getPolicy(code, authorization, options).then(function (request) { return request(axios, basePath); });
823
+ },
824
+ /**
825
+ * Retrieves the details of the policyholder that was previously created. Supply the unique policyholder code that was returned when you created it and Emil Api will return the corresponding policyholder information.
826
+ * @summary Retrieve the policyholder
827
+ * @param {string} code Unique identifier for the object.
828
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
829
+ * @param {*} [options] Override http request option.
830
+ * @throws {RequiredError}
831
+ */
832
+ getPolicyholder: function (code, authorization, options) {
833
+ return localVarFp.getPolicyholder(code, authorization, options).then(function (request) { return request(axios, basePath); });
834
+ },
835
+ /**
836
+ * Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
837
+ * @summary List leads
838
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
839
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
840
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
841
+ * @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: id, code, status, leadNumber, accountCode, productSlug, ern, createdAt, updatedAt, partnerCode&lt;/i&gt;
842
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
843
+ * @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, code, status, leadNumber, updatedAt&lt;/i&gt;
844
+ * @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: partnerLinks&lt;i&gt;
845
+ * @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: id, code, status, leadNumber, accountCode, productSlug, ern, createdAt, updatedAt, partnerCode&lt;/i&gt;
846
+ * @param {*} [options] Override http request option.
847
+ * @throws {RequiredError}
848
+ */
849
+ listLeads: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
850
+ return localVarFp.listLeads(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
851
+ },
852
+ /**
853
+ * Returns a list of partners you have previously created. The partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
854
+ * @summary List partners
855
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
856
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
857
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
858
+ * @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: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode, partnerNumber&lt;/i&gt;
859
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
860
+ * @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, code, displayName, createdAt, updatedAt, version, tagSlugs&lt;/i&gt;
861
+ * @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: partner&lt;i&gt;
862
+ * @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: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode, partnerNumber&lt;/i&gt;
863
+ * @param {*} [options] Override http request option.
864
+ * @throws {RequiredError}
865
+ */
866
+ listPartners: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
867
+ return localVarFp.listPartners(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
868
+ },
869
+ /**
870
+ * Returns a list of policies you have previously created. The policies are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
871
+ * @summary List policies
872
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
873
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
874
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
875
+ * @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: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData, partnerCode&lt;/i&gt;
876
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
877
+ * @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, policyNumber, createdAt, updatedAt, policyStartDate, productVersionId, productId&lt;/i&gt;
878
+ * @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: currentVersion, partnerLinks&lt;i&gt;
879
+ * @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: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData, partnerCode&lt;/i&gt;
880
+ * @param {*} [options] Override http request option.
881
+ * @throws {RequiredError}
882
+ */
883
+ listPolicies: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
884
+ return localVarFp.listPolicies(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
885
+ },
886
+ /**
887
+ * Returns a list of policyholders you have previously created. The policyholders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
888
+ * @summary List policyholders
889
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
890
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
891
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
892
+ * @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: firstName, code, email, createdAt, birthDate, accountNumber, title, lastName, gender, street, zipCode, city, houseNumber, phone, type, companyName&lt;/i&gt;
893
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
894
+ * @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, firstName, lastName, email, createdAt, accountNumber&lt;/i&gt;
895
+ * @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: &lt;i&gt;
896
+ * @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: firstName, code, email, createdAt, birthDate, accountNumber, title, lastName, gender, street, zipCode, city, houseNumber, phone, type, companyName&lt;/i&gt;
897
+ * @param {*} [options] Override http request option.
898
+ * @throws {RequiredError}
899
+ */
900
+ listPolicyholders: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
901
+ return localVarFp.listPolicyholders(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
902
+ },
903
+ };
904
+ };
905
+ exports.IntermediaryApiFactory = IntermediaryApiFactory;
906
+ /**
907
+ * IntermediaryApi - object-oriented interface
908
+ * @export
909
+ * @class IntermediaryApi
910
+ * @extends {BaseAPI}
911
+ */
912
+ var IntermediaryApi = /** @class */ (function (_super) {
913
+ __extends(IntermediaryApi, _super);
914
+ function IntermediaryApi() {
915
+ return _super !== null && _super.apply(this, arguments) || this;
916
+ }
917
+ /**
918
+ * Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
919
+ * @summary Retrieve the lead
920
+ * @param {IntermediaryApiGetLeadRequest} requestParameters Request parameters.
921
+ * @param {*} [options] Override http request option.
922
+ * @throws {RequiredError}
923
+ * @memberof IntermediaryApi
924
+ */
925
+ IntermediaryApi.prototype.getLead = function (requestParameters, options) {
926
+ var _this = this;
927
+ return (0, exports.IntermediaryApiFp)(this.configuration).getLead(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
928
+ };
929
+ /**
930
+ * Retrieves the details of the partner that was previously created. Supply the unique partner code that was returned when you created it and Emil Api will return the corresponding partner information.
931
+ * @summary Retrieve the partner
932
+ * @param {IntermediaryApiGetPartnerRequest} requestParameters Request parameters.
933
+ * @param {*} [options] Override http request option.
934
+ * @throws {RequiredError}
935
+ * @memberof IntermediaryApi
936
+ */
937
+ IntermediaryApi.prototype.getPartner = function (requestParameters, options) {
938
+ var _this = this;
939
+ return (0, exports.IntermediaryApiFp)(this.configuration).getPartner(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
940
+ };
941
+ /**
942
+ * Retrieves the details of the policy that was previously created. Supply the unique policy code that was returned when you created it and Emil Api will return the corresponding policy information.
943
+ * @summary Retrieve the policy
944
+ * @param {IntermediaryApiGetPolicyRequest} requestParameters Request parameters.
945
+ * @param {*} [options] Override http request option.
946
+ * @throws {RequiredError}
947
+ * @memberof IntermediaryApi
948
+ */
949
+ IntermediaryApi.prototype.getPolicy = function (requestParameters, options) {
950
+ var _this = this;
951
+ return (0, exports.IntermediaryApiFp)(this.configuration).getPolicy(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
952
+ };
953
+ /**
954
+ * Retrieves the details of the policyholder that was previously created. Supply the unique policyholder code that was returned when you created it and Emil Api will return the corresponding policyholder information.
955
+ * @summary Retrieve the policyholder
956
+ * @param {IntermediaryApiGetPolicyholderRequest} requestParameters Request parameters.
957
+ * @param {*} [options] Override http request option.
958
+ * @throws {RequiredError}
959
+ * @memberof IntermediaryApi
960
+ */
961
+ IntermediaryApi.prototype.getPolicyholder = function (requestParameters, options) {
962
+ var _this = this;
963
+ return (0, exports.IntermediaryApiFp)(this.configuration).getPolicyholder(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
964
+ };
965
+ /**
966
+ * Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
967
+ * @summary List leads
968
+ * @param {IntermediaryApiListLeadsRequest} requestParameters Request parameters.
969
+ * @param {*} [options] Override http request option.
970
+ * @throws {RequiredError}
971
+ * @memberof IntermediaryApi
972
+ */
973
+ IntermediaryApi.prototype.listLeads = function (requestParameters, options) {
974
+ var _this = this;
975
+ if (requestParameters === void 0) { requestParameters = {}; }
976
+ return (0, exports.IntermediaryApiFp)(this.configuration).listLeads(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); });
977
+ };
978
+ /**
979
+ * Returns a list of partners you have previously created. The partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
980
+ * @summary List partners
981
+ * @param {IntermediaryApiListPartnersRequest} requestParameters Request parameters.
982
+ * @param {*} [options] Override http request option.
983
+ * @throws {RequiredError}
984
+ * @memberof IntermediaryApi
985
+ */
986
+ IntermediaryApi.prototype.listPartners = function (requestParameters, options) {
987
+ var _this = this;
988
+ if (requestParameters === void 0) { requestParameters = {}; }
989
+ return (0, exports.IntermediaryApiFp)(this.configuration).listPartners(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); });
990
+ };
991
+ /**
992
+ * Returns a list of policies you have previously created. The policies are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
993
+ * @summary List policies
994
+ * @param {IntermediaryApiListPoliciesRequest} requestParameters Request parameters.
995
+ * @param {*} [options] Override http request option.
996
+ * @throws {RequiredError}
997
+ * @memberof IntermediaryApi
998
+ */
999
+ IntermediaryApi.prototype.listPolicies = function (requestParameters, options) {
1000
+ var _this = this;
1001
+ if (requestParameters === void 0) { requestParameters = {}; }
1002
+ return (0, exports.IntermediaryApiFp)(this.configuration).listPolicies(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); });
1003
+ };
1004
+ /**
1005
+ * Returns a list of policyholders you have previously created. The policyholders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
1006
+ * @summary List policyholders
1007
+ * @param {IntermediaryApiListPolicyholdersRequest} requestParameters Request parameters.
1008
+ * @param {*} [options] Override http request option.
1009
+ * @throws {RequiredError}
1010
+ * @memberof IntermediaryApi
1011
+ */
1012
+ IntermediaryApi.prototype.listPolicyholders = function (requestParameters, options) {
1013
+ var _this = this;
1014
+ if (requestParameters === void 0) { requestParameters = {}; }
1015
+ return (0, exports.IntermediaryApiFp)(this.configuration).listPolicyholders(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); });
1016
+ };
1017
+ return IntermediaryApi;
1018
+ }(base_1.BaseAPI));
1019
+ exports.IntermediaryApi = IntermediaryApi;