@star-insure/sdk 1.1.25 → 1.1.26
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.
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Condition, Frequency, VehicleType } from "../../api";
|
|
2
2
|
export declare type ClaimRequestStatus = 'new' | 'draft' | 'in-progress' | 'exported';
|
|
3
3
|
export interface ClaimRequest {
|
|
4
|
-
id: string;
|
|
5
|
-
reference: string;
|
|
4
|
+
'id': string;
|
|
5
|
+
'reference': string;
|
|
6
6
|
'status': ClaimRequestStatus;
|
|
7
7
|
'submitted_at': string;
|
|
8
8
|
'reminder_sent_at': string;
|
|
@@ -19,8 +19,30 @@ export interface ClaimRequest {
|
|
|
19
19
|
'broker_name': string;
|
|
20
20
|
'address': string;
|
|
21
21
|
'terms_accepted_by': string;
|
|
22
|
+
'loss_estimate': string;
|
|
23
|
+
'excess': number;
|
|
24
|
+
'excess_status': string;
|
|
25
|
+
'sum_insured': string;
|
|
26
|
+
'cover_type': string;
|
|
27
|
+
'reserve_expense': string;
|
|
28
|
+
'fault_flag': string;
|
|
29
|
+
'category': string;
|
|
30
|
+
'substatus': string;
|
|
31
|
+
'severity_code': string;
|
|
32
|
+
'action': string;
|
|
33
|
+
'vehicle_type_code': string;
|
|
34
|
+
'vehicle_make_code': string;
|
|
35
|
+
'eglobal_user_id': string;
|
|
36
|
+
'client_comments': string;
|
|
37
|
+
'insurer_comments': string;
|
|
38
|
+
'status_line': string;
|
|
39
|
+
'claim_summary': string;
|
|
40
|
+
'driver_gender': string;
|
|
41
|
+
'is_assessor_required': string;
|
|
42
|
+
'acceptance_code': string;
|
|
22
43
|
}
|
|
23
44
|
export interface DamageClaimRequest extends ClaimRequest {
|
|
45
|
+
'claim_type': 'damage';
|
|
24
46
|
'vehicle_registration': string;
|
|
25
47
|
'vehicle_vin': string;
|
|
26
48
|
'vehicle_make': string;
|
|
@@ -124,6 +146,7 @@ export interface ClaimItem {
|
|
|
124
146
|
'replacement_cost'?: string;
|
|
125
147
|
}
|
|
126
148
|
export interface GlassClaimRequest extends ClaimRequest {
|
|
149
|
+
'claim_type': 'glass';
|
|
127
150
|
'vehicle_registration': string;
|
|
128
151
|
'vehicle_vin': string;
|
|
129
152
|
'vehicle_make': string;
|
|
@@ -137,6 +160,7 @@ export interface GlassClaimRequest extends ClaimRequest {
|
|
|
137
160
|
'repairer_email': string;
|
|
138
161
|
}
|
|
139
162
|
export interface TheftClaimRequest extends ClaimRequest {
|
|
163
|
+
'claim_type': 'theft';
|
|
140
164
|
'is_registered_under_same_name': boolean;
|
|
141
165
|
'registered_name': string;
|
|
142
166
|
'registered_address': string;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@star-insure/sdk",
|
|
3
3
|
"description": "The SDK for Star Insure client apps with shared helper functions and TypeScript definitions.",
|
|
4
4
|
"author": "alexclark_nz",
|
|
5
|
-
"version": "1.1.
|
|
5
|
+
"version": "1.1.26",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
@@ -3,8 +3,8 @@ import { Condition, Frequency, VehicleType } from "../../api";
|
|
|
3
3
|
export type ClaimRequestStatus = 'new' | 'draft' | 'in-progress' | 'exported';
|
|
4
4
|
|
|
5
5
|
export interface ClaimRequest {
|
|
6
|
-
id: string;
|
|
7
|
-
reference: string;
|
|
6
|
+
'id': string;
|
|
7
|
+
'reference': string;
|
|
8
8
|
'status': ClaimRequestStatus;
|
|
9
9
|
'submitted_at': string;
|
|
10
10
|
'reminder_sent_at': string;
|
|
@@ -21,9 +21,32 @@ export interface ClaimRequest {
|
|
|
21
21
|
'broker_name': string;
|
|
22
22
|
'address': string;
|
|
23
23
|
'terms_accepted_by': string;
|
|
24
|
+
|
|
25
|
+
'loss_estimate': number;
|
|
26
|
+
'excess': number;
|
|
27
|
+
'excess_status': string;
|
|
28
|
+
'sum_insured': string;
|
|
29
|
+
'cover_type': string;
|
|
30
|
+
'reserve_expense': string;
|
|
31
|
+
'fault_flag': string;
|
|
32
|
+
'category': string;
|
|
33
|
+
'substatus': string;
|
|
34
|
+
'severity_code': string;
|
|
35
|
+
'action': string;
|
|
36
|
+
'vehicle_type_code': string;
|
|
37
|
+
'vehicle_make_code': string;
|
|
38
|
+
'eglobal_user_id': string;
|
|
39
|
+
'client_comments': string;
|
|
40
|
+
'insurer_comments': string;
|
|
41
|
+
'status_line': string;
|
|
42
|
+
'claim_summary': string;
|
|
43
|
+
'driver_gender': string;
|
|
44
|
+
'is_assessor_required': string;
|
|
45
|
+
'acceptance_code': string;
|
|
24
46
|
}
|
|
25
47
|
|
|
26
48
|
export interface DamageClaimRequest extends ClaimRequest {
|
|
49
|
+
'claim_type': 'damage';
|
|
27
50
|
'vehicle_registration': string;
|
|
28
51
|
'vehicle_vin': string;
|
|
29
52
|
'vehicle_make': string;
|
|
@@ -132,6 +155,7 @@ export interface ClaimItem {
|
|
|
132
155
|
}
|
|
133
156
|
|
|
134
157
|
export interface GlassClaimRequest extends ClaimRequest {
|
|
158
|
+
'claim_type': 'glass';
|
|
135
159
|
'vehicle_registration': string;
|
|
136
160
|
'vehicle_vin': string;
|
|
137
161
|
'vehicle_make': string;
|
|
@@ -146,6 +170,7 @@ export interface GlassClaimRequest extends ClaimRequest {
|
|
|
146
170
|
}
|
|
147
171
|
|
|
148
172
|
export interface TheftClaimRequest extends ClaimRequest {
|
|
173
|
+
'claim_type': 'theft';
|
|
149
174
|
// Registered owner details
|
|
150
175
|
'is_registered_under_same_name': boolean;
|
|
151
176
|
'registered_name': string;
|