@boarteam/fix-dict-fix42 4.0.1 → 4.1.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
@@ -31,9 +31,11 @@ message-type map: use `Enums.MsgType`.
31
31
 
32
32
  It also exports the typed encode-side API: `message` (a factory bound to this dictionary),
33
33
  `MessageBodies` (the `MsgType` value → body-type registry), and a named body type per message
34
- plus augmentable per-container group/component `interface`s. For the read side it exports
35
- `isMessageType` (a type guard that narrows a `MessageView<any>` of unknown type to a specific
36
- message's body, keyed on its `MsgType` value) and `MessageOf<M>` (the matching annotation alias).
34
+ plus augmentable per-container group/component `interface`s. It also exports a narrowing pair per
35
+ direction, keyed on the `MsgType` value: `isMessageType` + `MessageOf<M>` for a message you
36
+ **built** (narrowing a `MessageView<any>` of unknown type to a specific message's body), and
37
+ `isInboundType` + `InboundOf<M>` for one you **received**, which narrow an `InboundMessage` and
38
+ keep its session `envelope` reachable afterwards.
37
39
  The typed-message API is documented in full in the
38
40
  [Typed messages guide](https://boar.team/fix/docs/typed-messages/).
39
41
 
package/dist/index.cjs CHANGED
@@ -16020,6 +16020,7 @@ var Enums = {
16020
16020
  };
16021
16021
  var message = fix.messageFactory(dictionary);
16022
16022
  var isMessageType = fix.messageTypeGuard();
16023
+ var isInboundType = fix.inboundTypeGuard();
16023
16024
 
16024
16025
  exports.Adjustment = Adjustment;
16025
16026
  exports.AdvSide = AdvSide;
@@ -16131,6 +16132,7 @@ exports.TradeType = TradeType;
16131
16132
  exports.UnsolicitedIndicator = UnsolicitedIndicator;
16132
16133
  exports.Urgency = Urgency;
16133
16134
  exports.dictionary = dictionary;
16135
+ exports.isInboundType = isInboundType;
16134
16136
  exports.isMessageType = isMessageType;
16135
16137
  exports.message = message;
16136
16138
  //# sourceMappingURL=index.cjs.map