@star-insure/sdk 5.0.12 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/README.md +30 -1
  2. package/dist/index.d.ts +1810 -3
  3. package/dist/sdk.es.js +9436 -0
  4. package/dist/sdk.es.js.map +1 -0
  5. package/package.json +22 -45
  6. package/src/components/tables/TableHead.tsx +1 -1
  7. package/src/{tailwind-preset.js → tailwind-preset.cjs} +1 -0
  8. package/dist/components/common/Button.d.ts +0 -15
  9. package/dist/components/common/Card.d.ts +0 -7
  10. package/dist/components/common/Modal.d.ts +0 -11
  11. package/dist/components/common/Pagination.d.ts +0 -10
  12. package/dist/components/common/SimplePagination.d.ts +0 -10
  13. package/dist/components/common/ToastItem.d.ts +0 -3
  14. package/dist/components/common/Toasts.d.ts +0 -2
  15. package/dist/components/common/index.d.ts +0 -8
  16. package/dist/components/filter/Action.d.ts +0 -3
  17. package/dist/components/filter/Back.d.ts +0 -5
  18. package/dist/components/filter/Dropdown.d.ts +0 -9
  19. package/dist/components/filter/FilterItem.d.ts +0 -6
  20. package/dist/components/filter/FilterOptions.d.ts +0 -5
  21. package/dist/components/filter/PageHeader.d.ts +0 -21
  22. package/dist/components/filter/SearchBar.d.ts +0 -10
  23. package/dist/components/filter/index.d.ts +0 -1
  24. package/dist/components/forms/DateOfBirthField.d.ts +0 -12
  25. package/dist/components/forms/ErrorList.d.ts +0 -10
  26. package/dist/components/forms/FormTester.d.ts +0 -6
  27. package/dist/components/forms/MoneyField.d.ts +0 -11
  28. package/dist/components/forms/RegistrationSearchField.d.ts +0 -29
  29. package/dist/components/forms/index.d.ts +0 -6
  30. package/dist/components/index.d.ts +0 -4
  31. package/dist/components/tables/Table.d.ts +0 -6
  32. package/dist/components/tables/TableActions.d.ts +0 -7
  33. package/dist/components/tables/TableBody.d.ts +0 -7
  34. package/dist/components/tables/TableCell.d.ts +0 -8
  35. package/dist/components/tables/TableHead.d.ts +0 -7
  36. package/dist/components/tables/TableHeader.d.ts +0 -10
  37. package/dist/components/tables/TableRow.d.ts +0 -8
  38. package/dist/components/tables/index.d.ts +0 -8
  39. package/dist/index.js +0 -8
  40. package/dist/lib/addressFinder.d.ts +0 -54
  41. package/dist/lib/auth.d.ts +0 -2
  42. package/dist/lib/calculateAge.d.ts +0 -4
  43. package/dist/lib/calculatePricing.d.ts +0 -19
  44. package/dist/lib/clickOutside.d.ts +0 -1
  45. package/dist/lib/dates.d.ts +0 -20
  46. package/dist/lib/fetch.d.ts +0 -20
  47. package/dist/lib/index.d.ts +0 -14
  48. package/dist/lib/inertiaOptions.d.ts +0 -6
  49. package/dist/lib/localStorage.d.ts +0 -1
  50. package/dist/lib/money.d.ts +0 -32
  51. package/dist/lib/page.d.ts +0 -19
  52. package/dist/lib/quoteRequestForm.d.ts +0 -21
  53. package/dist/lib/quoteRequestOptions.d.ts +0 -11
  54. package/dist/lib/toast.d.ts +0 -10
  55. package/dist/lib/vehicles.d.ts +0 -2
  56. package/dist/sdk.cjs.development.js +0 -3398
  57. package/dist/sdk.cjs.development.js.map +0 -1
  58. package/dist/sdk.cjs.production.min.js +0 -2
  59. package/dist/sdk.cjs.production.min.js.map +0 -1
  60. package/dist/sdk.esm.js +0 -3339
  61. package/dist/sdk.esm.js.map +0 -1
  62. package/dist/types/api/auth.d.ts +0 -35
  63. package/dist/types/api/enums.d.ts +0 -4
  64. package/dist/types/api/index.d.ts +0 -31
  65. package/dist/types/api/responses/claimRequestActions.d.ts +0 -12
  66. package/dist/types/api/responses/index.d.ts +0 -1
  67. package/dist/types/index.d.ts +0 -3
  68. package/dist/types/misc/index.d.ts +0 -47
  69. package/dist/types/models/auth/Group.d.ts +0 -10
  70. package/dist/types/models/auth/Permission.d.ts +0 -4
  71. package/dist/types/models/auth/Role.d.ts +0 -8
  72. package/dist/types/models/auth/User.d.ts +0 -17
  73. package/dist/types/models/auth/index.d.ts +0 -4
  74. package/dist/types/models/claims/ClaimRequest.d.ts +0 -328
  75. package/dist/types/models/claims/index.d.ts +0 -1
  76. package/dist/types/models/index.d.ts +0 -6
  77. package/dist/types/models/oracle/Risk.d.ts +0 -8
  78. package/dist/types/models/oracle/TableData.d.ts +0 -9
  79. package/dist/types/models/oracle/index.d.ts +0 -2
  80. package/dist/types/models/payments/Gateways.d.ts +0 -1
  81. package/dist/types/models/payments/Payment.d.ts +0 -36
  82. package/dist/types/models/payments/index.d.ts +0 -2
  83. package/dist/types/models/quotes/Blacklist.d.ts +0 -20
  84. package/dist/types/models/quotes/Club.d.ts +0 -4
  85. package/dist/types/models/quotes/EmailContentOption.d.ts +0 -7
  86. package/dist/types/models/quotes/InformationRequest.d.ts +0 -34
  87. package/dist/types/models/quotes/Lead.d.ts +0 -17
  88. package/dist/types/models/quotes/MotorwebVehicle.d.ts +0 -120
  89. package/dist/types/models/quotes/PolicyBenefit.d.ts +0 -16
  90. package/dist/types/models/quotes/PolicyEnhancement.d.ts +0 -13
  91. package/dist/types/models/quotes/PostalAddress.d.ts +0 -7
  92. package/dist/types/models/quotes/PromoCode.d.ts +0 -18
  93. package/dist/types/models/quotes/QuoteRequest.d.ts +0 -110
  94. package/dist/types/models/quotes/QuoteRequestDeclaration.d.ts +0 -22
  95. package/dist/types/models/quotes/QuoteRequestForm.d.ts +0 -113
  96. package/dist/types/models/quotes/QuoteRequestIncident.d.ts +0 -6
  97. package/dist/types/models/quotes/QuoteRequestLog.d.ts +0 -11
  98. package/dist/types/models/quotes/QuoteRequestOptions.d.ts +0 -62
  99. package/dist/types/models/quotes/QuoteRequestPurchaseOption.d.ts +0 -38
  100. package/dist/types/models/quotes/QuoteRequestReferrer.d.ts +0 -9
  101. package/dist/types/models/quotes/QuoteRequestReferrerCategory.d.ts +0 -6
  102. package/dist/types/models/quotes/QuoteRequestVehicle.d.ts +0 -23
  103. package/dist/types/models/quotes/QuoteRequestVehicleDriver.d.ts +0 -11
  104. package/dist/types/models/quotes/RedbookVehicle.d.ts +0 -55
  105. package/dist/types/models/quotes/StreetAddress.d.ts +0 -8
  106. package/dist/types/models/quotes/index.d.ts +0 -23
  107. package/dist/types/models/sms-messages/SmsContentOption.d.ts +0 -7
  108. package/dist/types/models/sms-messages/SmsMessage.d.ts +0 -18
  109. package/dist/types/models/sms-messages/SmsMessageReply.d.ts +0 -10
  110. package/dist/types/models/sms-messages/index.d.ts +0 -3
