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