@star-insure/sdk 1.0.1 → 1.1.2
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.
- package/package.json +16 -12
- package/src/components/common/Button.tsx +60 -0
- package/src/components/common/Card.tsx +14 -0
- package/src/components/common/Modal.tsx +54 -0
- package/src/components/common/Pagination.tsx +77 -0
- package/src/components/common/ToastItem.tsx +54 -0
- package/src/components/common/Toasts.tsx +16 -0
- package/src/components/common/index.ts +15 -0
- package/src/components/forms/DateOfBirthField.tsx +84 -0
- package/src/components/forms/Errors.tsx +32 -0
- package/src/components/forms/FormTester.tsx +170 -0
- package/src/components/forms/MoneyField.tsx +45 -0
- package/src/components/forms/RegistrationSearchField.tsx +187 -0
- package/src/components/forms/index.ts +13 -0
- package/src/components/index.ts +3 -0
- package/src/components/tables/Table.tsx +19 -0
- package/src/components/tables/TableActions.tsx +14 -0
- package/src/components/tables/TableBody.tsx +14 -0
- package/src/components/tables/TableCell.tsx +14 -0
- package/src/components/tables/TableHead.tsx +14 -0
- package/src/components/tables/TableHeader.tsx +49 -0
- package/src/components/tables/TableRow.tsx +17 -0
- package/src/components/tables/index.ts +17 -0
- package/src/index.ts +1 -0
- package/src/lib/addressFinder.tsx +100 -0
- package/src/lib/auth.tsx +8 -0
- package/src/lib/calculateAge.ts +19 -0
- package/src/lib/clickOutside.tsx +24 -0
- package/src/lib/index.ts +9 -0
- package/src/lib/inertiaOptions.tsx +27 -0
- package/src/lib/localStorage.tsx +41 -0
- package/src/lib/quoteRequestForm.tsx +144 -0
- package/src/lib/quoteRequestOptions.tsx +21 -0
- package/src/lib/toast.tsx +55 -0
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -8
- package/dist/lib/dates.d.ts +0 -8
- package/dist/lib/index.d.ts +0 -3
- package/dist/lib/money.d.ts +0 -32
- package/dist/lib/vehicles.d.ts +0 -2
- package/dist/sdk.cjs.development.js +0 -161
- package/dist/sdk.cjs.development.js.map +0 -1
- package/dist/sdk.cjs.production.min.js +0 -2
- package/dist/sdk.cjs.production.min.js.map +0 -1
- package/dist/sdk.esm.js +0 -148
- package/dist/sdk.esm.js.map +0 -1
- package/dist/types/api/auth.d.ts +0 -9
- package/dist/types/api/enums.d.ts +0 -4
- package/dist/types/api/index.d.ts +0 -31
- package/dist/types/api/responses/claimRequestActions.d.ts +0 -12
- package/dist/types/api/responses/index.d.ts +0 -1
- package/dist/types/index.d.ts +0 -3
- package/dist/types/misc/index.d.ts +0 -8
- package/dist/types/misc/inertia.d.ts +0 -8
- package/dist/types/models/auth/Group.d.ts +0 -10
- package/dist/types/models/auth/Permission.d.ts +0 -4
- package/dist/types/models/auth/Role.d.ts +0 -6
- package/dist/types/models/auth/User.d.ts +0 -12
- package/dist/types/models/auth/index.d.ts +0 -4
- package/dist/types/models/claims/ClaimRequest.d.ts +0 -287
- package/dist/types/models/claims/index.d.ts +0 -1
- package/dist/types/models/index.d.ts +0 -6
- package/dist/types/models/oracle/Risk.d.ts +0 -8
- package/dist/types/models/oracle/TableData.d.ts +0 -9
- package/dist/types/models/oracle/index.d.ts +0 -2
- package/dist/types/models/payments/Gateways.d.ts +0 -1
- package/dist/types/models/payments/Payment.d.ts +0 -35
- package/dist/types/models/payments/index.d.ts +0 -2
- package/dist/types/models/quotes/Club.d.ts +0 -4
- package/dist/types/models/quotes/EmailContentOption.d.ts +0 -7
- package/dist/types/models/quotes/InformationRequest.d.ts +0 -34
- package/dist/types/models/quotes/Lead.d.ts +0 -17
- package/dist/types/models/quotes/MotorwebVehicle.d.ts +0 -120
- package/dist/types/models/quotes/PolicyBenefit.d.ts +0 -16
- package/dist/types/models/quotes/PolicyEnhancement.d.ts +0 -11
- package/dist/types/models/quotes/PostalAddress.d.ts +0 -7
- package/dist/types/models/quotes/PromoCode.d.ts +0 -18
- package/dist/types/models/quotes/QuoteRequest.d.ts +0 -88
- package/dist/types/models/quotes/QuoteRequestDeclaration.d.ts +0 -22
- package/dist/types/models/quotes/QuoteRequestForm.d.ts +0 -112
- package/dist/types/models/quotes/QuoteRequestIncident.d.ts +0 -5
- package/dist/types/models/quotes/QuoteRequestLog.d.ts +0 -10
- package/dist/types/models/quotes/QuoteRequestOptions.d.ts +0 -59
- package/dist/types/models/quotes/QuoteRequestPurchaseOption.d.ts +0 -35
- package/dist/types/models/quotes/QuoteRequestReferrer.d.ts +0 -7
- package/dist/types/models/quotes/QuoteRequestReferrerCategory.d.ts +0 -4
- package/dist/types/models/quotes/QuoteRequestVehicle.d.ts +0 -20
- package/dist/types/models/quotes/QuoteRequestVehicleDriver.d.ts +0 -10
- package/dist/types/models/quotes/RedbookVehicle.d.ts +0 -55
- package/dist/types/models/quotes/StreetAddress.d.ts +0 -8
- package/dist/types/models/quotes/index.d.ts +0 -22
- package/dist/types/models/sms-messages/SmsContentOption.d.ts +0 -7
- package/dist/types/models/sms-messages/SmsMessage.d.ts +0 -18
- package/dist/types/models/sms-messages/SmsMessageReply.d.ts +0 -10
- package/dist/types/models/sms-messages/index.d.ts +0 -3
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export * from './auth';
|
|
2
|
-
export * from './enums';
|
|
3
|
-
export * from './responses';
|
|
4
|
-
export interface ApiResponse<T = any> {
|
|
5
|
-
data: T;
|
|
6
|
-
meta: Meta;
|
|
7
|
-
links: Links;
|
|
8
|
-
status: number;
|
|
9
|
-
ok: boolean;
|
|
10
|
-
}
|
|
11
|
-
export interface Meta {
|
|
12
|
-
current_page: number;
|
|
13
|
-
from: number;
|
|
14
|
-
last_page: number;
|
|
15
|
-
links: PaginationLink[];
|
|
16
|
-
path: string;
|
|
17
|
-
per_page: number;
|
|
18
|
-
to: number;
|
|
19
|
-
total: number;
|
|
20
|
-
}
|
|
21
|
-
export interface Links {
|
|
22
|
-
first: string;
|
|
23
|
-
last: string;
|
|
24
|
-
prev: string | null;
|
|
25
|
-
next: string | null;
|
|
26
|
-
}
|
|
27
|
-
export interface PaginationLink {
|
|
28
|
-
url: string | null;
|
|
29
|
-
label: string;
|
|
30
|
-
active: boolean;
|
|
31
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export interface OraclePolicyMatch {
|
|
2
|
-
ply_covernumber: string;
|
|
3
|
-
ply_verno: string;
|
|
4
|
-
ply_clientnumber: string;
|
|
5
|
-
ply_riskcode: string;
|
|
6
|
-
ply_effdate: string;
|
|
7
|
-
ply_current: '-1' | '0';
|
|
8
|
-
client?: {
|
|
9
|
-
cli_clientnumber: string;
|
|
10
|
-
cli_emailaddress?: string;
|
|
11
|
-
};
|
|
12
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './claimRequestActions';
|
package/dist/types/index.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { ErrorBag, Errors, Page, PageProps as PagePropsInterface } from "@inertiajs/inertia";
|
|
2
|
-
import { AuthContext } from '../..';
|
|
3
|
-
export interface PageProps extends Page<PagePropsInterface> {
|
|
4
|
-
props: {
|
|
5
|
-
auth: AuthContext;
|
|
6
|
-
errors: Errors & ErrorBag;
|
|
7
|
-
};
|
|
8
|
-
}
|
|
@@ -1,287 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './ClaimRequest';
|
|
@@ -1 +0,0 @@
|
|
|
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';
|
|
@@ -1,35 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,120 +0,0 @@
|
|
|
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 {};
|