| name | add-decoder |
| description | Add new APDU command decoders, status word definitions, or TLV data object definitions to the registry modules. |
Add New APDU Decoder
When to Use
When adding support for new APDU commands, status words, or TLV data objects.
Adding a Command
- Add entry to
commandEntries in src/registries/command-registry.ts
- Add i18n key in
src/i18n/en.json under apdu.command.*
- Add i18n key in
src/i18n/ru.json under apdu.command.*
- Add i18n key in
src/i18n/uk.json under apdu.command.*
- Add test in
src/test/registries/command-registry.test.ts
Adding a Status Word
- Add entry to
statusEntries in src/registries/status-registry.ts
- Add i18n keys in all language files under
apdu.status.*
- Add test in
src/test/registries/status-registry.test.ts
Adding a TLV Object
- Add entry to
objectDefinitions in src/registries/object-registry.ts
- Optionally add i18n key for description
Checklist