@emilgroup/claim-sdk 1.40.1-beta.7 → 1.41.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 (72) hide show
  1. package/.openapi-generator/FILES +0 -10
  2. package/README.md +2 -2
  3. package/api/claim-partner-roles-api.ts +6 -613
  4. package/api/claim-partners-api.ts +0 -504
  5. package/api/claim-regulations-api.ts +3 -624
  6. package/api/claim-statuses-api.ts +5 -728
  7. package/api/claims-api.ts +4 -828
  8. package/api/health-check-api.ts +0 -62
  9. package/api/settlements-api.ts +6 -613
  10. package/api.ts +0 -2
  11. package/dist/api/claim-partner-roles-api.d.ts +0 -338
  12. package/dist/api/claim-partner-roles-api.js +0 -505
  13. package/dist/api/claim-partners-api.d.ts +0 -283
  14. package/dist/api/claim-partners-api.js +0 -412
  15. package/dist/api/claim-regulations-api.d.ts +0 -347
  16. package/dist/api/claim-regulations-api.js +0 -511
  17. package/dist/api/claim-statuses-api.d.ts +0 -402
  18. package/dist/api/claim-statuses-api.js +11 -615
  19. package/dist/api/claims-api.d.ts +0 -457
  20. package/dist/api/claims-api.js +30 -726
  21. package/dist/api/health-check-api.d.ts +0 -29
  22. package/dist/api/health-check-api.js +0 -69
  23. package/dist/api/settlements-api.d.ts +0 -338
  24. package/dist/api/settlements-api.js +0 -505
  25. package/dist/api.d.ts +0 -1
  26. package/dist/api.js +0 -1
  27. package/dist/models/claim-class.d.ts +0 -6
  28. package/dist/models/index.d.ts +0 -9
  29. package/dist/models/index.js +0 -9
  30. package/dist/models/list-claim-partner-roles-response-class.d.ts +0 -12
  31. package/dist/models/list-claim-partners-response-class.d.ts +0 -12
  32. package/dist/models/list-claim-statuses-response-class.d.ts +1 -13
  33. package/dist/models/list-claims-response-class.d.ts +0 -12
  34. package/dist/models/list-regulations-response-class.d.ts +0 -12
  35. package/models/claim-class.ts +0 -6
  36. package/models/index.ts +0 -9
  37. package/models/list-claim-partner-roles-response-class.ts +0 -12
  38. package/models/list-claim-partners-response-class.ts +0 -12
  39. package/models/list-claim-statuses-response-class.ts +1 -13
  40. package/models/list-claims-response-class.ts +0 -12
  41. package/models/list-regulations-response-class.ts +0 -12
  42. package/package.json +1 -1
  43. package/api/claim-positions-api.ts +0 -1316
  44. package/dist/api/claim-positions-api.d.ts +0 -740
  45. package/dist/api/claim-positions-api.js +0 -1157
  46. package/dist/models/claim-position-class.d.ts +0 -121
  47. package/dist/models/claim-position-class.js +0 -15
  48. package/dist/models/coverage-class.d.ts +0 -72
  49. package/dist/models/coverage-class.js +0 -21
  50. package/dist/models/coverage-request-dto.d.ts +0 -41
  51. package/dist/models/coverage-request-dto.js +0 -20
  52. package/dist/models/create-claim-position-request-dto.d.ts +0 -73
  53. package/dist/models/create-claim-position-request-dto.js +0 -15
  54. package/dist/models/create-claim-position-response-class.d.ts +0 -25
  55. package/dist/models/create-claim-position-response-class.js +0 -15
  56. package/dist/models/get-claim-position-response-class.d.ts +0 -25
  57. package/dist/models/get-claim-position-response-class.js +0 -15
  58. package/dist/models/list-claim-positions-response-class.d.ts +0 -43
  59. package/dist/models/list-claim-positions-response-class.js +0 -15
  60. package/dist/models/update-claim-position-request-dto.d.ts +0 -73
  61. package/dist/models/update-claim-position-request-dto.js +0 -15
  62. package/dist/models/update-claim-position-response-class.d.ts +0 -25
  63. package/dist/models/update-claim-position-response-class.js +0 -15
  64. package/models/claim-position-class.ts +0 -127
  65. package/models/coverage-class.ts +0 -81
  66. package/models/coverage-request-dto.ts +0 -50
  67. package/models/create-claim-position-request-dto.ts +0 -79
  68. package/models/create-claim-position-response-class.ts +0 -31
  69. package/models/get-claim-position-response-class.ts +0 -31
  70. package/models/list-claim-positions-response-class.ts +0 -49
  71. package/models/update-claim-position-request-dto.ts +0 -79
  72. package/models/update-claim-position-response-class.ts +0 -31
@@ -141,55 +141,6 @@ var ClaimsApiAxiosParamCreator = function (configuration) {
141
141
  });
142
142
  });
143
143
  },
