@emilgroup/claim-sdk-node 1.3.1 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/.openapi-generator/FILES +8 -3
  2. package/README.md +2 -2
  3. package/api/claim-statuses-api.ts +547 -0
  4. package/api/claims-api.ts +189 -81
  5. package/api/settlements-api.ts +105 -198
  6. package/api.ts +2 -0
  7. package/base.ts +1 -1
  8. package/dist/api/claim-statuses-api.d.ts +309 -0
  9. package/dist/api/claim-statuses-api.js +535 -0
  10. package/dist/api/claims-api.d.ts +124 -59
  11. package/dist/api/claims-api.js +142 -52
  12. package/dist/api/settlements-api.d.ts +85 -140
  13. package/dist/api/settlements-api.js +70 -117
  14. package/dist/api.d.ts +1 -0
  15. package/dist/api.js +1 -0
  16. package/dist/base.js +1 -1
  17. package/dist/models/claim-class.d.ts +18 -0
  18. package/dist/models/claim-status-class.d.ts +36 -0
  19. package/dist/models/create-claim-request-dto.d.ts +13 -1
  20. package/dist/models/create-claim-status-request-dto.d.ts +30 -0
  21. package/dist/models/{delete-settlement-request-dto.d.ts → create-claim-status-response-class.d.ts} +7 -12
  22. package/dist/models/index.d.ts +7 -3
  23. package/dist/models/index.js +7 -3
  24. package/dist/models/list-claim-statuses-response-class.d.ts +31 -0
  25. package/{models/delete-response-class.ts → dist/models/list-claim-statuses-response-class.js} +2 -17
  26. package/dist/models/{list-claim-response-class.d.ts → list-claims-response-class.d.ts} +4 -4
  27. package/dist/models/list-claims-response-class.js +15 -0
  28. package/dist/models/patch-claim-request-dto.d.ts +126 -0
  29. package/dist/models/patch-claim-request-dto.js +15 -0
  30. package/dist/models/{delete-response-class.d.ts → patch-claim-response-class.d.ts} +7 -6
  31. package/dist/models/patch-claim-response-class.js +15 -0
  32. package/dist/models/settlement-class.d.ts +6 -0
  33. package/dist/models/update-claim-request-dto.d.ts +8 -2
  34. package/dist/models/update-settlement-request-dto.d.ts +6 -0
  35. package/models/claim-class.ts +18 -0
  36. package/models/claim-status-class.ts +42 -0
  37. package/models/create-claim-request-dto.ts +13 -1
  38. package/models/create-claim-status-request-dto.ts +36 -0
  39. package/models/create-claim-status-response-class.ts +31 -0
  40. package/models/index.ts +7 -3
  41. package/models/list-claim-statuses-response-class.ts +37 -0
  42. package/models/{list-claim-response-class.ts → list-claims-response-class.ts} +4 -4
  43. package/models/patch-claim-request-dto.ts +132 -0
  44. package/models/{delete-settlement-request-dto.ts → patch-claim-response-class.ts} +7 -12
  45. package/models/settlement-class.ts +6 -0
  46. package/models/update-claim-request-dto.ts +8 -2
  47. package/models/update-settlement-request-dto.ts +6 -0
  48. package/package.json +2 -2
  49. /package/dist/models/{delete-response-class.js → claim-status-class.js} +0 -0
  50. /package/dist/models/{delete-settlement-request-dto.js → create-claim-status-request-dto.js} +0 -0
  51. /package/dist/models/{list-claim-response-class.js → create-claim-status-response-class.js} +0 -0
