@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 | null;
85
- client_number?: string | null;
86
- first_name?: string | null;
87
- last_name?: string | null;
88
- phone?: string | null;
89
- mobile?: string | null;
90
- email?: string | null;
91
- license?: string | null;
92
- license_other?: string | null;
93
- promo_code?: string | null;
94
- club_membership_number?: string | null;
95
- broker_fee?: number | null;
96
- length_of_insurance?: string | null;
97
- theme?: string | null;
98
- dob?: string | null;
99
- sold_at?: string | null;
100
- sent_at?: string | null;
101
- pricing_expires_at?: string | null;
102
- follow_up_at?: string | null;
103
- status_id?: QuoteRequestStatus;
104
- source_id?: QuoteRequestSource;
105
- referrer_id?: QuoteRequestReferrer['id'] | null;
106
- referrer_category_id?: QuoteRequestReferrerCategory['id'] | null;
107
- staff_member_id?: QuoteRequestUser['id'] | null;
108
- agent_id?: QuoteRequestUser['id'] | null;
109
- agent_firm_id?: QuoteRequestUserGroup['id'] | null;
110
- broker_firm_id?: QuoteRequestUserGroup['id'] | null;
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 | null;
116
- incidents?: QuoteRequestIncident[] | null;
117
- has_demerit_points?: boolean | null;
118
- demerit_points?: string | null;
119
- has_lost_license?: boolean | null;
120
- lost_license_details?: string | null;
121
- was_refused_insurance?: boolean | null;
122
- refused_insurance_details?: string | null;
123
- has_criminal_conviction?: boolean | null;
124
- criminal_conviction_details?: string | null;
125
- has_vehicle_modifications?: boolean | null;
126
- vehicle_modifications_details?: string | null;
127
- has_previous_insurer?: boolean | null;
128
- previous_insurer_details?: string | null;
129
- previous_insurer_expires_at?: string | null;
130
- additional_details?: string | null;
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 | null;
135
- registration?: string | null;
136
- make?: string | null;
137
- model?: string | null;
138
- year?: string | null;
139
- usage?: string | null;
140
- product?: Product | null;
141
- has_financially_interested_party?: boolean | null;
142
- financially_interested_party_detail?: string | null;
143
- owned_duration?: string | null;
144
- value?: number | null;
145
- storage_location?: string | null;
146
- is_heavy?: boolean | null;
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 | null;
152
- relationship?: string | null;
153
- licence?: string | null;
154
- licence_other?: string | null;
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 | null;
160
- sort_order?: number | null;
161
- description?: string | null;
162
- base_premium?: number | null;
163
- premium?: number | null;
164
- monthly_premium?: number | null;
165
- show_monthly?: boolean | null;
166
- fsl?: number | null;
167
- gst?: number | null;
168
- premium_type?: PremiumType | null;
169
- policy_starts_at?: string | null;
170
- sold_at?: string | null;
171
- is_paid?: boolean | null;
172
- payment_frequency?: PaymentFrequency | null;
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.4",
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 | null;
98
- client_number?: string | null;
99
- first_name?: string | null;
100
- last_name?: string | null;
101
- phone?: string | null;
102
- mobile?: string | null;
103
- email?: string | null;
104
- license?: string | null;
105
- license_other?: string | null;
106
- promo_code?: string | null;
107
- club_membership_number?: string | null;
108
- broker_fee?: number | null;
109
- length_of_insurance?: string | null;
110
- theme?: string | null;
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 | null;
113
- sold_at?: string | null;
114
- sent_at?: string | null;
115
- pricing_expires_at?: string | null;
116
- follow_up_at?: string | null;
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
- status_id?: QuoteRequestStatus;
120
- source_id?: QuoteRequestSource;
121
- referrer_id?: QuoteRequestReferrer['id'] | null;
122
- referrer_category_id?: QuoteRequestReferrerCategory['id'] | null;
123
- staff_member_id?: QuoteRequestUser['id'] | null;
124
- agent_id?: QuoteRequestUser['id'] | null;
125
- agent_firm_id?: QuoteRequestUserGroup['id'] | null;
126
- broker_firm_id?: QuoteRequestUserGroup['id'] | null;
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 | null;
133
- incidents?: QuoteRequestIncident[] | null;
134
- has_demerit_points?: boolean | null;
135
- demerit_points?: string | null;
136
- has_lost_license?: boolean | null;
137
- lost_license_details?: string | null;
138
- was_refused_insurance?: boolean | null;
139
- refused_insurance_details?: string | null;
140
- has_criminal_conviction?: boolean | null;
141
- criminal_conviction_details?: string | null;
142
- has_vehicle_modifications?: boolean | null;
143
- vehicle_modifications_details?: string | null;
144
- has_previous_insurer?: boolean | null;
145
- previous_insurer_details?: string | null;
146
- previous_insurer_expires_at?: string | null;
147
- additional_details?: string | null;
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 | null;
153
- registration?: string | null;
154
- make?: string | null;
155
- model?: string | null;
156
- year?: string | null;
157
- usage?: string | null;
158
- product?: Product | null;
159
- has_financially_interested_party?: boolean | null;
160
- financially_interested_party_detail?: string | null;
161
- owned_duration?: string | null;
162
- value?: number | null;
163
- storage_location?: string | null;
164
- is_heavy?: boolean | null;
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 | null;
170
- relationship?: string | null;
171
- licence?: string | null;
172
- licence_other?: string | null;
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 | null;
179
- sort_order?: number | null;
180
- description?: string | null;
181
- base_premium?: number | null;
182
- premium?: number | null;
183
- monthly_premium?: number | null;
184
- show_monthly?: boolean | null;
185
- fsl?: number | null;
186
- gst?: number | null;
187
- premium_type?: PremiumType | null;
188
- policy_starts_at?: string | null;
189
- sold_at?: string | null;
190
- is_paid?: boolean | null;
191
- payment_frequency?: PaymentFrequency | null;
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
  }
@@ -1,5 +1,6 @@
1
1
  import { QuoteRequest } from "./QuoteRequest";
2
2
  import { QuoteRequestIncident } from "./QuoteRequestForm";
3
+
3
4
  export interface QuoteRequestDeclaration {
4
5
  id: number;
5
6
  quote_request_id: QuoteRequest['id'] | null;