@star-insure/sdk 5.0.13 → 6.0.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 (109) hide show
  1. package/README.md +30 -1
  2. package/dist/index.d.ts +1810 -3
  3. package/dist/sdk.es.js +9436 -0
  4. package/dist/sdk.es.js.map +1 -0
  5. package/package.json +22 -45
  6. package/src/{tailwind-preset.js → tailwind-preset.cjs} +1 -0
  7. package/dist/components/common/Button.d.ts +0 -15
  8. package/dist/components/common/Card.d.ts +0 -7
  9. package/dist/components/common/Modal.d.ts +0 -11
  10. package/dist/components/common/Pagination.d.ts +0 -10
  11. package/dist/components/common/SimplePagination.d.ts +0 -10
  12. package/dist/components/common/ToastItem.d.ts +0 -3
  13. package/dist/components/common/Toasts.d.ts +0 -2
  14. package/dist/components/common/index.d.ts +0 -8
  15. package/dist/components/filter/Action.d.ts +0 -3
  16. package/dist/components/filter/Back.d.ts +0 -5
  17. package/dist/components/filter/Dropdown.d.ts +0 -9
  18. package/dist/components/filter/FilterItem.d.ts +0 -6
  19. package/dist/components/filter/FilterOptions.d.ts +0 -5
  20. package/dist/components/filter/PageHeader.d.ts +0 -21
  21. package/dist/components/filter/SearchBar.d.ts +0 -10
  22. package/dist/components/filter/index.d.ts +0 -1
  23. package/dist/components/forms/DateOfBirthField.d.ts +0 -12
  24. package/dist/components/forms/ErrorList.d.ts +0 -10
  25. package/dist/components/forms/FormTester.d.ts +0 -6
  26. package/dist/components/forms/MoneyField.d.ts +0 -11
  27. package/dist/components/forms/RegistrationSearchField.d.ts +0 -29
  28. package/dist/components/forms/index.d.ts +0 -6
  29. package/dist/components/index.d.ts +0 -4
  30. package/dist/components/tables/Table.d.ts +0 -6
  31. package/dist/components/tables/TableActions.d.ts +0 -7
  32. package/dist/components/tables/TableBody.d.ts +0 -7
  33. package/dist/components/tables/TableCell.d.ts +0 -8
  34. package/dist/components/tables/TableHead.d.ts +0 -7
  35. package/dist/components/tables/TableHeader.d.ts +0 -10
  36. package/dist/components/tables/TableRow.d.ts +0 -8
  37. package/dist/components/tables/index.d.ts +0 -8
  38. package/dist/index.js +0 -8
  39. package/dist/lib/addressFinder.d.ts +0 -54
  40. package/dist/lib/auth.d.ts +0 -2
  41. package/dist/lib/calculateAge.d.ts +0 -4
  42. package/dist/lib/calculatePricing.d.ts +0 -19
  43. package/dist/lib/clickOutside.d.ts +0 -1
  44. package/dist/lib/dates.d.ts +0 -20
  45. package/dist/lib/fetch.d.ts +0 -20
  46. package/dist/lib/index.d.ts +0 -14
  47. package/dist/lib/inertiaOptions.d.ts +0 -6
  48. package/dist/lib/localStorage.d.ts +0 -1
  49. package/dist/lib/money.d.ts +0 -32
  50. package/dist/lib/page.d.ts +0 -19
  51. package/dist/lib/quoteRequestForm.d.ts +0 -21
  52. package/dist/lib/quoteRequestOptions.d.ts +0 -11
  53. package/dist/lib/toast.d.ts +0 -10
  54. package/dist/lib/vehicles.d.ts +0 -2
  55. package/dist/sdk.cjs.development.js +0 -3398
  56. package/dist/sdk.cjs.development.js.map +0 -1
  57. package/dist/sdk.cjs.production.min.js +0 -2
  58. package/dist/sdk.cjs.production.min.js.map +0 -1
  59. package/dist/sdk.esm.js +0 -3339
  60. package/dist/sdk.esm.js.map +0 -1
  61. package/dist/types/api/auth.d.ts +0 -35
  62. package/dist/types/api/enums.d.ts +0 -4
  63. package/dist/types/api/index.d.ts +0 -31
  64. package/dist/types/api/responses/claimRequestActions.d.ts +0 -12
  65. package/dist/types/api/responses/index.d.ts +0 -1
  66. package/dist/types/index.d.ts +0 -3
  67. package/dist/types/misc/index.d.ts +0 -47
  68. package/dist/types/models/auth/Group.d.ts +0 -10
  69. package/dist/types/models/auth/Permission.d.ts +0 -4
  70. package/dist/types/models/auth/Role.d.ts +0 -8
  71. package/dist/types/models/auth/User.d.ts +0 -17
  72. package/dist/types/models/auth/index.d.ts +0 -4
  73. package/dist/types/models/claims/ClaimRequest.d.ts +0 -328
  74. package/dist/types/models/claims/index.d.ts +0 -1
  75. package/dist/types/models/index.d.ts +0 -6
  76. package/dist/types/models/oracle/Risk.d.ts +0 -8
  77. package/dist/types/models/oracle/TableData.d.ts +0 -9
  78. package/dist/types/models/oracle/index.d.ts +0 -2
  79. package/dist/types/models/payments/Gateways.d.ts +0 -1
  80. package/dist/types/models/payments/Payment.d.ts +0 -36
  81. package/dist/types/models/payments/index.d.ts +0 -2
  82. package/dist/types/models/quotes/Blacklist.d.ts +0 -20
  83. package/dist/types/models/quotes/Club.d.ts +0 -4
  84. package/dist/types/models/quotes/EmailContentOption.d.ts +0 -7
  85. package/dist/types/models/quotes/InformationRequest.d.ts +0 -34
  86. package/dist/types/models/quotes/Lead.d.ts +0 -17
  87. package/dist/types/models/quotes/MotorwebVehicle.d.ts +0 -120
  88. package/dist/types/models/quotes/PolicyBenefit.d.ts +0 -16
  89. package/dist/types/models/quotes/PolicyEnhancement.d.ts +0 -13
  90. package/dist/types/models/quotes/PostalAddress.d.ts +0 -7
  91. package/dist/types/models/quotes/PromoCode.d.ts +0 -18
  92. package/dist/types/models/quotes/QuoteRequest.d.ts +0 -110
  93. package/dist/types/models/quotes/QuoteRequestDeclaration.d.ts +0 -22
  94. package/dist/types/models/quotes/QuoteRequestForm.d.ts +0 -113
  95. package/dist/types/models/quotes/QuoteRequestIncident.d.ts +0 -6
  96. package/dist/types/models/quotes/QuoteRequestLog.d.ts +0 -11
  97. package/dist/types/models/quotes/QuoteRequestOptions.d.ts +0 -62
  98. package/dist/types/models/quotes/QuoteRequestPurchaseOption.d.ts +0 -38
  99. package/dist/types/models/quotes/QuoteRequestReferrer.d.ts +0 -9
  100. package/dist/types/models/quotes/QuoteRequestReferrerCategory.d.ts +0 -6
  101. package/dist/types/models/quotes/QuoteRequestVehicle.d.ts +0 -23
  102. package/dist/types/models/quotes/QuoteRequestVehicleDriver.d.ts +0 -11
  103. package/dist/types/models/quotes/RedbookVehicle.d.ts +0 -55
  104. package/dist/types/models/quotes/StreetAddress.d.ts +0 -8
  105. package/dist/types/models/quotes/index.d.ts +0 -23
  106. package/dist/types/models/sms-messages/SmsContentOption.d.ts +0 -7
  107. package/dist/types/models/sms-messages/SmsMessage.d.ts +0 -18
  108. package/dist/types/models/sms-messages/SmsMessageReply.d.ts +0 -10
  109. package/dist/types/models/sms-messages/index.d.ts +0 -3
