tesla-inventory 1.8.16 → 1.8.17
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/codes.json +614 -2
- package/package.json +3 -2
- package/scripts/codes.js +12 -36
package/codes.json
CHANGED
|
@@ -1,19 +1,631 @@
|
|
|
1
1
|
{
|
|
2
|
-
"": "",
|
|
3
2
|
"ACL1": "Ludicrous Mode",
|
|
4
3
|
"AD02": "NEMA 14-50",
|
|
5
4
|
"AD04": "European 3-Phase",
|
|
6
5
|
"AD05": "European 3-Phase, IT",
|
|
7
6
|
"AD06": "Schuko (1 phase, 230V 13A)",
|
|
8
7
|
"AD07": "Red IEC309 (3 phase, 400V 16A)",
|
|
8
|
+
"AD08": "Blue Charging Adapter",
|
|
9
|
+
"AD09": "Adapter, Swiss (1 phase, 10A)",
|
|
10
|
+
"AD10": "Adapter, Denmark (1 phase, 13A)",
|
|
11
|
+
"AD11": "Adapter, Italy (1 phase, 13A)",
|
|
12
|
+
"AD15": "Adapter",
|
|
13
|
+
"ADPX2": "Type 2 Public Charging Connector",
|
|
14
|
+
"ADX4": "No European 3-Phase",
|
|
15
|
+
"ADX5": "European 3-Phase, IT",
|
|
16
|
+
"ADX6": "No - Adapter, Schuko (1 phase, 13A)",
|
|
17
|
+
"ADX7": "No - 3-ph Red IEC309 (3 phase, 16A)",
|
|
18
|
+
"ADX8": "Blue IEC309 (1 phase, 230V 32A)",
|
|
19
|
+
"ADX9": "No - Adapter, Swiss (1 phase, 10A)",
|
|
20
|
+
"AF00": "No HEPA Filter",
|
|
21
|
+
"AF02": "HEPA Filter",
|
|
22
|
+
"AH00": "No Accessory Hitch",
|
|
23
|
+
"APB1": "Autopilot with convenience features",
|
|
24
|
+
"APBS": "Autopilot",
|
|
25
|
+
"APF0": "Autopilot Firmware 2.0 Base",
|
|
26
|
+
"APF1": "Autopilot Firmware 2.0 Enhanced",
|
|
27
|
+
"APF2": "Full Self-Driving Hardware (Activated)",
|
|
28
|
+
"APFB": "Full Self-Driving Hardware",
|
|
29
|
+
"APH1": "Hardware 1.0",
|
|
30
|
+
"APH2": "Hardware 2.0",
|
|
31
|
+
"APH3": "Hardware 2.5",
|
|
32
|
+
"APH4": "Hardware 3.0",
|
|
33
|
+
"APPB": "Enhanced Autopilot",
|
|
34
|
+
"APPF": "Full Self-Driving Capability",
|
|
35
|
+
"AU00": "No Audio Package",
|
|
36
|
+
"AU01": "Ultra High Fidelity Sound",
|
|
37
|
+
"AU3D": "Sound Studio Package",
|
|
38
|
+
"AU3P": "Sound Studio Package",
|
|
39
|
+
"AUF1": "Premium Speakers Enabled",
|
|
40
|
+
"AUF2": "Premium Speakers Disabled",
|
|
41
|
+
"BC00": "MS Q4 Plaid",
|
|
42
|
+
"BC0B": "Black Brake Calipers",
|
|
43
|
+
"BC0R": "Red Brake Calipers",
|
|
44
|
+
"BC3B": "Black Brake Calipers",
|
|
45
|
+
"BC3R": "Black Brake Calipers, Red brake calipers",
|
|
46
|
+
"BCMB": "Black Brake Calipers, Mando Brakes",
|
|
47
|
+
"BCYR": "Performance Brakes",
|
|
48
|
+
"BG30": "No Badge",
|
|
49
|
+
"BG31": "AWD Badge",
|
|
50
|
+
"BG32": "Performance AWD Badge",
|
|
51
|
+
"BP00": "No Ludicrous",
|
|
52
|
+
"BP01": "Ludicrous Speed Upgrade",
|
|
53
|
+
"BP02": "Uncorked Acceleration",
|
|
54
|
+
"BR00": "No Battery Firmware Limit",
|
|
55
|
+
"BR03": "Battery Firmware Limit (60kWh)",
|
|
56
|
+
"BR05": "Battery Firmware Limit (75kWh)",
|
|
57
|
+
"BS00": "Blind Spot Sensor Package",
|
|
58
|
+
"BS01": "Special Production Flag",
|
|
59
|
+
"BT35": "50 kWh (Model 3/Y) Pre 2021 Panasonic cells",
|
|
60
|
+
"BT36": "62.5 kWh (Model 3/Y) Pre 2021 Panasonic cells",
|
|
61
|
+
"BT37": "75 kWh (Model 3/Y) Pre 2021 Panasonic cells",
|
|
62
|
+
"BT38": "74 kWh (Model 3/Y) LG cells",
|
|
63
|
+
"BT40": "40 kWh",
|
|
64
|
+
"BT41": "55? kWh 2021 Panasonic?",
|
|
65
|
+
"BT42": "82 kWh (Model 3/Y) 2021 Panasonic",
|
|
66
|
+
"BT43": "79 kWh (Model 3/Y) 2021 LG NCA",
|
|
67
|
+
"BT60": "60 kWh",
|
|
68
|
+
"BT70": "70 kWh",
|
|
69
|
+
"BT85": "85 kWh",
|
|
70
|
+
"BTF0": "55 kWh (Model 3) 2020 CATL Prismatic",
|
|
71
|
+
"BTF1": "60 kWh (Model 3) 2021 CATL Prismatic",
|
|
72
|
+
"BTX4": "90 kWh",
|
|
73
|
+
"BTX5": "75 kWh",
|
|
74
|
+
"BTX6": "100 kWh",
|
|
75
|
+
"BTX7": "75 kWh",
|
|
76
|
+
"BTX8": "75 kWh",
|
|
77
|
+
"BTX9": "100 kWh Battery Pack with Weight Reduction",
|
|
78
|
+
"BTXA": "18650J2 Battery Cell",
|
|
79
|
+
"BTXB": "99kWh 18650 Plaid <em>E5 or E6</em> vin battery",
|
|
80
|
+
"BY00": "Model Y",
|
|
81
|
+
"BY01": "Model Y",
|
|
82
|
+
"CC01": "Five Seat Interior",
|
|
83
|
+
"CC02": "Six Seat Interior",
|
|
84
|
+
"CC03": "Seven Seat Interior",
|
|
85
|
+
"CC04": "Seven Seat Interior",
|
|
86
|
+
"CC12": "Six Seat Interior with Center Console",
|
|
87
|
+
"CDM0": "No CHAdeMO Charging Adaptor",
|
|
88
|
+
"CF00": "72amp High Power Charger",
|
|
89
|
+
"CF01": "48amp charger",
|
|
90
|
+
"CH00": "Standard Charger (40 Amp)",
|
|
91
|
+
"CH01": "Dual Chargers (80 Amp)",
|
|
92
|
+
"CH04": "72 Amp Charger Gen3",
|
|
93
|
+
"CH05": "48 Amp Charger",
|
|
94
|
+
"CH07": "48 Amp Charger",
|
|
95
|
+
"CH09": "Tesla Standard Charging System 72a (Model S mid2019 EU)",
|
|
96
|
+
"CH11": "Single phase 48 Amperage Combo 1",
|
|
97
|
+
"CH12": "48 Amperage Combo 1 Gen 3.5 Charger",
|
|
98
|
+
"CH14": "32 Amp Charger Hardware (RENA) with Busbar",
|
|
99
|
+
"CH15": "48 Amp Charger Hardware (REEU/REAP) with Busbar",
|
|
100
|
+
"CH16": "48 Amp Charger Hardware (RENA) with Busbar",
|
|
101
|
+
"CH17": "48 Amp 1PH&3PH,P2",
|
|
102
|
+
"COAT": "Country: Austria",
|
|
103
|
+
"COBE": "Country: Belgium",
|
|
104
|
+
"COCA": "Country: Canada",
|
|
105
|
+
"COCH": "Country: Switzerland",
|
|
106
|
+
"CODE": "Country: Germany",
|
|
107
|
+
"CODK": "Country: Denmark",
|
|
108
|
+
"COES": "Country: Spain",
|
|
109
|
+
"COFI": "Country: Finland",
|
|
110
|
+
"COFR": "Country: France",
|
|
111
|
+
"COGB": "Country: Great Britain",
|
|
112
|
+
"COHR": "Country: Croatia",
|
|
113
|
+
"COIE": "Country: Ireland",
|
|
114
|
+
"COIT": "Country: Italy",
|
|
115
|
+
"COKR": "Country: South Korea",
|
|
116
|
+
"COL0": "Signature",
|
|
117
|
+
"COL1": "Solid",
|
|
118
|
+
"COL2": "Metallic",
|
|
119
|
+
"COL3": "Tesla Multi-Coat",
|
|
120
|
+
"COLU": "Country: Luxembourg",
|
|
121
|
+
"CONL": "Country: Netherlands",
|
|
122
|
+
"CONO": "Country: Norway",
|
|
123
|
+
"COPT": "Country: Portugal",
|
|
124
|
+
"COSE": "Country: Sweden",
|
|
125
|
+
"COSG": "Country: Singapore",
|
|
126
|
+
"COUS": "Country: United States",
|
|
127
|
+
"CP00": "MX 2021",
|
|
128
|
+
"CPF0": "Standard Connectivity",
|
|
129
|
+
"CPF1": "Premium Connectivity",
|
|
130
|
+
"CPW1": "20\" Performance Wheels",
|
|
131
|
+
"CW00": "No Weather Package",
|
|
132
|
+
"CW02": "Weather Package",
|
|
133
|
+
"DA00": "No Autopilot",
|
|
134
|
+
"DA01": "Active Safety (ACC,LDW,SA)",
|
|
135
|
+
"DA02": "Autopilot Convenience Features",
|
|
136
|
+
"DCF0": "Front Console NO Drop-In Front Console",
|
|
137
|
+
"DCF2": "Front Console Inductive Phone Charger",
|
|
138
|
+
"DRLH": "Left Hand Drive",
|
|
139
|
+
"DRRH": "Right Hand Drive",
|
|
140
|
+
"DSH5": "Dashboard",
|
|
141
|
+
"DSH7": "Alcantara Dashboard Accents",
|
|
142
|
+
"DSHG": "Dash with Graphite trim",
|
|
143
|
+
"DU00": "Drive Unit - IR",
|
|
144
|
+
"DU01": "Drive Unit - Infineon",
|
|
145
|
+
"DU02": "Drive Unit - Non-performance front drive unit (raven)",
|
|
146
|
+
"DV2W": "Rear-Wheel Drive",
|
|
147
|
+
"DV4W": "All-Wheel Drive",
|
|
148
|
+
"EUSB": "Safety EU Black",
|
|
149
|
+
"FBBB": "Front Brake Brembo Black",
|
|
150
|
+
"FBBR": "Front Brake Brembo Red",
|
|
151
|
+
"FC01": "Front Console Inductive Phone Charger",
|
|
152
|
+
"FC02": "Front Console Front Console (Premium)",
|
|
153
|
+
"FC3P": "Front Console Front Console (Premium)",
|
|
154
|
+
"FCH2": "Model 3/Y late 2021",
|
|
155
|
+
"FD00": "Model 3 2021 (USA)",
|
|
156
|
+
"FD01": "Model 3/Y 2021 (China)",
|
|
157
|
+
"FD02": "Model S/X 2021 LR",
|
|
158
|
+
"FD03": "Model S/X 2021 P",
|
|
159
|
+
"FDU2": "Raven Front Drive Unit",
|
|
160
|
+
"FG00": "No Exterior Lighting Package",
|
|
161
|
+
"FG01": "Fog Lamps",
|
|
162
|
+
"FG02": "Fog Lamps",
|
|
163
|
+
"FG31": "Fog Lamps",
|
|
164
|
+
"FG3B": "Fog Lamp Cover (No Fog lamps)",
|
|
165
|
+
"FGF0": "Fog Lamps Disabled",
|
|
166
|
+
"FGF1": "Fog Lamps Enabled",
|
|
167
|
+
"FM3B": "No Performance Package",
|
|
168
|
+
"FM3P": "Performance Package",
|
|
169
|
+
"FM3S": "Semi de-rated firmware",
|
|
170
|
+
"FM3U": "Acceleration Boost",
|
|
171
|
+
"FMP6": "Performance Firmware",
|
|
172
|
+
"FR01": "Base Front Row",
|
|
173
|
+
"FR02": "Ventilated Front Seats",
|
|
174
|
+
"FR03": "FR03",
|
|
175
|
+
"FR04": "Front Row Seat",
|
|
176
|
+
"FR05": "Front Row Seat",
|
|
177
|
+
"GLCN": "Assembly",
|
|
178
|
+
"GLFR": "Assembly",
|
|
179
|
+
"GLTL": "Assembly",
|
|
180
|
+
"HC00": "No Home Charging installation",
|
|
181
|
+
"HC01": "Home Charging Installation",
|
|
182
|
+
"HL00": "Head Lamp",
|
|
183
|
+
"HL31": "Head Lamp",
|
|
184
|
+
"HL32": "M3 Matrix Headlights 2021",
|
|
185
|
+
"HM30": "Teck Package - No Homelink",
|
|
186
|
+
"HM31": "Teck Package - Homelink",
|
|
187
|
+
"HP00": "No HPWC Ordered",
|
|
188
|
+
"HP01": "HPWC Ordered",
|
|
189
|
+
"HP30": "No heat pump assembly",
|
|
190
|
+
"HP31": "Heat pump assembly",
|
|
191
|
+
"I36M": "Rear Drive Unit Inverter 600A Mosfet",
|
|
192
|
+
"I38M": "Rear Drive Unit Inverter 800A Mosfet",
|
|
193
|
+
"IBB0": "All Black Interior",
|
|
194
|
+
"IBB1": "All Black Interior",
|
|
195
|
+
"IBC00": "Carbon Fiber Décor & Black Interior",
|
|
196
|
+
"IBE00": "Wood Décor & Black Interior",
|
|
197
|
+
"IBW0": "Black and White Interior",
|
|
198
|
+
"IBW1": "Black and White Interior",
|
|
199
|
+
"IC00": "Model S/X (Since Q2 2021)",
|
|
200
|
+
"IC01": "Model X (Since Q4 2021)",
|
|
201
|
+
"IC02": "Model S/X (Since Q2 2021)",
|
|
202
|
+
"ICC00": "Carbon Fiber Décor & Cream Interior",
|
|
203
|
+
"ICW00": "Wood Décor & Cream Interior",
|
|
204
|
+
"ID00": "Model S/X (Since Q2 2021)",
|
|
205
|
+
"ID02": "All Black Premium Interior with Carbon Fiber Décor?",
|
|
206
|
+
"ID03": "Model S/X (Since Q2 2021)",
|
|
207
|
+
"ID3A": "Interior White Aluminum",
|
|
208
|
+
"ID3W": "Interior Wood Decor",
|
|
209
|
+
"IDBA": "Dark Ash Wood Decor",
|
|
210
|
+
"IDBO": "Figured Ash Wood Decor Burl Open Pore décor",
|
|
211
|
+
"IDCF": "Carbon Fiber Decor",
|
|
212
|
+
"IDHG": "IP Décor Horizontal Gloss",
|
|
213
|
+
"IDHM": "Matte Obeche Wood Decor",
|
|
214
|
+
"IDLW": "Lacewood Decor",
|
|
215
|
+
"IDOG": "Gloss Obeche Wood Decor",
|
|
216
|
+
"IDOK": "Oak Decor",
|
|
217
|
+
"IDOM": "Matte Obeche Wood Decor",
|
|
218
|
+
"IDPB": "Piano Black Decor",
|
|
219
|
+
"IL31": "Interior Ambient Lighting Interior",
|
|
220
|
+
"ILF0": "Ambient Lighting Disabled",
|
|
221
|
+
"ILF1": "Ambient Lighting Enabled",
|
|
222
|
+
"IN3BB": "All Black Partial Premium Interior",
|
|
223
|
+
"IN3BW": "Black and White Interior",
|
|
224
|
+
"IN3PB": "All Black Premium Interior",
|
|
225
|
+
"IN3PW": "All White Premium Interior",
|
|
226
|
+
"INB3C": "Premium beige interior with oak wood finishes",
|
|
227
|
+
"INBBW": "White Interior",
|
|
228
|
+
"INBC3W": "Premium black and white interior with Carbon Fiber decor",
|
|
229
|
+
"INBFP": "Classic Black Interior",
|
|
230
|
+
"INBPP": "Black Interior",
|
|
231
|
+
"INBPW": "White Seats Interior",
|
|
232
|
+
"INBTB": "Multi-Pattern Black Interior",
|
|
233
|
+
"INFBP": "Black Premium Interior",
|
|
234
|
+
"INLPC": "Cream Interior",
|
|
235
|
+
"INLPP": "Black / Light Headliner Interior",
|
|
236
|
+
"INPB0": "All Black Interior with Wood in door panel",
|
|
237
|
+
"INPB1": "All Black Interior",
|
|
238
|
+
"INPW0": "Black and White Interior with Wood in door panel",
|
|
239
|
+
"INPW1": "Black and White Interior",
|
|
240
|
+
"INWPT": "Tan Interior",
|
|
241
|
+
"INYPB": "All Black Premium Interior",
|
|
242
|
+
"INYPW": "Black and White Premium Interior",
|
|
243
|
+
"IPB0": "Black Interior",
|
|
244
|
+
"IPB1": "Black Interior",
|
|
245
|
+
"IPW0": "White Interior",
|
|
246
|
+
"IPW1": "white Interior",
|
|
247
|
+
"IVBPP": "All Black Interior",
|
|
248
|
+
"IVBSW": "Ultra White Interior",
|
|
249
|
+
"IVBTB": "All Black Interior",
|
|
250
|
+
"IVLPC": "Vegan Cream Interior",
|
|
251
|
+
"IWC00": "Carbon Fiber Décor & Black and White Interior",
|
|
252
|
+
"IWW00": "Wood Décor & Black and White Interior",
|
|
253
|
+
"IX00": "No Extended Nappa Leather Trim",
|
|
254
|
+
"IX01": "Extended Nappa Leather Trim",
|
|
255
|
+
"LLP1": "License Plate Liftgate Type NA Liftgate",
|
|
256
|
+
"LLP2": "License Plate Liftgate Type EU Liftgate",
|
|
257
|
+
"LP00": "Lighting Package",
|
|
258
|
+
"LP01": "Lighting Package",
|
|
259
|
+
"LS01": "Latest 2021 Model 3/Y Perf",
|
|
260
|
+
"LS02": "Latest 2021 Model 3/Y DM",
|
|
261
|
+
"LT00": "Vegan interior",
|
|
262
|
+
"LT01": "Standard interior",
|
|
263
|
+
"LT03": "Latest 2021 Model 3/Y Interiror?",
|
|
264
|
+
"LT1B": "Lower Trim",
|
|
265
|
+
"LT3W": "Lower Trim",
|
|
266
|
+
"LT4B": "LT4B",
|
|
267
|
+
"LT4C": "LT4C",
|
|
268
|
+
"LT4W": "LT4W",
|
|
269
|
+
"LT5C": "LT5C",
|
|
270
|
+
"LT5P": "LT5P",
|
|
271
|
+
"LT5W": "Lower Trim Black PUR with White interior",
|
|
272
|
+
"LT6P": "LT6P",
|
|
273
|
+
"LT6W": "White Base Lower Trim",
|
|
274
|
+
"LTPB": "Lower Trim PUR Black",
|
|
275
|
+
"LTPW": "Lower Trim PUR White",
|
|
276
|
+
"LTSB": "Lower Trim Standard Black",
|
|
277
|
+
"LVB0": "Model 3/Y Standard+",
|
|
278
|
+
"LVB1": "Model 3/Y with Premium Interior",
|
|
279
|
+
"M301": "Generation 1 of 2022",
|
|
9
280
|
"MDL3": "Model 3",
|
|
10
281
|
"MDLS": "Model S",
|
|
11
282
|
"MDLX": "Model X",
|
|
12
283
|
"MDLY": "Model Y",
|
|
284
|
+
"ME01": "Memory Seats",
|
|
285
|
+
"ME02": "Seat Memory",
|
|
286
|
+
"MI00": "1st Generation Production",
|
|
287
|
+
"MI01": "2nd Generation Production",
|
|
288
|
+
"MI02": "3rd Generation Production",
|
|
289
|
+
"MI03": "4th Generation Production",
|
|
290
|
+
"MI04": "5th Generation Production",
|
|
291
|
+
"MI07": "8th Generation Production",
|
|
292
|
+
"MR31": "Tech Package - Mirror -YES",
|
|
13
293
|
"MS03": "Model S",
|
|
14
294
|
"MS04": "Model S",
|
|
295
|
+
"MT300": "Standard Range Rear-Wheel Drive",
|
|
296
|
+
"MT301": "Standard Range Plus Rear-Wheel Drive",
|
|
297
|
+
"MT302": "Long Range Rear-Wheel Drive",
|
|
298
|
+
"MT303": "Long Range All-Wheel Drive",
|
|
299
|
+
"MT304": "Long Range All-Wheel Drive Performance",
|
|
300
|
+
"MT305": "Mid Range Rear-Wheel Drive",
|
|
301
|
+
"MT307": "Mid Range Rear-Wheel Drive",
|
|
302
|
+
"MT308": "Standard Range Plus Rear-Wheel Drive",
|
|
303
|
+
"MT309": "Standard Range Plus Rear-Wheel Drive",
|
|
304
|
+
"MT310": "Long Range All-Wheel Drive",
|
|
305
|
+
"MT311": "Long Range All-Wheel Drive Performance",
|
|
306
|
+
"MT314": "Standard Range Plus Rear-Wheel Drive",
|
|
307
|
+
"MT315": "Long Range All-Wheel Drive",
|
|
308
|
+
"MT316": "Long Range All-Wheel Drive",
|
|
309
|
+
"MT317": "Long Range All-Wheel Drive Performance",
|
|
310
|
+
"MT320": "Standard Range Plus Rear-Wheel Drive",
|
|
311
|
+
"MT321": "Long Range All-Wheel Drive",
|
|
312
|
+
"MT322": "Standard Range Plus Rear-Wheel Drive",
|
|
313
|
+
"MT323": "Long Range All-Wheel Drive",
|
|
314
|
+
"MT336": "Standard Range Plus Rear-Wheel Drive",
|
|
315
|
+
"MT337": "Standard Range Plus Rear-Wheel Drive",
|
|
316
|
+
"MTS01": "Standard Range",
|
|
317
|
+
"MTS03": "Long Range",
|
|
318
|
+
"MTS04": "Performance",
|
|
319
|
+
"MTS05": "Long Range",
|
|
320
|
+
"MTS06": "Performance",
|
|
321
|
+
"MTS07": "Long Range Plus",
|
|
322
|
+
"MTS08": "Performance",
|
|
323
|
+
"MTS09": "Plaid+",
|
|
324
|
+
"MTS10": "Long Range",
|
|
325
|
+
"MTS11": "Plaid",
|
|
326
|
+
"MTX01": "Standard Range",
|
|
327
|
+
"MTX03": "Long Range",
|
|
328
|
+
"MTX04": "Performance",
|
|
329
|
+
"MTX05": "Long Range Plus",
|
|
330
|
+
"MTX06": "Performance",
|
|
331
|
+
"MTX07": "Long Range Plus",
|
|
332
|
+
"MTX08": "Performance",
|
|
333
|
+
"MTX10": "Long Range",
|
|
334
|
+
"MTX11": "Plaid",
|
|
335
|
+
"MTY01": "Standard Range Rear-Wheel Drive",
|
|
336
|
+
"MTY02": "Long Range Rear-Wheel Drive",
|
|
337
|
+
"MTY03": "Long Range All-Wheel Drive",
|
|
338
|
+
"MTY04": "Long Range All-Wheel Drive Performance",
|
|
339
|
+
"MTY05": "Long Range All-Wheel Drive Performance",
|
|
340
|
+
"MTY07": "Long Range All-Wheel Drive",
|
|
341
|
+
"MX06": "Model X 2021+",
|
|
342
|
+
"MY02": "Model Y",
|
|
343
|
+
"OSSB": "Safety CA Black",
|
|
344
|
+
"OSSW": "Safety CA White",
|
|
345
|
+
"P3WS": "Pedestrian warning speaker",
|
|
346
|
+
"P85D": "P85D",
|
|
347
|
+
"PA00": "No Paint Armor",
|
|
348
|
+
"PBCW": "Solid White Color",
|
|
349
|
+
"PBSB": "Solid Black Color",
|
|
350
|
+
"PBT85": "Performance 85kWh",
|
|
351
|
+
"PC30": "No Performance Chassis",
|
|
352
|
+
"PC31": "Performance Chassis",
|
|
353
|
+
"PF00": "No Performance Legacy Package",
|
|
354
|
+
"PF01": "Performance Legacy Package",
|
|
355
|
+
"PI00": "No Premium Interior",
|
|
356
|
+
"PI01": "Premium Upgrades Package",
|
|
357
|
+
"PK00": "Parking Sensors",
|
|
358
|
+
"PL30": "No Aluminum Pedal",
|
|
359
|
+
"PL31": "Performance Aluminum Pedals",
|
|
360
|
+
"PMAB": "Anza Brown Metallic Color",
|
|
361
|
+
"PMBL": "Obsidian Black Multi-Coat Color",
|
|
362
|
+
"PMMB": "Monterey Blue Metallic Color",
|
|
363
|
+
"PMNG": "Midnight Silver Metallic Color",
|
|
364
|
+
"PMSG": "Green Metallic Color",
|
|
365
|
+
"PMSS": "San Simeon Silver Metallic Color",
|
|
366
|
+
"PMTG": "Dolphin Grey Metallic Color",
|
|
367
|
+
"PP01": "Pedestrian Protection Ped Pro R127 Compliant",
|
|
368
|
+
"PP02": "Pedestrian Protection Ped Pro R127 Compliant",
|
|
369
|
+
"PPMR": "Red Multi-Coat Color",
|
|
370
|
+
"PPSB": "Deep Blue Metallic Color",
|
|
371
|
+
"PPSR": "Signature Red Color",
|
|
372
|
+
"PPSW": "Pearl White Multi-Coat Color",
|
|
373
|
+
"PPTI": "Titanium Metallic Color",
|
|
374
|
+
"PRM30": "Partial Premium Interior",
|
|
375
|
+
"PRM31": "Premium Interior",
|
|
376
|
+
"PRM3S": "Standard Interior",
|
|
377
|
+
"PRMY1": "Premium Interior",
|
|
378
|
+
"PS00": "No Parcel Shelf",
|
|
379
|
+
"PS01": "Parcel Shelf",
|
|
380
|
+
"PT00": "Standard trunk",
|
|
381
|
+
"PT01": "Trunk Power trunk",
|
|
382
|
+
"PWS0": "Model S 10.2020",
|
|
383
|
+
"PX00": "No Performance Plus Package",
|
|
384
|
+
"PX01": "Performance Plus",
|
|
385
|
+
"PX4D": "90 kWh Performance",
|
|
386
|
+
"PX6D": "Zero to 60 in 2.5 sec",
|
|
387
|
+
"QLBS": "Black Premium Interior",
|
|
388
|
+
"QLFC": "Cream Premium Interior",
|
|
389
|
+
"QLFP": "Black Premium Interior",
|
|
390
|
+
"QLFW": "White Premium Interior",
|
|
391
|
+
"QLPW": "White Premium Interior",
|
|
392
|
+
"QLWS": "White Premium Interior",
|
|
393
|
+
"QNET": "Tan NextGen",
|
|
394
|
+
"QPBT": "Black Textile Interior",
|
|
395
|
+
"QPMP": "Black seats",
|
|
396
|
+
"QTBS": "Black Premium Interior",
|
|
397
|
+
"QTBW": "White Premium Seats",
|
|
398
|
+
"QTFC": "Cream Premium Interior",
|
|
399
|
+
"QTFP": "Black Premium Seats",
|
|
400
|
+
"QTFW": "White Premium Interior",
|
|
401
|
+
"QTPB": "Black Leather Tesla Premium Seats",
|
|
402
|
+
"QTPC": "Cream Premium Seats",
|
|
403
|
+
"QTPP": "Black Premium Seats",
|
|
404
|
+
"QTPT": "Tan Premium Seats",
|
|
405
|
+
"QTTB": "Multi-Pattern Black Seats",
|
|
406
|
+
"QTWS": "White Premium Interior",
|
|
407
|
+
"QVBM": "Multi-Pattern Black Seats",
|
|
408
|
+
"QVPC": "Vegan Cream Seats",
|
|
409
|
+
"QVPP": "Vegan Cream Seats",
|
|
410
|
+
"QVSW": "White Tesla Seats",
|
|
411
|
+
"QXMB": "Black Leather Seat",
|
|
412
|
+
"RA00": "Model 3/Y",
|
|
413
|
+
"RA01": "Model 3/Y",
|
|
414
|
+
"RBMB": "Rear Brake Mando Black",
|
|
415
|
+
"RBMR": "Rear Brake Mando Red",
|
|
416
|
+
"RCX0": "No Rear Console",
|
|
417
|
+
"RCX1": "Rear Console",
|
|
418
|
+
"RD01": "Rear drive unit (600A)",
|
|
419
|
+
"RD02": "Rear drive unit (800A)",
|
|
420
|
+
"RD03": "Rear Drive Unit LR",
|
|
421
|
+
"RD04": "Rear Drive Unit Plaid",
|
|
422
|
+
"RD05": "Rear Drive Unit",
|
|
423
|
+
"RD06": "Model 3 2022 refresh?",
|
|
424
|
+
"RDU2": "Rear large drive unit with elec. oil pump(stator <5kg)",
|
|
425
|
+
"RDU3": "Rear small drive unit",
|
|
426
|
+
"RDU4": "Rear small drive unit with elec. oil pump(stator <5kg)",
|
|
15
427
|
"REAP": "Region: Asia Pacific",
|
|
16
428
|
"REEU": "Region: Europe",
|
|
17
429
|
"RENA": "Region: North America",
|
|
18
|
-
"RENC": "Region: Canada"
|
|
430
|
+
"RENC": "Region: Canada",
|
|
431
|
+
"RF3G": "Glass Roof",
|
|
432
|
+
"RFBC": "Body Color Roof",
|
|
433
|
+
"RFBK": "Black Roof",
|
|
434
|
+
"RFFG": "Glass Roof",
|
|
435
|
+
"RFFR": "Fixed Glass Roof (roof rack compatible)",
|
|
436
|
+
"RFP2": "Sunroof",
|
|
437
|
+
"RFPO": "All Glass Panoramic Roof",
|
|
438
|
+
"RFPX": "Glass Roof",
|
|
439
|
+
"RL00": "Model S/X 2021",
|
|
440
|
+
"RL31": "Model 3 Perf",
|
|
441
|
+
"RL32": "Model 3/Y (AWD)",
|
|
442
|
+
"RNG0": "Standard Battery Range",
|
|
443
|
+
"RS3H": "Second Row Seat Rear Seats (Heated)",
|
|
444
|
+
"RSF0": "Rear Heated Seats Disabled",
|
|
445
|
+
"RSF1": "Rear Heated Seats",
|
|
446
|
+
"RU00": "No Range Upgrade",
|
|
447
|
+
"S01B": "Black Textile Seats",
|
|
448
|
+
"S02B": "Seat",
|
|
449
|
+
"S02P": "S02P",
|
|
450
|
+
"S02T": "Seat",
|
|
451
|
+
"S02W": "White Seats",
|
|
452
|
+
"S07W": "White Seats",
|
|
453
|
+
"S31B": "S31B",
|
|
454
|
+
"S32C": "S32C",
|
|
455
|
+
"S32P": "Black PUR Seats",
|
|
456
|
+
"S32W": "S32W",
|
|
457
|
+
"S3PB": "Seat Black PUR Premium Seats",
|
|
458
|
+
"S3PW": "Seat White PUR Premium Seats",
|
|
459
|
+
"S42P": "Seat Black Plenum Seats",
|
|
460
|
+
"S42W": "Seat White Plenum Seats",
|
|
461
|
+
"SA3P": "Seat Adjustment - Power",
|
|
462
|
+
"SC00": "No Supercharging",
|
|
463
|
+
"SC01": "Unlimited Free Supercharging Enabled",
|
|
464
|
+
"SC04": "Pay Per Use Supercharging",
|
|
465
|
+
"SC05": "Unlimited Free Supercharging Currently Enabled",
|
|
466
|
+
"SC06": "Time Bound Unlimited Free Supercharging",
|
|
467
|
+
"SLR0": "No Rear Spoiler",
|
|
468
|
+
"SLR1": "Carbon Fibre Spoiler",
|
|
469
|
+
"SP00": "No Security Package",
|
|
470
|
+
"SP01": "Security Package",
|
|
471
|
+
"SPT31": "Performance Upgrade",
|
|
472
|
+
"SPTY1": "Performance Upgrade",
|
|
473
|
+
"SR01": "Standard 2nd row",
|
|
474
|
+
"SR04": "Second Row Seat",
|
|
475
|
+
"SR05": "X Front seat set",
|
|
476
|
+
"SR06": "Seven Seat Interior",
|
|
477
|
+
"SR07": "Second Row Seats with Comfort Improvements",
|
|
478
|
+
"ST00": "Non-leather Steering Wheel",
|
|
479
|
+
"ST01": "Non-heated Leather Steering Wheel",
|
|
480
|
+
"ST02": "Heated Leather Steering Wheel",
|
|
481
|
+
"ST03": "Regular Steering Wheel",
|
|
482
|
+
"ST0Y": "Yoke Steering Wheel",
|
|
483
|
+
"ST30": "Base Steering Wheel",
|
|
484
|
+
"ST31": "Steering Wheel",
|
|
485
|
+
"ST33": "Steering wheel - heated on LR/P (Model 3)",
|
|
486
|
+
"STCP": "Steering Wheel",
|
|
487
|
+
"STY5S": "Five Seat Interior",
|
|
488
|
+
"STY7S": "Seven Seat Interior",
|
|
489
|
+
"SU00": "Standard Suspension",
|
|
490
|
+
"SU01": "Smart Air Suspension",
|
|
491
|
+
"SU03": "Suspension Update",
|
|
492
|
+
"SU3C": "Coil Spring Suspension",
|
|
493
|
+
"SWF0": "Model 3/Y",
|
|
494
|
+
"SWF1": "Model 3/Y",
|
|
495
|
+
"T3CA": "Tires M3",
|
|
496
|
+
"T3HS": "Tires M3",
|
|
497
|
+
"T3MA": "Tires M3",
|
|
498
|
+
"T3MC": "Tires M3",
|
|
499
|
+
"T3P3": "Tires M3",
|
|
500
|
+
"TD00": "Tear Down NON-GLIDER",
|
|
501
|
+
"TIC4": "Tires MX",
|
|
502
|
+
"TIC6": "Tires MS",
|
|
503
|
+
"TIG2": "Summer Tires",
|
|
504
|
+
"TIG5": "Goodyear Eagle Touring",
|
|
505
|
+
"TIM7": "Summer Tires",
|
|
506
|
+
"TIM8": "Michelin PS4S",
|
|
507
|
+
"TIM9": "Michelin Pilot Sport 4",
|
|
508
|
+
"TIMP": "Tires",
|
|
509
|
+
"TIP0": "All-season Tires",
|
|
510
|
+
"TM00": "Model Trim",
|
|
511
|
+
"TM02": "General Production Signature Trim",
|
|
512
|
+
"TM0A": "ALPHA PRE-PRODUCTION NON-SALEABLE",
|
|
513
|
+
"TM0B": "BETA PRE-PRODUCTION NON-SALEABLE",
|
|
514
|
+
"TM0C": "PRE-PRODUCTION SALEABLE",
|
|
515
|
+
"TP01": "Tech Package - No Autopilot",
|
|
516
|
+
"TP02": "Tech Package with Autopilot",
|
|
517
|
+
"TP03": "Tech Package with Enhanced Autopilot",
|
|
518
|
+
"TR00": "No Rear Facing Seats",
|
|
519
|
+
"TR01": "Third Row Seating",
|
|
520
|
+
"TRA1": "Third Row HVAC",
|
|
521
|
+
"TS10": "Model S/X 2021",
|
|
522
|
+
"TS91": "Model S/X 2021",
|
|
523
|
+
"TSHP": "Heat Pump Thermal Assembly",
|
|
524
|
+
"TW00": "No Tow Package",
|
|
525
|
+
"TW01": "Tow Package",
|
|
526
|
+
"TX20": "Model X 2021",
|
|
527
|
+
"TY0A": "20\" All Season Square",
|
|
528
|
+
"TY9A": "Tires MY",
|
|
529
|
+
"UM01": "Universal Mobile Charger - US Port (Single)",
|
|
530
|
+
"USSB": "Safety",
|
|
531
|
+
"USSW": "US Safety Kit White",
|
|
532
|
+
"UT3P": "Suede Grey Premium Headliner",
|
|
533
|
+
"UTAB": "Black Alcantara Headliner",
|
|
534
|
+
"UTAW": "Light Headliner",
|
|
535
|
+
"UTMF": "Headliner",
|
|
536
|
+
"UTPB": "Dark Headliner",
|
|
537
|
+
"UTSB": "Black Ultra-suede Headliner",
|
|
538
|
+
"UTZW": "Light Headliner",
|
|
539
|
+
"VC00": "Vehicle computer Intel?",
|
|
540
|
+
"VC01": "AMD Ryzen?",
|
|
541
|
+
"W32D": "20\" Gray Performance Wheels",
|
|
542
|
+
"W32P": "20\" Performance Wheels",
|
|
543
|
+
"W33D": "20\" Black Performance Wheels 2021",
|
|
544
|
+
"W38B": "18\" Aero Wheels",
|
|
545
|
+
"W39B": "19\" Sport Wheels",
|
|
546
|
+
"W40B": "18\" Wheels",
|
|
547
|
+
"W41B": "19\" Wheels",
|
|
548
|
+
"WR00": "No Wrap",
|
|
549
|
+
"WR01": "Wrap",
|
|
550
|
+
"WR02": "Wrap 2 (Tilburg bound)",
|
|
551
|
+
"WS10": "21\" Arachnid Wheels",
|
|
552
|
+
"WS90": "19\" Tempest Wheels",
|
|
553
|
+
"WT19": "19\" Wheels",
|
|
554
|
+
"WT20": "20\" Silver Slipstream Wheels",
|
|
555
|
+
"WT22": "22\" Silver Turbine Wheels",
|
|
556
|
+
"WTAB": "21\" Black Arachnid Wheels",
|
|
557
|
+
"WTAS": "19\" Silver Slipstream Wheels",
|
|
558
|
+
"WTD2": "19\" Sonic Carbon Slipstream Wheels (8.5 in)",
|
|
559
|
+
"WTDS": "19\" Grey Slipstream Wheels",
|
|
560
|
+
"WTHX": "20\" Turbine Wheels",
|
|
561
|
+
"WTNN": "20\" Nokian Winter Tires (non-studded)",
|
|
562
|
+
"WTNS": "20\" Nokian Winter Tires (studded)",
|
|
563
|
+
"WTP2": "20\" Pirelli Winter Tires",
|
|
564
|
+
"WTSC": "20\" Sonic Carbon Wheels",
|
|
565
|
+
"WTSD": "20\" Two-Tone Slipstream Wheels",
|
|
566
|
+
"WTSG": "21\" Turbine Wheels",
|
|
567
|
+
"WTSP": "21\" Turbine Wheels",
|
|
568
|
+
"WTSS": "21\" Turbine Wheels",
|
|
569
|
+
"WTTB": "19\" Cyclone Wheels",
|
|
570
|
+
"WTTC": "21\" Sonic Carbon Twin Turbine Wheels",
|
|
571
|
+
"WTTG": "19\" Cyclone Wheels",
|
|
572
|
+
"WTUT": "22\" Onyx Black Wheels",
|
|
573
|
+
"WTW2": "19\" Nokian Winter Wheel Set",
|
|
574
|
+
"WTW3": "19\" Pirelli Winter Wheel Set",
|
|
575
|
+
"WTW4": "19\" Winter Tire Set",
|
|
576
|
+
"WTW5": "21\" Winter Tire Set",
|
|
577
|
+
"WTW6": "19\" Nokian Winter Tires (studded)",
|
|
578
|
+
"WTW7": "19\" Nokian Winter Tires (non-studded)",
|
|
579
|
+
"WTW8": "19\" Pirelli Winter Tires",
|
|
580
|
+
"WTX1": "19\" Michelin Primacy Tire Upgrade",
|
|
581
|
+
"WX00": "20\" Cyberstream Wheels",
|
|
582
|
+
"WX20": "22\" Turbine Wheels",
|
|
583
|
+
"WXNN": "No 20\" Nokian Winter Tires (non-studded)",
|
|
584
|
+
"WXNS": "No 20\" Nokian Winter Tires (studded)",
|
|
585
|
+
"WXP2": "No 20\" Pirelli Winter Tires",
|
|
586
|
+
"WXW2": "No 19\" Wheels with Nokian Winter Tyres",
|
|
587
|
+
"WXW3": "No 19\" Wheels with Pirelli Winter Tyres",
|
|
588
|
+
"WXW4": "No 19\" Winter Tire Set",
|
|
589
|
+
"WXW5": "No 21\" Winter Tire Set",
|
|
590
|
+
"WXW6": "No 19\" Nokian Winter Tires (studded)",
|
|
591
|
+
"WXW7": "No 19\" Nokian Winter Tires (non-studded)",
|
|
592
|
+
"WXW8": "No 19\" Pirelli Winter Tires",
|
|
593
|
+
"WY0S": "20\" Induction",
|
|
594
|
+
"WY18B": "18\" Aero Wheels",
|
|
595
|
+
"WY19B": "19\" Sport Wheels",
|
|
596
|
+
"WY20P": "20\" Performance Wheels",
|
|
597
|
+
"WY9S": "19\" Apollo",
|
|
598
|
+
"X001": "Override: Power Liftgate",
|
|
599
|
+
"X002": "Override: Manual Liftgate",
|
|
600
|
+
"X003": "Maps & Navigation",
|
|
601
|
+
"X004": "Override: No Navigation",
|
|
602
|
+
"X007": "Exterior Lights Override: Premium exterior lighting YES",
|
|
603
|
+
"X010": "Base Mirrors",
|
|
604
|
+
"X011": "Override: Homelink",
|
|
605
|
+
"X012": "Override: No Homelink",
|
|
606
|
+
"X013": "Override: Satellite Radio",
|
|
607
|
+
"X014": "Override: No Satellite Radio",
|
|
608
|
+
"X019": "Carbon Fiber Spoiler",
|
|
609
|
+
"X020": "No Performance Exterior",
|
|
610
|
+
"X021": "No Rear Carbon Fiber Spoiler",
|
|
611
|
+
"X024": "Performance Package",
|
|
612
|
+
"X025": "No Performance Powertrain",
|
|
613
|
+
"X026": "Door handle",
|
|
614
|
+
"X027": "Lighted Door Handles",
|
|
615
|
+
"X028": "Battery Badge",
|
|
616
|
+
"X029": "Remove Battery Badge",
|
|
617
|
+
"X030": "Override: No Passive Entry Pkg",
|
|
618
|
+
"X031": "Keyless Entry",
|
|
619
|
+
"X037": "Powerfolding Mirrors",
|
|
620
|
+
"X039": "DAB Radio",
|
|
621
|
+
"X040": "No DAB Radio",
|
|
622
|
+
"X041": "No Auto Presenting Door",
|
|
623
|
+
"X042": "Auto Presenting Door",
|
|
624
|
+
"X043": "No Phone Dock Kit",
|
|
625
|
+
"X044": "Phone Dock Kit",
|
|
626
|
+
"YF00": "No Yacht Floor",
|
|
627
|
+
"YF01": "Matching Yacht Floor",
|
|
628
|
+
"YFCC": "Yatcht Floor Front Console, Décor Matched",
|
|
629
|
+
"YFFC": "Integrated Center Console",
|
|
630
|
+
"ZINV": "Inventory vehicle?"
|
|
19
631
|
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "tesla-inventory",
|
|
3
3
|
"description": "Retrieve real-time data from Tesla Inventory.",
|
|
4
4
|
"homepage": "https://nicedoc.io/Kikobeats/tesla-inventory",
|
|
5
|
-
"version": "1.8.
|
|
5
|
+
"version": "1.8.17",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"author": {
|
|
8
8
|
"email": "josefrancisco.verdu@gmail.com",
|
|
@@ -41,15 +41,16 @@
|
|
|
41
41
|
"@commitlint/cli": "latest",
|
|
42
42
|
"@commitlint/config-conventional": "latest",
|
|
43
43
|
"ava": "latest",
|
|
44
|
-
"cheerio": "latest",
|
|
45
44
|
"ci-publish": "latest",
|
|
46
45
|
"conventional-github-releaser": "latest",
|
|
47
46
|
"debug-logfmt": "latest",
|
|
47
|
+
"entities": "latest",
|
|
48
48
|
"finepack": "latest",
|
|
49
49
|
"git-authors-cli": "latest",
|
|
50
50
|
"git-dirty": "latest",
|
|
51
51
|
"json-future": "latest",
|
|
52
52
|
"lodash": "latest",
|
|
53
|
+
"markdown-tables-to-json": "latest",
|
|
53
54
|
"nano-staged": "latest",
|
|
54
55
|
"npm-check-updates": "latest",
|
|
55
56
|
"nyc": "latest",
|
package/scripts/codes.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
+
const { Extractor } = require('markdown-tables-to-json')
|
|
4
|
+
const { decodeHTML } = require('entities')
|
|
5
|
+
|
|
3
6
|
const jsonFuture = require('json-future')
|
|
4
7
|
const { chain } = require('lodash')
|
|
5
|
-
const cheerio = require('cheerio')
|
|
6
8
|
const got = require('got')
|
|
7
9
|
|
|
8
|
-
const REGEX_ZERO_WIDTH_SPACE = /[\u200B-\u200D\uFEFF]/g
|
|
9
|
-
|
|
10
10
|
const sortObjectByKey = obj =>
|
|
11
11
|
chain(obj)
|
|
12
12
|
.toPairs()
|
|
@@ -15,41 +15,17 @@ const sortObjectByKey = obj =>
|
|
|
15
15
|
.value()
|
|
16
16
|
|
|
17
17
|
const main = async () => {
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
const $ = cheerio.load(body)
|
|
23
|
-
|
|
24
|
-
const codes = $(
|
|
25
|
-
'.gitbook-root > div > div > div > div > div > div > div > div > div > div > div > div > div > div > div > div > div > div > div > div > div'
|
|
18
|
+
const markdown = await got(
|
|
19
|
+
'https://raw.githubusercontent.com/timdorr/tesla-api/master/docs/vehicle/optioncodes.md',
|
|
20
|
+
{ resolveBodyOnly: true }
|
|
26
21
|
)
|
|
27
22
|
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
const optionCodes =
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
const code = text(el.children('div:nth-child(1)'))
|
|
35
|
-
const title = text(el.children('div:nth-child(2)'))
|
|
36
|
-
const description = text(el.children('div:nth-child(3)'))
|
|
37
|
-
return { code, title, description }
|
|
38
|
-
})
|
|
39
|
-
.get()
|
|
40
|
-
.reduce(
|
|
41
|
-
(acc, { code, title, description }) => ({
|
|
42
|
-
...acc,
|
|
43
|
-
[code]: title || description
|
|
44
|
-
}),
|
|
45
|
-
{}
|
|
46
|
-
)
|
|
47
|
-
|
|
48
|
-
if (Object.keys(optionCodes).length === 0) {
|
|
49
|
-
throw new Error(
|
|
50
|
-
'The target website has changed, selectors need to be rework.'
|
|
51
|
-
)
|
|
52
|
-
}
|
|
23
|
+
const json = Extractor.extractObject(markdown, 'rows', false)
|
|
24
|
+
|
|
25
|
+
const optionCodes = Object.keys(json).reduce((acc, code) => {
|
|
26
|
+
const { Title: title, Description: description } = json[code]
|
|
27
|
+
return { ...acc, [code]: decodeHTML(title || description) }
|
|
28
|
+
}, {})
|
|
53
29
|
|
|
54
30
|
jsonFuture.save('codes.json', sortObjectByKey(optionCodes))
|
|
55
31
|
}
|