wenmar-open 0.2.0 → 0.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 +163 -9
- package/dist/client.d.ts +153 -2
- package/dist/client.js +233 -1
- package/dist/errors.d.ts +9 -2
- package/dist/index.d.ts +2 -2
- package/dist/offline/client.d.ts +123 -3
- package/dist/offline/client.js +241 -4
- package/dist/offline/index.d.ts +1 -1
- package/dist/offline/node.d.ts +6 -0
- package/dist/offline/node.js +27 -0
- package/dist/offline/store.d.ts +6 -0
- package/dist/offline/wasm-inline.js +1 -1
- package/dist/offline/wenmar_open.wasm +0 -0
- package/dist/schema.d.ts +5151 -470
- package/dist/types.d.ts +124 -0
- package/package.json +10 -3
package/dist/types.d.ts
CHANGED
|
@@ -13,10 +13,121 @@ export type Selection = Schemas["Selection"];
|
|
|
13
13
|
/** One vehicle of the catalog. */
|
|
14
14
|
export type Entry = Schemas["Entry"];
|
|
15
15
|
export type Make = Schemas["Make"];
|
|
16
|
+
/** One make with the maker's own links. */
|
|
17
|
+
export type MakeDetail = Schemas["MakeDetail"];
|
|
16
18
|
export type Model = Schemas["Model"];
|
|
17
19
|
export type Submodel = Schemas["Submodel"];
|
|
18
20
|
export type EngineOption = Schemas["EngineOption"];
|
|
19
21
|
export type Meta = Schemas["MetaResponse"];
|
|
22
|
+
/** Recalls that may apply to one model year. Never a lookup by VIN. */
|
|
23
|
+
export type VehicleRecalls = Schemas["VehicleRecalls"];
|
|
24
|
+
/** Recalls that may apply to the model year a VIN decodes to. */
|
|
25
|
+
export type VinRecalls = Schemas["VinRecalls"];
|
|
26
|
+
/** One recall campaign with every vehicle it lists. */
|
|
27
|
+
export type RecallCampaign = Schemas["RecallCampaign"];
|
|
28
|
+
/** The manufacturer's newest report of a campaign's remedy progress: totals for the whole campaign and a named period, never for one vehicle. */
|
|
29
|
+
export type RecallCompletion = Schemas["RecallCompletion"];
|
|
30
|
+
/** One page of recall campaigns, newest first. */
|
|
31
|
+
export type RecallList = Schemas["RecallList"];
|
|
32
|
+
/** One recall campaign in a list. */
|
|
33
|
+
export type Recall = Schemas["Recall"];
|
|
34
|
+
/** Where one vehicle can be checked for recalls by VIN. */
|
|
35
|
+
export type RecallLookup = Schemas["RecallLookup"];
|
|
36
|
+
/** Manufacturer communications that list one model year, one page. */
|
|
37
|
+
export type VehicleBulletins = Schemas["VehicleBulletins"];
|
|
38
|
+
/** Manufacturer communications for the model year a VIN decodes to. */
|
|
39
|
+
export type VinBulletins = Schemas["VinBulletins"];
|
|
40
|
+
/** One manufacturer communication with every vehicle it lists. */
|
|
41
|
+
export type BulletinDetail = Schemas["BulletinDetail"];
|
|
42
|
+
/** One page of manufacturer communications, newest first. */
|
|
43
|
+
export type BulletinList = Schemas["BulletinList"];
|
|
44
|
+
/** One manufacturer communication in a list. */
|
|
45
|
+
export type Bulletin = Schemas["Bulletin"];
|
|
46
|
+
/** A model year's bulletins counted by type, component, code and topic. */
|
|
47
|
+
export type BulletinCounts = Schemas["BulletinCounts"];
|
|
48
|
+
/** Where NHTSA's copy of a bulletin's document is expected to be. */
|
|
49
|
+
export type BulletinDocument = Schemas["BulletinDocument"];
|
|
50
|
+
/** Fuel consumption ratings of one model year, from EPA and Natural Resources Canada. */
|
|
51
|
+
export type VehicleFuel = Schemas["VehicleFuel"];
|
|
52
|
+
/** Fuel consumption ratings for the vehicle a VIN decodes to. */
|
|
53
|
+
export type VinFuel = Schemas["VinFuel"];
|
|
54
|
+
/** One rating. `confidence` says how far it was matched: `model`, `engine` or `submodel`. */
|
|
55
|
+
export type FuelRating = Schemas["FuelRating"];
|
|
56
|
+
/** Specifications of one model year from EPA's files. */
|
|
57
|
+
export type VehicleSpecs = Schemas["VehicleSpecs"];
|
|
58
|
+
/** Specifications for the vehicle a VIN decodes to. */
|
|
59
|
+
export type VinSpecs = Schemas["VinSpecs"];
|
|
60
|
+
/** The specifications that come with one EPA rating. */
|
|
61
|
+
export type Spec = Schemas["Spec"];
|
|
62
|
+
/** The fluids of one model year: EPA's oil grade, and the records read by hand. */
|
|
63
|
+
export type VehicleFluids = Schemas["VehicleFluids"];
|
|
64
|
+
/** The fluids for the vehicle a VIN decodes to. */
|
|
65
|
+
export type VinFluids = Schemas["VinFluids"];
|
|
66
|
+
/** The oil grade a maker certified an engine with, per EPA. Not from the owner's manual. */
|
|
67
|
+
export type EngineOil = Schemas["EngineOil"];
|
|
68
|
+
/** One fluid a person read from the maker's own document, with its source and the day it was checked. */
|
|
69
|
+
export type FluidRecord = Schemas["FluidRecord"];
|
|
70
|
+
/** Every original-equipment tire fitment on record for one model year. */
|
|
71
|
+
export type VehicleTires = Schemas["VehicleTires"];
|
|
72
|
+
/** The tire fitments of the model year a VIN decodes to. */
|
|
73
|
+
export type VinTires = Schemas["VinTires"];
|
|
74
|
+
/** One tire size the maker fitted, with the trims it covers, pressures and wheel nut torque. */
|
|
75
|
+
export type TireFitment = Schemas["TireFitment"];
|
|
76
|
+
/** What a parts counter asks for about one vehicle, each line with its source. */
|
|
77
|
+
export type PartsCard = Schemas["PartsCard"];
|
|
78
|
+
/** One line of a parts-ordering card. */
|
|
79
|
+
export type PartsCardLine = Schemas["PartsCardLine"];
|
|
80
|
+
/**
|
|
81
|
+
* Everything held for one model year. A block the server has no data for is
|
|
82
|
+
* `null`; `recalls` counts campaigns that may apply, never a lookup by VIN.
|
|
83
|
+
*/
|
|
84
|
+
export type Overview = Schemas["Overview"];
|
|
85
|
+
/** The recalls of a model year, in brief. */
|
|
86
|
+
export type OverviewRecalls = Schemas["OverviewRecalls"];
|
|
87
|
+
/** The bulletins of a model year, in brief. */
|
|
88
|
+
export type OverviewBulletins = Schemas["OverviewBulletins"];
|
|
89
|
+
/** How many recall campaigns list a model year, for each country. */
|
|
90
|
+
export type RecallCount = Schemas["RecallCount"];
|
|
91
|
+
/** Every model year of one model, newest first. */
|
|
92
|
+
export type ModelYears = Schemas["ModelYears"];
|
|
93
|
+
/** Campaigns reported on or after a day, each with the vehicles it lists. */
|
|
94
|
+
export type RecentRecalls = Schemas["RecentRecalls"];
|
|
95
|
+
/** What a batch decode says of recalls when `include: "recalls"` is asked. */
|
|
96
|
+
export type VinRecallCount = Schemas["VinRecallCount"];
|
|
97
|
+
/** One NHTSA defect investigation. Not a finding that a defect exists. */
|
|
98
|
+
export type Investigation = Schemas["Investigation"];
|
|
99
|
+
/** NHTSA investigations that list one model year. */
|
|
100
|
+
export type VehicleInvestigations = Schemas["VehicleInvestigations"];
|
|
101
|
+
/** The NHTSA investigations that led to one recall campaign. */
|
|
102
|
+
export type RecallInvestigations = Schemas["RecallInvestigations"];
|
|
103
|
+
/** NHTSA's crash test ratings for one model year. */
|
|
104
|
+
export type VehicleSafety = Schemas["VehicleSafety"];
|
|
105
|
+
/** One rating: the vehicle NHTSA tested, its stars and its safety features. */
|
|
106
|
+
export type SafetyRating = Schemas["SafetyRating"];
|
|
107
|
+
/** What owners reported to NHTSA about one model year, as counts. Reports, not verified defects. */
|
|
108
|
+
export type VehicleComplaints = Schemas["VehicleComplaints"];
|
|
109
|
+
/** One generic trouble code, described in this project's own words. */
|
|
110
|
+
export type Code = Schemas["Code"];
|
|
111
|
+
/** A trouble code in a list. */
|
|
112
|
+
export type CodeLink = Schemas["CodeLink"];
|
|
113
|
+
/** One page of the described trouble codes. */
|
|
114
|
+
export type CodeList = Schemas["CodeList"];
|
|
115
|
+
/** A trouble code on one model year, with its bulletins and recalls. */
|
|
116
|
+
export type VehicleCode = Schemas["VehicleCode"];
|
|
117
|
+
/** The repair jobs a labour estimate can be about. */
|
|
118
|
+
export type JobList = Schemas["JobList"];
|
|
119
|
+
/** One repair job: what it covers and what it typically takes by class. */
|
|
120
|
+
export type JobDetail = Schemas["JobDetail"];
|
|
121
|
+
/** One labour estimate: hours, the scope it is for and its basis. */
|
|
122
|
+
export type LaborFigure = Schemas["LaborFigure"];
|
|
123
|
+
/** Labour estimates for one model year. An estimate, not a quote. */
|
|
124
|
+
export type VehicleLabor = Schemas["VehicleLabor"];
|
|
125
|
+
/** Labour estimates for the vehicle a VIN decodes to. */
|
|
126
|
+
export type VinLabor = Schemas["VinLabor"];
|
|
127
|
+
/** The deductions from one regular pay in Ontario by CRA's T4127 formulas. An estimate: the employer remains liable. */
|
|
128
|
+
export type PayrollDeductions = Schemas["PayrollDeductions"];
|
|
129
|
+
/** One T4127 factor used, with its value and meaning. */
|
|
130
|
+
export type PayrollFactor = Schemas["PayrollFactor"];
|
|
20
131
|
/** The body of every error the API sends. */
|
|
21
132
|
export type ErrorBody = Schemas["ErrorBody"];
|
|
22
133
|
/** One answer of a batch: a decode, or the error for that VIN. */
|
|
@@ -28,4 +139,17 @@ export type ModelsQuery = Query<"models">;
|
|
|
28
139
|
export type SubmodelsQuery = Query<"submodels">;
|
|
29
140
|
export type EnginesQuery = Query<"engines">;
|
|
30
141
|
export type SearchQuery = Query<"search">;
|
|
142
|
+
export type VehicleRecallsQuery = Query<"vehicle_recalls">;
|
|
143
|
+
export type VinRecallsQuery = Query<"vin_recalls">;
|
|
144
|
+
export type VehicleFuelQuery = Query<"vehicle_fuel">;
|
|
145
|
+
export type VinFuelQuery = Query<"vin_fuel">;
|
|
146
|
+
export type VinYearQuery = Query<"vin_specs">;
|
|
147
|
+
export type RecallSearchQuery = Query<"recall_search">;
|
|
148
|
+
export type BulletinFilterQuery = Query<"vehicle_bulletins">;
|
|
149
|
+
export type VinBulletinsQuery = Query<"vin_bulletins">;
|
|
150
|
+
export type BulletinSearchQuery = Query<"bulletin_search">;
|
|
151
|
+
export type CodeSearchQuery = Query<"code_search">;
|
|
152
|
+
export type PayrollDeductionsQuery = Query<"payroll_deductions">;
|
|
153
|
+
export type VehicleInvestigationsQuery = Query<"vehicle_investigations">;
|
|
154
|
+
export type RecentRecallsQuery = Query<"recent_recalls">;
|
|
31
155
|
export {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wenmar-open",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "VIN decoding
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"description": "VIN decoding, a year, make, model, trim and engine catalog, recalls, service bulletins, trouble codes and labour estimates: a typed client for the Wenmar Open API, and an offline mode that answers from a data file with no network. No API key.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vin",
|
|
7
7
|
"vin-decoder",
|
|
@@ -9,6 +9,9 @@
|
|
|
9
9
|
"automotive",
|
|
10
10
|
"nhtsa",
|
|
11
11
|
"vpic",
|
|
12
|
+
"recalls",
|
|
13
|
+
"tsb",
|
|
14
|
+
"obd2",
|
|
12
15
|
"offline",
|
|
13
16
|
"webassembly"
|
|
14
17
|
],
|
|
@@ -47,11 +50,15 @@
|
|
|
47
50
|
"node": ">=20"
|
|
48
51
|
},
|
|
49
52
|
"peerDependencies": {
|
|
50
|
-
"wenmar-open-data": "^3.0.0"
|
|
53
|
+
"wenmar-open-data": "^3.0.0",
|
|
54
|
+
"wenmar-open-data-shop": "^1.0.0"
|
|
51
55
|
},
|
|
52
56
|
"peerDependenciesMeta": {
|
|
53
57
|
"wenmar-open-data": {
|
|
54
58
|
"optional": true
|
|
59
|
+
},
|
|
60
|
+
"wenmar-open-data-shop": {
|
|
61
|
+
"optional": true
|
|
55
62
|
}
|
|
56
63
|
},
|
|
57
64
|
"scripts": {
|