@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,11 +0,0 @@
1
- import { default as React } from 'react';
2
- import { QuoteRequestOptions } from '../types';
3
- interface QuoteRequestFormContextInterface {
4
- options?: QuoteRequestOptions;
5
- setOptions: (options: QuoteRequestOptions) => void;
6
- }
7
- export declare function QuoteRequestOptionsProvider({ children }: {
8
- children: React.ReactNode;
9
- }): React.JSX.Element;
10
- export declare const useQuoteRequestOptions: () => QuoteRequestFormContextInterface;
11
- export {};
@@ -1,10 +0,0 @@
1
- import { Toast } from '../types';
2
- import * as React from 'react';
3
- interface ToastContextInterface {
4
- toasts: Toast[];
5
- addToast: (toast: Toast) => void;
6
- removeToast: (id: Toast['_id']) => void;
7
- }
8
- export declare function ToastProvider({ children }: any): React.JSX.Element;
9
- export declare const useToast: () => ToastContextInterface;
10
- export {};
@@ -1,2 +0,0 @@
1
- import { VehicleType } from '../types';
2
- export declare function sanitiseVehicleType(inputType: string): VehicleType;
@@ -1,2 +0,0 @@
1
- declare const _exports: import('tailwindcss').Config;
2
- export = _exports;
@@ -1,35 +0,0 @@
1
- export type UserContext = 'administrator' | 'staff' | 'broker' | 'dealer' | 'agent' | 'security' | 'customer';
2
- type AuthUser = {
3
- id: number;
4
- name: string;
5
- email: string;
6
- is_group_admin: boolean;
7
- umbrella_filter?: string;
8
- oracle_user_id?: string;
9
- groups: AuthGroup[];
10
- mobile?: string;
11
- phone_extension?: number;
12
- two_factor_expires_at?: string;
13
- two_factor_method?: TwoFactorAuthMethod;
14
- };
15
- type AuthGroup = {
16
- id: number;
17
- name: string;
18
- code: string;
19
- role: AuthRole;
20
- };
21
- type AuthRole = {
22
- name: string;
23
- context: string;
24
- };
25
- export interface AuthContext {
26
- user?: AuthUser;
27
- context: UserContext;
28
- group?: AuthGroup;
29
- permissions: string[];
30
- is_app?: boolean;
31
- can: (permission: string) => boolean;
32
- should_two_factor_auth: boolean;
33
- }
34
- export type TwoFactorAuthMethod = 'email' | 'sms';
35
- export {};
@@ -1,4 +0,0 @@
1
- export type VehicleType = 'car' | 'motorcycle' | 'motorhome';
2
- export type Frequency = 'daily' | 'weekly' | 'fortnightly' | 'monthly' | 'quarterly' | 'annually';
3
- export type Condition = 'poor' | 'fair' | 'good';
4
- export type Product = 'star-enthusiast-prestige-everyday-plus' | 'star-enthusiast' | 'star-prestige' | 'star-everyday' | 'star-plus' | 'star-motorcycle' | 'star-campercare';
@@ -1,31 +0,0 @@
1
- export * from './auth';
2
- export * from './enums';
3
- export * from './responses';
4
- export interface ApiResponse<T = any> {
5
- data: T;
6
- meta: Meta;
7
- links: Links;
8
- status: number;
9
- ok: boolean;
10
- }
11
- export interface Meta {
12
- current_page: number;
13
- from: number;
14
- last_page: number;
15
- links: PaginationLink[];
16
- path: string;
17
- per_page: number;
18
- to: number;
19
- total: number;
20
- }
21
- export interface Links {
22
- first: string;
23
- last: string;
24
- prev: string | null;
25
- next: string | null;
26
- }
27
- export interface PaginationLink {
28
- url: string | null;
29
- label: string;
30
- active: boolean;
31
- }
@@ -1,12 +0,0 @@
1
- export interface OraclePolicyMatch {
2
- ply_covernumber: string;
3
- ply_verno: string;
4
- ply_clientnumber: string;
5
- ply_riskcode: string;
6
- ply_effdate: string;
7
- ply_current: '-1' | '0';
8
- client?: {
9
- cli_clientnumber: string;
10
- cli_emailaddress?: string;
11
- };
12
- }
@@ -1 +0,0 @@
1
- export * from './claimRequestActions';
@@ -1,3 +0,0 @@
1
- export * from './models';
2
- export * from './api';
3
- export * from './misc';
@@ -1,57 +0,0 @@
1
- export type FormStatus = 'idle' | 'processing' | 'success' | 'error';
2
- export interface Toast {
3
- _id?: string;
4
- message: string;
5
- status?: 'success' | 'error' | 'default' | 'warning';
6
- timeout?: number;
7
- }
8
- export interface FilterOption {
9
- label: string;
10
- name: string;
11
- options?: FilterValue[];
12
- type?: 'options' | 'date' | 'greaterThan' | 'scope' | 'select' | 'datalist' | 'column' | 'text' | 'range';
13
- }
14
- export interface FilterValue {
15
- label: string;
16
- value: string | number;
17
- }
18
- export interface Filter {
19
- [key: string]: (string | number)[];
20
- }
21
- export type TPageHeaderAction = {
22
- title: string;
23
- as?: 'button' | 'a' | 'Link';
24
- href?: string;
25
- target?: '_self' | '_blank';
26
- onClick?: Function;
27
- type?: 'button' | 'submit';
28
- hidden?: boolean;
29
- shortcutKey?: string;
30
- backgroundColor?: string;
31
- textColor?: string;
32
- actions?: TPageHeaderInnerAction[];
33
- };
34
- export type TPageHeaderInnerAction = {
35
- title: string;
36
- as?: 'button' | 'a' | 'Link';
37
- href?: string;
38
- target?: '_self' | '_blank';
39
- onClick?: Function;
40
- hidden?: boolean;
41
- };
42
- export type Environment = 'production' | 'staging' | 'testing' | 'local';
43
- export type Breadcrumb = {
44
- current?: boolean;
45
- title: string;
46
- url?: string;
47
- };
48
- type FormDataPrimitive = string | number | boolean | null | undefined | File | Blob | Date;
49
- type FormDataArray = FormDataConvertible[];
50
- type FormDataObject = {
51
- [key: string]: FormDataConvertible;
52
- };
53
- type FormDataConvertible = FormDataPrimitive | FormDataArray | FormDataObject;
54
- export type FormDataCompatible<T> = T extends FormDataConvertible ? T : T extends object ? {
55
- [K in keyof T]: T[K] extends (infer U)[] ? FormDataCompatible<U>[] : FormDataCompatible<T[K]>;
56
- } : FormDataConvertible;
57
- export {};
@@ -1,10 +0,0 @@
1
- import { Role, Permission, User } from '.';
2
- export interface Group {
3
- id: number;
4
- name: string;
5
- code: string;
6
- 'x_code': string;
7
- role?: Role;
8
- permissions?: Permission[];
9
- users?: User[];
10
- }
@@ -1,4 +0,0 @@
1
- export interface Permission {
2
- id: number;
3
- name: string;
4
- }
@@ -1,8 +0,0 @@
1
- import { Permission } from '.';
2
- import { UserContext } from '../../api';
3
- export interface Role {
4
- id: number;
5
- name: string;
6
- context: UserContext;
7
- permissions?: Permission[];
8
- }
@@ -1,17 +0,0 @@
1
- import { Group } from '.';
2
- import { TwoFactorAuthMethod } from '../../api';
3
- export interface User {
4
- id: number;
5
- oracle_user_id?: string;
6
- name: string;
7
- email: string;
8
- mobile?: string;
9
- direct_dial?: string;
10
- position?: string;
11
- is_group_admin?: boolean;
12
- umbrella_filter?: string;
13
- groups?: Group[];
14
- permissions?: string[];
15
- phone_extension?: number;
16
- two_factor_method?: TwoFactorAuthMethod;
17
- }
@@ -1,4 +0,0 @@
1
- export * from './User';
2
- export * from './Group';
3
- export * from './Role';
4
- export * from './Permission';
@@ -1,328 +0,0 @@
1
- import { Condition, Frequency, VehicleType } from '../../api';
2
- export type ClaimRequestStatus = 'new' | 'draft' | 'in-progress' | 'exported';
3
- export interface ClaimRequest {
4
- 'id': string;
5
- 'reference'?: string;
6
- 'status'?: ClaimRequestStatus;
7
- 'submitted_at'?: string;
8
- 'reminder_sent_at'?: string;
9
- 'claim_number'?: string;
10
- 'policyholder'?: string;
11
- 'policy_number'?: string;
12
- 'policy_cover_number'?: string;
13
- 'policy_version_number'?: string;
14
- 'policy_contact_name'?: string;
15
- 'mobile'?: string;
16
- 'email'?: string;
17
- 'alternative_contact'?: string;
18
- 'broker_firm'?: string;
19
- 'broker_name'?: string;
20
- 'address'?: string;
21
- 'terms_accepted_by'?: string;
22
- 'loss_estimate'?: number;
23
- 'excess'?: number;
24
- 'excess_status'?: string;
25
- 'sum_insured'?: number;
26
- 'cover_type'?: string;
27
- 'reserve_expense'?: number;
28
- 'fault_flag'?: string;
29
- 'category'?: string;
30
- 'substatus'?: string;
31
- 'severity_code'?: string;
32
- 'action'?: string;
33
- 'vehicle_type_code'?: string;
34
- 'vehicle_make_code'?: string;
35
- 'eglobal_user_id'?: string;
36
- 'client_comments'?: string;
37
- 'insurer_comments'?: string;
38
- 'status_line'?: string;
39
- 'claim_summary'?: string;
40
- 'driver_gender'?: string;
41
- 'is_assessor_required'?: boolean;
42
- 'acceptance_code'?: string;
43
- 'client_number'?: string;
44
- 'attachments'?: ClaimRequestAttachment[];
45
- 'notes'?: string;
46
- }
47
- export interface ClaimRequestAttachment {
48
- 'id': number;
49
- 'created_at': string;
50
- 'updated_at': string;
51
- 'claim_request_id': ClaimRequest['id'];
52
- 'title': string;
53
- 'url': string;
54
- 'disk'?: string;
55
- 'claim_request_type'?: string;
56
- }
57
- export interface DamageClaimRequest extends ClaimRequest {
58
- 'claim_type': 'damage';
59
- 'vehicle_registration'?: string;
60
- 'vehicle_vin'?: string;
61
- 'vehicle_make_and_model'?: string;
62
- 'vehicle_make'?: string;
63
- 'vehicle_model'?: string;
64
- 'vehicle_year'?: string | number;
65
- 'vehicle_type'?: VehicleType;
66
- 'finance_company'?: string;
67
- 'finance_phone'?: string;
68
- 'driver_name'?: string;
69
- 'driver_dob'?: string;
70
- 'driver_relationship'?: string;
71
- 'driver_licence_number'?: string;
72
- 'driver_licence_version'?: string;
73
- 'driver_licence_issuer'?: string;
74
- 'was_intoxicated'?: boolean;
75
- 'intoxicated_details'?: string;
76
- 'has_conviction'?: boolean;
77
- 'conviction_details'?: string;
78
- 'has_recent_claim'?: boolean;
79
- 'incident_details'?: Incident[];
80
- 'was_disqualified'?: boolean;
81
- 'disqualified_details'?: string;
82
- 'was_vehicle_used_without_consent'?: boolean;
83
- 'vehicle_used_without_consent_details'?: string;
84
- 'has_existing_vehicle_damage'?: boolean;
85
- 'existing_vehicle_damage_details'?: string;
86
- 'was_refused_insurance'?: boolean;
87
- 'refused_insurance_details'?: string;
88
- 'has_additional_information'?: boolean;
89
- 'additional_information_details'?: string;
90
- 'accident_location'?: string;
91
- 'accident_suburb'?: string;
92
- 'loss_happened_at'?: string;
93
- 'accident_speed'?: string;
94
- 'impact_speed'?: string;
95
- 'road_surface'?: string;
96
- 'weather_conditions'?: string;
97
- 'had_passengers'?: boolean;
98
- 'passenger_details'?: Passenger[];
99
- 'has_witnesses'?: boolean;
100
- 'witness_details'?: Witness[];
101
- 'accident_description'?: string;
102
- 'vehicle_location'?: string;
103
- 'is_vehicle_drivable'?: boolean;
104
- 'vehicle_drivable_details'?: string;
105
- 'was_warning_given'?: boolean;
106
- 'warning_given_details'?: string;
107
- 'was_third_party_responsible'?: boolean;
108
- 'third_party_responsible_details'?: string;
109
- 'was_third_party_involved'?: boolean;
110
- 'third_party_vehicle_registration'?: string;
111
- 'third_party_vehicle_owner'?: string;
112
- 'third_party_vehicle_make'?: string;
113
- 'third_party_vehicle_model'?: string;
114
- 'third_party_vehicle_driver_name'?: string;
115
- 'third_party_vehicle_driver_mobile'?: string;
116
- 'third_party_vehicle_driver_phone'?: string;
117
- 'third_party_vehicle_driver_address'?: string;
118
- 'third_party_vehicle_insurance_company'?: string;
119
- 'third_party_vehicle_damage'?: string;
120
- 'third_party_details_provided'?: string;
121
- 'were_police_notified'?: boolean;
122
- 'did_police_attend'?: boolean;
123
- 'police_officer_name'?: string;
124
- 'police_officer_email'?: string;
125
- 'police_reference'?: string;
126
- 'police_station_address'?: string;
127
- 'police_did_test'?: boolean;
128
- 'police_issued_notice'?: boolean;
129
- 'repairer_name'?: string;
130
- 'repairer_phone'?: string;
131
- 'repairer_email'?: string;
132
- 'is_claiming_protective_gear'?: boolean;
133
- 'is_protective_gear_insured_elsewhere'?: boolean;
134
- 'protective_gear_details'?: ClaimItem[];
135
- 'is_claiming_contents'?: boolean;
136
- 'is_contents_insured_elsewhere'?: boolean;
137
- 'contents_details'?: ClaimItem[];
138
- }
139
- export interface Incident {
140
- 'year': string;
141
- 'month': string;
142
- 'description': string;
143
- }
144
- export interface Passenger {
145
- 'name': string;
146
- 'phone'?: string;
147
- 'email'?: string;
148
- 'address'?: string;
149
- }
150
- export interface Witness {
151
- 'name': string;
152
- 'phone'?: string;
153
- 'email'?: string;
154
- 'address'?: string;
155
- }
156
- export interface ClaimItem {
157
- 'description': string;
158
- 'purchased_from'?: string;
159
- 'age'?: string;
160
- 'purchase_price'?: string;
161
- 'replacement_cost'?: string;
162
- }
163
- export interface GlassClaimRequest extends ClaimRequest {
164
- 'claim_type': 'glass';
165
- 'vehicle_registration'?: string;
166
- 'vehicle_vin'?: string;
167
- 'vehicle_make_and_model'?: string;
168
- 'vehicle_make'?: string;
169
- 'vehicle_model'?: string;
170
- 'vehicle_year'?: string | number;
171
- 'accident_location'?: string;
172
- 'loss_happened_at'?: string;
173
- 'accident_description'?: string;
174
- 'repairer_name'?: string;
175
- 'repairer_phone'?: string;
176
- 'repairer_email'?: string;
177
- }
178
- export interface TheftClaimRequest extends ClaimRequest {
179
- 'claim_type': 'theft';
180
- 'is_registered_under_same_name'?: boolean;
181
- 'registered_name'?: string;
182
- 'registered_address'?: string;
183
- 'registered_phone'?: string;
184
- 'is_leased'?: boolean;
185
- 'lease_name'?: string;
186
- 'lease_address'?: string;
187
- 'lease_phone'?: string;
188
- 'lease_number'?: string;
189
- 'lease_payment_amount'?: string | number;
190
- 'lease_payment_frequency'?: Frequency;
191
- 'has_conviction'?: boolean;
192
- 'conviction_details'?: string;
193
- 'has_recent_claim'?: boolean;
194
- 'incident_details'?: Incident[];
195
- 'was_disqualified'?: boolean;
196
- 'disqualified_details'?: string;
197
- 'was_vehicle_used_without_consent'?: boolean;
198
- 'vehicle_used_without_consent_details'?: string;
199
- 'has_existing_vehicle_damage'?: boolean;
200
- 'existing_vehicle_damage_details'?: string;
201
- 'was_refused_insurance'?: boolean;
202
- 'refused_insurance_details'?: string;
203
- 'has_additional_information'?: boolean;
204
- 'additional_information_details'?: string;
205
- 'vehicle_registration'?: string;
206
- 'vehicle_vin'?: string;
207
- 'vehicle_make_and_model'?: string;
208
- 'vehicle_make'?: string;
209
- 'vehicle_model'?: string;
210
- 'vehicle_year'?: string | number;
211
- 'vehicle_type'?: VehicleType;
212
- 'finance_company'?: string;
213
- 'finance_phone'?: string;
214
- 'vehicle_purchased_on'?: string;
215
- 'vehicle_purchased_from'?: string;
216
- 'vehicle_purchased_price'?: string | number;
217
- 'vehicle_value'?: number;
218
- 'was_vehicle_for_sale'?: boolean;
219
- 'vehicle_first_asking_price'?: string | number;
220
- 'vehicle_last_asking_price'?: string | number;
221
- 'vehicle_sale_duration'?: string;
222
- 'vehicle_purchaser_name'?: string;
223
- 'vehicle_purchaser_address'?: string;
224
- 'vehicle_purchaser_phone'?: string;
225
- 'vehicle_hp_cc_rating'?: string;
226
- 'vehicle_transmission'?: string;
227
- 'vehicle_engine_number'?: string;
228
- 'vehicle_has_air_conditioning'?: boolean;
229
- 'vehicle_has_cng'?: boolean;
230
- 'vehicle_has_lpg'?: boolean;
231
- 'vehicle_colour'?: string;
232
- 'vehicle_colour_changes'?: string;
233
- 'was_vehicle_repaired'?: boolean;
234
- 'vehicle_repaired_damage_details'?: string;
235
- 'vehicle_repairer'?: string;
236
- 'vehicle_repaired_on'?: string;
237
- 'was_vehicle_damaged'?: boolean;
238
- 'vehicle_damage_details'?: string;
239
- 'vehicle_tyre_condition_front_right'?: Condition;
240
- 'vehicle_tyre_condition_front_left'?: Condition;
241
- 'vehicle_tyre_condition_rear_right'?: Condition;
242
- 'vehicle_tyre_condition_rear_left'?: Condition;
243
- 'vehicle_tyre_condition_spare'?: string;
244
- 'wheel_assembly_details'?: string;
245
- 'vehicle_radio_type'?: string;
246
- 'vehicle_radio_make'?: string;
247
- 'vehicle_radio_location'?: string;
248
- 'vehicle_radio_fixing'?: string;
249
- 'vehicle_speaker_make'?: string;
250
- 'has_additional_accessories'?: boolean;
251
- 'accessory_details'?: Accessory[];
252
- 'has_identifiable_contents'?: boolean;
253
- 'identifiable_contents_details'?: Contents[];
254
- 'vehicle_serviced_by'?: string;
255
- 'has_service_invoices'?: boolean;
256
- 'vehicle_wof_issued_by'?: string;
257
- 'vehicle_wof_issued_on'?: string;
258
- 'vehicle_wof_expires_on'?: string;
259
- 'vehicle_floor_type'?: string;
260
- 'vehicle_interior_details'?: string;
261
- 'vehicle_seatbelt_type'?: string;
262
- 'vehicle_seatbelt_condition'?: Condition;
263
- 'vehicle_engine_condition'?: Condition;
264
- 'vehicle_gearbox_condition'?: Condition;
265
- 'vehicle_transmission_condition'?: Condition;
266
- 'vehicle_suspension_condition'?: Condition;
267
- 'vehicle_steering_condition'?: Condition;
268
- 'vehicle_seats_condition'?: Condition;
269
- 'vehicle_trims_condition'?: Condition;
270
- 'vehicle_body_condition'?: Condition;
271
- 'vehicle_paint_condition'?: Condition;
272
- 'vehicle_dashboard_condition'?: Condition;
273
- 'did_engine_use_oil'?: boolean;
274
- 'vehicle_engine_oil_per_month'?: string;
275
- 'vehicle_ran_well'?: boolean;
276
- 'vehicle_ran_poorly_details'?: string;
277
- 'theft_details'?: string;
278
- 'loss_happened_at'?: string;
279
- 'theft_discovered_at'?: string;
280
- 'last_seen_at'?: string;
281
- 'vehicle_last_used_by'?: string;
282
- 'address_stolen_from'?: string;
283
- 'were_windows_up'?: boolean;
284
- 'windows_down_details'?: string;
285
- 'were_doors_locked'?: boolean;
286
- 'doors_unlocked_details'?: string;
287
- 'has_theft_evidence'?: boolean;
288
- 'theft_evidence_details'?: string;
289
- 'has_steering_lock'?: boolean;
290
- 'was_steering_lock_activated'?: boolean;
291
- 'has_alarm'?: boolean;
292
- 'was_alarm_active'?: boolean;
293
- 'alarm_inactive_details'?: string;
294
- 'was_boot_locked'?: boolean;
295
- 'boot_unlocked_details'?: string;
296
- 'keys_count'?: string;
297
- 'key_holder_name'?: string;
298
- 'key_holder_phone'?: string;
299
- 'key_holder_address'?: string;
300
- 'keys_location'?: string;
301
- 'policyholder_whereabouts_details'?: string;
302
- 'were_police_notified'?: boolean;
303
- 'did_police_attend'?: boolean;
304
- 'police_officer_name'?: string;
305
- 'police_officer_email'?: string;
306
- 'police_reference'?: string;
307
- 'police_station_address'?: string;
308
- 'police_not_notified_details'?: string;
309
- 'police_have_suspect'?: boolean;
310
- 'police_suspect_details'?: string;
311
- 'policyholder_has_suspect'?: boolean;
312
- 'policyholder_suspect_details'?: string;
313
- 'was_theft_witnessed'?: boolean;
314
- 'theft_witnessed_details'?: string;
315
- 'has_cctv_footage'?: boolean;
316
- 'cctv_footage_details'?: string;
317
- 'is_claiming_contents'?: boolean;
318
- 'is_contents_insured_elsewhere'?: boolean;
319
- 'contents_details'?: ClaimItem[];
320
- }
321
- export interface Accessory {
322
- 'description': string;
323
- 'age': string;
324
- 'condition': string;
325
- }
326
- export interface Contents {
327
- 'description': string;
328
- }
@@ -1 +0,0 @@
1
- export * from './ClaimRequest';
@@ -1,6 +0,0 @@
1
- export * from './auth';
2
- export * from './claims';
3
- export * from './oracle';
4
- export * from './quotes';
5
- export * from './sms-messages';
6
- export * from './payments';
@@ -1,8 +0,0 @@
1
- export interface RiskDisplayValue {
2
- id: number;
3
- created_at: string;
4
- updated_at: string;
5
- RI_CODE: string;
6
- RI_DESCRIPTION?: string;
7
- value: string;
8
- }
@@ -1,9 +0,0 @@
1
- export interface TableDataDisplayValue {
2
- id: number;
3
- created_at: string;
4
- updated_at: string;
5
- TBL_TYPE: string;
6
- TBL_CODE: string;
7
- TBL_FULLNAME?: string;
8
- value: string;
9
- }
@@ -1,2 +0,0 @@
1
- export * from './Risk';
2
- export * from './TableData';
@@ -1 +0,0 @@
1
- export type GatewayKey = 'SIS_Windcave_Account2Account' | 'SIS_Windcave_PxPayTradeMe' | 'SIS_Windcave_PxPayMonth' | 'SIS_Windcave_PxPayYear' | 'SIS_Windcave_PxPayStaff' | 'SIS_Windcave_PxPayTradeMeStaff' | 'bind' | 'invoice';
@@ -1,36 +0,0 @@
1
- import { User } from '../auth';
2
- import { QuoteRequest } from '../quotes';
3
- import { GatewayKey } from './Gateways';
4
- export type PaymentStatus = 'accepted' | 'incomplete' | 'declined';
5
- export type PaymentType = 'quote' | 'account' | 'auction';
6
- export interface Payment {
7
- id: string;
8
- created_at: string;
9
- updated_at: string;
10
- status: PaymentStatus;
11
- reference: string | null;
12
- client_number: string | null;
13
- amount: number;
14
- processing_fee: number | null;
15
- surcharge_percentage: number | null;
16
- name: string | null;
17
- email: string | null;
18
- phone: string | null;
19
- mobile: string | null;
20
- gateway_key: GatewayKey;
21
- gateway_reference: string;
22
- payment_type: PaymentType;
23
- quote_request_purchase_option_id: number | null;
24
- quote_request_id: string | null;
25
- email_sent_at: string | null;
26
- cardholder_name: string;
27
- card_name: string;
28
- card_number: string;
29
- card_expires_at: string;
30
- card_token: string | null;
31
- user_id: User['id'] | null;
32
- return_url: string | null;
33
- reason?: string;
34
- user?: User;
35
- quoteRequest?: QuoteRequest;
36
- }
@@ -1,2 +0,0 @@
1
- export * from './Payment';
2
- export * from './Gateways';
@@ -1,20 +0,0 @@
1
- import { User } from '../auth';
2
- export interface BlacklistEntry {
3
- id?: number;
4
- created_at?: string;
5
- name?: string;
6
- description?: string;
7
- profiles?: BlacklistEntryProfile[];
8
- user_id?: number;
9
- user?: User;
10
- }
11
- export interface BlacklistEntryProfile {
12
- id?: number;
13
- created_at?: string;
14
- email?: string;
15
- client_number?: string;
16
- phone?: string;
17
- mobile?: string;
18
- registration?: string;
19
- blacklist_entry_id: BlacklistEntry['id'];
20
- }
@@ -1,4 +0,0 @@
1
- export interface Club {
2
- id: number;
3
- name: string;
4
- }