@star-insure/sdk 0.1.11 → 0.1.14

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,6 +1,5 @@
1
1
  import { Product, VehicleType } from "../../api";
2
2
  import { Club } from "./Club";
3
- import { QuoteRequestIncident } from "./QuoteRequestIncident";
4
3
  import { Lead } from "./Lead";
5
4
  import { PostalAddress } from "./PostalAddress";
6
5
  import { QuoteRequestDeclaration } from "./QuoteRequestDeclaration";
@@ -119,7 +118,11 @@ export interface QuoteRequestForm {
119
118
  declaration: {
120
119
  id?: number;
121
120
  had_incident?: boolean;
122
- incidents?: QuoteRequestIncident[];
121
+ incidents: {
122
+ year?: string;
123
+ month?: string;
124
+ description?: string;
125
+ }[];
123
126
  has_demerit_points?: boolean;
124
127
  demerit_points?: string;
125
128
  has_lost_licence?: boolean;
@@ -1,3 +1,4 @@
1
+ import { VehicleType } from "../../api";
1
2
  export interface QuoteRequestOptions {
2
3
  club_options: SimpleOption[];
3
4
  driver_licence_options: SimpleOption[];
@@ -8,7 +9,11 @@ export interface QuoteRequestOptions {
8
9
  referrer_category_options: SimpleOption[];
9
10
  relationship_options: SimpleOption[];
10
11
  storage_location_options: SimpleOption[];
11
- vehicle_usage_options: SimpleOption[];
12
+ vehicle_usage_options: {
13
+ id: number;
14
+ name: string;
15
+ vehicle_type: VehicleType;
16
+ }[];
12
17
  policy_benefit_template_options: SimpleOption[];
13
18
  referrer_options: {
14
19
  id: number;
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.11",
5
+ "version": "0.1.14",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
@@ -1,6 +1,5 @@
1
1
  import { Product, VehicleType } from "../../api";
2
2
  import { Club } from "./Club";
3
- import { QuoteRequestIncident } from "./QuoteRequestIncident";
4
3
  import { Lead } from "./Lead";
5
4
  import { PostalAddress } from "./PostalAddress";
6
5
  import { QuoteRequestDeclaration } from "./QuoteRequestDeclaration";
@@ -137,7 +136,11 @@ export interface QuoteRequestForm {
137
136
  declaration: {
138
137
  id?: number;
139
138
  had_incident?: boolean;
140
- incidents?: QuoteRequestIncident[];
139
+ incidents: {
140
+ year?: string;
141
+ month?: string;
142
+ description?: string;
143
+ }[];
141
144
  has_demerit_points?: boolean;
142
145
  demerit_points?: string;
143
146
  has_lost_licence?: boolean;
@@ -1,3 +1,5 @@
1
+ import { VehicleType } from "../../api";
2
+
1
3
  export interface QuoteRequestOptions {
2
4
  club_options: SimpleOption[];
3
5
  driver_licence_options: SimpleOption[];
@@ -8,7 +10,11 @@ export interface QuoteRequestOptions {
8
10
  referrer_category_options: SimpleOption[];
9
11
  relationship_options: SimpleOption[];
10
12
  storage_location_options: SimpleOption[];
11
- vehicle_usage_options: SimpleOption[];
13
+ vehicle_usage_options: {
14
+ id: number;
15
+ name: string;
16
+ vehicle_type: VehicleType;
17
+ }[];
12
18
  policy_benefit_template_options: SimpleOption[];
13
19
  referrer_options: {
14
20
  id: number;