@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,1226 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL PartnerPortal
5
+ * The EMIL PartnerPortal API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { AccountClass } from '../models';
25
+ // @ts-ignore
26
+ import { LeadClass } from '../models';
27
+ // @ts-ignore
28
+ import { ListAccountsResponseClass } from '../models';
29
+ // @ts-ignore
30
+ import { ListLeadsResponseClass } from '../models';
31
+ // @ts-ignore
32
+ import { ListPartnersResponseClass } from '../models';
33
+ // @ts-ignore
34
+ import { ListPoliciesResponseClass } from '../models';
35
+ // @ts-ignore
36
+ import { PartnerClass } from '../models';
37
+ // @ts-ignore
38
+ import { PolicyClass } from '../models';
39
+ // URLSearchParams not necessarily used
40
+ // @ts-ignore
41
+ import { URL, URLSearchParams } from 'url';
42
+ const FormData = require('form-data');
43
+ /**
44
+ * IntermediaryApi - axios parameter creator
45
+ * @export
46
+ */
47
+ export const IntermediaryApiAxiosParamCreator = function (configuration?: Configuration) {
48
+ return {
49
+ /**
50
+ * 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.
51
+ * @summary Retrieve the lead
52
+ * @param {string} code Unique identifier for the object.
53
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
54
+ * @param {*} [options] Override http request option.
55
+ * @throws {RequiredError}
56
+ */
57
+ getLead: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
58
+ // verify required parameter 'code' is not null or undefined
59
+ assertParamExists('getLead', 'code', code)
60
+ const localVarPath = `/partner-portal/v1/intermediary/leads/{code}`
61
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
62
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
63
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
64
+ let baseOptions;
65
+ let baseAccessToken;
66
+ if (configuration) {
67
+ baseOptions = configuration.baseOptions;
68
+ baseAccessToken = configuration.accessToken;
69
+ }
70
+
71
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
72
+ const localVarHeaderParameter = {} as any;
73
+ const localVarQueryParameter = {} as any;
74
+
75
+ // authentication bearer required
76
+ // http bearer authentication required
77
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
78
+
79
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
80
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
81
+ }
82
+
83
+
84
+
85
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
86
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
87
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
88
+
89
+ return {
90
+ url: toPathString(localVarUrlObj),
91
+ options: localVarRequestOptions,
92
+ };
93
+ },
94
+ /**
95
+ * Retrieves the details of the partner 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.
96
+ * @summary Retrieve the partner
97
+ * @param {string} code Unique identifier for the object.
98
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
99
+ * @param {*} [options] Override http request option.
100
+ * @throws {RequiredError}
101
+ */
102
+ getPartner: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
103
+ // verify required parameter 'code' is not null or undefined
104
+ assertParamExists('getPartner', 'code', code)
105
+ const localVarPath = `/partner-portal/v1/intermediary/partners/{code}`
106
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
107
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
108
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
109
+ let baseOptions;
110
+ let baseAccessToken;
111
+ if (configuration) {
112
+ baseOptions = configuration.baseOptions;
113
+ baseAccessToken = configuration.accessToken;
114
+ }
115
+
116
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
117
+ const localVarHeaderParameter = {} as any;
118
+ const localVarQueryParameter = {} as any;
119
+
120
+ // authentication bearer required
121
+ // http bearer authentication required
122
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
123
+
124
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
125
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
126
+ }
127
+
128
+
129
+
130
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
131
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
132
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
133
+
134
+ return {
135
+ url: toPathString(localVarUrlObj),
136
+ options: localVarRequestOptions,
137
+ };
138
+ },
139
+ /**
140
+ * 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.
141
+ * @summary Retrieve the policy
142
+ * @param {string} code Unique identifier for the object.
143
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
144
+ * @param {*} [options] Override http request option.
145
+ * @throws {RequiredError}
146
+ */
147
+ getPolicy: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
148
+ // verify required parameter 'code' is not null or undefined
149
+ assertParamExists('getPolicy', 'code', code)
150
+ const localVarPath = `/partner-portal/v1/intermediary/policies/{code}`
151
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
152
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
153
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
154
+ let baseOptions;
155
+ let baseAccessToken;
156
+ if (configuration) {
157
+ baseOptions = configuration.baseOptions;
158
+ baseAccessToken = configuration.accessToken;
159
+ }
160
+
161
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
162
+ const localVarHeaderParameter = {} as any;
163
+ const localVarQueryParameter = {} as any;
164
+
165
+ // authentication bearer required
166
+ // http bearer authentication required
167
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
168
+
169
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
170
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
171
+ }
172
+
173
+
174
+
175
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
176
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
177
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
178
+
179
+ return {
180
+ url: toPathString(localVarUrlObj),
181
+ options: localVarRequestOptions,
182
+ };
183
+ },
184
+ /**
185
+ * 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.
186
+ * @summary Retrieve the policyholder
187
+ * @param {string} code Unique identifier for the object.
188
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
189
+ * @param {*} [options] Override http request option.
190
+ * @throws {RequiredError}
191
+ */
192
+ getPolicyholder: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
193
+ // verify required parameter 'code' is not null or undefined
194
+ assertParamExists('getPolicyholder', 'code', code)
195
+ const localVarPath = `/partner-portal/v1/intermediary/policyholders/{code}`
196
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
197
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
198
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
199
+ let baseOptions;
200
+ let baseAccessToken;
201
+ if (configuration) {
202
+ baseOptions = configuration.baseOptions;
203
+ baseAccessToken = configuration.accessToken;
204
+ }
205
+
206
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
207
+ const localVarHeaderParameter = {} as any;
208
+ const localVarQueryParameter = {} as any;
209
+
210
+ // authentication bearer required
211
+ // http bearer authentication required
212
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
213
+
214
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
215
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
216
+ }
217
+
218
+
219
+
220
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
221
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
222
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
223
+
224
+ return {
225
+ url: toPathString(localVarUrlObj),
226
+ options: localVarRequestOptions,
227
+ };
228
+ },
229
+ /**
230
+ * 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.
231
+ * @summary List leads
232
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
233
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
234
+ * @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.
235
+ * @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;
236
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
237
+ * @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;
238
+ * @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;
239
+ * @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;
240
+ * @param {*} [options] Override http request option.
241
+ * @throws {RequiredError}
242
+ */
243
+ listLeads: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
244
+ const localVarPath = `/partner-portal/v1/intermediary/leads`;
245
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
246
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
247
+ let baseOptions;
248
+ let baseAccessToken;
249
+ if (configuration) {
250
+ baseOptions = configuration.baseOptions;
251
+ baseAccessToken = configuration.accessToken;
252
+ }
253
+
254
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
255
+ const localVarHeaderParameter = {} as any;
256
+ const localVarQueryParameter = {} as any;
257
+
258
+ // authentication bearer required
259
+ // http bearer authentication required
260
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
261
+
262
+ if (pageSize !== undefined) {
263
+ localVarQueryParameter['pageSize'] = pageSize;
264
+ }
265
+
266
+ if (pageToken !== undefined) {
267
+ localVarQueryParameter['pageToken'] = pageToken;
268
+ }
269
+
270
+ if (filter !== undefined) {
271
+ localVarQueryParameter['filter'] = filter;
272
+ }
273
+
274
+ if (search !== undefined) {
275
+ localVarQueryParameter['search'] = search;
276
+ }
277
+
278
+ if (order !== undefined) {
279
+ localVarQueryParameter['order'] = order;
280
+ }
281
+
282
+ if (expand !== undefined) {
283
+ localVarQueryParameter['expand'] = expand;
284
+ }
285
+
286
+ if (filters !== undefined) {
287
+ localVarQueryParameter['filters'] = filters;
288
+ }
289
+
290
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
291
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
292
+ }
293
+
294
+
295
+
296
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
297
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
298
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
299
+
300
+ return {
301
+ url: toPathString(localVarUrlObj),
302
+ options: localVarRequestOptions,
303
+ };
304
+ },
305
+ /**
306
+ * 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.
307
+ * @summary List partners
308
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
309
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
310
+ * @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.
311
+ * @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;
312
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
313
+ * @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;
314
+ * @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;
315
+ * @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;
316
+ * @param {*} [options] Override http request option.
317
+ * @throws {RequiredError}
318
+ */
319
+ listPartners: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
320
+ const localVarPath = `/partner-portal/v1/intermediary/partners`;
321
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
322
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
323
+ let baseOptions;
324
+ let baseAccessToken;
325
+ if (configuration) {
326
+ baseOptions = configuration.baseOptions;
327
+ baseAccessToken = configuration.accessToken;
328
+ }
329
+
330
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
331
+ const localVarHeaderParameter = {} as any;
332
+ const localVarQueryParameter = {} as any;
333
+
334
+ // authentication bearer required
335
+ // http bearer authentication required
336
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
337
+
338
+ if (pageSize !== undefined) {
339
+ localVarQueryParameter['pageSize'] = pageSize;
340
+ }
341
+
342
+ if (pageToken !== undefined) {
343
+ localVarQueryParameter['pageToken'] = pageToken;
344
+ }
345
+
346
+ if (filter !== undefined) {
347
+ localVarQueryParameter['filter'] = filter;
348
+ }
349
+
350
+ if (search !== undefined) {
351
+ localVarQueryParameter['search'] = search;
352
+ }
353
+
354
+ if (order !== undefined) {
355
+ localVarQueryParameter['order'] = order;
356
+ }
357
+
358
+ if (expand !== undefined) {
359
+ localVarQueryParameter['expand'] = expand;
360
+ }
361
+
362
+ if (filters !== undefined) {
363
+ localVarQueryParameter['filters'] = filters;
364
+ }
365
+
366
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
367
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
368
+ }
369
+
370
+
371
+
372
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
373
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
374
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
375
+
376
+ return {
377
+ url: toPathString(localVarUrlObj),
378
+ options: localVarRequestOptions,
379
+ };
380
+ },
381
+ /**
382
+ * 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.
383
+ * @summary List policies
384
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
385
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
386
+ * @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.
387
+ * @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;
388
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
389
+ * @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;
390
+ * @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;
391
+ * @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;
392
+ * @param {*} [options] Override http request option.
393
+ * @throws {RequiredError}
394
+ */
395
+ listPolicies: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
396
+ const localVarPath = `/partner-portal/v1/intermediary/policies`;
397
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
398
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
399
+ let baseOptions;
400
+ let baseAccessToken;
401
+ if (configuration) {
402
+ baseOptions = configuration.baseOptions;
403
+ baseAccessToken = configuration.accessToken;
404
+ }
405
+
406
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
407
+ const localVarHeaderParameter = {} as any;
408
+ const localVarQueryParameter = {} as any;
409
+
410
+ // authentication bearer required
411
+ // http bearer authentication required
412
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
413
+
414
+ if (pageSize !== undefined) {
415
+ localVarQueryParameter['pageSize'] = pageSize;
416
+ }
417
+
418
+ if (pageToken !== undefined) {
419
+ localVarQueryParameter['pageToken'] = pageToken;
420
+ }
421
+
422
+ if (filter !== undefined) {
423
+ localVarQueryParameter['filter'] = filter;
424
+ }
425
+
426
+ if (search !== undefined) {
427
+ localVarQueryParameter['search'] = search;
428
+ }
429
+
430
+ if (order !== undefined) {
431
+ localVarQueryParameter['order'] = order;
432
+ }
433
+
434
+ if (expand !== undefined) {
435
+ localVarQueryParameter['expand'] = expand;
436
+ }
437
+
438
+ if (filters !== undefined) {
439
+ localVarQueryParameter['filters'] = filters;
440
+ }
441
+
442
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
443
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
444
+ }
445
+
446
+
447
+
448
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
449
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
450
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
451
+
452
+ return {
453
+ url: toPathString(localVarUrlObj),
454
+ options: localVarRequestOptions,
455
+ };
456
+ },
457
+ /**
458
+ * 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.
459
+ * @summary List policyholders
460
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
461
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
462
+ * @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.
463
+ * @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;
464
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
465
+ * @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;
466
+ * @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;
467
+ * @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;
468
+ * @param {*} [options] Override http request option.
469
+ * @throws {RequiredError}
470
+ */
471
+ listPolicyholders: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
472
+ const localVarPath = `/partner-portal/v1/intermediary/policyholders`;
473
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
474
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
475
+ let baseOptions;
476
+ let baseAccessToken;
477
+ if (configuration) {
478
+ baseOptions = configuration.baseOptions;
479
+ baseAccessToken = configuration.accessToken;
480
+ }
481
+
482
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
483
+ const localVarHeaderParameter = {} as any;
484
+ const localVarQueryParameter = {} as any;
485
+
486
+ // authentication bearer required
487
+ // http bearer authentication required
488
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
489
+
490
+ if (pageSize !== undefined) {
491
+ localVarQueryParameter['pageSize'] = pageSize;
492
+ }
493
+
494
+ if (pageToken !== undefined) {
495
+ localVarQueryParameter['pageToken'] = pageToken;
496
+ }
497
+
498
+ if (filter !== undefined) {
499
+ localVarQueryParameter['filter'] = filter;
500
+ }
501
+
502
+ if (search !== undefined) {
503
+ localVarQueryParameter['search'] = search;
504
+ }
505
+
506
+ if (order !== undefined) {
507
+ localVarQueryParameter['order'] = order;
508
+ }
509
+
510
+ if (expand !== undefined) {
511
+ localVarQueryParameter['expand'] = expand;
512
+ }
513
+
514
+ if (filters !== undefined) {
515
+ localVarQueryParameter['filters'] = filters;
516
+ }
517
+
518
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
519
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
520
+ }
521
+
522
+
523
+
524
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
525
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
526
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
527
+
528
+ return {
529
+ url: toPathString(localVarUrlObj),
530
+ options: localVarRequestOptions,
531
+ };
532
+ },
533
+ }
534
+ };
535
+
536
+ /**
537
+ * IntermediaryApi - functional programming interface
538
+ * @export
539
+ */
540
+ export const IntermediaryApiFp = function(configuration?: Configuration) {
541
+ const localVarAxiosParamCreator = IntermediaryApiAxiosParamCreator(configuration)
542
+ return {
543
+ /**
544
+ * 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.
545
+ * @summary Retrieve the lead
546
+ * @param {string} code Unique identifier for the object.
547
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
548
+ * @param {*} [options] Override http request option.
549
+ * @throws {RequiredError}
550
+ */
551
+ async getLead(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LeadClass>> {
552
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getLead(code, authorization, options);
553
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
554
+ },
555
+ /**
556
+ * 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.
557
+ * @summary Retrieve the partner
558
+ * @param {string} code Unique identifier for the object.
559
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
560
+ * @param {*} [options] Override http request option.
561
+ * @throws {RequiredError}
562
+ */
563
+ async getPartner(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PartnerClass>> {
564
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPartner(code, authorization, options);
565
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
566
+ },
567
+ /**
568
+ * 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.
569
+ * @summary Retrieve the policy
570
+ * @param {string} code Unique identifier for the object.
571
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
572
+ * @param {*} [options] Override http request option.
573
+ * @throws {RequiredError}
574
+ */
575
+ async getPolicy(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PolicyClass>> {
576
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPolicy(code, authorization, options);
577
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
578
+ },
579
+ /**
580
+ * 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.
581
+ * @summary Retrieve the policyholder
582
+ * @param {string} code Unique identifier for the object.
583
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
584
+ * @param {*} [options] Override http request option.
585
+ * @throws {RequiredError}
586
+ */
587
+ async getPolicyholder(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountClass>> {
588
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPolicyholder(code, authorization, options);
589
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
590
+ },
591
+ /**
592
+ * 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.
593
+ * @summary List leads
594
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
595
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
596
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
597
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, status, leadNumber, accountCode, productSlug, ern, createdAt, updatedAt, partnerCode&lt;/i&gt;
598
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
599
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, code, status, leadNumber, updatedAt&lt;/i&gt;
600
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: partnerLinks&lt;i&gt;
601
+ * @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;
602
+ * @param {*} [options] Override http request option.
603
+ * @throws {RequiredError}
604
+ */
605
+ async listLeads(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListLeadsResponseClass>> {
606
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listLeads(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
607
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
608
+ },
609
+ /**
610
+ * 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.
611
+ * @summary List partners
612
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
613
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
614
+ * @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.
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: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode, partnerNumber&lt;/i&gt;
616
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
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, code, displayName, createdAt, updatedAt, version, tagSlugs&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: partner&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: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode, partnerNumber&lt;/i&gt;
620
+ * @param {*} [options] Override http request option.
621
+ * @throws {RequiredError}
622
+ */
623
+ async listPartners(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPartnersResponseClass>> {
624
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPartners(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
625
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
626
+ },
627
+ /**
628
+ * 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.
629
+ * @summary List policies
630
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
631
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
632
+ * @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.
633
+ * @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;
634
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
635
+ * @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;
636
+ * @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;
637
+ * @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;
638
+ * @param {*} [options] Override http request option.
639
+ * @throws {RequiredError}
640
+ */
641
+ async listPolicies(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPoliciesResponseClass>> {
642
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPolicies(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
643
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
644
+ },
645
+ /**
646
+ * 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.
647
+ * @summary List policyholders
648
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
649
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
650
+ * @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.
651
+ * @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;
652
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
653
+ * @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;
654
+ * @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;
655
+ * @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;
656
+ * @param {*} [options] Override http request option.
657
+ * @throws {RequiredError}
658
+ */
659
+ async listPolicyholders(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListAccountsResponseClass>> {
660
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPolicyholders(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
661
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
662
+ },
663
+ }
664
+ };
665
+
666
+ /**
667
+ * IntermediaryApi - factory interface
668
+ * @export
669
+ */
670
+ export const IntermediaryApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
671
+ const localVarFp = IntermediaryApiFp(configuration)
672
+ return {
673
+ /**
674
+ * 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.
675
+ * @summary Retrieve the lead
676
+ * @param {string} code Unique identifier for the object.
677
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
678
+ * @param {*} [options] Override http request option.
679
+ * @throws {RequiredError}
680
+ */
681
+ getLead(code: string, authorization?: string, options?: any): AxiosPromise<LeadClass> {
682
+ return localVarFp.getLead(code, authorization, options).then((request) => request(axios, basePath));
683
+ },
684
+ /**
685
+ * 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.
686
+ * @summary Retrieve the partner
687
+ * @param {string} code Unique identifier for the object.
688
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
689
+ * @param {*} [options] Override http request option.
690
+ * @throws {RequiredError}
691
+ */
692
+ getPartner(code: string, authorization?: string, options?: any): AxiosPromise<PartnerClass> {
693
+ return localVarFp.getPartner(code, authorization, options).then((request) => request(axios, basePath));
694
+ },
695
+ /**
696
+ * 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.
697
+ * @summary Retrieve the policy
698
+ * @param {string} code Unique identifier for the object.
699
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
700
+ * @param {*} [options] Override http request option.
701
+ * @throws {RequiredError}
702
+ */
703
+ getPolicy(code: string, authorization?: string, options?: any): AxiosPromise<PolicyClass> {
704
+ return localVarFp.getPolicy(code, authorization, options).then((request) => request(axios, basePath));
705
+ },
706
+ /**
707
+ * 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.
708
+ * @summary Retrieve the policyholder
709
+ * @param {string} code Unique identifier for the object.
710
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
711
+ * @param {*} [options] Override http request option.
712
+ * @throws {RequiredError}
713
+ */
714
+ getPolicyholder(code: string, authorization?: string, options?: any): AxiosPromise<AccountClass> {
715
+ return localVarFp.getPolicyholder(code, authorization, options).then((request) => request(axios, basePath));
716
+ },
717
+ /**
718
+ * 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.
719
+ * @summary List leads
720
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
721
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
722
+ * @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.
723
+ * @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;
724
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
725
+ * @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;
726
+ * @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;
727
+ * @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;
728
+ * @param {*} [options] Override http request option.
729
+ * @throws {RequiredError}
730
+ */
731
+ listLeads(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListLeadsResponseClass> {
732
+ return localVarFp.listLeads(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
733
+ },
734
+ /**
735
+ * 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.
736
+ * @summary List partners
737
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
738
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
739
+ * @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.
740
+ * @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;
741
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
742
+ * @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;
743
+ * @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;
744
+ * @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;
745
+ * @param {*} [options] Override http request option.
746
+ * @throws {RequiredError}
747
+ */
748
+ listPartners(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPartnersResponseClass> {
749
+ return localVarFp.listPartners(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
750
+ },
751
+ /**
752
+ * 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.
753
+ * @summary List policies
754
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
755
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
756
+ * @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.
757
+ * @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;
758
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
759
+ * @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;
760
+ * @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;
761
+ * @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;
762
+ * @param {*} [options] Override http request option.
763
+ * @throws {RequiredError}
764
+ */
765
+ listPolicies(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPoliciesResponseClass> {
766
+ return localVarFp.listPolicies(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
767
+ },
768
+ /**
769
+ * 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.
770
+ * @summary List policyholders
771
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
772
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
773
+ * @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.
774
+ * @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;
775
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
776
+ * @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;
777
+ * @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;
778
+ * @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;
779
+ * @param {*} [options] Override http request option.
780
+ * @throws {RequiredError}
781
+ */
782
+ listPolicyholders(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListAccountsResponseClass> {
783
+ return localVarFp.listPolicyholders(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
784
+ },
785
+ };
786
+ };
787
+
788
+ /**
789
+ * Request parameters for getLead operation in IntermediaryApi.
790
+ * @export
791
+ * @interface IntermediaryApiGetLeadRequest
792
+ */
793
+ export interface IntermediaryApiGetLeadRequest {
794
+ /**
795
+ * Unique identifier for the object.
796
+ * @type {string}
797
+ * @memberof IntermediaryApiGetLead
798
+ */
799
+ readonly code: string
800
+
801
+ /**
802
+ * Bearer Token: provided by the login endpoint under the name accessToken.
803
+ * @type {string}
804
+ * @memberof IntermediaryApiGetLead
805
+ */
806
+ readonly authorization?: string
807
+ }
808
+
809
+ /**
810
+ * Request parameters for getPartner operation in IntermediaryApi.
811
+ * @export
812
+ * @interface IntermediaryApiGetPartnerRequest
813
+ */
814
+ export interface IntermediaryApiGetPartnerRequest {
815
+ /**
816
+ * Unique identifier for the object.
817
+ * @type {string}
818
+ * @memberof IntermediaryApiGetPartner
819
+ */
820
+ readonly code: string
821
+
822
+ /**
823
+ * Bearer Token: provided by the login endpoint under the name accessToken.
824
+ * @type {string}
825
+ * @memberof IntermediaryApiGetPartner
826
+ */
827
+ readonly authorization?: string
828
+ }
829
+
830
+ /**
831
+ * Request parameters for getPolicy operation in IntermediaryApi.
832
+ * @export
833
+ * @interface IntermediaryApiGetPolicyRequest
834
+ */
835
+ export interface IntermediaryApiGetPolicyRequest {
836
+ /**
837
+ * Unique identifier for the object.
838
+ * @type {string}
839
+ * @memberof IntermediaryApiGetPolicy
840
+ */
841
+ readonly code: string
842
+
843
+ /**
844
+ * Bearer Token: provided by the login endpoint under the name accessToken.
845
+ * @type {string}
846
+ * @memberof IntermediaryApiGetPolicy
847
+ */
848
+ readonly authorization?: string
849
+ }
850
+
851
+ /**
852
+ * Request parameters for getPolicyholder operation in IntermediaryApi.
853
+ * @export
854
+ * @interface IntermediaryApiGetPolicyholderRequest
855
+ */
856
+ export interface IntermediaryApiGetPolicyholderRequest {
857
+ /**
858
+ * Unique identifier for the object.
859
+ * @type {string}
860
+ * @memberof IntermediaryApiGetPolicyholder
861
+ */
862
+ readonly code: string
863
+
864
+ /**
865
+ * Bearer Token: provided by the login endpoint under the name accessToken.
866
+ * @type {string}
867
+ * @memberof IntermediaryApiGetPolicyholder
868
+ */
869
+ readonly authorization?: string
870
+ }
871
+
872
+ /**
873
+ * Request parameters for listLeads operation in IntermediaryApi.
874
+ * @export
875
+ * @interface IntermediaryApiListLeadsRequest
876
+ */
877
+ export interface IntermediaryApiListLeadsRequest {
878
+ /**
879
+ * Bearer Token: provided by the login endpoint under the name accessToken.
880
+ * @type {string}
881
+ * @memberof IntermediaryApiListLeads
882
+ */
883
+ readonly authorization?: string
884
+
885
+ /**
886
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
887
+ * @type {any}
888
+ * @memberof IntermediaryApiListLeads
889
+ */
890
+ readonly pageSize?: any
891
+
892
+ /**
893
+ * 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.
894
+ * @type {any}
895
+ * @memberof IntermediaryApiListLeads
896
+ */
897
+ readonly pageToken?: any
898
+
899
+ /**
900
+ * 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;
901
+ * @type {string}
902
+ * @memberof IntermediaryApiListLeads
903
+ */
904
+ readonly filter?: string
905
+
906
+ /**
907
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
908
+ * @type {any}
909
+ * @memberof IntermediaryApiListLeads
910
+ */
911
+ readonly search?: any
912
+
913
+ /**
914
+ * 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;
915
+ * @type {string}
916
+ * @memberof IntermediaryApiListLeads
917
+ */
918
+ readonly order?: string
919
+
920
+ /**
921
+ * 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;
922
+ * @type {string}
923
+ * @memberof IntermediaryApiListLeads
924
+ */
925
+ readonly expand?: string
926
+
927
+ /**
928
+ * 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;
929
+ * @type {string}
930
+ * @memberof IntermediaryApiListLeads
931
+ */
932
+ readonly filters?: string
933
+ }
934
+
935
+ /**
936
+ * Request parameters for listPartners operation in IntermediaryApi.
937
+ * @export
938
+ * @interface IntermediaryApiListPartnersRequest
939
+ */
940
+ export interface IntermediaryApiListPartnersRequest {
941
+ /**
942
+ * Bearer Token: provided by the login endpoint under the name accessToken.
943
+ * @type {string}
944
+ * @memberof IntermediaryApiListPartners
945
+ */
946
+ readonly authorization?: string
947
+
948
+ /**
949
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
950
+ * @type {any}
951
+ * @memberof IntermediaryApiListPartners
952
+ */
953
+ readonly pageSize?: any
954
+
955
+ /**
956
+ * 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.
957
+ * @type {any}
958
+ * @memberof IntermediaryApiListPartners
959
+ */
960
+ readonly pageToken?: any
961
+
962
+ /**
963
+ * 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;
964
+ * @type {string}
965
+ * @memberof IntermediaryApiListPartners
966
+ */
967
+ readonly filter?: string
968
+
969
+ /**
970
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
971
+ * @type {any}
972
+ * @memberof IntermediaryApiListPartners
973
+ */
974
+ readonly search?: any
975
+
976
+ /**
977
+ * 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;
978
+ * @type {string}
979
+ * @memberof IntermediaryApiListPartners
980
+ */
981
+ readonly order?: string
982
+
983
+ /**
984
+ * 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;
985
+ * @type {string}
986
+ * @memberof IntermediaryApiListPartners
987
+ */
988
+ readonly expand?: string
989
+
990
+ /**
991
+ * 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;
992
+ * @type {string}
993
+ * @memberof IntermediaryApiListPartners
994
+ */
995
+ readonly filters?: string
996
+ }
997
+
998
+ /**
999
+ * Request parameters for listPolicies operation in IntermediaryApi.
1000
+ * @export
1001
+ * @interface IntermediaryApiListPoliciesRequest
1002
+ */
1003
+ export interface IntermediaryApiListPoliciesRequest {
1004
+ /**
1005
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1006
+ * @type {string}
1007
+ * @memberof IntermediaryApiListPolicies
1008
+ */
1009
+ readonly authorization?: string
1010
+
1011
+ /**
1012
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1013
+ * @type {any}
1014
+ * @memberof IntermediaryApiListPolicies
1015
+ */
1016
+ readonly pageSize?: any
1017
+
1018
+ /**
1019
+ * 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.
1020
+ * @type {any}
1021
+ * @memberof IntermediaryApiListPolicies
1022
+ */
1023
+ readonly pageToken?: any
1024
+
1025
+ /**
1026
+ * 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;
1027
+ * @type {string}
1028
+ * @memberof IntermediaryApiListPolicies
1029
+ */
1030
+ readonly filter?: string
1031
+
1032
+ /**
1033
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
1034
+ * @type {any}
1035
+ * @memberof IntermediaryApiListPolicies
1036
+ */
1037
+ readonly search?: any
1038
+
1039
+ /**
1040
+ * 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;
1041
+ * @type {string}
1042
+ * @memberof IntermediaryApiListPolicies
1043
+ */
1044
+ readonly order?: string
1045
+
1046
+ /**
1047
+ * 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;
1048
+ * @type {string}
1049
+ * @memberof IntermediaryApiListPolicies
1050
+ */
1051
+ readonly expand?: string
1052
+
1053
+ /**
1054
+ * 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;
1055
+ * @type {string}
1056
+ * @memberof IntermediaryApiListPolicies
1057
+ */
1058
+ readonly filters?: string
1059
+ }
1060
+
1061
+ /**
1062
+ * Request parameters for listPolicyholders operation in IntermediaryApi.
1063
+ * @export
1064
+ * @interface IntermediaryApiListPolicyholdersRequest
1065
+ */
1066
+ export interface IntermediaryApiListPolicyholdersRequest {
1067
+ /**
1068
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1069
+ * @type {string}
1070
+ * @memberof IntermediaryApiListPolicyholders
1071
+ */
1072
+ readonly authorization?: string
1073
+
1074
+ /**
1075
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1076
+ * @type {any}
1077
+ * @memberof IntermediaryApiListPolicyholders
1078
+ */
1079
+ readonly pageSize?: any
1080
+
1081
+ /**
1082
+ * 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.
1083
+ * @type {any}
1084
+ * @memberof IntermediaryApiListPolicyholders
1085
+ */
1086
+ readonly pageToken?: any
1087
+
1088
+ /**
1089
+ * 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;
1090
+ * @type {string}
1091
+ * @memberof IntermediaryApiListPolicyholders
1092
+ */
1093
+ readonly filter?: string
1094
+
1095
+ /**
1096
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
1097
+ * @type {any}
1098
+ * @memberof IntermediaryApiListPolicyholders
1099
+ */
1100
+ readonly search?: any
1101
+
1102
+ /**
1103
+ * 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;
1104
+ * @type {string}
1105
+ * @memberof IntermediaryApiListPolicyholders
1106
+ */
1107
+ readonly order?: string
1108
+
1109
+ /**
1110
+ * 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;
1111
+ * @type {string}
1112
+ * @memberof IntermediaryApiListPolicyholders
1113
+ */
1114
+ readonly expand?: string
1115
+
1116
+ /**
1117
+ * 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;
1118
+ * @type {string}
1119
+ * @memberof IntermediaryApiListPolicyholders
1120
+ */
1121
+ readonly filters?: string
1122
+ }
1123
+
1124
+ /**
1125
+ * IntermediaryApi - object-oriented interface
1126
+ * @export
1127
+ * @class IntermediaryApi
1128
+ * @extends {BaseAPI}
1129
+ */
1130
+ export class IntermediaryApi extends BaseAPI {
1131
+ /**
1132
+ * 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.
1133
+ * @summary Retrieve the lead
1134
+ * @param {IntermediaryApiGetLeadRequest} requestParameters Request parameters.
1135
+ * @param {*} [options] Override http request option.
1136
+ * @throws {RequiredError}
1137
+ * @memberof IntermediaryApi
1138
+ */
1139
+ public getLead(requestParameters: IntermediaryApiGetLeadRequest, options?: AxiosRequestConfig) {
1140
+ return IntermediaryApiFp(this.configuration).getLead(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1141
+ }
1142
+
1143
+ /**
1144
+ * 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.
1145
+ * @summary Retrieve the partner
1146
+ * @param {IntermediaryApiGetPartnerRequest} requestParameters Request parameters.
1147
+ * @param {*} [options] Override http request option.
1148
+ * @throws {RequiredError}
1149
+ * @memberof IntermediaryApi
1150
+ */
1151
+ public getPartner(requestParameters: IntermediaryApiGetPartnerRequest, options?: AxiosRequestConfig) {
1152
+ return IntermediaryApiFp(this.configuration).getPartner(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1153
+ }
1154
+
1155
+ /**
1156
+ * 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.
1157
+ * @summary Retrieve the policy
1158
+ * @param {IntermediaryApiGetPolicyRequest} requestParameters Request parameters.
1159
+ * @param {*} [options] Override http request option.
1160
+ * @throws {RequiredError}
1161
+ * @memberof IntermediaryApi
1162
+ */
1163
+ public getPolicy(requestParameters: IntermediaryApiGetPolicyRequest, options?: AxiosRequestConfig) {
1164
+ return IntermediaryApiFp(this.configuration).getPolicy(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1165
+ }
1166
+
1167
+ /**
1168
+ * 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.
1169
+ * @summary Retrieve the policyholder
1170
+ * @param {IntermediaryApiGetPolicyholderRequest} requestParameters Request parameters.
1171
+ * @param {*} [options] Override http request option.
1172
+ * @throws {RequiredError}
1173
+ * @memberof IntermediaryApi
1174
+ */
1175
+ public getPolicyholder(requestParameters: IntermediaryApiGetPolicyholderRequest, options?: AxiosRequestConfig) {
1176
+ return IntermediaryApiFp(this.configuration).getPolicyholder(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1177
+ }
1178
+
1179
+ /**
1180
+ * 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.
1181
+ * @summary List leads
1182
+ * @param {IntermediaryApiListLeadsRequest} requestParameters Request parameters.
1183
+ * @param {*} [options] Override http request option.
1184
+ * @throws {RequiredError}
1185
+ * @memberof IntermediaryApi
1186
+ */
1187
+ public listLeads(requestParameters: IntermediaryApiListLeadsRequest = {}, options?: AxiosRequestConfig) {
1188
+ return IntermediaryApiFp(this.configuration).listLeads(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
1189
+ }
1190
+
1191
+ /**
1192
+ * 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.
1193
+ * @summary List partners
1194
+ * @param {IntermediaryApiListPartnersRequest} requestParameters Request parameters.
1195
+ * @param {*} [options] Override http request option.
1196
+ * @throws {RequiredError}
1197
+ * @memberof IntermediaryApi
1198
+ */
1199
+ public listPartners(requestParameters: IntermediaryApiListPartnersRequest = {}, options?: AxiosRequestConfig) {
1200
+ return IntermediaryApiFp(this.configuration).listPartners(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
1201
+ }
1202
+
1203
+ /**
1204
+ * 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.
1205
+ * @summary List policies
1206
+ * @param {IntermediaryApiListPoliciesRequest} requestParameters Request parameters.
1207
+ * @param {*} [options] Override http request option.
1208
+ * @throws {RequiredError}
1209
+ * @memberof IntermediaryApi
1210
+ */
1211
+ public listPolicies(requestParameters: IntermediaryApiListPoliciesRequest = {}, options?: AxiosRequestConfig) {
1212
+ return IntermediaryApiFp(this.configuration).listPolicies(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
1213
+ }
1214
+
1215
+ /**
1216
+ * 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.
1217
+ * @summary List policyholders
1218
+ * @param {IntermediaryApiListPolicyholdersRequest} requestParameters Request parameters.
1219
+ * @param {*} [options] Override http request option.
1220
+ * @throws {RequiredError}
1221
+ * @memberof IntermediaryApi
1222
+ */
1223
+ public listPolicyholders(requestParameters: IntermediaryApiListPolicyholdersRequest = {}, options?: AxiosRequestConfig) {
1224
+ return IntermediaryApiFp(this.configuration).listPolicyholders(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
1225
+ }
1226
+ }