tesla-inventory 3.3.0 → 3.4.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/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://github.com/Kikobeats/tesla-inventory",
5
- "version": "3.3.0",
5
+ "version": "3.4.0",
6
6
  "main": "src/index.js",
7
7
  "exports": {
8
8
  ".": "./src/index.js",
@@ -10,24 +10,38 @@
10
10
  "./inventories": "./src/inventories/index.js",
11
11
  "./inventories/euro": "./src/inventories/euro.js",
12
12
  "./package.json": "./package.json",
13
+ "./prices/ae": "./src/prices/ae.json",
13
14
  "./prices/au": "./src/prices/au.json",
14
15
  "./prices/ca": "./src/prices/ca.json",
15
16
  "./prices/ch": "./src/prices/ch.json",
17
+ "./prices/cn": "./src/prices/cn.json",
16
18
  "./prices/cz": "./src/prices/cz.json",
17
19
  "./prices/dk": "./src/prices/dk.json",
18
20
  "./prices/euro": "./src/prices/euro.json",
19
21
  "./prices/gb": "./src/prices/gb.json",
20
22
  "./prices/gr": "./src/prices/gr.json",
23
+ "./prices/hk": "./src/prices/hk.json",
21
24
  "./prices/hr": "./src/prices/hr.json",
22
25
  "./prices/hu": "./src/prices/hu.json",
26
+ "./prices/il": "./src/prices/il.json",
23
27
  "./prices/is": "./src/prices/is.json",
28
+ "./prices/jo": "./src/prices/jo.json",
29
+ "./prices/jp": "./src/prices/jp.json",
30
+ "./prices/kr": "./src/prices/kr.json",
31
+ "./prices/mo": "./src/prices/mo.json",
24
32
  "./prices/mx": "./src/prices/mx.json",
33
+ "./prices/my": "./src/prices/my.json",
25
34
  "./prices/no": "./src/prices/no.json",
35
+ "./prices/nz": "./src/prices/nz.json",
26
36
  "./prices/pl": "./src/prices/pl.json",
27
37
  "./prices/pr": "./src/prices/pr.json",
28
38
  "./prices/ro": "./src/prices/ro.json",
29
39
  "./prices/se": "./src/prices/se.json",
40
+ "./prices/sg": "./src/prices/sg.json",
30
41
  "./prices/si": "./src/prices/si.json",
42
+ "./prices/th": "./src/prices/th.json",
43
+ "./prices/tr": "./src/prices/tr.json",
44
+ "./prices/tw": "./src/prices/tw.json",
31
45
  "./prices/us": "./src/prices/us.json"
32
46
  },
