@star-insure/sdk 3.2.16 → 3.3.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.
package/README.md CHANGED
@@ -19,7 +19,7 @@ npm run test
19
19
  ## Publishing to NPM
20
20
  Suggest that you use [np](https://github.com/sindresorhus/np) for publishing.
21
21
 
22
- From the command line just run:
22
+ From the command line just run (you'll need Node version 18+ running):
23
23
  ```
24
- np
24
+ npm run publish
25
25
  ```
@@ -6,7 +6,7 @@ import { Lead } from "./Lead";
6
6
  import { PostalAddress } from "./PostalAddress";
7
7
  import { QuoteRequestDeclaration } from "./QuoteRequestDeclaration";
8
8
  import { QuoteRequestLog } from "./QuoteRequestLog";
9
- import { QuoteRequestPurchaseOption, QuoteRequestPurchaseOptionSummary } from "./QuoteRequestPurchaseOption";
9
+ import { QuoteRequestPurchaseOption } from "./QuoteRequestPurchaseOption";
10
10
  import { QuoteRequestReferrer } from "./QuoteRequestReferrer";
11
11
  import { QuoteRequestReferrerCategory } from "./QuoteRequestReferrerCategory";
12
12
  import { QuoteRequestVehicle } from "./QuoteRequestVehicle";
@@ -53,7 +53,7 @@ export interface QuoteRequest {
53
53
  length_of_insurance?: string;
54
54
  theme?: string;
55
55
  notes?: string;
56
- purchase_option_summaries?: QuoteRequestPurchaseOptionSummary[];
56
+ purchase_options_summary?: string;
57
57
  secondary_first_name?: string;
58
58
  secondary_last_name?: string;
59
59
  secondary_licence?: string;
@@ -35,8 +35,3 @@ export interface LevelOfInsurance {
35
35
  id: number;
36
36
  name: string;
37
37
  }
38
- export interface QuoteRequestPurchaseOptionSummary {
39
- id?: number;
40
- description?: string;
41
- premium?: number;
42
- }
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": "3.2.16",
5
+ "version": "3.3.0",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
@@ -25,7 +25,8 @@
25
25
  "lint": "tsdx lint",
26
26
  "prepare": "tsdx build",
27
27
  "size": "size-limit",
28
- "analyze": "size-limit --why"
28
+ "analyze": "size-limit --why",
29
+ "publish": "np"
29
30
  },
30
31
  "husky": {
31
32
  "hooks": {
@@ -6,7 +6,7 @@ import { Lead } from "./Lead";
6
6
  import { PostalAddress } from "./PostalAddress";
7
7
  import { QuoteRequestDeclaration } from "./QuoteRequestDeclaration";
8
8
  import { QuoteRequestLog } from "./QuoteRequestLog";
9
- import { QuoteRequestPurchaseOption, QuoteRequestPurchaseOptionSummary } from "./QuoteRequestPurchaseOption";
9
+ import { QuoteRequestPurchaseOption } from "./QuoteRequestPurchaseOption";
10
10
  import { QuoteRequestReferrer } from "./QuoteRequestReferrer";
11
11
  import { QuoteRequestReferrerCategory } from "./QuoteRequestReferrerCategory";
12
12
  import { QuoteRequestVehicle } from "./QuoteRequestVehicle";
@@ -60,7 +60,7 @@ export interface QuoteRequest {
60
60
  length_of_insurance?: string;
61
61
  theme?: string;
62
62
  notes?: string;
63
- purchase_option_summaries?: QuoteRequestPurchaseOptionSummary[];
63
+ purchase_options_summary?: string;
64
64
  secondary_first_name?: string;
65
65
  secondary_last_name?: string;
66
66
  secondary_licence?: string;
@@ -42,9 +42,3 @@ export interface LevelOfInsurance {
42
42
  id: number;
43
43
  name: string;
44
44
  }
45
-
46
- export interface QuoteRequestPurchaseOptionSummary {
47
- id?: number;
48
- description?: string;
49
- premium?: number;
50
- }