@star-insure/sdk 0.4.0 → 0.4.1

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.
@@ -0,0 +1,120 @@
1
+ export interface MotorwebVehicleResponse {
2
+ id: number;
3
+ created_at: string;
4
+ updated_at: string;
5
+ check_type: 'bvi' | 'motorcheck' | 'valuation';
6
+ plate_or_vin: string;
7
+ data: MotorwebVehicle;
8
+ }
9
+ export interface MotorwebVehicle {
10
+ '@attributes': Attributes;
11
+ 'vehicle': BviCheck | MotorvehicleCheck;
12
+ }
13
+ interface Attributes {
14
+ 'version'?: string;
15
+ }
16
+ interface FirstRegistrationDateOverseas {
17
+ 'month'?: string;
18
+ 'year'?: string;
19
+ 'description'?: string;
20
+ }
21
+ interface Registration {
22
+ 'previous-country-of-registration'?: string;
23
+ 'first-registration-date-in-new-zealand'?: string;
24
+ 'registration-status'?: string;
25
+ 'cause-of-last-registration'?: string;
26
+ 'registered-overseas'?: string;
27
+ 'first-registration-date-overseas'?: FirstRegistrationDateOverseas;
28
+ 'last-registration-date'?: string;
29
+ }
30
+ interface Licence {
31
+ 'expiry-date'?: string;
32
+ 'licence-type'?: string;
33
+ 'issue-date'?: string;
34
+ 'issue-time'?: string;
35
+ 'continuous'?: string;
36
+ }
37
+ interface Wof {
38
+ 'last-inspection-date'?: string;
39
+ 'last-inspection-result'?: string;
40
+ 'expiry-date'?: string;
41
+ 'is-subject-to'?: string;
42
+ }
43
+ interface Cof {
44
+ 'is-subject-to'?: string;
45
+ }
46
+ interface Attributes2 {
47
+ 'data-retrieved'?: string;
48
+ }
49
+ interface Ruc {
50
+ '@attributes': Attributes2;
51
+ 'is-subject-to'?: string;
52
+ }
53
+ interface Attributes3 {
54
+ 'current'?: string;
55
+ 'past-plate'?: string;
56
+ }
57
+ interface Plate {
58
+ '@attributes'?: Attributes3;
59
+ 'plate-number'?: string;
60
+ 'plate-type'?: string;
61
+ 'effective-date'?: string;
62
+ }
63
+ interface Attributes4 {
64
+ 'latest'?: string;
65
+ }
66
+ interface OdometerReading {
67
+ '@attributes'?: Attributes4;
68
+ 'reading'?: string;
69
+ 'reading-date'?: string;
70
+ 'reading-unit'?: string;
71
+ 'source'?: string;
72
+ }
73
+ interface Transmission {
74
+ 'type'?: string;
75
+ }
76
+ interface Attributes5 {
77
+ 'current': string;
78
+ 'owner-number': string;
79
+ 'suppressed-reason': string;
80
+ }
81
+ interface Owner {
82
+ '@attributes': Attributes5;
83
+ 'ownership-date': string;
84
+ 'owner-status': string;
85
+ }
86
+ interface BviCheck {
87
+ 'registration'?: Registration;
88
+ 'licence'?: Licence;
89
+ 'wof'?: Wof;
90
+ 'cof'?: Cof;
91
+ 'ruc'?: Ruc;
92
+ 'year-of-manufacture'?: string;
93
+ 'make'?: string;
94
+ 'model'?: string;
95
+ 'mvr-model'?: string;
96
+ 'body-style'?: string;
97
+ 'vehicle-type'?: string;
98
+ 'vin'?: string;
99
+ 'chassis'?: string;
100
+ 'engine-number'?: string;
101
+ 'main-colour'?: string;
102
+ 'cc-rating'?: string;
103
+ 'country-of-origin'?: string;
104
+ 'assembly-type'?: string;
105
+ 'gross-vehicle-mass'?: string;
106
+ 'number-of-seats'?: string;
107
+ 'fuel-type'?: string;
108
+ 'vehicle-usage'?: string;
109
+ 'odometer-unit'?: string;
110
+ 'plate'?: Plate;
111
+ 'odometer-reading'?: OdometerReading;
112
+ 'transmission'?: Transmission;
113
+ 'model-code'?: string;
114
+ 'model-variant'?: string;
115
+ }
116
+ interface MotorvehicleCheck extends BviCheck {
117
+ 'number-of-owners'?: string;
118
+ owner?: Owner;
119
+ }
120
+ export {};
@@ -18,3 +18,4 @@ export * from './QuoteRequestForm';
18
18
  export * from './PolicyBenefit';
19
19
  export * from './InformationRequest';
20
20
  export * from './EmailContentOption';