144
- /**
145
- * This will create a claim in the database **Required Permissions** \"claim-management.claims.create\"
146
- * @summary Create the claim
147
- * @param {CreateClaimRequestDto} createClaimRequestDto
148
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
149
- * @param {*} [options] Override http request option.
150
- * @throws {RequiredError}
151
- */
152
- createClaim1: function (createClaimRequestDto, authorization, options) {
153
- if (options === void 0) { options = {}; }
154
- return __awaiter(_this, void 0, void 0, function () {
155
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
156
- return __generator(this, function (_a) {
157
- switch (_a.label) {
158
- case 0:
159
- // verify required parameter 'createClaimRequestDto' is not null or undefined
160
- (0, common_1.assertParamExists)('createClaim1', 'createClaimRequestDto', createClaimRequestDto);
161
- localVarPath = "/claimservice/v1/claims";
162
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
163
- if (configuration) {
164
- baseOptions = configuration.baseOptions;
165
- baseAccessToken = configuration.accessToken;
166
- }
167
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
168
- localVarHeaderParameter = {};
169
- localVarQueryParameter = {};
170
- // authentication bearer required
171
- // http bearer authentication required
172
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
173
- case 1:
174
- // authentication bearer required
175
- // http bearer authentication required
176
- _a.sent();
177
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
178
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
179
- }
180
- localVarHeaderParameter['Content-Type'] = 'application/json';
181
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
182
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
183
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
184
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createClaimRequestDto, localVarRequestOptions, configuration);
185
- return [2 /*return*/, {
186
- url: (0, common_1.toPathString)(localVarUrlObj),
187
- options: localVarRequestOptions,
188
- }];
189
- }
190
- });
191
- });
192
- },
193
144
  /**
194
145
  * This will delete the requested claim from the database. **Required Permissions** \"claim-management.claims.delete\"
195
146
  * @summary Delete the claim
@@ -238,54 +189,6 @@ var ClaimsApiAxiosParamCreator = function (configuration) {
238
189
  });
239
190
  });
240
191
  },
241
- /**
242
- * This will delete the requested claim from the database. **Required Permissions** \"claim-management.claims.delete\"
243
- * @summary Delete the claim
244
- * @param {string} code
245
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
246
- * @param {*} [options] Override http request option.
247
- * @throws {RequiredError}
248
- */
249
- deleteClaim1: function (code, authorization, options) {
250
- if (options === void 0) { options = {}; }
251
- return __awaiter(_this, void 0, void 0, function () {
252
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
253
- return __generator(this, function (_a) {
254
- switch (_a.label) {
255
- case 0:
256
- // verify required parameter 'code' is not null or undefined
257
- (0, common_1.assertParamExists)('deleteClaim1', 'code', code);
258
- localVarPath = "/claimservice/v1/claims/{code}"
259
- .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
260
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
261
- if (configuration) {
262
- baseOptions = configuration.baseOptions;
263
- baseAccessToken = configuration.accessToken;
264
- }
265
- localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
266
- localVarHeaderParameter = {};
267
- localVarQueryParameter = {};
268
- // authentication bearer required
269
- // http bearer authentication required
270
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
271
- case 1:
272
- // authentication bearer required
273
- // http bearer authentication required
274
- _a.sent();
275
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
276
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
277
- }
278
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
279
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
280
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
281
- return [2 /*return*/, {
282
- url: (0, common_1.toPathString)(localVarUrlObj),
283
- options: localVarRequestOptions,
284
- }];
285
- }
286
- });
287
- });
288
- },
289
192
  /**
290
193
  * This will fetch the identified claim from the database by code **Required Permissions** \"claim-management.claims.view\"
291
194
  * @summary Retrieve the claim
@@ -334,54 +237,6 @@ var ClaimsApiAxiosParamCreator = function (configuration) {
334
237
  });
335
238
  });
336
239
  },
337
- /**
338
- * This will fetch the identified claim from the database by code **Required Permissions** \"claim-management.claims.view\"
339
- * @summary Retrieve the claim
340
- * @param {string} code
341
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
342
- * @param {*} [options] Override http request option.
343
- * @throws {RequiredError}
344
- */
345
- getClaim1: function (code, authorization, options) {
346
- if (options === void 0) { options = {}; }
347
- return __awaiter(_this, void 0, void 0, function () {
348
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
349
- return __generator(this, function (_a) {
350
- switch (_a.label) {
351
- case 0:
352
- // verify required parameter 'code' is not null or undefined
353
- (0, common_1.assertParamExists)('getClaim1', 'code', code);
354
- localVarPath = "/claimservice/v1/claims/{code}"
355
- .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
356
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
357
- if (configuration) {
358
- baseOptions = configuration.baseOptions;
359
- baseAccessToken = configuration.accessToken;
360
- }
361
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
362
- localVarHeaderParameter = {};
363
- localVarQueryParameter = {};
364
- // authentication bearer required
365
- // http bearer authentication required
366
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
367
- case 1:
368
- // authentication bearer required
369
- // http bearer authentication required
370
- _a.sent();
371
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
372
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
373
- }
374
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
375
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
376
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
377
- return [2 /*return*/, {
378
- url: (0, common_1.toPathString)(localVarUrlObj),
379
- options: localVarRequestOptions,
380
- }];
381
- }
382
- });
383
- });
384
- },
385
240
  /**
386
241
  * This endpoint will calculate and get the regulation summary for a claim. **Required Permissions** \"claim-management.claims.view\", \"claim-management.regulations.view\"
387
242
  * @summary Retrieve the claim regulation summary
@@ -430,54 +285,6 @@ var ClaimsApiAxiosParamCreator = function (configuration) {
430
285
  });
431
286
  });
432
287
  },
433
- /**
434
- * This endpoint will calculate and get the regulation summary for a claim. **Required Permissions** \"claim-management.claims.view\", \"claim-management.regulations.view\"
435
- * @summary Retrieve the claim regulation summary
436
- * @param {string} code Unique identifier for the object.
437
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
438
- * @param {*} [options] Override http request option.
439
- * @throws {RequiredError}
440
- */
441
- getClaimRegulationSummary1: function (code, authorization, options) {
442
- if (options === void 0) { options = {}; }
443
- return __awaiter(_this, void 0, void 0, function () {
444
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
445
- return __generator(this, function (_a) {
446
- switch (_a.label) {
447
- case 0:
448
- // verify required parameter 'code' is not null or undefined
449
- (0, common_1.assertParamExists)('getClaimRegulationSummary1', 'code', code);
450
- localVarPath = "/claimservice/v1/claims/{code}/regulations/summary"
451
- .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
452
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
453
- if (configuration) {
454
- baseOptions = configuration.baseOptions;
455
- baseAccessToken = configuration.accessToken;
456
- }
457
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
458
- localVarHeaderParameter = {};
459
- localVarQueryParameter = {};
460
- // authentication bearer required
461
- // http bearer authentication required
462
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
463
- case 1:
464
- // authentication bearer required
465
- // http bearer authentication required
466
- _a.sent();
467
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
468
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
469
- }
470
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
471
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
472
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
473
- return [2 /*return*/, {
474
- url: (0, common_1.toPathString)(localVarUrlObj),
475
- options: localVarRequestOptions,
476
- }];
477
- }
478
- });
479
- });
480
- },
481
288
  /**
482
289
  * Returns a list of claims you have previously created. The claims are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"claim-management.claims.view\"
483
290
  * @summary List claims
@@ -550,78 +357,6 @@ var ClaimsApiAxiosParamCreator = function (configuration) {
550
357
  });
551
358
  });
552
359
  },
553
- /**
554
- * Returns a list of claims you have previously created. The claims are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"claim-management.claims.view\"
555
- * @summary List claims
556
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
557
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
558
- * @param {string} [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.
559
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: policyNumber, productId, accountCode, insuredObjectId, policyCode</i>
560
- * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, policyCode, accountCode, productName, claimNumber, policyNumber, damageDate, notificationDate, description, status</i>
561
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, accountCode, status, claimNumber, policyNumber, damageDate, notificationDate, description, createdAt, updatedAt</i>
562
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: partners<i>
563
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: policyNumber, productId, accountCode, insuredObjectId, policyCode</i>
564
- * @param {*} [options] Override http request option.
565
- * @throws {RequiredError}
566
- */
567
- listClaims1: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
568
- if (options === void 0) { options = {}; }
569
- return __awaiter(_this, void 0, void 0, function () {
570
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
571
- return __generator(this, function (_a) {
572
- switch (_a.label) {
573
- case 0:
574
- localVarPath = "/claimservice/v1/claims";
575
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
576
- if (configuration) {
577
- baseOptions = configuration.baseOptions;
578
- baseAccessToken = configuration.accessToken;
579
- }
580
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
581
- localVarHeaderParameter = {};
582
- localVarQueryParameter = {};
583
- // authentication bearer required
584
- // http bearer authentication required
585
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
586
- case 1:
587
- // authentication bearer required
588
- // http bearer authentication required
589
- _a.sent();
590
- if (pageSize !== undefined) {
591
- localVarQueryParameter['pageSize'] = pageSize;
592
- }
593
- if (pageToken !== undefined) {
594
- localVarQueryParameter['pageToken'] = pageToken;
595
- }
596
- if (filter !== undefined) {
597
- localVarQueryParameter['filter'] = filter;
598
- }
599
- if (search !== undefined) {
600
- localVarQueryParameter['search'] = search;
601
- }
602
- if (order !== undefined) {
603
- localVarQueryParameter['order'] = order;
604
- }
605
- if (expand !== undefined) {
606
- localVarQueryParameter['expand'] = expand;
607
- }
608
- if (filters !== undefined) {
609
- localVarQueryParameter['filters'] = filters;
610
- }
611
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
612
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
613
- }
614
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
615
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
616
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
617
- return [2 /*return*/, {
618
- url: (0, common_1.toPathString)(localVarUrlObj),
619
- options: localVarRequestOptions,
620
- }];
621
- }
622
- });
623
- });
624
- },
625
360
  /**
626
361
  * Updates the identified claim by setting the values of the provided parameters. Any parameters not provided will be left unchanged. **Required Permissions** \"claim-management.claims.update\"
627
362
  * @summary Patch the claim
@@ -675,59 +410,6 @@ var ClaimsApiAxiosParamCreator = function (configuration) {
675
410
  });
676
411
  });
677
412
  },
678
- /**
679
- * Updates the identified claim by setting the values of the provided parameters. Any parameters not provided will be left unchanged. **Required Permissions** \"claim-management.claims.update\"
680
- * @summary Patch the claim
681
- * @param {string} code
682
- * @param {PatchClaimRequestDto} patchClaimRequestDto
683
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
684
- * @param {*} [options] Override http request option.
685
- * @throws {RequiredError}
686
- */
687
- patchClaim1: function (code, patchClaimRequestDto, authorization, options) {
688
- if (options === void 0) { options = {}; }
689
- return __awaiter(_this, void 0, void 0, function () {
690
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
691
- return __generator(this, function (_a) {
692
- switch (_a.label) {
693
- case 0:
694
- // verify required parameter 'code' is not null or undefined
695
- (0, common_1.assertParamExists)('patchClaim1', 'code', code);
696
- // verify required parameter 'patchClaimRequestDto' is not null or undefined
697
- (0, common_1.assertParamExists)('patchClaim1', 'patchClaimRequestDto', patchClaimRequestDto);
698
- localVarPath = "/claimservice/v1/claims/{code}"
699
- .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
700
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
701
- if (configuration) {
702
- baseOptions = configuration.baseOptions;
703
- baseAccessToken = configuration.accessToken;
704
- }
705
- localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
706
- localVarHeaderParameter = {};
707
- localVarQueryParameter = {};
708
- // authentication bearer required
709
- // http bearer authentication required
710
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
711
- case 1:
712
- // authentication bearer required
713
- // http bearer authentication required
714
- _a.sent();
715
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
716
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
717
- }
718
- localVarHeaderParameter['Content-Type'] = 'application/json';
719
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
720
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
721
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
722
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchClaimRequestDto, localVarRequestOptions, configuration);
723
- return [2 /*return*/, {
724
- url: (0, common_1.toPathString)(localVarUrlObj),
725
- options: localVarRequestOptions,
726
- }];
727
- }
728
- });
729
- });
730
- },
731
413
  /**
732
414
  * This will update the identified claim in the database **Required Permissions** \"claim-management.claims.update\"
733
415
  * @summary Update the claim
@@ -768,159 +450,43 @@ var ClaimsApiAxiosParamCreator = function (configuration) {
768
450
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
769
451
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
770
452
  }
771
- localVarHeaderParameter['Content-Type'] = 'application/json';
772
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
773
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
774
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
775
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClaimRequestDto, localVarRequestOptions, configuration);
776
- return [2 /*return*/, {
777
- url: (0, common_1.toPathString)(localVarUrlObj),
778
- options: localVarRequestOptions,
779
- }];
780
- }
781
- });
782
- });
783
- },
784
- /**
785
- * This will update the identified claim in the database **Required Permissions** \"claim-management.claims.update\"
786
- * @summary Update the claim
787
- * @param {string} code
788
- * @param {UpdateClaimRequestDto} updateClaimRequestDto
789
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
790
- * @param {*} [options] Override http request option.
791
- * @throws {RequiredError}
792
- */
793
- updateClaim1: function (code, updateClaimRequestDto, authorization, options) {
794
- if (options === void 0) { options = {}; }
795
- return __awaiter(_this, void 0, void 0, function () {
796
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
797
- return __generator(this, function (_a) {
798
- switch (_a.label) {
799
- case 0:
800
- // verify required parameter 'code' is not null or undefined
801
- (0, common_1.assertParamExists)('updateClaim1', 'code', code);
802
- // verify required parameter 'updateClaimRequestDto' is not null or undefined
803
- (0, common_1.assertParamExists)('updateClaim1', 'updateClaimRequestDto', updateClaimRequestDto);
804
- localVarPath = "/claimservice/v1/claims/{code}"
805
- .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
806
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
807
- if (configuration) {
808
- baseOptions = configuration.baseOptions;
809
- baseAccessToken = configuration.accessToken;
810
- }
811
- localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
812
- localVarHeaderParameter = {};
813
- localVarQueryParameter = {};
814
- // authentication bearer required
815
- // http bearer authentication required
816
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
817
- case 1:
818
- // authentication bearer required
819
- // http bearer authentication required
820
- _a.sent();
821
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
822
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
823
- }
824
- localVarHeaderParameter['Content-Type'] = 'application/json';
825
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
826
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
827
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
828
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClaimRequestDto, localVarRequestOptions, configuration);
829
- return [2 /*return*/, {
830
- url: (0, common_1.toPathString)(localVarUrlObj),
831
- options: localVarRequestOptions,
832
- }];
833
- }
834
- });
835
- });
836
- },
837
- };
838
- };
839
- exports.ClaimsApiAxiosParamCreator = ClaimsApiAxiosParamCreator;
840
- /**
841
- * ClaimsApi - functional programming interface
842
- * @export
843
- */
844
- var ClaimsApiFp = function (configuration) {
845
- var localVarAxiosParamCreator = (0, exports.ClaimsApiAxiosParamCreator)(configuration);
846
- return {
847
- /**
848
- * This will create a claim in the database **Required Permissions** \"claim-management.claims.create\"
849
- * @summary Create the claim
850
- * @param {CreateClaimRequestDto} createClaimRequestDto
851
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
852
- * @param {*} [options] Override http request option.
853
- * @throws {RequiredError}
854
- */
855
- createClaim: function (createClaimRequestDto, authorization, options) {
856
- return __awaiter(this, void 0, void 0, function () {
857
- var localVarAxiosArgs;
858
- return __generator(this, function (_a) {
859
- switch (_a.label) {
860
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.createClaim(createClaimRequestDto, authorization, options)];
861
- case 1:
862
- localVarAxiosArgs = _a.sent();
863
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
864
- }
865
- });
866
- });
867
- },
868
- /**
869
- * This will create a claim in the database **Required Permissions** \"claim-management.claims.create\"
870
- * @summary Create the claim
871
- * @param {CreateClaimRequestDto} createClaimRequestDto
872
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
873
- * @param {*} [options] Override http request option.
874
- * @throws {RequiredError}
875
- */
876
- createClaim1: function (createClaimRequestDto, authorization, options) {
877
- return __awaiter(this, void 0, void 0, function () {
878
- var localVarAxiosArgs;
879
- return __generator(this, function (_a) {
880
- switch (_a.label) {
881
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.createClaim1(createClaimRequestDto, authorization, options)];
882
- case 1:
883
- localVarAxiosArgs = _a.sent();
884
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
885
- }
886
- });
887
- });
888
- },
889
- /**
890
- * This will delete the requested claim from the database. **Required Permissions** \"claim-management.claims.delete\"
891
- * @summary Delete the claim
892
- * @param {string} code
893
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
894
- * @param {*} [options] Override http request option.
895
- * @throws {RequiredError}
896
- */
897
- deleteClaim: function (code, authorization, options) {
898
- return __awaiter(this, void 0, void 0, function () {
899
- var localVarAxiosArgs;
900
- return __generator(this, function (_a) {
901
- switch (_a.label) {
902
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteClaim(code, authorization, options)];
903
- case 1:
904
- localVarAxiosArgs = _a.sent();
905
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
453
+ localVarHeaderParameter['Content-Type'] = 'application/json';
454
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
455
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
456
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
457
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClaimRequestDto, localVarRequestOptions, configuration);
458
+ return [2 /*return*/, {
459
+ url: (0, common_1.toPathString)(localVarUrlObj),
460
+ options: localVarRequestOptions,
461
+ }];
906
462
  }
907
463
  });
908
464
  });
