@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.
Files changed (61) hide show
  1. package/.openapi-generator/FILES +12 -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/default-api.ts +124 -0
  6. package/api/settlements-api.ts +105 -198
  7. package/api.ts +4 -0
  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/default-api.d.ts +66 -0
  13. package/dist/api/default-api.js +200 -0
  14. package/dist/api/settlements-api.d.ts +85 -140
  15. package/dist/api/settlements-api.js +70 -117
  16. package/dist/api.d.ts +2 -0
  17. package/dist/api.js +2 -0
  18. package/dist/models/claim-class.d.ts +13 -1
  19. package/dist/models/claim-status-class.d.ts +36 -0
  20. package/dist/models/create-claim-request-dto.d.ts +13 -1
  21. package/dist/models/create-claim-status-request-dto.d.ts +30 -0
  22. package/dist/models/create-claim-status-response-class.d.ts +25 -0
  23. package/dist/models/{delete-settlement-request-dto.d.ts → get-claim-status-response-class.d.ts} +7 -12
  24. package/{models/delete-response-class.ts → dist/models/get-claim-status-response-class.js} +2 -17
  25. package/dist/models/index.d.ts +10 -3
  26. package/dist/models/index.js +10 -3
  27. package/dist/models/inline-response200.d.ts +54 -0
  28. package/dist/models/inline-response200.js +15 -0
  29. package/dist/models/inline-response503.d.ts +54 -0
  30. package/dist/models/inline-response503.js +15 -0
  31. package/dist/models/list-claim-statuses-response-class.d.ts +31 -0
  32. package/dist/models/list-claim-statuses-response-class.js +15 -0
  33. package/dist/models/{list-claim-response-class.d.ts → list-claims-response-class.d.ts} +4 -4
  34. package/dist/models/list-claims-response-class.js +15 -0
  35. package/dist/models/patch-claim-request-dto.d.ts +126 -0
  36. package/dist/models/patch-claim-request-dto.js +15 -0
  37. package/dist/models/{delete-response-class.d.ts → patch-claim-response-class.d.ts} +7 -6
  38. package/dist/models/patch-claim-response-class.js +15 -0
  39. package/dist/models/settlement-class.d.ts +6 -0
  40. package/dist/models/update-claim-request-dto.d.ts +8 -2
  41. package/dist/models/update-settlement-request-dto.d.ts +6 -0
  42. package/models/claim-class.ts +13 -1
  43. package/models/claim-status-class.ts +42 -0
  44. package/models/create-claim-request-dto.ts +13 -1
  45. package/models/create-claim-status-request-dto.ts +36 -0
  46. package/models/create-claim-status-response-class.ts +31 -0
  47. package/models/{delete-settlement-request-dto.ts → get-claim-status-response-class.ts} +7 -12
  48. package/models/index.ts +10 -3
  49. package/models/inline-response200.ts +48 -0
  50. package/models/inline-response503.ts +48 -0
  51. package/models/list-claim-statuses-response-class.ts +37 -0
  52. package/models/{list-claim-response-class.ts → list-claims-response-class.ts} +4 -4
  53. package/models/patch-claim-request-dto.ts +132 -0
  54. package/models/patch-claim-response-class.ts +31 -0
  55. package/models/settlement-class.ts +6 -0
  56. package/models/update-claim-request-dto.ts +8 -2
  57. package/models/update-settlement-request-dto.ts +6 -0
  58. package/package.json +1 -1
  59. /package/dist/models/{delete-response-class.js → claim-status-class.js} +0 -0
  60. /package/dist/models/{delete-settlement-request-dto.js → create-claim-status-request-dto.js} +0 -0
  61. /package/dist/models/{list-claim-response-class.js → create-claim-status-response-class.js} +0 -0
@@ -20,12 +20,24 @@
20
20
  * @interface CreateClaimRequestDto
21
21
  */
