@star-insure/sdk 3.2.14 → 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";
@@ -23,6 +23,13 @@ export interface QuoteRequestUserGroup {
23
23
  id: number;
24
24
  name: string;
25
25
  }
26
+ export interface Automatch {
27
+ client_number: string;
28
+ id: number;
29
+ matched_by: QuoteRequestAutomatch;
30
+ matched_by_value: string;
31
+ quote_request_id: string;
32
+ }
26
33
  export interface QuoteRequest {
27
34
  id?: string;
28
35
  status?: QuoteRequestStatus;
@@ -46,7 +53,7 @@ export interface QuoteRequest {
46
53
  length_of_insurance?: string;
47
54
  theme?: string;
48
55
  notes?: string;
49
- purchase_option_summaries?: QuoteRequestPurchaseOptionSummary[];
56
+ purchase_options_summary?: string;
50
57
  secondary_first_name?: string;
51
58
  secondary_last_name?: string;
52
59
  secondary_licence?: string;
@@ -97,4 +104,5 @@ export interface QuoteRequest {
97
104
  blacklist_entry?: BlacklistEntry;
98
105
  is_follow_up_required: boolean;
99
106
  payments?: Payment[];
107
+ automatches?: Automatch[];
100
108
  }
@@ -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.14",
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": {
@@ -56,7 +57,7 @@
56
57
  "@types/react-dom": "^18.0.6",
57
58
  "@types/uuid": "^8.3.4",
58
59
  "husky": "^8.0.1",
59
- "np": "^7.6.1",
60
+ "np": "^9.2.0",
60
61
  "react": "^18.2.0",
61
62
  "size-limit": "^7.0.8",
62
63
  "tsdx": "^0.14.1",
@@ -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";
@@ -29,6 +29,14 @@ export interface QuoteRequestUserGroup {
29
29
  name: string;
30
30
  }
31
31
 
32
+ export interface Automatch {
33
+ client_number: string;
34
+ id: number;
35
+ matched_by: QuoteRequestAutomatch;
36
+ matched_by_value: string;
37
+ quote_request_id: string;
38
+ }
39
+
32
40
  export interface QuoteRequest {
33
41
  id?: string;
34
42
  status?: QuoteRequestStatus;
@@ -52,7 +60,7 @@ export interface QuoteRequest {
52
60
  length_of_insurance?: string;
53
61
  theme?: string;
54
62
  notes?: string;
55
- purchase_option_summaries?: QuoteRequestPurchaseOptionSummary[];
63
+ purchase_options_summary?: string;
56
64
  secondary_first_name?: string;
57
65
  secondary_last_name?: string;
58
66
  secondary_licence?: string;
@@ -109,4 +117,5 @@ export interface QuoteRequest {
109
117
  blacklist_entry?: BlacklistEntry;
110
118
  is_follow_up_required: boolean;
111
119
  payments?: Payment[];
120
+ automatches?: Automatch[];
112
121
  }
@@ -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
- }