@boarteam/fix-dict-fix44 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
@@ -49,9 +49,14 @@ For the typed encode side it also exports `message` (a factory bound to this dic
49
49
  `MessageBodies` (the `MsgType` value → body-type registry), and a named body type per message
50
50
  (`NewOrderSingleBody`, `MarketDataSnapshotFullRefreshBody`, …) plus augmentable per-container
51
51
  group/component `interface`s (`SecListGrp_NoRelatedSymEntry`, `InstrumentFields`, …) that venue
52
- extensions patch via declaration merging. For the read side it exports `isMessageType` a type
53
- guard that narrows a `MessageView<any>` of unknown type to a specific message's body keyed on its
54
- `MsgType` value (so `get()` becomes typed) — and `MessageOf<M>`, the matching annotation alias.
52
+ extensions patch via declaration merging. It also exports a narrowing pair per direction, both
53
+ keyed on the `MsgType` value: `isMessageType` + `MessageOf<M>` for a message you **built** (they
54
+ narrow a `MessageView<any>` of unknown type to a specific message's body, so `get()` becomes
55
+ typed), and `isInboundType` + `InboundOf<M>` for one you **received** — same narrowing over an
56
+ `InboundMessage`, with the session `envelope` and the original `parsed` still reachable
57
+ afterwards. Narrowing to _every_ message at once is `inboundKnownGuard`, which takes the
58
+ dictionary at runtime and so is bound by the consumer — an app that extends this dictionary must
59
+ bind its own rather than borrow one bound to the stock one.
55
60
  The typed-message API is documented in full in the
56
61
  [Typed messages guide](https://boar.team/fix/docs/typed-messages/).
57
62
 
package/dist/index.cjs CHANGED
@@ -37827,6 +37827,7 @@ var Enums = {
37827
37827
  };
37828
37828
  var message = fix.messageFactory(dictionary);
37829
37829
  var isMessageType = fix.messageTypeGuard();
37830
+ var isInboundType = fix.inboundTypeGuard();
37830
37831
 
37831
37832
  exports.AccountType = AccountType;
37832
37833
  exports.AcctIDSource = AcctIDSource;
@@ -38079,6 +38080,7 @@ exports.UserStatus = UserStatus;
38079
38080
  exports.WorkingIndicator = WorkingIndicator;
38080
38081
  exports.YieldType = YieldType;
38081
38082
  exports.dictionary = dictionary;
38083
+ exports.isInboundType = isInboundType;
38082
38084
  exports.isMessageType = isMessageType;
38083
38085
  exports.message = message;
38084
38086
  //# sourceMappingURL=index.cjs.map