@star-insure/sdk 6.0.12 → 6.0.13

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 (354) hide show
  1. package/README.md +1 -1
  2. package/dist/index.d.ts +1828 -3
  3. package/dist/sdk.es10.js +31 -31
  4. package/dist/sdk.es100.js +12 -73
  5. package/dist/sdk.es100.js.map +1 -1
  6. package/dist/sdk.es101.js +10 -80
  7. package/dist/sdk.es101.js.map +1 -1
  8. package/dist/sdk.es102.js +44 -69
  9. package/dist/sdk.es102.js.map +1 -1
  10. package/dist/sdk.es103.js +44 -35
  11. package/dist/sdk.es103.js.map +1 -1
  12. package/dist/sdk.es104.js +46 -35
  13. package/dist/sdk.es104.js.map +1 -1
  14. package/dist/sdk.es105.js +25 -39
  15. package/dist/sdk.es105.js.map +1 -1
  16. package/dist/sdk.es106.js +24 -41
  17. package/dist/sdk.es106.js.map +1 -1
  18. package/dist/sdk.es107.js +48 -56
  19. package/dist/sdk.es107.js.map +1 -1
  20. package/dist/sdk.es108.js +50 -70
  21. package/dist/sdk.es108.js.map +1 -1
  22. package/dist/sdk.es109.js +59 -73
  23. package/dist/sdk.es109.js.map +1 -1
  24. package/dist/sdk.es110.js +62 -75
  25. package/dist/sdk.es110.js.map +1 -1
  26. package/dist/sdk.es111.js +38 -49
  27. package/dist/sdk.es111.js.map +1 -1
  28. package/dist/sdk.es112.js +39 -50
  29. package/dist/sdk.es112.js.map +1 -1
  30. package/dist/sdk.es113.js +38 -50
  31. package/dist/sdk.es113.js.map +1 -1
  32. package/dist/sdk.es114.js +28 -27
  33. package/dist/sdk.es114.js.map +1 -1
  34. package/dist/sdk.es115.js +68 -32
  35. package/dist/sdk.es115.js.map +1 -1
  36. package/dist/sdk.es116.js +81 -34
  37. package/dist/sdk.es116.js.map +1 -1
  38. package/dist/sdk.es117.js +82 -35
  39. package/dist/sdk.es117.js.map +1 -1
  40. package/dist/sdk.es118.js +81 -34
  41. package/dist/sdk.es118.js.map +1 -1
  42. package/dist/sdk.es119.js +50 -37
  43. package/dist/sdk.es119.js.map +1 -1
  44. package/dist/sdk.es120.js +49 -24
  45. package/dist/sdk.es120.js.map +1 -1
  46. package/dist/sdk.es121.js +49 -34
  47. package/dist/sdk.es121.js.map +1 -1
  48. package/dist/sdk.es122.js +38 -35
  49. package/dist/sdk.es122.js.map +1 -1
  50. package/dist/sdk.es123.js +39 -26
  51. package/dist/sdk.es123.js.map +1 -1
  52. package/dist/sdk.es124.js +41 -27
  53. package/dist/sdk.es124.js.map +1 -1
  54. package/dist/sdk.es125.js +47 -6
  55. package/dist/sdk.es125.js.map +1 -1
  56. package/dist/sdk.es126.js +46 -3675
  57. package/dist/sdk.es126.js.map +1 -1
  58. package/dist/sdk.es127.js +46 -2
  59. package/dist/sdk.es127.js.map +1 -1
  60. package/dist/sdk.es128.js +33 -66
  61. package/dist/sdk.es128.js.map +1 -1
  62. package/dist/sdk.es129.js +44 -31
  63. package/dist/sdk.es129.js.map +1 -1
  64. package/dist/sdk.es130.js +44 -11
  65. package/dist/sdk.es130.js.map +1 -1
  66. package/dist/sdk.es131.js +30 -118
  67. package/dist/sdk.es131.js.map +1 -1
  68. package/dist/sdk.es132.js +30 -83
  69. package/dist/sdk.es132.js.map +1 -1
  70. package/dist/sdk.es133.js +67 -40
  71. package/dist/sdk.es133.js.map +1 -1
  72. package/dist/sdk.es134.js +31 -2
  73. package/dist/sdk.es134.js.map +1 -1
  74. package/dist/sdk.es135.js +11 -8
  75. package/dist/sdk.es135.js.map +1 -1
  76. package/dist/sdk.es136.js +121 -11
  77. package/dist/sdk.es136.js.map +1 -1
  78. package/dist/sdk.es137.js +86 -14
  79. package/dist/sdk.es137.js.map +1 -1
  80. package/dist/sdk.es138.js +7 -13
  81. package/dist/sdk.es138.js.map +1 -1
  82. package/dist/sdk.es139.js +10 -5
  83. package/dist/sdk.es139.js.map +1 -1
  84. package/dist/sdk.es140.js +13 -5
  85. package/dist/sdk.es140.js.map +1 -1
  86. package/dist/sdk.es141.js +13 -5
  87. package/dist/sdk.es141.js.map +1 -1
  88. package/dist/sdk.es142.js +5 -10
  89. package/dist/sdk.es142.js.map +1 -1
  90. package/dist/sdk.es143.js +5 -7
  91. package/dist/sdk.es143.js.map +1 -1
  92. package/dist/sdk.es144.js +5 -6
  93. package/dist/sdk.es144.js.map +1 -1
  94. package/dist/sdk.es145.js +10 -24
  95. package/dist/sdk.es145.js.map +1 -1
  96. package/dist/sdk.es146.js +7 -99
  97. package/dist/sdk.es146.js.map +1 -1
  98. package/dist/sdk.es147.js +7 -47
  99. package/dist/sdk.es147.js.map +1 -1
  100. package/dist/sdk.es148.js +25 -10
  101. package/dist/sdk.es148.js.map +1 -1
  102. package/dist/sdk.es149.js +99 -9
  103. package/dist/sdk.es149.js.map +1 -1
  104. package/dist/sdk.es15.js +13 -13
  105. package/dist/sdk.es150.js +47 -14
  106. package/dist/sdk.es150.js.map +1 -1
  107. package/dist/sdk.es151.js +9 -10
  108. package/dist/sdk.es151.js.map +1 -1
  109. package/dist/sdk.es152.js +9 -6
  110. package/dist/sdk.es152.js.map +1 -1
  111. package/dist/sdk.es153.js +13 -14
  112. package/dist/sdk.es153.js.map +1 -1
  113. package/dist/sdk.es154.js +10 -28
  114. package/dist/sdk.es154.js.map +1 -1
  115. package/dist/sdk.es155.js +5 -14
  116. package/dist/sdk.es155.js.map +1 -1
  117. package/dist/sdk.es156.js +12 -51
  118. package/dist/sdk.es156.js.map +1 -1
  119. package/dist/sdk.es157.js +29 -10
  120. package/dist/sdk.es157.js.map +1 -1
  121. package/dist/sdk.es158.js +15 -19
  122. package/dist/sdk.es158.js.map +1 -1
  123. package/dist/sdk.es159.js +7 -7
  124. package/dist/sdk.es159.js.map +1 -1
  125. package/dist/sdk.es25.js +1 -1
  126. package/dist/sdk.es26.js +1 -1
  127. package/dist/sdk.es27.js +1 -1
  128. package/dist/sdk.es28.js +1 -1
  129. package/dist/sdk.es29.js +1 -1
  130. package/dist/sdk.es3.js +17 -17
  131. package/dist/sdk.es30.js +1 -1
  132. package/dist/sdk.es32.js +1 -1
  133. package/dist/sdk.es35.js +21 -21
  134. package/dist/sdk.es35.js.map +1 -1
  135. package/dist/sdk.es36.js +27 -27
  136. package/dist/sdk.es36.js.map +1 -1
  137. package/dist/sdk.es37.js +57 -57
  138. package/dist/sdk.es37.js.map +1 -1
  139. package/dist/sdk.es39.js +3 -3
  140. package/dist/sdk.es39.js.map +1 -1
  141. package/dist/sdk.es41.js.map +1 -1
  142. package/dist/sdk.es43.js +11 -11
  143. package/dist/sdk.es43.js.map +1 -1
  144. package/dist/sdk.es44.js +1 -1
  145. package/dist/sdk.es44.js.map +1 -1
  146. package/dist/sdk.es45.js +5 -2
  147. package/dist/sdk.es45.js.map +1 -1
  148. package/dist/sdk.es46.js +22 -2
  149. package/dist/sdk.es46.js.map +1 -1
  150. package/dist/sdk.es47.js +79 -4
  151. package/dist/sdk.es47.js.map +1 -1
  152. package/dist/sdk.es48.js +75 -7
  153. package/dist/sdk.es48.js.map +1 -1
  154. package/dist/sdk.es49.js +231 -6
  155. package/dist/sdk.es49.js.map +1 -1
  156. package/dist/sdk.es5.js.map +1 -1
  157. package/dist/sdk.es50.js +25 -8
  158. package/dist/sdk.es50.js.map +1 -1
  159. package/dist/sdk.es51.js +3 -7
  160. package/dist/sdk.es51.js.map +1 -1
  161. package/dist/sdk.es52.js +2 -8
  162. package/dist/sdk.es52.js.map +1 -1
  163. package/dist/sdk.es53.js +2 -5
  164. package/dist/sdk.es53.js.map +1 -1
  165. package/dist/sdk.es54.js +8 -15
  166. package/dist/sdk.es54.js.map +1 -1
  167. package/dist/sdk.es55.js +6 -8
  168. package/dist/sdk.es55.js.map +1 -1
  169. package/dist/sdk.es56.js +7 -9
  170. package/dist/sdk.es56.js.map +1 -1
  171. package/dist/sdk.es57.js +4 -8
  172. package/dist/sdk.es57.js.map +1 -1
  173. package/dist/sdk.es58.js +15 -636
  174. package/dist/sdk.es58.js.map +1 -1
  175. package/dist/sdk.es59.js +9 -74
  176. package/dist/sdk.es59.js.map +1 -1
  177. package/dist/sdk.es60.js +9 -4
  178. package/dist/sdk.es60.js.map +1 -1
  179. package/dist/sdk.es61.js +8 -19
  180. package/dist/sdk.es61.js.map +1 -1
  181. package/dist/sdk.es62.js +638 -4
  182. package/dist/sdk.es62.js.map +1 -1
  183. package/dist/sdk.es63.js +72 -16
  184. package/dist/sdk.es63.js.map +1 -1
  185. package/dist/sdk.es64.js +4 -5
  186. package/dist/sdk.es64.js.map +1 -1
  187. package/dist/sdk.es65.js +19 -8
  188. package/dist/sdk.es65.js.map +1 -1
  189. package/dist/sdk.es66.js +4 -48
  190. package/dist/sdk.es66.js.map +1 -1
  191. package/dist/sdk.es67.js +18 -8
  192. package/dist/sdk.es67.js.map +1 -1
  193. package/dist/sdk.es68.js +6 -57
  194. package/dist/sdk.es68.js.map +1 -1
  195. package/dist/sdk.es69.js +9 -65
  196. package/dist/sdk.es69.js.map +1 -1
  197. package/dist/sdk.es70.js +48 -8
  198. package/dist/sdk.es70.js.map +1 -1
  199. package/dist/sdk.es71.js +8 -4
  200. package/dist/sdk.es71.js.map +1 -1
  201. package/dist/sdk.es72.js +57 -3
  202. package/dist/sdk.es72.js.map +1 -1
  203. package/dist/sdk.es73.js +65 -5
  204. package/dist/sdk.es73.js.map +1 -1
  205. package/dist/sdk.es74.js +8 -21
  206. package/dist/sdk.es74.js.map +1 -1
  207. package/dist/sdk.es75.js +4 -79
  208. package/dist/sdk.es75.js.map +1 -1
  209. package/dist/sdk.es76.js +4 -76
  210. package/dist/sdk.es76.js.map +1 -1
  211. package/dist/sdk.es77.js +7 -231
  212. package/dist/sdk.es77.js.map +1 -1
  213. package/dist/sdk.es78.js +6 -25
  214. package/dist/sdk.es78.js.map +1 -1
  215. package/dist/sdk.es79.js +40 -2
  216. package/dist/sdk.es79.js.map +1 -1
  217. package/dist/sdk.es80.js +2 -11
  218. package/dist/sdk.es80.js.map +1 -1
  219. package/dist/sdk.es81.js +53 -10
  220. package/dist/sdk.es81.js.map +1 -1
  221. package/dist/sdk.es82.js +10 -13
  222. package/dist/sdk.es82.js.map +1 -1
  223. package/dist/sdk.es83.js +19 -10
  224. package/dist/sdk.es83.js.map +1 -1
  225. package/dist/sdk.es84.js +3674 -18
  226. package/dist/sdk.es84.js.map +1 -1
  227. package/dist/sdk.es85.js +5 -5
  228. package/dist/sdk.es85.js.map +1 -1
  229. package/dist/sdk.es86.js +2 -55
  230. package/dist/sdk.es86.js.map +1 -1
  231. package/dist/sdk.es87.js +10 -8
  232. package/dist/sdk.es87.js.map +1 -1
  233. package/dist/sdk.es88.js +10 -4
  234. package/dist/sdk.es88.js.map +1 -1
  235. package/dist/sdk.es89.js +12 -13
  236. package/dist/sdk.es89.js.map +1 -1
  237. package/dist/sdk.es90.js +9 -13
  238. package/dist/sdk.es90.js.map +1 -1
  239. package/dist/sdk.es91.js +18 -3
  240. package/dist/sdk.es91.js.map +1 -1
  241. package/dist/sdk.es92.js +5 -12
  242. package/dist/sdk.es92.js.map +1 -1
  243. package/dist/sdk.es93.js +55 -10
  244. package/dist/sdk.es93.js.map +1 -1
  245. package/dist/sdk.es94.js +2 -55
  246. package/dist/sdk.es94.js.map +1 -1
  247. package/dist/sdk.es95.js +8 -56
  248. package/dist/sdk.es95.js.map +1 -1
  249. package/dist/sdk.es96.js +5 -59
  250. package/dist/sdk.es96.js.map +1 -1
  251. package/dist/sdk.es97.js +13 -32
  252. package/dist/sdk.es97.js.map +1 -1
  253. package/dist/sdk.es98.js +15 -31
  254. package/dist/sdk.es98.js.map +1 -1
  255. package/dist/sdk.es99.js +4 -74
  256. package/dist/sdk.es99.js.map +1 -1
  257. package/package.json +1 -1
  258. package/dist/components/common/Button.d.ts +0 -15
  259. package/dist/components/common/Card.d.ts +0 -7
  260. package/dist/components/common/Modal.d.ts +0 -11
  261. package/dist/components/common/Pagination.d.ts +0 -10
  262. package/dist/components/common/SimplePagination.d.ts +0 -10
  263. package/dist/components/common/ToastItem.d.ts +0 -3
  264. package/dist/components/common/Toasts.d.ts +0 -2
  265. package/dist/components/common/index.d.ts +0 -8
  266. package/dist/components/filter/Action.d.ts +0 -3
  267. package/dist/components/filter/Back.d.ts +0 -5
  268. package/dist/components/filter/Dropdown.d.ts +0 -9
  269. package/dist/components/filter/FilterItem.d.ts +0 -6
  270. package/dist/components/filter/FilterOptions.d.ts +0 -5
  271. package/dist/components/filter/PageHeader.d.ts +0 -21
  272. package/dist/components/filter/SearchBar.d.ts +0 -10
  273. package/dist/components/filter/index.d.ts +0 -1
  274. package/dist/components/forms/DateOfBirthField.d.ts +0 -12
  275. package/dist/components/forms/ErrorList.d.ts +0 -10
  276. package/dist/components/forms/FormTester.d.ts +0 -6
  277. package/dist/components/forms/MoneyField.d.ts +0 -11
  278. package/dist/components/forms/RegistrationSearchField.d.ts +0 -29
  279. package/dist/components/forms/index.d.ts +0 -6
  280. package/dist/components/index.d.ts +0 -4
  281. package/dist/components/tables/Table.d.ts +0 -6
  282. package/dist/components/tables/TableActions.d.ts +0 -7
  283. package/dist/components/tables/TableBody.d.ts +0 -7
  284. package/dist/components/tables/TableCell.d.ts +0 -8
  285. package/dist/components/tables/TableHead.d.ts +0 -7
  286. package/dist/components/tables/TableHeader.d.ts +0 -10
  287. package/dist/components/tables/TableRow.d.ts +0 -8
  288. package/dist/components/tables/index.d.ts +0 -8
  289. package/dist/lib/addressFinder.d.ts +0 -54
  290. package/dist/lib/auth.d.ts +0 -2
  291. package/dist/lib/calculateAge.d.ts +0 -4
  292. package/dist/lib/calculatePricing.d.ts +0 -19
  293. package/dist/lib/clickOutside.d.ts +0 -1
  294. package/dist/lib/dates.d.ts +0 -20
  295. package/dist/lib/fetch.d.ts +0 -20
  296. package/dist/lib/index.d.ts +0 -14
  297. package/dist/lib/inertiaOptions.d.ts +0 -6
  298. package/dist/lib/localStorage.d.ts +0 -1
  299. package/dist/lib/money.d.ts +0 -32
  300. package/dist/lib/page.d.ts +0 -19
  301. package/dist/lib/quoteRequestForm.d.ts +0 -21
  302. package/dist/lib/quoteRequestOptions.d.ts +0 -11
  303. package/dist/lib/toast.d.ts +0 -10
  304. package/dist/lib/vehicles.d.ts +0 -2
  305. package/dist/tailwind-preset.d.cts +0 -2
  306. package/dist/types/api/auth.d.ts +0 -35
  307. package/dist/types/api/enums.d.ts +0 -4
  308. package/dist/types/api/index.d.ts +0 -31
  309. package/dist/types/api/responses/claimRequestActions.d.ts +0 -12
  310. package/dist/types/api/responses/index.d.ts +0 -1
  311. package/dist/types/index.d.ts +0 -3
  312. package/dist/types/misc/index.d.ts +0 -59
  313. package/dist/types/models/auth/Group.d.ts +0 -10
  314. package/dist/types/models/auth/Permission.d.ts +0 -4
  315. package/dist/types/models/auth/Role.d.ts +0 -8
  316. package/dist/types/models/auth/User.d.ts +0 -17
  317. package/dist/types/models/auth/index.d.ts +0 -4
  318. package/dist/types/models/claims/ClaimRequest.d.ts +0 -328
  319. package/dist/types/models/claims/index.d.ts +0 -1
  320. package/dist/types/models/index.d.ts +0 -6
  321. package/dist/types/models/oracle/Risk.d.ts +0 -8
  322. package/dist/types/models/oracle/TableData.d.ts +0 -9
  323. package/dist/types/models/oracle/index.d.ts +0 -2
  324. package/dist/types/models/payments/Gateways.d.ts +0 -1
  325. package/dist/types/models/payments/Payment.d.ts +0 -36
  326. package/dist/types/models/payments/index.d.ts +0 -2
  327. package/dist/types/models/quotes/Blacklist.d.ts +0 -20
  328. package/dist/types/models/quotes/Club.d.ts +0 -4
  329. package/dist/types/models/quotes/EmailContentOption.d.ts +0 -7
  330. package/dist/types/models/quotes/InformationRequest.d.ts +0 -34
  331. package/dist/types/models/quotes/Lead.d.ts +0 -17
  332. package/dist/types/models/quotes/MotorwebVehicle.d.ts +0 -120
  333. package/dist/types/models/quotes/PolicyBenefit.d.ts +0 -16
  334. package/dist/types/models/quotes/PolicyEnhancement.d.ts +0 -13
  335. package/dist/types/models/quotes/PostalAddress.d.ts +0 -7
  336. package/dist/types/models/quotes/PromoCode.d.ts +0 -18
  337. package/dist/types/models/quotes/QuoteRequest.d.ts +0 -112
  338. package/dist/types/models/quotes/QuoteRequestDeclaration.d.ts +0 -22
  339. package/dist/types/models/quotes/QuoteRequestForm.d.ts +0 -113
  340. package/dist/types/models/quotes/QuoteRequestIncident.d.ts +0 -6
  341. package/dist/types/models/quotes/QuoteRequestLog.d.ts +0 -11
  342. package/dist/types/models/quotes/QuoteRequestOptions.d.ts +0 -62
  343. package/dist/types/models/quotes/QuoteRequestPurchaseOption.d.ts +0 -38
  344. package/dist/types/models/quotes/QuoteRequestReferrer.d.ts +0 -9
  345. package/dist/types/models/quotes/QuoteRequestReferrerCategory.d.ts +0 -6
  346. package/dist/types/models/quotes/QuoteRequestVehicle.d.ts +0 -23
  347. package/dist/types/models/quotes/QuoteRequestVehicleDriver.d.ts +0 -11
  348. package/dist/types/models/quotes/RedbookVehicle.d.ts +0 -55
  349. package/dist/types/models/quotes/StreetAddress.d.ts +0 -8
  350. package/dist/types/models/quotes/index.d.ts +0 -23
  351. package/dist/types/models/sms-messages/SmsContentOption.d.ts +0 -7
  352. package/dist/types/models/sms-messages/SmsMessage.d.ts +0 -18
  353. package/dist/types/models/sms-messages/SmsMessageReply.d.ts +0 -10
  354. package/dist/types/models/sms-messages/index.d.ts +0 -3
