@star-insure/sdk 0.2.1 → 0.3.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.
@@ -18,7 +18,7 @@ export interface ClaimRequest {
18
18
  'broker_firm': string;
19
19
  'broker_name': string;
20
20
  'address': string;
21
- 'terms_accepted': boolean;
21
+ 'terms_accepted_by': string;
22
22
  }
23
23
  export interface DamageClaimRequest extends ClaimRequest {
24
24
  'vehicle_registration': string;
@@ -137,14 +137,10 @@ export interface GlassClaimRequest extends ClaimRequest {
137
137
  'repairer_email': string;
138
138
  }
139
139
  export interface TheftClaimRequest extends ClaimRequest {
140
- 'vehicle_registration': string;
141
- 'vehicle_vin': string;
142
- 'vehicle_make': string;
143
- 'vehicle_model': string;
144
- 'vehicle_year': string | number;
145
- 'vehicle_type': VehicleType;
146
- 'finance_company': string;
147
- 'finance_phone': string;
140
+ 'is_registered_under_same_name': boolean;
141
+ 'registered_name': string;
142
+ 'registered_address': string;
143
+ 'registered_phone': string;
148
144
  'is_leased': boolean;
149
145
  'lease_name': string;
150
146
  'lease_address': string;
@@ -166,6 +162,14 @@ export interface TheftClaimRequest extends ClaimRequest {
166
162
  'refused_insurance_details': string;
167
163
  'has_additional_information': boolean;
168
164
  'additional_information_details': string;
165
+ 'vehicle_registration': string;
166
+ 'vehicle_vin': string;
167
+ 'vehicle_make': string;
168
+ 'vehicle_model': string;
169
+ 'vehicle_year': string | number;
170
+ 'vehicle_type': VehicleType;
171
+ 'finance_company': string;
172
+ 'finance_phone': string;
169
173
  'vehicle_purchased_on': string;
170
174
  'vehicle_purchased_from': string;
171
175
  'vehicle_purchased_price': string | number;
@@ -197,12 +201,14 @@ export interface TheftClaimRequest extends ClaimRequest {
197
201
  'vehicle_tyre_condition_rear_left': Condition;
198
202
  'vehicle_tyre_condition_spare': string;
199
203
  'wheel_assembly_details': string;
200
- 'is_vehicle_radio_original': boolean;
204
+ 'vehicle_radio_type': string;
201
205
  'vehicle_radio_make': string;
202
206
  'vehicle_radio_location': string;
203
207
  'vehicle_radio_fixing': string;
204
208
  'vehicle_speaker_make': string;
209
+ 'has_additional_accessories': boolean;
205
210
  'accessory_details': Accessory[];
211
+ 'has_identifiable_contents': boolean;
206
212
  'identifiable_contents_details': Contents[];
207
213
  'vehicle_serviced_by': string;
208
214
  'has_service_invoices': boolean;
@@ -223,12 +229,16 @@ export interface TheftClaimRequest extends ClaimRequest {
223
229
  'vehicle_body_condition': Condition;
224
230
  'vehicle_paint_condition': Condition;
225
231
  'vehicle_dashboard_condition': Condition;
232
+ 'did_engine_use_oil': boolean;
226
233
  'vehicle_engine_oil_per_month': string;
227
234
  'vehicle_ran_well': boolean;
235
+ 'vehicle_ran_poorly_details': string;
228
236
  'theft_details': string;
229
237
  'theft_happened_on': string;
230
- 'theft_discovered_on': string;
238
+ 'theft_discovered_at': string;
239
+ 'last_seen_at': string;
231
240
  'vehicle_last_used_by': string;
241
+ 'address_stolen_from': string;
232
242
  'were_windows_up': boolean;
233
243
  'windows_down_details': string;
234
244
  'were_doors_locked': boolean;
@@ -236,6 +246,7 @@ export interface TheftClaimRequest extends ClaimRequest {
236
246
  'has_theft_evidence': boolean;
237
247
  'theft_evidence_details': string;
238
248
  'has_steering_lock': boolean;
249
+ 'was_steering_lock_activated': boolean;
239
250
  'has_alarm': boolean;
240
251
  'was_alarm_active': boolean;
241
252
  'alarm_inactive_details': string;
@@ -253,6 +264,15 @@ export interface TheftClaimRequest extends ClaimRequest {
253
264
  'police_officer_email': string;
254
265
  'police_reference': string;
255
266
  'police_station_address': string;
267
+ 'police_not_notified_details': string;
268
+ 'police_have_suspect': boolean;
269
+ 'police_suspect_details': string;
270
+ 'policyholder_has_suspect': boolean;
271
+ 'policyholder_suspect_details': string;
272
+ 'was_theft_witnessed': boolean;
273
+ 'theft_witnessed_details': string;
274
+ 'has_cctv_footage': boolean;
275
+ 'cctv_footage_details': string;
256
276
  'is_claiming_contents': boolean;
257
277
  'is_contents_insured_elsewhere': boolean;
258
278
  'contents_details': ClaimItem[];
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": "0.2.1",
5
+ "version": "0.3.0",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
@@ -20,7 +20,7 @@ export interface ClaimRequest {
20
20
  'broker_firm': string;
21
21
  'broker_name': string;
22
22
  'address': string;
23
- 'terms_accepted': boolean;
23
+ 'terms_accepted_by': string;
24
24
  }
25
25
 
26
26
  export interface DamageClaimRequest extends ClaimRequest {
@@ -146,14 +146,12 @@ export interface GlassClaimRequest extends ClaimRequest {
146
146
  }
147
147
 
148
148
  export interface TheftClaimRequest extends ClaimRequest {
149
- 'vehicle_registration': string;
150
- 'vehicle_vin': string;
151
- 'vehicle_make': string;
152
- 'vehicle_model': string;
153
- 'vehicle_year': string|number;
154
- 'vehicle_type': VehicleType;
155
- 'finance_company': string;
156
- 'finance_phone': string;
149
+ // Registered owner details
150
+ 'is_registered_under_same_name': boolean;
151
+ 'registered_name': string;
152
+ 'registered_address': string;
153
+ 'registered_phone': string;
154
+ // Lease/hire-purchase details
157
155
  'is_leased': boolean;
158
156
  'lease_name': string;
159
157
  'lease_address': string;
@@ -161,6 +159,7 @@ export interface TheftClaimRequest extends ClaimRequest {
161
159
  'lease_number': string;
162
160
  'lease_payment_amount': string|number;
163
161
  'lease_payment_frequency': Frequency;
162
+ // Declaration details
164
163
  'has_conviction': boolean;
165
164
  'conviction_details': string;
166
165
  'has_recent_claim': boolean;
@@ -175,6 +174,15 @@ export interface TheftClaimRequest extends ClaimRequest {
175
174
  'refused_insurance_details': string;
176
175
  'has_additional_information': boolean;
177
176
  'additional_information_details': string;
177
+ // Vehicle details
178
+ 'vehicle_registration': string;
179
+ 'vehicle_vin': string;
180
+ 'vehicle_make': string;
181
+ 'vehicle_model': string;
182
+ 'vehicle_year': string|number;
183
+ 'vehicle_type': VehicleType;
184
+ 'finance_company': string;
185
+ 'finance_phone': string;
178
186
  'vehicle_purchased_on': string;
179
187
  'vehicle_purchased_from': string;
180
188
  'vehicle_purchased_price': string|number;
@@ -206,12 +214,14 @@ export interface TheftClaimRequest extends ClaimRequest {
206
214
  'vehicle_tyre_condition_rear_left': Condition;
207
215
  'vehicle_tyre_condition_spare': string;
208
216
  'wheel_assembly_details': string;
209
- 'is_vehicle_radio_original': boolean;
217
+ 'vehicle_radio_type': string;
210
218
  'vehicle_radio_make': string;
211
219
  'vehicle_radio_location': string;
212
220
  'vehicle_radio_fixing': string;
213
221
  'vehicle_speaker_make': string;
222
+ 'has_additional_accessories': boolean;
214
223
  'accessory_details': Accessory[];
224
+ 'has_identifiable_contents': boolean;
215
225
  'identifiable_contents_details': Contents[];
216
226
  'vehicle_serviced_by': string;
217
227
  'has_service_invoices': boolean;
@@ -232,12 +242,17 @@ export interface TheftClaimRequest extends ClaimRequest {
232
242
  'vehicle_body_condition': Condition;
233
243
  'vehicle_paint_condition': Condition;
234
244
  'vehicle_dashboard_condition': Condition;
245
+ 'did_engine_use_oil': boolean;
235
246
  'vehicle_engine_oil_per_month': string;
236
247
  'vehicle_ran_well': boolean;
248
+ 'vehicle_ran_poorly_details': string;
249
+ // Theft details
237
250
  'theft_details': string;
238
251
  'theft_happened_on': string;
239
- 'theft_discovered_on': string;
252
+ 'theft_discovered_at': string;
253
+ 'last_seen_at': string;
240
254
  'vehicle_last_used_by': string;
255
+ 'address_stolen_from': string;
241
256
  'were_windows_up': boolean;
242
257
  'windows_down_details': string;
243
258
  'were_doors_locked': boolean;
@@ -245,6 +260,7 @@ export interface TheftClaimRequest extends ClaimRequest {
245
260
  'has_theft_evidence': boolean;
246
261
  'theft_evidence_details': string;
247
262
  'has_steering_lock': boolean;
263
+ 'was_steering_lock_activated': boolean;
248
264
  'has_alarm': boolean;
249
265
  'was_alarm_active': boolean;
250
266
  'alarm_inactive_details': string;
@@ -256,12 +272,23 @@ export interface TheftClaimRequest extends ClaimRequest {
256
272
  'key_holder_address': string;
257
273
  'keys_location': string;
258
274
  'policyholder_whereabouts_details': string;
275
+ // Police details
259
276
  'were_police_notified': boolean;
260
277
  'did_police_attend': boolean;
261
278
  'police_officer_name': string;
262
279
  'police_officer_email': string;
263
280
  'police_reference': string;
264
281
  'police_station_address': string;
282
+ 'police_not_notified_details': string;
283
+ 'police_have_suspect': boolean;
284
+ 'police_suspect_details': string;
285
+ 'policyholder_has_suspect': boolean;
286
+ 'policyholder_suspect_details': string;
287
+ 'was_theft_witnessed': boolean;
288
+ 'theft_witnessed_details': string;
289
+ 'has_cctv_footage': boolean;
290
+ 'cctv_footage_details': string;
291
+ // Contents details
265
292
  'is_claiming_contents': boolean;
266
293
  'is_contents_insured_elsewhere': boolean;
267
294
  'contents_details': ClaimItem[];