@emilgroup/claim-sdk 1.17.2-beta.2 → 1.17.2-beta.4

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 (50) hide show
  1. package/.openapi-generator/FILES +2 -4
  2. package/README.md +2 -2
  3. package/api/claim-regulations-api.ts +366 -45
  4. package/api/{default-api.ts → health-check-api.ts} +22 -18
  5. package/api.ts +2 -2
  6. package/dist/api/claim-regulations-api.d.ts +215 -40
  7. package/dist/api/claim-regulations-api.js +307 -23
  8. package/dist/api/health-check-api.d.ts +70 -0
  9. package/dist/api/{default-api.js → health-check-api.js} +31 -27
  10. package/dist/api.d.ts +1 -1
  11. package/dist/api.js +1 -1
  12. package/dist/models/create-claim-partner-response-class.d.ts +1 -1
  13. package/dist/models/create-claim-partner-role-response-class.d.ts +1 -1
  14. package/dist/models/create-claim-request-dto.d.ts +17 -17
  15. package/dist/models/create-regulation-item-request-dto.d.ts +20 -27
  16. package/dist/models/create-regulation-item-request-dto.js +14 -1
  17. package/dist/models/get-claim-partner-response-class.d.ts +1 -1
  18. package/dist/models/get-claim-partner-role-response-class.d.ts +1 -1
  19. package/dist/models/index.d.ts +1 -3
  20. package/dist/models/index.js +1 -3
  21. package/dist/models/list-regulations-response-class.d.ts +31 -0
  22. package/dist/models/{reserve-details-dto.js → list-regulations-response-class.js} +0 -5
  23. package/dist/models/patch-claim-request-dto.d.ts +18 -18
  24. package/dist/models/payout-details-class.d.ts +1 -1
  25. package/dist/models/regulation-item-class.d.ts +5 -4
  26. package/dist/models/update-claim-partner-role-response-class.d.ts +1 -1
  27. package/dist/models/update-claim-request-dto.d.ts +15 -15
  28. package/models/create-claim-partner-response-class.ts +1 -1
  29. package/models/create-claim-partner-role-response-class.ts +1 -1
  30. package/models/create-claim-request-dto.ts +17 -17
  31. package/models/create-regulation-item-request-dto.ts +21 -27
  32. package/models/get-claim-partner-response-class.ts +1 -1
  33. package/models/get-claim-partner-role-response-class.ts +1 -1
  34. package/models/index.ts +1 -3
  35. package/models/list-regulations-response-class.ts +37 -0
  36. package/models/patch-claim-request-dto.ts +18 -18
  37. package/models/payout-details-class.ts +1 -1
  38. package/models/regulation-item-class.ts +5 -4
  39. package/models/update-claim-partner-role-response-class.ts +1 -1
  40. package/models/update-claim-request-dto.ts +15 -15
  41. package/package.json +1 -1
  42. package/dist/api/default-api.d.ts +0 -66
  43. package/dist/models/payout-details-dto.d.ts +0 -60
  44. package/dist/models/payout-details-dto.js +0 -26
  45. package/dist/models/regress-details-dto.d.ts +0 -51
  46. package/dist/models/regress-details-dto.js +0 -29
  47. package/dist/models/reserve-details-dto.d.ts +0 -29
  48. package/models/payout-details-dto.ts +0 -70
  49. package/models/regress-details-dto.ts +0 -61
  50. package/models/reserve-details-dto.ts +0 -38
@@ -141,22 +141,64 @@ var ClaimRegulationsApiAxiosParamCreator = function (configuration) {
141
141
  });
142
142
  });
143
143
  },