@@ -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 declare type QuoteRequestStatus = 'new' | 'draft' | 'in-progress' | 'with-customer' | 'sold' | 'bound' | 'customer-modified' | 'closed';
15
- export declare type QuoteRequestSource = 'web' | 'phone' | 'show' | 'existing-customer' | 'mighway' | 'agent' | 'broker' | 'entry-form' | 'bularangi';
16
- export declare type QuoteRequestAutomatch = 'quote' | 'email' | 'registration' | 'duplicate';
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 declare type PremiumType = 'annual' | 'total-due';
34
- export declare 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
- }
@@ -1,55 +0,0 @@
1
- export interface RedbookVehicle {
2
- id: number;
3
- body_type: string | null;
4
- colour: string | null;
5
- condition: string | null;
6
- created_at: string | null;
7
- description: string | null;
8
- engine_number: string | null;
9
- imported: boolean | null;
10
- make: string | null;
11
- model: string | null;
12
- odometer_read_at: string | null;
13
- odometer_reading: string | null;
14
- odometer_reading_source: string | null;
15
- redbook_code: string | null;
16
- registration: string | null;
17
- sub_model: string | null;
18
- updated_at: string | null;
19
- value: number | null;
20
- vehicle_type: string | null;
21
- vin: string | null;
22
- weight: number | null;
23
- year: number | null;
24
- valuation_details: Valuation[] | null;
25
- chassis_number: string | null;
26
- fuel_type: string | null;
27
- previous_registered_country: string | null;
28
- overseas_first_registered_year: number | null;
29
- overseas_first_registered_month: number | null;
30
- }
31
- export interface Valuation {
32
- matchedRedbookVehicle: MatchedRedbookVehicle;
33
- valuationDetail: ValuationDetail;
34
- }
35
- export interface MatchedRedbookVehicle {
36
- make?: string;
37
- model?: string;
38
- year?: number;
39
- description?: string;
40
- redbookCode: string;
41
- }
42
- export interface ValuationDetail {
43
- newRetailValue: number;
44
- targetConditionTypeAvailable: boolean;
45
- newValueAvailable: boolean;
46
- pricingBandAvailable: boolean;
47
- retailValueList: RetailValueList[];
48
- }
49
- export interface RetailValueList {
50
- condition: string;
51
- lowerPricingRange: number;
52
- upperPricingRange: number;
53
- value: number;
54
- kilometers: number;
55
- }
@@ -1,8 +0,0 @@
1
- export interface StreetAddress {
2
- id?: number;
3
- address?: string;
4
- unit?: string;
5
- suburb?: string;
6
- city?: string;
7
- post_code?: string;
8
- }
@@ -1,23 +0,0 @@
1
- export * from './QuoteRequest';
2
- export * from './QuoteRequestDeclaration';
3
- export * from './QuoteRequestVehicle';
4
- export * from './QuoteRequestVehicleDriver';
5
- export * from './QuoteRequestPurchaseOption';
6
- export * from './PolicyEnhancement';
7
- export * from './QuoteRequestReferrerCategory';
8
- export * from './QuoteRequestReferrer';
9
- export * from './Club';
10
- export * from './Lead';
11
- export * from './StreetAddress';
12
- export * from './PostalAddress';
13
- export * from './QuoteRequestIncident';
14
- export * from './QuoteRequestOptions';
15
- export * from './RedbookVehicle';
16
- export * from './QuoteRequestForm';
17
- export * from './QuoteRequestForm';
18
- export * from './PolicyBenefit';
19
- export * from './InformationRequest';
20
- export * from './EmailContentOption';
21
- export * from './MotorwebVehicle';
22
- export * from './PromoCode';
23
- export * from './Blacklist';
@@ -1,7 +0,0 @@
1
- export interface SmsContentOption {
2
- id: number;
3
- created_at: string;
4
- updated_at: string;
5
- name: string;
6
- content: string;
7
- }
@@ -1,18 +0,0 @@
1
- import { User } from "../auth";
2
- import { QuoteRequest } from "../quotes";
3
- import { SmsMessageReply } from "./SmsMessageReply";
4
- export interface SmsMessage {
5
- id: number;
6
- created_at: string;
7
- updated_at: string;
8
- content: string;
9
- recipients: string;
10
- reference: string | null;
11
- reply_to: string | null;
12
- user_id: number | null;
13
- quote_request_id: string | null;
14
- is_archived: boolean;
15
- replies?: SmsMessageReply[];
16
- quote_request?: QuoteRequest;
17
- user?: User;
18
- }
@@ -1,10 +0,0 @@
1
- import { SmsMessage } from "./SmsMessage";
2
- export interface SmsMessageReply {
3
- id: number;
4
- created_at: string;
5
- updated_at: string;
6
- content: string;
7
- phone_number: string;
8
- sms_message_id: number;
9
- message?: SmsMessage;
10
- }
@@ -1,3 +0,0 @@
1
- export * from './SmsMessage';
2
- export * from './SmsMessageReply';
3
- export * from './SmsContentOption';