22
22
  export interface CreateClaimRequestDto {
23
+ /**
24
+ * Unique number assigned to the claim.
25
+ * @type {string}
26
+ * @memberof CreateClaimRequestDto
27
+ */
28
+ 'claimNumber'?: string;
23
29
  /**
24
30
  * Field to enter the claim title.
25
31
  * @type {string}
26
32
  * @memberof CreateClaimRequestDto
27
33
  */
28
34
  'title': string;
35
+ /**
36
+ * The current status of the claim.
37
+ * @type {string}
38
+ * @memberof CreateClaimRequestDto
39
+ */
40
+ 'status'?: string;
29
41
  /**
30
42
  * Unique identifier of the account that the claim belongs to.
31
43
  * @type {string}
@@ -103,7 +115,7 @@ export interface CreateClaimRequestDto {
103
115
  * @type {string}
104
116
  * @memberof CreateClaimRequestDto
105
117
  */
106
- 'damageDate': string;
118
+ 'damageDate'?: string;
107
119
  /**
108
120
  * The date on which the claim is reported.
109
121
  * @type {string}
@@ -0,0 +1,36 @@
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 CreateClaimStatusRequestDto
21
+ */
22
+ export interface CreateClaimStatusRequestDto {
23
+ /**
24
+ * Name of the claim status. Tenants can add their own custom claim statuses, if default statuses are not suitable for their products.
25
+ * @type {string}
26
+ * @memberof CreateClaimStatusRequestDto
27
+ */
28
+ 'name': string;
29
+ /**
30
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
31
+ * @type {string}
32
+ * @memberof CreateClaimStatusRequestDto
33
+ */
34
+ 'productSlug': string;
35
+ }
36
+
@@ -0,0 +1,31 @@
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
+ import { ClaimStatusClass } from './claim-status-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface CreateClaimStatusResponseClass
22
+ */
23
+ export interface CreateClaimStatusResponseClass {
24
+ /**
25
+ * The claim status response.
26
+ * @type {ClaimStatusClass}
27
+ * @memberof CreateClaimStatusResponseClass
28
+ */
29
+ 'claimStatus': ClaimStatusClass;
30
+ }
31
+
@@ -13,24 +13,19 @@
13
13
  */
14
14
 
15
15
 
16
+ import { ClaimStatusClass } from './claim-status-class';
16
17
 
17
18
  /**
18
19
  *
19
20
  * @export
20
- * @interface DeleteSettlementRequestDto
21
+ * @interface GetClaimStatusResponseClass
21
22
  */
22
- export interface DeleteSettlementRequestDto {
23
+ export interface GetClaimStatusResponseClass {
23
24
  /**
24
- *
25
- * @type {string}
26
- * @memberof DeleteSettlementRequestDto
25
+ * The claim status response.
26
+ * @type {ClaimStatusClass}
27
+ * @memberof GetClaimStatusResponseClass
27
28
  */
28
- 'code': string;
29
- /**
30
- *
31
- * @type {string}
32
- * @memberof DeleteSettlementRequestDto
33
- */
34
- 'claimCode': string;
29
+ 'claimStatus': ClaimStatusClass;
35
30
  }
36
31
 
package/models/index.ts CHANGED
@@ -1,14 +1,21 @@
1
1
  export * from './claim-class';
2
+ export * from './claim-status-class';
2
3
  export * from './create-claim-request-dto';
3
4
  export * from './create-claim-response-class';
5
+ export * from './create-claim-status-request-dto';
6
+ export * from './create-claim-status-response-class';
4
7
  export * from './create-settlement-request-dto';
5
8
  export * from './create-settlement-response-class';
6
- export * from './delete-response-class';
7
- export * from './delete-settlement-request-dto';
8
9
  export * from './get-claim-response-class';
10
+ export * from './get-claim-status-response-class';
9
11
  export * from './get-settlement-response-class';
10
- export * from './list-claim-response-class';
12
+ export * from './inline-response200';
13
+ export * from './inline-response503';
14
+ export * from './list-claim-statuses-response-class';
15
+ export * from './list-claims-response-class';
11
16
  export * from './list-settlements-response-class';
17
+ export * from './patch-claim-request-dto';
18
+ export * from './patch-claim-response-class';
12
19
  export * from './settlement-class';
13
20
  export * from './update-claim-request-dto';
14
21
  export * from './update-claim-response-class';
@@ -0,0 +1,48 @@
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 InlineResponse200
21
+ */
22
+ export interface InlineResponse200 {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof InlineResponse200
27
+ */
28
+ 'status'?: string;
29
+ /**
30
+ *
31
+ * @type {{ [key: string]: { [key: string]: string; }; }}
32
+ * @memberof InlineResponse200
33
+ */
34
+ 'info'?: { [key: string]: { [key: string]: string; }; } | null;
35
+ /**
36
+ *
37
+ * @type {{ [key: string]: { [key: string]: string; }; }}
38
+ * @memberof InlineResponse200
39
+ */
40
+ 'error'?: { [key: string]: { [key: string]: string; }; } | null;
41
+ /**
42
+ *
43
+ * @type {{ [key: string]: { [key: string]: string; }; }}
44
+ * @memberof InlineResponse200
45
+ */
46
+ 'details'?: { [key: string]: { [key: string]: string; }; };
47
+ }
48
+
@@ -0,0 +1,48 @@
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 InlineResponse503
21
+ */
22
+ export interface InlineResponse503 {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof InlineResponse503
27
+ */
28
+ 'status'?: string;
29
+ /**
30
+ *
31
+ * @type {{ [key: string]: { [key: string]: string; }; }}
32
+ * @memberof InlineResponse503
33
+ */
34
+ 'info'?: { [key: string]: { [key: string]: string; }; } | null;
35
+ /**
36
+ *
37
+ * @type {{ [key: string]: { [key: string]: string; }; }}
38
+ * @memberof InlineResponse503
39
+ */
40
+ 'error'?: { [key: string]: { [key: string]: string; }; } | null;
41
+ /**
42
+ *
43
+ * @type {{ [key: string]: { [key: string]: string; }; }}
44
+ * @memberof InlineResponse503
45
+ */
46
+ 'details'?: { [key: string]: { [key: string]: string; }; };
47
+ }
48
+
@@ -0,0 +1,37 @@
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
+ import { ClaimStatusClass } from './claim-status-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface ListClaimStatusesResponseClass
22
+ */
23
+ export interface ListClaimStatusesResponseClass {
24
+ /**
25
+ * The list of claim statuses.
26
+ * @type {Array<ClaimStatusClass>}
27
+ * @memberof ListClaimStatusesResponseClass
28
+ */
29
+ 'items': Array<ClaimStatusClass>;
30
+ /**
31
+ * Next page token.
32
+ * @type {string}
33
+ * @memberof ListClaimStatusesResponseClass
34
+ */
35
+ 'nextPageToken': string;
36
+ }
37
+
@@ -18,19 +18,19 @@ import { ClaimClass } from './claim-class';
18
18
  /**
19
19
  *
20
20
  * @export
21
- * @interface ListClaimResponseClass
21
+ * @interface ListClaimsResponseClass
22
22
  */
23
- export interface ListClaimResponseClass {
23
+ export interface ListClaimsResponseClass {
24
24
  /**
25
25
  * The list of claims.
26
26
  * @type {Array<ClaimClass>}
27
- * @memberof ListClaimResponseClass
27
+ * @memberof ListClaimsResponseClass
28
28
  */
29
29
  'items': Array<ClaimClass>;
30
30
  /**
31
31
  * Next page token.
32
32
  * @type {string}
33
- * @memberof ListClaimResponseClass
33
+ * @memberof ListClaimsResponseClass
34
34
  */
35
35
  'nextPageToken': string;
36
36
  }
@@ -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
+
@@ -0,0 +1,31 @@
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
+ import { ClaimClass } from './claim-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface PatchClaimResponseClass
22
+ */
23
+ export interface PatchClaimResponseClass {
24
+ /**
25
+ * The claim response.
26
+ * @type {ClaimClass}
27
+ * @memberof PatchClaimResponseClass
28
+ */
29
+ 'claim': ClaimClass;
30
+ }
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.4.0",
3
+ "version": "1.6.0",
4
4
  "description": "OpenAPI client for @emilgroup/claim-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [