@emilgroup/customer-sdk-node 1.41.0 → 1.44.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 (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 +62 -62
  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 +40 -40
  20. package/dist/api/leads-api.js +48 -48
  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
@@ -150,28 +150,28 @@ var LeadsApiAxiosParamCreator = function (configuration) {
150
150
  });
151
151
  },
152
152
  /**
153
- * 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.
153
+ * 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.
154
154
  * @summary Retrieve the lead
155
- * @param {string} code Unique identifier for the object.
155
+ * @param {string} leadCode The unique identification code of the lead.
156
156
  * @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
157
157
  * @param {string} [authorization] Bearer Token
158
158
  * @param {string} [expand]
159
159
  * @param {*} [options] Override http request option.
160
160
  * @throws {RequiredError}
161
161
  */
162
- getLead: function (code, customerCode, authorization, expand, options) {
162
+ getLead: function (leadCode, customerCode, authorization, expand, options) {
163
163
  if (options === void 0) { options = {}; }
164
164
  return __awaiter(_this, void 0, void 0, function () {
165
165
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
166
166
  return __generator(this, function (_a) {
167
167
  switch (_a.label) {
168
168
  case 0:
169
- // verify required parameter 'code' is not null or undefined
170
- (0, common_1.assertParamExists)('getLead', 'code', code);
169
+ // verify required parameter 'leadCode' is not null or undefined
170
+ (0, common_1.assertParamExists)('getLead', 'leadCode', leadCode);
171
171
  // verify required parameter 'customerCode' is not null or undefined
172
172
  (0, common_1.assertParamExists)('getLead', 'customerCode', customerCode);
173
- localVarPath = "/v1/customers/{customerCode}/leads/{code}"
174
- .replace("{".concat("code", "}"), encodeURIComponent(String(code)))
173
+ localVarPath = "/v1/customers/{customerCode}/leads/{leadCode}"
174
+ .replace("{".concat("leadCode", "}"), encodeURIComponent(String(leadCode)))
175
175
  .replace("{".concat("customerCode", "}"), encodeURIComponent(String(customerCode)));
176
176
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
177
177
  if (configuration) {
@@ -210,17 +210,17 @@ var LeadsApiAxiosParamCreator = function (configuration) {
210
210
  * @summary List leads
211
211
  * @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
212
212
  * @param {string} [authorization] Bearer Token
213
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
213
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
214
214
  * @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.
215
215
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
216
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
217
- * @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.
216
+ * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
218
217
  * @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.
219
218
  * @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.
219
+ * @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.
220
220
  * @param {*} [options] Override http request option.
221
221
  * @throws {RequiredError}
222
222
  */
223
- listLeads: function (customerCode, authorization, pageSize, pageToken, filter, filters, search, order, expand, options) {
223
+ listLeads: function (customerCode, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
224
224
  if (options === void 0) { options = {}; }
225
225
  return __awaiter(_this, void 0, void 0, function () {
226
226
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -255,9 +255,6 @@ var LeadsApiAxiosParamCreator = function (configuration) {
255
255
  if (filter !== undefined) {
256
256
  localVarQueryParameter['filter'] = filter;
257
257
  }
258
- if (filters !== undefined) {
259
- localVarQueryParameter['filters'] = filters;
260
- }
261
258
  if (search !== undefined) {
262
259
  localVarQueryParameter['search'] = search;
263
260
  }
@@ -267,6 +264,9 @@ var LeadsApiAxiosParamCreator = function (configuration) {
267
264
  if (expand !== undefined) {
268
265
  localVarQueryParameter['expand'] = expand;
269
266
  }
267
+ if (filters !== undefined) {
268
+ localVarQueryParameter['filters'] = filters;
269
+ }
270
270
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
271
271
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
272
272
  }
@@ -284,28 +284,28 @@ var LeadsApiAxiosParamCreator = function (configuration) {
284
284
  /**
285
285
  * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
286
286
  * @summary Update the lead
287
- * @param {string} code Unique identifier for the object.
287
+ * @param {string} leadCode The unique identification code of the lead.
288
288
  * @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
289
289
  * @param {UpdateLeadRequestDto} updateLeadRequestDto
290
290
  * @param {string} [authorization] Bearer Token
291
291
  * @param {*} [options] Override http request option.
292
292
  * @throws {RequiredError}
293
293
  */
294
- updateLead: function (code, customerCode, updateLeadRequestDto, authorization, options) {
294
+ updateLead: function (leadCode, customerCode, updateLeadRequestDto, authorization, options) {
295
295
  if (options === void 0) { options = {}; }
296
296
  return __awaiter(_this, void 0, void 0, function () {
297
297
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
298
298
  return __generator(this, function (_a) {
299
299
  switch (_a.label) {
300
300
  case 0:
301
- // verify required parameter 'code' is not null or undefined
302
- (0, common_1.assertParamExists)('updateLead', 'code', code);
301
+ // verify required parameter 'leadCode' is not null or undefined
302
+ (0, common_1.assertParamExists)('updateLead', 'leadCode', leadCode);
303
303
  // verify required parameter 'customerCode' is not null or undefined
304
304
  (0, common_1.assertParamExists)('updateLead', 'customerCode', customerCode);
305
305
  // verify required parameter 'updateLeadRequestDto' is not null or undefined
306
306
  (0, common_1.assertParamExists)('updateLead', 'updateLeadRequestDto', updateLeadRequestDto);
307
- localVarPath = "/v1/customers/{customerCode}/leads/{code}"
308
- .replace("{".concat("code", "}"), encodeURIComponent(String(code)))
307
+ localVarPath = "/v1/customers/{customerCode}/leads/{leadCode}"
308
+ .replace("{".concat("leadCode", "}"), encodeURIComponent(String(leadCode)))
309
309
  .replace("{".concat("customerCode", "}"), encodeURIComponent(String(customerCode)));
310
310
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
311
311
  if (configuration) {
@@ -371,21 +371,21 @@ var LeadsApiFp = function (configuration) {
371
371
  });
372
372
  },
373
373
  /**
374
- * 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.
374
+ * 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.
375
375
  * @summary Retrieve the lead
376
- * @param {string} code Unique identifier for the object.
376
+ * @param {string} leadCode The unique identification code of the lead.
377
377
  * @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
378
378
  * @param {string} [authorization] Bearer Token
379
379
  * @param {string} [expand]
380
380
  * @param {*} [options] Override http request option.
381
381
  * @throws {RequiredError}
382
382
  */
383
- getLead: function (code, customerCode, authorization, expand, options) {
383
+ getLead: function (leadCode, customerCode, authorization, expand, options) {
384
384
  return __awaiter(this, void 0, void 0, function () {
385
385
  var localVarAxiosArgs;
386
386
  return __generator(this, function (_a) {
387
387
  switch (_a.label) {
388
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getLead(code, customerCode, authorization, expand, options)];
388
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getLead(leadCode, customerCode, authorization, expand, options)];
389
389
  case 1:
390
390
  localVarAxiosArgs = _a.sent();
391
391
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -398,22 +398,22 @@ var LeadsApiFp = function (configuration) {
398
398
  * @summary List leads
399
399
  * @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
400
400
  * @param {string} [authorization] Bearer Token
401
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
401
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
402
402
  * @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.
403
403
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
404
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
405
- * @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.
404
+ * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
406
405
  * @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.
407
406
  * @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.
407
+ * @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.
408
408
  * @param {*} [options] Override http request option.
409
409
  * @throws {RequiredError}
410
410
  */
411
- listLeads: function (customerCode, authorization, pageSize, pageToken, filter, filters, search, order, expand, options) {
411
+ listLeads: function (customerCode, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
412
412
  return __awaiter(this, void 0, void 0, function () {
413
413
  var localVarAxiosArgs;
414
414
  return __generator(this, function (_a) {
415
415
  switch (_a.label) {
416
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listLeads(customerCode, authorization, pageSize, pageToken, filter, filters, search, order, expand, options)];
416
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listLeads(customerCode, authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
417
417
  case 1:
418
418
  localVarAxiosArgs = _a.sent();
419
419
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -424,19 +424,19 @@ var LeadsApiFp = function (configuration) {
424
424
  /**
425
425
  * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
426
426
  * @summary Update the lead
427
- * @param {string} code Unique identifier for the object.
427
+ * @param {string} leadCode The unique identification code of the lead.
428
428
  * @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
429
429
  * @param {UpdateLeadRequestDto} updateLeadRequestDto
430
430
  * @param {string} [authorization] Bearer Token
431
431
  * @param {*} [options] Override http request option.
432
432
  * @throws {RequiredError}
433
433
  */
434
- updateLead: function (code, customerCode, updateLeadRequestDto, authorization, options) {
434
+ updateLead: function (leadCode, customerCode, updateLeadRequestDto, authorization, options) {
435
435
  return __awaiter(this, void 0, void 0, function () {
436
436
  var localVarAxiosArgs;
437
437
  return __generator(this, function (_a) {
438
438
  switch (_a.label) {
439
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateLead(code, customerCode, updateLeadRequestDto, authorization, options)];
439
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateLead(leadCode, customerCode, updateLeadRequestDto, authorization, options)];
440
440
  case 1:
441
441
  localVarAxiosArgs = _a.sent();
442
442
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -467,48 +467,48 @@ var LeadsApiFactory = function (configuration, basePath, axios) {
467
467
  return localVarFp.createLead(customerCode, createLeadRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
468
468
  },
469
469
  /**
470
- * 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.
470
+ * 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.
471
471
  * @summary Retrieve the lead
472
- * @param {string} code Unique identifier for the object.
472
+ * @param {string} leadCode The unique identification code of the lead.
473
473
  * @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
474
474
  * @param {string} [authorization] Bearer Token
475
475
  * @param {string} [expand]
476
476
  * @param {*} [options] Override http request option.
477
477
  * @throws {RequiredError}
478
478
  */
479
- getLead: function (code, customerCode, authorization, expand, options) {
480
- return localVarFp.getLead(code, customerCode, authorization, expand, options).then(function (request) { return request(axios, basePath); });
479
+ getLead: function (leadCode, customerCode, authorization, expand, options) {
480
+ return localVarFp.getLead(leadCode, customerCode, authorization, expand, options).then(function (request) { return request(axios, basePath); });
481
481
  },
482
482
  /**
483
483
  * 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.
484
484
  * @summary List leads
485
485
  * @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
486
486
  * @param {string} [authorization] Bearer Token
487
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
487
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
488
488
  * @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.
489
489
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
490
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
491
- * @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.
490
+ * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
492
491
  * @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.
493
492
  * @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.
493
+ * @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.
494
494
  * @param {*} [options] Override http request option.
495
495
  * @throws {RequiredError}
496
496
  */
497
- listLeads: function (customerCode, authorization, pageSize, pageToken, filter, filters, search, order, expand, options) {
498
- return localVarFp.listLeads(customerCode, authorization, pageSize, pageToken, filter, filters, search, order, expand, options).then(function (request) { return request(axios, basePath); });
497
+ listLeads: function (customerCode, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
498
+ return localVarFp.listLeads(customerCode, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
499
499
  },
500
500
  /**
501
501
  * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
502
502
  * @summary Update the lead
503
- * @param {string} code Unique identifier for the object.
503
+ * @param {string} leadCode The unique identification code of the lead.
504
504
  * @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
505
505
  * @param {UpdateLeadRequestDto} updateLeadRequestDto
506
506
  * @param {string} [authorization] Bearer Token
507
507
  * @param {*} [options] Override http request option.
508
508
  * @throws {RequiredError}
509
509
  */
510
- updateLead: function (code, customerCode, updateLeadRequestDto, authorization, options) {
511
- return localVarFp.updateLead(code, customerCode, updateLeadRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
510
+ updateLead: function (leadCode, customerCode, updateLeadRequestDto, authorization, options) {
511
+ return localVarFp.updateLead(leadCode, customerCode, updateLeadRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
512
512
  },
513
513
  };
514
514
  };
@@ -537,7 +537,7 @@ var LeadsApi = /** @class */ (function (_super) {
537
537
  return (0, exports.LeadsApiFp)(this.configuration).createLead(requestParameters.customerCode, requestParameters.createLeadRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
538
538
  };
539
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.
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
541
  * @summary Retrieve the lead
542
542
  * @param {LeadsApiGetLeadRequest} requestParameters Request parameters.
543
543
  * @param {*} [options] Override http request option.
@@ -546,7 +546,7 @@ var LeadsApi = /** @class */ (function (_super) {
546
546
  */
547
547
  LeadsApi.prototype.getLead = function (requestParameters, options) {
548
548
  var _this = this;
549
- return (0, exports.LeadsApiFp)(this.configuration).getLead(requestParameters.code, requestParameters.customerCode, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
549
+ return (0, exports.LeadsApiFp)(this.configuration).getLead(requestParameters.leadCode, requestParameters.customerCode, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
550
550
  };
551
551
  /**
552
552
  * 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.
@@ -558,7 +558,7 @@ var LeadsApi = /** @class */ (function (_super) {
558
558
  */
559
559
  LeadsApi.prototype.listLeads = function (requestParameters, options) {
560
560
  var _this = this;
561
- return (0, exports.LeadsApiFp)(this.configuration).listLeads(requestParameters.customerCode, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.filters, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
561
+ return (0, exports.LeadsApiFp)(this.configuration).listLeads(requestParameters.customerCode, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
562
562
  };
563
563
  /**
564
564
  * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
@@ -570,7 +570,7 @@ var LeadsApi = /** @class */ (function (_super) {
570
570
  */
571
571
  LeadsApi.prototype.updateLead = function (requestParameters, options) {
572
572
  var _this = this;
573
- return (0, exports.LeadsApiFp)(this.configuration).updateLead(requestParameters.code, requestParameters.customerCode, requestParameters.updateLeadRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
573
+ return (0, exports.LeadsApiFp)(this.configuration).updateLead(requestParameters.leadCode, requestParameters.customerCode, requestParameters.updateLeadRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
574
574
  };
575
575
  return LeadsApi;
576
576
  }(base_1.BaseAPI));
@@ -52,18 +52,18 @@ export declare const PoliciesApiAxiosParamCreator: (configuration?: Configuratio
52
52
  * List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
53
53
  * @summary List policies
54
54
  * @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
55
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
55
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
56
56
  * @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.
57
57
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
58
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
59
- * @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.
58
+ * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
60
59
  * @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.
61
60
  * @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.
61
+ * @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.
62
62
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
63
63
  * @param {*} [options] Override http request option.
64
64
  * @throws {RequiredError}
65
65
  */
66
- listPolicies: (customerCode: string, pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
66
+ listPolicies: (customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
67
67
  /**
68
68
  * Request to update an existing policy by customer.
69
69
  * @summary Request policy update
@@ -138,18 +138,18 @@ export declare const PoliciesApiFp: (configuration?: Configuration) => {
138
138
  * List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
139
139
  * @summary List policies
140
140
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
141
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
141
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
142
142
  * @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.
143
143
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
144
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
145
- * @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.
144
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
146
145
  * @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.
147
146
  * @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.
147
+ * @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.
148
148
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
149
149
  * @param {*} [options] Override http request option.
150
150
  * @throws {RequiredError}
151
151
  */
152
- 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>>;
152
+ 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>>;
153
153
  /**
154
154
  * Request to update an existing policy by customer.
155
155
  * @summary Request policy update
@@ -224,18 +224,18 @@ export declare const PoliciesApiFactory: (configuration?: Configuration, basePat
224
224
  * List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
225
225
  * @summary List policies
226
226
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
227
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
227
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
228
228
  * @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.
229
229
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
230
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
231
- * @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.
230
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
232
231
  * @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.
233
232
  * @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.
233
+ * @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.
234
234
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
235
235
  * @param {*} [options] Override http request option.
236
236
  * @throws {RequiredError}
237
237
  */
238
- listPolicies(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: any): AxiosPromise<ListPoliciesResponseClass>;
238
+ listPolicies(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, authorization?: string, options?: any): AxiosPromise<ListPoliciesResponseClass>;
239
239
  /**
240
240
  * Request to update an existing policy by customer.
241
241
  * @summary Request policy update
@@ -354,7 +354,7 @@ export interface PoliciesApiListPoliciesRequest {
354
354
  */
355
355
  readonly customerCode: string;
356
356
  /**
357
- * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
357
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
358
358
  * @type {any}
359
359
  * @memberof PoliciesApiListPolicies
360
360
  */
@@ -372,13 +372,7 @@ export interface PoliciesApiListPoliciesRequest {
372
372
  */
373
373
  readonly filter?: any;
374
374
  /**
375
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
376
- * @type {any}
377
- * @memberof PoliciesApiListPolicies
378
- */
379
- readonly filters?: any;
380
- /**
381
- * 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.
375
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
382
376
  * @type {any}
383
377
  * @memberof PoliciesApiListPolicies
384
378
  */
@@ -395,6 +389,12 @@ export interface PoliciesApiListPoliciesRequest {
395
389
  * @memberof PoliciesApiListPolicies
396
390
  */
397
391
  readonly expand?: any;
392
+ /**
393
+ * 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.
394
+ * @type {any}
395
+ * @memberof PoliciesApiListPolicies
396
+ */
397
+ readonly filters?: any;
398
398
  /**
399
399
  * Bearer Token: provided by the login endpoint under the name accessToken.
400
400
  * @type {string}
@@ -192,18 +192,18 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
192
192
  * List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
193
193
  * @summary List policies
194
194
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
195
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
195
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
196
196
  * @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.
197
197
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
198
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
199
- * @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.
198
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
200
199
  * @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.
201
200
  * @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.
201
+ * @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.
202
202
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
203
203
  * @param {*} [options] Override http request option.
204
204
  * @throws {RequiredError}
205
205
  */
206
- listPolicies: function (customerCode, pageSize, pageToken, filter, filters, search, order, expand, authorization, options) {
206
+ listPolicies: function (customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options) {
207
207
  if (options === void 0) { options = {}; }
208
208
  return __awaiter(_this, void 0, void 0, function () {
209
209
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -229,9 +229,6 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
229
229
  if (filter !== undefined) {
230
230
  localVarQueryParameter['filter'] = filter;
231
231
  }
232
- if (filters !== undefined) {
233
- localVarQueryParameter['filters'] = filters;
234
- }
235
232
  if (search !== undefined) {
236
233
  localVarQueryParameter['search'] = search;
237
234
  }
@@ -241,6 +238,9 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
241
238
  if (expand !== undefined) {
242
239
  localVarQueryParameter['expand'] = expand;
243
240
  }
241
+ if (filters !== undefined) {
242
+ localVarQueryParameter['filters'] = filters;
243
+ }
244
244
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
245
245
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
246
246
  }
@@ -493,23 +493,23 @@ var PoliciesApiFp = function (configuration) {
493
493
  * List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
494
494
  * @summary List policies
495
495
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
496
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
496
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
497
497
  * @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.
498
498
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
499
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
500
- * @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.
499
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
501
500
  * @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.
502
501
  * @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.
502
+ * @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.
503
503
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
504
504
  * @param {*} [options] Override http request option.
505
505
  * @throws {RequiredError}
506
506
  */
507
- listPolicies: function (customerCode, pageSize, pageToken, filter, filters, search, order, expand, authorization, options) {
507
+ listPolicies: function (customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options) {
508
508
  return __awaiter(this, void 0, void 0, function () {
509
509
  var localVarAxiosArgs;
510
510
  return __generator(this, function (_a) {
511
511
  switch (_a.label) {
512
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPolicies(customerCode, pageSize, pageToken, filter, filters, search, order, expand, authorization, options)];
512
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPolicies(customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options)];
513
513
  case 1:
514
514
  localVarAxiosArgs = _a.sent();
515
515
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -647,19 +647,19 @@ var PoliciesApiFactory = function (configuration, basePath, axios) {
647
647
  * List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
648
648
  * @summary List policies
649
649
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
650
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
650
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
651
651
  * @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.
652
652
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
653
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
654
- * @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.
653
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
655
654
  * @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.
656
655
  * @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.
656
+ * @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.
657
657
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
658
658
  * @param {*} [options] Override http request option.
659
659
  * @throws {RequiredError}
660
660
  */
661
- listPolicies: function (customerCode, pageSize, pageToken, filter, filters, search, order, expand, authorization, options) {
662
- return localVarFp.listPolicies(customerCode, pageSize, pageToken, filter, filters, search, order, expand, authorization, options).then(function (request) { return request(axios, basePath); });
661
+ listPolicies: function (customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options) {
662
+ return localVarFp.listPolicies(customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options).then(function (request) { return request(axios, basePath); });
663
663
  },
664
664
  /**
665
665
  * Request to update an existing policy by customer.
@@ -759,7 +759,7 @@ var PoliciesApi = /** @class */ (function (_super) {
759
759
  */
760
760
  PoliciesApi.prototype.listPolicies = function (requestParameters, options) {
761
761
  var _this = this;
762
- return (0, exports.PoliciesApiFp)(this.configuration).listPolicies(requestParameters.customerCode, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.filters, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
762
+ return (0, exports.PoliciesApiFp)(this.configuration).listPolicies(requestParameters.customerCode, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
763
763
  };
764
764
  /**
765
765
  * Request to update an existing policy by customer.