@star-insure/sdk 0.1.4 → 0.1.5
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.
|
@@ -81,94 +81,92 @@ export interface QuoteRequestForm {
|
|
|
81
81
|
id?: string;
|
|
82
82
|
status?: QuoteRequestStatus;
|
|
83
83
|
source?: QuoteRequestSource;
|
|
84
|
-
reference?: string
|
|
85
|
-
client_number?: string
|
|
86
|
-
first_name?: string
|
|
87
|
-
last_name?: string
|
|
88
|
-
phone?: string
|
|
89
|
-
mobile?: string
|
|
90
|
-
email?: string
|
|
91
|
-
license?: string
|
|
92
|
-
license_other?: string
|
|
93
|
-
promo_code?: string
|
|
94
|
-
club_membership_number?: string
|
|
95
|
-
broker_fee?: number
|
|
96
|
-
length_of_insurance?: string
|
|
97
|
-
theme?: string
|
|
98
|
-
dob?: string
|
|
99
|
-
sold_at?: string
|
|
100
|
-
sent_at?: string
|
|
101
|
-
pricing_expires_at?: string
|
|
102
|
-
follow_up_at?: string
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
broker_id?: QuoteRequestUser['id'] | null;
|
|
112
|
-
club_id?: Club['id'] | null;
|
|
84
|
+
reference?: string;
|
|
85
|
+
client_number?: string;
|
|
86
|
+
first_name?: string;
|
|
87
|
+
last_name?: string;
|
|
88
|
+
phone?: string;
|
|
89
|
+
mobile?: string;
|
|
90
|
+
email?: string;
|
|
91
|
+
license?: string;
|
|
92
|
+
license_other?: string;
|
|
93
|
+
promo_code?: string;
|
|
94
|
+
club_membership_number?: string;
|
|
95
|
+
broker_fee?: number;
|
|
96
|
+
length_of_insurance?: string;
|
|
97
|
+
theme?: string;
|
|
98
|
+
dob?: string;
|
|
99
|
+
sold_at?: string;
|
|
100
|
+
sent_at?: string;
|
|
101
|
+
pricing_expires_at?: string;
|
|
102
|
+
follow_up_at?: string;
|
|
103
|
+
referrer_id?: QuoteRequestReferrer['id'];
|
|
104
|
+
referrer_category_id?: QuoteRequestReferrerCategory['id'];
|
|
105
|
+
staff_member_id?: QuoteRequestUser['id'];
|
|
106
|
+
agent_id?: QuoteRequestUser['id'];
|
|
107
|
+
agent_firm_id?: QuoteRequestUserGroup['id'];
|
|
108
|
+
broker_firm_id?: QuoteRequestUserGroup['id'];
|
|
109
|
+
broker_id?: QuoteRequestUser['id'];
|
|
110
|
+
club_id?: Club['id'];
|
|
113
111
|
declaration: {
|
|
114
112
|
id?: number;
|
|
115
|
-
had_incident?: boolean
|
|
116
|
-
incidents?: QuoteRequestIncident[]
|
|
117
|
-
has_demerit_points?: boolean
|
|
118
|
-
demerit_points?: string
|
|
119
|
-
has_lost_license?: boolean
|
|
120
|
-
lost_license_details?: string
|
|
121
|
-
was_refused_insurance?: boolean
|
|
122
|
-
refused_insurance_details?: string
|
|
123
|
-
has_criminal_conviction?: boolean
|
|
124
|
-
criminal_conviction_details?: string
|
|
125
|
-
has_vehicle_modifications?: boolean
|
|
126
|
-
vehicle_modifications_details?: string
|
|
127
|
-
has_previous_insurer?: boolean
|
|
128
|
-
previous_insurer_details?: string
|
|
129
|
-
previous_insurer_expires_at?: string
|
|
130
|
-
additional_details?: string
|
|
113
|
+
had_incident?: boolean;
|
|
114
|
+
incidents?: QuoteRequestIncident[];
|
|
115
|
+
has_demerit_points?: boolean;
|
|
116
|
+
demerit_points?: string;
|
|
117
|
+
has_lost_license?: boolean;
|
|
118
|
+
lost_license_details?: string;
|
|
119
|
+
was_refused_insurance?: boolean;
|
|
120
|
+
refused_insurance_details?: string;
|
|
121
|
+
has_criminal_conviction?: boolean;
|
|
122
|
+
criminal_conviction_details?: string;
|
|
123
|
+
has_vehicle_modifications?: boolean;
|
|
124
|
+
vehicle_modifications_details?: string;
|
|
125
|
+
has_previous_insurer?: boolean;
|
|
126
|
+
previous_insurer_details?: string;
|
|
127
|
+
previous_insurer_expires_at?: string;
|
|
128
|
+
additional_details?: string;
|
|
131
129
|
};
|
|
132
130
|
vehicles: {
|
|
133
131
|
id?: number;
|
|
134
|
-
vehicle_type?: VehicleType
|
|
135
|
-
registration?: string
|
|
136
|
-
make?: string
|
|
137
|
-
model?: string
|
|
138
|
-
year?: string
|
|
139
|
-
usage?: string
|
|
140
|
-
product?: Product
|
|
141
|
-
has_financially_interested_party?: boolean
|
|
142
|
-
financially_interested_party_detail?: string
|
|
143
|
-
owned_duration?: string
|
|
144
|
-
value?: number
|
|
145
|
-
storage_location?: string
|
|
146
|
-
is_heavy?: boolean
|
|
132
|
+
vehicle_type?: VehicleType;
|
|
133
|
+
registration?: string;
|
|
134
|
+
make?: string;
|
|
135
|
+
model?: string;
|
|
136
|
+
year?: string;
|
|
137
|
+
usage?: string;
|
|
138
|
+
product?: Product;
|
|
139
|
+
has_financially_interested_party?: boolean;
|
|
140
|
+
financially_interested_party_detail?: string;
|
|
141
|
+
owned_duration?: string;
|
|
142
|
+
value?: number;
|
|
143
|
+
storage_location?: string;
|
|
144
|
+
is_heavy?: boolean;
|
|
147
145
|
drivers: {
|
|
148
146
|
id?: number;
|
|
149
147
|
first_name?: string;
|
|
150
148
|
last_name?: string;
|
|
151
|
-
dob?: string
|
|
152
|
-
relationship?: string
|
|
153
|
-
licence?: string
|
|
154
|
-
licence_other?: string
|
|
149
|
+
dob?: string;
|
|
150
|
+
relationship?: string;
|
|
151
|
+
licence?: string;
|
|
152
|
+
licence_other?: string;
|
|
155
153
|
}[];
|
|
156
154
|
}[];
|
|
157
155
|
purchaseOptions?: {
|
|
158
156
|
id?: number;
|
|
159
|
-
level_of_insurance_id?: number
|
|
160
|
-
sort_order?: number
|
|
161
|
-
description?: string
|
|
162
|
-
base_premium?: number
|
|
163
|
-
premium?: number
|
|
164
|
-
monthly_premium?: number
|
|
165
|
-
show_monthly?: boolean
|
|
166
|
-
fsl?: number
|
|
167
|
-
gst?: number
|
|
168
|
-
premium_type?: PremiumType
|
|
169
|
-
policy_starts_at?: string
|
|
170
|
-
sold_at?: string
|
|
171
|
-
is_paid?: boolean
|
|
172
|
-
payment_frequency?: PaymentFrequency
|
|
157
|
+
level_of_insurance_id?: number;
|
|
158
|
+
sort_order?: number;
|
|
159
|
+
description?: string;
|
|
160
|
+
base_premium?: number;
|
|
161
|
+
premium?: number;
|
|
162
|
+
monthly_premium?: number;
|
|
163
|
+
show_monthly?: boolean;
|
|
164
|
+
fsl?: number;
|
|
165
|
+
gst?: number;
|
|
166
|
+
premium_type?: PremiumType;
|
|
167
|
+
policy_starts_at?: string;
|
|
168
|
+
sold_at?: string;
|
|
169
|
+
is_paid?: boolean;
|
|
170
|
+
payment_frequency?: PaymentFrequency;
|
|
173
171
|
};
|
|
174
172
|
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@star-insure/sdk",
|
|
3
3
|
"description": "The SDK for Star Insure client apps with shared helper functions and TypeScript definitions.",
|
|
4
4
|
"author": "alexclark_nz",
|
|
5
|
-
"version": "0.1.
|
|
5
|
+
"version": "0.1.5",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
@@ -94,100 +94,98 @@ export interface QuoteRequestForm {
|
|
|
94
94
|
id?: string;
|
|
95
95
|
status?: QuoteRequestStatus;
|
|
96
96
|
source?: QuoteRequestSource;
|
|
97
|
-
reference?: string
|
|
98
|
-
client_number?: string
|
|
99
|
-
first_name?: string
|
|
100
|
-
last_name?: string
|
|
101
|
-
phone?: string
|
|
102
|
-
mobile?: string
|
|
103
|
-
email?: string
|
|
104
|
-
license?: string
|
|
105
|
-
license_other?: string
|
|
106
|
-
promo_code?: string
|
|
107
|
-
club_membership_number?: string
|
|
108
|
-
broker_fee?: number
|
|
109
|
-
length_of_insurance?: string
|
|
110
|
-
theme?: string
|
|
97
|
+
reference?: string;
|
|
98
|
+
client_number?: string;
|
|
99
|
+
first_name?: string;
|
|
100
|
+
last_name?: string;
|
|
101
|
+
phone?: string;
|
|
102
|
+
mobile?: string;
|
|
103
|
+
email?: string;
|
|
104
|
+
license?: string;
|
|
105
|
+
license_other?: string;
|
|
106
|
+
promo_code?: string;
|
|
107
|
+
club_membership_number?: string;
|
|
108
|
+
broker_fee?: number;
|
|
109
|
+
length_of_insurance?: string;
|
|
110
|
+
theme?: string;
|
|
111
111
|
|
|
112
|
-
dob?: string
|
|
113
|
-
sold_at?: string
|
|
114
|
-
sent_at?: string
|
|
115
|
-
pricing_expires_at?: string
|
|
116
|
-
follow_up_at?: string
|
|
112
|
+
dob?: string;
|
|
113
|
+
sold_at?: string;
|
|
114
|
+
sent_at?: string;
|
|
115
|
+
pricing_expires_at?: string;
|
|
116
|
+
follow_up_at?: string;
|
|
117
117
|
|
|
118
118
|
// Foreign keys
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
broker_id?: QuoteRequestUser['id'] | null;
|
|
128
|
-
club_id?: Club['id'] | null;
|
|
119
|
+
referrer_id?: QuoteRequestReferrer['id'];
|
|
120
|
+
referrer_category_id?: QuoteRequestReferrerCategory['id'];
|
|
121
|
+
staff_member_id?: QuoteRequestUser['id'];
|
|
122
|
+
agent_id?: QuoteRequestUser['id'];
|
|
123
|
+
agent_firm_id?: QuoteRequestUserGroup['id'];
|
|
124
|
+
broker_firm_id?: QuoteRequestUserGroup['id'];
|
|
125
|
+
broker_id?: QuoteRequestUser['id'];
|
|
126
|
+
club_id?: Club['id'];
|
|
129
127
|
|
|
130
128
|
declaration: {
|
|
131
129
|
id?: number;
|
|
132
|
-
had_incident?: boolean
|
|
133
|
-
incidents?: QuoteRequestIncident[]
|
|
134
|
-
has_demerit_points?: boolean
|
|
135
|
-
demerit_points?: string
|
|
136
|
-
has_lost_license?: boolean
|
|
137
|
-
lost_license_details?: string
|
|
138
|
-
was_refused_insurance?: boolean
|
|
139
|
-
refused_insurance_details?: string
|
|
140
|
-
has_criminal_conviction?: boolean
|
|
141
|
-
criminal_conviction_details?: string
|
|
142
|
-
has_vehicle_modifications?: boolean
|
|
143
|
-
vehicle_modifications_details?: string
|
|
144
|
-
has_previous_insurer?: boolean
|
|
145
|
-
previous_insurer_details?: string
|
|
146
|
-
previous_insurer_expires_at?: string
|
|
147
|
-
additional_details?: string
|
|
130
|
+
had_incident?: boolean;
|
|
131
|
+
incidents?: QuoteRequestIncident[];
|
|
132
|
+
has_demerit_points?: boolean;
|
|
133
|
+
demerit_points?: string;
|
|
134
|
+
has_lost_license?: boolean;
|
|
135
|
+
lost_license_details?: string;
|
|
136
|
+
was_refused_insurance?: boolean;
|
|
137
|
+
refused_insurance_details?: string;
|
|
138
|
+
has_criminal_conviction?: boolean;
|
|
139
|
+
criminal_conviction_details?: string;
|
|
140
|
+
has_vehicle_modifications?: boolean;
|
|
141
|
+
vehicle_modifications_details?: string;
|
|
142
|
+
has_previous_insurer?: boolean;
|
|
143
|
+
previous_insurer_details?: string;
|
|
144
|
+
previous_insurer_expires_at?: string;
|
|
145
|
+
additional_details?: string;
|
|
148
146
|
}
|
|
149
147
|
|
|
150
148
|
vehicles: {
|
|
151
149
|
id?: number;
|
|
152
|
-
vehicle_type?: VehicleType
|
|
153
|
-
registration?: string
|
|
154
|
-
make?: string
|
|
155
|
-
model?: string
|
|
156
|
-
year?: string
|
|
157
|
-
usage?: string
|
|
158
|
-
product?: Product
|
|
159
|
-
has_financially_interested_party?: boolean
|
|
160
|
-
financially_interested_party_detail?: string
|
|
161
|
-
owned_duration?: string
|
|
162
|
-
value?: number
|
|
163
|
-
storage_location?: string
|
|
164
|
-
is_heavy?: boolean
|
|
150
|
+
vehicle_type?: VehicleType;
|
|
151
|
+
registration?: string;
|
|
152
|
+
make?: string;
|
|
153
|
+
model?: string;
|
|
154
|
+
year?: string;
|
|
155
|
+
usage?: string;
|
|
156
|
+
product?: Product;
|
|
157
|
+
has_financially_interested_party?: boolean;
|
|
158
|
+
financially_interested_party_detail?: string;
|
|
159
|
+
owned_duration?: string;
|
|
160
|
+
value?: number;
|
|
161
|
+
storage_location?: string;
|
|
162
|
+
is_heavy?: boolean;
|
|
165
163
|
drivers: {
|
|
166
164
|
id?: number;
|
|
167
165
|
first_name?: string;
|
|
168
166
|
last_name?: string;
|
|
169
|
-
dob?: string
|
|
170
|
-
relationship?: string
|
|
171
|
-
licence?: string
|
|
172
|
-
licence_other?: string
|
|
167
|
+
dob?: string;
|
|
168
|
+
relationship?: string;
|
|
169
|
+
licence?: string;
|
|
170
|
+
licence_other?: string;
|
|
173
171
|
}[];
|
|
174
172
|
}[],
|
|
175
173
|
|
|
176
174
|
purchaseOptions?: {
|
|
177
175
|
id?: number;
|
|
178
|
-
level_of_insurance_id?: number
|
|
179
|
-
sort_order?: number
|
|
180
|
-
description?: string
|
|
181
|
-
base_premium?: number
|
|
182
|
-
premium?: number
|
|
183
|
-
monthly_premium?: number
|
|
184
|
-
show_monthly?: boolean
|
|
185
|
-
fsl?: number
|
|
186
|
-
gst?: number
|
|
187
|
-
premium_type?: PremiumType
|
|
188
|
-
policy_starts_at?: string
|
|
189
|
-
sold_at?: string
|
|
190
|
-
is_paid?: boolean
|
|
191
|
-
payment_frequency?: PaymentFrequency
|
|
176
|
+
level_of_insurance_id?: number;
|
|
177
|
+
sort_order?: number;
|
|
178
|
+
description?: string;
|
|
179
|
+
base_premium?: number;
|
|
180
|
+
premium?: number;
|
|
181
|
+
monthly_premium?: number;
|
|
182
|
+
show_monthly?: boolean;
|
|
183
|
+
fsl?: number;
|
|
184
|
+
gst?: number;
|
|
185
|
+
premium_type?: PremiumType;
|
|
186
|
+
policy_starts_at?: string;
|
|
187
|
+
sold_at?: string;
|
|
188
|
+
is_paid?: boolean;
|
|
189
|
+
payment_frequency?: PaymentFrequency;
|
|
192
190
|
},
|
|
193
191
|
}
|