@@ -0,0 +1,132 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL ClaimService
5
+ * The EMIL ClaimService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface PatchClaimRequestDto
21
+ */
22
+ export interface PatchClaimRequestDto {
23
+ /**
24
+ * Unique identifier of the claim that this object belongs to.
25
+ * @type {string}
26
+ * @memberof PatchClaimRequestDto
27
+ */
28
+ 'code': string;
29
+ /**
30
+ * Field to enter the claim title.
31
+ * @type {string}
32
+ * @memberof PatchClaimRequestDto
33
+ */
34
+ 'title'?: string;
35
+ /**
36
+ * The current status of the claim.
37
+ * @type {string}
38
+ * @memberof PatchClaimRequestDto
39
+ */
40
+ 'status'?: string;
41
+ /**
42
+ * Unique identifier of the account that the claim belongs to.
43
+ * @type {string}
44
+ * @memberof PatchClaimRequestDto
45
+ */
46
+ 'accountCode'?: string;
47
+ /**
48
+ * Field for the policy number that the claim belongs to.
49
+ * @type {string}
50
+ * @memberof PatchClaimRequestDto
51
+ */
52
+ 'policyNumber'?: string;
53
+ /**
54
+ * Field for the policy code that the claim belongs to.
55
+ * @type {string}
56
+ * @memberof PatchClaimRequestDto
57
+ */
58
+ 'policyCode'?: string;
59
+ /**
60
+ * Unique identifier referencing the product.
61
+ * @type {number}
62
+ * @memberof PatchClaimRequestDto
63
+ */
64
+ 'productId'?: number;
65
+ /**
66
+ * Unique identifier referencing the product version.
67
+ * @type {number}
68
+ * @memberof PatchClaimRequestDto
69
+ */
70
+ 'productVersionId'?: number;
71
+ /**
72
+ * The name of the product.
73
+ * @type {string}
74
+ * @memberof PatchClaimRequestDto
75
+ */
76
+ 'productName'?: string;
77
+ /**
78
+ * The insured object identifier that the claim is made for.
79
+ * @type {number}
80
+ * @memberof PatchClaimRequestDto
81
+ */
82
+ 'insuredObjectId'?: number;
83
+ /**
84
+ * The claim\'s description in 5000 characters.
85
+ * @type {string}
86
+ * @memberof PatchClaimRequestDto
87
+ */
88
+ 'description'?: string;
89
+ /**
90
+ * The adjuster of the claim. A claim adjuster investigates insurance claims by interviewing the claimant and witnesses, consulting police and hospital records, and inspecting property damage to determine the extent of the insurance company\'s liability.
91
+ * @type {string}
92
+ * @memberof PatchClaimRequestDto
93
+ */
94
+ 'adjuster'?: string;
95
+ /**
96
+ * A claim reporter is responsible for submitting this claim to the platform. A claim reporter is not necessarily the same as the policy holder.
97
+ * @type {string}
98
+ * @memberof PatchClaimRequestDto
99
+ */
100
+ 'reporter'?: string;
101
+ /**
102
+ * The contact email of the policyholder.
103
+ * @type {string}
104
+ * @memberof PatchClaimRequestDto
105
+ */
106
+ 'contactEmail'?: string;
107
+ /**
108
+ * The contact phone of the policyholder.
109
+ * @type {string}
110
+ * @memberof PatchClaimRequestDto
111
+ */
112
+ 'contactPhone'?: string;
113
+ /**
114
+ * The claim\'s damage date.
115
+ * @type {string}
116
+ * @memberof PatchClaimRequestDto
117
+ */
118
+ 'damageDate'?: string;
119
+ /**
120
+ * The date on which the claim is reported.
121
+ * @type {string}
122
+ * @memberof PatchClaimRequestDto
123
+ */
124
+ 'notificationDate'?: string;
125
+ /**
126
+ * Tenant specific custom fields for claims (e.g. IMEI, Serial Number, etc.).
127
+ * @type {object}
128
+ * @memberof PatchClaimRequestDto
129
+ */
130
+ 'customFields'?: object;
131
+ }
132
+
@@ -13,24 +13,19 @@
13
13
  */
14
14
 
15
15
 
16
+ import { ClaimClass } from './claim-class';
16
17
 
17
18
  /**
18
19
  *
19
20
  * @export
20
- * @interface DeleteSettlementRequestDto
21
+ * @interface PatchClaimResponseClass
21
22
  */
22
- export interface DeleteSettlementRequestDto {
23
+ export interface PatchClaimResponseClass {
23
24
  /**
24
- *
25
- * @type {string}
26
- * @memberof DeleteSettlementRequestDto
25
+ * The claim response.
26
+ * @type {ClaimClass}
27
+ * @memberof PatchClaimResponseClass
27
28
  */
28
- 'code': string;
29
- /**
30
- *
31
- * @type {string}
32
- * @memberof DeleteSettlementRequestDto
33
- */
34
- 'claimCode': string;
29
+ 'claim': ClaimClass;
35
30
  }
36
31
 
@@ -62,6 +62,12 @@ export interface SettlementClass {
62
62
  * @memberof SettlementClass
63
63
  */
64
64
  'claimCode': string;
65
+ /**
66
+ * Unique identifier of the claim to which settlement belongs to.
67
+ * @type {string}
68
+ * @memberof SettlementClass
69
+ */
70
+ 'currency': string;
65
71
  /**
66
72
  * Time at which the object was created.
67
73
  * @type {string}
@@ -26,6 +26,12 @@ export interface UpdateClaimRequestDto {
26
26
  * @memberof UpdateClaimRequestDto
27
27
  */
28
28
  'title': string;
29
+ /**
30
+ * The current status of the claim.
31
+ * @type {string}
32
+ * @memberof UpdateClaimRequestDto
33
+ */
34
+ 'status'?: string;
29
35
  /**
30
36
  * Unique identifier of the account that the claim belongs to.
31
37
  * @type {string}
@@ -103,7 +109,7 @@ export interface UpdateClaimRequestDto {
103
109
  * @type {string}
104
110
  * @memberof UpdateClaimRequestDto
105
111
  */
106
- 'damageDate': string;
112
+ 'damageDate'?: string;
107
113
  /**
108
114
  * The date on which the claim is reported.
109
115
  * @type {string}
@@ -121,6 +127,6 @@ export interface UpdateClaimRequestDto {
121
127
  * @type {string}
122
128
  * @memberof UpdateClaimRequestDto
123
129
  */
124
- 'code'?: string;
130
+ 'code': string;
125
131
  }
126
132
 
@@ -20,6 +20,12 @@
20
20
  * @interface UpdateSettlementRequestDto
21
21
  */
22
22
  export interface UpdateSettlementRequestDto {
23
+ /**
24
+ * The identifier code of the claim.
25
+ * @type {string}
26
+ * @memberof UpdateSettlementRequestDto
27
+ */
28
+ 'code': string;
23
29
  /**
24
30
  * Field to enter the insured object for settlement against a particular claim.
25
31
  * @type {string}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/claim-sdk-node",
3
- "version": "1.3.1",
3
+ "version": "1.5.0",
4
4
  "description": "OpenAPI client for @emilgroup/claim-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -23,7 +23,7 @@
23
23
  "url": "^0.11.0"
24
24
  },
25
25
  "devDependencies": {
26
- "@types/node": "^12.11.5",
26
+ "@types/node": "^12.11.5",
27
27
  "typescript": "^4.0"
28
28
  }
29
29
  }