Introduce LegacyDeviceSetupErrorEvent and two mappers for the generate-activation-key and create-device endpoints. 403 on activation-key maps to invalidIdentificator; 404 to deviceNotFound; 401 (already activated or B2B) unifies as deviceNotAvailable. On create-device, 403 → invalidField and 404 → invalidActivationKey. The view state now splits validation vs API errors with a displayErrorKey extension, replacing the previous e.toString() leak that could surface stack traces to users.
TODO: Put a short description of the package here that helps potential users know whether this package might be useful for them.
Features
TODO: List what your package can do. Maybe include images, gifs, or videos.
Getting started
TODO: List prerequisites and provide or point to information on how to start using the package.
Usage
TODO: Include short and useful examples for package users. Add longer examples
to /example folder.
const like = 'sample';
Additional information
TODO: Tell users more about the package: where to find more information, how to contribute to the package, how to file issues, what response they can expect from the package authors, and more.