@star-insure/sdk 0.4.6 → 0.4.9

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.
@@ -1,7 +1,7 @@
1
1
  export interface PostalAddress {
2
- id: number;
3
- postal_line_1: string | null;
4
- postal_line_2: string | null;
5
- postal_line_3: string | null;
6
- postal_line_4: string | null;
2
+ id?: number;
3
+ postal_line_1?: string;
4
+ postal_line_2?: string;
5
+ postal_line_3?: string;
6
+ postal_line_4?: string;
7
7
  }
@@ -1,22 +1,22 @@
1
1
  import { QuoteRequest } from "./QuoteRequest";
2
2
  import { QuoteRequestIncident } from "./QuoteRequestIncident";
3
3
  export interface QuoteRequestDeclaration {
4
- id: number;
5
- quote_request_id: QuoteRequest['id'] | null;
6
- had_incident: boolean | null;
7
- incidents: QuoteRequestIncident[] | null;
8
- has_demerit_points: boolean | null;
9
- demerit_points: string | null;
10
- has_lost_licence: boolean | null;
11
- lost_licence_details: string | null;
12
- was_refused_insurance: boolean | null;
13
- refused_insurance_details: string | null;
14
- has_criminal_conviction: boolean | null;
15
- criminal_conviction_details: string | null;
16
- has_vehicle_modifications: boolean | null;
17
- vehicle_modifications_details: string | null;
18
- has_previous_insurer: boolean | null;
19
- previous_insurer_details: string | null;
20
- previous_insurer_expires_at: string | null;
21
- additional_details: string | null;
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
22
  }
@@ -1,20 +1,20 @@
1
1
  import { Product, VehicleType } from "../../api";
2
2
  import { QuoteRequestVehicleDriver } from "./QuoteRequestVehicleDriver";
3
3
  export interface QuoteRequestVehicle {
4
- id: number;
5
- vehicle_type: VehicleType | null;
6
- registration: string | null;
7
- make: string | null;
8
- model: string | null;
9
- year: string | null;
10
- usage: string | null;
11
- product: Product | null;
12
- has_financially_interested_party: boolean | null;
13
- financially_interested_party_detail: string | null;
14
- owned_duration: string | null;
15
- value: number | null;
16
- storage_location: string | null;
17
- is_heavy: boolean | null;
18
- quote_request_id: string;
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
19
  drivers?: QuoteRequestVehicleDriver[];
20
20
  }
@@ -1,10 +1,10 @@
1
1
  export interface QuoteRequestVehicleDriver {
2
- id: number;
3
- first_name: string | null;
4
- last_name: string | null;
5
- dob: string | null;
6
- relationship: string | null;
7
- licence: string | null;
8
- licence_other: string | null;
9
- quote_request_vehicle_id: number;
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
10
  }
@@ -1,8 +1,8 @@
1
1
  export interface StreetAddress {
2
- id: number;
3
- address: string | null;
4
- unit: string | null;
5
- suburb: string | null;
6
- city: string | null;
7
- post_code: string | null;
2
+ id?: number;
3
+ address?: string;
4
+ unit?: string;
5
+ suburb?: string;
6
+ city?: string;
7
+ post_code?: string;
8
8
  }
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.4.6",
5
+ "version": "0.4.9",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
@@ -1,7 +1,7 @@
1
1
  export interface PostalAddress {
2
- id: number;
3
- postal_line_1: string | null;
4
- postal_line_2: string | null;
5
- postal_line_3: string | null;
6
- postal_line_4: string | null;
2
+ id?: number;
3
+ postal_line_1?: string;
4
+ postal_line_2?: string;
5
+ postal_line_3?: string;
6
+ postal_line_4?: string;
7
7
  }
@@ -2,22 +2,22 @@ import { QuoteRequest } from "./QuoteRequest";
2
2
  import { QuoteRequestIncident } from "./QuoteRequestIncident";
3
3
 
4
4
  export interface QuoteRequestDeclaration {
5
- id: number;
6
- quote_request_id: QuoteRequest['id'] | null;
7
- had_incident: boolean | null;
8
- incidents: QuoteRequestIncident[] | null;
9
- has_demerit_points: boolean | null;
10
- demerit_points: string | null;
11
- has_lost_licence: boolean | null;
12
- lost_licence_details: string | null;
13
- was_refused_insurance: boolean | null;
14
- refused_insurance_details: string | null;
15
- has_criminal_conviction: boolean | null;
16
- criminal_conviction_details: string | null;
17
- has_vehicle_modifications: boolean | null;
18
- vehicle_modifications_details: string | null;
19
- has_previous_insurer: boolean | null;
20
- previous_insurer_details: string | null;
21
- previous_insurer_expires_at: string | null;
22
- additional_details: string | null;
5
+ id?: number;
6
+ quote_request_id?: QuoteRequest['id'];
7
+ had_incident?: boolean;
8
+ incidents?: QuoteRequestIncident[];
9
+ has_demerit_points?: boolean;
10
+ demerit_points?: string;
11
+ has_lost_licence?: boolean;
12
+ lost_licence_details?: string;
13
+ was_refused_insurance?: boolean;
14
+ refused_insurance_details?: string;
15
+ has_criminal_conviction?: boolean;
16
+ criminal_conviction_details?: string;
17
+ has_vehicle_modifications?: boolean;
18
+ vehicle_modifications_details?: string;
19
+ has_previous_insurer?: boolean;
20
+ previous_insurer_details?: string;
21
+ previous_insurer_expires_at?: string;
22
+ additional_details?: string;
23
23
  }
@@ -2,20 +2,20 @@ import { Product, VehicleType } from "../../api";
2
2
  import { QuoteRequestVehicleDriver } from "./QuoteRequestVehicleDriver";
3
3
 
4
4
  export interface QuoteRequestVehicle {
5
- id: number;
6
- vehicle_type: VehicleType | null;
7
- registration: string | null;
8
- make: string | null;
9
- model: string | null;
10
- year: string | null;
11
- usage: string | null;
12
- product: Product | null;
13
- has_financially_interested_party: boolean | null;
14
- financially_interested_party_detail: string | null;
15
- owned_duration: string | null;
16
- value: number | null;
17
- storage_location: string | null;
18
- is_heavy: boolean | null;
19
- quote_request_id: string;
5
+ id?: number;
6
+ vehicle_type?: VehicleType;
7
+ registration?: string;
8
+ make?: string;
9
+ model?: string;
10
+ year?: string;
11
+ usage?: string;
12
+ product?: Product;
13
+ has_financially_interested_party?: boolean;
14
+ financially_interested_party_detail?: string;
15
+ owned_duration?: string;
16
+ value?: number;
17
+ storage_location?: string;
18
+ is_heavy?: boolean;
19
+ quote_request_id?: string;
20
20
  drivers?: QuoteRequestVehicleDriver[];
21
21
  }
@@ -1,10 +1,10 @@
1
1
  export interface QuoteRequestVehicleDriver {
2
- id: number;
3
- first_name: string | null;
4
- last_name: string | null;
5
- dob: string | null;
6
- relationship: string | null;
7
- licence: string | null;
8
- licence_other: string | null;
9
- quote_request_vehicle_id: number;
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
10
  }
@@ -1,8 +1,8 @@
1
1
  export interface StreetAddress {
2
- id: number;
3
- address: string | null;
4
- unit: string | null;
5
- suburb: string | null;
6
- city: string | null;
7
- post_code: string | null;
2
+ id?: number;
3
+ address?: string;
4
+ unit?: string;
5
+ suburb?: string;
6
+ city?: string;
7
+ post_code?: string;
8
8
  }