144
+ /**
145
+ * This will delete the regulation item identified by the code.
146
+ * @summary Delete the claim regulation item
147
+ * @param {string} code Unique identifier for the object.
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
+ deleteClaimRegulations: function (code, 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 'code' is not null or undefined
160
+ (0, common_1.assertParamExists)('deleteClaimRegulations', 'code', code);
161
+ localVarPath = "/v1/claims/regulations/{code}"
162
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
163
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
164
+ if (configuration) {
165
+ baseOptions = configuration.baseOptions;
166
+ baseAccessToken = configuration.accessToken;
167
+ }
168
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
169
+ localVarHeaderParameter = {};
170
+ localVarQueryParameter = {};
171
+ // authentication bearer required
172
+ // http bearer authentication required
173
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
174
+ case 1:
175
+ // authentication bearer required
176
+ // http bearer authentication required
177
+ _a.sent();
178
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
179
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
180
+ }
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
+ return [2 /*return*/, {
185
+ url: (0, common_1.toPathString)(localVarUrlObj),
186
+ options: localVarRequestOptions,
187
+ }];
188
+ }
189
+ });
190
+ });
191
+ },
144
192
  /**
145
193
  * Retrieves the details of the claim regulation item that was previously created. Supply the unique claim regulation item code that was returned when you created it and Emil Api will return the corresponding claim regulation item information.
146
194
  * @summary Retrieve the claim regulation item
147
195
  * @param {string} code
148
196
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
149
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
150
- * @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.
151
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
152
- * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
153
- * @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.
154
- * @param {'partners'} [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.
155
- * @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.
197
+ * @param {'claim'} [expand]
156
198
  * @param {*} [options] Override http request option.
157
199
  * @throws {RequiredError}
158
200
  */
159
- getClaimRegulation: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
201
+ getClaimRegulation: function (code, authorization, expand, options) {
160
202
  if (options === void 0) { options = {}; }
161
203
  return __awaiter(_this, void 0, void 0, function () {
162
204
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -178,6 +220,60 @@ var ClaimRegulationsApiAxiosParamCreator = function (configuration) {
178
220
  // authentication bearer required
179
221
  // http bearer authentication required
180
222
  return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
223
+ case 1:
224
+ // authentication bearer required
225
+ // http bearer authentication required
226
+ _a.sent();
227
+ if (expand !== undefined) {
228
+ localVarQueryParameter['expand'] = expand;
229
+ }
230
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
231
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
232
+ }
233
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
234
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
235
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
236
+ return [2 /*return*/, {
237
+ url: (0, common_1.toPathString)(localVarUrlObj),
238
+ options: localVarRequestOptions,
239
+ }];
240
+ }
241
+ });
242
+ });
243
+ },
244
+ /**
245
+ * Returns a list of claim regulation items you have previously created. The claim regulation items are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
246
+ * @summary List claim regulation items
247
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
248
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
249
+ * @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.
250
+ * @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: code, claimCode, amount, bookingDate, currency, regulationItemType, payoutType, regressType, reserveType, payoutStatus, regressStatus</i>
251
+ * @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, claimCode, amount, bookingDate, currency</i>
252
+ * @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: amount, bookingDate, createdAt, updatedAt</i>
253
+ * @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: claim.<i>
254
+ * @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: code, claimCode, amount, bookingDate, currency, regulationItemType, payoutType, regressType, reserveType, payoutStatus, regressStatus</i>
255
+ * @param {*} [options] Override http request option.
256
+ * @throws {RequiredError}
257
+ */
258
+ listClaimRegulations: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
259
+ if (options === void 0) { options = {}; }
260
+ return __awaiter(_this, void 0, void 0, function () {
261
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
262
+ return __generator(this, function (_a) {
263
+ switch (_a.label) {
264
+ case 0:
265
+ localVarPath = "/v1/claims/regulations";
266
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
267
+ if (configuration) {
268
+ baseOptions = configuration.baseOptions;
269
+ baseAccessToken = configuration.accessToken;
270
+ }
271
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
272
+ localVarHeaderParameter = {};
273
+ localVarQueryParameter = {};
274
+ // authentication bearer required
275
+ // http bearer authentication required
276
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
181
277
  case 1:
182
278
  // authentication bearer required
183
279
  // http bearer authentication required
@@ -217,6 +313,59 @@ var ClaimRegulationsApiAxiosParamCreator = function (configuration) {
217
313
  });
218
314
  });
219
315
  },
316
+ /**
317
+ * Update a regulation item status and some other fields identified by it\'s code. A Regulation item type cannot be changed once created e.g. to change a regulation from PAYOUT to RESERVE. In case of mistakes the current regulation item should be deleted and another item should be created.
318
+ * @summary Update the claim regulation item
319
+ * @param {string} code Unique identifier for the object.
320
+ * @param {object} body
321
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
322
+ * @param {*} [options] Override http request option.
323
+ * @throws {RequiredError}
324
+ */
325
+ updateClaimRegulation: function (code, body, authorization, options) {
326
+ if (options === void 0) { options = {}; }
327
+ return __awaiter(_this, void 0, void 0, function () {
328
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
329
+ return __generator(this, function (_a) {
330
+ switch (_a.label) {
331
+ case 0:
332
+ // verify required parameter 'code' is not null or undefined
333
+ (0, common_1.assertParamExists)('updateClaimRegulation', 'code', code);
334
+ // verify required parameter 'body' is not null or undefined
335
+ (0, common_1.assertParamExists)('updateClaimRegulation', 'body', body);
336
+ localVarPath = "/v1/claims/regulations/{code}"
337
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
338
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
339
+ if (configuration) {
340
+ baseOptions = configuration.baseOptions;
341
+ baseAccessToken = configuration.accessToken;
342
+ }
343
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
344
+ localVarHeaderParameter = {};
345
+ localVarQueryParameter = {};
346
+ // authentication bearer required
347
+ // http bearer authentication required
348
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
349
+ case 1:
350
+ // authentication bearer required
351
+ // http bearer authentication required
352
+ _a.sent();
353
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
354
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
355
+ }
356
+ localVarHeaderParameter['Content-Type'] = 'application/json';
357
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
358
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
359
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
360
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
361
+ return [2 /*return*/, {
362
+ url: (0, common_1.toPathString)(localVarUrlObj),
363
+ options: localVarRequestOptions,
364
+ }];
365
+ }
366
+ });
367
+ });
368
+ },
220
369
  };
