@star-insure/sdk 1.1.5 → 1.1.8
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.
- package/dist/components/common/Button.d.ts +14 -0
- package/dist/components/common/Button.js +26 -0
- package/dist/components/common/Button.js.map +1 -0
- package/dist/components/common/Card.d.ts +7 -0
- package/dist/components/common/Card.js +6 -0
- package/dist/components/common/Card.js.map +1 -0
- package/dist/components/common/Modal.d.ts +9 -0
- package/dist/components/common/Modal.js +20 -0
- package/dist/components/common/Modal.js.map +1 -0
- package/dist/components/common/Pagination.d.ts +9 -0
- package/dist/components/common/Pagination.js +53 -0
- package/dist/components/common/Pagination.js.map +1 -0
- package/dist/components/common/ToastItem.d.ts +3 -0
- package/dist/components/common/ToastItem.js +23 -0
- package/dist/components/common/ToastItem.js.map +1 -0
- package/dist/components/common/Toasts.d.ts +2 -0
- package/dist/components/common/Toasts.js +9 -0
- package/dist/components/common/Toasts.js.map +1 -0
- package/dist/components/common/index.d.ts +7 -0
- package/dist/components/common/index.js +8 -0
- package/dist/components/common/index.js.map +1 -0
- package/dist/components/forms/DateOfBirthField.d.ts +7 -0
- package/dist/components/forms/DateOfBirthField.js +56 -0
- package/dist/components/forms/DateOfBirthField.js.map +1 -0
- package/dist/components/forms/Errors.d.ts +10 -0
- package/dist/components/forms/Errors.js +20 -0
- package/dist/components/forms/Errors.js.map +1 -0
- package/dist/components/forms/FormTester.d.ts +6 -0
- package/dist/components/forms/FormTester.js +136 -0
- package/dist/components/forms/FormTester.js.map +1 -0
- package/dist/components/forms/MoneyField.d.ts +11 -0
- package/dist/components/forms/MoneyField.js +20 -0
- package/dist/components/forms/MoneyField.js.map +1 -0
- package/dist/components/forms/RegistrationSearchField.d.ts +23 -0
- package/dist/components/forms/RegistrationSearchField.js +96 -0
- package/dist/components/forms/RegistrationSearchField.js.map +1 -0
- package/dist/components/forms/index.d.ts +6 -0
- package/dist/components/forms/index.js +7 -0
- package/dist/components/forms/index.js.map +1 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.js +4 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/tables/Table.d.ts +6 -0
- package/dist/components/tables/Table.js +9 -0
- package/dist/components/tables/Table.js.map +1 -0
- package/dist/components/tables/TableActions.d.ts +7 -0
- package/dist/components/tables/TableActions.js +6 -0
- package/dist/components/tables/TableActions.js.map +1 -0
- package/dist/components/tables/TableBody.d.ts +7 -0
- package/dist/components/tables/TableBody.js +6 -0
- package/dist/components/tables/TableBody.js.map +1 -0
- package/dist/components/tables/TableCell.d.ts +7 -0
- package/dist/components/tables/TableCell.js +6 -0
- package/dist/components/tables/TableCell.js.map +1 -0
- package/dist/components/tables/TableHead.d.ts +7 -0
- package/dist/components/tables/TableHead.js +6 -0
- package/dist/components/tables/TableHead.js.map +1 -0
- package/dist/components/tables/TableHeader.d.ts +9 -0
- package/dist/components/tables/TableHeader.js +29 -0
- package/dist/components/tables/TableHeader.js.map +1 -0
- package/dist/components/tables/TableRow.d.ts +8 -0
- package/dist/components/tables/TableRow.js +7 -0
- package/dist/components/tables/TableRow.js.map +1 -0
- package/dist/components/tables/index.d.ts +8 -0
- package/dist/components/tables/index.js +9 -0
- package/dist/components/tables/index.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/addressFinder.d.ts +54 -0
- package/dist/lib/addressFinder.js +53 -0
- package/dist/lib/addressFinder.js.map +1 -0
- package/dist/lib/auth.d.ts +2 -0
- package/dist/lib/auth.js +6 -0
- package/dist/lib/auth.js.map +1 -0
- package/dist/lib/calculateAge.d.ts +5 -0
- package/dist/lib/calculateAge.js +15 -0
- package/dist/lib/calculateAge.js.map +1 -0
- package/dist/lib/clickOutside.d.ts +1 -0
- package/dist/lib/clickOutside.js +19 -0
- package/dist/lib/clickOutside.js.map +1 -0
- package/dist/lib/dates.d.ts +8 -0
- package/dist/lib/dates.js +18 -0
- package/dist/lib/dates.js.map +1 -0
- package/dist/lib/index.d.ts +12 -0
- package/dist/lib/index.js +13 -0
- package/dist/lib/index.js.map +1 -0
- package/dist/lib/inertiaOptions.d.ts +6 -0
- package/dist/lib/inertiaOptions.js +22 -0
- package/dist/lib/inertiaOptions.js.map +1 -0
- package/dist/lib/localStorage.d.ts +1 -0
- package/dist/lib/localStorage.js +41 -0
- package/dist/lib/localStorage.js.map +1 -0
- package/dist/lib/money.d.ts +32 -0
- package/dist/lib/money.js +60 -0
- package/dist/lib/money.js.map +1 -0
- package/dist/lib/quoteRequestForm.d.ts +19 -0
- package/dist/lib/quoteRequestForm.js +120 -0
- package/dist/lib/quoteRequestForm.js.map +1 -0
- package/dist/lib/quoteRequestOptions.d.ts +11 -0
- package/dist/lib/quoteRequestOptions.js +9 -0
- package/dist/lib/quoteRequestOptions.js.map +1 -0
- package/dist/lib/toast.d.ts +10 -0
- package/dist/lib/toast.js +38 -0
- package/dist/lib/toast.js.map +1 -0
- package/dist/lib/vehicles.d.ts +2 -0
- package/dist/lib/vehicles.js +40 -0
- package/dist/lib/vehicles.js.map +1 -0
- package/dist/types/api/auth.d.ts +9 -0
- package/dist/types/api/auth.js +1 -0
- package/dist/types/api/auth.js.map +1 -0
- package/dist/types/api/enums.d.ts +4 -0
- package/dist/types/api/enums.js +1 -0
- package/dist/types/api/enums.js.map +1 -0
- package/dist/types/api/index.d.ts +31 -0
- package/dist/types/api/index.js +4 -0
- package/dist/types/api/index.js.map +1 -0
- package/dist/types/api/responses/claimRequestActions.d.ts +12 -0
- package/dist/types/api/responses/claimRequestActions.js +1 -0
- package/dist/types/api/responses/claimRequestActions.js.map +1 -0
- package/dist/types/api/responses/index.d.ts +1 -0
- package/dist/types/api/responses/index.js +2 -0
- package/dist/types/api/responses/index.js.map +1 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.js +4 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/misc/index.d.ts +8 -0
- package/dist/types/misc/index.js +2 -0
- package/dist/types/misc/index.js.map +1 -0
- package/dist/types/misc/inertia.d.ts +8 -0
- package/dist/types/misc/inertia.js +1 -0
- package/dist/types/misc/inertia.js.map +1 -0
- package/dist/types/models/auth/Group.d.ts +10 -0
- package/dist/types/models/auth/Group.js +1 -0
- package/dist/types/models/auth/Group.js.map +1 -0
- package/dist/types/models/auth/Permission.d.ts +4 -0
- package/dist/types/models/auth/Permission.js +1 -0
- package/dist/types/models/auth/Permission.js.map +1 -0
- package/dist/types/models/auth/Role.d.ts +6 -0
- package/dist/types/models/auth/Role.js +1 -0
- package/dist/types/models/auth/Role.js.map +1 -0
- package/dist/types/models/auth/User.d.ts +12 -0
- package/dist/types/models/auth/User.js +1 -0
- package/dist/types/models/auth/User.js.map +1 -0
- package/dist/types/models/auth/index.d.ts +4 -0
- package/dist/types/models/auth/index.js +5 -0
- package/dist/types/models/auth/index.js.map +1 -0
- package/dist/types/models/claims/ClaimRequest.d.ts +287 -0
- package/dist/types/models/claims/ClaimRequest.js +1 -0
- package/dist/types/models/claims/ClaimRequest.js.map +1 -0
- package/dist/types/models/claims/index.d.ts +1 -0
- package/dist/types/models/claims/index.js +2 -0
- package/dist/types/models/claims/index.js.map +1 -0
- package/dist/types/models/index.d.ts +6 -0
- package/dist/types/models/index.js +7 -0
- package/dist/types/models/index.js.map +1 -0
- package/dist/types/models/oracle/Risk.d.ts +8 -0
- package/dist/types/models/oracle/Risk.js +1 -0
- package/dist/types/models/oracle/Risk.js.map +1 -0
- package/dist/types/models/oracle/TableData.d.ts +9 -0
- package/dist/types/models/oracle/TableData.js +1 -0
- package/dist/types/models/oracle/TableData.js.map +1 -0
- package/dist/types/models/oracle/index.d.ts +2 -0
- package/dist/types/models/oracle/index.js +3 -0
- package/dist/types/models/oracle/index.js.map +1 -0
- package/dist/types/models/payments/Gateways.d.ts +1 -0
- package/dist/types/models/payments/Gateways.js +1 -0
- package/dist/types/models/payments/Gateways.js.map +1 -0
- package/dist/types/models/payments/Payment.d.ts +35 -0
- package/dist/types/models/payments/Payment.js +1 -0
- package/dist/types/models/payments/Payment.js.map +1 -0
- package/dist/types/models/payments/index.d.ts +2 -0
- package/dist/types/models/payments/index.js +3 -0
- package/dist/types/models/payments/index.js.map +1 -0
- package/dist/types/models/quotes/Club.d.ts +4 -0
- package/dist/types/models/quotes/Club.js +1 -0
- package/dist/types/models/quotes/Club.js.map +1 -0
- package/dist/types/models/quotes/EmailContentOption.d.ts +7 -0
- package/dist/types/models/quotes/EmailContentOption.js +1 -0
- package/dist/types/models/quotes/EmailContentOption.js.map +1 -0
- package/dist/types/models/quotes/InformationRequest.d.ts +34 -0
- package/dist/types/models/quotes/InformationRequest.js +1 -0
- package/dist/types/models/quotes/InformationRequest.js.map +1 -0
- package/dist/types/models/quotes/Lead.d.ts +17 -0
- package/dist/types/models/quotes/Lead.js +1 -0
- package/dist/types/models/quotes/Lead.js.map +1 -0
- package/dist/types/models/quotes/MotorwebVehicle.d.ts +120 -0
- package/dist/types/models/quotes/MotorwebVehicle.js +1 -0
- package/dist/types/models/quotes/MotorwebVehicle.js.map +1 -0
- package/dist/types/models/quotes/PolicyBenefit.d.ts +16 -0
- package/dist/types/models/quotes/PolicyBenefit.js +1 -0
- package/dist/types/models/quotes/PolicyBenefit.js.map +1 -0
- package/dist/types/models/quotes/PolicyEnhancement.d.ts +11 -0
- package/dist/types/models/quotes/PolicyEnhancement.js +1 -0
- package/dist/types/models/quotes/PolicyEnhancement.js.map +1 -0
- package/dist/types/models/quotes/PostalAddress.d.ts +7 -0
- package/dist/types/models/quotes/PostalAddress.js +1 -0
- package/dist/types/models/quotes/PostalAddress.js.map +1 -0
- package/dist/types/models/quotes/PromoCode.d.ts +18 -0
- package/dist/types/models/quotes/PromoCode.js +1 -0
- package/dist/types/models/quotes/PromoCode.js.map +1 -0
- package/dist/types/models/quotes/QuoteRequest.d.ts +88 -0
- package/dist/types/models/quotes/QuoteRequest.js +1 -0
- package/dist/types/models/quotes/QuoteRequest.js.map +1 -0
- package/dist/types/models/quotes/QuoteRequestDeclaration.d.ts +22 -0
- package/dist/types/models/quotes/QuoteRequestDeclaration.js +1 -0
- package/dist/types/models/quotes/QuoteRequestDeclaration.js.map +1 -0
- package/dist/types/models/quotes/QuoteRequestForm.d.ts +112 -0
- package/dist/types/models/quotes/QuoteRequestForm.js +1 -0
- package/dist/types/models/quotes/QuoteRequestForm.js.map +1 -0
- package/dist/types/models/quotes/QuoteRequestIncident.d.ts +5 -0
- package/dist/types/models/quotes/QuoteRequestIncident.js +1 -0
- package/dist/types/models/quotes/QuoteRequestIncident.js.map +1 -0
- package/dist/types/models/quotes/QuoteRequestLog.d.ts +10 -0
- package/dist/types/models/quotes/QuoteRequestLog.js +1 -0
- package/dist/types/models/quotes/QuoteRequestLog.js.map +1 -0
- package/dist/types/models/quotes/QuoteRequestOptions.d.ts +59 -0
- package/dist/types/models/quotes/QuoteRequestOptions.js +1 -0
- package/dist/types/models/quotes/QuoteRequestOptions.js.map +1 -0
- package/dist/types/models/quotes/QuoteRequestPurchaseOption.d.ts +35 -0
- package/dist/types/models/quotes/QuoteRequestPurchaseOption.js +1 -0
- package/dist/types/models/quotes/QuoteRequestPurchaseOption.js.map +1 -0
- package/dist/types/models/quotes/QuoteRequestReferrer.d.ts +7 -0
- package/dist/types/models/quotes/QuoteRequestReferrer.js +1 -0
- package/dist/types/models/quotes/QuoteRequestReferrer.js.map +1 -0
- package/dist/types/models/quotes/QuoteRequestReferrerCategory.d.ts +4 -0
- package/dist/types/models/quotes/QuoteRequestReferrerCategory.js +1 -0
- package/dist/types/models/quotes/QuoteRequestReferrerCategory.js.map +1 -0
- package/dist/types/models/quotes/QuoteRequestVehicle.d.ts +20 -0
- package/dist/types/models/quotes/QuoteRequestVehicle.js +1 -0
- package/dist/types/models/quotes/QuoteRequestVehicle.js.map +1 -0
- package/dist/types/models/quotes/QuoteRequestVehicleDriver.d.ts +10 -0
- package/dist/types/models/quotes/QuoteRequestVehicleDriver.js +1 -0
- package/dist/types/models/quotes/QuoteRequestVehicleDriver.js.map +1 -0
- package/dist/types/models/quotes/RedbookVehicle.d.ts +55 -0
- package/dist/types/models/quotes/RedbookVehicle.js +2 -0
- package/dist/types/models/quotes/RedbookVehicle.js.map +1 -0
- package/dist/types/models/quotes/StreetAddress.d.ts +8 -0
- package/dist/types/models/quotes/StreetAddress.js +1 -0
- package/dist/types/models/quotes/StreetAddress.js.map +1 -0
- package/dist/types/models/quotes/index.d.ts +22 -0
- package/dist/types/models/quotes/index.js +23 -0
- package/dist/types/models/quotes/index.js.map +1 -0
- package/dist/types/models/sms-messages/SmsContentOption.d.ts +7 -0
- package/dist/types/models/sms-messages/SmsContentOption.js +1 -0
- package/dist/types/models/sms-messages/SmsContentOption.js.map +1 -0
- package/dist/types/models/sms-messages/SmsMessage.d.ts +18 -0
- package/dist/types/models/sms-messages/SmsMessage.js +1 -0
- package/dist/types/models/sms-messages/SmsMessage.js.map +1 -0
- package/dist/types/models/sms-messages/SmsMessageReply.d.ts +10 -0
- package/dist/types/models/sms-messages/SmsMessageReply.js +1 -0
- package/dist/types/models/sms-messages/SmsMessageReply.js.map +1 -0
- package/dist/types/models/sms-messages/index.d.ts +3 -0
- package/dist/types/models/sms-messages/index.js +4 -0
- package/dist/types/models/sms-messages/index.js.map +1 -0
- package/package.json +3 -3
- package/src/index.ts +9 -3
- package/src/lib/quoteRequestOptions.tsx +1 -1
- package/src/types/misc/inertia.ts +1 -1
- package/index.js +0 -4
|
@@ -0,0 +1,120 @@
|
|
|
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 {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=MotorwebVehicle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MotorwebVehicle.js","sourceRoot":"","sources":["../../../../src/types/models/quotes/MotorwebVehicle.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=PolicyBenefit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PolicyBenefit.js","sourceRoot":"","sources":["../../../../src/types/models/quotes/PolicyBenefit.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { QuoteRequestPurchaseOption } from "./QuoteRequestPurchaseOption";
|
|
2
|
+
export interface PolicyEnhancement {
|
|
3
|
+
id?: number;
|
|
4
|
+
name?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
premium?: number;
|
|
7
|
+
disable_rounding?: boolean;
|
|
8
|
+
auto_select?: boolean;
|
|
9
|
+
sold_at?: string;
|
|
10
|
+
purchase_option_id?: QuoteRequestPurchaseOption['id'];
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=PolicyEnhancement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PolicyEnhancement.js","sourceRoot":"","sources":["../../../../src/types/models/quotes/PolicyEnhancement.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=PostalAddress.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PostalAddress.js","sourceRoot":"","sources":["../../../../src/types/models/quotes/PostalAddress.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=PromoCode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PromoCode.js","sourceRoot":"","sources":["../../../../src/types/models/quotes/PromoCode.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { Club } from "./Club";
|
|
2
|
+
import { InformationRequest } from "./InformationRequest";
|
|
3
|
+
import { Lead } from "./Lead";
|
|
4
|
+
import { PostalAddress } from "./PostalAddress";
|
|
5
|
+
import { QuoteRequestDeclaration } from "./QuoteRequestDeclaration";
|
|
6
|
+
import { QuoteRequestLog } from "./QuoteRequestLog";
|
|
7
|
+
import { QuoteRequestPurchaseOption } from "./QuoteRequestPurchaseOption";
|
|
8
|
+
import { QuoteRequestReferrer } from "./QuoteRequestReferrer";
|
|
9
|
+
import { QuoteRequestReferrerCategory } from "./QuoteRequestReferrerCategory";
|
|
10
|
+
import { QuoteRequestVehicle } from "./QuoteRequestVehicle";
|
|
11
|
+
import { StreetAddress } from "./StreetAddress";
|
|
12
|
+
export declare type QuoteRequestStatus = 'new' | 'draft' | 'in-progress' | 'with-customer' | 'sold' | 'bound' | 'customer-modified' | 'closed';
|
|
13
|
+
export declare type QuoteRequestSource = 'web' | 'phone' | 'show' | 'existing-customer' | 'mighway' | 'agent' | 'entry-form' | 'bularangi';
|
|
14
|
+
export declare type QuoteRequestAutomatch = 'quote' | 'email' | 'registration' | 'duplicate';
|
|
15
|
+
export interface QuoteRequestUser {
|
|
16
|
+
id: number;
|
|
17
|
+
name: string;
|
|
18
|
+
email: string;
|
|
19
|
+
}
|
|
20
|
+
export interface QuoteRequestUserGroup {
|
|
21
|
+
id: number;
|
|
22
|
+
name: string;
|
|
23
|
+
}
|
|
24
|
+
export interface QuoteRequest {
|
|
25
|
+
id?: string;
|
|
26
|
+
status?: QuoteRequestStatus;
|
|
27
|
+
source?: QuoteRequestSource;
|
|
28
|
+
reference?: string;
|
|
29
|
+
client_number?: string;
|
|
30
|
+
policy_number?: string;
|
|
31
|
+
first_name?: string;
|
|
32
|
+
last_name?: string;
|
|
33
|
+
phone?: string;
|
|
34
|
+
mobile?: string;
|
|
35
|
+
email?: string;
|
|
36
|
+
licence?: string;
|
|
37
|
+
licence_other?: string;
|
|
38
|
+
has_automatch?: boolean;
|
|
39
|
+
automatch_by?: QuoteRequestAutomatch;
|
|
40
|
+
automatch_client_id?: string;
|
|
41
|
+
automatch_registrations?: string;
|
|
42
|
+
promo_code?: string;
|
|
43
|
+
club_membership_number?: string;
|
|
44
|
+
broker_fee?: number;
|
|
45
|
+
length_of_insurance?: string;
|
|
46
|
+
theme?: string;
|
|
47
|
+
notes?: string;
|
|
48
|
+
created_at?: string;
|
|
49
|
+
updated_at?: string;
|
|
50
|
+
dob?: string;
|
|
51
|
+
sold_at?: string;
|
|
52
|
+
sent_at?: string;
|
|
53
|
+
pricing_expires_at?: string;
|
|
54
|
+
follow_up_at?: string;
|
|
55
|
+
resubmit_id?: QuoteRequest['id'];
|
|
56
|
+
referrer_id?: QuoteRequestReferrer['id'];
|
|
57
|
+
referrer_category_id?: QuoteRequestReferrerCategory['id'];
|
|
58
|
+
staff_member_id?: QuoteRequestUser['id'];
|
|
59
|
+
agent_id?: QuoteRequestUser['id'];
|
|
60
|
+
agent_firm_id?: QuoteRequestUserGroup['id'];
|
|
61
|
+
broker_firm_id?: QuoteRequestUserGroup['id'];
|
|
62
|
+
broker_id?: QuoteRequestUser['id'];
|
|
63
|
+
club_id?: Club['id'];
|
|
64
|
+
lead_id?: Lead['id'];
|
|
65
|
+
declaration?: QuoteRequestDeclaration;
|
|
66
|
+
street_address?: StreetAddress;
|
|
67
|
+
postal_address?: PostalAddress;
|
|
68
|
+
resubmit?: QuoteRequest;
|
|
69
|
+
referrer?: QuoteRequestReferrer;
|
|
70
|
+
referrer_category?: QuoteRequestReferrerCategory;
|
|
71
|
+
staff_member?: QuoteRequestUser;
|
|
72
|
+
agent?: QuoteRequestUser;
|
|
73
|
+
agent_firm?: QuoteRequestUserGroup;
|
|
74
|
+
broker?: QuoteRequestUser;
|
|
75
|
+
broker_firm?: QuoteRequestUserGroup;
|
|
76
|
+
club?: Club;
|
|
77
|
+
lead?: Lead;
|
|
78
|
+
vehicles?: QuoteRequestVehicle[];
|
|
79
|
+
purchase_options?: QuoteRequestPurchaseOption[];
|
|
80
|
+
logs?: QuoteRequestLog[];
|
|
81
|
+
information_requests?: InformationRequest[];
|
|
82
|
+
links?: {
|
|
83
|
+
purchase: string;
|
|
84
|
+
purchase_preview: string;
|
|
85
|
+
purchase_options_pdf: string;
|
|
86
|
+
documentation_pdf: string;
|
|
87
|
+
};
|
|
88
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=QuoteRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QuoteRequest.js","sourceRoot":"","sources":["../../../../src/types/models/quotes/QuoteRequest.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=QuoteRequestDeclaration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QuoteRequestDeclaration.js","sourceRoot":"","sources":["../../../../src/types/models/quotes/QuoteRequestDeclaration.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,112 @@
|
|
|
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
|
+
drivers: {
|
|
86
|
+
id?: number;
|
|
87
|
+
first_name?: string;
|
|
88
|
+
last_name?: string;
|
|
89
|
+
dob?: string;
|
|
90
|
+
relationship?: string;
|
|
91
|
+
licence?: string;
|
|
92
|
+
licence_other?: string;
|
|
93
|
+
}[];
|
|
94
|
+
}[];
|
|
95
|
+
purchase_options: {
|
|
96
|
+
id?: number;
|
|
97
|
+
level_of_insurance_id?: number;
|
|
98
|
+
sort_order?: number;
|
|
99
|
+
description?: string;
|
|
100
|
+
base_premium?: number;
|
|
101
|
+
premium?: number;
|
|
102
|
+
monthly_premium?: number;
|
|
103
|
+
show_monthly?: boolean;
|
|
104
|
+
fsl?: number;
|
|
105
|
+
gst?: number;
|
|
106
|
+
premium_type?: PremiumType;
|
|
107
|
+
policy_starts_at?: string;
|
|
108
|
+
sold_at?: string;
|
|
109
|
+
is_paid?: boolean;
|
|
110
|
+
payment_frequency?: PaymentFrequency;
|
|
111
|
+
}[];
|
|
112
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=QuoteRequestForm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QuoteRequestForm.js","sourceRoot":"","sources":["../../../../src/types/models/quotes/QuoteRequestForm.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=QuoteRequestIncident.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QuoteRequestIncident.js","sourceRoot":"","sources":["../../../../src/types/models/quotes/QuoteRequestIncident.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=QuoteRequestLog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QuoteRequestLog.js","sourceRoot":"","sources":["../../../../src/types/models/quotes/QuoteRequestLog.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,59 @@
|
|
|
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
|
+
relationship_options: SimpleOption[];
|
|
11
|
+
storage_location_options: SimpleOption[];
|
|
12
|
+
vehicle_usage_options: {
|
|
13
|
+
id: number;
|
|
14
|
+
name: string;
|
|
15
|
+
vehicle_type: VehicleType;
|
|
16
|
+
}[];
|
|
17
|
+
policy_benefit_template_options: SimpleOption[];
|
|
18
|
+
referrer_options: {
|
|
19
|
+
id: number;
|
|
20
|
+
name: string;
|
|
21
|
+
category_id: number;
|
|
22
|
+
}[];
|
|
23
|
+
policy_benefit_options: {
|
|
24
|
+
id: number;
|
|
25
|
+
name: string;
|
|
26
|
+
description: string;
|
|
27
|
+
auto_select: boolean;
|
|
28
|
+
template_id: number;
|
|
29
|
+
sort_order: number;
|
|
30
|
+
}[];
|
|
31
|
+
policy_enhancement_options: {
|
|
32
|
+
id: number;
|
|
33
|
+
name: string;
|
|
34
|
+
description: string;
|
|
35
|
+
premium: number;
|
|
36
|
+
disable_rounding: boolean;
|
|
37
|
+
auto_select: boolean;
|
|
38
|
+
}[];
|
|
39
|
+
authorised_drivers_options: {
|
|
40
|
+
id: number;
|
|
41
|
+
name: string;
|
|
42
|
+
description: string;
|
|
43
|
+
}[];
|
|
44
|
+
terms_options: {
|
|
45
|
+
id: number;
|
|
46
|
+
name: string;
|
|
47
|
+
description: string;
|
|
48
|
+
}[];
|
|
49
|
+
excess_options: {
|
|
50
|
+
id: number;
|
|
51
|
+
name: string;
|
|
52
|
+
description: string;
|
|
53
|
+
}[];
|
|
54
|
+
}
|
|
55
|
+
interface SimpleOption {
|
|
56
|
+
id: number;
|
|
57
|
+
name: string;
|
|
58
|
+
}
|
|
59
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=QuoteRequestOptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QuoteRequestOptions.js","sourceRoot":"","sources":["../../../../src/types/models/quotes/QuoteRequestOptions.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
sort_order?: number;
|
|
8
|
+
description?: string;
|
|
9
|
+
premium?: number;
|
|
10
|
+
monthly_premium?: number;
|
|
11
|
+
show_monthly?: boolean;
|
|
12
|
+
fsl?: number;
|
|
13
|
+
gst?: number;
|
|
14
|
+
premium_type?: PremiumType;
|
|
15
|
+
policy_starts_at?: string;
|
|
16
|
+
sold_at?: string;
|
|
17
|
+
is_paid?: boolean;
|
|
18
|
+
payment_frequency?: PaymentFrequency;
|
|
19
|
+
excess_details?: string;
|
|
20
|
+
terms?: string;
|
|
21
|
+
authorised_drivers?: string;
|
|
22
|
+
is_draft?: boolean;
|
|
23
|
+
is_direct_debit?: boolean;
|
|
24
|
+
benefit_template_id?: number;
|
|
25
|
+
level_of_insurance?: LevelOfInsurance;
|
|
26
|
+
enhancements?: PolicyEnhancement[];
|
|
27
|
+
benefits?: PolicyBenefit[];
|
|
28
|
+
benefit_template?: PolicyBenefitTemplate;
|
|
29
|
+
}
|
|
30
|
+
export declare type PremiumType = 'annual' | 'total-due';
|
|
31
|
+
export declare type PaymentFrequency = 'monthly' | 'annually';
|
|
32
|
+
export interface LevelOfInsurance {
|
|
33
|
+
id: number;
|
|
34
|
+
name: string;
|
|
35
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=QuoteRequestPurchaseOption.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QuoteRequestPurchaseOption.js","sourceRoot":"","sources":["../../../../src/types/models/quotes/QuoteRequestPurchaseOption.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=QuoteRequestReferrer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QuoteRequestReferrer.js","sourceRoot":"","sources":["../../../../src/types/models/quotes/QuoteRequestReferrer.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=QuoteRequestReferrerCategory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QuoteRequestReferrerCategory.js","sourceRoot":"","sources":["../../../../src/types/models/quotes/QuoteRequestReferrerCategory.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
is_heavy?: boolean;
|
|
18
|
+
quote_request_id?: string;
|
|
19
|
+
drivers?: QuoteRequestVehicleDriver[];
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=QuoteRequestVehicle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QuoteRequestVehicle.js","sourceRoot":"","sources":["../../../../src/types/models/quotes/QuoteRequestVehicle.ts"],"names":[],"mappings":""}
|