@boarteam/fix-dict-fix42 0.2.0 → 1.0.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/README.md CHANGED
@@ -17,8 +17,15 @@ const fix = createFixEngine(dictionary);
17
17
  const wire = fix.encode({ msgType: MsgType.OrderSingle, fields: { [Tags.ClOrdID]: 'A1' } });
18
18
  ```
19
19
 
20
- Exports: `dictionary` (the data), `Tags` (field name → tag), `MsgType` (message name
21
- MsgType value), and `DICTIONARY_VERSION`.
20
+ Exports: `dictionary` (the data), `Tags` (field name → tag), `TagNames` (tag field
21
+ name), `MsgType` (message name → MsgType value), `MsgTypeNames` (MsgType value →
22
+ message name), `Enums` (field name → spec value name → wire string, e.g.
23
+ `Enums.MDEntryType.Bid === '0'`), a top-level const per enumerated field (`Side`,
24
+ `OrdType`, `MDEntryType`, ...), and `DICTIONARY_VERSION`. `MsgType` and every
25
+ per-field const are also same-name types — unions of their wire values — so
26
+ `msgType: MsgType` and `side: Side` work in type positions. The one enumerated
27
+ field without a top-level const is `MsgType` (tag 35), whose name belongs to the
28
+ message-type map: use `Enums.MsgType`.
22
29
 
23
30
  Requires `@boarteam/fix` as a peer dependency.
24
31