@star-insure/sdk 6.0.11 → 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 (300) hide show
  1. package/README.md +1 -1
  2. package/dist/index.d.ts +1828 -3
  3. package/dist/sdk.es100.js +12 -54
  4. package/dist/sdk.es100.js.map +1 -1
  5. package/dist/sdk.es101.js +10 -57
  6. package/dist/sdk.es101.js.map +1 -1
  7. package/dist/sdk.es102.js +47 -51
  8. package/dist/sdk.es102.js.map +1 -1
  9. package/dist/sdk.es103.js +51 -27
  10. package/dist/sdk.es103.js.map +1 -1
  11. package/dist/sdk.es104.js +51 -23
  12. package/dist/sdk.es104.js.map +1 -1
  13. package/dist/sdk.es105.js +27 -68
  14. package/dist/sdk.es105.js.map +1 -1
  15. package/dist/sdk.es106.js +23 -66
  16. package/dist/sdk.es106.js.map +1 -1
  17. package/dist/sdk.es107.js +41 -47
  18. package/dist/sdk.es107.js.map +1 -1
  19. package/dist/sdk.es108.js +47 -53
  20. package/dist/sdk.es108.js.map +1 -1
  21. package/dist/sdk.es109.js +63 -31
  22. package/dist/sdk.es109.js.map +1 -1
  23. package/dist/sdk.es110.js +62 -30
  24. package/dist/sdk.es110.js.map +1 -1
  25. package/dist/sdk.es111.js +25 -24
  26. package/dist/sdk.es111.js.map +1 -1
  27. package/dist/sdk.es112.js +25 -25
  28. package/dist/sdk.es112.js.map +1 -1
  29. package/dist/sdk.es113.js +35 -70
  30. package/dist/sdk.es113.js.map +1 -1
  31. package/dist/sdk.es114.js +36 -82
  32. package/dist/sdk.es114.js.map +1 -1
  33. package/dist/sdk.es115.js +53 -65
  34. package/dist/sdk.es115.js.map +1 -1
  35. package/dist/sdk.es116.js +56 -55
  36. package/dist/sdk.es116.js.map +1 -1
  37. package/dist/sdk.es117.js +77 -42
  38. package/dist/sdk.es117.js.map +1 -1
  39. package/dist/sdk.es118.js +72 -38
  40. package/dist/sdk.es118.js.map +1 -1
  41. package/dist/sdk.es119.js +28 -28
  42. package/dist/sdk.es119.js.map +1 -1
  43. package/dist/sdk.es120.js +50 -38
  44. package/dist/sdk.es120.js.map +1 -1
  45. package/dist/sdk.es121.js +50 -37
  46. package/dist/sdk.es121.js.map +1 -1
  47. package/dist/sdk.es122.js +24 -24
  48. package/dist/sdk.es122.js.map +1 -1
  49. package/dist/sdk.es123.js +30 -31
  50. package/dist/sdk.es123.js.map +1 -1
  51. package/dist/sdk.es124.js +34 -33
  52. package/dist/sdk.es124.js.map +1 -1
  53. package/dist/sdk.es125.js +25 -24
  54. package/dist/sdk.es125.js.map +1 -1
  55. package/dist/sdk.es126.js +39 -27
  56. package/dist/sdk.es126.js.map +1 -1
  57. package/dist/sdk.es127.js +37 -35
  58. package/dist/sdk.es127.js.map +1 -1
  59. package/dist/sdk.es128.js +24 -34
  60. package/dist/sdk.es128.js.map +1 -1
  61. package/dist/sdk.es129.js +37 -26
  62. package/dist/sdk.es129.js.map +1 -1
  63. package/dist/sdk.es130.js +36 -25
  64. package/dist/sdk.es130.js.map +1 -1
  65. package/dist/sdk.es131.js +33 -2
  66. package/dist/sdk.es131.js.map +1 -1
  67. package/dist/sdk.es132.js +33 -2
  68. package/dist/sdk.es132.js.map +1 -1
  69. package/dist/sdk.es138.js +2 -2
  70. package/dist/sdk.es139.js +2 -2
  71. package/dist/sdk.es140.js +4 -4
  72. package/dist/sdk.es141.js +4 -4
  73. package/dist/sdk.es146.js +2 -2
  74. package/dist/sdk.es147.js +1 -1
  75. package/dist/sdk.es148.js +4 -4
  76. package/dist/sdk.es149.js +1 -1
  77. package/dist/sdk.es151.js +4 -4
  78. package/dist/sdk.es152.js +4 -4
  79. package/dist/sdk.es153.js +4 -4
  80. package/dist/sdk.es154.js +3 -3
  81. package/dist/sdk.es159.js +1 -1
  82. package/dist/sdk.es18.js +1 -1
  83. package/dist/sdk.es18.js.map +1 -1
  84. package/dist/sdk.es30.js +1 -1
  85. package/dist/sdk.es35.js +5 -5
  86. package/dist/sdk.es36.js +11 -11
  87. package/dist/sdk.es37.js +14 -14
  88. package/dist/sdk.es39.js +3 -3
  89. package/dist/sdk.es43.js +1 -1
  90. package/dist/sdk.es44.js +1 -1
  91. package/dist/sdk.es45.js +2 -2
  92. package/dist/sdk.es46.js +22 -3
  93. package/dist/sdk.es46.js.map +1 -1
  94. package/dist/sdk.es47.js +76 -19
  95. package/dist/sdk.es47.js.map +1 -1
  96. package/dist/sdk.es48.js +63 -66
  97. package/dist/sdk.es48.js.map +1 -1
  98. package/dist/sdk.es49.js +226 -63
  99. package/dist/sdk.es49.js.map +1 -1
  100. package/dist/sdk.es50.js +25 -231
  101. package/dist/sdk.es50.js.map +1 -1
  102. package/dist/sdk.es51.js +3 -26
  103. package/dist/sdk.es51.js.map +1 -1
  104. package/dist/sdk.es52.js +2 -4
  105. package/dist/sdk.es52.js.map +1 -1
  106. package/dist/sdk.es53.js +2 -8
  107. package/dist/sdk.es53.js.map +1 -1
  108. package/dist/sdk.es54.js +8 -6
  109. package/dist/sdk.es54.js.map +1 -1
  110. package/dist/sdk.es55.js +7 -2
  111. package/dist/sdk.es55.js.map +1 -1
  112. package/dist/sdk.es56.js +8 -2
  113. package/dist/sdk.es56.js.map +1 -1
  114. package/dist/sdk.es57.js +4 -8
  115. package/dist/sdk.es57.js.map +1 -1
  116. package/dist/sdk.es58.js +15 -6
  117. package/dist/sdk.es58.js.map +1 -1
  118. package/dist/sdk.es59.js +8 -7
  119. package/dist/sdk.es59.js.map +1 -1
  120. package/dist/sdk.es60.js +9 -4
  121. package/dist/sdk.es60.js.map +1 -1
  122. package/dist/sdk.es61.js +8 -15
  123. package/dist/sdk.es61.js.map +1 -1
  124. package/dist/sdk.es62.js +638 -8
  125. package/dist/sdk.es62.js.map +1 -1
  126. package/dist/sdk.es63.js +74 -10
  127. package/dist/sdk.es63.js.map +1 -1
  128. package/dist/sdk.es64.js +4 -8
  129. package/dist/sdk.es64.js.map +1 -1
  130. package/dist/sdk.es65.js +17 -636
  131. package/dist/sdk.es65.js.map +1 -1
  132. package/dist/sdk.es66.js +5 -74
  133. package/dist/sdk.es66.js.map +1 -1
  134. package/dist/sdk.es67.js +18 -5
  135. package/dist/sdk.es67.js.map +1 -1
  136. package/dist/sdk.es68.js +5 -19
  137. package/dist/sdk.es68.js.map +1 -1
  138. package/dist/sdk.es69.js +8 -4
  139. package/dist/sdk.es69.js.map +1 -1
  140. package/dist/sdk.es70.js +48 -17
  141. package/dist/sdk.es70.js.map +1 -1
  142. package/dist/sdk.es71.js +7 -5
  143. package/dist/sdk.es71.js.map +1 -1
  144. package/dist/sdk.es72.js +57 -9
  145. package/dist/sdk.es72.js.map +1 -1
  146. package/dist/sdk.es73.js +65 -49
  147. package/dist/sdk.es73.js.map +1 -1
  148. package/dist/sdk.es74.js +8 -7
  149. package/dist/sdk.es74.js.map +1 -1
  150. package/dist/sdk.es75.js +4 -57
  151. package/dist/sdk.es75.js.map +1 -1
  152. package/dist/sdk.es76.js +3 -64
  153. package/dist/sdk.es76.js.map +1 -1
  154. package/dist/sdk.es77.js +7 -8
  155. package/dist/sdk.es77.js.map +1 -1
  156. package/dist/sdk.es78.js +7 -4
  157. package/dist/sdk.es78.js.map +1 -1
  158. package/dist/sdk.es79.js +39 -5
  159. package/dist/sdk.es79.js.map +1 -1
  160. package/dist/sdk.es80.js +2 -40
  161. package/dist/sdk.es80.js.map +1 -1
  162. package/dist/sdk.es81.js +52 -3673
  163. package/dist/sdk.es81.js.map +1 -1
  164. package/dist/sdk.es82.js +10 -20
  165. package/dist/sdk.es82.js.map +1 -1
  166. package/dist/sdk.es83.js +19 -53
  167. package/dist/sdk.es83.js.map +1 -1
  168. package/dist/sdk.es84.js +3675 -10
  169. package/dist/sdk.es84.js.map +1 -1
  170. package/dist/sdk.es85.js +6 -2
  171. package/dist/sdk.es85.js.map +1 -1
  172. package/dist/sdk.es86.js +2 -11
  173. package/dist/sdk.es86.js.map +1 -1
  174. package/dist/sdk.es87.js +9 -9
  175. package/dist/sdk.es87.js.map +1 -1
  176. package/dist/sdk.es88.js +10 -12
  177. package/dist/sdk.es88.js.map +1 -1
  178. package/dist/sdk.es89.js +12 -10
  179. package/dist/sdk.es89.js.map +1 -1
  180. package/dist/sdk.es90.js +10 -18
  181. package/dist/sdk.es90.js.map +1 -1
  182. package/dist/sdk.es91.js +18 -5
  183. package/dist/sdk.es91.js.map +1 -1
  184. package/dist/sdk.es92.js +6 -55
  185. package/dist/sdk.es92.js.map +1 -1
  186. package/dist/sdk.es93.js +54 -8
  187. package/dist/sdk.es93.js.map +1 -1
  188. package/dist/sdk.es94.js +2 -5
  189. package/dist/sdk.es94.js.map +1 -1
  190. package/dist/sdk.es95.js +8 -13
  191. package/dist/sdk.es95.js.map +1 -1
  192. package/dist/sdk.es96.js +4 -14
  193. package/dist/sdk.es96.js.map +1 -1
  194. package/dist/sdk.es97.js +13 -3
  195. package/dist/sdk.es97.js.map +1 -1
  196. package/dist/sdk.es98.js +14 -12
  197. package/dist/sdk.es98.js.map +1 -1
  198. package/dist/sdk.es99.js +3 -9
  199. package/dist/sdk.es99.js.map +1 -1
  200. package/package.json +1 -1
  201. package/src/components/filter/Action.tsx +1 -1
  202. package/src/components/filter/PageHeader.tsx +0 -1
  203. package/src/lib/auth.tsx +1 -1
  204. package/dist/components/common/Button.d.ts +0 -15
  205. package/dist/components/common/Card.d.ts +0 -7
  206. package/dist/components/common/Modal.d.ts +0 -11
  207. package/dist/components/common/Pagination.d.ts +0 -10
  208. package/dist/components/common/SimplePagination.d.ts +0 -10
  209. package/dist/components/common/ToastItem.d.ts +0 -3
  210. package/dist/components/common/Toasts.d.ts +0 -2
  211. package/dist/components/common/index.d.ts +0 -8
  212. package/dist/components/filter/Action.d.ts +0 -3
  213. package/dist/components/filter/Back.d.ts +0 -5
  214. package/dist/components/filter/Dropdown.d.ts +0 -9
  215. package/dist/components/filter/FilterItem.d.ts +0 -6
  216. package/dist/components/filter/FilterOptions.d.ts +0 -5
  217. package/dist/components/filter/PageHeader.d.ts +0 -21
  218. package/dist/components/filter/SearchBar.d.ts +0 -10
  219. package/dist/components/filter/index.d.ts +0 -1
  220. package/dist/components/forms/DateOfBirthField.d.ts +0 -12
  221. package/dist/components/forms/ErrorList.d.ts +0 -10
  222. package/dist/components/forms/FormTester.d.ts +0 -6
  223. package/dist/components/forms/MoneyField.d.ts +0 -11
  224. package/dist/components/forms/RegistrationSearchField.d.ts +0 -29
  225. package/dist/components/forms/index.d.ts +0 -6
  226. package/dist/components/index.d.ts +0 -4
  227. package/dist/components/tables/Table.d.ts +0 -6
  228. package/dist/components/tables/TableActions.d.ts +0 -7
  229. package/dist/components/tables/TableBody.d.ts +0 -7
  230. package/dist/components/tables/TableCell.d.ts +0 -8
  231. package/dist/components/tables/TableHead.d.ts +0 -7
  232. package/dist/components/tables/TableHeader.d.ts +0 -10
  233. package/dist/components/tables/TableRow.d.ts +0 -8
  234. package/dist/components/tables/index.d.ts +0 -8
  235. package/dist/lib/addressFinder.d.ts +0 -54
  236. package/dist/lib/auth.d.ts +0 -2
  237. package/dist/lib/calculateAge.d.ts +0 -4
  238. package/dist/lib/calculatePricing.d.ts +0 -19
  239. package/dist/lib/clickOutside.d.ts +0 -1
  240. package/dist/lib/dates.d.ts +0 -20
  241. package/dist/lib/fetch.d.ts +0 -20
  242. package/dist/lib/index.d.ts +0 -14
  243. package/dist/lib/inertiaOptions.d.ts +0 -6
  244. package/dist/lib/localStorage.d.ts +0 -1
  245. package/dist/lib/money.d.ts +0 -32
  246. package/dist/lib/page.d.ts +0 -19
  247. package/dist/lib/quoteRequestForm.d.ts +0 -21
  248. package/dist/lib/quoteRequestOptions.d.ts +0 -11
  249. package/dist/lib/toast.d.ts +0 -10
  250. package/dist/lib/vehicles.d.ts +0 -2
  251. package/dist/tailwind-preset.d.cts +0 -2
  252. package/dist/types/api/auth.d.ts +0 -35
  253. package/dist/types/api/enums.d.ts +0 -4
  254. package/dist/types/api/index.d.ts +0 -31
  255. package/dist/types/api/responses/claimRequestActions.d.ts +0 -12
  256. package/dist/types/api/responses/index.d.ts +0 -1
  257. package/dist/types/index.d.ts +0 -3
  258. package/dist/types/misc/index.d.ts +0 -57
  259. package/dist/types/models/auth/Group.d.ts +0 -10
  260. package/dist/types/models/auth/Permission.d.ts +0 -4
  261. package/dist/types/models/auth/Role.d.ts +0 -8
  262. package/dist/types/models/auth/User.d.ts +0 -17
  263. package/dist/types/models/auth/index.d.ts +0 -4
  264. package/dist/types/models/claims/ClaimRequest.d.ts +0 -328
  265. package/dist/types/models/claims/index.d.ts +0 -1
  266. package/dist/types/models/index.d.ts +0 -6
  267. package/dist/types/models/oracle/Risk.d.ts +0 -8
  268. package/dist/types/models/oracle/TableData.d.ts +0 -9
  269. package/dist/types/models/oracle/index.d.ts +0 -2
  270. package/dist/types/models/payments/Gateways.d.ts +0 -1
  271. package/dist/types/models/payments/Payment.d.ts +0 -36
  272. package/dist/types/models/payments/index.d.ts +0 -2
  273. package/dist/types/models/quotes/Blacklist.d.ts +0 -20
  274. package/dist/types/models/quotes/Club.d.ts +0 -4
  275. package/dist/types/models/quotes/EmailContentOption.d.ts +0 -7
  276. package/dist/types/models/quotes/InformationRequest.d.ts +0 -34
  277. package/dist/types/models/quotes/Lead.d.ts +0 -17
  278. package/dist/types/models/quotes/MotorwebVehicle.d.ts +0 -120
  279. package/dist/types/models/quotes/PolicyBenefit.d.ts +0 -16
  280. package/dist/types/models/quotes/PolicyEnhancement.d.ts +0 -13
  281. package/dist/types/models/quotes/PostalAddress.d.ts +0 -7
  282. package/dist/types/models/quotes/PromoCode.d.ts +0 -18
  283. package/dist/types/models/quotes/QuoteRequest.d.ts +0 -110
  284. package/dist/types/models/quotes/QuoteRequestDeclaration.d.ts +0 -22
  285. package/dist/types/models/quotes/QuoteRequestForm.d.ts +0 -113
  286. package/dist/types/models/quotes/QuoteRequestIncident.d.ts +0 -6
  287. package/dist/types/models/quotes/QuoteRequestLog.d.ts +0 -11
  288. package/dist/types/models/quotes/QuoteRequestOptions.d.ts +0 -62
  289. package/dist/types/models/quotes/QuoteRequestPurchaseOption.d.ts +0 -38
  290. package/dist/types/models/quotes/QuoteRequestReferrer.d.ts +0 -9
  291. package/dist/types/models/quotes/QuoteRequestReferrerCategory.d.ts +0 -6
  292. package/dist/types/models/quotes/QuoteRequestVehicle.d.ts +0 -23
  293. package/dist/types/models/quotes/QuoteRequestVehicleDriver.d.ts +0 -11
  294. package/dist/types/models/quotes/RedbookVehicle.d.ts +0 -55
  295. package/dist/types/models/quotes/StreetAddress.d.ts +0 -8
  296. package/dist/types/models/quotes/index.d.ts +0 -23
  297. package/dist/types/models/sms-messages/SmsContentOption.d.ts +0 -7
  298. package/dist/types/models/sms-messages/SmsMessage.d.ts +0 -18
  299. package/dist/types/models/sms-messages/SmsMessageReply.d.ts +0 -10
  300. package/dist/types/models/sms-messages/index.d.ts +0 -3
