@emilgroup/claim-sdk 1.33.1-beta.4 → 1.34.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.
@@ -35,7 +35,7 @@ import { ListClaimStatusesResponseClass } from '../models';
35
35
  export const ClaimStatusesApiAxiosParamCreator = function (configuration?: Configuration) {
36
36
  return {
37
37
  /**
38
- * This creates a claim status in the database **Required Permissions** \"claim-management.statuses.create\"
38
+ * This creates a claim status in the database
39
39
  * @summary Create the claim status
40
40
  * @param {CreateClaimStatusRequestDto} createClaimStatusRequestDto
41
41
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -82,7 +82,7 @@ export const ClaimStatusesApiAxiosParamCreator = function (configuration?: Confi
82
82
  };
83
83
  },
84
84
  /**
85
- * Permanently deletes the claim status. Supply the unique id that was returned when you created the claim status and this will delete it. **Required Permissions** \"claim-management.statuses.delete\"
85
+ * Permanently deletes the claim status. Supply the unique id that was returned when you created the claim status and this will delete it.
86
86
  * @summary Delete the claim status
87
87
  * @param {number} id
88
88
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -127,7 +127,7 @@ export const ClaimStatusesApiAxiosParamCreator = function (configuration?: Confi
127
127
  };
128
128
  },
129
129
  /**
130
- * Retrieves the details of the claim status that was previously created. Supply the unique claim status id that was returned when you created it and Emil Api will return the corresponding claim status information. **Required Permissions** \"claim-management.statuses.view\"
130
+ * Retrieves the details of the claim status that was previously created. Supply the unique claim status id that was returned when you created it and Emil Api will return the corresponding claim status information.
131
131
  * @summary Retrieve the claim status
132
132
  * @param {number} id
133
133
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -172,7 +172,7 @@ export const ClaimStatusesApiAxiosParamCreator = function (configuration?: Confi
172
172
  };
173
173
  },
174
174
  /**
175
- * Returns a list of claim statuses you have previously created. The claim statuses are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"claim-management.statuses.view\"
175
+ * Returns a list of claim statuses you have previously created. The claim statuses are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
176
176
  * @summary List claim statuses
177
177
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
178
178
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -258,7 +258,7 @@ export const ClaimStatusesApiFp = function(configuration?: Configuration) {
258
258
  const localVarAxiosParamCreator = ClaimStatusesApiAxiosParamCreator(configuration)
259
259
  return {
260
260
  /**
261
- * This creates a claim status in the database **Required Permissions** \"claim-management.statuses.create\"
261
+ * This creates a claim status in the database
262
262
  * @summary Create the claim status
263
263
  * @param {CreateClaimStatusRequestDto} createClaimStatusRequestDto
264
264
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -270,7 +270,7 @@ export const ClaimStatusesApiFp = function(configuration?: Configuration) {
270
270
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
271
271
  },
272
272
  /**
273
- * Permanently deletes the claim status. Supply the unique id that was returned when you created the claim status and this will delete it. **Required Permissions** \"claim-management.statuses.delete\"
273
+ * Permanently deletes the claim status. Supply the unique id that was returned when you created the claim status and this will delete it.
274
274
  * @summary Delete the claim status
275
275
  * @param {number} id
276
276
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -282,7 +282,7 @@ export const ClaimStatusesApiFp = function(configuration?: Configuration) {
282
282
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
283
283
  },
284
284
  /**
285
- * Retrieves the details of the claim status that was previously created. Supply the unique claim status id that was returned when you created it and Emil Api will return the corresponding claim status information. **Required Permissions** \"claim-management.statuses.view\"
285
+ * Retrieves the details of the claim status that was previously created. Supply the unique claim status id that was returned when you created it and Emil Api will return the corresponding claim status information.
286
286
  * @summary Retrieve the claim status
287
287
  * @param {number} id
288
288
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -294,7 +294,7 @@ export const ClaimStatusesApiFp = function(configuration?: Configuration) {
294
294
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
295
295
  },
296
296
  /**
297
- * Returns a list of claim statuses you have previously created. The claim statuses are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"claim-management.statuses.view\"
297
+ * Returns a list of claim statuses you have previously created. The claim statuses are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
298
298
  * @summary List claim statuses
299
299
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
300
300
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -322,7 +322,7 @@ export const ClaimStatusesApiFactory = function (configuration?: Configuration,
322
322
  const localVarFp = ClaimStatusesApiFp(configuration)
323
323
  return {
324
324
  /**
325
- * This creates a claim status in the database **Required Permissions** \"claim-management.statuses.create\"
325
+ * This creates a claim status in the database
326
326
  * @summary Create the claim status
327
327
  * @param {CreateClaimStatusRequestDto} createClaimStatusRequestDto
328
328
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -333,7 +333,7 @@ export const ClaimStatusesApiFactory = function (configuration?: Configuration,
333
333
  return localVarFp.createClaimStatus(createClaimStatusRequestDto, authorization, options).then((request) => request(axios, basePath));
334
334
  },
335
335
  /**
336
- * Permanently deletes the claim status. Supply the unique id that was returned when you created the claim status and this will delete it. **Required Permissions** \"claim-management.statuses.delete\"
336
+ * Permanently deletes the claim status. Supply the unique id that was returned when you created the claim status and this will delete it.
337
337
  * @summary Delete the claim status
338
338
  * @param {number} id
339
339
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -344,7 +344,7 @@ export const ClaimStatusesApiFactory = function (configuration?: Configuration,
344
344
  return localVarFp.deleteClaimStatus(id, authorization, options).then((request) => request(axios, basePath));
345
345
  },
346
346
  /**
347
- * Retrieves the details of the claim status that was previously created. Supply the unique claim status id that was returned when you created it and Emil Api will return the corresponding claim status information. **Required Permissions** \"claim-management.statuses.view\"
347
+ * Retrieves the details of the claim status that was previously created. Supply the unique claim status id that was returned when you created it and Emil Api will return the corresponding claim status information.
348
348
  * @summary Retrieve the claim status
349
349
  * @param {number} id
350
350
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -355,7 +355,7 @@ export const ClaimStatusesApiFactory = function (configuration?: Configuration,
355
355
  return localVarFp.getClaimStatus(id, authorization, options).then((request) => request(axios, basePath));
356
356
  },
357
357
  /**
358
- * Returns a list of claim statuses you have previously created. The claim statuses are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"claim-management.statuses.view\"
358
+ * Returns a list of claim statuses you have previously created. The claim statuses are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
359
359
  * @summary List claim statuses
360
360
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
361
361
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -508,7 +508,7 @@ export interface ClaimStatusesApiListClaimStatusesRequest {
508
508
  */
509
509
  export class ClaimStatusesApi extends BaseAPI {
510
510
  /**
511
- * This creates a claim status in the database **Required Permissions** \"claim-management.statuses.create\"
511
+ * This creates a claim status in the database
512
512
  * @summary Create the claim status
513
513
  * @param {ClaimStatusesApiCreateClaimStatusRequest} requestParameters Request parameters.
514
514
  * @param {*} [options] Override http request option.
@@ -520,7 +520,7 @@ export class ClaimStatusesApi extends BaseAPI {
520
520
  }
521
521
 
522
522
  /**
523
- * Permanently deletes the claim status. Supply the unique id that was returned when you created the claim status and this will delete it. **Required Permissions** \"claim-management.statuses.delete\"
523
+ * Permanently deletes the claim status. Supply the unique id that was returned when you created the claim status and this will delete it.
524
524
  * @summary Delete the claim status
525
525
  * @param {ClaimStatusesApiDeleteClaimStatusRequest} requestParameters Request parameters.
526
526
  * @param {*} [options] Override http request option.
@@ -532,7 +532,7 @@ export class ClaimStatusesApi extends BaseAPI {
532
532
  }
533
533
 
534
534
  /**
535
- * Retrieves the details of the claim status that was previously created. Supply the unique claim status id that was returned when you created it and Emil Api will return the corresponding claim status information. **Required Permissions** \"claim-management.statuses.view\"
535
+ * Retrieves the details of the claim status that was previously created. Supply the unique claim status id that was returned when you created it and Emil Api will return the corresponding claim status information.
536
536
  * @summary Retrieve the claim status
537
537
  * @param {ClaimStatusesApiGetClaimStatusRequest} requestParameters Request parameters.
538
538
  * @param {*} [options] Override http request option.
@@ -544,7 +544,7 @@ export class ClaimStatusesApi extends BaseAPI {
544
544
  }
545
545
 
546
546
  /**
547
- * Returns a list of claim statuses you have previously created. The claim statuses are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"claim-management.statuses.view\"
547
+ * Returns a list of claim statuses you have previously created. The claim statuses are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
548
548
  * @summary List claim statuses
549
549
  * @param {ClaimStatusesApiListClaimStatusesRequest} requestParameters Request parameters.
550
550
  * @param {*} [options] Override http request option.
package/api/claims-api.ts CHANGED
@@ -45,7 +45,7 @@ import { UpdateClaimResponseClass } from '../models';
45
45
  export const ClaimsApiAxiosParamCreator = function (configuration?: Configuration) {
46
46
  return {
47
47
  /**
48
- * This will create a claim in the database **Required Permissions** \"claim-management.claims.create\"
48
+ * This will create a claim in the database
49
49
  * @summary Create the claim
50
50
  * @param {CreateClaimRequestDto} createClaimRequestDto
51
51
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -92,7 +92,7 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
92
92
  };
93
93
  },
94
94
  /**
95
- * This will delete the requested claim from the database. **Required Permissions** \"claim-management.claims.delete\"
95
+ * This will delete the requested claim from the database.
96
96
  * @summary Delete the claim
97
97
  * @param {string} code
98
98
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -137,7 +137,7 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
137
137
  };
138
138
  },
139
139
  /**
140
- * This will fetch the identified claim from the database by code **Required Permissions** \"claim-management.claims.view\"
140
+ * This will fetch the identified claim from the database by code
141
141
  * @summary Retrieve the claim
142
142
  * @param {string} code
143
143
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -182,7 +182,7 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
182
182
  };
183
183
  },
184
184
  /**
185
- * This endpoint will calculate and get the regulation summary for a claim. **Required Permissions** \"claim-management.claims.view\", \"claim-management.regulations.view\"
185
+ * This endpoint will calculate and get the regulation summary for a claim.
186
186
  * @summary Retrieve the claim regulation summary
187
187
  * @param {string} code Unique identifier for the object.
188
188
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -227,7 +227,7 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
227
227
  };
228
228
  },
229
229
  /**
230
- * 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\"
230
+ * 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.
231
231
  * @summary List claims
232
232
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
233
233
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -303,7 +303,7 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
303
303
  };
304
304
  },
305
305
  /**
306
- * 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\"
306
+ * Updates the identified claim by setting the values of the provided parameters. Any parameters not provided will be left unchanged.
307
307
  * @summary Patch the claim
308
308
  * @param {string} code
309
309
  * @param {PatchClaimRequestDto} patchClaimRequestDto
@@ -354,7 +354,7 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
354
354
  };
355
355
  },
356
356
  /**
357
- * This will update the identified claim in the database **Required Permissions** \"claim-management.claims.update\"
357
+ * This will update the identified claim in the database
358
358
  * @summary Update the claim
359
359
  * @param {string} code
360
360
  * @param {UpdateClaimRequestDto} updateClaimRequestDto
@@ -415,7 +415,7 @@ export const ClaimsApiFp = function(configuration?: Configuration) {
415
415
  const localVarAxiosParamCreator = ClaimsApiAxiosParamCreator(configuration)
416
416
  return {
417
417
  /**
418
- * This will create a claim in the database **Required Permissions** \"claim-management.claims.create\"
418
+ * This will create a claim in the database
419
419
  * @summary Create the claim
420
420
  * @param {CreateClaimRequestDto} createClaimRequestDto
421
421
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -427,7 +427,7 @@ export const ClaimsApiFp = function(configuration?: Configuration) {
427
427
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
428
428
  },
429
429
  /**
430
- * This will delete the requested claim from the database. **Required Permissions** \"claim-management.claims.delete\"
430
+ * This will delete the requested claim from the database.
431
431
  * @summary Delete the claim
432
432
  * @param {string} code
433
433
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -439,7 +439,7 @@ export const ClaimsApiFp = function(configuration?: Configuration) {
439
439
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
440
440
  },
441
441
  /**
442
- * This will fetch the identified claim from the database by code **Required Permissions** \"claim-management.claims.view\"
442
+ * This will fetch the identified claim from the database by code
443
443
  * @summary Retrieve the claim
444
444
  * @param {string} code
445
445
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -451,7 +451,7 @@ export const ClaimsApiFp = function(configuration?: Configuration) {
451
451
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
452
452
  },
453
453
  /**
454
- * This endpoint will calculate and get the regulation summary for a claim. **Required Permissions** \"claim-management.claims.view\", \"claim-management.regulations.view\"
454
+ * This endpoint will calculate and get the regulation summary for a claim.
455
455
  * @summary Retrieve the claim regulation summary
456
456
  * @param {string} code Unique identifier for the object.
457
457
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -463,7 +463,7 @@ export const ClaimsApiFp = function(configuration?: Configuration) {
463
463
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
464
464
  },
465
465
  /**
466
- * 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\"
466
+ * 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.
467
467
  * @summary List claims
468
468
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
469
469
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -481,7 +481,7 @@ export const ClaimsApiFp = function(configuration?: Configuration) {
481
481
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
482
482
  },
483
483
  /**
484
- * 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\"
484
+ * Updates the identified claim by setting the values of the provided parameters. Any parameters not provided will be left unchanged.
485
485
  * @summary Patch the claim
486
486
  * @param {string} code
487
487
  * @param {PatchClaimRequestDto} patchClaimRequestDto
@@ -494,7 +494,7 @@ export const ClaimsApiFp = function(configuration?: Configuration) {
494
494
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
495
495
  },
496
496
  /**
497
- * This will update the identified claim in the database **Required Permissions** \"claim-management.claims.update\"
497
+ * This will update the identified claim in the database
498
498
  * @summary Update the claim
499
499
  * @param {string} code
500
500
  * @param {UpdateClaimRequestDto} updateClaimRequestDto
@@ -517,7 +517,7 @@ export const ClaimsApiFactory = function (configuration?: Configuration, basePat
517
517
  const localVarFp = ClaimsApiFp(configuration)
518
518
  return {
519
519
  /**
520
- * This will create a claim in the database **Required Permissions** \"claim-management.claims.create\"
520
+ * This will create a claim in the database
521
521
  * @summary Create the claim
522
522
  * @param {CreateClaimRequestDto} createClaimRequestDto
523
523
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -528,7 +528,7 @@ export const ClaimsApiFactory = function (configuration?: Configuration, basePat
528
528
  return localVarFp.createClaim(createClaimRequestDto, authorization, options).then((request) => request(axios, basePath));
529
529
  },
530
530
  /**
531
- * This will delete the requested claim from the database. **Required Permissions** \"claim-management.claims.delete\"
531
+ * This will delete the requested claim from the database.
532
532
  * @summary Delete the claim
533
533
  * @param {string} code
534
534
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -539,7 +539,7 @@ export const ClaimsApiFactory = function (configuration?: Configuration, basePat
539
539
  return localVarFp.deleteClaim(code, authorization, options).then((request) => request(axios, basePath));
540
540
  },
541
541
  /**
542
- * This will fetch the identified claim from the database by code **Required Permissions** \"claim-management.claims.view\"
542
+ * This will fetch the identified claim from the database by code
543
543
  * @summary Retrieve the claim
544
544
  * @param {string} code
545
545
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -550,7 +550,7 @@ export const ClaimsApiFactory = function (configuration?: Configuration, basePat
550
550
  return localVarFp.getClaim(code, authorization, options).then((request) => request(axios, basePath));
551
551
  },
552
552
  /**
553
- * This endpoint will calculate and get the regulation summary for a claim. **Required Permissions** \"claim-management.claims.view\", \"claim-management.regulations.view\"
553
+ * This endpoint will calculate and get the regulation summary for a claim.
554
554
  * @summary Retrieve the claim regulation summary
555
555
  * @param {string} code Unique identifier for the object.
556
556
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -561,7 +561,7 @@ export const ClaimsApiFactory = function (configuration?: Configuration, basePat
561
561
  return localVarFp.getClaimRegulationSummary(code, authorization, options).then((request) => request(axios, basePath));
562
562
  },
563
563
  /**
564
- * 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\"
564
+ * 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.
565
565
  * @summary List claims
566
566
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
567
567
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -578,7 +578,7 @@ export const ClaimsApiFactory = function (configuration?: Configuration, basePat
578
578
  return localVarFp.listClaims(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
579
579
  },
580
580
  /**
581
- * 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\"
581
+ * Updates the identified claim by setting the values of the provided parameters. Any parameters not provided will be left unchanged.
582
582
  * @summary Patch the claim
583
583
  * @param {string} code
584
584
  * @param {PatchClaimRequestDto} patchClaimRequestDto
@@ -590,7 +590,7 @@ export const ClaimsApiFactory = function (configuration?: Configuration, basePat
590
590
  return localVarFp.patchClaim(code, patchClaimRequestDto, authorization, options).then((request) => request(axios, basePath));
591
591
  },
592
592
  /**
593
- * This will update the identified claim in the database **Required Permissions** \"claim-management.claims.update\"
593
+ * This will update the identified claim in the database
594
594
  * @summary Update the claim
595
595
  * @param {string} code
596
596
  * @param {UpdateClaimRequestDto} updateClaimRequestDto
@@ -815,7 +815,7 @@ export interface ClaimsApiUpdateClaimRequest {
815
815
  */
816
816
  export class ClaimsApi extends BaseAPI {
817
817
  /**
818
- * This will create a claim in the database **Required Permissions** \"claim-management.claims.create\"
818
+ * This will create a claim in the database
819
819
  * @summary Create the claim
820
820
  * @param {ClaimsApiCreateClaimRequest} requestParameters Request parameters.
821
821
  * @param {*} [options] Override http request option.
@@ -827,7 +827,7 @@ export class ClaimsApi extends BaseAPI {
827
827
  }
828
828
 
829
829
  /**
830
- * This will delete the requested claim from the database. **Required Permissions** \"claim-management.claims.delete\"
830
+ * This will delete the requested claim from the database.
831
831
  * @summary Delete the claim
832
832
  * @param {ClaimsApiDeleteClaimRequest} requestParameters Request parameters.
833
833
  * @param {*} [options] Override http request option.
@@ -839,7 +839,7 @@ export class ClaimsApi extends BaseAPI {
839
839
  }
840
840
 
841
841
  /**
842
- * This will fetch the identified claim from the database by code **Required Permissions** \"claim-management.claims.view\"
842
+ * This will fetch the identified claim from the database by code
843
843
  * @summary Retrieve the claim
844
844
  * @param {ClaimsApiGetClaimRequest} requestParameters Request parameters.
845
845
  * @param {*} [options] Override http request option.
@@ -851,7 +851,7 @@ export class ClaimsApi extends BaseAPI {
851
851
  }
852
852
 
853
853
  /**
854
- * This endpoint will calculate and get the regulation summary for a claim. **Required Permissions** \"claim-management.claims.view\", \"claim-management.regulations.view\"
854
+ * This endpoint will calculate and get the regulation summary for a claim.
855
855
  * @summary Retrieve the claim regulation summary
856
856
  * @param {ClaimsApiGetClaimRegulationSummaryRequest} requestParameters Request parameters.
857
857
  * @param {*} [options] Override http request option.
@@ -863,7 +863,7 @@ export class ClaimsApi extends BaseAPI {
863
863
  }
864
864
 
865
865
  /**
866
- * 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\"
866
+ * 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.
867
867
  * @summary List claims
868
868
  * @param {ClaimsApiListClaimsRequest} requestParameters Request parameters.
869
869
  * @param {*} [options] Override http request option.
@@ -875,7 +875,7 @@ export class ClaimsApi extends BaseAPI {
875
875
  }
876
876
 
877
877
  /**
878
- * 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\"
878
+ * Updates the identified claim by setting the values of the provided parameters. Any parameters not provided will be left unchanged.
879
879
  * @summary Patch the claim
880
880
  * @param {ClaimsApiPatchClaimRequest} requestParameters Request parameters.
881
881
  * @param {*} [options] Override http request option.
@@ -887,7 +887,7 @@ export class ClaimsApi extends BaseAPI {
887
887
  }
888
888
 
889
889
  /**
890
- * This will update the identified claim in the database **Required Permissions** \"claim-management.claims.update\"
890
+ * This will update the identified claim in the database
891
891
  * @summary Update the claim
892
892
  * @param {ClaimsApiUpdateClaimRequest} requestParameters Request parameters.
893
893
  * @param {*} [options] Override http request option.
@@ -39,7 +39,7 @@ import { UpdateSettlementResponseClass } from '../models';
39
39
  export const SettlementsApiAxiosParamCreator = function (configuration?: Configuration) {
40
40
  return {
41
41
  /**
42
- * This will create a settlement against a claim in the database **Required Permissions** \"claim-management.claims.create\"
42
+ * This will create a settlement against a claim in the database
43
43
  * @summary Create the settlement
44
44
  * @param {CreateSettlementRequestDto} createSettlementRequestDto
45
45
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -86,7 +86,7 @@ export const SettlementsApiAxiosParamCreator = function (configuration?: Configu
86
86
  };
87
87
  },
88
88
  /**
89
- * This will delete the requested settlement from the database. **Required Permissions** \"claim-management.claims.delete\"
89
+ * This will delete the requested settlement from the database.
90
90
  * @summary Delete the settlement
91
91
  * @param {string} code
92
92
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -131,7 +131,7 @@ export const SettlementsApiAxiosParamCreator = function (configuration?: Configu
131
131
  };
132
132
  },
133
133
  /**
134
- * Retrieves the details of the settlement that was previously created. Supply the unique settlement code that was returned when you created it and Emil Api will return the corresponding settlement information. **Required Permissions** \"claim-management.claims.view\"
134
+ * Retrieves the details of the settlement that was previously created. Supply the unique settlement code that was returned when you created it and Emil Api will return the corresponding settlement information.
135
135
  * @summary Retrieve the settlement
136
136
  * @param {string} code
137
137
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -176,7 +176,7 @@ export const SettlementsApiAxiosParamCreator = function (configuration?: Configu
176
176
  };
177
177
  },
178
178
  /**
179
- * Returns a list of settlements you have previously created. The settlements 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\"
179
+ * Returns a list of settlements you have previously created. The settlements are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
180
180
  * @summary List settlements
181
181
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
182
182
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -252,7 +252,7 @@ export const SettlementsApiAxiosParamCreator = function (configuration?: Configu
252
252
  };
253
253
  },
254
254
  /**
255
- * Updates the specified settlement by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"claim-management.claims.update\"
255
+ * Updates the specified settlement by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
256
256
  * @summary Update the settlement
257
257
  * @param {string} code
258
258
  * @param {UpdateSettlementRequestDto} updateSettlementRequestDto
@@ -313,7 +313,7 @@ export const SettlementsApiFp = function(configuration?: Configuration) {
313
313
  const localVarAxiosParamCreator = SettlementsApiAxiosParamCreator(configuration)
314
314
  return {
315
315
  /**
316
- * This will create a settlement against a claim in the database **Required Permissions** \"claim-management.claims.create\"
316
+ * This will create a settlement against a claim in the database
317
317
  * @summary Create the settlement
318
318
  * @param {CreateSettlementRequestDto} createSettlementRequestDto
319
319
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -325,7 +325,7 @@ export const SettlementsApiFp = function(configuration?: Configuration) {
325
325
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
326
326
  },
327
327
  /**
328
- * This will delete the requested settlement from the database. **Required Permissions** \"claim-management.claims.delete\"
328
+ * This will delete the requested settlement from the database.
329
329
  * @summary Delete the settlement
330
330
  * @param {string} code
331
331
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -337,7 +337,7 @@ export const SettlementsApiFp = function(configuration?: Configuration) {
337
337
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
338
338
  },
339
339
  /**
340
- * Retrieves the details of the settlement that was previously created. Supply the unique settlement code that was returned when you created it and Emil Api will return the corresponding settlement information. **Required Permissions** \"claim-management.claims.view\"
340
+ * Retrieves the details of the settlement that was previously created. Supply the unique settlement code that was returned when you created it and Emil Api will return the corresponding settlement information.
341
341
  * @summary Retrieve the settlement
342
342
  * @param {string} code
343
343
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -349,7 +349,7 @@ export const SettlementsApiFp = function(configuration?: Configuration) {
349
349
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
350
350
  },
351
351
  /**
352
- * Returns a list of settlements you have previously created. The settlements 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\"
352
+ * Returns a list of settlements you have previously created. The settlements are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
353
353
  * @summary List settlements
354
354
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
355
355
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -367,7 +367,7 @@ export const SettlementsApiFp = function(configuration?: Configuration) {
367
367
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
368
368
  },
369
369
  /**
370
- * Updates the specified settlement by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"claim-management.claims.update\"
370
+ * Updates the specified settlement by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
371
371
  * @summary Update the settlement
372
372
  * @param {string} code
373
373
  * @param {UpdateSettlementRequestDto} updateSettlementRequestDto
@@ -390,7 +390,7 @@ export const SettlementsApiFactory = function (configuration?: Configuration, ba
390
390
  const localVarFp = SettlementsApiFp(configuration)
391
391
  return {
392
392
  /**
393
- * This will create a settlement against a claim in the database **Required Permissions** \"claim-management.claims.create\"
393
+ * This will create a settlement against a claim in the database
394
394
  * @summary Create the settlement
395
395
  * @param {CreateSettlementRequestDto} createSettlementRequestDto
396
396
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -401,7 +401,7 @@ export const SettlementsApiFactory = function (configuration?: Configuration, ba
401
401
  return localVarFp.createSettlement(createSettlementRequestDto, authorization, options).then((request) => request(axios, basePath));
402
402
  },
403
403
  /**
404
- * This will delete the requested settlement from the database. **Required Permissions** \"claim-management.claims.delete\"
404
+ * This will delete the requested settlement from the database.
405
405
  * @summary Delete the settlement
406
406
  * @param {string} code
407
407
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -412,7 +412,7 @@ export const SettlementsApiFactory = function (configuration?: Configuration, ba
412
412
  return localVarFp.deleteSettlement(code, authorization, options).then((request) => request(axios, basePath));
413
413
  },
414
414
  /**
415
- * Retrieves the details of the settlement that was previously created. Supply the unique settlement code that was returned when you created it and Emil Api will return the corresponding settlement information. **Required Permissions** \"claim-management.claims.view\"
415
+ * Retrieves the details of the settlement that was previously created. Supply the unique settlement code that was returned when you created it and Emil Api will return the corresponding settlement information.
416
416
  * @summary Retrieve the settlement
417
417
  * @param {string} code
418
418
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -423,7 +423,7 @@ export const SettlementsApiFactory = function (configuration?: Configuration, ba
423
423
  return localVarFp.getSettlement(code, authorization, options).then((request) => request(axios, basePath));
424
424
  },
425
425
  /**
426
- * Returns a list of settlements you have previously created. The settlements 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\"
426
+ * Returns a list of settlements you have previously created. The settlements are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
427
427
  * @summary List settlements
428
428
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
429
429
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -440,7 +440,7 @@ export const SettlementsApiFactory = function (configuration?: Configuration, ba
440
440
  return localVarFp.listSettlements(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
441
441
  },
442
442
  /**
443
- * Updates the specified settlement by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"claim-management.claims.update\"
443
+ * Updates the specified settlement by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
444
444
  * @summary Update the settlement
445
445
  * @param {string} code
446
446
  * @param {UpdateSettlementRequestDto} updateSettlementRequestDto
@@ -616,7 +616,7 @@ export interface SettlementsApiUpdateSettlementRequest {
616
616
  */
617
617
  export class SettlementsApi extends BaseAPI {
618
618
  /**
619
- * This will create a settlement against a claim in the database **Required Permissions** \"claim-management.claims.create\"
619
+ * This will create a settlement against a claim in the database
620
620
  * @summary Create the settlement
621
621
  * @param {SettlementsApiCreateSettlementRequest} requestParameters Request parameters.
622
622
  * @param {*} [options] Override http request option.
@@ -628,7 +628,7 @@ export class SettlementsApi extends BaseAPI {
628
628
  }
629
629
 
630
630
  /**
631
- * This will delete the requested settlement from the database. **Required Permissions** \"claim-management.claims.delete\"
631
+ * This will delete the requested settlement from the database.
632
632
  * @summary Delete the settlement
633
633
  * @param {SettlementsApiDeleteSettlementRequest} requestParameters Request parameters.
634
634
  * @param {*} [options] Override http request option.
@@ -640,7 +640,7 @@ export class SettlementsApi extends BaseAPI {
640
640
  }
641
641
 
642
642
  /**
643
- * Retrieves the details of the settlement that was previously created. Supply the unique settlement code that was returned when you created it and Emil Api will return the corresponding settlement information. **Required Permissions** \"claim-management.claims.view\"
643
+ * Retrieves the details of the settlement that was previously created. Supply the unique settlement code that was returned when you created it and Emil Api will return the corresponding settlement information.
644
644
  * @summary Retrieve the settlement
645
645
  * @param {SettlementsApiGetSettlementRequest} requestParameters Request parameters.
646
646
  * @param {*} [options] Override http request option.
@@ -652,7 +652,7 @@ export class SettlementsApi extends BaseAPI {
652
652
  }
653
653
 
654
654
  /**
655
- * Returns a list of settlements you have previously created. The settlements 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\"
655
+ * Returns a list of settlements you have previously created. The settlements are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
656
656
  * @summary List settlements
657
657
  * @param {SettlementsApiListSettlementsRequest} requestParameters Request parameters.
658
658
  * @param {*} [options] Override http request option.
@@ -664,7 +664,7 @@ export class SettlementsApi extends BaseAPI {
664
664
  }
665
665
 
666
666
  /**
667
- * Updates the specified settlement by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"claim-management.claims.update\"
667
+ * Updates the specified settlement by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
668
668
  * @summary Update the settlement
669
669
  * @param {SettlementsApiUpdateSettlementRequest} requestParameters Request parameters.
670
670
  * @param {*} [options] Override http request option.
package/common.ts CHANGED
@@ -65,7 +65,7 @@ export const setBearerAuthToObject = async function (object: any, configuration?
65
65
  const accessToken = typeof configuration.accessToken === 'function'
66
66
  ? await configuration.accessToken()
67
67
  : await configuration.accessToken;
68
- object["Authorization"] = "Bearer " + accessToken;
68
+ object["Authorization"] = configuration.getBearerToken(accessToken);
69
69
  }
70
70
  }
71
71
 
@@ -78,7 +78,7 @@ export const setOAuthToObject = async function (object: any, name: string, scope
78
78
  const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
79
79
  ? await configuration.accessToken(name, scopes)
80
80
  : await configuration.accessToken;
81
- object["Authorization"] = "Bearer " + localVarAccessTokenValue;
81
+ object["Authorization"] = configuration.getBearerToken(localVarAccessTokenValue);
82
82
  }
83
83
  }
84
84
 
package/configuration.ts CHANGED
@@ -98,4 +98,13 @@ export class Configuration {
98
98
  const jsonMime: RegExp = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
99
99
  return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
100
100
  }
101
+
102
+ /**
103
+ * Returns "Bearer" token.
104
+ * @param token - access token.
105
+ * @return Bearer token.
106
+ */
107
+ public getBearerToken(token?: string): string {
108
+ return ('' + token).startsWith("Bearer") ? token : "Bearer " + token;
109
+ }
101
110
  }