@emilgroup/claim-sdk-node 1.4.0 → 1.6.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.
- package/.openapi-generator/FILES +12 -3
- package/README.md +2 -2
- package/api/claim-statuses-api.ts +547 -0
- package/api/claims-api.ts +189 -81
- package/api/default-api.ts +124 -0
- package/api/settlements-api.ts +105 -198
- package/api.ts +4 -0
- package/dist/api/claim-statuses-api.d.ts +309 -0
- package/dist/api/claim-statuses-api.js +535 -0
- package/dist/api/claims-api.d.ts +124 -59
- package/dist/api/claims-api.js +142 -52
- package/dist/api/default-api.d.ts +66 -0
- package/dist/api/default-api.js +200 -0
- package/dist/api/settlements-api.d.ts +85 -140
- package/dist/api/settlements-api.js +70 -117
- package/dist/api.d.ts +2 -0
- package/dist/api.js +2 -0
- package/dist/models/claim-class.d.ts +13 -1
- package/dist/models/claim-status-class.d.ts +36 -0
- package/dist/models/create-claim-request-dto.d.ts +13 -1
- package/dist/models/create-claim-status-request-dto.d.ts +30 -0
- package/dist/models/create-claim-status-response-class.d.ts +25 -0
- package/dist/models/{delete-settlement-request-dto.d.ts → get-claim-status-response-class.d.ts} +7 -12
- package/{models/delete-response-class.ts → dist/models/get-claim-status-response-class.js} +2 -17
- package/dist/models/index.d.ts +10 -3
- package/dist/models/index.js +10 -3
- package/dist/models/inline-response200.d.ts +54 -0
- package/dist/models/inline-response200.js +15 -0
- package/dist/models/inline-response503.d.ts +54 -0
- package/dist/models/inline-response503.js +15 -0
- package/dist/models/list-claim-statuses-response-class.d.ts +31 -0
- package/dist/models/list-claim-statuses-response-class.js +15 -0
- package/dist/models/{list-claim-response-class.d.ts → list-claims-response-class.d.ts} +4 -4
- package/dist/models/list-claims-response-class.js +15 -0
- package/dist/models/patch-claim-request-dto.d.ts +126 -0
- package/dist/models/patch-claim-request-dto.js +15 -0
- package/dist/models/{delete-response-class.d.ts → patch-claim-response-class.d.ts} +7 -6
- package/dist/models/patch-claim-response-class.js +15 -0
- package/dist/models/settlement-class.d.ts +6 -0
- package/dist/models/update-claim-request-dto.d.ts +8 -2
- package/dist/models/update-settlement-request-dto.d.ts +6 -0
- package/models/claim-class.ts +13 -1
- package/models/claim-status-class.ts +42 -0
- package/models/create-claim-request-dto.ts +13 -1
- package/models/create-claim-status-request-dto.ts +36 -0
- package/models/create-claim-status-response-class.ts +31 -0
- package/models/{delete-settlement-request-dto.ts → get-claim-status-response-class.ts} +7 -12
- package/models/index.ts +10 -3
- package/models/inline-response200.ts +48 -0
- package/models/inline-response503.ts +48 -0
- package/models/list-claim-statuses-response-class.ts +37 -0
- package/models/{list-claim-response-class.ts → list-claims-response-class.ts} +4 -4
- package/models/patch-claim-request-dto.ts +132 -0
- package/models/patch-claim-response-class.ts +31 -0
- package/models/settlement-class.ts +6 -0
- package/models/update-claim-request-dto.ts +8 -2
- package/models/update-settlement-request-dto.ts +6 -0
- package/package.json +1 -1
- /package/dist/models/{delete-response-class.js → claim-status-class.js} +0 -0
- /package/dist/models/{delete-settlement-request-dto.js → create-claim-status-request-dto.js} +0 -0
- /package/dist/models/{list-claim-response-class.js → create-claim-status-response-class.js} +0 -0
package/dist/api/claims-api.js
CHANGED
|
@@ -99,20 +99,18 @@ var ClaimsApiAxiosParamCreator = function (configuration) {
|
|
|
99
99
|
/**
|
|
100
100
|
* This will create a claim in the database
|
|
101
101
|
* @summary Create the claim
|
|
102
|
-
* @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
|
|
103
102
|
* @param {CreateClaimRequestDto} createClaimRequestDto
|
|
103
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
104
104
|
* @param {*} [options] Override http request option.
|
|
105
105
|
* @throws {RequiredError}
|
|
106
106
|
*/
|
|
107
|
-
createClaim: function (
|
|
107
|
+
createClaim: function (createClaimRequestDto, authorization, options) {
|
|
108
108
|
if (options === void 0) { options = {}; }
|
|
109
109
|
return __awaiter(_this, void 0, void 0, function () {
|
|
110
110
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
111
111
|
return __generator(this, function (_a) {
|
|
112
112
|
switch (_a.label) {
|
|
113
113
|
case 0:
|
|
114
|
-
// verify required parameter 'authorization' is not null or undefined
|
|
115
|
-
(0, common_1.assertParamExists)('createClaim', 'authorization', authorization);
|
|
116
114
|
// verify required parameter 'createClaimRequestDto' is not null or undefined
|
|
117
115
|
(0, common_1.assertParamExists)('createClaim', 'createClaimRequestDto', createClaimRequestDto);
|
|
118
116
|
localVarPath = "/v1/claims";
|
|
@@ -150,20 +148,18 @@ var ClaimsApiAxiosParamCreator = function (configuration) {
|
|
|
150
148
|
/**
|
|
151
149
|
* This will delete the requested claim from the database.
|
|
152
150
|
* @summary Delete the claim
|
|
153
|
-
* @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
|
|
154
151
|
* @param {string} code
|
|
152
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
155
153
|
* @param {*} [options] Override http request option.
|
|
156
154
|
* @throws {RequiredError}
|
|
157
155
|
*/
|
|
158
|
-
deleteClaim: function (
|
|
156
|
+
deleteClaim: function (code, authorization, options) {
|
|
159
157
|
if (options === void 0) { options = {}; }
|
|
160
158
|
return __awaiter(_this, void 0, void 0, function () {
|
|
161
159
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
162
160
|
return __generator(this, function (_a) {
|
|
163
161
|
switch (_a.label) {
|
|
164
162
|
case 0:
|
|
165
|
-
// verify required parameter 'authorization' is not null or undefined
|
|
166
|
-
(0, common_1.assertParamExists)('deleteClaim', 'authorization', authorization);
|
|
167
163
|
// verify required parameter 'code' is not null or undefined
|
|
168
164
|
(0, common_1.assertParamExists)('deleteClaim', 'code', code);
|
|
169
165
|
localVarPath = "/v1/claims/{code}"
|
|
@@ -200,20 +196,18 @@ var ClaimsApiAxiosParamCreator = function (configuration) {
|
|
|
200
196
|
/**
|
|
201
197
|
* This will fetch the identified claim from the database by code
|
|
202
198
|
* @summary Retrieve the claim
|
|
203
|
-
* @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
|
|
204
199
|
* @param {string} code
|
|
200
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
205
201
|
* @param {*} [options] Override http request option.
|
|
206
202
|
* @throws {RequiredError}
|
|
207
203
|
*/
|
|
208
|
-
getClaim: function (
|
|
204
|
+
getClaim: function (code, authorization, options) {
|
|
209
205
|
if (options === void 0) { options = {}; }
|
|
210
206
|
return __awaiter(_this, void 0, void 0, function () {
|
|
211
207
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
212
208
|
return __generator(this, function (_a) {
|
|
213
209
|
switch (_a.label) {
|
|
214
210
|
case 0:
|
|
215
|
-
// verify required parameter 'authorization' is not null or undefined
|
|
216
|
-
(0, common_1.assertParamExists)('getClaim', 'authorization', authorization);
|
|
217
211
|
// verify required parameter 'code' is not null or undefined
|
|
218
212
|
(0, common_1.assertParamExists)('getClaim', 'code', code);
|
|
219
213
|
localVarPath = "/v1/claims/{code}"
|
|
@@ -250,10 +244,10 @@ var ClaimsApiAxiosParamCreator = function (configuration) {
|
|
|
250
244
|
/**
|
|
251
245
|
* 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.
|
|
252
246
|
* @summary List claims
|
|
253
|
-
* @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
|
|
247
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
254
248
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
255
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.
|
|
256
|
-
* @param {
|
|
250
|
+
* @param {'policyNumber' | 'productId' | 'accountCode' | 'insuredObjectId' | 'policyCode'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
257
251
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
258
252
|
* @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.
|
|
259
253
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
@@ -267,8 +261,6 @@ var ClaimsApiAxiosParamCreator = function (configuration) {
|
|
|
267
261
|
return __generator(this, function (_a) {
|
|
268
262
|
switch (_a.label) {
|
|
269
263
|
case 0:
|
|
270
|
-
// verify required parameter 'authorization' is not null or undefined
|
|
271
|
-
(0, common_1.assertParamExists)('listClaims', 'authorization', authorization);
|
|
272
264
|
localVarPath = "/v1/claims";
|
|
273
265
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
274
266
|
if (configuration) {
|
|
@@ -317,24 +309,75 @@ var ClaimsApiAxiosParamCreator = function (configuration) {
|
|
|
317
309
|
});
|
|
318
310
|
});
|
|
319
311
|
},
|
|
312
|
+
/**
|
|
313
|
+
* Updates the identified claim by setting the values of the provided parameters. Any parameters not provided will be left unchanged.
|
|
314
|
+
* @summary Patch the claim
|
|
315
|
+
* @param {string} code
|
|
316
|
+
* @param {PatchClaimRequestDto} patchClaimRequestDto
|
|
317
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
318
|
+
* @param {*} [options] Override http request option.
|
|
319
|
+
* @throws {RequiredError}
|
|
320
|
+
*/
|
|
321
|
+
patchClaim: function (code, patchClaimRequestDto, authorization, options) {
|
|
322
|
+
if (options === void 0) { options = {}; }
|
|
323
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
324
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
325
|
+
return __generator(this, function (_a) {
|
|
326
|
+
switch (_a.label) {
|
|
327
|
+
case 0:
|
|
328
|
+
// verify required parameter 'code' is not null or undefined
|
|
329
|
+
(0, common_1.assertParamExists)('patchClaim', 'code', code);
|
|
330
|
+
// verify required parameter 'patchClaimRequestDto' is not null or undefined
|
|
331
|
+
(0, common_1.assertParamExists)('patchClaim', 'patchClaimRequestDto', patchClaimRequestDto);
|
|
332
|
+
localVarPath = "/v1/claims/{code}"
|
|
333
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
334
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
335
|
+
if (configuration) {
|
|
336
|
+
baseOptions = configuration.baseOptions;
|
|
337
|
+
baseAccessToken = configuration.accessToken;
|
|
338
|
+
}
|
|
339
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
340
|
+
localVarHeaderParameter = {};
|
|
341
|
+
localVarQueryParameter = {};
|
|
342
|
+
// authentication bearer required
|
|
343
|
+
// http bearer authentication required
|
|
344
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
345
|
+
case 1:
|
|
346
|
+
// authentication bearer required
|
|
347
|
+
// http bearer authentication required
|
|
348
|
+
_a.sent();
|
|
349
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
350
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
351
|
+
}
|
|
352
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
353
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
354
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
355
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
356
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchClaimRequestDto, localVarRequestOptions, configuration);
|
|
357
|
+
return [2 /*return*/, {
|
|
358
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
359
|
+
options: localVarRequestOptions,
|
|
360
|
+
}];
|
|
361
|
+
}
|
|
362
|
+
});
|
|
363
|
+
});
|
|
364
|
+
},
|
|
320
365
|
/**
|
|
321
366
|
* This will update the identified claim in the database
|
|
322
367
|
* @summary Update the claim
|
|
323
|
-
* @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
|
|
324
368
|
* @param {string} code
|
|
325
369
|
* @param {UpdateClaimRequestDto} updateClaimRequestDto
|
|
370
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
326
371
|
* @param {*} [options] Override http request option.
|
|
327
372
|
* @throws {RequiredError}
|
|
328
373
|
*/
|
|
329
|
-
updateClaim: function (
|
|
374
|
+
updateClaim: function (code, updateClaimRequestDto, authorization, options) {
|
|
330
375
|
if (options === void 0) { options = {}; }
|
|
331
376
|
return __awaiter(_this, void 0, void 0, function () {
|
|
332
377
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
333
378
|
return __generator(this, function (_a) {
|
|
334
379
|
switch (_a.label) {
|
|
335
380
|
case 0:
|
|
336
|
-
// verify required parameter 'authorization' is not null or undefined
|
|
337
|
-
(0, common_1.assertParamExists)('updateClaim', 'authorization', authorization);
|
|
338
381
|
// verify required parameter 'code' is not null or undefined
|
|
339
382
|
(0, common_1.assertParamExists)('updateClaim', 'code', code);
|
|
340
383
|
// verify required parameter 'updateClaimRequestDto' is not null or undefined
|
|
@@ -385,17 +428,17 @@ var ClaimsApiFp = function (configuration) {
|
|
|
385
428
|
/**
|
|
386
429
|
* This will create a claim in the database
|
|
387
430
|
* @summary Create the claim
|
|
388
|
-
* @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
|
|
389
431
|
* @param {CreateClaimRequestDto} createClaimRequestDto
|
|
432
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
390
433
|
* @param {*} [options] Override http request option.
|
|
391
434
|
* @throws {RequiredError}
|
|
392
435
|
*/
|
|
393
|
-
createClaim: function (
|
|
436
|
+
createClaim: function (createClaimRequestDto, authorization, options) {
|
|
394
437
|
return __awaiter(this, void 0, void 0, function () {
|
|
395
438
|
var localVarAxiosArgs;
|
|
396
439
|
return __generator(this, function (_a) {
|
|
397
440
|
switch (_a.label) {
|
|
398
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createClaim(
|
|
441
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createClaim(createClaimRequestDto, authorization, options)];
|
|
399
442
|
case 1:
|
|
400
443
|
localVarAxiosArgs = _a.sent();
|
|
401
444
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -406,17 +449,17 @@ var ClaimsApiFp = function (configuration) {
|
|
|
406
449
|
/**
|
|
407
450
|
* This will delete the requested claim from the database.
|
|
408
451
|
* @summary Delete the claim
|
|
409
|
-
* @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
|
|
410
452
|
* @param {string} code
|
|
453
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
411
454
|
* @param {*} [options] Override http request option.
|
|
412
455
|
* @throws {RequiredError}
|
|
413
456
|
*/
|
|
414
|
-
deleteClaim: function (
|
|
457
|
+
deleteClaim: function (code, authorization, options) {
|
|
415
458
|
return __awaiter(this, void 0, void 0, function () {
|
|
416
459
|
var localVarAxiosArgs;
|
|
417
460
|
return __generator(this, function (_a) {
|
|
418
461
|
switch (_a.label) {
|
|
419
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteClaim(
|
|
462
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteClaim(code, authorization, options)];
|
|
420
463
|
case 1:
|
|
421
464
|
localVarAxiosArgs = _a.sent();
|
|
422
465
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -427,17 +470,17 @@ var ClaimsApiFp = function (configuration) {
|
|
|
427
470
|
/**
|
|
428
471
|
* This will fetch the identified claim from the database by code
|
|
429
472
|
* @summary Retrieve the claim
|
|
430
|
-
* @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
|
|
431
473
|
* @param {string} code
|
|
474
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
432
475
|
* @param {*} [options] Override http request option.
|
|
433
476
|
* @throws {RequiredError}
|
|
434
477
|
*/
|
|
435
|
-
getClaim: function (
|
|
478
|
+
getClaim: function (code, authorization, options) {
|
|
436
479
|
return __awaiter(this, void 0, void 0, function () {
|
|
437
480
|
var localVarAxiosArgs;
|
|
438
481
|
return __generator(this, function (_a) {
|
|
439
482
|
switch (_a.label) {
|
|
440
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getClaim(
|
|
483
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getClaim(code, authorization, options)];
|
|
441
484
|
case 1:
|
|
442
485
|
localVarAxiosArgs = _a.sent();
|
|
443
486
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -448,10 +491,10 @@ var ClaimsApiFp = function (configuration) {
|
|
|
448
491
|
/**
|
|
449
492
|
* 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.
|
|
450
493
|
* @summary List claims
|
|
451
|
-
* @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
|
|
494
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
452
495
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
453
496
|
* @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.
|
|
454
|
-
* @param {
|
|
497
|
+
* @param {'policyNumber' | 'productId' | 'accountCode' | 'insuredObjectId' | 'policyCode'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
455
498
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
456
499
|
* @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.
|
|
457
500
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
@@ -471,21 +514,43 @@ var ClaimsApiFp = function (configuration) {
|
|
|
471
514
|
});
|
|
472
515
|
});
|
|
473
516
|
},
|
|
517
|
+
/**
|
|
518
|
+
* Updates the identified claim by setting the values of the provided parameters. Any parameters not provided will be left unchanged.
|
|
519
|
+
* @summary Patch the claim
|
|
520
|
+
* @param {string} code
|
|
521
|
+
* @param {PatchClaimRequestDto} patchClaimRequestDto
|
|
522
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
523
|
+
* @param {*} [options] Override http request option.
|
|
524
|
+
* @throws {RequiredError}
|
|
525
|
+
*/
|
|
526
|
+
patchClaim: function (code, patchClaimRequestDto, authorization, options) {
|
|
527
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
528
|
+
var localVarAxiosArgs;
|
|
529
|
+
return __generator(this, function (_a) {
|
|
530
|
+
switch (_a.label) {
|
|
531
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchClaim(code, patchClaimRequestDto, authorization, options)];
|
|
532
|
+
case 1:
|
|
533
|
+
localVarAxiosArgs = _a.sent();
|
|
534
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
535
|
+
}
|
|
536
|
+
});
|
|
537
|
+
});
|
|
538
|
+
},
|
|
474
539
|
/**
|
|
475
540
|
* This will update the identified claim in the database
|
|
476
541
|
* @summary Update the claim
|
|
477
|
-
* @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
|
|
478
542
|
* @param {string} code
|
|
479
543
|
* @param {UpdateClaimRequestDto} updateClaimRequestDto
|
|
544
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
480
545
|
* @param {*} [options] Override http request option.
|
|
481
546
|
* @throws {RequiredError}
|
|
482
547
|
*/
|
|
483
|
-
updateClaim: function (
|
|
548
|
+
updateClaim: function (code, updateClaimRequestDto, authorization, options) {
|
|
484
549
|
return __awaiter(this, void 0, void 0, function () {
|
|
485
550
|
var localVarAxiosArgs;
|
|
486
551
|
return __generator(this, function (_a) {
|
|
487
552
|
switch (_a.label) {
|
|
488
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateClaim(
|
|
553
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateClaim(code, updateClaimRequestDto, authorization, options)];
|
|
489
554
|
case 1:
|
|
490
555
|
localVarAxiosArgs = _a.sent();
|
|
491
556
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -506,43 +571,43 @@ var ClaimsApiFactory = function (configuration, basePath, axios) {
|
|
|
506
571
|
/**
|
|
507
572
|
* This will create a claim in the database
|
|
508
573
|
* @summary Create the claim
|
|
509
|
-
* @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
|
|
510
574
|
* @param {CreateClaimRequestDto} createClaimRequestDto
|
|
575
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
511
576
|
* @param {*} [options] Override http request option.
|
|
512
577
|
* @throws {RequiredError}
|
|
513
578
|
*/
|
|
514
|
-
createClaim: function (
|
|
515
|
-
return localVarFp.createClaim(
|
|
579
|
+
createClaim: function (createClaimRequestDto, authorization, options) {
|
|
580
|
+
return localVarFp.createClaim(createClaimRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
516
581
|
},
|
|
517
582
|
/**
|
|
518
583
|
* This will delete the requested claim from the database.
|
|
519
584
|
* @summary Delete the claim
|
|
520
|
-
* @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
|
|
521
585
|
* @param {string} code
|
|
586
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
522
587
|
* @param {*} [options] Override http request option.
|
|
523
588
|
* @throws {RequiredError}
|
|
524
589
|
*/
|
|
525
|
-
deleteClaim: function (
|
|
526
|
-
return localVarFp.deleteClaim(
|
|
590
|
+
deleteClaim: function (code, authorization, options) {
|
|
591
|
+
return localVarFp.deleteClaim(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
527
592
|
},
|
|
528
593
|
/**
|
|
529
594
|
* This will fetch the identified claim from the database by code
|
|
530
595
|
* @summary Retrieve the claim
|
|
531
|
-
* @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
|
|
532
596
|
* @param {string} code
|
|
597
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
533
598
|
* @param {*} [options] Override http request option.
|
|
534
599
|
* @throws {RequiredError}
|
|
535
600
|
*/
|
|
536
|
-
getClaim: function (
|
|
537
|
-
return localVarFp.getClaim(
|
|
601
|
+
getClaim: function (code, authorization, options) {
|
|
602
|
+
return localVarFp.getClaim(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
538
603
|
},
|
|
539
604
|
/**
|
|
540
605
|
* 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.
|
|
541
606
|
* @summary List claims
|
|
542
|
-
* @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
|
|
607
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
543
608
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
544
609
|
* @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.
|
|
545
|
-
* @param {
|
|
610
|
+
* @param {'policyNumber' | 'productId' | 'accountCode' | 'insuredObjectId' | 'policyCode'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
546
611
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
547
612
|
* @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.
|
|
548
613
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
@@ -552,17 +617,29 @@ var ClaimsApiFactory = function (configuration, basePath, axios) {
|
|
|
552
617
|
listClaims: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
553
618
|
return localVarFp.listClaims(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
554
619
|
},
|
|
620
|
+
/**
|
|
621
|
+
* Updates the identified claim by setting the values of the provided parameters. Any parameters not provided will be left unchanged.
|
|
622
|
+
* @summary Patch the claim
|
|
623
|
+
* @param {string} code
|
|
624
|
+
* @param {PatchClaimRequestDto} patchClaimRequestDto
|
|
625
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
626
|
+
* @param {*} [options] Override http request option.
|
|
627
|
+
* @throws {RequiredError}
|
|
628
|
+
*/
|
|
629
|
+
patchClaim: function (code, patchClaimRequestDto, authorization, options) {
|
|
630
|
+
return localVarFp.patchClaim(code, patchClaimRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
631
|
+
},
|
|
555
632
|
/**
|
|
556
633
|
* This will update the identified claim in the database
|
|
557
634
|
* @summary Update the claim
|
|
558
|
-
* @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
|
|
559
635
|
* @param {string} code
|
|
560
636
|
* @param {UpdateClaimRequestDto} updateClaimRequestDto
|
|
637
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
561
638
|
* @param {*} [options] Override http request option.
|
|
562
639
|
* @throws {RequiredError}
|
|
563
640
|
*/
|
|
564
|
-
updateClaim: function (
|
|
565
|
-
return localVarFp.updateClaim(
|
|
641
|
+
updateClaim: function (code, updateClaimRequestDto, authorization, options) {
|
|
642
|
+
return localVarFp.updateClaim(code, updateClaimRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
566
643
|
},
|
|
567
644
|
};
|
|
568
645
|
};
|
|
@@ -588,7 +665,7 @@ var ClaimsApi = /** @class */ (function (_super) {
|
|
|
588
665
|
*/
|
|
589
666
|
ClaimsApi.prototype.createClaim = function (requestParameters, options) {
|
|
590
667
|
var _this = this;
|
|
591
|
-
return (0, exports.ClaimsApiFp)(this.configuration).createClaim(requestParameters.
|
|
668
|
+
return (0, exports.ClaimsApiFp)(this.configuration).createClaim(requestParameters.createClaimRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
592
669
|
};
|
|
593
670
|
/**
|
|
594
671
|
* This will delete the requested claim from the database.
|
|
@@ -600,7 +677,7 @@ var ClaimsApi = /** @class */ (function (_super) {
|
|
|
600
677
|
*/
|
|
601
678
|
ClaimsApi.prototype.deleteClaim = function (requestParameters, options) {
|
|
602
679
|
var _this = this;
|
|
603
|
-
return (0, exports.ClaimsApiFp)(this.configuration).deleteClaim(requestParameters.
|
|
680
|
+
return (0, exports.ClaimsApiFp)(this.configuration).deleteClaim(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
604
681
|
};
|
|
605
682
|
/**
|
|
606
683
|
* This will fetch the identified claim from the database by code
|
|
@@ -612,7 +689,7 @@ var ClaimsApi = /** @class */ (function (_super) {
|
|
|
612
689
|
*/
|
|
613
690
|
ClaimsApi.prototype.getClaim = function (requestParameters, options) {
|
|
614
691
|
var _this = this;
|
|
615
|
-
return (0, exports.ClaimsApiFp)(this.configuration).getClaim(requestParameters.
|
|
692
|
+
return (0, exports.ClaimsApiFp)(this.configuration).getClaim(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
616
693
|
};
|
|
617
694
|
/**
|
|
618
695
|
* 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.
|
|
@@ -624,8 +701,21 @@ var ClaimsApi = /** @class */ (function (_super) {
|
|
|
624
701
|
*/
|
|
625
702
|
ClaimsApi.prototype.listClaims = function (requestParameters, options) {
|
|
626
703
|
var _this = this;
|
|
704
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
627
705
|
return (0, exports.ClaimsApiFp)(this.configuration).listClaims(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
628
706
|
};
|
|
707
|
+
/**
|
|
708
|
+
* Updates the identified claim by setting the values of the provided parameters. Any parameters not provided will be left unchanged.
|
|
709
|
+
* @summary Patch the claim
|
|
710
|
+
* @param {ClaimsApiPatchClaimRequest} requestParameters Request parameters.
|
|
711
|
+
* @param {*} [options] Override http request option.
|
|
712
|
+
* @throws {RequiredError}
|
|
713
|
+
* @memberof ClaimsApi
|
|
714
|
+
*/
|
|
715
|
+
ClaimsApi.prototype.patchClaim = function (requestParameters, options) {
|
|
716
|
+
var _this = this;
|
|
717
|
+
return (0, exports.ClaimsApiFp)(this.configuration).patchClaim(requestParameters.code, requestParameters.patchClaimRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
718
|
+
};
|
|
629
719
|
/**
|
|
630
720
|
* This will update the identified claim in the database
|
|
631
721
|
* @summary Update the claim
|
|
@@ -636,7 +726,7 @@ var ClaimsApi = /** @class */ (function (_super) {
|
|
|
636
726
|
*/
|
|
637
727
|
ClaimsApi.prototype.updateClaim = function (requestParameters, options) {
|
|
638
728
|
var _this = this;
|
|
639
|
-
return (0, exports.ClaimsApiFp)(this.configuration).updateClaim(requestParameters.
|
|
729
|
+
return (0, exports.ClaimsApiFp)(this.configuration).updateClaim(requestParameters.code, requestParameters.updateClaimRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
640
730
|
};
|
|
641
731
|
return ClaimsApi;
|
|
642
732
|
}(base_1.BaseAPI));
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
* DefaultApi - axios parameter creator
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @param {*} [options] Override http request option.
|
|
24
|
+
* @throws {RequiredError}
|
|
25
|
+
*/
|
|
26
|
+
check: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* DefaultApi - functional programming interface
|
|
30
|
+
* @export
|
|
31
|
+
*/
|
|
32
|
+
export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @param {*} [options] Override http request option.
|
|
36
|
+
* @throws {RequiredError}
|
|
37
|
+
*/
|
|
38
|
+
check(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>>;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* DefaultApi - factory interface
|
|
42
|
+
* @export
|
|
43
|
+
*/
|
|
44
|
+
export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @param {*} [options] Override http request option.
|
|
48
|
+
* @throws {RequiredError}
|
|
49
|
+
*/
|
|
50
|
+
check(options?: any): AxiosPromise<InlineResponse200>;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* DefaultApi - object-oriented interface
|
|
54
|
+
* @export
|
|
55
|
+
* @class DefaultApi
|
|
56
|
+
* @extends {BaseAPI}
|
|
57
|
+
*/
|
|
58
|
+
export declare class DefaultApi extends BaseAPI {
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @param {*} [options] Override http request option.
|
|
62
|
+
* @throws {RequiredError}
|
|
63
|
+
* @memberof DefaultApi
|
|
64
|
+
*/
|
|
65
|
+
check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any>>;
|
|
66
|
+
}
|