@star-insure/sdk 1.1.11 → 1.1.14

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 (93) hide show
  1. package/dist/components/common/Button.d.ts +14 -0
  2. package/dist/components/common/Card.d.ts +7 -0
  3. package/dist/components/common/Modal.d.ts +9 -0
  4. package/dist/components/common/Pagination.d.ts +9 -0
  5. package/dist/components/common/ToastItem.d.ts +3 -0
  6. package/dist/components/common/Toasts.d.ts +2 -0
  7. package/dist/components/common/index.d.ts +7 -0
  8. package/dist/components/forms/DateOfBirthField.d.ts +7 -0
  9. package/dist/components/forms/ErrorList.d.ts +10 -0
  10. package/dist/components/forms/FormTester.d.ts +6 -0
  11. package/dist/components/forms/MoneyField.d.ts +11 -0
  12. package/dist/components/forms/RegistrationSearchField.d.ts +23 -0
  13. package/dist/components/forms/index.d.ts +6 -0
  14. package/dist/components/index.d.ts +3 -0
  15. package/dist/components/tables/Table.d.ts +6 -0
  16. package/dist/components/tables/TableActions.d.ts +7 -0
  17. package/dist/components/tables/TableBody.d.ts +7 -0
  18. package/dist/components/tables/TableCell.d.ts +7 -0
  19. package/dist/components/tables/TableHead.d.ts +7 -0
  20. package/dist/components/tables/TableHeader.d.ts +9 -0
  21. package/dist/components/tables/TableRow.d.ts +8 -0
  22. package/dist/components/tables/index.d.ts +8 -0
  23. package/{index.js → dist/index.d.ts} +3 -4
  24. package/dist/index.js +8 -0
  25. package/dist/lib/addressFinder.d.ts +54 -0
  26. package/dist/lib/auth.d.ts +2 -0
  27. package/dist/lib/calculateAge.d.ts +5 -0
  28. package/dist/lib/clickOutside.d.ts +1 -0
  29. package/dist/lib/dates.d.ts +8 -0
  30. package/dist/lib/index.d.ts +12 -0
  31. package/dist/lib/inertiaOptions.d.ts +6 -0
  32. package/dist/lib/localStorage.d.ts +1 -0
  33. package/dist/lib/money.d.ts +32 -0
  34. package/dist/lib/quoteRequestForm.d.ts +19 -0
  35. package/dist/lib/quoteRequestOptions.d.ts +11 -0
  36. package/dist/lib/toast.d.ts +10 -0
  37. package/dist/lib/vehicles.d.ts +2 -0
  38. package/dist/sdk.cjs.development.js +2005 -0
  39. package/dist/sdk.cjs.development.js.map +1 -0
  40. package/dist/sdk.cjs.production.min.js +2 -0
  41. package/dist/sdk.cjs.production.min.js.map +1 -0
  42. package/dist/sdk.esm.js +1955 -0
  43. package/dist/sdk.esm.js.map +1 -0
  44. package/dist/types/api/auth.d.ts +9 -0
  45. package/dist/types/api/enums.d.ts +4 -0
  46. package/dist/types/api/index.d.ts +31 -0
  47. package/dist/types/api/responses/claimRequestActions.d.ts +12 -0
  48. package/dist/types/api/responses/index.d.ts +1 -0
  49. package/dist/types/index.d.ts +3 -0
  50. package/dist/types/misc/index.d.ts +8 -0
  51. package/dist/types/misc/inertia.d.ts +8 -0
  52. package/dist/types/models/auth/Group.d.ts +10 -0
  53. package/dist/types/models/auth/Permission.d.ts +4 -0
  54. package/dist/types/models/auth/Role.d.ts +6 -0
  55. package/dist/types/models/auth/User.d.ts +12 -0
  56. package/dist/types/models/auth/index.d.ts +4 -0
  57. package/dist/types/models/claims/ClaimRequest.d.ts +287 -0
  58. package/dist/types/models/claims/index.d.ts +1 -0
  59. package/dist/types/models/index.d.ts +6 -0
  60. package/dist/types/models/oracle/Risk.d.ts +8 -0
  61. package/dist/types/models/oracle/TableData.d.ts +9 -0
  62. package/dist/types/models/oracle/index.d.ts +2 -0
  63. package/dist/types/models/payments/Gateways.d.ts +1 -0
  64. package/dist/types/models/payments/Payment.d.ts +35 -0
  65. package/dist/types/models/payments/index.d.ts +2 -0
  66. package/dist/types/models/quotes/Club.d.ts +4 -0
  67. package/dist/types/models/quotes/EmailContentOption.d.ts +7 -0
  68. package/dist/types/models/quotes/InformationRequest.d.ts +34 -0
  69. package/dist/types/models/quotes/Lead.d.ts +17 -0
  70. package/dist/types/models/quotes/MotorwebVehicle.d.ts +120 -0
  71. package/dist/types/models/quotes/PolicyBenefit.d.ts +16 -0
  72. package/dist/types/models/quotes/PolicyEnhancement.d.ts +11 -0
  73. package/dist/types/models/quotes/PostalAddress.d.ts +7 -0
  74. package/dist/types/models/quotes/PromoCode.d.ts +18 -0
  75. package/dist/types/models/quotes/QuoteRequest.d.ts +88 -0
  76. package/dist/types/models/quotes/QuoteRequestDeclaration.d.ts +22 -0
  77. package/dist/types/models/quotes/QuoteRequestForm.d.ts +112 -0
  78. package/dist/types/models/quotes/QuoteRequestIncident.d.ts +5 -0
  79. package/dist/types/models/quotes/QuoteRequestLog.d.ts +10 -0
  80. package/dist/types/models/quotes/QuoteRequestOptions.d.ts +59 -0
  81. package/dist/types/models/quotes/QuoteRequestPurchaseOption.d.ts +35 -0
  82. package/dist/types/models/quotes/QuoteRequestReferrer.d.ts +7 -0
  83. package/dist/types/models/quotes/QuoteRequestReferrerCategory.d.ts +4 -0
  84. package/dist/types/models/quotes/QuoteRequestVehicle.d.ts +20 -0
  85. package/dist/types/models/quotes/QuoteRequestVehicleDriver.d.ts +10 -0
  86. package/dist/types/models/quotes/RedbookVehicle.d.ts +55 -0
  87. package/dist/types/models/quotes/StreetAddress.d.ts +8 -0
  88. package/dist/types/models/quotes/index.d.ts +22 -0
  89. package/dist/types/models/sms-messages/SmsContentOption.d.ts +7 -0
  90. package/dist/types/models/sms-messages/SmsMessage.d.ts +18 -0
  91. package/dist/types/models/sms-messages/SmsMessageReply.d.ts +10 -0
  92. package/dist/types/models/sms-messages/index.d.ts +3 -0
  93. package/package.json +11 -5