221
370
  };
222
371
  exports.ClaimRegulationsApiAxiosParamCreator = ClaimRegulationsApiAxiosParamCreator;
@@ -248,27 +397,91 @@ var ClaimRegulationsApiFp = function (configuration) {
248
397
  });
249
398
  });
250
399
  },
400
+ /**
401
+ * This will delete the regulation item identified by the code.
402
+ * @summary Delete the claim regulation item
403
+ * @param {string} code Unique identifier for the object.
404
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
405
+ * @param {*} [options] Override http request option.
406
+ * @throws {RequiredError}
407
+ */
408
+ deleteClaimRegulations: function (code, authorization, options) {
409
+ return __awaiter(this, void 0, void 0, function () {
410
+ var localVarAxiosArgs;
411
+ return __generator(this, function (_a) {
412
+ switch (_a.label) {
413
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteClaimRegulations(code, authorization, options)];
414
+ case 1:
415
+ localVarAxiosArgs = _a.sent();
416
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
417
+ }
418
+ });
419
+ });
420
+ },
251
421
  /**
252
422
  * Retrieves the details of the claim regulation item that was previously created. Supply the unique claim regulation item code that was returned when you created it and Emil Api will return the corresponding claim regulation item information.
253
423
  * @summary Retrieve the claim regulation item
254
424
  * @param {string} code
255
425
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
426
+ * @param {'claim'} [expand]
427
+ * @param {*} [options] Override http request option.
428
+ * @throws {RequiredError}
429
+ */
430
+ getClaimRegulation: function (code, authorization, expand, options) {
431
+ return __awaiter(this, void 0, void 0, function () {
432
+ var localVarAxiosArgs;
433
+ return __generator(this, function (_a) {
434
+ switch (_a.label) {
435
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getClaimRegulation(code, authorization, expand, options)];
436
+ case 1:
437
+ localVarAxiosArgs = _a.sent();
438
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
439
+ }
440
+ });
441
+ });
442
+ },
443
+ /**
444
+ * Returns a list of claim regulation items you have previously created. The claim regulation items are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
445
+ * @summary List claim regulation items
446
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
256
447
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
257
448
  * @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.
258
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
259
- * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
260
- * @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.
261
- * @param {'partners'} [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.
262
- * @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.
449
+ * @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: code, claimCode, amount, bookingDate, currency, regulationItemType, payoutType, regressType, reserveType, payoutStatus, regressStatus</i>
450
+ * @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, claimCode, amount, bookingDate, currency</i>
451
+ * @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: amount, bookingDate, createdAt, updatedAt</i>
452
+ * @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: claim.<i>
453
+ * @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: code, claimCode, amount, bookingDate, currency, regulationItemType, payoutType, regressType, reserveType, payoutStatus, regressStatus</i>
263
454
  * @param {*} [options] Override http request option.
264
455
  * @throws {RequiredError}
265
456
  */
