@emilgroup/customer-sdk-node 1.41.0 → 1.42.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 (55) hide show
  1. package/.openapi-generator/FILES +1 -0
  2. package/README.md +2 -2
  3. package/api/claims-api.ts +28 -28
  4. package/api/customers-api.ts +28 -28
  5. package/api/documents-api.ts +51 -34
  6. package/api/invoices-api.ts +28 -28
  7. package/api/leads-api.ts +32 -32
  8. package/api/policies-api.ts +28 -28
  9. package/api/products-api.ts +28 -28
  10. package/base.ts +1 -0
  11. package/dist/api/claims-api.d.ts +20 -20
  12. package/dist/api/claims-api.js +18 -18
  13. package/dist/api/customers-api.d.ts +20 -20
  14. package/dist/api/customers-api.js +18 -18
  15. package/dist/api/documents-api.d.ts +33 -23
  16. package/dist/api/documents-api.js +31 -24
  17. package/dist/api/invoices-api.d.ts +20 -20
  18. package/dist/api/invoices-api.js +18 -18
  19. package/dist/api/leads-api.d.ts +24 -24
  20. package/dist/api/leads-api.js +22 -22
  21. package/dist/api/policies-api.d.ts +20 -20
  22. package/dist/api/policies-api.js +18 -18
  23. package/dist/api/products-api.d.ts +20 -20
  24. package/dist/api/products-api.js +18 -18
  25. package/dist/base.d.ts +1 -0
  26. package/dist/base.js +1 -0
  27. package/dist/models/account-class.d.ts +1 -1
  28. package/dist/models/account-class.js +1 -1
  29. package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +19 -0
  30. package/dist/models/create-account-request-dto.d.ts +2 -8
  31. package/dist/models/create-account-request-dto.js +1 -1
  32. package/dist/models/customer-product-class.d.ts +2 -2
  33. package/dist/models/index.d.ts +1 -0
  34. package/dist/models/index.js +1 -0
  35. package/dist/models/inline-response200.d.ts +6 -6
  36. package/dist/models/inline-response503.d.ts +6 -6
  37. package/dist/models/link-lead-partner-request-dto.d.ts +16 -4
  38. package/dist/models/policy-object-dto.d.ts +2 -2
  39. package/dist/models/policy-premium-class.d.ts +2 -2
  40. package/dist/models/update-lead-request-dto.d.ts +1 -1
  41. package/dist/models/upload-account-documents-request-dto.d.ts +46 -0
  42. package/dist/models/upload-account-documents-request-dto.js +19 -0
  43. package/models/account-class.ts +1 -1
  44. package/models/complete-stripe-payment-setup-request-dto.ts +19 -0
  45. package/models/create-account-request-dto.ts +2 -8
  46. package/models/customer-product-class.ts +2 -2
  47. package/models/index.ts +1 -0
  48. package/models/inline-response200.ts +6 -6
  49. package/models/inline-response503.ts +6 -6
  50. package/models/link-lead-partner-request-dto.ts +16 -4
  51. package/models/policy-object-dto.ts +2 -2
  52. package/models/policy-premium-class.ts +2 -2
  53. package/models/update-lead-request-dto.ts +1 -1
  54. package/models/upload-account-documents-request-dto.ts +55 -0
  55. package/package.json +1 -1
@@ -36,18 +36,18 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
36
36
  * List all the invoices of a customer.
37
37
  * @summary List invoices of a customer
38
38
  * @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
39
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
39
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
40
40
  * @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
41
41
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
42
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
43
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
42
+ * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
44
43
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
45
44
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
45
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
46
46
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
47
47
  * @param {*} [options] Override http request option.
48
48
  * @throws {RequiredError}
49
49
  */
50
- listInvoices: async (customerCode: string, pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
50
+ listInvoices: async (customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
51
51
  // verify required parameter 'customerCode' is not null or undefined
52
52
  assertParamExists('listInvoices', 'customerCode', customerCode)
53
53
  const localVarPath = `/v1/customers/{customerCode}/invoices`
@@ -77,10 +77,6 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
77
77
  localVarQueryParameter['filter'] = filter;
78
78
  }
79
79
 
80
- if (filters !== undefined) {
81
- localVarQueryParameter['filters'] = filters;
82
- }
83
-
84
80
  if (search !== undefined) {
85
81
  localVarQueryParameter['search'] = search;
86
82
  }
@@ -93,6 +89,10 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
93
89
  localVarQueryParameter['expand'] = expand;
94
90
  }
95
91
 
92
+ if (filters !== undefined) {
93
+ localVarQueryParameter['filters'] = filters;
94
+ }
95
+
96
96
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
97
97
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
98
98
  }