21
+ export * from './MotorwebVehicle';
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.0",
5
+ "version": "0.4.1",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
@@ -0,0 +1,137 @@
1
+ export interface MotorwebVehicleResponse {
2
+ id: number;
3
+ created_at: string;
4
+ updated_at: string;
5
+ check_type: 'bvi' | 'motorcheck' | 'valuation';
6
+ plate_or_vin: string;
7
+ data: MotorwebVehicle;
8
+ }
9
+
10
+ export interface MotorwebVehicle {
11
+ '@attributes': Attributes;
12
+ 'vehicle': BviCheck | MotorvehicleCheck;
13
+ }
14
+
15
+ interface Attributes {
16
+ 'version'?: string;
17
+ }
18
+
19
+ interface FirstRegistrationDateOverseas {
20
+ 'month'?: string;
21
+ 'year'?: string;
22
+ 'description'?: string;
23
+ }
24
+
25
+ interface Registration {
26
+ 'previous-country-of-registration'?: string;
27
+ 'first-registration-date-in-new-zealand'?: string;
28
+ 'registration-status'?: string;
29
+ 'cause-of-last-registration'?: string;
30
+ 'registered-overseas'?: string;
31
+ 'first-registration-date-overseas'?: FirstRegistrationDateOverseas;
32
+ 'last-registration-date'?: string;
33
+ }
34
+
35
+ interface Licence {
36
+ 'expiry-date'?: string;
37
+ 'licence-type'?: string;
38
+ 'issue-date'?: string;
39
+ 'issue-time'?: string;
40
+ 'continuous'?: string;
41
+ }
42
+
43
+ interface Wof {
44
+ 'last-inspection-date'?: string;
45
+ 'last-inspection-result'?: string;
46
+ 'expiry-date'?: string;
47
+ 'is-subject-to'?: string;
48
+ }
49
+
50
+ interface Cof {
51
+ 'is-subject-to'?: string;
52
+ }
53
+
54
+ interface Attributes2 {
55
+ 'data-retrieved'?: string;
56
+ }
57
+
58
+ interface Ruc {
59
+ '@attributes': Attributes2;
60
+ 'is-subject-to'?: string;
61
+ }
62
+
63
+ interface Attributes3 {
64
+ 'current'?: string;
65
+ 'past-plate'?: string;
66
+ }
67
+
68
+ interface Plate {
69
+ '@attributes'?: Attributes3;
70
+ 'plate-number'?: string;
71
+ 'plate-type'?: string;
72
+ 'effective-date'?: string;
73
+ }
74
+
75
+ interface Attributes4 {
76
+ 'latest'?: string;
77
+ }
78
+
79
+ interface OdometerReading {
80
+ '@attributes'?: Attributes4;
81
+ 'reading'?: string;
82
+ 'reading-date'?: string;
83
+ 'reading-unit'?: string;
84
+ 'source'?: string;
85
+ }
86
+
87
+ interface Transmission {
88
+ 'type'?: string;
89
+ }
90
+
91
+ interface Attributes5 {
92
+ 'current': string;
93
+ 'owner-number': string;
94
+ 'suppressed-reason': string;
95
+ }
96
+
97
+ interface Owner {
98
+ '@attributes': Attributes5;
99
+ 'ownership-date': string;
100
+ 'owner-status': string;
101
+ }
102
+
103
+ interface BviCheck {
104
+ 'registration'?: Registration;
105
+ 'licence'?: Licence;
106
+ 'wof'?: Wof;
107
+ 'cof'?: Cof;
108
+ 'ruc'?: Ruc;
109
+ 'year-of-manufacture'?: string;
110
+ 'make'?: string;
111
+ 'model'?: string;
112
+ 'mvr-model'?: string;
113
+ 'body-style'?: string;
114
+ 'vehicle-type'?: string;
115
+ 'vin'?: string;
116
+ 'chassis'?: string;
117
+ 'engine-number'?: string;
118
+ 'main-colour'?: string;
119
+ 'cc-rating'?: string;
120
+ 'country-of-origin'?: string;
121
+ 'assembly-type'?: string;
122
+ 'gross-vehicle-mass'?: string;
123
+ 'number-of-seats'?: string;
124
+ 'fuel-type'?: string;
125
+ 'vehicle-usage'?: string;
126
+ 'odometer-unit'?: string;
127
+ 'plate'?: Plate;
128
+ 'odometer-reading'?: OdometerReading;
129
+ 'transmission'?: Transmission;
130
+ 'model-code'?: string;
131
+ 'model-variant'?: string;
132
+ }
133
+
134
+ interface MotorvehicleCheck extends BviCheck {
135
+ 'number-of-owners'?: string;
136
+ owner?: Owner;
137
+ }
@@ -18,3 +18,4 @@ export * from './QuoteRequestForm';
18
18
  export * from './PolicyBenefit';
19
19
  export * from './InformationRequest';
20
20
  export * from './EmailContentOption';
21
+ export * from './MotorwebVehicle';