@star-insure/sdk 4.1.3 → 4.2.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.
@@ -89,7 +89,7 @@ export interface DamageClaimRequest extends ClaimRequest {
89
89
  'additional_information_details'?: string;
90
90
  'accident_location'?: string;
91
91
  'accident_suburb'?: string;
92
- 'accident_happened_at'?: string;
92
+ 'loss_happened_at'?: string;
93
93
  'accident_speed'?: string;
94
94
  'impact_speed'?: string;
95
95
  'road_surface'?: string;
@@ -169,7 +169,7 @@ export interface GlassClaimRequest extends ClaimRequest {
169
169
  'vehicle_model'?: string;
170
170
  'vehicle_year'?: string | number;
171
171
  'accident_location'?: string;
172
- 'accident_happened_at'?: string;
172
+ 'loss_happened_at'?: string;
173
173
  'accident_description'?: string;
174
174
  'repairer_name'?: string;
175
175
  'repairer_phone'?: string;
@@ -275,7 +275,7 @@ export interface TheftClaimRequest extends ClaimRequest {
275
275
  'vehicle_ran_well'?: boolean;
276
276
  'vehicle_ran_poorly_details'?: string;
277
277
  'theft_details'?: string;
278
- 'theft_happened_on'?: string;
278
+ 'loss_happened_at'?: string;
279
279
  'theft_discovered_at'?: string;
280
280
  'last_seen_at'?: string;
281
281
  'vehicle_last_used_by'?: string;
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": "4.1.3",
5
+ "version": "4.2.0",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
@@ -27,8 +27,8 @@ export default function Button({
27
27
  small = false,
28
28
  }: Props) {
29
29
  const baseClasses = small
30
- ? 'font-bold text-sm inline-flex items-center gap-3 justify-center text-white text-center px-3 py-1 rounded min-w-[80px] transition-all hover:opacity-75'
31
- : 'font-black inline-flex items-center gap-3 justify-center text-white text-center px-5 py-2 rounded-md min-w-[120px] transition-all hover:opacity-75';
30
+ ? 'font-bold text-sm inline-flex items-center gap-3 justify-center text-white text-center px-3 py-1 rounded min-w-[80px] transition-all hover:brightness-110'
31
+ : 'font-black inline-flex items-center gap-3 justify-center text-white text-center px-5 py-2 rounded-md min-w-[120px] transition-all hover:brightness-110';
32
32
 
33
33
  const statusClass =
34
34
  (status === 'primary' && 'bg-teal') ||
@@ -93,7 +93,7 @@ export interface DamageClaimRequest extends ClaimRequest {
93
93
  'additional_information_details'?: string;
94
94
  'accident_location'?: string;
95
95
  'accident_suburb'?: string;
96
- 'accident_happened_at'?: string;
96
+ 'loss_happened_at'?: string;
97
97
  'accident_speed'?: string;
98
98
  'impact_speed'?: string;
99
99
  'road_surface'?: string;
@@ -178,7 +178,7 @@ export interface GlassClaimRequest extends ClaimRequest {
178
178
  'vehicle_model'?: string;
179
179
  'vehicle_year'?: string|number;
180
180
  'accident_location'?: string;
181
- 'accident_happened_at'?: string;
181
+ 'loss_happened_at'?: string;
182
182
  'accident_description'?: string;
183
183
  'repairer_name'?: string;
184
184
  'repairer_phone'?: string;
@@ -290,7 +290,7 @@ export interface TheftClaimRequest extends ClaimRequest {
290
290
  'vehicle_ran_poorly_details'?: string;
291
291
  // Theft details
292
292
  'theft_details'?: string;
293
- 'theft_happened_on'?: string;
293
+ 'loss_happened_at'?: string;
294
294
  'theft_discovered_at'?: string;
295
295
  'last_seen_at'?: string;
296
296
  'vehicle_last_used_by'?: string;