33
47
  "author": {
@@ -1,31 +1,44 @@
1
1
  module.exports = {
2
- at: { country: 'Austria', language: 'de', market: 'AT', super_region: 'europe' },
3
- au: { country: 'Australia', language: 'en', market: 'AU', super_region: 'north america' },
4
- be: { country: 'Belgium', language: 'nl', market: 'BE', super_region: 'europe' },
5
- ca: { country: 'Canada', language: 'en', market: 'CA', super_region: 'north america' },
6
- ch: { country: 'Switzerland', language: 'de', market: 'CH', super_region: 'europe' },
7
- cz: { country: 'Czechia', language: 'cs', market: 'CZ', super_region: 'europe' },
8
- de: { country: 'Germany', language: 'de', market: 'DE', super_region: 'europe' },
9
- dk: { country: 'Denmark', language: 'da', market: 'DK', super_region: 'europe' },
10
- es: { country: 'Spain', language: 'es', market: 'ES', super_region: 'europe' },
11
- fi: { country: 'Finland', language: 'fi', market: 'FI', super_region: 'europe' },
12
- fr: { country: 'France', language: 'fr', market: 'FR', super_region: 'europe' },
13
- gb: { country: 'United Kingdom', language: 'en', market: 'GB', super_region: 'europe' },
14
- gr: { country: 'Greece', language: 'el', market: 'GR', super_region: 'europe' },
15
- hr: { country: 'Croatia', language: 'hr', market: 'HR', super_region: 'europe' },
16
- hu: { country: 'Hungary', language: 'hu', market: 'HU', super_region: 'europe' },
17
- ie: { country: 'Ireland', language: 'en', market: 'IE', super_region: 'europe' },
18
- is: { country: 'Iceland', language: 'is', market: 'IS', super_region: 'europe' },
19
- it: { country: 'Italy', language: 'it', market: 'IT', super_region: 'europe' },
20
- lu: { country: 'Luxembourg', language: 'fr', market: 'LU', super_region: 'europe' },
21
- mx: { country: 'Mexico', language: 'es', market: 'MX', super_region: 'north america' },
22
- nl: { country: 'Netherlands', language: 'nl', market: 'NL', super_region: 'europe' },
23
- no: { country: 'Norway', language: 'no', market: 'NO', super_region: 'europe' },
24
- pl: { country: 'Poland', language: 'pl', market: 'PL', super_region: 'europe' },
25
- pr: { country: 'Puerto Rico', language: 'es', market: 'PR', super_region: 'north america' },
26
- pt: { country: 'Portugal', language: 'pt', market: 'PT', super_region: 'europe' },
27
- ro: { country: 'Romania', language: 'ro', market: 'RO', super_region: 'europe' },
28
- se: { country: 'Sweden', language: 'sv', market: 'SE', super_region: 'europe' },
29
- si: { country: 'Slovenia', language: 'sl', market: 'SI', super_region: 'europe' },
30
- us: { country: 'United States', language: 'en', market: 'US', super_region: 'north america' }
2
+ ae: { country: 'United Arab Emirates', language: 'en', market: 'AE' },
3
+ at: { country: 'Austria', language: 'de', market: 'AT' },
4
+ au: { country: 'Australia', language: 'en', market: 'AU' },
5
+ be: { country: 'Belgium', language: 'nl', market: 'BE' },
6
+ ca: { country: 'Canada', language: 'en', market: 'CA' },
7
+ ch: { country: 'Switzerland', language: 'de', market: 'CH' },
8
+ cn: { country: 'China', language: 'zh', market: 'CN' },
9
+ cz: { country: 'Czechia', language: 'cs', market: 'CZ' },
10
+ de: { country: 'Germany', language: 'de', market: 'DE' },
11
+ dk: { country: 'Denmark', language: 'da', market: 'DK' },
12
+ es: { country: 'Spain', language: 'es', market: 'ES' },
13
+ fi: { country: 'Finland', language: 'fi', market: 'FI' },
14
+ fr: { country: 'France', language: 'fr', market: 'FR' },
15
+ gb: { country: 'United Kingdom', language: 'en', market: 'GB' },
16
+ gr: { country: 'Greece', language: 'el', market: 'GR' },
17
+ hk: { country: 'Hong Kong', language: 'en', market: 'HK' },
18
+ hr: { country: 'Croatia', language: 'hr', market: 'HR' },
19
+ hu: { country: 'Hungary', language: 'hu', market: 'HU' },
20
+ ie: { country: 'Ireland', language: 'en', market: 'IE' },
21
+ il: { country: 'Israel', language: 'he', market: 'IL' },
22
+ is: { country: 'Iceland', language: 'is', market: 'IS' },
23
+ it: { country: 'Italy', language: 'it', market: 'IT' },
24
+ jo: { country: 'Jordan', language: 'en', market: 'JO' },
25
+ jp: { country: 'Japan', language: 'ja', market: 'JP' },
26
+ kr: { country: 'Korea', language: 'ko', market: 'KR' },
27
+ lu: { country: 'Luxembourg', language: 'fr', market: 'LU' },
28
+ mo: { country: 'Macau', language: 'en', market: 'MO' },
29
+ mx: { country: 'Mexico', language: 'es', market: 'MX' },
30
+ my: { country: 'Malaysia', language: 'en', market: 'MY' },
31
+ nl: { country: 'Netherlands', language: 'nl', market: 'NL' },
32
+ no: { country: 'Norway', language: 'no', market: 'NO' },
33
+ nz: { country: 'New Zealand', language: 'en', market: 'NZ' },
34
+ pl: { country: 'Poland', language: 'pl', market: 'PL' },
35
+ pr: { country: 'Puerto Rico', language: 'es', market: 'PR' },
36
+ pt: { country: 'Portugal', language: 'pt', market: 'PT' },
37
+ ro: { country: 'Romania', language: 'ro', market: 'RO' },
38
+ se: { country: 'Sweden', language: 'sv', market: 'SE' },
39
+ sg: { country: 'Singapore', language: 'en', market: 'sg' },
40
+ si: { country: 'Slovenia', language: 'sl', market: 'SI' },
41
+ tr: { country: 'Turkey', language: 'tr', market: 'TR' },
42
+ tw: { country: 'Taiwan', language: 'zh', market: 'TW' },
43
+ us: { country: 'United States', language: 'en', market: 'US' }
31
44
  }
@@ -0,0 +1,25 @@
1
+ {
2
+ "APPB": 14100,
3
+ "CC02": 26200,
4
+ "ICC00": 8100,
5
+ "ICW00": 8100,
6
+ "INBCW": 6000,
7
+ "IWC00": 8100,
8
+ "IWW00": 8100,
9
+ "MT322": 69000,
10
+ "MT325": 92000,
11
+ "MT337": 69000,
12
+ "MTS13": 33000,
13
+ "MTS14": 88000,
14
+ "MTX04": 70000,
15
+ "MTX16": 88000,
16
+ "MTY09": 74000,
17
+ "PBSB": 5300,
18
+ "SPT31": 18000,
19
+ "ST0Y": 4000,
20
+ "W41B": 6500,
21
+ "WS10": 16500,
22
+ "WS12": 16500,
23
+ "WTUT": 22200,
24
+ "WX21": 20100
25
+ }
@@ -0,0 +1 @@
1
+ {}
@@ -0,0 +1,6 @@
1
+ {
2
+ "APPB": 27000,
3
+ "MT316": 79700,
4
+ "PMNG": 9600,
5
+ "PPSW": 9600
6
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "CC02": 26500,
3
+ "ICC00": 8500,
4
+ "ICW00": 8500,
5
+ "IWC00": 8500,
6
+ "IWW00": 8500,
7
+ "MTS13": 60000,
8
+ "MTS14": 75000,
9
+ "MTX13": 55000,
10
+ "MTX14": 75000,
11
+ "MTX15": 55000,
12
+ "MTX16": 75000,
13
+ "ST0Y": 4000,
14
+ "WS10": 17300,
15
+ "WS12": 17300,
16
+ "WX20": 21300,
17
+ "WX21": 21300
18
+ }
@@ -0,0 +1 @@
1
+ {}
@@ -0,0 +1,34 @@
1
+ {
2
+ "APPB": 436000,
3
+ "CC02": 816000,
4
+ "CC03": 494000,
5
+ "CC04": 440000,
6
+ "IBW1": 126000,
7
+ "INB3W": 188000,
8
+ "INBFW": 188000,
9
+ "INBPW": 188000,
10
+ "INLPC": 188000,
11
+ "INPW0": 126000,
12
+ "IPW1": 126000,
13
+ "MT10A": 752000,
14
+ "MT10L": 3500000,
15
+ "MT322": 955600,
16
+ "MT328": 1978600,
17
+ "MT329": 2094600,
18
+ "MT90P": 3500000,
19
+ "MTS05": 752000,
20
+ "MTY09": 1286000,
21
+ "MTY10": 2039000,
22
+ "MTY13": 397000,
23
+ "PBSB": 126000,
24
+ "PMBL": 247000,
25
+ "PMNG": 126000,
26
+ "PPMR": 251000,
27
+ "PPSB": 126000,
28
+ "SPT31": 621000,
29
+ "W41B": 188000,
30
+ "WT22": 678000,
31
+ "WTDS": 188000,
32
+ "WTTC": 457000,
33
+ "WY20P": 251000
34
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "CC02": 9338000,
3
+ "ICW00": 2874000,
4
+ "MTS13": 15964900,
5
+ "MTS14": 26254900,
6
+ "MTX15": 25764900,
7
+ "ST0Y": 1461000,
8
+ "WS11": 6465000,
9
+ "WS12": 6465000,
10
+ "WX20": 7902000
11
+ }
@@ -0,0 +1 @@
1
+ {}
@@ -0,0 +1 @@
1
+ {}
@@ -0,0 +1,22 @@
1
+ {
2
+ "APF2": 11400,
3
+ "APPB": 5700,
4
+ "APPF": 11400,
5
+ "CC04": 5800,
6
+ "INPW0": 1700,
7
+ "IPW1": 1700,
8
+ "MT10A": 14000,
9
+ "MT328": 36800,
10
+ "MT329": 28600,
11
+ "MT90A": 19000,
12
+ "MTX03": 19000,
13
+ "MTY10": 37500,
14
+ "MTY13": 7500,
15
+ "PBSB": 1700,
16
+ "PMNG": 1700,
17
+ "PPMR": 2800,
18
+ "PPSB": 1700,
19
+ "SPT31": 9000,
20
+ "WTSS": 7500,
21
+ "WY20P": 2800
22
+ }
@@ -0,0 +1 @@
1
+ {}
@@ -0,0 +1,4 @@
1
+ {
2
+ "MT328": 749000,
3
+ "PPSW": 50000
4
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "INPW0": 29000,
3
+ "MTY09": 1325790,
4
+ "PN00": 72530,
5
+ "WY20P": 53980
6
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "APPB": 111000,
3
+ "CC02": 210000,
4
+ "FMD0": 384000,
5
+ "IPW1": 37500,
6
+ "MT310": 684500,
7
+ "MT314": 294500,
8
+ "MT315": 684500,
9
+ "MT317": 716700,
10
+ "MT324": 684500,
11
+ "MTX13": 245900,
12
+ "PPMR": 75000,
13
+ "PPSB": 37500,
14
+ "PPSW": 37500,
15
+ "SPT31": 151800,
16
+ "ST0Y": 33000,
17
+ "WX20": 178000
18
+ }
@@ -82,7 +82,7 @@
82
82
  "MTX07": 20000,
83
83
  "MTX08": 41500,
84
84
  "MTX10": 12500,
85
- "MTX11": 23500,
85
+ "MTX11": 19990,
86
86
  "MTX12": 12500,
87
87
  "MTX13": 9990,
88
88
  "MTX14": 19990,