@@ -1,4 +0,0 @@
1
- export interface Permission {
2
- id: number;
3
- name: string;
4
- }
@@ -1,8 +0,0 @@
1
- import { Permission } from ".";
2
- import { UserContext } from "../../api";
3
- export interface Role {
4
- id: number;
5
- name: string;
6
- context: UserContext;
7
- permissions?: Permission[];
8
- }
@@ -1,17 +0,0 @@
1
- import { Group } from '.';
2
- import { TwoFactorAuthMethod } from '../../api';
3
- export interface User {
4
- id: number;
5
- oracle_user_id?: string;
6
- name: string;
7
- email: string;
8
- mobile?: string;
9
- direct_dial?: string;
10
- position?: string;
11
- is_group_admin?: boolean;
12
- umbrella_filter?: string;
13
- groups?: Group[];
14
- permissions?: string[];
15
- phone_extension?: number;
16
- two_factor_method?: TwoFactorAuthMethod;
17
- }
@@ -1,4 +0,0 @@
1
- export * from './User';
2
- export * from './Group';
3
- export * from './Role';
4
- export * from './Permission';
@@ -1,328 +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
- 'loss_estimate'?: number;
23
- 'excess'?: number;
24
- 'excess_status'?: string;
25
- 'sum_insured'?: number;
26
- 'cover_type'?: string;
27
- 'reserve_expense'?: number;
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'?: boolean;
42
- 'acceptance_code'?: string;
43
- 'client_number'?: string;
44
- 'attachments'?: ClaimRequestAttachment[];
45
- 'notes'?: string;
46
- }
47
- export interface ClaimRequestAttachment {
48
- 'id': number;
49
- 'created_at': string;
50
- 'updated_at': string;
51
- 'claim_request_id': ClaimRequest['id'];
52
- 'title': string;
53
- 'url': string;
54
- 'disk'?: string;
55
- 'claim_request_type'?: string;
56
- }
57
- export interface DamageClaimRequest extends ClaimRequest {
58
- 'claim_type': 'damage';
59
- 'vehicle_registration'?: string;
60
- 'vehicle_vin'?: string;
61
- 'vehicle_make_and_model'?: string;
62
- 'vehicle_make'?: string;
63
- 'vehicle_model'?: string;
64
- 'vehicle_year'?: string | number;
65
- 'vehicle_type'?: VehicleType;
66
- 'finance_company'?: string;
67
- 'finance_phone'?: string;
68
- 'driver_name'?: string;
69
- 'driver_dob'?: string;
70
- 'driver_relationship'?: string;
71
- 'driver_licence_number'?: string;
72
- 'driver_licence_version'?: string;
73
- 'driver_licence_issuer'?: string;
74
- 'was_intoxicated'?: boolean;
75
- 'intoxicated_details'?: string;
76
- 'has_conviction'?: boolean;
77
- 'conviction_details'?: string;
78
- 'has_recent_claim'?: boolean;
79
- 'incident_details'?: Incident[];
80
- 'was_disqualified'?: boolean;
81
- 'disqualified_details'?: string;
82
- 'was_vehicle_used_without_consent'?: boolean;
83
- 'vehicle_used_without_consent_details'?: string;
84
- 'has_existing_vehicle_damage'?: boolean;
85
- 'existing_vehicle_damage_details'?: string;
86
- 'was_refused_insurance'?: boolean;
87
- 'refused_insurance_details'?: string;
88
- 'has_additional_information'?: boolean;
89
- 'additional_information_details'?: string;
90
- 'accident_location'?: string;
91
- 'accident_suburb'?: string;
92
- 'loss_happened_at'?: string;
93
- 'accident_speed'?: string;
94
- 'impact_speed'?: string;
95
- 'road_surface'?: string;
96
- 'weather_conditions'?: string;
97
- 'had_passengers'?: boolean;
98
- 'passenger_details'?: Passenger[];
99
- 'has_witnesses'?: boolean;
100
- 'witness_details'?: Witness[];
101
- 'accident_description'?: string;
102
- 'vehicle_location'?: string;
103
- 'is_vehicle_drivable'?: boolean;
104
- 'vehicle_drivable_details'?: string;
105
- 'was_warning_given'?: boolean;
106
- 'warning_given_details'?: string;
107
- 'was_third_party_responsible'?: boolean;
108
- 'third_party_responsible_details'?: string;
109
- 'was_third_party_involved'?: boolean;
110
- 'third_party_vehicle_registration'?: string;
111
- 'third_party_vehicle_owner'?: string;
112
- 'third_party_vehicle_make'?: string;
113
- 'third_party_vehicle_model'?: string;
114
- 'third_party_vehicle_driver_name'?: string;
115
- 'third_party_vehicle_driver_mobile'?: string;
116
- 'third_party_vehicle_driver_phone'?: string;
117
- 'third_party_vehicle_driver_address'?: string;
118
- 'third_party_vehicle_insurance_company'?: string;
119
- 'third_party_vehicle_damage'?: string;
120
- 'third_party_details_provided'?: string;
121
- 'were_police_notified'?: boolean;
122
- 'did_police_attend'?: boolean;
123
- 'police_officer_name'?: string;
124
- 'police_officer_email'?: string;
125
- 'police_reference'?: string;
126
- 'police_station_address'?: string;
127
- 'police_did_test'?: boolean;
128
- 'police_issued_notice'?: boolean;
129
- 'repairer_name'?: string;
130
- 'repairer_phone'?: string;
131
- 'repairer_email'?: string;
132
- 'is_claiming_protective_gear'?: boolean;
133
- 'is_protective_gear_insured_elsewhere'?: boolean;
134
- 'protective_gear_details'?: ClaimItem[];
135
- 'is_claiming_contents'?: boolean;
136
- 'is_contents_insured_elsewhere'?: boolean;
137
- 'contents_details'?: ClaimItem[];
138
- }
139
- export interface Incident {
140
- 'year': string;
141
- 'month': string;
142
- 'description': string;
143
- }
144
- export interface Passenger {
145
- 'name': string;
146
- 'phone'?: string;
147
- 'email'?: string;
148
- 'address'?: string;
149
- }
150
- export interface Witness {
151
- 'name': string;
152
- 'phone'?: string;
153
- 'email'?: string;
154
- 'address'?: string;
155
- }
156
- export interface ClaimItem {
157
- 'description': string;
158
- 'purchased_from'?: string;
159
- 'age'?: string;
160
- 'purchase_price'?: string;
161
- 'replacement_cost'?: string;
162
- }
163
- export interface GlassClaimRequest extends ClaimRequest {
164
- 'claim_type': 'glass';
165
- 'vehicle_registration'?: string;
166
- 'vehicle_vin'?: string;
167
- 'vehicle_make_and_model'?: string;
168
- 'vehicle_make'?: string;
169
- 'vehicle_model'?: string;
170
- 'vehicle_year'?: string | number;
171
- 'accident_location'?: string;
172
- 'loss_happened_at'?: string;
173
- 'accident_description'?: string;
174
- 'repairer_name'?: string;
175
- 'repairer_phone'?: string;
176
- 'repairer_email'?: string;
177
- }
178
- export interface TheftClaimRequest extends ClaimRequest {
179
- 'claim_type': 'theft';
180
- 'is_registered_under_same_name'?: boolean;
181
- 'registered_name'?: string;
182
- 'registered_address'?: string;
183
- 'registered_phone'?: string;
184
- 'is_leased'?: boolean;
185
- 'lease_name'?: string;
186
- 'lease_address'?: string;
187
- 'lease_phone'?: string;
188
- 'lease_number'?: string;
189
- 'lease_payment_amount'?: string | number;
190
- 'lease_payment_frequency'?: Frequency;
191
- 'has_conviction'?: boolean;
192
- 'conviction_details'?: string;
193
- 'has_recent_claim'?: boolean;
194
- 'incident_details'?: Incident[];
195
- 'was_disqualified'?: boolean;
196
- 'disqualified_details'?: string;
197
- 'was_vehicle_used_without_consent'?: boolean;
198
- 'vehicle_used_without_consent_details'?: string;
199
- 'has_existing_vehicle_damage'?: boolean;
200
- 'existing_vehicle_damage_details'?: string;
201
- 'was_refused_insurance'?: boolean;
202
- 'refused_insurance_details'?: string;
203
- 'has_additional_information'?: boolean;
204
- 'additional_information_details'?: string;
205
- 'vehicle_registration'?: string;
206
- 'vehicle_vin'?: string;
207
- 'vehicle_make_and_model'?: string;
208
- 'vehicle_make'?: string;
209
- 'vehicle_model'?: string;
210
- 'vehicle_year'?: string | number;
211
- 'vehicle_type'?: VehicleType;
212
- 'finance_company'?: string;
213
- 'finance_phone'?: string;
214
- 'vehicle_purchased_on'?: string;
215
- 'vehicle_purchased_from'?: string;
216
- 'vehicle_purchased_price'?: string | number;
217
- 'vehicle_value'?: number;
218
- 'was_vehicle_for_sale'?: boolean;
219
- 'vehicle_first_asking_price'?: string | number;
220
- 'vehicle_last_asking_price'?: string | number;
221
- 'vehicle_sale_duration'?: string;
222
- 'vehicle_purchaser_name'?: string;
223
- 'vehicle_purchaser_address'?: string;
224
- 'vehicle_purchaser_phone'?: string;
225
- 'vehicle_hp_cc_rating'?: string;
226
- 'vehicle_transmission'?: string;
227
- 'vehicle_engine_number'?: string;
228
- 'vehicle_has_air_conditioning'?: boolean;
229
- 'vehicle_has_cng'?: boolean;
230
- 'vehicle_has_lpg'?: boolean;
231
- 'vehicle_colour'?: string;
232
- 'vehicle_colour_changes'?: string;
233
- 'was_vehicle_repaired'?: boolean;
234
- 'vehicle_repaired_damage_details'?: string;
235
- 'vehicle_repairer'?: string;
236
- 'vehicle_repaired_on'?: string;
237
- 'was_vehicle_damaged'?: boolean;
238
- 'vehicle_damage_details'?: string;
239
- 'vehicle_tyre_condition_front_right'?: Condition;
240
- 'vehicle_tyre_condition_front_left'?: Condition;
241
- 'vehicle_tyre_condition_rear_right'?: Condition;
242
- 'vehicle_tyre_condition_rear_left'?: Condition;
243
- 'vehicle_tyre_condition_spare'?: string;
244
- 'wheel_assembly_details'?: string;
245
- 'vehicle_radio_type'?: string;
246
- 'vehicle_radio_make'?: string;
247
- 'vehicle_radio_location'?: string;
248
- 'vehicle_radio_fixing'?: string;
249
- 'vehicle_speaker_make'?: string;
250
- 'has_additional_accessories'?: boolean;
251
- 'accessory_details'?: Accessory[];
252
- 'has_identifiable_contents'?: boolean;
253
- 'identifiable_contents_details'?: Contents[];
254
- 'vehicle_serviced_by'?: string;
255
- 'has_service_invoices'?: boolean;
256
- 'vehicle_wof_issued_by'?: string;
257
- 'vehicle_wof_issued_on'?: string;
258
- 'vehicle_wof_expires_on'?: string;
259
- 'vehicle_floor_type'?: string;
260
- 'vehicle_interior_details'?: string;
261
- 'vehicle_seatbelt_type'?: string;
262
- 'vehicle_seatbelt_condition'?: Condition;
263
- 'vehicle_engine_condition'?: Condition;
264
- 'vehicle_gearbox_condition'?: Condition;
265
- 'vehicle_transmission_condition'?: Condition;
266
- 'vehicle_suspension_condition'?: Condition;
267
- 'vehicle_steering_condition'?: Condition;
268
- 'vehicle_seats_condition'?: Condition;
269
- 'vehicle_trims_condition'?: Condition;
270
- 'vehicle_body_condition'?: Condition;
271
- 'vehicle_paint_condition'?: Condition;
272
- 'vehicle_dashboard_condition'?: Condition;
273
- 'did_engine_use_oil'?: boolean;
274
- 'vehicle_engine_oil_per_month'?: string;
275
- 'vehicle_ran_well'?: boolean;
276
- 'vehicle_ran_poorly_details'?: string;
277
- 'theft_details'?: string;
278
- 'loss_happened_at'?: string;
279
- 'theft_discovered_at'?: string;
280
- 'last_seen_at'?: string;
281
- 'vehicle_last_used_by'?: string;
282
- 'address_stolen_from'?: string;
283
- 'were_windows_up'?: boolean;
284
- 'windows_down_details'?: string;
285
- 'were_doors_locked'?: boolean;
286
- 'doors_unlocked_details'?: string;
287
- 'has_theft_evidence'?: boolean;
288
- 'theft_evidence_details'?: string;
289
- 'has_steering_lock'?: boolean;
290
- 'was_steering_lock_activated'?: boolean;
291
- 'has_alarm'?: boolean;
292
- 'was_alarm_active'?: boolean;
293
- 'alarm_inactive_details'?: string;
294
- 'was_boot_locked'?: boolean;
295
- 'boot_unlocked_details'?: string;
296
- 'keys_count'?: string;
297
- 'key_holder_name'?: string;
298
- 'key_holder_phone'?: string;
299
- 'key_holder_address'?: string;
300
- 'keys_location'?: string;
301
- 'policyholder_whereabouts_details'?: string;
302
- 'were_police_notified'?: boolean;
303
- 'did_police_attend'?: boolean;
304
- 'police_officer_name'?: string;
305
- 'police_officer_email'?: string;
306
- 'police_reference'?: string;
307
- 'police_station_address'?: string;
308
- 'police_not_notified_details'?: string;
309
- 'police_have_suspect'?: boolean;
310
- 'police_suspect_details'?: string;
311
- 'policyholder_has_suspect'?: boolean;
312
- 'policyholder_suspect_details'?: string;
313
- 'was_theft_witnessed'?: boolean;
314
- 'theft_witnessed_details'?: string;
315
- 'has_cctv_footage'?: boolean;
316
- 'cctv_footage_details'?: string;
317
- 'is_claiming_contents'?: boolean;
318
- 'is_contents_insured_elsewhere'?: boolean;
319
- 'contents_details'?: ClaimItem[];
320
- }
321
- export interface Accessory {
322
- 'description': string;
323
- 'age': string;
324
- 'condition': string;
325
- }
326
- export interface Contents {
327
- 'description': string;
328
- }
@@ -1 +0,0 @@
1
- export * from './ClaimRequest';
@@ -1,6 +0,0 @@
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';
@@ -1,8 +0,0 @@
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
- }
@@ -1,9 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- export * from './Risk';
2
- export * from './TableData';
@@ -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,36 +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
- reason?: string;
34
- user?: User;
35
- quoteRequest?: QuoteRequest;
36
- }
@@ -1,2 +0,0 @@
1
- export * from './Payment';
2
- export * from './Gateways';
@@ -1,20 +0,0 @@
1
- import { User } from "../auth";
2
- export interface BlacklistEntry {
3
- id?: number;
4
- created_at?: string;
5
- name?: string;
6
- description?: string;
7
- profiles?: BlacklistEntryProfile[];
8
- user_id?: number;
9
- user?: User;
10
- }
11
- export interface BlacklistEntryProfile {
12
- id?: number;
13
- created_at?: string;
14
- email?: string;
15
- client_number?: string;
16
- phone?: string;
17
- mobile?: string;
18
- registration?: string;
19
- blacklist_entry_id: BlacklistEntry['id'];
20
- }
@@ -1,4 +0,0 @@
1
- export interface Club {
2
- id: number;
3
- name: string;
4
- }
@@ -1,7 +0,0 @@
1
- export interface EmailContentOption {
2
- id: number;
3
- created_at: string;
4
- updated_at: string;
5
- name: string;
6
- content: string;
7
- }
@@ -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 {};
@@ -1,16 +0,0 @@
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
- }