@star-insure/sdk 0.4.5 → 0.4.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/types/models/quotes/PolicyBenefit.d.ts +11 -11
- package/dist/types/models/quotes/PostalAddress.d.ts +5 -5
- package/dist/types/models/quotes/QuoteRequestDeclaration.d.ts +18 -18
- package/dist/types/models/quotes/QuoteRequestVehicle.d.ts +15 -15
- package/dist/types/models/quotes/QuoteRequestVehicleDriver.d.ts +8 -8
- package/dist/types/models/quotes/StreetAddress.d.ts +6 -6
- package/package.json +1 -1
- package/src/types/models/quotes/PolicyBenefit.ts +11 -11
- package/src/types/models/quotes/PostalAddress.ts +5 -5
- package/src/types/models/quotes/QuoteRequestDeclaration.ts +18 -18
- package/src/types/models/quotes/QuoteRequestVehicle.ts +15 -15
- package/src/types/models/quotes/QuoteRequestVehicleDriver.ts +8 -8
- package/src/types/models/quotes/StreetAddress.ts +6 -6
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
export interface PolicyBenefit {
|
|
2
|
-
id
|
|
3
|
-
name
|
|
4
|
-
description
|
|
5
|
-
sort_order
|
|
6
|
-
icon
|
|
7
|
-
template_id
|
|
2
|
+
id?: number;
|
|
3
|
+
name?: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
sort_order?: number;
|
|
6
|
+
icon?: string;
|
|
7
|
+
template_id?: PolicyBenefitTemplate['id'];
|
|
8
8
|
}
|
|
9
9
|
export interface PolicyBenefitTemplate {
|
|
10
|
-
id
|
|
11
|
-
created_at
|
|
12
|
-
updated_at
|
|
13
|
-
name
|
|
14
|
-
sort_order
|
|
10
|
+
id?: number;
|
|
11
|
+
created_at?: string;
|
|
12
|
+
updated_at?: string;
|
|
13
|
+
name?: string;
|
|
14
|
+
sort_order?: number;
|
|
15
15
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export interface PostalAddress {
|
|
2
|
-
id
|
|
3
|
-
postal_line_1
|
|
4
|
-
postal_line_2
|
|
5
|
-
postal_line_3
|
|
6
|
-
postal_line_4
|
|
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
|
|
5
|
-
quote_request_id
|
|
6
|
-
had_incident
|
|
7
|
-
incidents
|
|
8
|
-
has_demerit_points
|
|
9
|
-
demerit_points
|
|
10
|
-
has_lost_licence
|
|
11
|
-
lost_licence_details
|
|
12
|
-
was_refused_insurance
|
|
13
|
-
refused_insurance_details
|
|
14
|
-
has_criminal_conviction
|
|
15
|
-
criminal_conviction_details
|
|
16
|
-
has_vehicle_modifications
|
|
17
|
-
vehicle_modifications_details
|
|
18
|
-
has_previous_insurer
|
|
19
|
-
previous_insurer_details
|
|
20
|
-
previous_insurer_expires_at
|
|
21
|
-
additional_details
|
|
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
|
|
5
|
-
vehicle_type
|
|
6
|
-
registration
|
|
7
|
-
make
|
|
8
|
-
model
|
|
9
|
-
year
|
|
10
|
-
usage
|
|
11
|
-
product
|
|
12
|
-
has_financially_interested_party
|
|
13
|
-
financially_interested_party_detail
|
|
14
|
-
owned_duration
|
|
15
|
-
value
|
|
16
|
-
storage_location
|
|
17
|
-
is_heavy
|
|
18
|
-
quote_request_id
|
|
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
|
|
3
|
-
first_name
|
|
4
|
-
last_name
|
|
5
|
-
dob
|
|
6
|
-
relationship
|
|
7
|
-
licence
|
|
8
|
-
licence_other
|
|
9
|
-
quote_request_vehicle_id
|
|
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;
|
|
10
10
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export interface StreetAddress {
|
|
2
|
-
id
|
|
3
|
-
address
|
|
4
|
-
unit
|
|
5
|
-
suburb
|
|
6
|
-
city
|
|
7
|
-
post_code
|
|
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.
|
|
5
|
+
"version": "0.4.8",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
export interface PolicyBenefit {
|
|
2
|
-
id
|
|
3
|
-
name
|
|
4
|
-
description
|
|
5
|
-
sort_order
|
|
6
|
-
icon
|
|
7
|
-
template_id
|
|
2
|
+
id?: number;
|
|
3
|
+
name?: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
sort_order?: number;
|
|
6
|
+
icon?: string;
|
|
7
|
+
template_id?: PolicyBenefitTemplate['id'];
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
export interface PolicyBenefitTemplate {
|
|
11
|
-
id
|
|
12
|
-
created_at
|
|
13
|
-
updated_at
|
|
14
|
-
name
|
|
15
|
-
sort_order
|
|
11
|
+
id?: number;
|
|
12
|
+
created_at?: string;
|
|
13
|
+
updated_at?: string;
|
|
14
|
+
name?: string;
|
|
15
|
+
sort_order?: number;
|
|
16
16
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export interface PostalAddress {
|
|
2
|
-
id
|
|
3
|
-
postal_line_1
|
|
4
|
-
postal_line_2
|
|
5
|
-
postal_line_3
|
|
6
|
-
postal_line_4
|
|
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
|
|
6
|
-
quote_request_id
|
|
7
|
-
had_incident
|
|
8
|
-
incidents
|
|
9
|
-
has_demerit_points
|
|
10
|
-
demerit_points
|
|
11
|
-
has_lost_licence
|
|
12
|
-
lost_licence_details
|
|
13
|
-
was_refused_insurance
|
|
14
|
-
refused_insurance_details
|
|
15
|
-
has_criminal_conviction
|
|
16
|
-
criminal_conviction_details
|
|
17
|
-
has_vehicle_modifications
|
|
18
|
-
vehicle_modifications_details
|
|
19
|
-
has_previous_insurer
|
|
20
|
-
previous_insurer_details
|
|
21
|
-
previous_insurer_expires_at
|
|
22
|
-
additional_details
|
|
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
|
|
6
|
-
vehicle_type
|
|
7
|
-
registration
|
|
8
|
-
make
|
|
9
|
-
model
|
|
10
|
-
year
|
|
11
|
-
usage
|
|
12
|
-
product
|
|
13
|
-
has_financially_interested_party
|
|
14
|
-
financially_interested_party_detail
|
|
15
|
-
owned_duration
|
|
16
|
-
value
|
|
17
|
-
storage_location
|
|
18
|
-
is_heavy
|
|
19
|
-
quote_request_id
|
|
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
|
|
3
|
-
first_name
|
|
4
|
-
last_name
|
|
5
|
-
dob
|
|
6
|
-
relationship
|
|
7
|
-
licence
|
|
8
|
-
licence_other
|
|
9
|
-
quote_request_vehicle_id
|
|
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;
|
|
10
10
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export interface StreetAddress {
|
|
2
|
-
id
|
|
3
|
-
address
|
|
4
|
-
unit
|
|
5
|
-
suburb
|
|
6
|
-
city
|
|
7
|
-
post_code
|
|
2
|
+
id?: number;
|
|
3
|
+
address?: string;
|
|
4
|
+
unit?: string;
|
|
5
|
+
suburb?: string;
|
|
6
|
+
city?: string;
|
|
7
|
+
post_code?: string;
|
|
8
8
|
}
|