@boarteam/fix-dict-fix42 0.2.0 → 2.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,23 @@ 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`.
29
+
30
+ It also exports the typed encode-side API: `message` (a factory bound to this dictionary),
31
+ `MessageBodies` (the `MsgType` value → body-type registry), and a named body type per message
32
+ plus augmentable per-container group/component `interface`s. For the read side it exports
33
+ `isMessageType` (a type guard that narrows a `MessageView<any>` of unknown type to a specific
34
+ message's body, keyed on its `MsgType` value) and `MessageOf<M>` (the matching annotation alias).
35
+ See the [`@boarteam/fix` README](https://www.npmjs.com/package/@boarteam/fix) for the
36
+ typed-message API.
22
37
 
23
38
  Requires `@boarteam/fix` as a peer dependency.
24
39