Alex2Node/test
David 94b13f733a errors: typed helpers for every documented error type
AlexaErrors has a helper for each of the 73 types of the table on
alexa-errorresponse.html, named after the type in camel case: 63 take the
message only, 10 take the payload fields their page documents. A field the
page requires (reason, currentDeviceMode, currentChargeState, resourceType)
is a required argument, so leaving it out does not compile; from JavaScript
the helper throws a TypeError that lists the values. validRange is optional,
as the page says, and has both ends when given.
temperatureOutOfRange and setpointsTooClose stay as shorter names.
The helpers are compared with the 15 examples of the four error pages.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-28 21:14:55 +00:00
..
compat bridge: publish through a Publisher; devices no longer hold the broker client 2026-09-28 19:34:39 +00:00
device messages: DoorbellPress is sent with the empty context of its page 2026-09-28 21:08:10 +00:00
dispatch registry: SceneController events, DoorbellEventSource, SimpleEventSource, TimeHoldController, InventoryLevelSensor, WakeOnLANController 2026-09-28 21:01:53 +00:00
fixtures errors: typed helpers for every documented error type 2026-09-28 21:14:55 +00:00
helpers bridge: publish through a Publisher; devices no longer hold the broker client 2026-09-28 19:34:39 +00:00
messages errors: typed helpers for every documented error type 2026-09-28 21:14:55 +00:00
registry messages: DoorbellPress is sent with the empty context of its page 2026-09-28 21:08:10 +00:00
build.test.js build: refuse unknown arguments; name the fix when typescript is missing 2026-09-28 14:42:33 +00:00
change-report.test.js test: read an ErrorResponse off the broker; every answer has its own messageId 2026-09-28 14:26:44 +00:00
connection.test.js bridge: publish through a Publisher; devices no longer hold the broker client 2026-09-28 19:34:39 +00:00
directives.test.js test: read an ErrorResponse off the broker; every answer has its own messageId 2026-09-28 14:26:44 +00:00
discovery.test.js registry: describe an Alexa interface as data 2026-09-28 15:18:22 +00:00
packaging.test.js test: find the imports of the builds with the compiler's scanner 2026-09-28 14:44:34 +00:00
packaging.test.mjs discovery: generate capability JSON from the registry 2026-09-28 15:35:46 +00:00
subscriptions.test.js bridge: subscribe to discover and +/alexaDirective only 2026-09-28 19:36:09 +00:00
transport.test.js bridge: publish through a Publisher; devices no longer hold the broker client 2026-09-28 19:34:39 +00:00
typings.test.js build: dual CJS/ESM output, ES2020 target, Node 18 floor 2026-09-28 13:58:17 +00:00