@@ -0,0 +1,287 @@
1
+ import { Condition, Frequency, VehicleType } from "../../api";
2
+ export declare type ClaimRequestStatus = 'new' | 'draft' | 'in-progress' | 'exported';
3
+ export interface ClaimRequest {
4
+ id: string;
5
+ reference: string;
6
+ 'status': ClaimRequestStatus;
7
+ 'submitted_at': string;
8
+ 'reminder_sent_at': string;
9
+ 'claim_number': string;
10
+ 'policyholder': string;
11
+ 'policy_number': string;
12
+ 'policy_cover_number': string;
13
+ 'policy_version_number': string;
14
+ 'policy_contact_name': string;
15
+ 'mobile': string;
16
+ 'email': string;
17
+ 'alternative_contact': string;
18
+ 'broker_firm': string;
19
+ 'broker_name': string;
20
+ 'address': string;
21
+ 'terms_accepted_by': string;
22
+ }
23
+ export interface DamageClaimRequest extends ClaimRequest {
24
+ 'vehicle_registration': string;
25
+ 'vehicle_vin': string;
26
+ 'vehicle_make': string;
27
+ 'vehicle_model': string;
28
+ 'vehicle_year': string | number;
29
+ 'vehicle_type': VehicleType;
30
+ 'finance_company': string;
31
+ 'finance_phone': string;
32
+ 'driver_name': string;
33
+ 'driver_dob': string;
34
+ 'driver_relationship': string;
35
+ 'driver_licence_number': string;
36
+ 'driver_licence_version': string;
37
+ 'driver_licence_issuer': string;
38
+ 'was_intoxicated': boolean;
39
+ 'intoxicated_details': string;
40
+ 'has_conviction': boolean;
41
+ 'conviction_details': string;
42
+ 'has_recent_claim': boolean;
43
+ 'incident_details': Incident[];
44
+ 'was_disqualified': boolean;
45
+ 'disqualified_details': string;
46
+ 'was_vehicle_used_without_consent': boolean;
47
+ 'vehicle_used_without_consent_details': string;
48
+ 'has_existing_vehicle_damage': boolean;
49
+ 'existing_vehicle_damage_details': string;
50
+ 'was_refused_insurance': boolean;
51
+ 'refused_insurance_details': string;
52
+ 'has_additional_information': boolean;
53
+ 'additional_information_details': string;
54
+ 'accident_location': string;
55
+ 'accident_suburb': string;
56
+ 'accident_happened_at': string;
57
+ 'accident_speed': string;
58
+ 'impact_speed': string;
59
+ 'road_surface': string;
60
+ 'weather_conditions': string;
61
+ 'had_passengers': boolean;
62
+ 'passenger_details': Passenger[];
63
+ 'has_witnesses': boolean;
64
+ 'witness_details': Witness[];
65
+ 'accident_description': string;
66
+ 'is_vehicle_drivable': boolean;
67
+ 'vehicle_drivable_details': string;
68
+ 'was_warning_given': boolean;
69
+ 'warning_given_details': string;
70
+ 'was_third_party_responsible': boolean;
71
+ 'third_party_responsible_details': string;
72
+ 'was_third_party_involved': boolean;
73
+ 'third_party_vehicle_registration': string;
74
+ 'third_party_vehicle_owner': string;
75
+ 'third_party_vehicle_make': string;
76
+ 'third_party_vehicle_model': string;
77
+ 'third_party_vehicle_driver_name': string;
78
+ 'third_party_vehicle_driver_mobile': string;
79
+ 'third_party_vehicle_driver_phone': string;
80
+ 'third_party_vehicle_driver_address': string;
81
+ 'third_party_vehicle_insurance_company': string;
82
+ 'third_party_vehicle_damage': string;
83
+ 'third_party_details_provided': string;
84
+ 'were_police_notified': boolean;
85
+ 'did_police_attend': boolean;
86
+ 'police_officer_name': string;
87
+ 'police_officer_email': string;
88
+ 'police_reference': string;
89
+ 'police_station_address': string;
90
+ 'police_did_test': boolean;
91
+ 'police_issued_notice': boolean;
92
+ 'repairer_name': string;
93
+ 'repairer_phone': string;
94
+ 'repairer_email': string;
95
+ 'is_claiming_protective_gear': boolean;
96
+ 'is_protective_gear_insured_elsewhere': boolean;
97
+ 'protective_gear_details': ClaimItem[];
98
+ 'is_claiming_contents': boolean;
99
+ 'is_contents_insured_elsewhere': boolean;
100
+ 'contents_details': ClaimItem[];
101
+ }
102
+ export interface Incident {
103
+ 'year': string;
104
+ 'month': string;
105
+ 'description': string;
106
+ }
107
+ export interface Passenger {
108
+ 'name': string;
109
+ 'phone'?: string;
110
+ 'email'?: string;
111
+ 'address'?: string;
112
+ }
113
+ export interface Witness {
114
+ 'name': string;
115
+ 'phone'?: string;
116
+ 'email'?: string;
117
+ 'address'?: string;
118
+ }
119
+ export interface ClaimItem {
120
+ 'description': string;
121
+ 'purchased_from'?: string;
122
+ 'age'?: string;
123
+ 'purchase_price'?: string;
124
+ 'replacement_cost'?: string;
125
+ }
126
+ export interface GlassClaimRequest extends ClaimRequest {
127
+ 'vehicle_registration': string;
128
+ 'vehicle_vin': string;
129
+ 'vehicle_make': string;
130
+ 'vehicle_model': string;
131
+ 'vehicle_year': string | number;
132
+ 'accident_location': string;
133
+ 'accident_happened_at': string;
134
+ 'accident_description': string;
135
+ 'repairer_name': string;
136
+ 'repairer_phone': string;
137
+ 'repairer_email': string;
138
+ }
139
+ export interface TheftClaimRequest extends ClaimRequest {
140
+ 'is_registered_under_same_name': boolean;
141
+ 'registered_name': string;
142
+ 'registered_address': string;
143
+ 'registered_phone': string;
144
+ 'is_leased': boolean;
145
+ 'lease_name': string;
146
+ 'lease_address': string;
147
+ 'lease_phone': string;
148
+ 'lease_number': string;
149
+ 'lease_payment_amount': string | number;
150
+ 'lease_payment_frequency': Frequency;
151
+ 'has_conviction': boolean;
152
+ 'conviction_details': string;
153
+ 'has_recent_claim': boolean;
154
+ 'incident_details': Incident[];
155
+ 'was_disqualified': boolean;
156
+ 'disqualified_details': string;
157
+ 'was_vehicle_used_without_consent': boolean;
158
+ 'vehicle_used_without_consent_details': string;
159
+ 'has_existing_vehicle_damage': boolean;
160
+ 'existing_vehicle_damage_details': string;
161
+ 'was_refused_insurance': boolean;
162
+ 'refused_insurance_details': string;
163
+ 'has_additional_information': boolean;
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;
173
+ 'vehicle_purchased_on': string;
174
+ 'vehicle_purchased_from': string;
175
+ 'vehicle_purchased_price': string | number;
176
+ 'vehicle_value': number;
177
+ 'was_vehicle_for_sale': boolean;
178
+ 'vehicle_first_asking_price': string | number;
179
+ 'vehicle_last_asking_price': string | number;
180
+ 'vehicle_sale_duration': string;
181
+ 'vehicle_purchaser_name': string;
182
+ 'vehicle_purchaser_address': string;
183
+ 'vehicle_purchaser_phone': string;
184
+ 'vehicle_hp_cc_rating': string;
185
+ 'vehicle_transmission': string;
186
+ 'vehicle_engine_number': string;
187
+ 'vehicle_has_air_conditioning': boolean;
188
+ 'vehicle_has_cng': boolean;
189
+ 'vehicle_has_lpg': boolean;
190
+ 'vehicle_colour': string;
191
+ 'vehicle_colour_changes': string;
192
+ 'was_vehicle_repaired': boolean;
193
+ 'vehicle_repaired_damage_details': string;
194
+ 'vehicle_repairer': string;
195
+ 'vehicle_repaired_on': string;
196
+ 'was_vehicle_damaged': boolean;
197
+ 'vehicle_damage_details': string;
198
+ 'vehicle_tyre_condition_front_right': Condition;
199
+ 'vehicle_tyre_condition_front_left': Condition;
200
+ 'vehicle_tyre_condition_rear_right': Condition;
201
+ 'vehicle_tyre_condition_rear_left': Condition;
202
+ 'vehicle_tyre_condition_spare': string;
203
+ 'wheel_assembly_details': string;
204
+ 'vehicle_radio_type': string;
205
+ 'vehicle_radio_make': string;
206
+ 'vehicle_radio_location': string;
207
+ 'vehicle_radio_fixing': string;
208
+ 'vehicle_speaker_make': string;
209
+ 'has_additional_accessories': boolean;
210
+ 'accessory_details': Accessory[];
211
+ 'has_identifiable_contents': boolean;
212
+ 'identifiable_contents_details': Contents[];
213
+ 'vehicle_serviced_by': string;
214
+ 'has_service_invoices': boolean;
215
+ 'vehicle_wof_issued_by': string;
216
+ 'vehicle_wof_issued_on': string;
217
+ 'vehicle_wof_expires_on': string;
218
+ 'vehicle_floor_type': string;
219
+ 'vehicle_interior_details': string;
220
+ 'vehicle_seatbelt_type': string;
221
+ 'vehicle_seatbelt_condition': Condition;
222
+ 'vehicle_engine_condition': Condition;
223
+ 'vehicle_gearbox_condition': Condition;
224
+ 'vehicle_transmission_condition': Condition;
225
+ 'vehicle_suspension_condition': Condition;
226
+ 'vehicle_steering_condition': Condition;
227
+ 'vehicle_seats_condition': Condition;
228
+ 'vehicle_trims_condition': Condition;
229
+ 'vehicle_body_condition': Condition;
230
+ 'vehicle_paint_condition': Condition;
231
+ 'vehicle_dashboard_condition': Condition;
232
+ 'did_engine_use_oil': boolean;
233
+ 'vehicle_engine_oil_per_month': string;
234
+ 'vehicle_ran_well': boolean;
235
+ 'vehicle_ran_poorly_details': string;
236
+ 'theft_details': string;
237
+ 'theft_happened_on': string;
238
+ 'theft_discovered_at': string;
239
+ 'last_seen_at': string;
240
+ 'vehicle_last_used_by': string;
241
+ 'address_stolen_from': string;
242
+ 'were_windows_up': boolean;
243
+ 'windows_down_details': string;
244
+ 'were_doors_locked': boolean;
245
+ 'doors_unlocked_details': string;
246
+ 'has_theft_evidence': boolean;
247
+ 'theft_evidence_details': string;
248
+ 'has_steering_lock': boolean;
249
+ 'was_steering_lock_activated': boolean;
250
+ 'has_alarm': boolean;
251
+ 'was_alarm_active': boolean;
252
+ 'alarm_inactive_details': string;
253
+ 'was_boot_locked': boolean;
254
+ 'boot_unlocked_details': string;
255
+ 'keys_count': string;
256
+ 'key_holder_name': string;
257
+ 'key_holder_phone': string;
258
+ 'key_holder_address': string;
259
+ 'keys_location': string;
260
+ 'policyholder_whereabouts_details': string;
261
+ 'were_police_notified': boolean;
262
+ 'did_police_attend': boolean;
263
+ 'police_officer_name': string;
264
+ 'police_officer_email': string;
265
+ 'police_reference': string;
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;
276
+ 'is_claiming_contents': boolean;
277
+ 'is_contents_insured_elsewhere': boolean;
278
+ 'contents_details': ClaimItem[];
279
+ }
280
+ export interface Accessory {
281
+ 'description': string;
282
+ 'age': string;
283
+ 'condition': string;
284
+ }
285
+ export interface Contents {
286
+ 'description': string;
287
+ }
@@ -0,0 +1 @@
1
+ export * from './ClaimRequest';
@@ -0,0 +1,6 @@
1
+ export * from './auth';
2
+ export * from './claims';
3
+ export * from './oracle';
4
+ export * from './quotes';
5
+ export * from './sms-messages';
6
+ export * from './payments';
@@ -0,0 +1,8 @@
1
+ export interface RiskDisplayValue {
2
+ id: number;
3
+ created_at: string;
4
+ updated_at: string;
5
+ RI_CODE: string;
6
+ RI_DESCRIPTION?: string;
7
+ value: string;
8
+ }
@@ -0,0 +1,9 @@
1
+ export interface TableDataDisplayValue {
2
+ id: number;
3
+ created_at: string;
4
+ updated_at: string;
5
+ TBL_TYPE: string;
6
+ TBL_CODE: string;
7
+ TBL_FULLNAME?: string;
8
+ value: string;
9
+ }
@@ -0,0 +1,2 @@
1
+ export * from './Risk';
2
+ export * from './TableData';
@@ -0,0 +1 @@
1
+ export declare type GatewayKey = 'SIS_Windcave_Account2Account' | 'SIS_Windcave_PxPayTradeMe' | 'SIS_Windcave_PxPayMonth' | 'SIS_Windcave_PxPayYear' | 'SIS_Windcave_PxPayStaff' | 'SIS_Windcave_PxPayTradeMeStaff' | 'bind' | 'invoice';
@@ -0,0 +1,35 @@
1
+ import { User } from "../auth";
2
+ import { QuoteRequest } from "../quotes";
3
+ import { GatewayKey } from "./Gateways";
4
+ export declare type PaymentStatus = 'accepted' | 'incomplete' | 'declined';
5
+ export declare type PaymentType = 'quote' | 'account' | 'auction';
6
+ export interface Payment {
7
+ id: string;
8
+ created_at: string;
9
+ updated_at: string;
10
+ status: PaymentStatus;
11
+ reference: string | null;
12
+ client_number: string | null;
13
+ amount: number;
14
+ processing_fee: number | null;
15
+ surcharge_percentage: number | null;
16
+ name: string | null;
17
+ email: string | null;
18
+ phone: string | null;
19
+ mobile: string | null;
20
+ gateway_key: GatewayKey;
21
+ gateway_reference: string;
22
+ payment_type: PaymentType;
23
+ quote_request_purchase_option_id: number | null;
24
+ quote_request_id: string | null;
25
+ email_sent_at: string | null;
26
+ cardholder_name: string;
27
+ card_name: string;
28
+ card_number: string;
29
+ card_expires_at: string;
30
+ card_token: string | null;
31
+ user_id: User['id'] | null;
32
+ return_url: string | null;
33
+ user?: User;
34
+ quoteRequest?: QuoteRequest;
35
+ }
@@ -0,0 +1,2 @@
1
+ export * from './Payment';
2
+ export * from './Gateways';
@@ -0,0 +1,4 @@
1
+ export interface Club {
2
+ id: number;
3
+ name: string;
4
+ }
@@ -0,0 +1,7 @@
1
+ export interface EmailContentOption {
2
+ id: number;
3
+ created_at: string;
4
+ updated_at: string;
5
+ name: string;
6
+ content: string;
7
+ }
@@ -0,0 +1,34 @@
1
+ import { User } from "../auth";
2
+ export declare type InformationRequestStatus = 'open' | 'closed';
3
+ export interface InformationRequest {
4
+ id: string;
5
+ created_at: string;
6
+ updated_at: string;
7
+ user_id: number | null;
8
+ quote_request_id: string;
9
+ subject: string;
10
+ status: InformationRequestStatus;
11
+ messages?: InformationRequestMessage[];
12
+ user?: User;
13
+ }
14
+ export interface InformationRequestMessage {
15
+ id: number;
16
+ created_at: string;
17
+ updated_at: string;
18
+ information_request_id: string;
19
+ user_id: number | null;
20
+ content: string;
21
+ has_been_read_by_customer: boolean;
22
+ sent_at: string;
23
+ received_at: string;
24
+ user?: User;
25
+ attachments?: InformationRequestAttachment[];
26
+ }
27
+ export interface InformationRequestAttachment {
28
+ id: number;
29
+ created_at: string;
30
+ updated_at: string;
31
+ information_request_message_id: string;
32
+ title: string;
33
+ url: string;
34
+ }
@@ -0,0 +1,17 @@
1
+ import { PostalAddress } from "./PostalAddress";
2
+ export interface Lead {
3
+ id: number;
4
+ first_name: string;
5
+ last_name: string;
6
+ email: string;
7
+ mobile: string;
8
+ status: string;
9
+ source: string;
10
+ postal_address_id: PostalAddress['id'];
11
+ current_insurer: string | null;
12
+ current_insurance_expires_at: string | null;
13
+ current_insurance_is_monthly: boolean;
14
+ vehicle_details: string | null;
15
+ notes: string | null;
16
+ import_data: string | null;
17
+ }
@@ -0,0 +1,120 @@
1
+ export interface MotorwebVehicleResponse {
2
+ id: number;
3
+ created_at: string;
4
+ updated_at: string;
5
+ check_type: 'bvi' | 'motorcheck' | 'valuation';
6
+ plate_or_vin: string;
7
+ data: MotorwebVehicle;
8
+ }
9
+ export interface MotorwebVehicle {
10
+ '@attributes': Attributes;
11
+ 'vehicle': BviCheck | MotorvehicleCheck;
12
+ }
13
+ interface Attributes {
14
+ 'version'?: string;
15
+ }
16
+ interface FirstRegistrationDateOverseas {
17
+ 'month'?: string;
18
+ 'year'?: string;
19
+ 'description'?: string;
20
+ }
21
+ interface Registration {
22
+ 'previous-country-of-registration'?: string;
23
+ 'first-registration-date-in-new-zealand'?: string;
24
+ 'registration-status'?: string;
25
+ 'cause-of-last-registration'?: string;
26
+ 'registered-overseas'?: string;
27
+ 'first-registration-date-overseas'?: FirstRegistrationDateOverseas;
28
+ 'last-registration-date'?: string;
29
+ }
30
+ interface Licence {
31
+ 'expiry-date'?: string;
32
+ 'licence-type'?: string;
33
+ 'issue-date'?: string;
34
+ 'issue-time'?: string;
35
+ 'continuous'?: string;
36
+ }
37
+ interface Wof {
38
+ 'last-inspection-date'?: string;
39
+ 'last-inspection-result'?: string;
40
+ 'expiry-date'?: string;
41
+ 'is-subject-to'?: string;
42
+ }
43
+ interface Cof {
44
+ 'is-subject-to'?: string;
45
+ }
46
+ interface Attributes2 {
47
+ 'data-retrieved'?: string;
48
+ }
49
+ interface Ruc {
50
+ '@attributes': Attributes2;
51
+ 'is-subject-to'?: string;
52
+ }
53
+ interface Attributes3 {
54
+ 'current'?: string;
55
+ 'past-plate'?: string;
56
+ }
57
+ interface Plate {
58
+ '@attributes'?: Attributes3;
59
+ 'plate-number'?: string;
60
+ 'plate-type'?: string;
61
+ 'effective-date'?: string;
62
+ }
63
+ interface Attributes4 {
64
+ 'latest'?: string;
65
+ }
66
+ interface OdometerReading {
67
+ '@attributes'?: Attributes4;
68
+ 'reading'?: string;
69
+ 'reading-date'?: string;
70
+ 'reading-unit'?: string;
71
+ 'source'?: string;
72
+ }
73
+ interface Transmission {
74
+ 'type'?: string;
75
+ }
76
+ interface Attributes5 {
77
+ 'current': string;
78
+ 'owner-number': string;
79
+ 'suppressed-reason': string;
80
+ }
81
+ interface Owner {
82
+ '@attributes': Attributes5;
83
+ 'ownership-date': string;
84
+ 'owner-status': string;
85
+ }
86
+ interface BviCheck {
87
+ 'registration'?: Registration;
88
+ 'licence'?: Licence;
89
+ 'wof'?: Wof;
90
+ 'cof'?: Cof;
91
+ 'ruc'?: Ruc;
92
+ 'year-of-manufacture'?: string;
93
+ 'make'?: string;
94
+ 'model'?: string;
95
+ 'mvr-model'?: string;
96
+ 'body-style'?: string;
97
+ 'vehicle-type'?: string;
98
+ 'vin'?: string;
99
+ 'chassis'?: string;
100
+ 'engine-number'?: string;
101
+ 'main-colour'?: string;
102
+ 'cc-rating'?: string;
103
+ 'country-of-origin'?: string;
104
+ 'assembly-type'?: string;
105
+ 'gross-vehicle-mass'?: string;
106
+ 'number-of-seats'?: string;
107
+ 'fuel-type'?: string;
108
+ 'vehicle-usage'?: string;
109
+ 'odometer-unit'?: string;
110
+ 'plate'?: Plate;
111
+ 'odometer-reading'?: OdometerReading;
112
+ 'transmission'?: Transmission;
113
+ 'model-code'?: string;
114
+ 'model-variant'?: string;
115
+ }
116
+ interface MotorvehicleCheck extends BviCheck {
117
+ 'number-of-owners'?: string;
118
+ owner?: Owner;
119
+ }
120
+ export {};
@@ -0,0 +1,16 @@
1
+ export interface PolicyBenefit {
2
+ id?: number;
3
+ name?: string;
4
+ description?: string;
5
+ sort_order?: number;
6
+ icon?: string;
7
+ auto_select?: boolean;
8
+ template_id?: PolicyBenefitTemplate['id'];
9
+ }
10
+ export interface PolicyBenefitTemplate {
11
+ id?: number;
12
+ created_at?: string;
13
+ updated_at?: string;
14
+ name?: string;
15
+ sort_order?: number;
16
+ }
@@ -0,0 +1,11 @@
1
+ import { QuoteRequestPurchaseOption } from "./QuoteRequestPurchaseOption";
2
+ export interface PolicyEnhancement {
3
+ id?: number;
4
+ name?: string;
5
+ description?: string;
6
+ premium?: number;
7
+ disable_rounding?: boolean;
8
+ auto_select?: boolean;
9
+ sold_at?: string;
10
+ purchase_option_id?: QuoteRequestPurchaseOption['id'];
11
+ }
@@ -0,0 +1,7 @@
1
+ export interface PostalAddress {
2
+ id?: number;
3
+ postal_line_1?: string;
4
+ postal_line_2?: string;
5
+ postal_line_3?: string;
6
+ postal_line_4?: string;
7
+ }
@@ -0,0 +1,18 @@
1
+ import { Group, User } from "../auth";
2
+ import { QuoteRequestReferrer } from "./QuoteRequestReferrer";
3
+ import { QuoteRequestReferrerCategory } from "./QuoteRequestReferrerCategory";
4
+ export interface PromoCode {
5
+ id?: number;
6
+ created_at?: string;
7
+ updated_at?: string;
8
+ code?: string;
9
+ user_id?: number;
10
+ group_id?: number;
11
+ referrer_id?: number;
12
+ referrer_category_id?: number;
13
+ advisor_type?: 'agent' | 'broker';
14
+ user?: User;
15
+ group?: Group;
16
+ referrer?: QuoteRequestReferrer;
17
+ category?: QuoteRequestReferrerCategory;
18
+ }