package/dist/index.d.ts CHANGED
@@ -1,3 +1,1828 @@
1
- export * from './types';
2
- export * from './lib';
3
- export * from './components';
1
+ import { default as default_2 } from 'react';
2
+ import { ErrorBag } from '@inertiajs/core';
3
+ import { Errors } from '@inertiajs/core';
4
+ import { InertiaFormProps } from '@inertiajs/react/types/useForm';
5
+ import * as React_2 from 'react';
6
+ import { VisitOptions } from '@inertiajs/core';
7
+
8
+ export declare interface Accessory {
9
+ 'description': string;
10
+ 'age': string;
11
+ 'condition': string;
12
+ }
13
+
14
+ /**
15
+ * Adds GST to a number
16
+ */
17
+ export declare function addGst(value: number): number;
18
+
19
+ export declare interface AddressCompletion {
20
+ a: string;
21
+ pxid: string;
22
+ v: number;
23
+ }
24
+
25
+ export declare interface AddressData {
26
+ pxid: string;
27
+ a: string;
28
+ aims_address_id: string;
29
+ sufi: number;
30
+ ta_id: string;
31
+ ta: string;
32
+ tasub_id: string;
33
+ tasub: string;
34
+ number: string;
35
+ x: string;
36
+ y: string;
37
+ postcode: string;
38
+ street: string;
39
+ street_name: string;
40
+ street_type: string;
41
+ city: string;
42
+ suburb: string;
43
+ region_id: string;
44
+ region: string;
45
+ postal_line_1: string;
46
+ postal_line_2: string;
47
+ aims_road_section_id: string;
48
+ rural: string;
49
+ address_line_1: string;
50
+ address_line_2?: string;
51
+ primary_parcel_id: string;
52
+ meshblock: string;
53
+ sa1_id: string;
54
+ sa2_id: string;
55
+ sa2: string;
56
+ cb_id: string;
57
+ cb: string;
58
+ ward_id: string;
59
+ ward: string;
60
+ con_id: string;
61
+ con: string;
62
+ maoricon_id: string;
63
+ maoricon: string;
64
+ iur_id: string;
65
+ iur: string;
66
+ ur_id: string;
67
+ ur: string;
68
+ landwater_id: string;
69
+ landwater: string;
70
+ success: boolean;
71
+ }
72
+
73
+ export declare interface ApiResponse<T = any> {
74
+ data: T;
75
+ meta: Meta;
76
+ links: Links;
77
+ status: number;
78
+ ok: boolean;
79
+ }
80
+
81
+ declare interface Attributes {
82
+ 'version'?: string;
83
+ }
84
+
85
+ declare interface Attributes2 {
86
+ 'data-retrieved'?: string;
87
+ }
88
+
89
+ declare interface Attributes3 {
90
+ 'current'?: string;
91
+ 'past-plate'?: string;
92
+ }
93
+
94
+ declare interface Attributes4 {
95
+ 'latest'?: string;
96
+ }
97
+
98
+ declare interface Attributes5 {
99
+ 'current': string;
100
+ 'owner-number': string;
101
+ 'suppressed-reason': string;
102
+ }
103
+
104
+ export declare interface AuthContext {
105
+ user?: AuthUser;
106
+ context: UserContext;
107
+ group?: AuthGroup;
108
+ permissions: string[];
109
+ is_app?: boolean;
110
+ can: (permission: string) => boolean;
111
+ should_two_factor_auth: boolean;
112
+ }
113
+
114
+ declare type AuthGroup = {
115
+ id: number;
116
+ name: string;
117
+ code: string;
118
+ role: AuthRole;
119
+ };
120
+
121
+ declare type AuthRole = {
122
+ name: string;
123
+ context: string;
124
+ };
125
+
126
+ declare type AuthUser = {
127
+ id: number;
128
+ name: string;
129
+ email: string;
130
+ is_group_admin: boolean;
131
+ umbrella_filter?: string;
132
+ oracle_user_id?: string;
133
+ groups: AuthGroup[];
134
+ mobile?: string;
135
+ phone_extension?: number;
136
+ two_factor_expires_at?: string;
137
+ two_factor_method?: TwoFactorAuthMethod;
138
+ };
139
+
140
+ export declare function autocomplete(search: string): Promise<AddressCompletion[]>;
141
+
142
+ export declare interface Automatch {
143
+ client_number: string;
144
+ id: number;
145
+ matched_by: QuoteRequestAutomatch;
146
+ matched_by_value: string;
147
+ quote_request_id: string;
148
+ }
149
+
150
+ export declare interface BlacklistEntry {
151
+ id?: number;
152
+ created_at?: string;
153
+ name?: string;
154
+ description?: string;
155
+ profiles?: BlacklistEntryProfile[];
156
+ user_id?: number;
157
+ user?: User;
158
+ }
159
+
160
+ export declare interface BlacklistEntryProfile {
161
+ id?: number;
162
+ created_at?: string;
163
+ email?: string;
164
+ client_number?: string;
165
+ phone?: string;
166
+ mobile?: string;
167
+ registration?: string;
168
+ blacklist_entry_id: BlacklistEntry['id'];
169
+ }
170
+
171
+ export declare type Breadcrumb = {
172
+ current?: boolean;
173
+ title: string;
174
+ url?: string;
175
+ };
176
+
177
+ export declare function Button({ className, href, target, onClick, type, children, status, disabled, as, small, }: Props): default_2.JSX.Element;
178
+
179
+ declare interface BviCheck {
180
+ 'registration'?: Registration;
181
+ 'licence'?: Licence;
182
+ 'wof'?: Wof;
183
+ 'cof'?: Cof;
184
+ 'ruc'?: Ruc;
185
+ 'year-of-manufacture'?: string;
186
+ 'make'?: string;
187
+ 'model'?: string;
188
+ 'mvr-model'?: string;
189
+ 'body-style'?: string;
190
+ 'vehicle-type'?: string;
191
+ 'vin'?: string;
192
+ 'chassis'?: string;
193
+ 'engine-number'?: string;
194
+ 'main-colour'?: string;
195
+ 'cc-rating'?: string;
196
+ 'country-of-origin'?: string;
197
+ 'assembly-type'?: string;
198
+ 'gross-vehicle-mass'?: string;
199
+ 'number-of-seats'?: string;
200
+ 'fuel-type'?: string;
201
+ 'vehicle-usage'?: string;
202
+ 'odometer-unit'?: string;
203
+ 'plate'?: Plate;
204
+ 'odometer-reading'?: OdometerReading;
205
+ 'transmission'?: Transmission;
206
+ 'model-code'?: string;
207
+ 'model-variant'?: string;
208
+ }
209
+
210
+ export declare function calcMonthlyEnhancementPrice(enhancement: PolicyEnhancement): number;
211
+
212
+ export declare function calcPurchaseOptionPricing({ option, selectedEnhancements, brokerFee }: CalculationArguments): {
213
+ monthly: number;
214
+ annually: number;
215
+ monthlyWithGst: number;
216
+ annuallyWithGst: number;
217
+ };
218
+
219
+ /**
220
+ * Calculate someone's age from a date of birth.
221
+ */
222
+ export declare function calculateAge(date: string | Date | null | undefined): number;
223
+
224
+ declare interface CalculationArguments {
225
+ option: QuoteRequestPurchaseOption;
226
+ selectedEnhancements: PolicyEnhancement['id'][];
227
+ brokerFee?: number;
228
+ }
229
+
230
+ export declare function Card({ className, children }: Props_2): default_2.JSX.Element;
231
+
232
+ export declare interface ClaimItem {
233
+ 'description': string;
234
+ 'purchased_from'?: string;
235
+ 'age'?: string;
236
+ 'purchase_price'?: string;
237
+ 'replacement_cost'?: string;
238
+ }
239
+
240
+ export declare interface ClaimRequest {
241
+ 'id': string;
242
+ 'reference'?: string;
243
+ 'status'?: ClaimRequestStatus;
244
+ 'submitted_at'?: string;
245
+ 'reminder_sent_at'?: string;
246
+ 'claim_number'?: string;
247
+ 'policyholder'?: string;
248
+ 'policy_number'?: string;
249
+ 'policy_cover_number'?: string;
250
+ 'policy_version_number'?: string;
251
+ 'policy_contact_name'?: string;
252
+ 'mobile'?: string;
253
+ 'email'?: string;
254
+ 'alternative_contact'?: string;
255
+ 'broker_firm'?: string;
256
+ 'broker_name'?: string;
257
+ 'address'?: string;
258
+ 'terms_accepted_by'?: string;
259
+ 'loss_estimate'?: number;
260
+ 'excess'?: number;
261
+ 'excess_status'?: string;
262
+ 'sum_insured'?: number;
263
+ 'cover_type'?: string;
264
+ 'reserve_expense'?: number;
265
+ 'fault_flag'?: string;
266
+ 'category'?: string;
267
+ 'substatus'?: string;
268
+ 'severity_code'?: string;
269
+ 'action'?: string;
270
+ 'vehicle_type_code'?: string;
271
+ 'vehicle_make_code'?: string;
272
+ 'eglobal_user_id'?: string;
273
+ 'client_comments'?: string;
274
+ 'insurer_comments'?: string;
275
+ 'status_line'?: string;
276
+ 'claim_summary'?: string;
277
+ 'driver_gender'?: string;
278
+ 'is_assessor_required'?: boolean;
279
+ 'acceptance_code'?: string;
280
+ 'client_number'?: string;
281
+ 'attachments'?: ClaimRequestAttachment[];
282
+ 'notes'?: string;
283
+ }
284
+
285
+ export declare interface ClaimRequestAttachment {
286
+ 'id': number;
287
+ 'created_at': string;
288
+ 'updated_at': string;
289
+ 'claim_request_id': ClaimRequest['id'];
290
+ 'title': string;
291
+ 'url': string;
292
+ 'disk'?: string;
293
+ 'claim_request_type'?: string;
294
+ }
295
+
296
+ export declare type ClaimRequestStatus = 'new' | 'draft' | 'in-progress' | 'exported';
297
+
298
+ export declare interface Club {
299
+ id: number;
300
+ name: string;
301
+ }
302
+
303
+ declare interface Cof {
304
+ 'is-subject-to'?: string;
305
+ }
306
+
307
+ export declare type Condition = 'poor' | 'fair' | 'good';
308
+
309
+ export declare interface Contents {
310
+ 'description': string;
311
+ }
312
+
313
+ /**
314
+ * Attempts to create a date object from a date string
315
+ */
316
+ export declare function createDate(dateString: Date | string | null | undefined): Date | null;
317
+
318
+ export declare interface DamageClaimRequest extends ClaimRequest {
319
+ 'claim_type': 'damage';
320
+ 'vehicle_registration'?: string;
321
+ 'vehicle_vin'?: string;
322
+ 'vehicle_make_and_model'?: string;
323
+ 'vehicle_make'?: string;
324
+ 'vehicle_model'?: string;
325
+ 'vehicle_year'?: string | number;
326
+ 'vehicle_type'?: VehicleType;
327
+ 'finance_company'?: string;
328
+ 'finance_phone'?: string;
329
+ 'driver_name'?: string;
330
+ 'driver_dob'?: string;
331
+ 'driver_relationship'?: string;
332
+ 'driver_licence_number'?: string;
333
+ 'driver_licence_version'?: string;
334
+ 'driver_licence_issuer'?: string;
335
+ 'was_intoxicated'?: boolean;
336
+ 'intoxicated_details'?: string;
337
+ 'has_conviction'?: boolean;
338
+ 'conviction_details'?: string;
339
+ 'has_recent_claim'?: boolean;
340
+ 'incident_details'?: Incident[];
341
+ 'was_disqualified'?: boolean;
342
+ 'disqualified_details'?: string;
343
+ 'was_vehicle_used_without_consent'?: boolean;
344
+ 'vehicle_used_without_consent_details'?: string;
345
+ 'has_existing_vehicle_damage'?: boolean;
346
+ 'existing_vehicle_damage_details'?: string;
347
+ 'was_refused_insurance'?: boolean;
348
+ 'refused_insurance_details'?: string;
349
+ 'has_additional_information'?: boolean;
350
+ 'additional_information_details'?: string;
351
+ 'accident_location'?: string;
352
+ 'accident_suburb'?: string;
353
+ 'loss_happened_at'?: string;
354
+ 'accident_speed'?: string;
355
+ 'impact_speed'?: string;
356
+ 'road_surface'?: string;
357
+ 'weather_conditions'?: string;
358
+ 'had_passengers'?: boolean;
359
+ 'passenger_details'?: Passenger[];
360
+ 'has_witnesses'?: boolean;
361
+ 'witness_details'?: Witness[];
362
+ 'accident_description'?: string;
363
+ 'vehicle_location'?: string;
364
+ 'is_vehicle_drivable'?: boolean;
365
+ 'vehicle_drivable_details'?: string;
366
+ 'was_warning_given'?: boolean;
367
+ 'warning_given_details'?: string;
368
+ 'was_third_party_responsible'?: boolean;
369
+ 'third_party_responsible_details'?: string;
370
+ 'was_third_party_involved'?: boolean;
371
+ 'third_party_vehicle_registration'?: string;
372
+ 'third_party_vehicle_owner'?: string;
373
+ 'third_party_vehicle_make'?: string;
374
+ 'third_party_vehicle_model'?: string;
375
+ 'third_party_vehicle_driver_name'?: string;
376
+ 'third_party_vehicle_driver_mobile'?: string;
377
+ 'third_party_vehicle_driver_phone'?: string;
378
+ 'third_party_vehicle_driver_address'?: string;
379
+ 'third_party_vehicle_insurance_company'?: string;
380
+ 'third_party_vehicle_damage'?: string;
381
+ 'third_party_details_provided'?: string;
382
+ 'were_police_notified'?: boolean;
383
+ 'did_police_attend'?: boolean;
384
+ 'police_officer_name'?: string;
385
+ 'police_officer_email'?: string;
386
+ 'police_reference'?: string;
387
+ 'police_station_address'?: string;
388
+ 'police_did_test'?: boolean;
389
+ 'police_issued_notice'?: boolean;
390
+ 'repairer_name'?: string;
391
+ 'repairer_phone'?: string;
392
+ 'repairer_email'?: string;
393
+ 'is_claiming_protective_gear'?: boolean;
394
+ 'is_protective_gear_insured_elsewhere'?: boolean;
395
+ 'protective_gear_details'?: ClaimItem[];
396
+ 'is_claiming_contents'?: boolean;
397
+ 'is_contents_insured_elsewhere'?: boolean;
398
+ 'contents_details'?: ClaimItem[];
399
+ }
400
+
401
+ export declare function DateOfBirthField({ name, id, onChange, value, maxYear, showAge, isRequired }: Props_13): default_2.JSX.Element;
402
+
403
+ export declare interface EmailContentOption {
404
+ id: number;
405
+ created_at: string;
406
+ updated_at: string;
407
+ name: string;
408
+ content: string;
409
+ }
410
+
411
+ export declare type Environment = 'production' | 'staging' | 'testing' | 'local';
412
+
413
+ export declare function ErrorList({ heading, errors, renderKeys, className, }: Props_17): default_2.JSX.Element;
414
+
415
+ declare type FetcherFunction<T> = () => Promise<{
416
+ ok: false;
417
+ message: string | undefined;
418
+ data?: undefined;
419
+ } | {
420
+ ok: true;
421
+ data?: T;
422
+ message: string | undefined;
423
+ }>;
424
+
425
+ declare type FetchOptions = {
426
+ url: string;
427
+ method?: 'GET' | 'POST' | 'PUT' | 'DELETE';
428
+ params?: Record<string, any>;
429
+ headers?: Record<string, string>;
430
+ };
431
+
432
+ export declare interface Filter {
433
+ [key: string]: (string | number)[];
434
+ }
435
+
436
+ export declare interface FilterOption {
437
+ label: string;
438
+ name: string;
439
+ options?: FilterValue[];
440
+ type?: 'options' | 'date' | 'greaterThan' | 'scope' | 'select' | 'datalist' | 'column' | 'text' | 'range';
441
+ }
442
+
443
+ export declare interface FilterValue {
444
+ label: string;
445
+ value: string | number;
446
+ }
447
+
448
+ declare interface FirstRegistrationDateOverseas {
449
+ 'month'?: string;
450
+ 'year'?: string;
451
+ 'description'?: string;
452
+ }
453
+
454
+ /**
455
+ * Fix rounding errors we get from subtracting, and then adding GST back on
456
+ * (Issues with 2 decimal place rounding)
457
+ */
458
+ export declare function fixRoundingError(premium: number): number;
459
+
460
+ /**
461
+ * Formats a date to Star Insure standard format - dd/mm/yyyy
462
+ */
463
+ export declare function formatDate(date: Date | string | null | undefined, overrideFormatString?: string): string;
464
+
465
+ /**
466
+ * Formats a date like "01/01/2022 09:50"
467
+ */
468
+ export declare function formatDateForTable(date: string | null | undefined, includeTime?: boolean): string;
469
+
470
+ /**
471
+ * Formats a date like "Jan 1, 2022 at 9:50am"
472
+ */
473
+ export declare function formatDateNice(date: string | null | undefined, includeTime?: boolean): string;
474
+
475
+ /**
476
+ * Formats a dateTime to Star Insure standard format - dd/mm/yyyy hh:mm
477
+ */
478
+ export declare function formatDateTime(dateTime: Date | string | null | undefined, overrideFormatString?: string): string;
479
+
480
+ /**
481
+ * Formats a value nicely
482
+ */
483
+ export declare function formatMoney(value: string | number | null | undefined, decimals?: number): string;
484
+
485
+ /**
486
+ * Turns a formatted value in to a float
487
+ */
488
+ export declare function formatNumber(value: string): number;
489
+
490
+ declare type FormDataArray = FormDataConvertible[];
491
+
492
+ export declare type FormDataCompatible<T> = T extends FormDataConvertible ? T : T extends object ? {
493
+ [K in keyof T]: T[K] extends (infer U)[] ? FormDataCompatible<U>[] : FormDataCompatible<T[K]>;
494
+ } : FormDataConvertible;
495
+
496
+ declare type FormDataConvertible = FormDataPrimitive | FormDataArray | FormDataObject;
497
+
498
+ declare type FormDataObject = {
499
+ [key: string]: FormDataConvertible;
500
+ };
501
+
502
+ declare type FormDataPrimitive = string | number | boolean | null | undefined | File | Blob | Date;
503
+
504
+ export declare type FormStatus = 'idle' | 'processing' | 'success' | 'error';
505
+
506
+ export declare function FormTester({ populatePurchaseOptions }: Props_16): default_2.JSX.Element;
507
+
508
+ export declare type Frequency = 'daily' | 'weekly' | 'fortnightly' | 'monthly' | 'quarterly' | 'annually';
509
+
510
+ export declare type GatewayKey = 'SIS_Windcave_Account2Account' | 'SIS_Windcave_PxPayTradeMe' | 'SIS_Windcave_PxPayMonth' | 'SIS_Windcave_PxPayYear' | 'SIS_Windcave_PxPayStaff' | 'SIS_Windcave_PxPayTradeMeStaff' | 'bind' | 'invoice';
511
+
512
+ export declare function getAddressData(completion: AddressCompletion): Promise<AddressData | null>;
513
+
514
+ /**
515
+ * Gets the GST value from a number
516
+ */
517
+ export declare function getGst(value: number): number;
518
+
519
+ export declare interface GlassClaimRequest extends ClaimRequest {
520
+ 'claim_type': 'glass';
521
+ 'vehicle_registration'?: string;
522
+ 'vehicle_vin'?: string;
523
+ 'vehicle_make_and_model'?: string;
524
+ 'vehicle_make'?: string;
525
+ 'vehicle_model'?: string;
526
+ 'vehicle_year'?: string | number;
527
+ 'accident_location'?: string;
528
+ 'loss_happened_at'?: string;
529
+ 'accident_description'?: string;
530
+ 'repairer_name'?: string;
531
+ 'repairer_phone'?: string;
532
+ 'repairer_email'?: string;
533
+ }
534
+
535
+ export declare interface Group {
536
+ id: number;
537
+ name: string;
538
+ code: string;
539
+ 'x_code': string;
540
+ role?: Role;
541
+ permissions?: Permission[];
542
+ users?: User[];
543
+ }
544
+
545
+ /**
546
+ * Calculates the various GST values on a figure
547
+ */
548
+ export declare function gstCalc(input: number | string): {
549
+ gst: number;
550
+ amountInclusive: number;
551
+ amountExclusive: number;
552
+ };
553
+
554
+ export declare interface Incident {
555
+ 'year': string;
556
+ 'month': string;
557
+ 'description': string;
558
+ }
559
+
560
+ export declare interface InformationRequest {
561
+ id: string;
562
+ created_at: string;
563
+ updated_at: string;
564
+ user_id: number | null;
565
+ quote_request_id: string;
566
+ subject: string;
567
+ status: InformationRequestStatus;
568
+ messages?: InformationRequestMessage[];
569
+ user?: User;
570
+ }
571
+
572
+ export declare interface InformationRequestAttachment {
573
+ id: number;
574
+ created_at: string;
575
+ updated_at: string;
576
+ information_request_message_id: string;
577
+ title: string;
578
+ url: string;
579
+ }
580
+
581
+ export declare interface InformationRequestMessage {
582
+ id: number;
583
+ created_at: string;
584
+ updated_at: string;
585
+ information_request_id: string;
586
+ user_id: number | null;
587
+ content: string;
588
+ has_been_read_by_customer: boolean;
589
+ sent_at: string;
590
+ received_at: string;
591
+ user?: User;
592
+ attachments?: InformationRequestAttachment[];
593
+ }
594
+
595
+ export declare type InformationRequestStatus = 'open' | 'closed';
596
+
597
+ export declare const initialData: QuoteRequestForm_2;
598
+
599
+ export declare interface Lead {
600
+ id: number;
601
+ first_name: string;
602
+ last_name: string;
603
+ email: string;
604
+ mobile: string;
605
+ status: string;
606
+ source: string;
607
+ postal_address_id: PostalAddress['id'];
608
+ current_insurer: string | null;
609
+ current_insurance_expires_at: string | null;
610
+ current_insurance_is_monthly: boolean;
611
+ vehicle_details: string | null;
612
+ notes: string | null;
613
+ import_data: string | null;
614
+ }
615
+
616
+ export declare interface LevelOfInsurance {
617
+ id: number;
618
+ name: string;
619
+ }
620
+
621
+ declare interface Licence {
622
+ 'expiry-date'?: string;
623
+ 'licence-type'?: string;
624
+ 'issue-date'?: string;
625
+ 'issue-time'?: string;
626
+ 'continuous'?: string;
627
+ }
628
+
629
+ export declare interface Links {
630
+ first: string;
631
+ last: string;
632
+ prev: string | null;
633
+ next: string | null;
634
+ }
635
+
636
+ export declare interface MatchedRedbookVehicle {
637
+ make?: string;
638
+ model?: string;
639
+ year?: number;
640
+ description?: string;
641
+ redbookCode: string;
642
+ }
643
+
644
+ export declare interface Meta {
645
+ current_page: number;
646
+ from: number;
647
+ last_page: number;
648
+ links: PaginationLink[];
649
+ path: string;
650
+ per_page: number;
651
+ to: number;
652
+ total: number;
653
+ }
654
+
655
+ export declare function Modal({ children, isActive, onClose, title, width, className }: Props_5): default_2.JSX.Element;
656
+
657
+ export declare function MoneyField({ value, onChange, name, id, className, required }: Props_14): default_2.JSX.Element;
658
+
659
+ declare interface MotorvehicleCheck extends BviCheck {
660
+ 'number-of-owners'?: string;
661
+ owner?: Owner;
662
+ }
663
+
664
+ export declare interface MotorwebVehicle {
665
+ '@attributes': Attributes;
666
+ 'vehicle': BviCheck | MotorvehicleCheck;
667
+ }
668
+
669
+ export declare interface MotorwebVehicleResponse {
670
+ id: number;
671
+ created_at: string;
672
+ updated_at: string;
673
+ check_type: 'bvi' | 'motorcheck' | 'valuation';
674
+ plate_or_vin: string;
675
+ data: MotorwebVehicle;
676
+ }
677
+
678
+ declare interface OdometerReading {
679
+ '@attributes'?: Attributes4;
680
+ 'reading'?: string;
681
+ 'reading-date'?: string;
682
+ 'reading-unit'?: string;
683
+ 'source'?: string;
684
+ }
685
+
686
+ declare interface Options {
687
+ successMessage?: string;
688
+ }
689
+
690
+ export declare interface OraclePolicyMatch {
691
+ ply_covernumber: string;
692
+ ply_verno: string;
693
+ ply_clientnumber: string;
694
+ ply_riskcode: string;
695
+ ply_effdate: string;
696
+ ply_current: '-1' | '0';
697
+ client?: {
698
+ cli_clientnumber: string;
699
+ cli_emailaddress?: string;
700
+ };
701
+ }
702
+
703
+ declare interface Owner {
704
+ '@attributes': Attributes5;
705
+ 'ownership-date': string;
706
+ 'owner-status': string;
707
+ }
708
+
709
+ export declare function PageHeader({ title, search, className, innerClassName, back, actions, filterOptions, focusSearchShortcut, children }: Props_18): default_2.JSX.Element;
710
+
711
+ export declare namespace PageHeader {
712
+ var Action: ({ children }: {
713
+ children: default_2.ReactNode;
714
+ }) => default_2.JSX.Element;
715
+ }
716
+
717
+ export declare function Pagination({ meta, className, showPerPageSelector, defaultValue }: Props_3): default_2.JSX.Element;
718
+
719
+ export declare interface PaginationLink {
720
+ url: string | null;
721
+ label: string;
722
+ active: boolean;
723
+ }
724
+
725
+ export declare interface Passenger {
726
+ 'name': string;
727
+ 'phone'?: string;
728
+ 'email'?: string;
729
+ 'address'?: string;
730
+ }
731
+
732
+ export declare interface Payment {
733
+ id: string;
734
+ created_at: string;
735
+ updated_at: string;
736
+ status: PaymentStatus;
737
+ reference: string | null;
738
+ client_number: string | null;
739
+ amount: number;
740
+ processing_fee: number | null;
741
+ surcharge_percentage: number | null;
742
+ name: string | null;
743
+ email: string | null;
744
+ phone: string | null;
745
+ mobile: string | null;
746
+ gateway_key: GatewayKey;
747
+ gateway_reference: string;
748
+ payment_type: PaymentType;
749
+ quote_request_purchase_option_id: number | null;
750
+ quote_request_id: string | null;
751
+ email_sent_at: string | null;
752
+ cardholder_name: string;
753
+ card_name: string;
754
+ card_number: string;
755
+ card_expires_at: string;
756
+ card_token: string | null;
757
+ user_id: User['id'] | null;
758
+ return_url: string | null;
759
+ reason?: string;
760
+ user?: User;
761
+ quoteRequest?: QuoteRequest;
762
+ }
763
+
764
+ export declare type PaymentFrequency = 'monthly' | 'annually';
765
+
766
+ export declare type PaymentStatus = 'accepted' | 'incomplete' | 'declined';
767
+
768
+ export declare type PaymentType = 'quote' | 'account' | 'auction';
769
+
770
+ export declare interface Permission {
771
+ id: number;
772
+ name: string;
773
+ }
774
+
775
+ declare interface Plate {
776
+ '@attributes'?: Attributes3;
777
+ 'plate-number'?: string;
778
+ 'plate-type'?: string;
779
+ 'effective-date'?: string;
780
+ }
781
+
782
+ export declare interface PolicyBenefit {
783
+ id?: number;
784
+ name?: string;
785
+ description?: string;
786
+ sort_order?: number;
787
+ icon?: string;
788
+ auto_select?: boolean;
789
+ template_id?: PolicyBenefitTemplate['id'];
790
+ }
791
+
792
+ export declare interface PolicyBenefitTemplate {
793
+ id?: number;
794
+ created_at?: string;
795
+ updated_at?: string;
796
+ name?: string;
797
+ sort_order?: number;
798
+ }
799
+
800
+ export declare interface PolicyEnhancement {
801
+ id?: number;
802
+ name?: string;
803
+ description?: string;
804
+ premium?: number;
805
+ monthly_premium?: number;
806
+ disable_rounding?: boolean;
807
+ auto_select?: boolean;
808
+ sold_at?: string;
809
+ purchase_option_id?: QuoteRequestPurchaseOption['id'];
810
+ key?: string;
811
+ }
812
+
813
+ export declare interface PostalAddress {
814
+ id?: number;
815
+ postal_line_1?: string;
816
+ postal_line_2?: string;
817
+ postal_line_3?: string;
818
+ postal_line_4?: string;
819
+ }
820
+
821
+ export declare type PremiumType = 'annual' | 'total-due';
822
+
823
+ export declare type Product = 'star-enthusiast-prestige-everyday-plus' | 'star-enthusiast' | 'star-prestige' | 'star-everyday' | 'star-plus' | 'star-motorcycle' | 'star-campercare';
824
+
825
+ export declare interface PromoCode {
826
+ id?: number;
827
+ created_at?: string;
828
+ updated_at?: string;
829
+ code?: string;
830
+ user_id?: number;
831
+ group_id?: number;
832
+ referrer_id?: number;
833
+ referrer_category_id?: number;
834
+ advisor_type?: 'agent' | 'broker';
835
+ user?: User;
836
+ group?: Group;
837
+ referrer?: QuoteRequestReferrer;
838
+ category?: QuoteRequestReferrerCategory;
839
+ }
840
+
841
+ declare interface Props {
842
+ className?: string;
843
+ href?: string;
844
+ target?: '_blank' | '_self';
845
+ onClick?: Function;
846
+ type?: 'button' | 'submit';
847
+ status?: 'primary' | 'danger' | 'warning' | 'info' | 'default';
848
+ children: default_2.ReactNode;
849
+ disabled?: boolean;
850
+ as?: 'link' | 'button' | 'a';
851
+ small?: boolean;
852
+ }
853
+
854
+ declare interface Props_10 extends default_2.DetailedHTMLProps<default_2.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement> {
855
+ children: default_2.ReactNode;
856
+ className?: string;
857
+ }
858
+
859
+ declare interface Props_11 extends default_2.DetailedHTMLProps<default_2.ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement> {
860
+ children: default_2.ReactNode;
861
+ className?: string;
862
+ textAlign?: 'left' | 'right' | 'center';
863
+ sort?: string;
864
+ condensed?: true;
865
+ }
866
+
867
+ declare interface Props_12 extends default_2.DetailedHTMLProps<default_2.HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement> {
868
+ children: default_2.ReactNode;
869
+ className?: string;
870
+ onClick?: (e?: default_2.SyntheticEvent) => void;
871
+ }
872
+
873
+ declare interface Props_13 {
874
+ name?: string;
875
+ id?: string;
876
+ onChange: (dateString: string) => void;
877
+ value?: string;
878
+ maxYear?: number;
879
+ showAge?: boolean;
880
+ isRequired?: boolean;
881
+ }
882
+
883
+ declare interface Props_14 {
884
+ value?: number;
885
+ onChange: (value: number) => void;
886
+ id?: string;
887
+ name?: string;
888
+ className?: string;
889
+ required?: boolean;
890
+ }
891
+
892
+ declare interface Props_15 {
893
+ name?: string;
894
+ onChange?: (values: RegistrationSearchOnChange) => void;
895
+ onVehicleDataFound: (vehicleData: VehicleData) => void;
896
+ apiUrl?: string;
897
+ showOdometerReadingField?: boolean;
898
+ showConditionField?: boolean;
899
+ initialRegistrationValue?: string;
900
+ outerClassName?: string;
901
+ odoInputClassName?: string;
902
+ conditionSelectClassName?: string;
903
+ regoInputClassName?: string;
904
+ searchBtnClassName?: string;
905
+ }
906
+
907
+ declare interface Props_16 {
908
+ populatePurchaseOptions: boolean;
909
+ }
910
+
911
+ declare interface Props_17 {
912
+ heading?: string;
913
+ errors?: Errors & ErrorBag;
914
+ renderKeys?: boolean;
915
+ className?: string;
916
+ }
917
+
918
+ declare interface Props_18 {
919
+ title: string;
920
+ search?: string;
921
+ className?: string;
922
+ innerClassName?: string;
923
+ back?: boolean | string;
924
+ actions?: TPageHeaderAction[];
925
+ backText?: string;
926
+ filterOptions?: FilterOption[];
927
+ focusSearchShortcut?: boolean;
928
+ children?: default_2.ReactNode;
929
+ }
930
+
931
+ declare interface Props_2 {
932
+ className?: string;
933
+ children: default_2.ReactNode;
934
+ }
935
+
936
+ declare interface Props_3 {
937
+ className?: string;
938
+ meta: Meta;
939
+ showPerPageSelector?: boolean;
940
+ defaultValue?: number;
941
+ }
942
+
943
+ declare interface Props_4 {
944
+ className?: string;
945
+ meta: Meta;
946
+ showPerPageSelector?: boolean;
947
+ defaultValue?: number;
948
+ }
949
+
950
+ declare interface Props_5 {
951
+ children: default_2.ReactNode;
952
+ isActive?: boolean;
953
+ onClose: () => void;
954
+ title?: string;
955
+ width?: string;
956
+ className?: string;
957
+ }
958
+
959
+ declare interface Props_6 extends default_2.DetailedHTMLProps<default_2.TableHTMLAttributes<HTMLTableElement>, HTMLTableElement> {
960
+ children: default_2.ReactNode;
961
+ }
962
+
963
+ declare interface Props_7 {
964
+ children: default_2.ReactNode;
965
+ className?: string;
966
+ }
967
+
968
+ declare interface Props_8 extends default_2.DetailedHTMLProps<default_2.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement> {
969
+ children: default_2.ReactNode;
970
+ className?: string;
971
+ }
972
+
973
+ declare interface Props_9 extends default_2.DetailedHTMLProps<default_2.TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement> {
974
+ children: default_2.ReactNode;
975
+ className?: string;
976
+ condensed?: true;
977
+ }
978
+
979
+ export declare interface QuoteRequest {
980
+ id?: string;
981
+ status?: QuoteRequestStatus;
982
+ source?: QuoteRequestSource;
983
+ reference?: string;
984
+ client_number?: string;
985
+ policy_number?: string;
986
+ first_name?: string;
987
+ last_name?: string;
988
+ phone?: string;
989
+ mobile?: string;
990
+ email?: string;
991
+ licence?: string;
992
+ licence_other?: string;
993
+ has_automatch?: boolean;
994
+ automatch_by?: QuoteRequestAutomatch;
995
+ automatch_registrations?: string;
996
+ promo_code?: string;
997
+ club_membership_number?: string;
998
+ broker_fee?: number;
999
+ length_of_insurance?: string;
1000
+ theme?: string;
1001
+ notes?: string;
1002
+ purchase_options_summary?: string;
1003
+ secondary_first_name?: string;
1004
+ secondary_last_name?: string;
1005
+ secondary_licence?: string;
1006
+ secondary_licence_other?: string;
1007
+ created_at?: string;
1008
+ updated_at?: string;
1009
+ dob?: string;
1010
+ secondary_dob?: string;
1011
+ sold_at?: string;
1012
+ sent_at?: string;
1013
+ pricing_expires_at?: string;
1014
+ max_policy_starts_at?: string;
1015
+ follow_up_at?: string;
1016
+ resubmit_id?: QuoteRequest['id'];
1017
+ referrer_id?: QuoteRequestReferrer['id'];
1018
+ referrer_category_id?: QuoteRequestReferrerCategory['id'];
1019
+ staff_member_id?: QuoteRequestUser['id'];
1020
+ agent_id?: QuoteRequestUser['id'];
1021
+ agent_firm_id?: QuoteRequestUserGroup['id'];
1022
+ broker_firm_id?: QuoteRequestUserGroup['id'];
1023
+ broker_id?: QuoteRequestUser['id'];
1024
+ dealer_firm_id?: QuoteRequestUserGroup['id'];
1025
+ dealer_id?: QuoteRequestUser['id'];
1026
+ club_id?: Club['id'];
1027
+ lead_id?: Lead['id'];
1028
+ blacklist_entry_id?: BlacklistEntry['id'];
1029
+ declaration?: QuoteRequestDeclaration;
1030
+ street_address?: StreetAddress;
1031
+ postal_address?: PostalAddress;
1032
+ resubmit?: QuoteRequest;
1033
+ referrer?: QuoteRequestReferrer;
1034
+ referrer_category?: QuoteRequestReferrerCategory;
1035
+ staff_member?: QuoteRequestUser;
1036
+ agent?: QuoteRequestUser;
1037
+ agent_firm?: QuoteRequestUserGroup;
1038
+ broker?: QuoteRequestUser;
1039
+ broker_firm?: QuoteRequestUserGroup;
1040
+ dealer?: QuoteRequestUser;
1041
+ dealer_firm?: QuoteRequestUserGroup;
1042
+ club?: Club;
1043
+ lead?: Lead;
1044
+ vehicles?: QuoteRequestVehicle[];
1045
+ purchase_options?: QuoteRequestPurchaseOption[];
1046
+ logs?: QuoteRequestLog[];
1047
+ information_requests?: InformationRequest[];
1048
+ links?: {
1049
+ purchase: string;
1050
+ purchase_preview: string;
1051
+ purchase_options_pdf: string;
1052
+ documentation_pdf: string;
1053
+ };
1054
+ blacklist_entry?: BlacklistEntry;
1055
+ is_follow_up_required: boolean;
1056
+ payments?: Payment[];
1057
+ automatches?: Automatch[];
1058
+ }
1059
+
1060
+ export declare type QuoteRequestAutomatch = 'quote' | 'email' | 'registration' | 'duplicate' | 'name-dob' | 'phone';
1061
+
1062
+ export declare interface QuoteRequestDeclaration {
1063
+ id?: number;
1064
+ quote_request_id?: QuoteRequest['id'];
1065
+ had_incident?: boolean;
1066
+ incidents?: QuoteRequestIncident[];
1067
+ has_demerit_points?: boolean;
1068
+ demerit_points?: string;
1069
+ has_lost_licence?: boolean;
1070
+ lost_licence_details?: string;
1071
+ was_refused_insurance?: boolean;
1072
+ refused_insurance_details?: string;
1073
+ has_criminal_conviction?: boolean;
1074
+ criminal_conviction_details?: string;
1075
+ has_vehicle_modifications?: boolean;
1076
+ vehicle_modifications_details?: string;
1077
+ has_previous_insurer?: boolean;
1078
+ previous_insurer_details?: string;
1079
+ previous_insurer_expires_at?: string;
1080
+ additional_details?: string;
1081
+ }
1082
+
1083
+ export declare interface QuoteRequestForm {
1084
+ id?: string;
1085
+ status?: QuoteRequestStatus;
1086
+ source?: QuoteRequestSource;
1087
+ reference?: string;
1088
+ client_number?: string;
1089
+ first_name?: string;
1090
+ last_name?: string;
1091
+ phone?: string;
1092
+ mobile?: string;
1093
+ email?: string;
1094
+ licence?: string;
1095
+ licence_other?: string;
1096
+ promo_code?: string;
1097
+ club_membership_number?: string;
1098
+ broker_fee?: number;
1099
+ length_of_insurance?: string;
1100
+ theme?: string;
1101
+ notes?: string;
1102
+ dob?: string;
1103
+ sold_at?: string;
1104
+ sent_at?: string;
1105
+ pricing_expires_at?: string;
1106
+ follow_up_at?: string;
1107
+ referrer_id?: QuoteRequestReferrer['id'];
1108
+ referrer_category_id?: QuoteRequestReferrerCategory['id'];
1109
+ staff_member_id?: QuoteRequestUser['id'];
1110
+ agent_id?: QuoteRequestUser['id'];
1111
+ agent_firm_id?: QuoteRequestUserGroup['id'];
1112
+ broker_firm_id?: QuoteRequestUserGroup['id'];
1113
+ broker_id?: QuoteRequestUser['id'];
1114
+ club_id?: Club['id'];
1115
+ street_address: {
1116
+ id?: number;
1117
+ address?: string;
1118
+ unit?: string;
1119
+ suburb?: string;
1120
+ city?: string;
1121
+ post_code?: string;
1122
+ };
1123
+ declaration: {
1124
+ id?: number;
1125
+ had_incident?: boolean;
1126
+ incidents: {
1127
+ year?: string;
1128
+ month?: string;
1129
+ description?: string;
1130
+ }[];
1131
+ has_demerit_points?: boolean;
1132
+ demerit_points?: string;
1133
+ has_lost_licence?: boolean;
1134
+ lost_licence_details?: string;
1135
+ was_refused_insurance?: boolean;
1136
+ refused_insurance_details?: string;
1137
+ has_criminal_conviction?: boolean;
1138
+ criminal_conviction_details?: string;
1139
+ has_vehicle_modifications?: boolean;
1140
+ vehicle_modifications_details?: string;
1141
+ has_previous_insurer?: boolean;
1142
+ previous_insurer_details?: string;
1143
+ previous_insurer_expires_at?: string;
1144
+ additional_details?: string;
1145
+ };
1146
+ vehicles: {
1147
+ id?: number;
1148
+ vehicle_type?: VehicleType;
1149
+ registration?: string;
1150
+ make?: string;
1151
+ model?: string;
1152
+ year?: string;
1153
+ usage?: string;
1154
+ product?: Product;
1155
+ has_financially_interested_party?: boolean;
1156
+ financially_interested_party_detail?: string;
1157
+ owned_duration?: string;
1158
+ value?: number;
1159
+ storage_location?: string;
1160
+ is_heavy?: boolean;
1161
+ main_driver?: string;
1162
+ drivers: {
1163
+ id?: number;
1164
+ first_name?: string;
1165
+ last_name?: string;
1166
+ dob?: string;
1167
+ relationship?: string;
1168
+ licence?: string;
1169
+ licence_other?: string;
1170
+ }[];
1171
+ }[];
1172
+ purchase_options: {
1173
+ id?: number;
1174
+ level_of_insurance_id?: number;
1175
+ sort_order?: number;
1176
+ description?: string;
1177
+ base_premium?: number;
1178
+ premium?: number;
1179
+ monthly_premium?: number;
1180
+ show_monthly?: boolean;
1181
+ fsl?: number;
1182
+ gst?: number;
1183
+ premium_type?: PremiumType;
1184
+ policy_starts_at?: string;
1185
+ sold_at?: string;
1186
+ is_paid?: boolean;
1187
+ payment_frequency?: PaymentFrequency;
1188
+ }[];
1189
+ }
1190
+
1191
+ declare type QuoteRequestForm_2 = QuoteRequest & Record<string, any>;
1192
+
1193
+ export declare const QuoteRequestFormContext: default_2.Context<QuoteRequestFormContextInterface>;
1194
+
1195
+ declare interface QuoteRequestFormContextInterface {
1196
+ form?: InertiaFormProps<QuoteRequestForm_2>;
1197
+ handleChange?: (e: default_2.ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>) => void;
1198
+ clear: () => void;
1199
+ }
1200
+
1201
+ declare interface QuoteRequestFormContextInterface_2 {
1202
+ options?: QuoteRequestOptions;
1203
+ setOptions: (options: QuoteRequestOptions) => void;
1204
+ }
1205
+
1206
+ export declare function QuoteRequestFormProvider({ children }: {
1207
+ children: default_2.ReactNode;
1208
+ }): default_2.JSX.Element;
1209
+
1210
+ export declare interface QuoteRequestIncident {
1211
+ year?: string;
1212
+ month?: string;
1213
+ description?: string;
1214
+ key?: string;
1215
+ }
1216
+
1217
+ declare interface QuoteRequestLog {
1218
+ id: number;
1219
+ created_at: string;
1220
+ quote_request_id: string;
1221
+ user_id: number | null;
1222
+ user?: User;
1223
+ activity_type: string;
1224
+ message: string;
1225
+ key?: string;
1226
+ }
1227
+
1228
+ export declare interface QuoteRequestOptions {
1229
+ club_options: SimpleOption[];
1230
+ driver_licence_options: SimpleOption[];
1231
+ incident_options: SimpleOption[];
1232
+ insurance_companies: SimpleOption[];
1233
+ level_of_insurance_options: SimpleOption[];
1234
+ policy_description_options: SimpleOption[];
1235
+ referrer_category_options: (SimpleOption & {
1236
+ is_public: boolean;
1237
+ })[];
1238
+ relationship_options: SimpleOption[];
1239
+ storage_location_options: SimpleOption[];
1240
+ vehicle_usage_options: {
1241
+ id: number;
1242
+ name: string;
1243
+ vehicle_type: VehicleType;
1244
+ }[];
1245
+ policy_benefit_template_options: SimpleOption[];
1246
+ referrer_options: {
1247
+ id: number;
1248
+ name: string;
1249
+ category_id: number;
1250
+ is_public: boolean;
1251
+ }[];
1252
+ policy_benefit_options: {
1253
+ id: number;
1254
+ name: string;
1255
+ description: string;
1256
+ auto_select: boolean;
1257
+ template_id: number;
1258
+ sort_order: number;
1259
+ }[];
1260
+ policy_enhancement_options: {
1261
+ id: number;
1262
+ name: string;
1263
+ description: string;
1264
+ premium: number;
1265
+ disable_rounding: boolean;
1266
+ auto_select: boolean;
1267
+ }[];
1268
+ authorised_drivers_options: {
1269
+ id: number;
1270
+ name: string;
1271
+ description: string;
1272
+ }[];
1273
+ terms_options: {
1274
+ id: number;
1275
+ name: string;
1276
+ description: string;
1277
+ }[];
1278
+ excess_options: {
1279
+ id: number;
1280
+ name: string;
1281
+ description: string;
1282
+ }[];
1283
+ }
1284
+
1285
+ export declare function QuoteRequestOptionsProvider({ children }: {
1286
+ children: default_2.ReactNode;
1287
+ }): default_2.JSX.Element;
1288
+
1289
+ export declare interface QuoteRequestPurchaseOption {
1290
+ id?: number;
1291
+ quote_request_id?: string;
1292
+ level_of_insurance_id?: number;
1293
+ policy_number?: string;
1294
+ sort_order?: number;
1295
+ description?: string;
1296
+ premium?: number;
1297
+ monthly_premium?: number;
1298
+ purchased_total?: number;
1299
+ show_monthly?: boolean;
1300
+ fsl?: number;
1301
+ gst?: number;
1302
+ premium_type?: PremiumType;
1303
+ policy_starts_at?: string;
1304
+ sold_at?: string;
1305
+ is_paid?: boolean;
1306
+ payment_frequency?: PaymentFrequency;
1307
+ excess_details?: string;
1308
+ terms?: string;
1309
+ authorised_drivers?: string;
1310
+ is_draft?: boolean;
1311
+ is_direct_debit?: boolean;
1312
+ benefit_template_id?: number;
1313
+ level_of_insurance?: LevelOfInsurance;
1314
+ enhancements?: PolicyEnhancement[];
1315
+ benefits?: PolicyBenefit[];
1316
+ benefit_template?: PolicyBenefitTemplate;
1317
+ key?: string;
1318
+ }
1319
+
1320
+ export declare interface QuoteRequestReferrer {
1321
+ id: number;
1322
+ name: string;
1323
+ category_id: QuoteRequestReferrerCategory['id'];
1324
+ category?: QuoteRequestReferrerCategory;
1325
+ key?: string;
1326
+ is_public: boolean;
1327
+ }
1328
+
1329
+ export declare interface QuoteRequestReferrerCategory {
1330
+ id: number;
1331
+ name: string;
1332
+ key?: string;
1333
+ is_public: boolean;
1334
+ }
1335
+
1336
+ export declare type QuoteRequestSource = 'web' | 'phone' | 'show' | 'existing-customer' | 'mighway' | 'agent' | 'broker' | 'entry-form' | 'bularangi' | 'eric-t' | 'referrer';
1337
+
1338
+ export declare type QuoteRequestStatus = 'new' | 'draft' | 'in-progress' | 'with-customer' | 'sold' | 'bound' | 'customer-modified' | 'closed';
1339
+
1340
+ export declare interface QuoteRequestUser {
1341
+ id: number;
1342
+ name: string;
1343
+ email: string;
1344
+ }
1345
+
1346
+ export declare interface QuoteRequestUserGroup {
1347
+ id: number;
1348
+ name: string;
1349
+ }
1350
+
1351
+ export declare interface QuoteRequestVehicle {
1352
+ id?: number;
1353
+ vehicle_type?: VehicleType;
1354
+ registration?: string;
1355
+ make?: string;
1356
+ model?: string;
1357
+ year?: string;
1358
+ usage?: string;
1359
+ product?: Product;
1360
+ has_financially_interested_party?: boolean;
1361
+ financially_interested_party_detail?: string;
1362
+ owned_duration?: string;
1363
+ value?: number;
1364
+ storage_location?: string;
1365
+ storage_location_other?: string;
1366
+ is_heavy?: boolean;
1367
+ quote_request_id?: string;
1368
+ drivers?: QuoteRequestVehicleDriver[];
1369
+ key?: string;
1370
+ main_driver?: string;
1371
+ }
1372
+
1373
+ export declare interface QuoteRequestVehicleDriver {
1374
+ id?: number;
1375
+ first_name?: string;
1376
+ last_name?: string;
1377
+ dob?: string;
1378
+ relationship?: string;
1379
+ licence?: string;
1380
+ licence_other?: string;
1381
+ quote_request_vehicle_id?: number;
1382
+ key?: string;
1383
+ }
1384
+
1385
+ export declare interface RedbookVehicle {
1386
+ id: number;
1387
+ body_type: string | null;
1388
+ colour: string | null;
1389
+ condition: string | null;
1390
+ created_at: string | null;
1391
+ description: string | null;
1392
+ engine_number: string | null;
1393
+ imported: boolean | null;
1394
+ make: string | null;
1395
+ model: string | null;
1396
+ odometer_read_at: string | null;
1397
+ odometer_reading: string | null;
1398
+ odometer_reading_source: string | null;
1399
+ redbook_code: string | null;
1400
+ registration: string | null;
1401
+ sub_model: string | null;
1402
+ updated_at: string | null;
1403
+ value: number | null;
1404
+ vehicle_type: string | null;
1405
+ vin: string | null;
1406
+ weight: number | null;
1407
+ year: number | null;
1408
+ valuation_details: Valuation[] | null;
1409
+ chassis_number: string | null;
1410
+ fuel_type: string | null;
1411
+ previous_registered_country: string | null;
1412
+ overseas_first_registered_year: number | null;
1413
+ overseas_first_registered_month: number | null;
1414
+ }
1415
+
1416
+ declare interface Registration {
1417
+ 'previous-country-of-registration'?: string;
1418
+ 'first-registration-date-in-new-zealand'?: string;
1419
+ 'registration-status'?: string;
1420
+ 'cause-of-last-registration'?: string;
1421
+ 'registered-overseas'?: string;
1422
+ 'first-registration-date-overseas'?: FirstRegistrationDateOverseas;
1423
+ 'last-registration-date'?: string;
1424
+ }
1425
+
1426
+ export declare function RegistrationSearchField({ name, initialRegistrationValue, onVehicleDataFound, apiUrl, showOdometerReadingField, showConditionField, onChange, outerClassName, odoInputClassName, conditionSelectClassName, regoInputClassName, searchBtnClassName, }: Props_15): default_2.JSX.Element;
1427
+
1428
+ declare interface RegistrationSearchOnChange {
1429
+ registration: string;
1430
+ }
1431
+
1432
+ export declare interface RetailValueList {
1433
+ condition: string;
1434
+ lowerPricingRange: number;
1435
+ upperPricingRange: number;
1436
+ value: number;
1437
+ kilometers: number;
1438
+ }
1439
+
1440
+ export declare interface RiskDisplayValue {
1441
+ id: number;
1442
+ created_at: string;
1443
+ updated_at: string;
1444
+ RI_CODE: string;
1445
+ RI_DESCRIPTION?: string;
1446
+ value: string;
1447
+ }
1448
+
1449
+ export declare interface Role {
1450
+ id: number;
1451
+ name: string;
1452
+ context: UserContext;
1453
+ permissions?: Permission[];
1454
+ }
1455
+
1456
+ /**
1457
+ * Safely rounds a number
1458
+ */
1459
+ export declare function round(value: number): number;
1460
+
1461
+ declare interface Ruc {
1462
+ '@attributes': Attributes2;
1463
+ 'is-subject-to'?: string;
1464
+ }
1465
+
1466
+ /**
1467
+ * Takes in a quote request and returns data suitable to populate a form
1468
+ * by recursively calling this function, converting null to undefined.
1469
+ */
1470
+ export declare function sanitiseQuoteRequestFormData(value: any): any;
1471
+
1472
+ export declare function sanitiseVehicleType(inputType: string): VehicleType;
1473
+
1474
+ declare interface SimpleOption {
1475
+ id: number;
1476
+ name: string;
1477
+ }
1478
+
1479
+ export declare function SimplePagination({ meta, className, showPerPageSelector, defaultValue, }: Props_4): default_2.JSX.Element;
1480
+
1481
+ export declare interface SmsContentOption {
1482
+ id: number;
1483
+ created_at: string;
1484
+ updated_at: string;
1485
+ name: string;
1486
+ content: string;
1487
+ }
1488
+
1489
+ export declare interface SmsMessage {
1490
+ id: number;
1491
+ created_at: string;
1492
+ updated_at: string;
1493
+ content: string;
1494
+ recipients: string;
1495
+ reference: string | null;
1496
+ reply_to: string | null;
1497
+ user_id: number | null;
1498
+ quote_request_id: string | null;
1499
+ is_archived: boolean;
1500
+ replies?: SmsMessageReply[];
1501
+ quote_request?: QuoteRequest;
1502
+ user?: User;
1503
+ }
1504
+
1505
+ export declare interface SmsMessageReply {
1506
+ id: number;
1507
+ created_at: string;
1508
+ updated_at: string;
1509
+ content: string;
1510
+ phone_number: string;
1511
+ sms_message_id: number;
1512
+ message?: SmsMessage;
1513
+ }
1514
+
1515
+ export declare interface StreetAddress {
1516
+ id?: number;
1517
+ address?: string;
1518
+ unit?: string;
1519
+ suburb?: string;
1520
+ city?: string;
1521
+ post_code?: string;
1522
+ }
1523
+
1524
+ /**
1525
+ * Subtracts GST from a number
1526
+ */
1527
+ export declare function subtractGst(value: number): number;
1528
+
1529
+ export declare function Table({ children, ...props }: Props_6): default_2.JSX.Element;
1530
+
1531
+ export declare function TableActions({ children, className }: Props_7): default_2.JSX.Element;
1532
+
1533
+ export declare function TableBody({ children, className, ...props }: Props_8): default_2.JSX.Element;
1534
+
1535
+ export declare function TableCell({ children, className, condensed, ...props }: Props_9): default_2.JSX.Element;
1536
+
1537
+ export declare interface TableDataDisplayValue {
1538
+ id: number;
1539
+ created_at: string;
1540
+ updated_at: string;
1541
+ TBL_TYPE: string;
1542
+ TBL_CODE: string;
1543
+ TBL_FULLNAME?: string;
1544
+ value: string;
1545
+ }
1546
+
1547
+ export declare function TableHead({ children, className, ...props }: Props_10): default_2.JSX.Element;
1548
+
1549
+ export declare function TableHeader({ children, className, sort, textAlign, condensed, ...props }: Props_11): default_2.JSX.Element;
1550
+
1551
+ export declare function TableRow({ children, className, onClick, ...props }: Props_12): default_2.JSX.Element;
1552
+
1553
+ export declare interface TheftClaimRequest extends ClaimRequest {
1554
+ 'claim_type': 'theft';
1555
+ 'is_registered_under_same_name'?: boolean;
1556
+ 'registered_name'?: string;
1557
+ 'registered_address'?: string;
1558
+ 'registered_phone'?: string;
1559
+ 'is_leased'?: boolean;
1560
+ 'lease_name'?: string;
1561
+ 'lease_address'?: string;
1562
+ 'lease_phone'?: string;
1563
+ 'lease_number'?: string;
1564
+ 'lease_payment_amount'?: string | number;
1565
+ 'lease_payment_frequency'?: Frequency;
1566
+ 'has_conviction'?: boolean;
1567
+ 'conviction_details'?: string;
1568
+ 'has_recent_claim'?: boolean;
1569
+ 'incident_details'?: Incident[];
1570
+ 'was_disqualified'?: boolean;
1571
+ 'disqualified_details'?: string;
1572
+ 'was_vehicle_used_without_consent'?: boolean;
1573
+ 'vehicle_used_without_consent_details'?: string;
1574
+ 'has_existing_vehicle_damage'?: boolean;
1575
+ 'existing_vehicle_damage_details'?: string;
1576
+ 'was_refused_insurance'?: boolean;
1577
+ 'refused_insurance_details'?: string;
1578
+ 'has_additional_information'?: boolean;
1579
+ 'additional_information_details'?: string;
1580
+ 'vehicle_registration'?: string;
1581
+ 'vehicle_vin'?: string;
1582
+ 'vehicle_make_and_model'?: string;
1583
+ 'vehicle_make'?: string;
1584
+ 'vehicle_model'?: string;
1585
+ 'vehicle_year'?: string | number;
1586
+ 'vehicle_type'?: VehicleType;
1587
+ 'finance_company'?: string;
1588
+ 'finance_phone'?: string;
1589
+ 'vehicle_purchased_on'?: string;
1590
+ 'vehicle_purchased_from'?: string;
1591
+ 'vehicle_purchased_price'?: string | number;
1592
+ 'vehicle_value'?: number;
1593
+ 'was_vehicle_for_sale'?: boolean;
1594
+ 'vehicle_first_asking_price'?: string | number;
1595
+ 'vehicle_last_asking_price'?: string | number;
1596
+ 'vehicle_sale_duration'?: string;
1597
+ 'vehicle_purchaser_name'?: string;
1598
+ 'vehicle_purchaser_address'?: string;
1599
+ 'vehicle_purchaser_phone'?: string;
1600
+ 'vehicle_hp_cc_rating'?: string;
1601
+ 'vehicle_transmission'?: string;
1602
+ 'vehicle_engine_number'?: string;
1603
+ 'vehicle_has_air_conditioning'?: boolean;
1604
+ 'vehicle_has_cng'?: boolean;
1605
+ 'vehicle_has_lpg'?: boolean;
1606
+ 'vehicle_colour'?: string;
1607
+ 'vehicle_colour_changes'?: string;
1608
+ 'was_vehicle_repaired'?: boolean;
1609
+ 'vehicle_repaired_damage_details'?: string;
1610
+ 'vehicle_repairer'?: string;
1611
+ 'vehicle_repaired_on'?: string;
1612
+ 'was_vehicle_damaged'?: boolean;
1613
+ 'vehicle_damage_details'?: string;
1614
+ 'vehicle_tyre_condition_front_right'?: Condition;
1615
+ 'vehicle_tyre_condition_front_left'?: Condition;
1616
+ 'vehicle_tyre_condition_rear_right'?: Condition;
1617
+ 'vehicle_tyre_condition_rear_left'?: Condition;
1618
+ 'vehicle_tyre_condition_spare'?: string;
1619
+ 'wheel_assembly_details'?: string;
1620
+ 'vehicle_radio_type'?: string;
1621
+ 'vehicle_radio_make'?: string;
1622
+ 'vehicle_radio_location'?: string;
1623
+ 'vehicle_radio_fixing'?: string;
1624
+ 'vehicle_speaker_make'?: string;
1625
+ 'has_additional_accessories'?: boolean;
1626
+ 'accessory_details'?: Accessory[];
1627
+ 'has_identifiable_contents'?: boolean;
1628
+ 'identifiable_contents_details'?: Contents[];
1629
+ 'vehicle_serviced_by'?: string;
1630
+ 'has_service_invoices'?: boolean;
1631
+ 'vehicle_wof_issued_by'?: string;
1632
+ 'vehicle_wof_issued_on'?: string;
1633
+ 'vehicle_wof_expires_on'?: string;
1634
+ 'vehicle_floor_type'?: string;
1635
+ 'vehicle_interior_details'?: string;
1636
+ 'vehicle_seatbelt_type'?: string;
1637
+ 'vehicle_seatbelt_condition'?: Condition;
1638
+ 'vehicle_engine_condition'?: Condition;
1639
+ 'vehicle_gearbox_condition'?: Condition;
1640
+ 'vehicle_transmission_condition'?: Condition;
1641
+ 'vehicle_suspension_condition'?: Condition;
1642
+ 'vehicle_steering_condition'?: Condition;
1643
+ 'vehicle_seats_condition'?: Condition;
1644
+ 'vehicle_trims_condition'?: Condition;
1645
+ 'vehicle_body_condition'?: Condition;
1646
+ 'vehicle_paint_condition'?: Condition;
1647
+ 'vehicle_dashboard_condition'?: Condition;
1648
+ 'did_engine_use_oil'?: boolean;
1649
+ 'vehicle_engine_oil_per_month'?: string;
1650
+ 'vehicle_ran_well'?: boolean;
1651
+ 'vehicle_ran_poorly_details'?: string;
1652
+ 'theft_details'?: string;
1653
+ 'loss_happened_at'?: string;
1654
+ 'theft_discovered_at'?: string;
1655
+ 'last_seen_at'?: string;
1656
+ 'vehicle_last_used_by'?: string;
1657
+ 'address_stolen_from'?: string;
1658
+ 'were_windows_up'?: boolean;
1659
+ 'windows_down_details'?: string;
1660
+ 'were_doors_locked'?: boolean;
1661
+ 'doors_unlocked_details'?: string;
1662
+ 'has_theft_evidence'?: boolean;
1663
+ 'theft_evidence_details'?: string;
1664
+ 'has_steering_lock'?: boolean;
1665
+ 'was_steering_lock_activated'?: boolean;
1666
+ 'has_alarm'?: boolean;
1667
+ 'was_alarm_active'?: boolean;
1668
+ 'alarm_inactive_details'?: string;
1669
+ 'was_boot_locked'?: boolean;
1670
+ 'boot_unlocked_details'?: string;
1671
+ 'keys_count'?: string;
1672
+ 'key_holder_name'?: string;
1673
+ 'key_holder_phone'?: string;
1674
+ 'key_holder_address'?: string;
1675
+ 'keys_location'?: string;
1676
+ 'policyholder_whereabouts_details'?: string;
1677
+ 'were_police_notified'?: boolean;
1678
+ 'did_police_attend'?: boolean;
1679
+ 'police_officer_name'?: string;
1680
+ 'police_officer_email'?: string;
1681
+ 'police_reference'?: string;
1682
+ 'police_station_address'?: string;
1683
+ 'police_not_notified_details'?: string;
1684
+ 'police_have_suspect'?: boolean;
1685
+ 'police_suspect_details'?: string;
1686
+ 'policyholder_has_suspect'?: boolean;
1687
+ 'policyholder_suspect_details'?: string;
1688
+ 'was_theft_witnessed'?: boolean;
1689
+ 'theft_witnessed_details'?: string;
1690
+ 'has_cctv_footage'?: boolean;
1691
+ 'cctv_footage_details'?: string;
1692
+ 'is_claiming_contents'?: boolean;
1693
+ 'is_contents_insured_elsewhere'?: boolean;
1694
+ 'contents_details'?: ClaimItem[];
1695
+ }
1696
+
1697
+ export declare interface Toast {
1698
+ _id?: string;
1699
+ message: string;
1700
+ status?: 'success' | 'error' | 'default' | 'warning';
1701
+ timeout?: number;
1702
+ }
1703
+
1704
+ declare interface ToastContextInterface {
1705
+ toasts: Toast[];
1706
+ addToast: (toast: Toast) => void;
1707
+ removeToast: (id: Toast['_id']) => void;
1708
+ }
1709
+
1710
+ export declare function ToastItem({ _id, message, status }: Toast): default_2.JSX.Element;
1711
+
1712
+ export declare function ToastProvider({ children }: any): React_2.JSX.Element;
1713
+
1714
+ export declare function Toasts(): default_2.JSX.Element;
1715
+
1716
+ export declare type TPageHeaderAction = {
1717
+ title: string;
1718
+ as?: 'button' | 'a' | 'Link';
1719
+ href?: string;
1720
+ target?: '_self' | '_blank';
1721
+ onClick?: Function;
1722
+ type?: 'button' | 'submit';
1723
+ hidden?: boolean;
1724
+ shortcutKey?: string;
1725
+ backgroundColor?: string;
1726
+ textColor?: string;
1727
+ hoverBackgroundColor?: string;
1728
+ hoverTextColor?: string;
1729
+ actions?: TPageHeaderInnerAction[];
1730
+ };
1731
+
1732
+ export declare type TPageHeaderInnerAction = {
1733
+ title: string;
1734
+ as?: 'button' | 'a' | 'Link';
1735
+ href?: string;
1736
+ target?: '_self' | '_blank';
1737
+ onClick?: Function;
1738
+ hidden?: boolean;
1739
+ };
1740
+
1741
+ declare interface Transmission {
1742
+ 'type'?: string;
1743
+ }
1744
+
1745
+ export declare type TwoFactorAuthMethod = 'email' | 'sms';
1746
+
1747
+ export declare function useAuth(): AuthContext;
1748
+
1749
+ export declare function useClickOutside(ref: any, handler: (e: Event) => void): void;
1750
+
1751
+ /**
1752
+ * A helper to return a fetch function including default headers and authorization.
1753
+ */
1754
+ export declare function useFetch<T = any>({ url: baseUrl, method, params, headers, }: FetchOptions): FetcherFunction<T>;
1755
+
1756
+ export declare function useInertiaOptions({ successMessage }?: Options): VisitOptions;
1757
+
1758
+ export declare function useLocalStorage<T>(key: string, initialValue: T): readonly [T, (value: T | ((val: T) => T)) => void];
1759
+
1760
+ export declare const useQuoteRequestForm: () => QuoteRequestFormContextInterface;
1761
+
1762
+ export declare const useQuoteRequestOptions: () => QuoteRequestFormContextInterface_2;
1763
+
1764
+ export declare interface User {
1765
+ id: number;
1766
+ oracle_user_id?: string;
1767
+ name: string;
1768
+ email: string;
1769
+ mobile?: string;
1770
+ direct_dial?: string;
1771
+ position?: string;
1772
+ is_group_admin?: boolean;
1773
+ umbrella_filter?: string;
1774
+ groups?: Group[];
1775
+ permissions?: string[];
1776
+ phone_extension?: number;
1777
+ two_factor_method?: TwoFactorAuthMethod;
1778
+ }
1779
+
1780
+ export declare type UserContext = 'administrator' | 'staff' | 'broker' | 'dealer' | 'agent' | 'security' | 'customer';
1781
+
1782
+ export declare const useToast: () => ToastContextInterface;
1783
+
1784
+ export declare interface Valuation {
1785
+ matchedRedbookVehicle: MatchedRedbookVehicle;
1786
+ valuationDetail: ValuationDetail;
1787
+ }
1788
+
1789
+ export declare interface ValuationDetail {
1790
+ newRetailValue: number;
1791
+ targetConditionTypeAvailable: boolean;
1792
+ newValueAvailable: boolean;
1793
+ pricingBandAvailable: boolean;
1794
+ retailValueList: RetailValueList[];
1795
+ }
1796
+
1797
+ declare interface VehicleData extends MotorwebVehicleResponse {
1798
+ make: string;
1799
+ model: string;
1800
+ year: string;
1801
+ vehicle_type: VehicleType;
1802
+ is_heavy: boolean;
1803
+ }
1804
+
1805
+ export declare type VehicleType = 'car' | 'motorcycle' | 'motorhome';
1806
+
1807
+ export declare interface Witness {
1808
+ 'name': string;
1809
+ 'phone'?: string;
1810
+ 'email'?: string;
1811
+ 'address'?: string;
1812
+ }
1813
+
1814
+ declare interface Wof {
1815
+ 'last-inspection-date'?: string;
1816
+ 'last-inspection-result'?: string;
1817
+ 'expiry-date'?: string;
1818
+ 'is-subject-to'?: string;
1819
+ }
1820
+
1821
+ export { }
1822
+
1823
+
1824
+ declare namespace PageHeader {
1825
+ var Action: ({ children }: {
1826
+ children: React.ReactNode;
1827
+ }) => React.JSX.Element;
1828
+ }