909
465
  },
466
+ };
467
+ };
468
+ exports.ClaimsApiAxiosParamCreator = ClaimsApiAxiosParamCreator;
469
+ /**
470
+ * ClaimsApi - functional programming interface
471
+ * @export
472
+ */
473
+ var ClaimsApiFp = function (configuration) {
474
+ var localVarAxiosParamCreator = (0, exports.ClaimsApiAxiosParamCreator)(configuration);
475
+ return {
910
476
  /**
911
- * This will delete the requested claim from the database. **Required Permissions** \"claim-management.claims.delete\"
912
- * @summary Delete the claim
913
- * @param {string} code
477
+ * This will create a claim in the database **Required Permissions** \"claim-management.claims.create\"
478
+ * @summary Create the claim
479
+ * @param {CreateClaimRequestDto} createClaimRequestDto
914
480
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
915
481
  * @param {*} [options] Override http request option.
916
482
  * @throws {RequiredError}
917
483
  */
918
- deleteClaim1: function (code, authorization, options) {
484
+ createClaim: function (createClaimRequestDto, authorization, options) {
919
485
  return __awaiter(this, void 0, void 0, function () {
920
486
  var localVarAxiosArgs;
921
487
  return __generator(this, function (_a) {
922
488
  switch (_a.label) {
923
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteClaim1(code, authorization, options)];
489
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createClaim(createClaimRequestDto, authorization, options)];
924
490
  case 1:
925
491
  localVarAxiosArgs = _a.sent();
926
492
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -929,19 +495,19 @@ var ClaimsApiFp = function (configuration) {
929
495
  });
930
496
  },
931
497
  /**
932
- * This will fetch the identified claim from the database by code **Required Permissions** \"claim-management.claims.view\"
933
- * @summary Retrieve the claim
498
+ * This will delete the requested claim from the database. **Required Permissions** \"claim-management.claims.delete\"
499
+ * @summary Delete the claim
934
500
  * @param {string} code
935
501
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
936
502
  * @param {*} [options] Override http request option.
937
503
  * @throws {RequiredError}
938
504
  */
939
- getClaim: function (code, authorization, options) {
505
+ deleteClaim: function (code, authorization, options) {
940
506
  return __awaiter(this, void 0, void 0, function () {
941
507
  var localVarAxiosArgs;
942
508
  return __generator(this, function (_a) {
943
509
  switch (_a.label) {
944
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getClaim(code, authorization, options)];
510
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteClaim(code, authorization, options)];
945
511
  case 1:
946
512
  localVarAxiosArgs = _a.sent();
947
513
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -957,12 +523,12 @@ var ClaimsApiFp = function (configuration) {
957
523
  * @param {*} [options] Override http request option.
958
524
  * @throws {RequiredError}
959
525
  */
960
- getClaim1: function (code, authorization, options) {
526
+ getClaim: function (code, authorization, options) {
961
527
  return __awaiter(this, void 0, void 0, function () {
962
528
  var localVarAxiosArgs;
963
529
  return __generator(this, function (_a) {
964
530
  switch (_a.label) {
965
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getClaim1(code, authorization, options)];
531
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getClaim(code, authorization, options)];
966
532
  case 1:
967
533
  localVarAxiosArgs = _a.sent();
968
534
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -991,27 +557,6 @@ var ClaimsApiFp = function (configuration) {
991
557
  });
992
558
  });
993
559
  },
994
- /**
995
- * This endpoint will calculate and get the regulation summary for a claim. **Required Permissions** \"claim-management.claims.view\", \"claim-management.regulations.view\"
996
- * @summary Retrieve the claim regulation summary
997
- * @param {string} code Unique identifier for the object.
998
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
999
- * @param {*} [options] Override http request option.
1000
- * @throws {RequiredError}
1001
- */
1002
- getClaimRegulationSummary1: function (code, authorization, options) {
1003
- return __awaiter(this, void 0, void 0, function () {
1004
- var localVarAxiosArgs;
1005
- return __generator(this, function (_a) {
1006
- switch (_a.label) {
1007
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getClaimRegulationSummary1(code, authorization, options)];
1008
- case 1:
1009
- localVarAxiosArgs = _a.sent();
1010
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1011
- }
1012
- });
1013
- });
1014
- },
1015
560
  /**
1016
561
  * Returns a list of claims you have previously created. The claims are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"claim-management.claims.view\"
1017
562
  * @summary List claims
@@ -1039,33 +584,6 @@ var ClaimsApiFp = function (configuration) {
1039
584
  });
1040
585
  });
1041
586
  },
1042
- /**
1043
- * Returns a list of claims you have previously created. The claims are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"claim-management.claims.view\"
1044
- * @summary List claims
1045
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1046
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1047
- * @param {string} [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.
1048
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: policyNumber, productId, accountCode, insuredObjectId, policyCode</i>
1049
- * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, policyCode, accountCode, productName, claimNumber, policyNumber, damageDate, notificationDate, description, status</i>
1050
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, accountCode, status, claimNumber, policyNumber, damageDate, notificationDate, description, createdAt, updatedAt</i>
1051
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: partners<i>
1052
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: policyNumber, productId, accountCode, insuredObjectId, policyCode</i>
1053
- * @param {*} [options] Override http request option.
1054
- * @throws {RequiredError}
1055
- */
1056
- listClaims1: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
1057
- return __awaiter(this, void 0, void 0, function () {
1058
- var localVarAxiosArgs;
1059
- return __generator(this, function (_a) {
1060
- switch (_a.label) {
1061
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listClaims1(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
1062
- case 1:
1063
- localVarAxiosArgs = _a.sent();
1064
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1065
- }
1066
- });
1067
- });
1068
- },
1069
587
  /**
1070
588
  * Updates the identified claim by setting the values of the provided parameters. Any parameters not provided will be left unchanged. **Required Permissions** \"claim-management.claims.update\"
1071
589
  * @summary Patch the claim
@@ -1088,28 +606,6 @@ var ClaimsApiFp = function (configuration) {
1088
606
  });
1089
607
  });
1090
608
  },
1091
- /**
1092
- * Updates the identified claim by setting the values of the provided parameters. Any parameters not provided will be left unchanged. **Required Permissions** \"claim-management.claims.update\"
1093
- * @summary Patch the claim
1094
- * @param {string} code
1095
- * @param {PatchClaimRequestDto} patchClaimRequestDto
1096
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1097
- * @param {*} [options] Override http request option.
1098
- * @throws {RequiredError}
1099
- */
1100
- patchClaim1: function (code, patchClaimRequestDto, authorization, options) {
1101
- return __awaiter(this, void 0, void 0, function () {
1102
- var localVarAxiosArgs;
1103
- return __generator(this, function (_a) {
1104
- switch (_a.label) {
1105
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchClaim1(code, patchClaimRequestDto, authorization, options)];
1106
- case 1:
1107
- localVarAxiosArgs = _a.sent();
1108
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1109
- }
1110
- });
1111
- });
1112
- },
1113
609
  /**
1114
610
  * This will update the identified claim in the database **Required Permissions** \"claim-management.claims.update\"
1115
611
  * @summary Update the claim
@@ -1132,28 +628,6 @@ var ClaimsApiFp = function (configuration) {
1132
628
  });
1133
629
  });
1134
630
  },
1135
- /**
1136
- * This will update the identified claim in the database **Required Permissions** \"claim-management.claims.update\"
1137
- * @summary Update the claim
1138
- * @param {string} code
1139
- * @param {UpdateClaimRequestDto} updateClaimRequestDto
1140
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1141
- * @param {*} [options] Override http request option.
1142
- * @throws {RequiredError}
1143
- */
1144
- updateClaim1: function (code, updateClaimRequestDto, authorization, options) {
1145
- return __awaiter(this, void 0, void 0, function () {
1146
- var localVarAxiosArgs;
1147
- return __generator(this, function (_a) {
1148
- switch (_a.label) {
1149
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateClaim1(code, updateClaimRequestDto, authorization, options)];
1150
- case 1:
1151
- localVarAxiosArgs = _a.sent();
1152
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1153
- }
1154
- });
1155
- });
1156
- },
1157
631
  };
1158
632
  };
1159
633
  exports.ClaimsApiFp = ClaimsApiFp;
@@ -1175,17 +649,6 @@ var ClaimsApiFactory = function (configuration, basePath, axios) {
1175
649
  createClaim: function (createClaimRequestDto, authorization, options) {
1176
650
  return localVarFp.createClaim(createClaimRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1177
651
  },
1178
- /**
1179
- * This will create a claim in the database **Required Permissions** \"claim-management.claims.create\"
1180
- * @summary Create the claim
1181
- * @param {CreateClaimRequestDto} createClaimRequestDto
1182
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1183
- * @param {*} [options] Override http request option.
1184
- * @throws {RequiredError}
1185
- */
1186
- createClaim1: function (createClaimRequestDto, authorization, options) {
1187
- return localVarFp.createClaim1(createClaimRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1188
- },
1189
652
  /**
1190
653
  * This will delete the requested claim from the database. **Required Permissions** \"claim-management.claims.delete\"
1191
654
  * @summary Delete the claim
@@ -1197,17 +660,6 @@ var ClaimsApiFactory = function (configuration, basePath, axios) {
1197
660
  deleteClaim: function (code, authorization, options) {
1198
661
  return localVarFp.deleteClaim(code, authorization, options).then(function (request) { return request(axios, basePath); });
1199
662
  },
1200
- /**
1201
- * This will delete the requested claim from the database. **Required Permissions** \"claim-management.claims.delete\"
1202
- * @summary Delete the claim
1203
- * @param {string} code
1204
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1205
- * @param {*} [options] Override http request option.
1206
- * @throws {RequiredError}
1207
- */
1208
- deleteClaim1: function (code, authorization, options) {
1209
- return localVarFp.deleteClaim1(code, authorization, options).then(function (request) { return request(axios, basePath); });
1210
- },
1211
663
  /**
1212
664
  * This will fetch the identified claim from the database by code **Required Permissions** \"claim-management.claims.view\"
1213
665
  * @summary Retrieve the claim
@@ -1219,17 +671,6 @@ var ClaimsApiFactory = function (configuration, basePath, axios) {
1219
671
  getClaim: function (code, authorization, options) {
1220
672
  return localVarFp.getClaim(code, authorization, options).then(function (request) { return request(axios, basePath); });
1221
673
  },
1222
- /**
1223
- * This will fetch the identified claim from the database by code **Required Permissions** \"claim-management.claims.view\"
1224
- * @summary Retrieve the claim
1225
- * @param {string} code
1226
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1227
- * @param {*} [options] Override http request option.
1228
- * @throws {RequiredError}
1229
- */
1230
- getClaim1: function (code, authorization, options) {
1231
- return localVarFp.getClaim1(code, authorization, options).then(function (request) { return request(axios, basePath); });
1232
- },
1233
674
  /**
1234
675
  * This endpoint will calculate and get the regulation summary for a claim. **Required Permissions** \"claim-management.claims.view\", \"claim-management.regulations.view\"
1235
676
  * @summary Retrieve the claim regulation summary
@@ -1241,17 +682,6 @@ var ClaimsApiFactory = function (configuration, basePath, axios) {
1241
682
  getClaimRegulationSummary: function (code, authorization, options) {
1242
683
  return localVarFp.getClaimRegulationSummary(code, authorization, options).then(function (request) { return request(axios, basePath); });
1243
684
  },
1244
- /**
1245
- * This endpoint will calculate and get the regulation summary for a claim. **Required Permissions** \"claim-management.claims.view\", \"claim-management.regulations.view\"
1246
- * @summary Retrieve the claim regulation summary
1247
- * @param {string} code Unique identifier for the object.
1248
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1249
- * @param {*} [options] Override http request option.
1250
- * @throws {RequiredError}
1251
- */
1252
- getClaimRegulationSummary1: function (code, authorization, options) {
1253
- return localVarFp.getClaimRegulationSummary1(code, authorization, options).then(function (request) { return request(axios, basePath); });
1254
- },
1255
685
  /**
1256
686
  * Returns a list of claims you have previously created. The claims are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"claim-management.claims.view\"
1257
687
  * @summary List claims
@@ -1269,23 +699,6 @@ var ClaimsApiFactory = function (configuration, basePath, axios) {
1269
699
  listClaims: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
1270
700
  return localVarFp.listClaims(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
1271
701
  },
1272
- /**
1273
- * Returns a list of claims you have previously created. The claims are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"claim-management.claims.view\"
1274
- * @summary List claims
1275
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1276
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1277
- * @param {string} [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.
1278
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: policyNumber, productId, accountCode, insuredObjectId, policyCode</i>
1279
- * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, policyCode, accountCode, productName, claimNumber, policyNumber, damageDate, notificationDate, description, status</i>
1280
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, accountCode, status, claimNumber, policyNumber, damageDate, notificationDate, description, createdAt, updatedAt</i>
1281
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: partners<i>
1282
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: policyNumber, productId, accountCode, insuredObjectId, policyCode</i>
1283
- * @param {*} [options] Override http request option.
1284
- * @throws {RequiredError}
1285
- */
1286
- listClaims1: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
1287
- return localVarFp.listClaims1(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
1288
- },
1289
702
  /**
1290
703
  * Updates the identified claim by setting the values of the provided parameters. Any parameters not provided will be left unchanged. **Required Permissions** \"claim-management.claims.update\"
1291
704
  * @summary Patch the claim
@@ -1298,18 +711,6 @@ var ClaimsApiFactory = function (configuration, basePath, axios) {
1298
711
  patchClaim: function (code, patchClaimRequestDto, authorization, options) {
1299
712
  return localVarFp.patchClaim(code, patchClaimRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1300
713
  },
1301
- /**
1302
- * Updates the identified claim by setting the values of the provided parameters. Any parameters not provided will be left unchanged. **Required Permissions** \"claim-management.claims.update\"
1303
- * @summary Patch the claim
1304
- * @param {string} code
1305
- * @param {PatchClaimRequestDto} patchClaimRequestDto
1306
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1307
- * @param {*} [options] Override http request option.
1308
- * @throws {RequiredError}
1309
- */
1310
- patchClaim1: function (code, patchClaimRequestDto, authorization, options) {
1311
- return localVarFp.patchClaim1(code, patchClaimRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1312
- },
1313
714
  /**
1314
715
  * This will update the identified claim in the database **Required Permissions** \"claim-management.claims.update\"
1315
716
  * @summary Update the claim
@@ -1322,18 +723,6 @@ var ClaimsApiFactory = function (configuration, basePath, axios) {
1322
723
  updateClaim: function (code, updateClaimRequestDto, authorization, options) {
1323
724
  return localVarFp.updateClaim(code, updateClaimRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1324
725
  },
1325
- /**
1326
- * This will update the identified claim in the database **Required Permissions** \"claim-management.claims.update\"
1327
- * @summary Update the claim
1328
- * @param {string} code
1329
- * @param {UpdateClaimRequestDto} updateClaimRequestDto
1330
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1331
- * @param {*} [options] Override http request option.
1332
- * @throws {RequiredError}
1333
- */
1334
- updateClaim1: function (code, updateClaimRequestDto, authorization, options) {
1335
- return localVarFp.updateClaim1(code, updateClaimRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1336
- },
1337
726
  };
1338
727
  };
1339
728
  exports.ClaimsApiFactory = ClaimsApiFactory;
@@ -1360,18 +749,6 @@ var ClaimsApi = /** @class */ (function (_super) {
1360
749
  var _this = this;
1361
750
  return (0, exports.ClaimsApiFp)(this.configuration).createClaim(requestParameters.createClaimRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1362
751
  };
1363
- /**
1364
- * This will create a claim in the database **Required Permissions** \"claim-management.claims.create\"
1365
- * @summary Create the claim
1366
- * @param {ClaimsApiCreateClaim1Request} requestParameters Request parameters.
1367
- * @param {*} [options] Override http request option.
1368
- * @throws {RequiredError}
1369
- * @memberof ClaimsApi
1370
- */
1371
- ClaimsApi.prototype.createClaim1 = function (requestParameters, options) {
1372
- var _this = this;
1373
- return (0, exports.ClaimsApiFp)(this.configuration).createClaim1(requestParameters.createClaimRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1374
- };
1375
752
  /**
1376
753
  * This will delete the requested claim from the database. **Required Permissions** \"claim-management.claims.delete\"
1377
754
  * @summary Delete the claim
@@ -1384,18 +761,6 @@ var ClaimsApi = /** @class */ (function (_super) {
1384
761
  var _this = this;
1385
762
  return (0, exports.ClaimsApiFp)(this.configuration).deleteClaim(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1386
763
  };
1387
- /**
1388
- * This will delete the requested claim from the database. **Required Permissions** \"claim-management.claims.delete\"
1389
- * @summary Delete the claim
1390
- * @param {ClaimsApiDeleteClaim1Request} requestParameters Request parameters.
1391
- * @param {*} [options] Override http request option.
1392
- * @throws {RequiredError}
1393
- * @memberof ClaimsApi
1394
- */
1395
- ClaimsApi.prototype.deleteClaim1 = function (requestParameters, options) {
1396
- var _this = this;
1397
- return (0, exports.ClaimsApiFp)(this.configuration).deleteClaim1(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1398
- };
1399
764
  /**
1400
765
  * This will fetch the identified claim from the database by code **Required Permissions** \"claim-management.claims.view\"
1401
766
  * @summary Retrieve the claim
@@ -1408,18 +773,6 @@ var ClaimsApi = /** @class */ (function (_super) {
1408
773
  var _this = this;
1409
774
  return (0, exports.ClaimsApiFp)(this.configuration).getClaim(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1410
775
  };
1411
- /**
1412
- * This will fetch the identified claim from the database by code **Required Permissions** \"claim-management.claims.view\"
1413
- * @summary Retrieve the claim
1414
- * @param {ClaimsApiGetClaim1Request} requestParameters Request parameters.
1415
- * @param {*} [options] Override http request option.
1416
- * @throws {RequiredError}
1417
- * @memberof ClaimsApi
1418
- */
1419
- ClaimsApi.prototype.getClaim1 = function (requestParameters, options) {
1420
- var _this = this;
1421
- return (0, exports.ClaimsApiFp)(this.configuration).getClaim1(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1422
- };
1423
776
  /**
1424
777
  * This endpoint will calculate and get the regulation summary for a claim. **Required Permissions** \"claim-management.claims.view\", \"claim-management.regulations.view\"
1425
778
  * @summary Retrieve the claim regulation summary
@@ -1432,18 +785,6 @@ var ClaimsApi = /** @class */ (function (_super) {
1432
785
  var _this = this;
1433
786
  return (0, exports.ClaimsApiFp)(this.configuration).getClaimRegulationSummary(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1434
787
  };
1435
- /**
1436
- * This endpoint will calculate and get the regulation summary for a claim. **Required Permissions** \"claim-management.claims.view\", \"claim-management.regulations.view\"
1437
- * @summary Retrieve the claim regulation summary
1438
- * @param {ClaimsApiGetClaimRegulationSummary1Request} requestParameters Request parameters.
1439
- * @param {*} [options] Override http request option.
1440
- * @throws {RequiredError}
1441
- * @memberof ClaimsApi
1442
- */
1443
- ClaimsApi.prototype.getClaimRegulationSummary1 = function (requestParameters, options) {
1444
- var _this = this;
1445
- return (0, exports.ClaimsApiFp)(this.configuration).getClaimRegulationSummary1(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1446
- };
1447
788
  /**
1448
789
  * Returns a list of claims you have previously created. The claims are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"claim-management.claims.view\"
1449
790
  * @summary List claims
@@ -1457,19 +798,6 @@ var ClaimsApi = /** @class */ (function (_super) {
1457
798
  if (requestParameters === void 0) { requestParameters = {}; }
1458
799
  return (0, exports.ClaimsApiFp)(this.configuration).listClaims(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); });
1459
800
  };
1460
- /**
1461
- * Returns a list of claims you have previously created. The claims are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"claim-management.claims.view\"
1462
- * @summary List claims
1463
- * @param {ClaimsApiListClaims1Request} requestParameters Request parameters.
1464
- * @param {*} [options] Override http request option.
1465
- * @throws {RequiredError}
1466
- * @memberof ClaimsApi
1467
- */
1468
- ClaimsApi.prototype.listClaims1 = function (requestParameters, options) {
1469
- var _this = this;
1470
- if (requestParameters === void 0) { requestParameters = {}; }
1471
- return (0, exports.ClaimsApiFp)(this.configuration).listClaims1(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); });
1472
- };
1473
801
  /**
1474
802
  * Updates the identified claim by setting the values of the provided parameters. Any parameters not provided will be left unchanged. **Required Permissions** \"claim-management.claims.update\"
1475
803
  * @summary Patch the claim
@@ -1482,18 +810,6 @@ var ClaimsApi = /** @class */ (function (_super) {
1482
810
  var _this = this;
1483
811
  return (0, exports.ClaimsApiFp)(this.configuration).patchClaim(requestParameters.code, requestParameters.patchClaimRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1484
812
  };
1485
- /**
1486
- * Updates the identified claim by setting the values of the provided parameters. Any parameters not provided will be left unchanged. **Required Permissions** \"claim-management.claims.update\"
1487
- * @summary Patch the claim
1488
- * @param {ClaimsApiPatchClaim1Request} requestParameters Request parameters.
1489
- * @param {*} [options] Override http request option.
1490
- * @throws {RequiredError}
1491
- * @memberof ClaimsApi
1492
- */
1493
- ClaimsApi.prototype.patchClaim1 = function (requestParameters, options) {
1494
- var _this = this;
1495
- return (0, exports.ClaimsApiFp)(this.configuration).patchClaim1(requestParameters.code, requestParameters.patchClaimRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1496
- };
1497
813
  /**
1498
814
  * This will update the identified claim in the database **Required Permissions** \"claim-management.claims.update\"
1499
815
  * @summary Update the claim
@@ -1506,18 +822,6 @@ var ClaimsApi = /** @class */ (function (_super) {
1506
822
  var _this = this;
1507
823
  return (0, exports.ClaimsApiFp)(this.configuration).updateClaim(requestParameters.code, requestParameters.updateClaimRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1508
824
  };
1509
- /**
1510
- * This will update the identified claim in the database **Required Permissions** \"claim-management.claims.update\"
1511
- * @summary Update the claim
1512
- * @param {ClaimsApiUpdateClaim1Request} requestParameters Request parameters.
1513
- * @param {*} [options] Override http request option.
1514
- * @throws {RequiredError}
1515
- * @memberof ClaimsApi
1516
- */
1517
- ClaimsApi.prototype.updateClaim1 = function (requestParameters, options) {
1518
- var _this = this;
1519
- return (0, exports.ClaimsApiFp)(this.configuration).updateClaim1(requestParameters.code, requestParameters.updateClaimRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1520
- };
1521
825
  return ClaimsApi;
1522
826
  }(base_1.BaseAPI));
1523
827
  exports.ClaimsApi = ClaimsApi;