266
- getClaimRegulation: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
457
+ listClaimRegulations: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
267
458
  return __awaiter(this, void 0, void 0, function () {
268
459
  var localVarAxiosArgs;
269
460
  return __generator(this, function (_a) {
270
461
  switch (_a.label) {
271
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getClaimRegulation(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
462
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listClaimRegulations(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
463
+ case 1:
464
+ localVarAxiosArgs = _a.sent();
465
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
466
+ }
467
+ });
468
+ });
469
+ },
470
+ /**
471
+ * Update a regulation item status and some other fields identified by it\'s code. A Regulation item type cannot be changed once created e.g. to change a regulation from PAYOUT to RESERVE. In case of mistakes the current regulation item should be deleted and another item should be created.
472
+ * @summary Update the claim regulation item
473
+ * @param {string} code Unique identifier for the object.
474
+ * @param {object} body
475
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
476
+ * @param {*} [options] Override http request option.
477
+ * @throws {RequiredError}
478
+ */
479
+ updateClaimRegulation: function (code, body, authorization, options) {
480
+ return __awaiter(this, void 0, void 0, function () {
481
+ var localVarAxiosArgs;
482
+ return __generator(this, function (_a) {
483
+ switch (_a.label) {
484
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateClaimRegulation(code, body, authorization, options)];
272
485
  case 1:
273
486
  localVarAxiosArgs = _a.sent();
274
487
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -297,23 +510,57 @@ var ClaimRegulationsApiFactory = function (configuration, basePath, axios) {
297
510
  createClaimRegulation: function (createRegulationItemRequestDto, authorization, options) {
298
511
  return localVarFp.createClaimRegulation(createRegulationItemRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
299
512
  },
513
+ /**
514
+ * This will delete the regulation item identified by the code.
515
+ * @summary Delete the claim regulation item
516
+ * @param {string} code Unique identifier for the object.
517
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
518
+ * @param {*} [options] Override http request option.
519
+ * @throws {RequiredError}
520
+ */
521
+ deleteClaimRegulations: function (code, authorization, options) {
522
+ return localVarFp.deleteClaimRegulations(code, authorization, options).then(function (request) { return request(axios, basePath); });
523
+ },
300
524
  /**
301
525
  * Retrieves the details of the claim regulation item that was previously created. Supply the unique claim regulation item code that was returned when you created it and Emil Api will return the corresponding claim regulation item information.
302
526
  * @summary Retrieve the claim regulation item
303
527
  * @param {string} code
304
528
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
529
+ * @param {'claim'} [expand]
530
+ * @param {*} [options] Override http request option.
531
+ * @throws {RequiredError}
532
+ */
533
+ getClaimRegulation: function (code, authorization, expand, options) {
534
+ return localVarFp.getClaimRegulation(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
535
+ },
536
+ /**
537
+ * Returns a list of claim regulation items you have previously created. The claim regulation items are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
538
+ * @summary List claim regulation items
539
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
305
540
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
306
541
  * @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.
307
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
308
- * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
309
- * @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.
310
- * @param {'partners'} [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.
311
- * @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.
542
+ * @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: code, claimCode, amount, bookingDate, currency, regulationItemType, payoutType, regressType, reserveType, payoutStatus, regressStatus</i>
543
+ * @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, claimCode, amount, bookingDate, currency</i>
544
+ * @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: amount, bookingDate, createdAt, updatedAt</i>
545
+ * @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: claim.<i>
546
+ * @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: code, claimCode, amount, bookingDate, currency, regulationItemType, payoutType, regressType, reserveType, payoutStatus, regressStatus</i>
312
547
  * @param {*} [options] Override http request option.
313
548
  * @throws {RequiredError}
314
549
  */
315
- getClaimRegulation: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
316
- return localVarFp.getClaimRegulation(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
550
+ listClaimRegulations: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
551
+ return localVarFp.listClaimRegulations(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
552
+ },
553
+ /**
554
+ * Update a regulation item status and some other fields identified by it\'s code. A Regulation item type cannot be changed once created e.g. to change a regulation from PAYOUT to RESERVE. In case of mistakes the current regulation item should be deleted and another item should be created.
555
+ * @summary Update the claim regulation item
556
+ * @param {string} code Unique identifier for the object.
557
+ * @param {object} body
558
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
559
+ * @param {*} [options] Override http request option.
560
+ * @throws {RequiredError}
561
+ */
562
+ updateClaimRegulation: function (code, body, authorization, options) {
563
+ return localVarFp.updateClaimRegulation(code, body, authorization, options).then(function (request) { return request(axios, basePath); });
317
564
  },
318
565
  };
319
566
  };
@@ -341,6 +588,18 @@ var ClaimRegulationsApi = /** @class */ (function (_super) {
341
588
  var _this = this;
342
589
  return (0, exports.ClaimRegulationsApiFp)(this.configuration).createClaimRegulation(requestParameters.createRegulationItemRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
343
590
  };
591
+ /**
592
+ * This will delete the regulation item identified by the code.
593
+ * @summary Delete the claim regulation item
594
+ * @param {ClaimRegulationsApiDeleteClaimRegulationsRequest} requestParameters Request parameters.
595
+ * @param {*} [options] Override http request option.
596
+ * @throws {RequiredError}
597
+ * @memberof ClaimRegulationsApi
598
+ */
599
+ ClaimRegulationsApi.prototype.deleteClaimRegulations = function (requestParameters, options) {
600
+ var _this = this;
601
+ return (0, exports.ClaimRegulationsApiFp)(this.configuration).deleteClaimRegulations(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
602
+ };
344
603
  /**
345
604
  * Retrieves the details of the claim regulation item that was previously created. Supply the unique claim regulation item code that was returned when you created it and Emil Api will return the corresponding claim regulation item information.
346
605
  * @summary Retrieve the claim regulation item
@@ -351,7 +610,32 @@ var ClaimRegulationsApi = /** @class */ (function (_super) {
351
610
  */
352
611
  ClaimRegulationsApi.prototype.getClaimRegulation = function (requestParameters, options) {
353
612
  var _this = this;
354
- return (0, exports.ClaimRegulationsApiFp)(this.configuration).getClaimRegulation(requestParameters.code, 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); });
613
+ return (0, exports.ClaimRegulationsApiFp)(this.configuration).getClaimRegulation(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
614
+ };
615
+ /**
616
+ * Returns a list of claim regulation items you have previously created. The claim regulation items are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
617
+ * @summary List claim regulation items
618
+ * @param {ClaimRegulationsApiListClaimRegulationsRequest} requestParameters Request parameters.
619
+ * @param {*} [options] Override http request option.
620
+ * @throws {RequiredError}
621
+ * @memberof ClaimRegulationsApi
622
+ */
623
+ ClaimRegulationsApi.prototype.listClaimRegulations = function (requestParameters, options) {
624
+ var _this = this;
625
+ if (requestParameters === void 0) { requestParameters = {}; }
626
+ return (0, exports.ClaimRegulationsApiFp)(this.configuration).listClaimRegulations(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); });
627
+ };
628
+ /**
629
+ * Update a regulation item status and some other fields identified by it\'s code. A Regulation item type cannot be changed once created e.g. to change a regulation from PAYOUT to RESERVE. In case of mistakes the current regulation item should be deleted and another item should be created.
630
+ * @summary Update the claim regulation item
631
+ * @param {ClaimRegulationsApiUpdateClaimRegulationRequest} requestParameters Request parameters.
632
+ * @param {*} [options] Override http request option.
633
+ * @throws {RequiredError}
634
+ * @memberof ClaimRegulationsApi
635
+ */
636
+ ClaimRegulationsApi.prototype.updateClaimRegulation = function (requestParameters, options) {
637
+ var _this = this;
638
+ return (0, exports.ClaimRegulationsApiFp)(this.configuration).updateClaimRegulation(requestParameters.code, requestParameters.body, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
355
639
  };
356
640
  return ClaimRegulationsApi;
357
641
  }(base_1.BaseAPI));
@@ -0,0 +1,70 @@
1
+ /**
2
+ * EMIL ClaimService
3
+ * The EMIL ClaimService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
+ import { Configuration } from '../configuration';
14
+ import { RequestArgs, BaseAPI } from '../base';
15
+ import { InlineResponse200 } from '../models';
16
+ /**
17
+ * HealthCheckApi - axios parameter creator
18
+ * @export
19
+ */
20
+ export declare const HealthCheckApiAxiosParamCreator: (configuration?: Configuration) => {
21
+ /**
22
+ * Returns the health status of the claim service. This endpoint is used to monitor the operational status of the claim service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
23
+ * @summary Health Check
24
+ * @param {*} [options] Override http request option.
25
+ * @throws {RequiredError}
26
+ */
27
+ check: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
28
+ };
29
+ /**
30
+ * HealthCheckApi - functional programming interface
31
+ * @export
32
+ */
33
+ export declare const HealthCheckApiFp: (configuration?: Configuration) => {
34
+ /**
35
+ * Returns the health status of the claim service. This endpoint is used to monitor the operational status of the claim service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
36
+ * @summary Health Check
37
+ * @param {*} [options] Override http request option.
38
+ * @throws {RequiredError}
39
+ */
40
+ check(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>>;
41
+ };
42
+ /**
43
+ * HealthCheckApi - factory interface
44
+ * @export
45
+ */
46
+ export declare const HealthCheckApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
47
+ /**
48
+ * Returns the health status of the claim service. This endpoint is used to monitor the operational status of the claim service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
49
+ * @summary Health Check
50
+ * @param {*} [options] Override http request option.
51
+ * @throws {RequiredError}
52
+ */
53
+ check(options?: any): AxiosPromise<InlineResponse200>;
54
+ };
55
+ /**
56
+ * HealthCheckApi - object-oriented interface
57
+ * @export
58
+ * @class HealthCheckApi
59
+ * @extends {BaseAPI}
60
+ */
61
+ export declare class HealthCheckApi extends BaseAPI {
62
+ /**
63
+ * Returns the health status of the claim service. This endpoint is used to monitor the operational status of the claim service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
64
+ * @summary Health Check
65
+ * @param {*} [options] Override http request option.
66
+ * @throws {RequiredError}
67
+ * @memberof HealthCheckApi
68
+ */
69
+ check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any>>;
70
+ }
@@ -78,7 +78,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
78
78
  return (mod && mod.__esModule) ? mod : { "default": mod };
79
79
  };
80
80
  Object.defineProperty(exports, "__esModule", { value: true });
81
- exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = void 0;
81
+ exports.HealthCheckApi = exports.HealthCheckApiFactory = exports.HealthCheckApiFp = exports.HealthCheckApiAxiosParamCreator = void 0;
82
82
  var axios_1 = __importDefault(require("axios"));
83
83
  // Some imports not used depending on template conditions
84
84
  // @ts-ignore
@@ -86,14 +86,15 @@ var common_1 = require("../common");
86
86
  // @ts-ignore
87
87
  var base_1 = require("../base");
88
88
  /**
89
- * DefaultApi - axios parameter creator
89
+ * HealthCheckApi - axios parameter creator
90
90
  * @export
91
91
  */
92
- var DefaultApiAxiosParamCreator = function (configuration) {
92
+ var HealthCheckApiAxiosParamCreator = function (configuration) {
93
93
  var _this = this;
94
94
  return {
95
95
  /**
96
- *
96
+ * Returns the health status of the claim service. This endpoint is used to monitor the operational status of the claim service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
97
+ * @summary Health Check
97
98
  * @param {*} [options] Override http request option.
98
99
  * @throws {RequiredError}
99
100
  */
@@ -102,7 +103,7 @@ var DefaultApiAxiosParamCreator = function (configuration) {
102
103
  return __awaiter(_this, void 0, void 0, function () {
103
104
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
104
105
  return __generator(this, function (_a) {
105
- localVarPath = "/claimservice/health";
106
+ localVarPath = "/v1/claims/health";
106
107
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
107
108
  if (configuration) {
108
109
  baseOptions = configuration.baseOptions;
@@ -123,16 +124,17 @@ var DefaultApiAxiosParamCreator = function (configuration) {
123
124
  },
124
125
  };
125
126
  };
126
- exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
127
+ exports.HealthCheckApiAxiosParamCreator = HealthCheckApiAxiosParamCreator;
127
128
  /**
128
- * DefaultApi - functional programming interface
129
+ * HealthCheckApi - functional programming interface
129
130
  * @export
130
131
  */
131
- var DefaultApiFp = function (configuration) {
132
- var localVarAxiosParamCreator = (0, exports.DefaultApiAxiosParamCreator)(configuration);
132
+ var HealthCheckApiFp = function (configuration) {
133
+ var localVarAxiosParamCreator = (0, exports.HealthCheckApiAxiosParamCreator)(configuration);
133
134
  return {
134
135
  /**
135
- *
136
+ * Returns the health status of the claim service. This endpoint is used to monitor the operational status of the claim service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
137
+ * @summary Health Check
136
138
  * @param {*} [options] Override http request option.
137
139
  * @throws {RequiredError}
138
140
  */
@@ -151,16 +153,17 @@ var DefaultApiFp = function (configuration) {
151
153
  },
152
154
  };
153
155
  };
154
- exports.DefaultApiFp = DefaultApiFp;
156
+ exports.HealthCheckApiFp = HealthCheckApiFp;
155
157
  /**
156
- * DefaultApi - factory interface
158
+ * HealthCheckApi - factory interface
157
159
  * @export
158
160
  */
159
- var DefaultApiFactory = function (configuration, basePath, axios) {
160
- var localVarFp = (0, exports.DefaultApiFp)(configuration);
161
+ var HealthCheckApiFactory = function (configuration, basePath, axios) {
162
+ var localVarFp = (0, exports.HealthCheckApiFp)(configuration);
161
163
  return {
162
164
  /**
163
- *
165
+ * Returns the health status of the claim service. This endpoint is used to monitor the operational status of the claim service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
166
+ * @summary Health Check
164
167
  * @param {*} [options] Override http request option.
165
168
  * @throws {RequiredError}
166
169
  */
@@ -169,28 +172,29 @@ var DefaultApiFactory = function (configuration, basePath, axios) {
169
172
  },
170
173
  };
171
174
  };
172
- exports.DefaultApiFactory = DefaultApiFactory;
175
+ exports.HealthCheckApiFactory = HealthCheckApiFactory;
173
176
  /**
174
- * DefaultApi - object-oriented interface
177
+ * HealthCheckApi - object-oriented interface
175
178
  * @export
176
- * @class DefaultApi
179
+ * @class HealthCheckApi
177
180
  * @extends {BaseAPI}
178
181
  */
179
- var DefaultApi = /** @class */ (function (_super) {
180
- __extends(DefaultApi, _super);
181
- function DefaultApi() {
182
+ var HealthCheckApi = /** @class */ (function (_super) {
183
+ __extends(HealthCheckApi, _super);
184
+ function HealthCheckApi() {
182
185
  return _super !== null && _super.apply(this, arguments) || this;
183
186
  }
184
187
  /**
185
- *
188
+ * Returns the health status of the claim service. This endpoint is used to monitor the operational status of the claim service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
189
+ * @summary Health Check
186
190
  * @param {*} [options] Override http request option.
187
191
  * @throws {RequiredError}
188
- * @memberof DefaultApi
192
+ * @memberof HealthCheckApi
189
193
  */
190
- DefaultApi.prototype.check = function (options) {
194
+ HealthCheckApi.prototype.check = function (options) {
191
195
  var _this = this;
192
- return (0, exports.DefaultApiFp)(this.configuration).check(options).then(function (request) { return request(_this.axios, _this.basePath); });
196
+ return (0, exports.HealthCheckApiFp)(this.configuration).check(options).then(function (request) { return request(_this.axios, _this.basePath); });
193
197
  };
194
- return DefaultApi;
198
+ return HealthCheckApi;
195
199
  }(base_1.BaseAPI));
196
- exports.DefaultApi = DefaultApi;
200
+ exports.HealthCheckApi = HealthCheckApi;
package/dist/api.d.ts CHANGED
@@ -14,5 +14,5 @@ export * from './api/claim-partners-api';
14
14
  export * from './api/claim-regulations-api';
15
15
  export * from './api/claim-statuses-api';
16
16
  export * from './api/claims-api';
17
- export * from './api/default-api';
17
+ export * from './api/health-check-api';
18
18
  export * from './api/settlements-api';
package/dist/api.js CHANGED
@@ -32,5 +32,5 @@ __exportStar(require("./api/claim-partners-api"), exports);
32
32
  __exportStar(require("./api/claim-regulations-api"), exports);
33
33
  __exportStar(require("./api/claim-statuses-api"), exports);
34
34
  __exportStar(require("./api/claims-api"), exports);
35
- __exportStar(require("./api/default-api"), exports);
35
+ __exportStar(require("./api/health-check-api"), exports);
36
36
  __exportStar(require("./api/settlements-api"), exports);