@@ -122,19 +122,19 @@ export const InvoicesApiFp = function(configuration?: Configuration) {
122
122
  * List all the invoices of a customer.
123
123
  * @summary List invoices of a customer
124
124
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
125
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
125
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
126
126
  * @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.
127
127
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
128
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
129
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
128
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
130
129
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
131
130
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
131
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
132
132
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
133
133
  * @param {*} [options] Override http request option.
134
134
  * @throws {RequiredError}
135
135
  */
136
- async listInvoices(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListInvoicesResponseClass>> {
137
- const localVarAxiosArgs = await localVarAxiosParamCreator.listInvoices(customerCode, pageSize, pageToken, filter, filters, search, order, expand, authorization, options);
136
+ async listInvoices(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListInvoicesResponseClass>> {
137
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listInvoices(customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options);
138
138
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
139
139
  },
140
140
  }
@@ -151,19 +151,19 @@ export const InvoicesApiFactory = function (configuration?: Configuration, baseP
151
151
  * List all the invoices of a customer.
152
152
  * @summary List invoices of a customer
153
153
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
154
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
154
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
155
155
  * @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.
156
156
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
157
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
158
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
157
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
159
158
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
160
159
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
160
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
161
161
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
162
162
  * @param {*} [options] Override http request option.
163
163
  * @throws {RequiredError}
164
164
  */
165
- listInvoices(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: any): AxiosPromise<ListInvoicesResponseClass> {
166
- return localVarFp.listInvoices(customerCode, pageSize, pageToken, filter, filters, search, order, expand, authorization, options).then((request) => request(axios, basePath));
165
+ listInvoices(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, authorization?: string, options?: any): AxiosPromise<ListInvoicesResponseClass> {
166
+ return localVarFp.listInvoices(customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options).then((request) => request(axios, basePath));
167
167
  },
168
168
  };
169
169
  };
@@ -182,7 +182,7 @@ export interface InvoicesApiListInvoicesRequest {
182
182
  readonly customerCode: string
183
183
 
184
184
  /**
185
- * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
185
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
186
186
  * @type {any}
187
187
  * @memberof InvoicesApiListInvoices
188
188
  */
@@ -203,14 +203,7 @@ export interface InvoicesApiListInvoicesRequest {
203
203
  readonly filter?: any
204
204
 
205
205
  /**
206
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
207
- * @type {any}
208
- * @memberof InvoicesApiListInvoices
209
- */
210
- readonly filters?: any
211
-
212
- /**
213
- * Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
206
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
214
207
  * @type {any}
215
208
  * @memberof InvoicesApiListInvoices
216
209
  */
@@ -230,6 +223,13 @@ export interface InvoicesApiListInvoicesRequest {
230
223
  */
231
224
  readonly expand?: any
232
225
 
226
+ /**
227
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
228
+ * @type {any}
229
+ * @memberof InvoicesApiListInvoices
230
+ */
231
+ readonly filters?: any
232
+
233
233
  /**
234
234
  * Bearer Token: provided by the login endpoint under the name accessToken.
235
235
  * @type {string}
@@ -254,6 +254,6 @@ export class InvoicesApi extends BaseAPI {
254
254
  * @memberof InvoicesApi
255
255
  */
256
256
  public listInvoices(requestParameters: InvoicesApiListInvoicesRequest, options?: AxiosRequestConfig) {
257
- return InvoicesApiFp(this.configuration).listInvoices(requestParameters.customerCode, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.filters, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
257
+ return InvoicesApiFp(this.configuration).listInvoices(requestParameters.customerCode, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
258
258
  }
259
259
  }
package/api/leads-api.ts CHANGED
@@ -94,7 +94,7 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
94
94
  };
95
95
  },
96
96
  /**
97
- * 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.
97
+ * 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.
98
98
  * @summary Retrieve the lead
99
99
  * @param {string} code Unique identifier for the object.
100
100
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
@@ -152,17 +152,17 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
152
152
  * @summary List leads
153
153
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
154
154
  * @param {string} [authorization] Bearer Token
155
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
155
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
156
156
  * @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.
157
157
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
158
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
159
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
158
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
160
159
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
161
160
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
161
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
162
162
  * @param {*} [options] Override http request option.
163
163
  * @throws {RequiredError}
164
164
  */
165
- listLeads: async (customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
165
+ listLeads: async (customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
166
166
  // verify required parameter 'customerCode' is not null or undefined
167
167
  assertParamExists('listLeads', 'customerCode', customerCode)
168
168
  const localVarPath = `/v1/customers/{customerCode}/leads`
@@ -196,10 +196,6 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
196
196
  localVarQueryParameter['filter'] = filter;
197
197
  }
198
198
 
199
- if (filters !== undefined) {
200
- localVarQueryParameter['filters'] = filters;
201
- }
202
-
203
199
  if (search !== undefined) {
204
200
  localVarQueryParameter['search'] = search;
205
201
  }
@@ -212,6 +208,10 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
212
208
  localVarQueryParameter['expand'] = expand;
213
209
  }
214
210
 
211
+ if (filters !== undefined) {
212
+ localVarQueryParameter['filters'] = filters;
213
+ }
214
+
215
215
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
216
216
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
217
217
  }
@@ -306,7 +306,7 @@ export const LeadsApiFp = function(configuration?: Configuration) {
306
306
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
307
307
  },
308
308
  /**
309
- * 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.
309
+ * 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.
310
310
  * @summary Retrieve the lead
311
311
  * @param {string} code Unique identifier for the object.
312
312
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
@@ -324,18 +324,18 @@ export const LeadsApiFp = function(configuration?: Configuration) {
324
324
  * @summary List leads
325
325
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
326
326
  * @param {string} [authorization] Bearer Token
327
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
327
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
328
328
  * @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.
329
329
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
330
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
331
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
330
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
332
331
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
333
332
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
333
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
334
334
  * @param {*} [options] Override http request option.
335
335
  * @throws {RequiredError}
336
336
  */
337
- async listLeads(customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListLeadsResponseClass>> {
338
- const localVarAxiosArgs = await localVarAxiosParamCreator.listLeads(customerCode, authorization, pageSize, pageToken, filter, filters, search, order, expand, options);
337
+ async listLeads(customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListLeadsResponseClass>> {
338
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listLeads(customerCode, authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
339
339
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
340
340
  },
341
341
  /**
@@ -375,7 +375,7 @@ export const LeadsApiFactory = function (configuration?: Configuration, basePath
375
375
  return localVarFp.createLead(customerCode, createLeadRequestDto, authorization, options).then((request) => request(axios, basePath));
376
376
  },
377
377
  /**
378
- * 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.
378
+ * 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.
379
379
  * @summary Retrieve the lead
380
380
  * @param {string} code Unique identifier for the object.
381
381
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
@@ -392,18 +392,18 @@ export const LeadsApiFactory = function (configuration?: Configuration, basePath
392
392
  * @summary List leads
393
393
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
394
394
  * @param {string} [authorization] Bearer Token
395
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
395
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
396
396
  * @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.
397
397
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
398
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
399
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
398
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
400
399
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
401
400
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
401
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
402
402
  * @param {*} [options] Override http request option.
403
403
  * @throws {RequiredError}
404
404
  */
405
- listLeads(customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListLeadsResponseClass> {
406
- return localVarFp.listLeads(customerCode, authorization, pageSize, pageToken, filter, filters, search, order, expand, options).then((request) => request(axios, basePath));
405
+ listLeads(customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListLeadsResponseClass> {
406
+ return localVarFp.listLeads(customerCode, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
407
407
  },
408
408
  /**
409
409
  * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
@@ -505,7 +505,7 @@ export interface LeadsApiListLeadsRequest {
505
505
  readonly authorization?: string
506
506
 
507
507
  /**
508
- * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
508
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
509
509
  * @type {any}
510
510
  * @memberof LeadsApiListLeads
511
511
  */
@@ -526,14 +526,7 @@ export interface LeadsApiListLeadsRequest {
526
526
  readonly filter?: any
527
527
 
528
528
  /**
529
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
530
- * @type {any}
531
- * @memberof LeadsApiListLeads
532
- */
533
- readonly filters?: any
534
-
535
- /**
536
- * Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
529
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
537
530
  * @type {any}
538
531
  * @memberof LeadsApiListLeads
539
532
  */
@@ -552,6 +545,13 @@ export interface LeadsApiListLeadsRequest {
552
545
  * @memberof LeadsApiListLeads
553
546
  */
554
547
  readonly expand?: any
548
+
549
+ /**
550
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
551
+ * @type {any}
552
+ * @memberof LeadsApiListLeads
553
+ */
554
+ readonly filters?: any
555
555
  }
556
556
 
557
557
  /**
@@ -609,7 +609,7 @@ export class LeadsApi extends BaseAPI {
609
609
  }
610
610
 
611
611
  /**
612
- * 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.
612
+ * 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.
613
613
  * @summary Retrieve the lead
614
614
  * @param {LeadsApiGetLeadRequest} requestParameters Request parameters.
615
615
  * @param {*} [options] Override http request option.
@@ -629,7 +629,7 @@ export class LeadsApi extends BaseAPI {
629
629
  * @memberof LeadsApi
630
630
  */
631
631
  public listLeads(requestParameters: LeadsApiListLeadsRequest, options?: AxiosRequestConfig) {
632
- return LeadsApiFp(this.configuration).listLeads(requestParameters.customerCode, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.filters, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
632
+ return LeadsApiFp(this.configuration).listLeads(requestParameters.customerCode, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
633
633
  }
634
634
 
635
635
  /**
@@ -152,18 +152,18 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
152
152
  * List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
153
153
  * @summary List policies
154
154
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
155
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
155
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
156
156
  * @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.
157
157
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
158
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
159
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
158
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
160
159
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
161
160
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
161
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
162
162
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
163
163
  * @param {*} [options] Override http request option.
164
164
  * @throws {RequiredError}
165
165
  */
166
- listPolicies: async (customerCode: string, pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
166
+ listPolicies: async (customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
167
167
  // verify required parameter 'customerCode' is not null or undefined
168
168
  assertParamExists('listPolicies', 'customerCode', customerCode)
169
169
  const localVarPath = `/v1/customers/{customerCode}/policies`
@@ -193,10 +193,6 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
193
193
  localVarQueryParameter['filter'] = filter;
194
194
  }
195
195
 
196
- if (filters !== undefined) {
197
- localVarQueryParameter['filters'] = filters;
198
- }
199
-
200
196
  if (search !== undefined) {
201
197
  localVarQueryParameter['search'] = search;
202
198
  }
@@ -209,6 +205,10 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
209
205
  localVarQueryParameter['expand'] = expand;
210
206
  }
211
207
 
208
+ if (filters !== undefined) {
209
+ localVarQueryParameter['filters'] = filters;
210
+ }
211
+
212
212
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
213
213
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
214
214
  }
@@ -459,19 +459,19 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
459
459
  * List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
460
460
  * @summary List policies
461
461
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
462
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
462
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
463
463
  * @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.
464
464
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
465
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
466
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
465
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
467
466
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
468
467
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
468
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
469
469
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
470
470
  * @param {*} [options] Override http request option.
471
471
  * @throws {RequiredError}
472
472
  */
473
- async listPolicies(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPoliciesResponseClass>> {
474
- const localVarAxiosArgs = await localVarAxiosParamCreator.listPolicies(customerCode, pageSize, pageToken, filter, filters, search, order, expand, authorization, options);
473
+ async listPolicies(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPoliciesResponseClass>> {
474
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPolicies(customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options);
475
475
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
476
476
  },
477
477
  /**
@@ -568,19 +568,19 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
568
568
  * List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
569
569
  * @summary List policies
570
570
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
571
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
571
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
572
572
  * @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.
573
573
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
574
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
575
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
574
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
576
575
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
577
576
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
577
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
578
578
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
579
579
  * @param {*} [options] Override http request option.
580
580
  * @throws {RequiredError}
581
581
  */
582
- listPolicies(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: any): AxiosPromise<ListPoliciesResponseClass> {
583
- return localVarFp.listPolicies(customerCode, pageSize, pageToken, filter, filters, search, order, expand, authorization, options).then((request) => request(axios, basePath));
582
+ listPolicies(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, authorization?: string, options?: any): AxiosPromise<ListPoliciesResponseClass> {
583
+ return localVarFp.listPolicies(customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options).then((request) => request(axios, basePath));
584
584
  },
585
585
  /**
586
586
  * Request to update an existing policy by customer.
@@ -719,7 +719,7 @@ export interface PoliciesApiListPoliciesRequest {
719
719
  readonly customerCode: string
720
720
 
721
721
  /**
722
- * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
722
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
723
723
  * @type {any}
724
724
  * @memberof PoliciesApiListPolicies
725
725
  */
@@ -740,14 +740,7 @@ export interface PoliciesApiListPoliciesRequest {
740
740
  readonly filter?: any
741
741
 
742
742
  /**
743
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
744
- * @type {any}
745
- * @memberof PoliciesApiListPolicies
746
- */
747
- readonly filters?: any
748
-
749
- /**
750
- * Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
743
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
751
744
  * @type {any}
752
745
  * @memberof PoliciesApiListPolicies
753
746
  */
@@ -767,6 +760,13 @@ export interface PoliciesApiListPoliciesRequest {
767
760
  */
768
761
  readonly expand?: any
769
762
 
763
+ /**
764
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
765
+ * @type {any}
766
+ * @memberof PoliciesApiListPolicies
767
+ */
768
+ readonly filters?: any
769
+
770
770
  /**
771
771
  * Bearer Token: provided by the login endpoint under the name accessToken.
772
772
  * @type {string}
@@ -941,7 +941,7 @@ export class PoliciesApi extends BaseAPI {
941
941
  * @memberof PoliciesApi
942
942
  */
943
943
  public listPolicies(requestParameters: PoliciesApiListPoliciesRequest, options?: AxiosRequestConfig) {
944
- return PoliciesApiFp(this.configuration).listPolicies(requestParameters.customerCode, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.filters, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
944
+ return PoliciesApiFp(this.configuration).listPolicies(requestParameters.customerCode, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
945
945
  }
946
946
 
947
947
  /**