Commit a05e0fc
committed
feat(eu-data-act): rich device name + general channel from /vehicles payload
extractVins() now passes through nickname (camelCase nickName from the
portal), licensePlate, imageLocation, role and enrollmentStatus instead
of just vin + nickname. Verified live:
{
"vin": "WVGZZZE2ZPE019826",
"nickname": "ID.4 Pro Performance",
"licensePlate": "GL AM 997E",
"imageLocation": "https://media.volkswagen.com/...",
"role": "PRIMARY_USER",
"enrollmentStatus": "COMPLETED"
}
discoverEuDataActVehicles uses these to:
- Set the device common.name to 'Nickname (KENNZEICHEN)' so multi-VIN
setups are unambiguous in the admin tree (falls back to nickname-only
or VIN if either piece is missing).
- Mirror all five fields under <vin>.general.* so the imageLocation can
be referenced directly in vis (matches the pre-EU-Data-Act layout).1 parent fd945d0 commit a05e0fc
2 files changed
Lines changed: 30 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
219 | | - | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
220 | 228 | | |
221 | 229 | | |
222 | 230 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6778 | 6778 | | |
6779 | 6779 | | |
6780 | 6780 | | |
| 6781 | + | |
| 6782 | + | |
| 6783 | + | |
| 6784 | + | |
| 6785 | + | |
| 6786 | + | |
| 6787 | + | |
6781 | 6788 | | |
6782 | 6789 | | |
6783 | | - | |
| 6790 | + | |
6784 | 6791 | | |
6785 | 6792 | | |
6786 | | - | |
6787 | | - | |
6788 | | - | |
6789 | | - | |
| 6793 | + | |
| 6794 | + | |
| 6795 | + | |
| 6796 | + | |
| 6797 | + | |
| 6798 | + | |
| 6799 | + | |
| 6800 | + | |
| 6801 | + | |
| 6802 | + | |
| 6803 | + | |
| 6804 | + | |
6790 | 6805 | | |
6791 | 6806 | | |
6792 | 6807 | | |
| |||
0 commit comments