@@ -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 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
- }
@@ -1,13 +0,0 @@
1
- import { QuoteRequestPurchaseOption } from './QuoteRequestPurchaseOption';
2
- export interface PolicyEnhancement {
3
- id?: number;
4
- name?: string;
5
- description?: string;
6
- premium?: number;
7
- monthly_premium?: number;
8
- disable_rounding?: boolean;
9
- auto_select?: boolean;
10
- sold_at?: string;
11
- purchase_option_id?: QuoteRequestPurchaseOption['id'];
12
- key?: string;
13
- }
@@ -1,7 +0,0 @@
1
- export interface PostalAddress {
2
- id?: number;
3
- postal_line_1?: string;
4
- postal_line_2?: string;
5
- postal_line_3?: string;
6
- postal_line_4?: string;
7
- }
@@ -1,18 +0,0 @@
1
- import { Group, User } from '../auth';
2
- import { QuoteRequestReferrer } from './QuoteRequestReferrer';
3
- import { QuoteRequestReferrerCategory } from './QuoteRequestReferrerCategory';
4
- export interface PromoCode {
5
- id?: number;
6
- created_at?: string;
7
- updated_at?: string;
8
- code?: string;
9
- user_id?: number;
10
- group_id?: number;
11
- referrer_id?: number;
12
- referrer_category_id?: number;
13
- advisor_type?: 'agent' | 'broker';
14
- user?: User;
15
- group?: Group;
16
- referrer?: QuoteRequestReferrer;
17
- category?: QuoteRequestReferrerCategory;
18
- }
@@ -1,110 +0,0 @@
1
- import { Payment } from '../payments';
2
- import { BlacklistEntry } from './Blacklist';
3
- import { Club } from './Club';
4
- import { InformationRequest } from './InformationRequest';
5
- import { Lead } from './Lead';
6
- import { PostalAddress } from './PostalAddress';
7
- import { QuoteRequestDeclaration } from './QuoteRequestDeclaration';
8
- import { QuoteRequestLog } from './QuoteRequestLog';
9
- import { QuoteRequestPurchaseOption } from './QuoteRequestPurchaseOption';
10
- import { QuoteRequestReferrer } from './QuoteRequestReferrer';
11
- import { QuoteRequestReferrerCategory } from './QuoteRequestReferrerCategory';
12
- import { QuoteRequestVehicle } from './QuoteRequestVehicle';
13
- import { StreetAddress } from './StreetAddress';
14
- export type QuoteRequestStatus = 'new' | 'draft' | 'in-progress' | 'with-customer' | 'sold' | 'bound' | 'customer-modified' | 'closed';
15
- export type QuoteRequestSource = 'web' | 'phone' | 'show' | 'existing-customer' | 'mighway' | 'agent' | 'broker' | 'entry-form' | 'bularangi' | 'eric-t' | 'referrer';
16
- export type QuoteRequestAutomatch = 'quote' | 'email' | 'registration' | 'duplicate' | 'name-dob' | 'phone';
17
- export interface QuoteRequestUser {
18
- id: number;
19
- name: string;
20
- email: string;
21
- }
22
- export interface QuoteRequestUserGroup {
23
- id: number;
24
- name: string;
25
- }
26
- export interface Automatch {
27
- client_number: string;
28
- id: number;
29
- matched_by: QuoteRequestAutomatch;
30
- matched_by_value: string;
31
- quote_request_id: string;
32
- }
33
- export interface QuoteRequest {
34
- id?: string;
35
- status?: QuoteRequestStatus;
36
- source?: QuoteRequestSource;
37
- reference?: string;
38
- client_number?: string;
39
- policy_number?: string;
40
- first_name?: string;
41
- last_name?: string;
42
- phone?: string;
43
- mobile?: string;
44
- email?: string;
45
- licence?: string;
46
- licence_other?: string;
47
- has_automatch?: boolean;
48
- automatch_by?: QuoteRequestAutomatch;
49
- automatch_registrations?: string;
50
- promo_code?: string;
51
- club_membership_number?: string;
52
- broker_fee?: number;
53
- length_of_insurance?: string;
54
- theme?: string;
55
- notes?: string;
56
- purchase_options_summary?: string;
57
- secondary_first_name?: string;
58
- secondary_last_name?: string;
59
- secondary_licence?: string;
60
- secondary_licence_other?: string;
61
- created_at?: string;
62
- updated_at?: string;
63
- dob?: string;
64
- secondary_dob?: string;
65
- sold_at?: string;
66
- sent_at?: string;
67
- pricing_expires_at?: string;
68
- max_policy_starts_at?: string;
69
- follow_up_at?: string;
70
- resubmit_id?: QuoteRequest['id'];
71
- referrer_id?: QuoteRequestReferrer['id'];
72
- referrer_category_id?: QuoteRequestReferrerCategory['id'];
73
- staff_member_id?: QuoteRequestUser['id'];
74
- agent_id?: QuoteRequestUser['id'];
75
- agent_firm_id?: QuoteRequestUserGroup['id'];
76
- broker_firm_id?: QuoteRequestUserGroup['id'];
77
- broker_id?: QuoteRequestUser['id'];
78
- club_id?: Club['id'];
79
- lead_id?: Lead['id'];
80
- blacklist_entry_id?: BlacklistEntry['id'];
81
- declaration?: QuoteRequestDeclaration;
82
- street_address?: StreetAddress;
83
- postal_address?: PostalAddress;
84
- resubmit?: QuoteRequest;
85
- referrer?: QuoteRequestReferrer;
86
- referrer_category?: QuoteRequestReferrerCategory;
87
- staff_member?: QuoteRequestUser;
88
- agent?: QuoteRequestUser;
89
- agent_firm?: QuoteRequestUserGroup;
90
- broker?: QuoteRequestUser;
91
- broker_firm?: QuoteRequestUserGroup;
92
- dealer?: QuoteRequestUser;
93
- dealer_firm?: QuoteRequestUserGroup;
94
- club?: Club;
95
- lead?: Lead;
96
- vehicles?: QuoteRequestVehicle[];
97
- purchase_options?: QuoteRequestPurchaseOption[];
98
- logs?: QuoteRequestLog[];
99
- information_requests?: InformationRequest[];
100
- links?: {
101
- purchase: string;
102
- purchase_preview: string;
103
- purchase_options_pdf: string;
104
- documentation_pdf: string;
105
- };
106
- blacklist_entry?: BlacklistEntry;
107
- is_follow_up_required: boolean;
108
- payments?: Payment[];
109
- automatches?: Automatch[];
110
- }
@@ -1,22 +0,0 @@
1
- import { QuoteRequest } from './QuoteRequest';
2
- import { QuoteRequestIncident } from './QuoteRequestIncident';
3
- export interface QuoteRequestDeclaration {
4
- id?: number;
5
- quote_request_id?: QuoteRequest['id'];
6
- had_incident?: boolean;
7
- incidents?: QuoteRequestIncident[];
8
- has_demerit_points?: boolean;
9
- demerit_points?: string;
10
- has_lost_licence?: boolean;
11
- lost_licence_details?: string;
12
- was_refused_insurance?: boolean;
13
- refused_insurance_details?: string;
14
- has_criminal_conviction?: boolean;
15
- criminal_conviction_details?: string;
16
- has_vehicle_modifications?: boolean;
17
- vehicle_modifications_details?: string;
18
- has_previous_insurer?: boolean;
19
- previous_insurer_details?: string;
20
- previous_insurer_expires_at?: string;
21
- additional_details?: string;
22
- }
@@ -1,113 +0,0 @@
1
- import { Product, VehicleType } from '../../api';
2
- import { Club } from './Club';
3
- import { QuoteRequestSource, QuoteRequestStatus, QuoteRequestUser, QuoteRequestUserGroup } from './QuoteRequest';
4
- import { PaymentFrequency, PremiumType } from './QuoteRequestPurchaseOption';
5
- import { QuoteRequestReferrer } from './QuoteRequestReferrer';
6
- import { QuoteRequestReferrerCategory } from './QuoteRequestReferrerCategory';
7
- export interface QuoteRequestForm {
8
- id?: string;
9
- status?: QuoteRequestStatus;
10
- source?: QuoteRequestSource;
11
- reference?: string;
12
- client_number?: string;
13
- first_name?: string;
14
- last_name?: string;
15
- phone?: string;
16
- mobile?: string;
17
- email?: string;
18
- licence?: string;
19
- licence_other?: string;
20
- promo_code?: string;
21
- club_membership_number?: string;
22
- broker_fee?: number;
23
- length_of_insurance?: string;
24
- theme?: string;
25
- notes?: string;
26
- dob?: string;
27
- sold_at?: string;
28
- sent_at?: string;
29
- pricing_expires_at?: string;
30
- follow_up_at?: string;
31
- referrer_id?: QuoteRequestReferrer['id'];
32
- referrer_category_id?: QuoteRequestReferrerCategory['id'];
33
- staff_member_id?: QuoteRequestUser['id'];
34
- agent_id?: QuoteRequestUser['id'];
35
- agent_firm_id?: QuoteRequestUserGroup['id'];
36
- broker_firm_id?: QuoteRequestUserGroup['id'];
37
- broker_id?: QuoteRequestUser['id'];
38
- club_id?: Club['id'];
39
- street_address: {
40
- id?: number;
41
- address?: string;
42
- unit?: string;
43
- suburb?: string;
44
- city?: string;
45
- post_code?: string;
46
- };
47
- declaration: {
48
- id?: number;
49
- had_incident?: boolean;
50
- incidents: {
51
- year?: string;
52
- month?: string;
53
- description?: string;
54
- }[];
55
- has_demerit_points?: boolean;
56
- demerit_points?: string;
57
- has_lost_licence?: boolean;
58
- lost_licence_details?: string;
59
- was_refused_insurance?: boolean;
60
- refused_insurance_details?: string;
61
- has_criminal_conviction?: boolean;
62
- criminal_conviction_details?: string;
63
- has_vehicle_modifications?: boolean;
64
- vehicle_modifications_details?: string;
65
- has_previous_insurer?: boolean;
66
- previous_insurer_details?: string;
67
- previous_insurer_expires_at?: string;
68
- additional_details?: string;
69
- };
70
- vehicles: {
71
- id?: number;
72
- vehicle_type?: VehicleType;
73
- registration?: string;
74
- make?: string;
75
- model?: string;
76
- year?: string;
77
- usage?: string;
78
- product?: Product;
79
- has_financially_interested_party?: boolean;
80
- financially_interested_party_detail?: string;
81
- owned_duration?: string;
82
- value?: number;
83
- storage_location?: string;
84
- is_heavy?: boolean;
85
- main_driver?: string;
86
- drivers: {
87
- id?: number;
88
- first_name?: string;
89
- last_name?: string;
90
- dob?: string;
91
- relationship?: string;
92
- licence?: string;
93
- licence_other?: string;
94
- }[];
95
- }[];
96
- purchase_options: {
97
- id?: number;
98
- level_of_insurance_id?: number;
99
- sort_order?: number;
100
- description?: string;
101
- base_premium?: number;
102
- premium?: number;
103
- monthly_premium?: number;
104
- show_monthly?: boolean;
105
- fsl?: number;
106
- gst?: number;
107
- premium_type?: PremiumType;
108
- policy_starts_at?: string;
109
- sold_at?: string;
110
- is_paid?: boolean;
111
- payment_frequency?: PaymentFrequency;
112
- }[];
113
- }
@@ -1,6 +0,0 @@
1
- export interface QuoteRequestIncident {
2
- year?: string;
3
- month?: string;
4
- description?: string;
5
- key?: string;
6
- }
@@ -1,11 +0,0 @@
1
- import { User } from '../auth';
2
- export interface QuoteRequestLog {
3
- id: number;
4
- created_at: string;
5
- quote_request_id: string;
6
- user_id: number | null;
7
- user?: User;
8
- activity_type: string;
9
- message: string;
10
- key?: string;
11
- }
@@ -1,62 +0,0 @@
1
- import { VehicleType } from '../../api';
2
- export interface QuoteRequestOptions {
3
- club_options: SimpleOption[];
4
- driver_licence_options: SimpleOption[];
5
- incident_options: SimpleOption[];
6
- insurance_companies: SimpleOption[];
7
- level_of_insurance_options: SimpleOption[];
8
- policy_description_options: SimpleOption[];
9
- referrer_category_options: (SimpleOption & {
10
- is_public: boolean;
11
- })[];
12
- relationship_options: SimpleOption[];
13
- storage_location_options: SimpleOption[];
14
- vehicle_usage_options: {
15
- id: number;
16
- name: string;
17
- vehicle_type: VehicleType;
18
- }[];
19
- policy_benefit_template_options: SimpleOption[];
20
- referrer_options: {
21
- id: number;
22
- name: string;
23
- category_id: number;
24
- is_public: boolean;
25
- }[];
26
- policy_benefit_options: {
27
- id: number;
28
- name: string;
29
- description: string;
30
- auto_select: boolean;
31
- template_id: number;
32
- sort_order: number;
33
- }[];
34
- policy_enhancement_options: {
35
- id: number;
36
- name: string;
37
- description: string;
38
- premium: number;
39
- disable_rounding: boolean;
40
- auto_select: boolean;
41
- }[];
42
- authorised_drivers_options: {
43
- id: number;
44
- name: string;
45
- description: string;
46
- }[];
47
- terms_options: {
48
- id: number;
49
- name: string;
50
- description: string;
51
- }[];
52
- excess_options: {
53
- id: number;
54
- name: string;
55
- description: string;
56
- }[];
57
- }
58
- interface SimpleOption {
59
- id: number;
60
- name: string;
61
- }
62
- export {};
@@ -1,38 +0,0 @@
1
- import { PolicyBenefit, PolicyBenefitTemplate } from './PolicyBenefit';
2
- import { PolicyEnhancement } from './PolicyEnhancement';
3
- export interface QuoteRequestPurchaseOption {
4
- id?: number;
5
- quote_request_id?: string;
6
- level_of_insurance_id?: number;
7
- policy_number?: string;
8
- sort_order?: number;
9
- description?: string;
10
- premium?: number;
11
- monthly_premium?: number;
12
- purchased_total?: number;
13
- show_monthly?: boolean;
14
- fsl?: number;
15
- gst?: number;
16
- premium_type?: PremiumType;
17
- policy_starts_at?: string;
18
- sold_at?: string;
19
- is_paid?: boolean;
20
- payment_frequency?: PaymentFrequency;
21
- excess_details?: string;
22
- terms?: string;
23
- authorised_drivers?: string;
24
- is_draft?: boolean;
25
- is_direct_debit?: boolean;
26
- benefit_template_id?: number;
27
- level_of_insurance?: LevelOfInsurance;
28
- enhancements?: PolicyEnhancement[];
29
- benefits?: PolicyBenefit[];
30
- benefit_template?: PolicyBenefitTemplate;
31
- key?: string;
32
- }
33
- export type PremiumType = 'annual' | 'total-due';
34
- export type PaymentFrequency = 'monthly' | 'annually';
35
- export interface LevelOfInsurance {
36
- id: number;
37
- name: string;
38
- }
@@ -1,9 +0,0 @@
1
- import { QuoteRequestReferrerCategory } from './QuoteRequestReferrerCategory';
2
- export interface QuoteRequestReferrer {
3
- id: number;
4
- name: string;
5
- category_id: QuoteRequestReferrerCategory['id'];
6
- category?: QuoteRequestReferrerCategory;
7
- key?: string;
8
- is_public: boolean;
9
- }
@@ -1,6 +0,0 @@
1
- export interface QuoteRequestReferrerCategory {
2
- id: number;
3
- name: string;
4
- key?: string;
5
- is_public: boolean;
6
- }
@@ -1,23 +0,0 @@
1
- import { Product, VehicleType } from '../../api';
2
- import { QuoteRequestVehicleDriver } from './QuoteRequestVehicleDriver';
3
- export interface QuoteRequestVehicle {
4
- id?: number;
5
- vehicle_type?: VehicleType;
6
- registration?: string;
7
- make?: string;
8
- model?: string;
9
- year?: string;
10
- usage?: string;
11
- product?: Product;
12
- has_financially_interested_party?: boolean;
13
- financially_interested_party_detail?: string;
14
- owned_duration?: string;
15
- value?: number;
16
- storage_location?: string;
17
- storage_location_other?: string;
18
- is_heavy?: boolean;
19
- quote_request_id?: string;
20
- drivers?: QuoteRequestVehicleDriver[];
21
- key?: string;
22
- main_driver?: string;
23
- }
@@ -1,11 +0,0 @@
1
- export interface QuoteRequestVehicleDriver {
2
- id?: number;
3
- first_name?: string;
4
- last_name?: string;
5
- dob?: string;
6
- relationship?: string;
7
- licence?: string;
8
- licence_other?: string;
9
- quote_request_vehicle_id?: number;
10
- key?: string;
11
- }