@boarteam/fix-dict-fix42 1.0.0 → 3.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
@@ -5,7 +5,7 @@ The **complete FIX 4.2 dictionary as data** (405 fields / 46 messages / 21 datat
5
5
  official FIX 4.2 specification (FIX Repository, 2010 Edition) and cross-checked against the
6
6
  QuickFIX `FIX42.xml` dictionary by a CI drift gate — never hand-maintained.
7
7
 
8
- On a 0.x line and actively developed. See the
8
+ Stable and actively developed. See the
9
9
  [project README](https://github.com/boarteam/fix-protocol#readme) for coverage, the cross-check
10
10
  report, and declared coverage gaps.
11
11
 
@@ -27,6 +27,14 @@ per-field const are also same-name types — unions of their wire values — so
27
27
  field without a top-level const is `MsgType` (tag 35), whose name belongs to the
28
28
  message-type map: use `Enums.MsgType`.
29
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.
37
+
30
38
  Requires `@boarteam/fix` as a peer dependency.
31
39
 
32
40
  ## License
package/dist/index.cjs CHANGED
@@ -1,5 +1,9 @@
1
1
  'use strict';
2
2
 
3
+ var fix = require('@boarteam/fix');
4
+
5
+ // src/index.ts
6
+
3
7
  // src/dictionary.json
4
8
  var dictionary_default = {
5
9
  version: "FIX.4.2",
@@ -16014,6 +16018,8 @@ var Enums = {
16014
16018
  "UnsolicitedIndicator": UnsolicitedIndicator,
16015
16019
  "Urgency": Urgency
16016
16020
  };
16021
+ var message = fix.messageFactory(dictionary);
16022
+ var isMessageType = fix.messageTypeGuard();
16017
16023
 
16018
16024
  exports.Adjustment = Adjustment;
16019
16025
  exports.AdvSide = AdvSide;
@@ -16125,5 +16131,7 @@ exports.TradeType = TradeType;
16125
16131
  exports.UnsolicitedIndicator = UnsolicitedIndicator;
16126
16132
  exports.Urgency = Urgency;
16127
16133
  exports.dictionary = dictionary;
16134
+ exports.isMessageType = isMessageType;
16135
+ exports.message = message;
16128
16136
  //# sourceMappingURL=index.cjs.map
16129
16137
  //# sourceMappingURL=index.cjs.map