jspurefix 1.4.1 → 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.
Files changed (1079) hide show
  1. package/appveyor.yml +3 -0
  2. package/data/session/certs/ca/ca.crt +33 -0
  3. package/data/session/certs/ca/ca.key +54 -0
  4. package/data/session/certs/client/client.crt +31 -0
  5. package/data/session/certs/client/client.key +51 -0
  6. package/data/session/certs/server/server.crt +31 -0
  7. package/data/session/certs/server/server.key +51 -0
  8. package/dist/a-session-msg-factory.d.ts +0 -0
  9. package/dist/a-session-msg-factory.js +1 -0
  10. package/dist/a-session-msg-factory.js.map +1 -0
  11. package/dist/ascii-encoder.test.d.ts +0 -0
  12. package/dist/ascii-encoder.test.js +1 -0
  13. package/dist/ascii-encoder.test.js.map +1 -0
  14. package/dist/ascii-parser.test.d.ts +0 -0
  15. package/dist/ascii-parser.test.js +1 -0
  16. package/dist/ascii-parser.test.js.map +1 -0
  17. package/dist/ascii-segment.test.d.ts +0 -0
  18. package/dist/ascii-segment.test.js +1 -0
  19. package/dist/ascii-segment.test.js.map +1 -0
  20. package/dist/ascii-store-replay.test.d.ts +0 -0
  21. package/dist/ascii-store-replay.test.js +1 -0
  22. package/dist/ascii-store-replay.test.js.map +1 -0
  23. package/dist/ascii-tag-pos.test.d.ts +0 -0
  24. package/dist/ascii-tag-pos.test.js +1 -0
  25. package/dist/ascii-tag-pos.test.js.map +1 -0
  26. package/dist/buffer/{ascii-chars.d.ts → ascii/ascii-chars.d.ts} +0 -0
  27. package/dist/buffer/{ascii-chars.js → ascii/ascii-chars.js} +0 -0
  28. package/dist/buffer/ascii/ascii-chars.js.map +1 -0
  29. package/dist/buffer/ascii/ascii-encoder.d.ts +4 -2
  30. package/dist/buffer/ascii/ascii-encoder.js +54 -32
  31. package/dist/buffer/ascii/ascii-encoder.js.map +1 -1
  32. package/dist/buffer/ascii/ascii-parser-state.d.ts +3 -10
  33. package/dist/buffer/ascii/ascii-parser-state.js +37 -25
  34. package/dist/buffer/ascii/ascii-parser-state.js.map +1 -1
  35. package/dist/buffer/ascii/ascii-parser.d.ts +7 -7
  36. package/dist/buffer/ascii/ascii-parser.js +50 -24
  37. package/dist/buffer/ascii/ascii-parser.js.map +1 -1
  38. package/dist/buffer/ascii/ascii-segment-parser.d.ts +2 -2
  39. package/dist/buffer/ascii/ascii-segment-parser.js +34 -13
  40. package/dist/buffer/ascii/ascii-segment-parser.js.map +1 -1
  41. package/dist/buffer/ascii/ascii-view.d.ts +2 -4
  42. package/dist/buffer/ascii/ascii-view.js +11 -15
  43. package/dist/buffer/ascii/ascii-view.js.map +1 -1
  44. package/dist/buffer/ascii/index.d.ts +1 -0
  45. package/dist/buffer/ascii/index.js +1 -0
  46. package/dist/buffer/ascii/index.js.map +1 -1
  47. package/dist/buffer/ascii/parse-state.d.ts +8 -0
  48. package/dist/buffer/ascii/parse-state.js +13 -0
  49. package/dist/buffer/ascii/parse-state.js.map +1 -0
  50. package/dist/buffer/ascii/time-formatter.js +1 -1
  51. package/dist/buffer/ascii/time-formatter.js.map +1 -1
  52. package/dist/buffer/elastic-buffer.js +29 -8
  53. package/dist/buffer/elastic-buffer.js.map +1 -1
  54. package/dist/buffer/encode-proxy.d.ts +1 -1
  55. package/dist/buffer/encode-proxy.js +16 -17
  56. package/dist/buffer/encode-proxy.js.map +1 -1
  57. package/dist/buffer/fixml/fixml-encoder.d.ts +2 -1
  58. package/dist/buffer/fixml/fixml-encoder.js +43 -20
  59. package/dist/buffer/fixml/fixml-encoder.js.map +1 -1
  60. package/dist/buffer/fixml/fixml-parser.js +47 -24
  61. package/dist/buffer/fixml/fixml-parser.js.map +1 -1
  62. package/dist/buffer/fixml/fixml-view.d.ts +2 -4
  63. package/dist/buffer/fixml/fixml-view.js +13 -16
  64. package/dist/buffer/fixml/fixml-view.js.map +1 -1
  65. package/dist/buffer/fixml/populated-attributes.d.ts +5 -0
  66. package/dist/buffer/fixml/populated-attributes.js +3 -0
  67. package/dist/buffer/fixml/populated-attributes.js.map +1 -0
  68. package/dist/buffer/index.d.ts +4 -8
  69. package/dist/buffer/index.js +4 -8
  70. package/dist/buffer/index.js.map +1 -1
  71. package/dist/buffer/msg-encoder.d.ts +2 -1
  72. package/dist/buffer/msg-encoder.js.map +1 -1
  73. package/dist/buffer/msg-view.d.ts +3 -5
  74. package/dist/buffer/msg-view.js +8 -5
  75. package/dist/buffer/msg-view.js.map +1 -1
  76. package/dist/buffer/segment/segment-description.d.ts +26 -0
  77. package/dist/buffer/segment/segment-description.js +72 -0
  78. package/dist/buffer/segment/segment-description.js.map +1 -0
  79. package/dist/buffer/segment/segment-summary.d.ts +13 -0
  80. package/dist/buffer/segment/segment-summary.js +20 -0
  81. package/dist/buffer/segment/segment-summary.js.map +1 -0
  82. package/dist/buffer/segment/segment-type.d.ts +8 -0
  83. package/dist/buffer/segment/segment-type.js +13 -0
  84. package/dist/buffer/segment/segment-type.js.map +1 -0
  85. package/dist/buffer/segment-description.d.ts +2 -9
  86. package/dist/buffer/segment-description.js +5 -13
  87. package/dist/buffer/segment-description.js.map +1 -1
  88. package/dist/buffer/segment-type.d.ts +8 -0
  89. package/dist/buffer/segment-type.js +13 -0
  90. package/dist/buffer/segment-type.js.map +1 -0
  91. package/dist/buffer/structure.d.ts +3 -3
  92. package/dist/buffer/structure.js +1 -1
  93. package/dist/buffer/structure.js.map +1 -1
  94. package/dist/buffer/tag/tag-pos.d.ts +12 -0
  95. package/dist/buffer/tag/tag-pos.js +55 -0
  96. package/dist/buffer/tag/tag-pos.js.map +1 -0
  97. package/dist/buffer/tag/tag-type.d.ts +13 -0
  98. package/dist/buffer/tag/tag-type.js +18 -0
  99. package/dist/buffer/tag/tag-type.js.map +1 -0
  100. package/dist/buffer/tag/tags.d.ts +21 -0
  101. package/dist/buffer/tag/tags.js +122 -0
  102. package/dist/buffer/tag/tags.js.map +1 -0
  103. package/dist/buffer/tag-type.d.ts +13 -0
  104. package/dist/buffer/tag-type.js +18 -0
  105. package/dist/buffer/tag-type.js.map +1 -0
  106. package/dist/buffer/tags.d.ts +3 -14
  107. package/dist/buffer/tags.js +23 -36
  108. package/dist/buffer/tags.js.map +1 -1
  109. package/dist/config/get-js-fx-logger.d.ts +4 -0
  110. package/dist/{transport/make-fixl-session.js → config/get-js-fx-logger.js} +1 -1
  111. package/dist/config/get-js-fx-logger.js.map +1 -0
  112. package/dist/config/index.d.ts +1 -0
  113. package/dist/config/index.js +1 -0
  114. package/dist/config/index.js.map +1 -1
  115. package/dist/config/js-fix-config.d.ts +4 -1
  116. package/dist/config/js-fix-config.js +3 -3
  117. package/dist/config/js-fix-config.js.map +1 -1
  118. package/dist/config/js-fix-logger.d.ts +0 -3
  119. package/dist/config/js-fix-logger.js.map +1 -1
  120. package/dist/dict-parser.js +28 -23
  121. package/dist/dict-parser.js.map +1 -1
  122. package/dist/dictionary/compiler/compiler-type.js +7 -7
  123. package/dist/dictionary/compiler/compiler-type.js.map +1 -1
  124. package/dist/dictionary/compiler/enum-compiler.d.ts +1 -0
  125. package/dist/dictionary/compiler/enum-compiler.js +11 -1
  126. package/dist/dictionary/compiler/enum-compiler.js.map +1 -1
  127. package/dist/dictionary/compiler/msg-compiler.js +8 -6
  128. package/dist/dictionary/compiler/msg-compiler.js.map +1 -1
  129. package/dist/dictionary/contained/contained-component-field.js +2 -1
  130. package/dist/dictionary/contained/contained-component-field.js.map +1 -1
  131. package/dist/dictionary/contained/contained-field-dispatch.d.ts +1 -14
  132. package/dist/dictionary/contained/contained-field-dispatch.js +4 -4
  133. package/dist/dictionary/contained/contained-field-dispatch.js.map +1 -1
  134. package/dist/dictionary/contained/contained-field-dispatcher.d.ts +14 -0
  135. package/dist/dictionary/contained/contained-field-dispatcher.js +3 -0
  136. package/dist/dictionary/contained/contained-field-dispatcher.js.map +1 -0
  137. package/dist/dictionary/contained/contained-field-set.d.ts +1 -1
  138. package/dist/dictionary/contained/contained-field-set.js +12 -11
  139. package/dist/dictionary/contained/contained-field-set.js.map +1 -1
  140. package/dist/dictionary/contained/contained-field-type.d.ts +5 -0
  141. package/dist/dictionary/contained/contained-field-type.js +10 -0
  142. package/dist/dictionary/contained/contained-field-type.js.map +1 -0
  143. package/dist/dictionary/contained/contained-field.d.ts +1 -5
  144. package/dist/dictionary/contained/contained-field.js +1 -7
  145. package/dist/dictionary/contained/contained-field.js.map +1 -1
  146. package/dist/dictionary/contained/contained-group-field.js +2 -1
  147. package/dist/dictionary/contained/contained-group-field.js.map +1 -1
  148. package/dist/dictionary/contained/contained-simple-field.js +2 -1
  149. package/dist/dictionary/contained/contained-simple-field.js.map +1 -1
  150. package/dist/dictionary/{fields-dispatch.d.ts → contained/field-dispatcher.d.ts} +3 -2
  151. package/dist/dictionary/contained/field-dispatcher.js +3 -0
  152. package/dist/dictionary/contained/field-dispatcher.js.map +1 -0
  153. package/dist/dictionary/contained/fields-dispatch.d.ts +6 -0
  154. package/dist/dictionary/contained/fields-dispatch.js +42 -0
  155. package/dist/dictionary/contained/fields-dispatch.js.map +1 -0
  156. package/dist/dictionary/contained/index.d.ts +2 -0
  157. package/dist/dictionary/contained/index.js +2 -0
  158. package/dist/dictionary/contained/index.js.map +1 -1
  159. package/dist/dictionary/contained-set-type.d.ts +5 -0
  160. package/dist/dictionary/contained-set-type.js +10 -0
  161. package/dist/dictionary/contained-set-type.js.map +1 -0
  162. package/dist/dictionary/definition/component-field-definition.js +2 -2
  163. package/dist/dictionary/definition/component-field-definition.js.map +1 -1
  164. package/dist/dictionary/definition/fix-definitions.d.ts +2 -1
  165. package/dist/dictionary/definition/fix-definitions.js.map +1 -1
  166. package/dist/dictionary/definition/group-field-definition.js +2 -2
  167. package/dist/dictionary/definition/group-field-definition.js.map +1 -1
  168. package/dist/dictionary/definition/index.d.ts +0 -1
  169. package/dist/dictionary/definition/index.js +0 -1
  170. package/dist/dictionary/definition/index.js.map +1 -1
  171. package/dist/dictionary/definition/message-definition.js +2 -2
  172. package/dist/dictionary/definition/message-definition.js.map +1 -1
  173. package/dist/dictionary/definition/simple-field-definition.d.ts +1 -1
  174. package/dist/dictionary/definition/simple-field-definition.js +5 -4
  175. package/dist/dictionary/definition/simple-field-definition.js.map +1 -1
  176. package/dist/dictionary/dict-primitive.d.ts +0 -11
  177. package/dist/dictionary/dict-primitive.js +0 -7
  178. package/dist/dictionary/dict-primitive.js.map +1 -1
  179. package/dist/dictionary/fix-definition-source.d.ts +6 -0
  180. package/dist/dictionary/fix-definition-source.js +11 -0
  181. package/dist/dictionary/fix-definition-source.js.map +1 -0
  182. package/dist/dictionary/fix-versions.d.ts +0 -9
  183. package/dist/dictionary/fix-versions.js +1 -39
  184. package/dist/dictionary/fix-versions.js.map +1 -1
  185. package/dist/dictionary/index.d.ts +1 -5
  186. package/dist/dictionary/index.js +1 -5
  187. package/dist/dictionary/index.js.map +1 -1
  188. package/dist/dictionary/parser/fix-repository/abbreviations-parser.d.ts +1 -3
  189. package/dist/dictionary/parser/fix-repository/abbreviations-parser.js +2 -3
  190. package/dist/dictionary/parser/fix-repository/abbreviations-parser.js.map +1 -1
  191. package/dist/dictionary/parser/fix-repository/base-parser.d.ts +2 -4
  192. package/dist/dictionary/parser/fix-repository/base-parser.js +1 -2
  193. package/dist/dictionary/parser/fix-repository/base-parser.js.map +1 -1
  194. package/dist/dictionary/parser/fix-repository/components-parser.d.ts +1 -3
  195. package/dist/dictionary/parser/fix-repository/components-parser.js +2 -3
  196. package/dist/dictionary/parser/fix-repository/components-parser.js.map +1 -1
  197. package/dist/dictionary/parser/fix-repository/data-types-parser.d.ts +1 -3
  198. package/dist/dictionary/parser/fix-repository/data-types-parser.js +2 -3
  199. package/dist/dictionary/parser/fix-repository/data-types-parser.js.map +1 -1
  200. package/dist/dictionary/parser/fix-repository/enums-parser.d.ts +1 -3
  201. package/dist/dictionary/parser/fix-repository/enums-parser.js +2 -3
  202. package/dist/dictionary/parser/fix-repository/enums-parser.js.map +1 -1
  203. package/dist/dictionary/parser/fix-repository/fields-parser.d.ts +1 -3
  204. package/dist/dictionary/parser/fix-repository/fields-parser.js +2 -3
  205. package/dist/dictionary/parser/fix-repository/fields-parser.js.map +1 -1
  206. package/dist/dictionary/parser/fix-repository/messages-parser.d.ts +1 -3
  207. package/dist/dictionary/parser/fix-repository/messages-parser.js +2 -3
  208. package/dist/dictionary/parser/fix-repository/messages-parser.js.map +1 -1
  209. package/dist/dictionary/parser/fix-repository/msg-contents-parser.d.ts +1 -3
  210. package/dist/dictionary/parser/fix-repository/msg-contents-parser.js +2 -3
  211. package/dist/dictionary/parser/fix-repository/msg-contents-parser.js.map +1 -1
  212. package/dist/dictionary/parser/fix-repository/repository-abbreviation.d.ts +5 -0
  213. package/dist/dictionary/parser/fix-repository/repository-abbreviation.js +3 -0
  214. package/dist/dictionary/parser/fix-repository/repository-abbreviation.js.map +1 -0
  215. package/dist/dictionary/parser/fix-repository/repository-component.d.ts +10 -0
  216. package/dist/dictionary/parser/fix-repository/repository-component.js +3 -0
  217. package/dist/dictionary/parser/fix-repository/repository-component.js.map +1 -0
  218. package/dist/dictionary/parser/fix-repository/repository-data-type.d.ts +6 -0
  219. package/dist/dictionary/parser/fix-repository/repository-data-type.js +3 -0
  220. package/dist/dictionary/parser/fix-repository/repository-data-type.js.map +1 -0
  221. package/dist/dictionary/parser/fix-repository/repository-enum.d.ts +7 -0
  222. package/dist/dictionary/parser/fix-repository/repository-enum.js +3 -0
  223. package/dist/dictionary/parser/fix-repository/repository-enum.js.map +1 -0
  224. package/dist/dictionary/parser/fix-repository/repository-field.d.ts +11 -0
  225. package/dist/dictionary/parser/fix-repository/repository-field.js +3 -0
  226. package/dist/dictionary/parser/fix-repository/repository-field.js.map +1 -0
  227. package/dist/dictionary/parser/fix-repository/repository-message.d.ts +11 -0
  228. package/dist/dictionary/parser/fix-repository/repository-message.js +3 -0
  229. package/dist/dictionary/parser/fix-repository/repository-message.js.map +1 -0
  230. package/dist/dictionary/parser/fix-repository/repository-msg-content.d.ts +9 -0
  231. package/dist/dictionary/parser/fix-repository/repository-msg-content.js +3 -0
  232. package/dist/dictionary/parser/fix-repository/repository-msg-content.js.map +1 -0
  233. package/dist/dictionary/parser/fix-repository/repository-msg.d.ts +0 -0
  234. package/dist/dictionary/parser/fix-repository/repository-msg.js +1 -0
  235. package/dist/dictionary/parser/fix-repository/repository-msg.js.map +1 -0
  236. package/dist/dictionary/parser/fix-repository/repository-type.d.ts +0 -53
  237. package/dist/dictionary/parser/fix-repository/repository-type.js +0 -2
  238. package/dist/dictionary/parser/fix-repository/repository-type.js.map +1 -1
  239. package/dist/dictionary/parser/fix-repository/repository-xml-parser.js +10 -10
  240. package/dist/dictionary/parser/fix-repository/repository-xml-parser.js.map +1 -1
  241. package/dist/dictionary/parser/fix-repository/repository.d.ts +12 -1
  242. package/dist/dictionary/parser/fix-repository/repository.js +50 -28
  243. package/dist/dictionary/parser/fix-repository/repository.js.map +1 -1
  244. package/dist/dictionary/parser/fixml/components-parser.d.ts +1 -1
  245. package/dist/dictionary/parser/fixml/components-parser.js.map +1 -1
  246. package/dist/dictionary/parser/fixml/fields-parser.d.ts +1 -1
  247. package/dist/dictionary/parser/fixml/fields-parser.js.map +1 -1
  248. package/dist/dictionary/parser/fixml/fix-xsd-parser.js +3 -2
  249. package/dist/dictionary/parser/fixml/fix-xsd-parser.js.map +1 -1
  250. package/dist/dictionary/parser/fixml/include-graph.js.map +1 -1
  251. package/dist/dictionary/parser/fixml/xsd-parser.d.ts +1 -1
  252. package/dist/dictionary/parser/fixml/xsd-parser.js.map +1 -1
  253. package/dist/dictionary/parser/quickfix/field-definition-parser.d.ts +4 -4
  254. package/dist/dictionary/parser/quickfix/field-definition-parser.js +3 -3
  255. package/dist/dictionary/parser/quickfix/field-definition-parser.js.map +1 -1
  256. package/dist/dictionary/parser/quickfix/field-set-parser.d.ts +4 -4
  257. package/dist/dictionary/parser/quickfix/field-set-parser.js +3 -3
  258. package/dist/dictionary/parser/quickfix/field-set-parser.js.map +1 -1
  259. package/dist/dictionary/parser/quickfix/message-parser.d.ts +4 -4
  260. package/dist/dictionary/parser/quickfix/message-parser.js +3 -3
  261. package/dist/dictionary/parser/quickfix/message-parser.js.map +1 -1
  262. package/dist/dictionary/parser/quickfix/node-parser.d.ts +4 -5
  263. package/dist/dictionary/parser/quickfix/node-parser.js +4 -4
  264. package/dist/dictionary/parser/quickfix/node-parser.js.map +1 -1
  265. package/dist/dictionary/parser/quickfix/parse-state.d.ts +8 -0
  266. package/dist/dictionary/parser/quickfix/parse-state.js +13 -0
  267. package/dist/dictionary/parser/quickfix/parse-state.js.map +1 -0
  268. package/dist/dictionary/parser/quickfix/quick-fix-xml-file-parser.d.ts +1 -9
  269. package/dist/dictionary/parser/quickfix/quick-fix-xml-file-parser.js +28 -35
  270. package/dist/dictionary/parser/quickfix/quick-fix-xml-file-parser.js.map +1 -1
  271. package/dist/dictionary/sax-node.d.ts +6 -0
  272. package/dist/{types/FIX4.4/quickfix/set/header.js → dictionary/sax-node.js} +1 -1
  273. package/dist/dictionary/sax-node.js.map +1 -0
  274. package/dist/dictionary/set-reduce.d.ts +5 -12
  275. package/dist/dictionary/set-reduce.js +28 -26
  276. package/dist/dictionary/set-reduce.js.map +1 -1
  277. package/dist/dictionary/type-dispatcher.d.ts +12 -0
  278. package/dist/dictionary/type-dispatcher.js +3 -0
  279. package/dist/dictionary/type-dispatcher.js.map +1 -0
  280. package/dist/dictionary/version-util.d.ts +4 -0
  281. package/dist/dictionary/version-util.js +36 -0
  282. package/dist/dictionary/version-util.js.map +1 -0
  283. package/dist/execution-report.test.d.ts +0 -0
  284. package/dist/execution-report.test.js +1 -0
  285. package/dist/execution-report.test.js.map +1 -0
  286. package/dist/experiment.d.ts +0 -0
  287. package/dist/experiment.js +1 -0
  288. package/dist/experiment.js.map +1 -0
  289. package/dist/fix-repo-dict.test.d.ts +0 -0
  290. package/dist/fix-repo-dict.test.js +1 -0
  291. package/dist/fix-repo-dict.test.js.map +1 -0
  292. package/dist/fix-session-state-args.d.ts +0 -0
  293. package/dist/fix-session-state-args.js +1 -0
  294. package/dist/fix-session-state-args.js.map +1 -0
  295. package/dist/fix-session-state.d.ts +0 -0
  296. package/dist/fix-session-state.js +1 -0
  297. package/dist/fix-session-state.js.map +1 -0
  298. package/dist/fix-session.d.ts +0 -0
  299. package/dist/fix-session.js +1 -0
  300. package/dist/fix-session.js.map +1 -0
  301. package/dist/fix.txt +1 -0
  302. package/dist/fixml-alloc-parse.test.d.ts +0 -0
  303. package/dist/fixml-alloc-parse.test.js +1 -0
  304. package/dist/fixml-alloc-parse.test.js.map +1 -0
  305. package/dist/fixml-mkt-data-fut-parse.test.d.ts +0 -0
  306. package/dist/fixml-mkt-data-fut-parse.test.js +1 -0
  307. package/dist/fixml-mkt-data-fut-parse.test.js.map +1 -0
  308. package/dist/fixml-mkt-data-settle-parse.test.d.ts +0 -0
  309. package/dist/fixml-mkt-data-settle-parse.test.js +1 -0
  310. package/dist/fixml-mkt-data-settle-parse.test.js.map +1 -0
  311. package/dist/fixml-tc-bi-lateral-parse.test.d.ts +0 -0
  312. package/dist/fixml-tc-bi-lateral-parse.test.js +1 -0
  313. package/dist/fixml-tc-bi-lateral-parse.test.js.map +1 -0
  314. package/dist/includes.test.d.ts +0 -0
  315. package/dist/includes.test.js +1 -0
  316. package/dist/includes.test.js.map +1 -0
  317. package/dist/index.d.ts +1 -0
  318. package/dist/index.js +1 -0
  319. package/dist/index.js.map +1 -1
  320. package/dist/jsfix-cmd.d.ts +5 -0
  321. package/dist/jsfix-cmd.js +28 -21
  322. package/dist/jsfix-cmd.js.map +1 -1
  323. package/dist/launcher.d.ts +0 -0
  324. package/dist/launcher.js +1 -0
  325. package/dist/launcher.js.map +1 -0
  326. package/dist/logon.test.d.ts +0 -0
  327. package/dist/logon.test.js +1 -0
  328. package/dist/logon.test.js.map +1 -0
  329. package/dist/make-fix-session.d.ts +0 -0
  330. package/dist/make-fix-session.js +1 -0
  331. package/dist/make-fix-session.js.map +1 -0
  332. package/dist/memory-store.test.d.ts +0 -0
  333. package/dist/memory-store.test.js +1 -0
  334. package/dist/memory-store.test.js.map +1 -0
  335. package/dist/object.json +691 -0
  336. package/dist/qf-full-msg.test.d.ts +0 -0
  337. package/dist/qf-full-msg.test.js +1 -0
  338. package/dist/qf-full-msg.test.js.map +1 -0
  339. package/dist/repo-full-ascii-msg.test.d.ts +0 -0
  340. package/dist/repo-full-ascii-msg.test.js +1 -0
  341. package/dist/repo-full-ascii-msg.test.js.map +1 -0
  342. package/dist/runtime/DITokens.d.ts +20 -0
  343. package/dist/runtime/DITokens.js +25 -0
  344. package/dist/runtime/DITokens.js.map +1 -0
  345. package/dist/runtime/app-launcher.d.ts +27 -0
  346. package/dist/runtime/app-launcher.js +131 -0
  347. package/dist/runtime/app-launcher.js.map +1 -0
  348. package/dist/runtime/di-tokens.d.ts +28 -0
  349. package/dist/runtime/di-tokens.js +33 -0
  350. package/dist/runtime/di-tokens.js.map +1 -0
  351. package/dist/runtime/engine-factory.d.ts +4 -0
  352. package/dist/runtime/engine-factory.js +3 -0
  353. package/dist/runtime/engine-factory.js.map +1 -0
  354. package/dist/runtime/index.d.ts +5 -0
  355. package/dist/runtime/index.js +18 -0
  356. package/dist/runtime/index.js.map +1 -0
  357. package/dist/runtime/launcher.d.ts +29 -0
  358. package/dist/runtime/launcher.js +131 -0
  359. package/dist/runtime/launcher.js.map +1 -0
  360. package/dist/runtime/make-config.d.ts +11 -0
  361. package/dist/runtime/make-config.js +57 -0
  362. package/dist/runtime/make-config.js.map +1 -0
  363. package/dist/runtime/session-container.d.ts +16 -0
  364. package/dist/runtime/session-container.js +168 -0
  365. package/dist/runtime/session-container.js.map +1 -0
  366. package/dist/runtime/session-launcher.d.ts +26 -0
  367. package/dist/runtime/session-launcher.js +131 -0
  368. package/dist/runtime/session-launcher.js.map +1 -0
  369. package/dist/sample/http/oms/app.d.ts +1 -1
  370. package/dist/sample/http/oms/app.js +16 -14
  371. package/dist/sample/http/oms/app.js.map +1 -1
  372. package/dist/sample/http/oms/http-client.js +22 -2
  373. package/dist/sample/http/oms/http-client.js.map +1 -1
  374. package/dist/sample/http/oms/http-server.js +21 -2
  375. package/dist/sample/http/oms/http-server.js.map +1 -1
  376. package/dist/sample/launcher.d.ts +21 -4
  377. package/dist/sample/launcher.js +87 -19
  378. package/dist/sample/launcher.js.map +1 -1
  379. package/dist/sample/tcp/qf-md/app.d.ts +1 -1
  380. package/dist/sample/tcp/qf-md/app.js +11 -11
  381. package/dist/sample/tcp/qf-md/app.js.map +1 -1
  382. package/dist/sample/tcp/qf-md/md-client.js +21 -2
  383. package/dist/sample/tcp/qf-md/md-client.js.map +1 -1
  384. package/dist/sample/tcp/qf-md/md-server.js +20 -2
  385. package/dist/sample/tcp/qf-md/md-server.js.map +1 -1
  386. package/dist/sample/tcp/recovering-skeleton/app.d.ts +1 -1
  387. package/dist/sample/tcp/recovering-skeleton/app.js +36 -16
  388. package/dist/sample/tcp/recovering-skeleton/app.js.map +1 -1
  389. package/dist/sample/tcp/recovering-skeleton/respawn-acceptor.d.ts +3 -1
  390. package/dist/sample/tcp/recovering-skeleton/respawn-acceptor.js +30 -8
  391. package/dist/sample/tcp/recovering-skeleton/respawn-acceptor.js.map +1 -1
  392. package/dist/sample/tcp/recovering-skeleton/skeleton-client.d.ts +1 -1
  393. package/dist/sample/tcp/recovering-skeleton/skeleton-client.js +22 -3
  394. package/dist/sample/tcp/recovering-skeleton/skeleton-client.js.map +1 -1
  395. package/dist/sample/tcp/recovering-skeleton/skeleton-server.js +21 -2
  396. package/dist/sample/tcp/recovering-skeleton/skeleton-server.js.map +1 -1
  397. package/dist/sample/tcp/skeleton/app.d.ts +1 -1
  398. package/dist/sample/tcp/skeleton/app.js +8 -13
  399. package/dist/sample/tcp/skeleton/app.js.map +1 -1
  400. package/dist/sample/tcp/skeleton/skeleton-session.d.ts +1 -1
  401. package/dist/sample/tcp/skeleton/skeleton-session.js +26 -4
  402. package/dist/sample/tcp/skeleton/skeleton-session.js.map +1 -1
  403. package/dist/sample/tcp/tls-trade-capture/app.d.ts +1 -1
  404. package/dist/sample/tcp/tls-trade-capture/app.js +4 -24
  405. package/dist/sample/tcp/tls-trade-capture/app.js.map +1 -1
  406. package/dist/sample/tcp/trade-capture/app-launcher.d.ts +6 -0
  407. package/dist/sample/tcp/trade-capture/app-launcher.js +21 -0
  408. package/dist/sample/tcp/trade-capture/app-launcher.js.map +1 -0
  409. package/dist/sample/tcp/trade-capture/app-launher.d.ts +0 -0
  410. package/dist/sample/tcp/trade-capture/app-launher.js +1 -0
  411. package/dist/sample/tcp/trade-capture/app-launher.js.map +1 -0
  412. package/dist/sample/tcp/trade-capture/app.d.ts +1 -1
  413. package/dist/sample/tcp/trade-capture/app.js +4 -21
  414. package/dist/sample/tcp/trade-capture/app.js.map +1 -1
  415. package/dist/sample/tcp/trade-capture/jsfix.test_client.txt +11 -0
  416. package/dist/sample/tcp/trade-capture/jsfix.test_server.txt +10 -0
  417. package/dist/sample/tcp/trade-capture/trade-capture-client.js.map +1 -1
  418. package/dist/sample/tcp/trade-capture/trade-capture-server.js.map +1 -1
  419. package/dist/sample/tcp/trade-capture/trade-factory.js +7 -1
  420. package/dist/sample/tcp/trade-capture/trade-factory.js.map +1 -1
  421. package/dist/segment-description.d.ts +0 -0
  422. package/dist/segment-description.js +1 -0
  423. package/dist/segment-description.js.map +1 -0
  424. package/dist/segment-summary.d.ts +0 -0
  425. package/dist/segment-summary.js +1 -0
  426. package/dist/segment-summary.js.map +1 -0
  427. package/dist/segment-type.d.ts +0 -0
  428. package/dist/segment-type.js +1 -0
  429. package/dist/segment-type.js.map +1 -0
  430. package/dist/session-description.d.ts +0 -0
  431. package/dist/session-description.js +1 -0
  432. package/dist/session-description.js.map +1 -0
  433. package/dist/session-msg-factory.d.ts +0 -0
  434. package/dist/session-msg-factory.js +1 -0
  435. package/dist/session-msg-factory.js.map +1 -0
  436. package/dist/session-state.d.ts +0 -0
  437. package/dist/session-state.js +1 -0
  438. package/dist/session-state.js.map +1 -0
  439. package/dist/session-state.test.d.ts +0 -0
  440. package/dist/session-state.test.js +1 -0
  441. package/dist/session-state.test.js.map +1 -0
  442. package/dist/session.test.d.ts +0 -0
  443. package/dist/session.test.js +1 -0
  444. package/dist/session.test.js.map +1 -0
  445. package/dist/setup.d.ts +0 -0
  446. package/dist/setup.js +1 -0
  447. package/dist/setup.js.map +1 -0
  448. package/dist/skeleton-runner.d.ts +0 -0
  449. package/dist/skeleton-runner.js +1 -0
  450. package/dist/skeleton-runner.js.map +1 -0
  451. package/dist/store/fix-msg-ascii-store-resend.d.ts +1 -1
  452. package/dist/store/fix-msg-ascii-store-resend.js +2 -1
  453. package/dist/store/fix-msg-ascii-store-resend.js.map +1 -1
  454. package/dist/store/fix-msg-memory-store.d.ts +1 -1
  455. package/dist/store/fix-msg-memory-store.js.map +1 -1
  456. package/dist/store/fix-msg-store-record.d.ts +2 -0
  457. package/dist/store/fix-msg-store-record.js +4 -0
  458. package/dist/store/fix-msg-store-record.js.map +1 -1
  459. package/dist/store/fix-msg-store-state.d.ts +6 -0
  460. package/dist/store/fix-msg-store-state.js +3 -0
  461. package/dist/store/fix-msg-store-state.js.map +1 -0
  462. package/dist/store/fix-msg-store.d.ts +1 -6
  463. package/dist/store/fix-msg-store.js.map +1 -1
  464. package/dist/structure.json +631 -0
  465. package/dist/tag-pos.d.ts +0 -0
  466. package/dist/tag-pos.js +1 -0
  467. package/dist/tag-pos.js.map +1 -0
  468. package/dist/tag-type.d.ts +0 -0
  469. package/dist/tag-type.js +1 -0
  470. package/dist/tag-type.js.map +1 -0
  471. package/dist/tags.d.ts +0 -0
  472. package/dist/tags.js +1 -0
  473. package/dist/tags.js.map +1 -0
  474. package/dist/test/ascii/ascii-encoder.test.d.ts +1 -0
  475. package/dist/test/{ascii-encode.test.js → ascii/ascii-encoder.test.js} +140 -49
  476. package/dist/test/ascii/ascii-encoder.test.js.map +1 -0
  477. package/dist/test/ascii/ascii-parser.test.d.ts +1 -0
  478. package/dist/test/ascii/ascii-parser.test.js +123 -0
  479. package/dist/test/ascii/ascii-parser.test.js.map +1 -0
  480. package/dist/test/ascii/ascii-segment.test.d.ts +1 -0
  481. package/dist/test/ascii/ascii-segment.test.js +86 -0
  482. package/dist/test/ascii/ascii-segment.test.js.map +1 -0
  483. package/dist/test/ascii/ascii-store-replay.test.d.ts +1 -0
  484. package/dist/test/ascii/ascii-store-replay.test.js +92 -0
  485. package/dist/test/ascii/ascii-store-replay.test.js.map +1 -0
  486. package/dist/test/ascii/ascii-tag-pos.test.d.ts +1 -0
  487. package/dist/test/ascii/ascii-tag-pos.test.js +105 -0
  488. package/dist/test/ascii/ascii-tag-pos.test.js.map +1 -0
  489. package/dist/test/ascii/execution-report.test.d.ts +1 -0
  490. package/dist/test/ascii/execution-report.test.js +489 -0
  491. package/dist/test/ascii/execution-report.test.js.map +1 -0
  492. package/dist/test/ascii/fix-log-replay.test.d.ts +1 -0
  493. package/dist/test/ascii/fix-log-replay.test.js +47 -0
  494. package/dist/test/ascii/fix-log-replay.test.js.map +1 -0
  495. package/dist/test/ascii/fix-repo-dict.test.d.ts +1 -0
  496. package/dist/test/ascii/fix-repo-dict.test.js +128 -0
  497. package/dist/test/ascii/fix-repo-dict.test.js.map +1 -0
  498. package/dist/test/ascii/includes.test.d.ts +1 -0
  499. package/dist/test/ascii/includes.test.js +43 -0
  500. package/dist/test/ascii/includes.test.js.map +1 -0
  501. package/dist/test/ascii/logon.test.d.ts +1 -0
  502. package/dist/test/ascii/logon.test.js +91 -0
  503. package/dist/test/ascii/logon.test.js.map +1 -0
  504. package/dist/test/ascii/memory-store.test.d.ts +1 -0
  505. package/dist/test/ascii/memory-store.test.js +75 -0
  506. package/dist/test/ascii/memory-store.test.js.map +1 -0
  507. package/dist/test/ascii/qf-full-msg.test.d.ts +1 -0
  508. package/dist/test/ascii/qf-full-msg.test.js +81 -0
  509. package/dist/test/ascii/qf-full-msg.test.js.map +1 -0
  510. package/dist/test/ascii/repo-full-ascii-msg.test.d.ts +1 -0
  511. package/dist/test/ascii/repo-full-ascii-msg.test.js +87 -0
  512. package/dist/test/ascii/repo-full-ascii-msg.test.js.map +1 -0
  513. package/dist/test/ascii/session-state.test.d.ts +1 -0
  514. package/dist/test/ascii/session-state.test.js +73 -0
  515. package/dist/test/ascii/session-state.test.js.map +1 -0
  516. package/dist/test/ascii/session.test.d.ts +1 -0
  517. package/dist/test/ascii/session.test.js +280 -0
  518. package/dist/test/ascii/session.test.js.map +1 -0
  519. package/dist/test/ascii/time-formatter.test.d.ts +1 -0
  520. package/dist/test/ascii/time-formatter.test.js +80 -0
  521. package/dist/test/ascii/time-formatter.test.js.map +1 -0
  522. package/dist/test/ascii/view-decode.test.d.ts +1 -0
  523. package/dist/test/ascii/view-decode.test.js +183 -0
  524. package/dist/test/ascii/view-decode.test.js.map +1 -0
  525. package/dist/test/ascii-encoder.test.d.ts +1 -1
  526. package/dist/test/ascii-encoder.test.js +51 -48
  527. package/dist/test/ascii-encoder.test.js.map +1 -1
  528. package/dist/test/ascii-parser.test.d.ts +1 -1
  529. package/dist/test/ascii-parser.test.js +26 -45
  530. package/dist/test/ascii-parser.test.js.map +1 -1
  531. package/dist/test/ascii-segment.test.d.ts +1 -1
  532. package/dist/test/ascii-segment.test.js +13 -34
  533. package/dist/test/ascii-segment.test.js.map +1 -1
  534. package/dist/test/ascii-store-replay.test.d.ts +1 -1
  535. package/dist/test/ascii-store-replay.test.js +12 -41
  536. package/dist/test/ascii-store-replay.test.js.map +1 -1
  537. package/dist/test/ascii-tag-pos.test.d.ts +1 -1
  538. package/dist/test/ascii-tag-pos.test.js +8 -8
  539. package/dist/test/ascii-tag-pos.test.js.map +1 -1
  540. package/dist/test/elastic-buffer.test.d.ts +1 -1
  541. package/dist/test/elastic-buffer.test.js +3 -1
  542. package/dist/test/elastic-buffer.test.js.map +1 -1
  543. package/dist/test/encode-proxy.test.d.ts +1 -1
  544. package/dist/test/encode-proxy.test.js +9 -9
  545. package/dist/test/encode-proxy.test.js.map +1 -1
  546. package/dist/test/env/experiment.d.ts +23 -0
  547. package/dist/test/env/experiment.js +33 -0
  548. package/dist/test/env/experiment.js.map +1 -0
  549. package/dist/test/env/parsing-result.d.ts +10 -0
  550. package/dist/test/env/parsing-result.js +14 -0
  551. package/dist/test/env/parsing-result.js.map +1 -0
  552. package/dist/test/env/setup.d.ts +39 -0
  553. package/dist/test/env/setup.js +98 -0
  554. package/dist/test/env/setup.js.map +1 -0
  555. package/dist/test/env/skeleton-runner.d.ts +15 -0
  556. package/dist/test/env/skeleton-runner.js +108 -0
  557. package/dist/test/env/skeleton-runner.js.map +1 -0
  558. package/dist/test/env/test-recovery.d.ts +13 -0
  559. package/dist/test/env/test-recovery.js +41 -0
  560. package/dist/test/env/test-recovery.js.map +1 -0
  561. package/dist/test/env/to-views.d.ts +11 -0
  562. package/dist/test/env/to-views.js +56 -0
  563. package/dist/test/env/to-views.js.map +1 -0
  564. package/dist/test/execution-report.test.d.ts +1 -1
  565. package/dist/test/execution-report.test.js +53 -49
  566. package/dist/test/execution-report.test.js.map +1 -1
  567. package/dist/test/experiment.d.ts +23 -0
  568. package/dist/test/experiment.js +33 -0
  569. package/dist/test/experiment.js.map +1 -0
  570. package/dist/test/expieriment.d.ts +23 -0
  571. package/dist/test/expieriment.js +33 -0
  572. package/dist/test/expieriment.js.map +1 -0
  573. package/dist/test/fix-log-replay.test.d.ts +1 -1
  574. package/dist/test/fix-log-replay.test.js +7 -5
  575. package/dist/test/fix-log-replay.test.js.map +1 -1
  576. package/dist/test/fix-repo-dict.test.d.ts +1 -1
  577. package/dist/test/fix-repo-dict.test.js +6 -5
  578. package/dist/test/fix-repo-dict.test.js.map +1 -1
  579. package/dist/test/fixml/fixml-alloc-parse.test.d.ts +1 -0
  580. package/dist/test/fixml/fixml-alloc-parse.test.js +161 -0
  581. package/dist/test/fixml/fixml-alloc-parse.test.js.map +1 -0
  582. package/dist/test/fixml/fixml-mkt-data-fut-parse.test.d.ts +1 -0
  583. package/dist/test/fixml/fixml-mkt-data-fut-parse.test.js +61 -0
  584. package/dist/test/fixml/fixml-mkt-data-fut-parse.test.js.map +1 -0
  585. package/dist/test/fixml/fixml-mkt-data-settle-parse.test.d.ts +1 -0
  586. package/dist/test/fixml/fixml-mkt-data-settle-parse.test.js +34 -0
  587. package/dist/test/fixml/fixml-mkt-data-settle-parse.test.js.map +1 -0
  588. package/dist/test/fixml/fixml-tc-bi-lateral-parse.test.d.ts +1 -0
  589. package/dist/test/fixml/fixml-tc-bi-lateral-parse.test.js +97 -0
  590. package/dist/test/fixml/fixml-tc-bi-lateral-parse.test.js.map +1 -0
  591. package/dist/test/fixml/repo-full-fixml-msg.test.d.ts +1 -0
  592. package/dist/test/fixml/repo-full-fixml-msg.test.js +143 -0
  593. package/dist/test/fixml/repo-full-fixml-msg.test.js.map +1 -0
  594. package/dist/test/fixml-alloc-parse.test.d.ts +1 -1
  595. package/dist/test/fixml-alloc-parse.test.js +2 -1
  596. package/dist/test/fixml-alloc-parse.test.js.map +1 -1
  597. package/dist/test/fixml-mkt-data-fut-parse.test.d.ts +1 -1
  598. package/dist/test/fixml-mkt-data-fut-parse.test.js +2 -1
  599. package/dist/test/fixml-mkt-data-fut-parse.test.js.map +1 -1
  600. package/dist/test/fixml-mkt-data-settle-parse.test.d.ts +1 -1
  601. package/dist/test/fixml-mkt-data-settle-parse.test.js +2 -1
  602. package/dist/test/fixml-mkt-data-settle-parse.test.js.map +1 -1
  603. package/dist/test/fixml-tc-bi-lateral-parse.test.d.ts +1 -1
  604. package/dist/test/fixml-tc-bi-lateral-parse.test.js +2 -1
  605. package/dist/test/fixml-tc-bi-lateral-parse.test.js.map +1 -1
  606. package/dist/test/includes.test.d.ts +1 -1
  607. package/dist/test/includes.test.js +1 -0
  608. package/dist/test/includes.test.js.map +1 -1
  609. package/dist/test/logon.test.d.ts +1 -1
  610. package/dist/test/logon.test.js +11 -11
  611. package/dist/test/logon.test.js.map +1 -1
  612. package/dist/test/memory-store.test.d.ts +1 -1
  613. package/dist/test/memory-store.test.js +11 -8
  614. package/dist/test/memory-store.test.js.map +1 -1
  615. package/dist/test/qf-full-msg.test.d.ts +1 -1
  616. package/dist/test/qf-full-msg.test.js +13 -9
  617. package/dist/test/qf-full-msg.test.js.map +1 -1
  618. package/dist/test/repo-full-ascii-msg.test.d.ts +1 -1
  619. package/dist/test/repo-full-ascii-msg.test.js +14 -10
  620. package/dist/test/repo-full-ascii-msg.test.js.map +1 -1
  621. package/dist/test/repo-full-fixml-msg.test.d.ts +1 -1
  622. package/dist/test/repo-full-fixml-msg.test.js +7 -4
  623. package/dist/test/repo-full-fixml-msg.test.js.map +1 -1
  624. package/dist/test/session-state.test.d.ts +1 -1
  625. package/dist/test/session-state.test.js +1 -0
  626. package/dist/test/session-state.test.js.map +1 -1
  627. package/dist/test/session.test.d.ts +1 -1
  628. package/dist/test/session.test.js +13 -144
  629. package/dist/test/session.test.js.map +1 -1
  630. package/dist/test/setup.d.ts +45 -0
  631. package/dist/test/setup.js +102 -0
  632. package/dist/test/setup.js.map +1 -0
  633. package/dist/test/skeleton-runner.d.ts +15 -0
  634. package/dist/test/skeleton-runner.js +108 -0
  635. package/dist/test/skeleton-runner.js.map +1 -0
  636. package/dist/test/time-formatter.test.d.ts +1 -1
  637. package/dist/test/time-formatter.test.js +3 -1
  638. package/dist/test/time-formatter.test.js.map +1 -1
  639. package/dist/test/to-views.d.ts +1 -1
  640. package/dist/test/to-views.js +5 -4
  641. package/dist/test/to-views.js.map +1 -1
  642. package/dist/test/view-decode.test.d.ts +1 -1
  643. package/dist/test/view-decode.test.js +9 -34
  644. package/dist/test/view-decode.test.js.map +1 -1
  645. package/dist/time-formatter.test.d.ts +0 -0
  646. package/dist/time-formatter.test.js +1 -0
  647. package/dist/time-formatter.test.js.map +1 -0
  648. package/dist/to-views.d.ts +0 -0
  649. package/dist/to-views.js +1 -0
  650. package/dist/to-views.js.map +1 -0
  651. package/dist/token.txt +248 -0
  652. package/dist/transport/FixEntity.d.ts +8 -0
  653. package/dist/transport/FixEntity.js +12 -0
  654. package/dist/transport/FixEntity.js.map +1 -0
  655. package/dist/transport/a-session-msg-factory.d.ts +2 -2
  656. package/dist/transport/a-session-msg-factory.js.map +1 -1
  657. package/dist/transport/ascii/ascii-msg-transmitter.js +25 -6
  658. package/dist/transport/ascii/ascii-msg-transmitter.js.map +1 -1
  659. package/dist/transport/ascii/ascii-session-msg-factory.d.ts +2 -2
  660. package/dist/transport/ascii/ascii-session-msg-factory.js +1 -1
  661. package/dist/transport/ascii/ascii-session-msg-factory.js.map +1 -1
  662. package/dist/transport/ascii/ascii-session.d.ts +1 -1
  663. package/dist/transport/ascii/ascii-session.js +26 -23
  664. package/dist/transport/ascii/ascii-session.js.map +1 -1
  665. package/dist/transport/ascii/index.d.ts +0 -1
  666. package/dist/transport/ascii/index.js +0 -1
  667. package/dist/transport/ascii/index.js.map +1 -1
  668. package/dist/transport/duplex/http-duplex.d.ts +1 -1
  669. package/dist/transport/duplex/http-duplex.js.map +1 -1
  670. package/dist/transport/duplex/tcp-duplex.js +22 -2
  671. package/dist/transport/duplex/tcp-duplex.js.map +1 -1
  672. package/dist/transport/factory/index.d.ts +1 -0
  673. package/dist/transport/factory/index.js +14 -0
  674. package/dist/transport/factory/index.js.map +1 -0
  675. package/dist/transport/{msg-transport.d.ts → factory/msg-transport.d.ts} +4 -4
  676. package/dist/transport/factory/msg-transport.js +61 -0
  677. package/dist/transport/factory/msg-transport.js.map +1 -0
  678. package/dist/transport/fix-acceptor.d.ts +2 -2
  679. package/dist/transport/fix-acceptor.js.map +1 -1
  680. package/dist/transport/fix-entity.d.ts +8 -0
  681. package/dist/transport/fix-entity.js +12 -0
  682. package/dist/transport/fix-entity.js.map +1 -0
  683. package/dist/transport/fix-initiator.d.ts +2 -2
  684. package/dist/transport/fix-initiator.js.map +1 -1
  685. package/dist/transport/fix-msg-factory.d.ts +1 -1
  686. package/dist/transport/fix-msg-factory.js.map +1 -1
  687. package/dist/transport/fix-session-state-args.d.ts +8 -0
  688. package/dist/transport/fix-session-state-args.js +3 -0
  689. package/dist/transport/fix-session-state-args.js.map +1 -0
  690. package/dist/transport/fix-session-state.d.ts +3 -41
  691. package/dist/transport/fix-session-state.js +21 -54
  692. package/dist/transport/fix-session-state.js.map +1 -1
  693. package/dist/transport/fix-session.d.ts +3 -2
  694. package/dist/transport/fix-session.js +44 -42
  695. package/dist/transport/fix-session.js.map +1 -1
  696. package/dist/transport/fixml/fixml-msg-transmitter.js +23 -5
  697. package/dist/transport/fixml/fixml-msg-transmitter.js.map +1 -1
  698. package/dist/transport/fixml/fixml-session-msg-factory.d.ts +2 -2
  699. package/dist/transport/fixml/fixml-session-msg-factory.js +1 -1
  700. package/dist/transport/fixml/fixml-session-msg-factory.js.map +1 -1
  701. package/dist/transport/fixml/fixml-session.d.ts +1 -1
  702. package/dist/transport/fixml/fixml-session.js +3 -3
  703. package/dist/transport/fixml/fixml-session.js.map +1 -1
  704. package/dist/transport/fixml/index.d.ts +0 -2
  705. package/dist/transport/fixml/index.js +0 -2
  706. package/dist/transport/fixml/index.js.map +1 -1
  707. package/dist/transport/http/html-options.d.ts +8 -0
  708. package/dist/{store/replay-record.js → transport/http/html-options.js} +1 -1
  709. package/dist/transport/http/html-options.js.map +1 -0
  710. package/dist/transport/http/html-route.d.ts +5 -0
  711. package/dist/{types/FIX4.4/quickfix/set/trailer.js → transport/http/html-route.js} +1 -1
  712. package/dist/transport/http/html-route.js.map +1 -0
  713. package/dist/transport/http/http-acceptor-listener.d.ts +7 -0
  714. package/dist/transport/http/http-acceptor-listener.js +68 -0
  715. package/dist/transport/http/http-acceptor-listener.js.map +1 -0
  716. package/dist/transport/http/http-acceptor.js +24 -5
  717. package/dist/transport/http/http-acceptor.js.map +1 -1
  718. package/dist/transport/http/http-adapter.d.ts +7 -0
  719. package/dist/transport/http/http-adapter.js +3 -0
  720. package/dist/transport/http/http-adapter.js.map +1 -0
  721. package/dist/transport/http/http-initiator.d.ts +9 -3
  722. package/dist/transport/http/http-initiator.js +57 -26
  723. package/dist/transport/http/http-initiator.js.map +1 -1
  724. package/dist/transport/http/http-json-sample-adapter.d.ts +2 -1
  725. package/dist/transport/http/http-json-sample-adapter.js +21 -2
  726. package/dist/transport/http/http-json-sample-adapter.js.map +1 -1
  727. package/dist/transport/http/http-transaction.d.ts +1 -1
  728. package/dist/transport/http/http-transaction.js.map +1 -1
  729. package/dist/transport/http/http-transport-description.d.ts +8 -0
  730. package/dist/transport/http/http-transport-description.js +3 -0
  731. package/dist/transport/http/http-transport-description.js.map +1 -0
  732. package/dist/transport/http/index.d.ts +1 -0
  733. package/dist/transport/http/index.js +1 -0
  734. package/dist/transport/http/index.js.map +1 -1
  735. package/dist/transport/index.d.ts +11 -10
  736. package/dist/transport/index.js +11 -10
  737. package/dist/transport/index.js.map +1 -1
  738. package/dist/transport/{make-fixl-session.d.ts → make-fix-session.d.ts} +0 -0
  739. package/dist/transport/make-fix-session.js +3 -0
  740. package/dist/transport/make-fix-session.js.map +1 -0
  741. package/dist/transport/msg-application.d.ts +12 -0
  742. package/dist/transport/msg-application.js +3 -0
  743. package/dist/transport/msg-application.js.map +1 -0
  744. package/dist/transport/msg-transmitter.d.ts +5 -5
  745. package/dist/transport/msg-transmitter.js +2 -3
  746. package/dist/transport/msg-transmitter.js.map +1 -1
  747. package/dist/transport/session/a-session-msg-factory.d.ts +23 -0
  748. package/dist/transport/session/a-session-msg-factory.js +58 -0
  749. package/dist/transport/session/a-session-msg-factory.js.map +1 -0
  750. package/dist/transport/session/fix-session-state-args.d.ts +8 -0
  751. package/dist/transport/session/fix-session-state-args.js +3 -0
  752. package/dist/transport/session/fix-session-state-args.js.map +1 -0
  753. package/dist/transport/session/fix-session-state.d.ts +32 -0
  754. package/dist/transport/session/fix-session-state.js +133 -0
  755. package/dist/transport/session/fix-session-state.js.map +1 -0
  756. package/dist/transport/session/fix-session.d.ts +50 -0
  757. package/dist/transport/session/fix-session.js +291 -0
  758. package/dist/transport/session/fix-session.js.map +1 -0
  759. package/dist/transport/session/make-fix-session.d.ts +5 -0
  760. package/dist/transport/session/make-fix-session.js +3 -0
  761. package/dist/transport/session/make-fix-session.js.map +1 -0
  762. package/dist/transport/session/session-description.d.ts +17 -0
  763. package/dist/transport/session/session-description.js +3 -0
  764. package/dist/transport/session/session-description.js.map +1 -0
  765. package/dist/transport/session/session-msg-factory.d.ts +15 -0
  766. package/dist/transport/session/session-msg-factory.js +3 -0
  767. package/dist/transport/session/session-msg-factory.js.map +1 -0
  768. package/dist/transport/session/session-state.d.ts +25 -0
  769. package/dist/transport/session/session-state.js +30 -0
  770. package/dist/transport/session/session-state.js.map +1 -0
  771. package/dist/transport/session-description.d.ts +1 -48
  772. package/dist/transport/session-description.js.map +1 -1
  773. package/dist/transport/session-msg-factory.d.ts +7 -20
  774. package/dist/transport/session-msg-factory.js +0 -150
  775. package/dist/transport/session-msg-factory.js.map +1 -1
  776. package/dist/transport/session-state.d.ts +25 -0
  777. package/dist/transport/session-state.js +30 -0
  778. package/dist/transport/session-state.js.map +1 -0
  779. package/dist/transport/tcp/index.d.ts +3 -2
  780. package/dist/transport/tcp/index.js +3 -2
  781. package/dist/transport/tcp/index.js.map +1 -1
  782. package/dist/transport/tcp/recovering-tcp-initiator.d.ts +7 -9
  783. package/dist/transport/tcp/recovering-tcp-initiator.js +41 -16
  784. package/dist/transport/tcp/recovering-tcp-initiator.js.map +1 -1
  785. package/dist/transport/tcp/tcp-acceptor-listener.d.ts +7 -0
  786. package/dist/transport/tcp/tcp-acceptor-listener.js +70 -0
  787. package/dist/transport/tcp/tcp-acceptor-listener.js.map +1 -0
  788. package/dist/transport/tcp/tcp-acceptor.js +29 -12
  789. package/dist/transport/tcp/tcp-acceptor.js.map +1 -1
  790. package/dist/transport/tcp/tcp-initiator-connector.d.ts +10 -0
  791. package/dist/transport/tcp/tcp-initiator-connector.js +97 -0
  792. package/dist/transport/tcp/tcp-initiator-connector.js.map +1 -0
  793. package/dist/transport/tcp/tcp-initiator.d.ts +2 -2
  794. package/dist/transport/tcp/tcp-initiator.js +28 -9
  795. package/dist/transport/tcp/tcp-initiator.js.map +1 -1
  796. package/dist/transport/tcp/tcp-transport-description.d.ts +6 -0
  797. package/dist/transport/tcp/tcp-transport-description.js +3 -0
  798. package/dist/transport/tcp/tcp-transport-description.js.map +1 -0
  799. package/dist/transport/tcp/tls-options-factory.d.ts +9 -0
  800. package/dist/transport/tcp/tls-options-factory.js +53 -0
  801. package/dist/transport/tcp/tls-options-factory.js.map +1 -0
  802. package/dist/transport/tcp/tls-options.d.ts +10 -5
  803. package/dist/transport/tcp/tls-options.js +0 -49
  804. package/dist/transport/tcp/tls-options.js.map +1 -1
  805. package/dist/transport/tick-action.d.ts +8 -0
  806. package/dist/transport/tick-action.js +13 -0
  807. package/dist/transport/tick-action.js.map +1 -0
  808. package/dist/util/buffer-helper.js +1 -1
  809. package/dist/util/buffer-helper.js.map +1 -1
  810. package/dist/util/definition-factory.d.ts +10 -0
  811. package/dist/util/definition-factory.js +56 -0
  812. package/dist/util/definition-factory.js.map +1 -0
  813. package/dist/util/dictionary-path.d.ts +4 -0
  814. package/dist/util/dictionary-path.js +3 -0
  815. package/dist/util/dictionary-path.js.map +1 -0
  816. package/dist/util/index.d.ts +1 -1
  817. package/dist/util/index.js +1 -1
  818. package/dist/util/index.js.map +1 -1
  819. package/dist/util/json-helper.d.ts +3 -1
  820. package/dist/util/json-helper.js +13 -12
  821. package/dist/util/json-helper.js.map +1 -1
  822. package/dist/util/message-generator.d.ts +1 -1
  823. package/dist/util/message-generator.js +16 -15
  824. package/dist/util/message-generator.js.map +1 -1
  825. package/dist/util/replay.d.ts +6 -3
  826. package/dist/util/replay.js +24 -26
  827. package/dist/util/replay.js.map +1 -1
  828. package/package.json +15 -10
  829. package/script/build.cmd +1 -0
  830. package/script/build.sh +1 -0
  831. package/script/test.cmd +3 -0
  832. package/src/buffer/{ascii-chars.ts → ascii/ascii-chars.ts} +0 -0
  833. package/src/buffer/ascii/ascii-encoder.ts +9 -6
  834. package/src/buffer/ascii/ascii-parser-state.ts +7 -12
  835. package/src/buffer/ascii/ascii-parser.ts +23 -16
  836. package/src/buffer/ascii/ascii-segment-parser.ts +14 -8
  837. package/src/buffer/ascii/ascii-view.ts +4 -9
  838. package/src/buffer/ascii/index.ts +1 -0
  839. package/src/buffer/ascii/parse-state.ts +8 -0
  840. package/src/buffer/ascii/time-formatter.ts +1 -1
  841. package/src/buffer/elastic-buffer.ts +7 -2
  842. package/src/buffer/encode-proxy.ts +9 -4
  843. package/src/buffer/fixml/fixml-encoder.ts +15 -11
  844. package/src/buffer/fixml/fixml-parser.ts +16 -6
  845. package/src/buffer/fixml/fixml-view.ts +4 -9
  846. package/src/buffer/fixml/populated-attributes.ts +6 -0
  847. package/src/buffer/index.ts +4 -8
  848. package/src/buffer/msg-encoder.ts +2 -1
  849. package/src/buffer/msg-view.ts +13 -9
  850. package/src/buffer/{segment-description.ts → segment/segment-description.ts} +4 -11
  851. package/src/buffer/{segment-summary.ts → segment/segment-summary.ts} +0 -0
  852. package/src/buffer/segment/segment-type.ts +8 -0
  853. package/src/buffer/structure.ts +3 -3
  854. package/src/buffer/{tag-pos.ts → tag/tag-pos.ts} +0 -0
  855. package/src/buffer/tag/tag-type.ts +13 -0
  856. package/src/buffer/{tags.ts → tag/tags.ts} +4 -16
  857. package/src/config/get-js-fx-logger.ts +4 -0
  858. package/src/config/index.ts +1 -0
  859. package/src/config/js-fix-config.ts +5 -2
  860. package/src/config/js-fix-logger.ts +0 -3
  861. package/src/dictionary/compiler/compiler-type.ts +3 -3
  862. package/src/dictionary/compiler/enum-compiler.ts +12 -1
  863. package/src/dictionary/compiler/msg-compiler.ts +8 -7
  864. package/src/dictionary/contained/contained-component-field.ts +2 -1
  865. package/src/dictionary/contained/contained-field-dispatch.ts +3 -7
  866. package/src/dictionary/contained/contained-field-dispatcher.ts +9 -0
  867. package/src/dictionary/contained/contained-field-set.ts +5 -3
  868. package/src/dictionary/contained/contained-field-type.ts +5 -0
  869. package/src/dictionary/contained/contained-field.ts +1 -6
  870. package/src/dictionary/contained/contained-group-field.ts +2 -1
  871. package/src/dictionary/contained/contained-simple-field.ts +2 -1
  872. package/src/dictionary/contained/field-dispatcher.ts +9 -0
  873. package/src/dictionary/contained/fields-dispatch.ts +46 -0
  874. package/src/dictionary/contained/index.ts +2 -0
  875. package/src/dictionary/contained-set-type.ts +5 -0
  876. package/src/dictionary/definition/component-field-definition.ts +1 -1
  877. package/src/dictionary/definition/fix-definitions.ts +2 -1
  878. package/src/dictionary/definition/group-field-definition.ts +1 -1
  879. package/src/dictionary/definition/index.ts +0 -1
  880. package/src/dictionary/definition/message-definition.ts +1 -1
  881. package/src/dictionary/definition/simple-field-definition.ts +3 -1
  882. package/src/dictionary/dict-primitive.ts +0 -13
  883. package/src/dictionary/fix-definition-source.ts +6 -0
  884. package/src/dictionary/fix-versions.ts +0 -32
  885. package/src/dictionary/index.ts +1 -5
  886. package/src/dictionary/parser/fix-repository/abbreviations-parser.ts +2 -3
  887. package/src/dictionary/parser/fix-repository/base-parser.ts +2 -3
  888. package/src/dictionary/parser/fix-repository/components-parser.ts +2 -3
  889. package/src/dictionary/parser/fix-repository/data-types-parser.ts +2 -3
  890. package/src/dictionary/parser/fix-repository/enums-parser.ts +2 -3
  891. package/src/dictionary/parser/fix-repository/fields-parser.ts +2 -3
  892. package/src/dictionary/parser/fix-repository/messages-parser.ts +2 -3
  893. package/src/dictionary/parser/fix-repository/msg-contents-parser.ts +2 -3
  894. package/src/dictionary/parser/fix-repository/repository-abbreviation.ts +6 -0
  895. package/src/dictionary/parser/fix-repository/repository-component.ts +11 -0
  896. package/src/dictionary/parser/fix-repository/repository-data-type.ts +7 -0
  897. package/src/dictionary/parser/fix-repository/repository-enum.ts +8 -0
  898. package/src/dictionary/parser/fix-repository/repository-field.ts +12 -0
  899. package/src/dictionary/parser/fix-repository/repository-message.ts +12 -0
  900. package/src/dictionary/parser/fix-repository/repository-msg-content.ts +10 -0
  901. package/src/dictionary/parser/fix-repository/repository-type.ts +0 -59
  902. package/src/dictionary/parser/fix-repository/repository-xml-parser.ts +10 -9
  903. package/src/dictionary/parser/fix-repository/repository.ts +69 -38
  904. package/src/dictionary/parser/fixml/components-parser.ts +6 -3
  905. package/src/dictionary/parser/fixml/fields-parser.ts +1 -1
  906. package/src/dictionary/parser/fixml/fix-xsd-parser.ts +2 -1
  907. package/src/dictionary/parser/fixml/include-graph.ts +2 -1
  908. package/src/dictionary/parser/fixml/xsd-parser.ts +2 -1
  909. package/src/dictionary/parser/quickfix/field-definition-parser.ts +4 -5
  910. package/src/dictionary/parser/quickfix/field-set-parser.ts +4 -5
  911. package/src/dictionary/parser/quickfix/message-parser.ts +4 -5
  912. package/src/dictionary/parser/quickfix/node-parser.ts +3 -6
  913. package/src/dictionary/parser/quickfix/parse-state.ts +8 -0
  914. package/src/dictionary/parser/quickfix/quick-fix-xml-file-parser.ts +9 -15
  915. package/src/dictionary/sax-node.ts +7 -0
  916. package/src/dictionary/set-reduce.ts +30 -31
  917. package/src/dictionary/type-dispatcher.ts +7 -0
  918. package/src/dictionary/version-util.ts +25 -0
  919. package/src/index.ts +1 -0
  920. package/src/jsfix-cmd.ts +31 -16
  921. package/src/runtime/di-tokens.ts +48 -0
  922. package/src/runtime/engine-factory.ts +5 -0
  923. package/src/runtime/index.ts +5 -0
  924. package/src/runtime/make-config.ts +35 -0
  925. package/src/runtime/session-container.ts +180 -0
  926. package/src/runtime/session-launcher.ts +127 -0
  927. package/src/sample/http/oms/app.ts +20 -14
  928. package/src/sample/http/oms/http-client.ts +5 -2
  929. package/src/sample/http/oms/http-server.ts +5 -1
  930. package/src/sample/tcp/qf-md/app.ts +12 -12
  931. package/src/sample/tcp/qf-md/md-client.ts +4 -1
  932. package/src/sample/tcp/qf-md/md-server.ts +3 -1
  933. package/src/sample/tcp/recovering-skeleton/app.ts +37 -15
  934. package/src/sample/tcp/recovering-skeleton/respawn-acceptor.ts +16 -9
  935. package/src/sample/tcp/recovering-skeleton/skeleton-client.ts +4 -2
  936. package/src/sample/tcp/recovering-skeleton/skeleton-server.ts +4 -2
  937. package/src/sample/tcp/skeleton/app.ts +10 -15
  938. package/src/sample/tcp/skeleton/skeleton-session.ts +8 -4
  939. package/src/sample/tcp/tls-trade-capture/app.ts +8 -31
  940. package/src/sample/tcp/trade-capture/app-launcher.ts +22 -0
  941. package/src/sample/tcp/trade-capture/app.ts +3 -26
  942. package/src/sample/tcp/trade-capture/trade-capture-client.ts +2 -1
  943. package/src/sample/tcp/trade-capture/trade-capture-server.ts +2 -1
  944. package/src/sample/tcp/trade-capture/trade-factory.ts +7 -1
  945. package/src/store/fix-msg-ascii-store-resend.ts +3 -2
  946. package/src/store/fix-msg-memory-store.ts +1 -1
  947. package/src/store/fix-msg-store-record.ts +6 -0
  948. package/src/store/fix-msg-store-state.ts +6 -0
  949. package/src/store/fix-msg-store.ts +1 -7
  950. package/src/transport/ascii/ascii-msg-transmitter.ts +9 -5
  951. package/src/transport/ascii/ascii-session-msg-factory.ts +2 -2
  952. package/src/transport/ascii/ascii-session.ts +9 -6
  953. package/src/transport/ascii/index.ts +0 -1
  954. package/src/transport/duplex/http-duplex.ts +1 -1
  955. package/src/transport/duplex/tcp-duplex.ts +4 -1
  956. package/src/transport/factory/index.ts +1 -0
  957. package/src/transport/factory/msg-transport.ts +55 -0
  958. package/src/transport/fix-acceptor.ts +2 -2
  959. package/src/transport/fix-entity.ts +9 -0
  960. package/src/transport/fix-initiator.ts +2 -2
  961. package/src/transport/fixml/fixml-msg-transmitter.ts +8 -4
  962. package/src/transport/fixml/fixml-session-msg-factory.ts +2 -2
  963. package/src/transport/fixml/fixml-session.ts +2 -2
  964. package/src/transport/fixml/index.ts +0 -2
  965. package/src/transport/http/html-options.ts +8 -0
  966. package/src/transport/http/html-route.ts +6 -0
  967. package/src/transport/http/http-acceptor-listener.ts +42 -0
  968. package/src/transport/http/http-acceptor.ts +5 -2
  969. package/src/transport/http/http-adapter.ts +7 -0
  970. package/src/transport/http/http-initiator.ts +40 -25
  971. package/src/transport/http/http-json-sample-adapter.ts +7 -2
  972. package/src/transport/http/http-transaction.ts +1 -1
  973. package/src/transport/http/http-transport-description.ts +9 -0
  974. package/src/transport/http/index.ts +1 -0
  975. package/src/transport/index.ts +11 -10
  976. package/src/transport/msg-application.ts +13 -0
  977. package/src/transport/msg-transmitter.ts +5 -5
  978. package/src/transport/{a-session-msg-factory.ts → session/a-session-msg-factory.ts} +4 -4
  979. package/src/transport/session/fix-session-state-args.ts +9 -0
  980. package/src/transport/{fix-session-state.ts → session/fix-session-state.ts} +4 -44
  981. package/src/transport/{fix-session.ts → session/fix-session.ts} +10 -7
  982. package/src/transport/{make-fixl-session.ts → session/make-fix-session.ts} +1 -1
  983. package/src/transport/session/session-description.ts +18 -0
  984. package/src/transport/{fix-msg-factory.ts → session/session-msg-factory.ts} +2 -2
  985. package/src/transport/session/session-state.ts +25 -0
  986. package/src/transport/tcp/index.ts +3 -2
  987. package/src/transport/tcp/recovering-tcp-initiator.ts +24 -13
  988. package/src/transport/tcp/tcp-acceptor-listener.ts +45 -0
  989. package/src/transport/tcp/tcp-acceptor.ts +11 -10
  990. package/src/transport/tcp/tcp-initiator-connector.ts +71 -0
  991. package/src/transport/tcp/tcp-initiator.ts +10 -6
  992. package/src/transport/tcp/tcp-transport-description.ts +7 -0
  993. package/src/transport/tcp/tls-options-factory.ts +55 -0
  994. package/src/transport/tcp/tls-options.ts +9 -51
  995. package/src/transport/tick-action.ts +8 -0
  996. package/src/util/definition-factory.ts +47 -0
  997. package/src/util/dictionary-path.ts +4 -0
  998. package/src/util/index.ts +1 -1
  999. package/src/util/json-helper.ts +14 -4
  1000. package/src/util/message-generator.ts +6 -3
  1001. package/src/util/replay.ts +26 -21
  1002. package/tsconfig.json +2 -0
  1003. package/dist/buffer/ascii-chars.js.map +0 -1
  1004. package/dist/dictionary/fields-dispatch.js +0 -40
  1005. package/dist/dictionary/fields-dispatch.js.map +0 -1
  1006. package/dist/sample/tcp/recovering-skeleton/respawn-2.d.ts +0 -2
  1007. package/dist/sample/tcp/recovering-skeleton/respawn-2.js +0 -3
  1008. package/dist/sample/tcp/recovering-skeleton/respawn-2.js.map +0 -1
  1009. package/dist/store/fix-msg-ascii-store-recovery.d.ts +0 -12
  1010. package/dist/store/fix-msg-ascii-store-recovery.js +0 -60
  1011. package/dist/store/fix-msg-ascii-store-recovery.js.map +0 -1
  1012. package/dist/store/fix-msg-ascii-store-replay.d.ts +0 -13
  1013. package/dist/store/fix-msg-ascii-store-replay.js +0 -60
  1014. package/dist/store/fix-msg-ascii-store-replay.js.map +0 -1
  1015. package/dist/store/fix-replay-record.d.ts +0 -12
  1016. package/dist/store/fix-replay-record.js +0 -12
  1017. package/dist/store/fix-replay-record.js.map +0 -1
  1018. package/dist/store/fix-resend-record.d.ts +0 -12
  1019. package/dist/store/fix-resend-record.js +0 -12
  1020. package/dist/store/fix-resend-record.js.map +0 -1
  1021. package/dist/store/replay-record.d.ts +0 -6
  1022. package/dist/store/replay-record.js.map +0 -1
  1023. package/dist/store/store-replay-record.d.ts +0 -12
  1024. package/dist/store/store-replay-record.js +0 -12
  1025. package/dist/store/store-replay-record.js.map +0 -1
  1026. package/dist/tcp/tls-options.d.ts +0 -5
  1027. package/dist/tcp/tls-options.js +0 -45
  1028. package/dist/tcp/tls-options.js.map +0 -1
  1029. package/dist/test/ascii-encode.test.d.ts +0 -1
  1030. package/dist/test/ascii-encode.test.js.map +0 -1
  1031. package/dist/test/ascii-store-recovery.test.d.ts +0 -1
  1032. package/dist/test/ascii-store-recovery.test.js +0 -50
  1033. package/dist/test/ascii-store-recovery.test.js.map +0 -1
  1034. package/dist/transport/ascii-session-msg-factory.d.ts +0 -16
  1035. package/dist/transport/ascii-session-msg-factory.js +0 -47
  1036. package/dist/transport/ascii-session-msg-factory.js.map +0 -1
  1037. package/dist/transport/fixml/acceptor.d.ts +0 -3
  1038. package/dist/transport/fixml/acceptor.js +0 -38
  1039. package/dist/transport/fixml/acceptor.js.map +0 -1
  1040. package/dist/transport/fixml-session-msg-factory.d.ts +0 -13
  1041. package/dist/transport/fixml-session-msg-factory.js +0 -68
  1042. package/dist/transport/fixml-session-msg-factory.js.map +0 -1
  1043. package/dist/transport/make-config.d.ts +0 -4
  1044. package/dist/transport/make-config.js +0 -31
  1045. package/dist/transport/make-config.js.map +0 -1
  1046. package/dist/transport/make-fixl-session.js.map +0 -1
  1047. package/dist/transport/msg-transport.js +0 -57
  1048. package/dist/transport/msg-transport.js.map +0 -1
  1049. package/dist/transport/tcp/acceptor.d.ts +0 -3
  1050. package/dist/transport/tcp/acceptor.js +0 -40
  1051. package/dist/transport/tcp/acceptor.js.map +0 -1
  1052. package/dist/transport/tcp/initiator.d.ts +0 -3
  1053. package/dist/transport/tcp/initiator.js +0 -67
  1054. package/dist/transport/tcp/initiator.js.map +0 -1
  1055. package/dist/transport/tcp/recovering-initiator.d.ts +0 -17
  1056. package/dist/transport/tcp/recovering-initiator.js +0 -30
  1057. package/dist/transport/tcp/recovering-initiator.js.map +0 -1
  1058. package/dist/transport/tcp/recovering_initiator.d.ts +0 -12
  1059. package/dist/transport/tcp/recovering_initiator.js +0 -25
  1060. package/dist/transport/tcp/recovering_initiator.js.map +0 -1
  1061. package/dist/transport/tcp/resilient-initiator.d.ts +0 -12
  1062. package/dist/transport/tcp/resilient-initiator.js +0 -41
  1063. package/dist/transport/tcp/resilient-initiator.js.map +0 -1
  1064. package/dist/types/FIX4.4/quickfix/set/header.d.ts +0 -31
  1065. package/dist/types/FIX4.4/quickfix/set/header.js.map +0 -1
  1066. package/dist/types/FIX4.4/quickfix/set/trailer.d.ts +0 -6
  1067. package/dist/types/FIX4.4/quickfix/set/trailer.js.map +0 -1
  1068. package/dist/util/dictionary-definitions.d.ts +0 -8
  1069. package/dist/util/dictionary-definitions.js +0 -51
  1070. package/dist/util/dictionary-definitions.js.map +0 -1
  1071. package/src/dictionary/fields-dispatch.ts +0 -45
  1072. package/src/sample/launcher.ts +0 -56
  1073. package/src/transport/fixml/acceptor.ts +0 -29
  1074. package/src/transport/make-config.ts +0 -19
  1075. package/src/transport/msg-transport.ts +0 -67
  1076. package/src/transport/session-description.ts +0 -70
  1077. package/src/transport/tcp/acceptor.ts +0 -31
  1078. package/src/transport/tcp/initiator.ts +0 -59
  1079. package/src/util/dictionary-definitions.ts +0 -41
package/dist/jsfix-cmd.js CHANGED
@@ -10,16 +10,20 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.JsfixCmd = void 0;
13
+ require("reflect-metadata");
13
14
  const buffer_1 = require("./buffer");
14
- const dictionary_1 = require("./dictionary");
15
+ const ascii_1 = require("./buffer/ascii");
15
16
  const util_1 = require("./util");
16
17
  const transport_1 = require("./transport");
17
18
  const types_1 = require("./types");
18
- const config_1 = require("./config");
19
19
  const util = require("util");
20
20
  const fs = require('node-fs-extra');
21
21
  const minimist = require("minimist");
22
22
  const path = require("path");
23
+ const factory_1 = require("./transport/factory");
24
+ const compiler_1 = require("./dictionary/compiler");
25
+ const runtime_1 = require("./runtime");
26
+ const di_tokens_1 = require("./runtime/di-tokens");
23
27
  const argv = minimist(process.argv.slice(2));
24
28
  var PrintMode;
25
29
  (function (PrintMode) {
@@ -43,7 +47,7 @@ var Command;
43
47
  class JsfixCmd {
44
48
  constructor() {
45
49
  this.root = path.join(__dirname, '../');
46
- this.delimiter = buffer_1.AsciiChars.Soh;
50
+ this.delimiter = ascii_1.AsciiChars.Soh;
47
51
  this.stats = {};
48
52
  this.filter = null;
49
53
  this.messages = 0;
@@ -176,7 +180,7 @@ class JsfixCmd {
176
180
  generate() {
177
181
  return __awaiter(this, void 0, void 0, function* () {
178
182
  const lipPath = path.join(this.root, 'data/examples/lipsum.txt');
179
- const words = yield util_1.getWords(lipPath);
183
+ const words = yield (0, util_1.getWords)(lipPath);
180
184
  const generator = new util_1.MessageGenerator(words, this.definitions);
181
185
  let density = 1;
182
186
  if (argv.density) {
@@ -208,7 +212,7 @@ class JsfixCmd {
208
212
  const obj = generator.generate(msgType, density, makeGroups);
209
213
  console.log(JSON.stringify(obj, null, 4));
210
214
  const fix = this.encodeObject(msgType, obj);
211
- const ft = new transport_1.MsgTransport(1, this.session.config, new transport_1.StringDuplex(fix));
215
+ const ft = new factory_1.MsgTransport(1, this.session.config, new transport_1.StringDuplex(fix));
212
216
  if (argv.unit) {
213
217
  yield this.unitTest(fix, obj, ft);
214
218
  }
@@ -290,9 +294,9 @@ class JsfixCmd {
290
294
  const definitions = this.definitions;
291
295
  const compilerSettings = require('../data/compiler.json');
292
296
  compilerSettings.output = outputPath;
293
- const msgCompiler = new dictionary_1.MsgCompiler(definitions, compilerSettings);
297
+ const msgCompiler = new compiler_1.MsgCompiler(definitions, compilerSettings);
294
298
  yield msgCompiler.generate();
295
- const enumCompiler = new dictionary_1.EnumCompiler(definitions, compilerSettings);
299
+ const enumCompiler = new compiler_1.EnumCompiler(definitions, compilerSettings);
296
300
  const writeFile = path.join(compilerSettings.output, './enum/all-enum.ts');
297
301
  yield enumCompiler.generate(writeFile);
298
302
  });
@@ -300,7 +304,7 @@ class JsfixCmd {
300
304
  compile() {
301
305
  return __awaiter(this, void 0, void 0, function* () {
302
306
  let output = argv.output;
303
- const dp = util_1.getDictPath(argv.dict);
307
+ const dp = new util_1.DefinitionFactory().getDictPath(argv.dict);
304
308
  if (dp) {
305
309
  output = dp.output;
306
310
  }
@@ -311,25 +315,28 @@ class JsfixCmd {
311
315
  init() {
312
316
  return __awaiter(this, void 0, void 0, function* () {
313
317
  let session = argv.session || 'data/session/test-initiator.json';
318
+ this.sys = new runtime_1.SessionContainer();
319
+ this.sys.registerGlobal('error');
314
320
  session = this.norm(session);
315
321
  this.sessionDescription = require(session);
322
+ const container = yield this.sys.makeSystem(this.sessionDescription);
323
+ this.config = container.resolve(di_tokens_1.DITokens.IJsFixConfig);
324
+ this.definitions = this.config.definitions;
316
325
  let dict;
317
326
  if (argv.dict) {
318
327
  dict = argv.dict;
328
+ const df = yield new util_1.DefinitionFactory().getDefinitions(dict);
329
+ this.config.definitions = df;
330
+ this.definitions = df;
319
331
  }
320
- else {
321
- dict = this.sessionDescription.application.dictionary;
322
- }
323
- this.definitions = yield util_1.getDefinitions(dict);
324
332
  const definitions = this.definitions;
325
333
  if (argv.delimiter) {
326
- this.delimiter = buffer_1.AsciiChars.firstChar(argv.delimiter);
334
+ this.delimiter = ascii_1.AsciiChars.firstChar(argv.delimiter);
335
+ this.config.delimiter = this.delimiter;
327
336
  }
328
337
  this.jsonHelper = new util_1.JsonHelper(definitions);
329
338
  if (argv.session) {
330
- const description = this.sessionDescription;
331
- const config = new config_1.JsFixConfig(new transport_1.SessionMsgFactory(description), definitions, description, this.delimiter);
332
- this.session = new transport_1.AsciiMsgTransmitter(config);
339
+ this.session = container.resolve(di_tokens_1.DITokens.MsgTransmitter);
333
340
  }
334
341
  });
335
342
  }
@@ -429,8 +436,8 @@ class JsfixCmd {
429
436
  return;
430
437
  }
431
438
  const fix = this.norm(argv.fix);
432
- const config = new config_1.JsFixConfig(null, this.definitions, this.sessionDescription, this.delimiter);
433
- const ft = new transport_1.MsgTransport(1, config, new transport_1.FileDuplex(fix));
439
+ const config = this.config;
440
+ const ft = new factory_1.MsgTransport(1, config, new transport_1.FileDuplex(fix));
434
441
  yield this.dispatch(ft);
435
442
  });
436
443
  }
@@ -443,8 +450,6 @@ class JsfixCmd {
443
450
  return new Promise((accept, reject) => {
444
451
  const fix = this.norm(argv.fix);
445
452
  const fs = require('fs');
446
- const definitions = this.definitions;
447
- const delimiter = this.delimiter;
448
453
  fs.readFile(fix, 'utf8', (err, contents) => __awaiter(this, void 0, void 0, function* () {
449
454
  if (err) {
450
455
  reject(err);
@@ -452,7 +457,9 @@ class JsfixCmd {
452
457
  const toParse = new transport_1.StringDuplex(contents.repeat(repeats), false);
453
458
  const startsAt = new Date();
454
459
  let i = 0;
455
- const asciiParser = new buffer_1.AsciiParser(definitions, toParse.readable, delimiter);
460
+ const config = this.config;
461
+ const buffer = config.sessionContainer.resolve(di_tokens_1.DITokens.ParseBuffer);
462
+ const asciiParser = new ascii_1.AsciiParser(config, toParse.readable, buffer);
456
463
  asciiParser.on('msg', (msgType, v) => {
457
464
  ++i;
458
465
  if (i === repeats) {
@@ -1 +1 @@
1
- {"version":3,"file":"jsfix-cmd.js","sourceRoot":"","sources":["../src/jsfix-cmd.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgG;AAEhG,6CAAkH;AAClH,iCAA4F;AAC5F,2CAAiI;AAEjI,mCAAgC;AAChC,qCAAsC;AAEtC,6BAA4B;AAC5B,MAAM,EAAE,GAAG,OAAO,CAAC,eAAe,CAAC,CAAA;AACnC,qCAAoC;AACpC,6BAA4B;AAE5B,MAAM,IAAI,GAAQ,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAA;AAEjD,IAAK,SAOJ;AAPD,WAAK,SAAS;IACZ,mDAAa,CAAA;IACb,6CAAU,CAAA;IACV,+CAAW,CAAA;IACX,2CAAS,CAAA;IACT,2CAAS,CAAA;IACT,+CAAW,CAAA;AACb,CAAC,EAPI,SAAS,KAAT,SAAS,QAOb;AAED,IAAK,OAQJ;AARD,WAAK,OAAO;IACV,6CAAY,CAAA;IACZ,yCAAU,CAAA;IACV,yCAAU,CAAA;IACV,yCAAU,CAAA;IACV,+CAAa,CAAA;IACb,2CAAW,CAAA;IACX,2CAAW,CAAA;AACb,CAAC,EARI,OAAO,KAAP,OAAO,QAQX;AAED,MAAa,QAAQ;IAArB;QACmB,SAAI,GAAW,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC,CAAA;QAKnD,cAAS,GAAW,mBAAU,CAAC,GAAG,CAAA;QAClC,UAAK,GAAiB,EAAE,CAAA;QACxB,WAAM,GAAW,IAAI,CAAA;QACrB,aAAQ,GAAW,CAAC,CAAA;QACpB,UAAK,GAAY,IAAI,CAAA;IAkc/B,CAAC;IAhcS,MAAM,CAAC,UAAU;QACvB,IAAI,OAAO,GAAY,OAA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CAAC,SAAS,CAAC,CAAC,OAAO,EAAE,CAAC,CAAA;IACnC,CAAC,CAAC,CAAA;CACH","sourcesContent":["import { ElasticBuffer, MsgView, MsgParser, AsciiParser, AsciiView, AsciiChars } from './buffer'\r\nimport { ILooseObject } from './collections/collection'\r\nimport { SimpleFieldDefinition, FixDefinitions, MsgCompiler, EnumCompiler, ICompilerSettings } from './dictionary'\r\nimport { MessageGenerator, JsonHelper, getDefinitions, getDictPath, getWords } from './util'\r\nimport { AsciiMsgTransmitter, ISessionDescription, SessionMsgFactory, MsgTransport, FileDuplex, StringDuplex } from './transport'\r\n\r\nimport { MsgTag } from './types'\r\nimport { JsFixConfig } from './config'\r\n\r\nimport * as util from 'util'\r\nconst fs = require('node-fs-extra')\r\nimport * as minimist from 'minimist'\r\nimport * as path from 'path'\r\n\r\nconst argv: any = minimist(process.argv.slice(2))\r\n\r\nenum PrintMode {\r\n Structure = 1,\r\n Object = 2,\r\n Verbose = 3,\r\n Stats = 4,\r\n Token = 5,\r\n Encoded = 6\r\n}\r\n\r\nenum Command {\r\n Generate = 1,\r\n Replay = 2,\r\n Lookup = 3,\r\n Encode = 4,\r\n Benchmark = 5,\r\n Compile = 6,\r\n Unknown = 7\r\n}\r\n\r\nexport class JsfixCmd {\r\n private readonly root: string = path.join(__dirname, '../')\r\n private definitions: FixDefinitions\r\n private jsonHelper: JsonHelper\r\n private session: AsciiMsgTransmitter\r\n private sessionDescription: ISessionDescription\r\n private delimiter: number = AsciiChars.Soh\r\n private stats: ILooseObject = {}\r\n private filter: string = null\r\n private messages: number = 0\r\n private print: boolean = true\r\n\r\n private static getCommand (): Command {\r\n let command: Command = Command.Unknown\r\n if (argv.compile) {\r\n command = Command.Compile\r\n } else if (argv.generate) {\r\n command = Command.Generate\r\n } else if (argv.fix) {\r\n command = argv.benchmark ? Command.Benchmark : Command.Replay\r\n } else if (argv.field) {\r\n command = Command.Lookup\r\n } else if (argv.json) {\r\n command = Command.Encode\r\n } else if (argv.msg) {\r\n command = Command.Lookup\r\n }\r\n return command\r\n }\r\n\r\n private static getPrintMode (): PrintMode {\r\n let mode: PrintMode = PrintMode.Stats\r\n if (argv.tokens) {\r\n mode = PrintMode.Token\r\n } else if (argv.stats) {\r\n mode = PrintMode.Stats\r\n } else if (argv.objects) {\r\n mode = PrintMode.Object\r\n } else if (argv.verbose) {\r\n mode = PrintMode.Verbose\r\n } else if (argv.structures) {\r\n mode = PrintMode.Structure\r\n } else if (argv.encoded) {\r\n mode = PrintMode.Encoded\r\n }\r\n return mode\r\n }\r\n\r\n private static async writeFile (name: string, api: string) {\r\n const writer = util.promisify(fs.writeFile)\r\n await writer(name, api, {\r\n encoding: 'utf8'}\r\n ).catch((e: Error) => {\r\n throw e\r\n })\r\n }\r\n\r\n public exec (): Promise<any> {\r\n return new Promise<any>((resolve, reject) => {\r\n this.init().then(async () => {\r\n let actioned: boolean = true\r\n let command = JsfixCmd.getCommand()\r\n\r\n switch (command) {\r\n case Command.Generate: {\r\n // produce a test message or a valid fix log of n messages\r\n await this.generate()\r\n break\r\n }\r\n\r\n case Command.Encode: {\r\n // encode a json message back to fix\r\n this.encode()\r\n break\r\n }\r\n\r\n case Command.Replay: {\r\n // parse a file into either objects, tokens, structures or stats\r\n const repeats: number = !isNaN(argv.repeats) ? argv.repeats : 1\r\n try {\r\n for (let i: number = 0; i < repeats; ++i) {\r\n await this.replay()\r\n }\r\n } catch (e) {\r\n reject(e)\r\n }\r\n break\r\n }\r\n\r\n case Command.Benchmark: {\r\n // time how long to parse 10000 repeats of contents of file\r\n const repeats: number = !isNaN(argv.repeats) ? argv.repeats : 10000\r\n try {\r\n await this.benchmark(repeats)\r\n } catch (e) {\r\n reject(e)\r\n }\r\n break\r\n }\r\n\r\n case Command.Lookup: {\r\n // lookup a field\r\n if (argv.field) {\r\n this.field()\r\n } else {\r\n this.msg()\r\n }\r\n break\r\n }\r\n\r\n case Command.Compile: {\r\n await this.compile()\r\n break\r\n }\r\n\r\n case Command.Unknown:\r\n default: {\r\n actioned = false\r\n }\r\n }\r\n resolve(actioned)\r\n }).catch((e) => {\r\n reject(e)\r\n })\r\n })\r\n }\r\n\r\n private firstMessage (t: MsgTransport): Promise<MsgView> {\r\n return new Promise<MsgView>((resolve, reject) => {\r\n t.receiver.on('msg', (msgType: string, msgView: MsgView) => {\r\n resolve(msgView.clone())\r\n })\r\n t.receiver.on('error', (e) => {\r\n reject(e)\r\n })\r\n })\r\n }\r\n\r\n private async generate () {\r\n const lipPath: string = path.join(this.root, 'data/examples/lipsum.txt')\r\n const words: string[] = await getWords(lipPath)\r\n const generator = new MessageGenerator(words, this.definitions)\r\n let density = 1\r\n if (argv.density) {\r\n density = parseFloat(argv.density)\r\n }\r\n if (isNaN(density)) {\r\n console.log('density must be numeric in range > 0 density <= 1.0')\r\n return\r\n }\r\n\r\n if (argv.script) {\r\n await this.script(generator, density)\r\n } else {\r\n await this.single(generator, density)\r\n }\r\n }\r\n\r\n private async single (generator: MessageGenerator, density: number) {\r\n if (!argv.type) {\r\n console.log('specify type to generate e.g. --type = AE')\r\n return\r\n }\r\n const msgType: string = `${argv.type}`\r\n let makeGroups: boolean = true\r\n if (argv.groups) {\r\n makeGroups = argv.groups === 'true'\r\n }\r\n const obj: ILooseObject = generator.generate(msgType, density, makeGroups)\r\n console.log(JSON.stringify(obj, null, 4))\r\n const fix: string = this.encodeObject(msgType, obj)\r\n const ft: MsgTransport = new MsgTransport(1, this.session.config, new StringDuplex(fix))\r\n if (argv.unit) {\r\n await this.unitTest(fix, obj, ft)\r\n } else {\r\n this.subscribe(ft)\r\n }\r\n }\r\n\r\n private async script (generator: MessageGenerator, density: number) {\r\n let buffer: ElasticBuffer = new ElasticBuffer()\r\n const repeats: number = argv.repeats || 50\r\n const key: string = MsgTag.MsgType.toString()\r\n const sf = this.definitions.simple.get(key)\r\n const session: AsciiMsgTransmitter = this.session\r\n for (let i = 0; i < repeats; ++i) {\r\n const msgType: string = MessageGenerator.getRandomEnum(sf).toString()\r\n console.log(`i = ${i} ${msgType}`)\r\n const obj: ILooseObject = generator.generate(msgType, density)\r\n session.encodeMessage(msgType, obj)\r\n buffer.writeBuffer(session.buffer.slice())\r\n buffer.writeString(require('os').EOL)\r\n }\r\n await JsfixCmd.writeFile('./fix.txt', buffer.slice().toString('utf8'))\r\n }\r\n\r\n private async unitTest (fix: string, obj: ILooseObject, ft: MsgTransport) {\r\n const view: MsgView = await this.firstMessage(ft)\r\n const summary = view.structure.summary()\r\n\r\n await JsfixCmd.writeFile('./fix.txt', fix)\r\n await JsfixCmd.writeFile('./object.json', JSON.stringify(obj, null, 4))\r\n await JsfixCmd.writeFile('./token.txt', view.toString())\r\n await JsfixCmd.writeFile('./structure.json', JSON.stringify(summary, null, 4))\r\n }\r\n\r\n private encodeObject (msgType: string, object: ILooseObject): string {\r\n const session: AsciiMsgTransmitter = this.session\r\n session.encodeMessage(msgType, object)\r\n return session.buffer.toString()\r\n }\r\n\r\n private msg (): void {\r\n const definitions = this.definitions\r\n const m = definitions.message.get(argv.msg)\r\n if (m) {\r\n console.log(m.toString())\r\n }\r\n }\r\n\r\n private field (): void {\r\n let sf: SimpleFieldDefinition\r\n const tag: number = parseInt(argv.field, 10)\r\n const definitions = this.definitions\r\n if (!isNaN(tag)) {\r\n sf = definitions.tagToSimple[tag]\r\n } else {\r\n sf = definitions.simple.get(argv.field)\r\n }\r\n if (sf) {\r\n console.log(sf.toString())\r\n }\r\n }\r\n\r\n ensureExists (path: string): Promise<any> {\r\n return new Promise<any>((accept, reject) => {\r\n fs.mkdirp(path, (err: Error) => {\r\n if (err) {\r\n reject(err)\r\n } else {\r\n accept(true)\r\n }\r\n })\r\n })\r\n }\r\n\r\n private async compileDefinitions (outputPath: string) {\r\n await this.ensureExists(path.join(outputPath, 'set'))\r\n await this.ensureExists(path.join(outputPath, 'enum'))\r\n const definitions = this.definitions\r\n const compilerSettings: ICompilerSettings = require('../data/compiler.json')\r\n compilerSettings.output = outputPath\r\n const msgCompiler: MsgCompiler = new MsgCompiler(definitions, compilerSettings)\r\n await msgCompiler.generate()\r\n const enumCompiler: EnumCompiler = new EnumCompiler(definitions, compilerSettings)\r\n const writeFile = path.join(compilerSettings.output, './enum/all-enum.ts')\r\n await enumCompiler.generate(writeFile)\r\n }\r\n\r\n private async compile () {\r\n let output = argv.output\r\n const dp = getDictPath(argv.dict)\r\n if (dp) {\r\n output = dp.output\r\n }\r\n output = path.join(this.root, output)\r\n await this.compileDefinitions(output)\r\n }\r\n\r\n private async init (): Promise<any> {\r\n let session: string = argv.session || 'data/session/test-initiator.json'\r\n session = this.norm(session)\r\n this.sessionDescription = require(session)\r\n let dict: string\r\n if (argv.dict) {\r\n dict = argv.dict\r\n } else {\r\n dict = this.sessionDescription.application.dictionary\r\n }\r\n this.definitions = await getDefinitions(dict)\r\n const definitions = this.definitions\r\n if (argv.delimiter) {\r\n this.delimiter = AsciiChars.firstChar(argv.delimiter)\r\n }\r\n this.jsonHelper = new JsonHelper(definitions)\r\n if (argv.session) {\r\n const description = this.sessionDescription\r\n const config = new JsFixConfig(new SessionMsgFactory(description), definitions, description, this.delimiter)\r\n this.session = new AsciiMsgTransmitter(config)\r\n }\r\n }\r\n\r\n private async dispatch (ft: MsgTransport): Promise<any> {\r\n if (argv.type != null) {\r\n this.filter = argv.type.toString()\r\n }\r\n let time: boolean = false\r\n if (argv.time || argv.stats) {\r\n this.print = false\r\n time = true\r\n }\r\n this.subscribe(ft)\r\n const startsAt: Date = new Date()\r\n await ft.wait()\r\n const elapsed: number = new Date().getTime() - startsAt.getTime()\r\n if (time) {\r\n console.log(`messages ${this.messages} elapsed ms ${elapsed}`)\r\n }\r\n if (argv.stats) {\r\n console.log(JSON.stringify(this.stats, null, 4))\r\n }\r\n }\r\n\r\n private subscribe (ft: MsgTransport) {\r\n this.messages = 0\r\n this.stats = {}\r\n const filter = this.filter\r\n // the receiver is message parser which is piped from an input stream - file, socket\r\n ft.receiver.on('msg', (msgType: string, m: AsciiView) => {\r\n\r\n if (filter) {\r\n if (msgType !== filter) {\r\n return\r\n }\r\n }\r\n ++this.messages\r\n this.onMsg(msgType, m)\r\n })\r\n }\r\n\r\n private onMsg (msgType: string, m: MsgView) {\r\n const mode: PrintMode = JsfixCmd.getPrintMode()\r\n const print = this.print\r\n const stats = this.stats\r\n switch (mode) {\r\n case PrintMode.Stats: {\r\n if (!stats[msgType]) {\r\n stats[msgType] = 1\r\n } else {\r\n stats[msgType] = stats[msgType] + 1\r\n }\r\n break\r\n }\r\n\r\n case PrintMode.Verbose: {\r\n const verbose = m.toVerbose()\r\n if (verbose) {\r\n console.log(verbose)\r\n }\r\n break\r\n }\r\n\r\n case PrintMode.Object: {\r\n const asObject: ILooseObject = m.toObject()\r\n if (print) {\r\n const def = this.definitions.message.get(msgType)\r\n console.log(`${msgType} [${def.name}] = ${JSON.stringify(asObject, null, 4)}`)\r\n console.log()\r\n }\r\n break\r\n }\r\n\r\n case PrintMode.Structure: {\r\n const summary = m.structure.summary()\r\n if (print) {\r\n console.log(JSON.stringify(summary, null, 4))\r\n }\r\n break\r\n }\r\n\r\n case PrintMode.Token: {\r\n const tokens = m.toString()\r\n if (print) {\r\n console.log(tokens)\r\n }\r\n break\r\n }\r\n\r\n case PrintMode.Encoded: {\r\n const fix: string = this.encodeObject(msgType, m.toObject())\r\n console.log(fix)\r\n break\r\n }\r\n\r\n default:\r\n throw new Error(`unknown mode ${mode}`)\r\n }\r\n }\r\n\r\n private async replay (): Promise<any> {\r\n if (!argv.fix) {\r\n console.log('provide a path to fix file i.e. --fix=data/examples/execution-report/fix.txt')\r\n return\r\n }\r\n const fix: string = this.norm(argv.fix)\r\n const config = new JsFixConfig(null, this.definitions, this.sessionDescription, this.delimiter)\r\n const ft: MsgTransport = new MsgTransport(1, config, new FileDuplex(fix))\r\n await this.dispatch(ft)\r\n }\r\n\r\n private async benchmark (repeats: number): Promise<any> {\r\n if (!argv.fix) {\r\n console.log('provide a path to fix file i.e. --fix=data/examples/execution-report/fix.txt')\r\n return\r\n }\r\n return new Promise<any>((accept, reject) => {\r\n const fix: string = this.norm(argv.fix)\r\n const fs = require('fs')\r\n const definitions = this.definitions\r\n const delimiter = this.delimiter\r\n fs.readFile(fix, 'utf8', async (err: Error, contents: string) => {\r\n if (err) {\r\n reject(err)\r\n }\r\n const toParse = new StringDuplex(contents.repeat(repeats), false)\r\n const startsAt: Date = new Date()\r\n let i = 0\r\n const asciiParser: MsgParser = new AsciiParser(definitions, toParse.readable, delimiter)\r\n asciiParser.on('msg', (msgType: string, v: MsgView) => {\r\n ++i\r\n if (i === repeats) {\r\n const elapsed: number = new Date().getTime() - startsAt.getTime()\r\n console.log(contents)\r\n console.log(v.toString())\r\n console.log(`[${msgType}]: repeats = ${repeats}, fields = ${v.structure.tags.nextTagPos}, length = ${contents.length} chars, elapsed ms ${elapsed}, ${(elapsed / repeats) * 1000} micros per msg`)\r\n accept(true)\r\n }\r\n })\r\n })\r\n })\r\n }\r\n\r\n private encode (): void {\r\n const session: AsciiMsgTransmitter = this.session\r\n if (!session) {\r\n console.log('provide a session json file e.g. --session=data/session/test-initiator.json')\r\n return\r\n }\r\n if (!argv.type) {\r\n console.log('provide a message type e.g. --type=8')\r\n return\r\n }\r\n if (!argv.json) {\r\n console.log('provide a json representation e.g. data/examples/execution-report/object.json')\r\n return\r\n }\r\n const ts: string = argv.type.toString()\r\n const msg: ILooseObject = this.jsonHelper.fromJson(path.join(this.root, argv.json), ts)\r\n session.encodeMessage(ts, msg)\r\n const fix: string = session.buffer.toString()\r\n console.log(fix)\r\n }\r\n\r\n private norm (p: string): string {\r\n let f: string = p\r\n if (!path.isAbsolute(p)) {\r\n f = path.join(this.root, f)\r\n }\r\n return f\r\n }\r\n}\r\n\r\nfunction showHelp (): void {\r\n console.log('this help page')\r\n console.log('npm run cmd')\r\n console.log('npm run cmd -- --help')\r\n console.log()\r\n\r\n console.log('token format i.e. [602] 687 (LegQty) = 33589')\r\n console.log('jsfix-cmd --dict=data/FIX44.xml --fix=data/examples/quickfix/FIX.4.4/execution-report/fix.txt --delimiter=\"|\" --tokens')\r\n console.log()\r\n\r\n console.log('token format use fix repo dictionary')\r\n console.log('jsfix-cmd --dict=data/fix_repo/FIX.4.4/Base --fix=data/examples/quickfix/FIX.4.4/execution-report/fix.txt'\r\n + ' --delimiter=\"|\" --tokens')\r\n console.log()\r\n\r\n console.log('structure format i.e. show locations of components etc.')\r\n console.log('jsfix-cmd --dict=data/FIX44.xml --fix=data/examples/FIX.4.4/quickfix/execution-report/fix.txt' +\r\n ' --delimiter=\"|\" --tokens --structures')\r\n console.log()\r\n\r\n console.log('full JS object in JSON format.')\r\n console.log('jsfix-cmd --dict=data/FIX44.xml --fix=data/examples/FIX.4.4/quickfix/execution-report/fix.txt' +\r\n ' --delimiter=\"|\" --tokens --objects')\r\n console.log()\r\n\r\n console.log('full JS object in JSON format - filter only type messages.')\r\n console.log('jsfix-cmd --dict=data/FIX44.xml --fix=data/examples/FIX.4.4/quickfix/execution-report/fix.txt' +\r\n ' --delimiter=\"|\" --tokens --type=8 --objects')\r\n console.log()\r\n\r\n console.log('timing stats and message counts. Structured parsing of all messages.')\r\n console.log('jsfix-cmd --dict=data/FIX44.xml --fix=data/examples/FIX.4.4/quickfix/execution-report/fix.txt --stats')\r\n console.log()\r\n\r\n console.log('encode a json object to fix format')\r\n console.log('jsfix-cmd --json=data/examples/FIX.4.4/quickfix/execution-report/object.json' +\r\n ' --session=data/session.json --type=8 --delimiter=\"|\"')\r\n console.log()\r\n\r\n console.log('display field definition')\r\n console.log('jsfix-cmd --dict=data/FIX44.xml --field=MsgType|35')\r\n console.log()\r\n\r\n console.log('display field use fix repo dictionary e.g. 271 MDEntrySize QTY Quantity or volume represented by the Market Data Entry.')\r\n console.log('jsfix-cmd --dict=data/fix_repo/FIX.4.4/Base --field=MsgType')\r\n console.log('jsfix-cmd --dict=data/fix_repo/FIX.4.4/Base --field=35')\r\n console.log()\r\n\r\n console.log('script to describe field in repository version 4.4')\r\n console.log('npm run repo44 -- --field=8')\r\n console.log()\r\n\r\n console.log('script to describe field in fixml')\r\n console.log('npm run fixml -- --field=50')\r\n console.log()\r\n\r\n console.log('generate unit test set of files - i.e. randomly generate an object, encode to fix. density 1 is all fields')\r\n console.log('jsfix-cmd --generate --type=AE --density=0.8 --unit --delimiter=\"|\" --session=data/session/test-initiator.json')\r\n console.log('npm run repo44-unit -- --type=AE')\r\n console.log('test script with no repeat groups')\r\n console.log('npm run repo44-unit -- --type=AE --groups=false')\r\n console.log()\r\n\r\n console.log('generate a fix log of randomly generated but syntactically correct messages')\r\n console.log('jsfix-cmd --generate --density=0.8 --repeats=50 --script --delimiter=\"|\" --session=data/session/test-initiator.json')\r\n console.log('npm run repo44-script')\r\n console.log('parse above generated script')\r\n console.log('npm run repo44-repscr')\r\n console.log()\r\n\r\n console.log('replay example repo fix file of 50 messages.')\r\n console.log('jsfix-cmd --session=data/session/test-initiator.json --fix=data/examples/FIX.4.4/fix.txt --delimiter=\"|\" --stats')\r\n console.log('npm run repo44-replay -- --stats')\r\n console.log('npm run repo44-replay -- --objects')\r\n console.log('npm run repo44-replay -- --tokens')\r\n console.log('npm run repo44-replay -- --structures')\r\n console.log()\r\n\r\n console.log('benchmark parse a message')\r\n console.log('jsfix-cmd --delimiter=\"|\" --session=data/session/test-initiator.json --fix=data/examples/FIX.4.4/repo/trade-capture-no-groups/fix.txt --benchmark')\r\n console.log('npm run repo44-bench -- --fix=data/examples/FIX.4.4/repo/trade-capture-no-groups/fix.txt')\r\n console.log()\r\n\r\n console.log('compile typescript interfaces - i.e. outputs to src/types/FIX4.4 - requires set and enum sub folders')\r\n console.log('npm run cmd -- --dict=repo40 --compile')\r\n console.log('npm run cmd -- --dict=repo41 --compile')\r\n console.log('npm run cmd -- --dict=repo42 --compile')\r\n console.log('npm run cmd -- --dict=repo43 --compile')\r\n console.log('npm run cmd -- --dict=repo44 --compile')\r\n console.log('npm run cmd -- --dict=repo50 --compile')\r\n console.log('npm run cmd -- --dict=repo50sp1 --compile')\r\n console.log('npm run cmd -- --dict=repo50sp2 --compile')\r\n console.log('npm run cmd -- --dict=repofixml --compile')\r\n console.log('npm run cmd -- --dict=qf44 --compile')\r\n console.log('npm run cmd -- --dict=data/handmade.xml --compile --output=src/types/handmade')\r\n\r\n console.log()\r\n}\r\n\r\nconst help: boolean = argv.h || argv.help\r\nif (help) {\r\n showHelp()\r\n} else {\r\n const cmd: JsfixCmd = new JsfixCmd()\r\n cmd.exec().then((res: boolean) => {\r\n if (!res) {\r\n showHelp()\r\n }\r\n }).catch((e: Error) => {\r\n console.log(`error ${e.message}`)\r\n })\r\n}\r\n"]}
1
+ {"version":3,"file":"jsfix-cmd.js","sourceRoot":"","sources":["../src/jsfix-cmd.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4BAAyB;AAEzB,qCAA4D;AAC5D,0CAAmE;AAGnE,iCAAkF;AAClF,2CAA2E;AAE3E,mCAAgC;AAGhC,6BAA4B;AAC5B,MAAM,EAAE,GAAG,OAAO,CAAC,eAAe,CAAC,CAAA;AACnC,qCAAoC;AACpC,6BAA4B;AAC5B,iDAAkD;AAClD,oDAAoF;AAEpF,uCAA4C;AAC5C,mDAA8C;AAE9C,MAAM,IAAI,GAAQ,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAA;AAEjD,IAAK,SAOJ;AAPD,WAAK,SAAS;IACZ,mDAAa,CAAA;IACb,6CAAU,CAAA;IACV,+CAAW,CAAA;IACX,2CAAS,CAAA;IACT,2CAAS,CAAA;IACT,+CAAW,CAAA;AACb,CAAC,EAPI,SAAS,KAAT,SAAS,QAOb;AAED,IAAK,OAQJ;AARD,WAAK,OAAO;IACV,6CAAY,CAAA;IACZ,yCAAU,CAAA;IACV,yCAAU,CAAA;IACV,yCAAU,CAAA;IACV,+CAAa,CAAA;IACb,2CAAW,CAAA;IACX,2CAAW,CAAA;AACb,CAAC,EARI,OAAO,KAAP,OAAO,QAQX;AAED,MAAa,QAAQ;IAArB;QACmB,SAAI,GA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AAO,CAAC,GAAG,CAAC,2CAA2C,CAAC,CAAA;IACxD,OAAO,CAAC,GAAG,CAAC,sCAAsC,CAAC,CAAA;IACnD,OAAO,CAAC,GAAG,CAAC,+EAA+E,CAAC,CAAA;IAE5F,OAAO,CAAC,GAAG,EAAE,CAAA;AACf,CAAC;AAED,MAAM,IAAI,GAAY,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,IAAI,CAAA;AACzC,IAAI,IAAI,EAAE;IACR,QAAQ,EAAE,CAAA;CACX;KAAM;IACL,MAAM,GAAG,GAAa,IAAI,QAAQ,EAAE,CAAA;IACpC,GAAG,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,CAAC,GAAY,EAAE,EAAE;QAC/B,IAAI,CAAC,GAAG,EAAE;YACR,QAAQ,EAAE,CAAA;SACX;IACH,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAQ,EAAE,EAAE;QACpB,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE,CAAC,CAAA;IACnC,CAAC,CAAC,CAAA;CACH","sourcesContent":["import 'reflect-metadata'\r\n\r\nimport { ElasticBuffer, MsgView, MsgParser } from './buffer'\r\nimport { AsciiParser, AsciiView, AsciiChars } from './buffer/ascii'\r\nimport { ILooseObject } from './collections/collection'\r\nimport { SimpleFieldDefinition, FixDefinitions } from './dictionary/definition'\r\nimport { MessageGenerator, JsonHelper, getWords, DefinitionFactory } from './util'\r\nimport { ISessionDescription, FileDuplex, StringDuplex } from './transport'\r\n\r\nimport { MsgTag } from './types'\r\nimport { IJsFixConfig } from './config'\r\n\r\nimport * as util from 'util'\r\nconst fs = require('node-fs-extra')\r\nimport * as minimist from 'minimist'\r\nimport * as path from 'path'\r\nimport { MsgTransport } from './transport/factory'\r\nimport { EnumCompiler, ICompilerSettings, MsgCompiler } from './dictionary/compiler'\r\nimport { AsciiMsgTransmitter } from './transport/ascii/ascii-msg-transmitter'\r\nimport { SessionContainer } from './runtime'\r\nimport { DITokens } from './runtime/di-tokens'\r\n\r\nconst argv: any = minimist(process.argv.slice(2))\r\n\r\nenum PrintMode {\r\n Structure = 1,\r\n Object = 2,\r\n Verbose = 3,\r\n Stats = 4,\r\n Token = 5,\r\n Encoded = 6\r\n}\r\n\r\nenum Command {\r\n Generate = 1,\r\n Replay = 2,\r\n Lookup = 3,\r\n Encode = 4,\r\n Benchmark = 5,\r\n Compile = 6,\r\n Unknown = 7\r\n}\r\n\r\nexport class JsfixCmd {\r\n private readonly root: string = path.join(__dirname, '../')\r\n private definitions: FixDefinitions\r\n private jsonHelper: JsonHelper\r\n private session: AsciiMsgTransmitter\r\n private sessionDescription: ISessionDescription\r\n private delimiter: number = AsciiChars.Soh\r\n private stats: ILooseObject = {}\r\n private filter: string = null\r\n private messages: number = 0\r\n private print: boolean = true\r\n\r\n private static getCommand (): Command {\r\n let command: Command = Command.Unknown\r\n if (argv.compile) {\r\n command = Command.Compile\r\n } else if (argv.generate) {\r\n command = Command.Generate\r\n } else if (argv.fix) {\r\n command = argv.benchmark ? Command.Benchmark : Command.Replay\r\n } else if (argv.field) {\r\n command = Command.Lookup\r\n } else if (argv.json) {\r\n command = Command.Encode\r\n } else if (argv.msg) {\r\n command = Command.Lookup\r\n }\r\n return command\r\n }\r\n\r\n private static getPrintMode (): PrintMode {\r\n let mode: PrintMode = PrintMode.Stats\r\n if (argv.tokens) {\r\n mode = PrintMode.Token\r\n } else if (argv.stats) {\r\n mode = PrintMode.Stats\r\n } else if (argv.objects) {\r\n mode = PrintMode.Object\r\n } else if (argv.verbose) {\r\n mode = PrintMode.Verbose\r\n } else if (argv.structures) {\r\n mode = PrintMode.Structure\r\n } else if (argv.encoded) {\r\n mode = PrintMode.Encoded\r\n }\r\n return mode\r\n }\r\n\r\n private static async writeFile (name: string, api: string) {\r\n const writer = util.promisify(fs.writeFile)\r\n await writer(name, api, {\r\n encoding: 'utf8'}\r\n ).catch((e: Error) => {\r\n throw e\r\n })\r\n }\r\n\r\n public exec (): Promise<any> {\r\n return new Promise<any>((resolve, reject) => {\r\n this.init().then(async () => {\r\n let actioned: boolean = true\r\n let command = JsfixCmd.getCommand()\r\n\r\n switch (command) {\r\n case Command.Generate: {\r\n // produce a test message or a valid fix log of n messages\r\n await this.generate()\r\n break\r\n }\r\n\r\n case Command.Encode: {\r\n // encode a json message back to fix\r\n this.encode()\r\n break\r\n }\r\n\r\n case Command.Replay: {\r\n // parse a file into either objects, tokens, structures or stats\r\n const repeats: number = !isNaN(argv.repeats) ? argv.repeats : 1\r\n try {\r\n for (let i: number = 0; i < repeats; ++i) {\r\n await this.replay()\r\n }\r\n } catch (e) {\r\n reject(e)\r\n }\r\n break\r\n }\r\n\r\n case Command.Benchmark: {\r\n // time how long to parse 10000 repeats of contents of file\r\n const repeats: number = !isNaN(argv.repeats) ? argv.repeats : 10000\r\n try {\r\n await this.benchmark(repeats)\r\n } catch (e) {\r\n reject(e)\r\n }\r\n break\r\n }\r\n\r\n case Command.Lookup: {\r\n // lookup a field\r\n if (argv.field) {\r\n this.field()\r\n } else {\r\n this.msg()\r\n }\r\n break\r\n }\r\n\r\n case Command.Compile: {\r\n await this.compile()\r\n break\r\n }\r\n\r\n case Command.Unknown:\r\n default: {\r\n actioned = false\r\n }\r\n }\r\n resolve(actioned)\r\n }).catch((e) => {\r\n reject(e)\r\n })\r\n })\r\n }\r\n\r\n private firstMessage (t: MsgTransport): Promise<MsgView> {\r\n return new Promise<MsgView>((resolve, reject) => {\r\n t.receiver.on('msg', (msgType: string, msgView: MsgView) => {\r\n resolve(msgView.clone())\r\n })\r\n t.receiver.on('error', (e) => {\r\n reject(e)\r\n })\r\n })\r\n }\r\n\r\n private async generate () {\r\n const lipPath: string = path.join(this.root, 'data/examples/lipsum.txt')\r\n const words: string[] = await getWords(lipPath)\r\n const generator = new MessageGenerator(words, this.definitions)\r\n let density = 1\r\n if (argv.density) {\r\n density = parseFloat(argv.density)\r\n }\r\n if (isNaN(density)) {\r\n console.log('density must be numeric in range > 0 density <= 1.0')\r\n return\r\n }\r\n\r\n if (argv.script) {\r\n await this.script(generator, density)\r\n } else {\r\n await this.single(generator, density)\r\n }\r\n }\r\n\r\n private async single (generator: MessageGenerator, density: number) {\r\n if (!argv.type) {\r\n console.log('specify type to generate e.g. --type = AE')\r\n return\r\n }\r\n const msgType: string = `${argv.type}`\r\n let makeGroups: boolean = true\r\n if (argv.groups) {\r\n makeGroups = argv.groups === 'true'\r\n }\r\n const obj: ILooseObject = generator.generate(msgType, density, makeGroups)\r\n console.log(JSON.stringify(obj, null, 4))\r\n const fix: string = this.encodeObject(msgType, obj)\r\n const ft: MsgTransport = new MsgTransport(1, this.session.config, new StringDuplex(fix))\r\n if (argv.unit) {\r\n await this.unitTest(fix, obj, ft)\r\n } else {\r\n this.subscribe(ft)\r\n }\r\n }\r\n\r\n private async script (generator: MessageGenerator, density: number) {\r\n let buffer: ElasticBuffer = new ElasticBuffer()\r\n const repeats: number = argv.repeats || 50\r\n const key: string = MsgTag.MsgType.toString()\r\n const sf = this.definitions.simple.get(key)\r\n const session: AsciiMsgTransmitter = this.session\r\n for (let i = 0; i < repeats; ++i) {\r\n const msgType: string = MessageGenerator.getRandomEnum(sf).toString()\r\n console.log(`i = ${i} ${msgType}`)\r\n const obj: ILooseObject = generator.generate(msgType, density)\r\n session.encodeMessage(msgType, obj)\r\n buffer.writeBuffer(session.buffer.slice())\r\n buffer.writeString(require('os').EOL)\r\n }\r\n await JsfixCmd.writeFile('./fix.txt', buffer.slice().toString('utf8'))\r\n }\r\n\r\n private async unitTest (fix: string, obj: ILooseObject, ft: MsgTransport) {\r\n const view: MsgView = await this.firstMessage(ft)\r\n const summary = view.structure.summary()\r\n\r\n await JsfixCmd.writeFile('./fix.txt', fix)\r\n await JsfixCmd.writeFile('./object.json', JSON.stringify(obj, null, 4))\r\n await JsfixCmd.writeFile('./token.txt', view.toString())\r\n await JsfixCmd.writeFile('./structure.json', JSON.stringify(summary, null, 4))\r\n }\r\n\r\n private encodeObject (msgType: string, object: ILooseObject): string {\r\n const session: AsciiMsgTransmitter = this.session\r\n session.encodeMessage(msgType, object)\r\n return session.buffer.toString()\r\n }\r\n\r\n private msg (): void {\r\n const definitions = this.definitions\r\n const m = definitions.message.get(argv.msg)\r\n if (m) {\r\n console.log(m.toString())\r\n }\r\n }\r\n\r\n private field (): void {\r\n let sf: SimpleFieldDefinition\r\n const tag: number = parseInt(argv.field, 10)\r\n const definitions = this.definitions\r\n if (!isNaN(tag)) {\r\n sf = definitions.tagToSimple[tag]\r\n } else {\r\n sf = definitions.simple.get(argv.field)\r\n }\r\n if (sf) {\r\n console.log(sf.toString())\r\n }\r\n }\r\n\r\n ensureExists (path: string): Promise<any> {\r\n return new Promise<any>((accept, reject) => {\r\n fs.mkdirp(path, (err: Error) => {\r\n if (err) {\r\n reject(err)\r\n } else {\r\n accept(true)\r\n }\r\n })\r\n })\r\n }\r\n\r\n private async compileDefinitions (outputPath: string) {\r\n await this.ensureExists(path.join(outputPath, 'set'))\r\n await this.ensureExists(path.join(outputPath, 'enum'))\r\n const definitions = this.definitions\r\n const compilerSettings: ICompilerSettings = require('../data/compiler.json')\r\n compilerSettings.output = outputPath\r\n const msgCompiler: MsgCompiler = new MsgCompiler(definitions, compilerSettings)\r\n await msgCompiler.generate()\r\n const enumCompiler: EnumCompiler = new EnumCompiler(definitions, compilerSettings)\r\n const writeFile = path.join(compilerSettings.output, './enum/all-enum.ts')\r\n await enumCompiler.generate(writeFile)\r\n }\r\n\r\n private async compile () {\r\n let output = argv.output\r\n const dp = new DefinitionFactory().getDictPath(argv.dict)\r\n if (dp) {\r\n output = dp.output\r\n }\r\n output = path.join(this.root, output)\r\n await this.compileDefinitions(output)\r\n }\r\n\r\n sys: SessionContainer\r\n config: IJsFixConfig\r\n\r\n private async init (): Promise<any> {\r\n let session: string = argv.session || 'data/session/test-initiator.json'\r\n this.sys = new SessionContainer()\r\n this.sys.registerGlobal('error')\r\n session = this.norm(session)\r\n this.sessionDescription = require(session)\r\n const container = await this.sys.makeSystem(this.sessionDescription)\r\n this.config = container.resolve<IJsFixConfig>(DITokens.IJsFixConfig)\r\n this.definitions = this.config.definitions\r\n let dict: string\r\n if (argv.dict) {\r\n dict = argv.dict\r\n const df = await new DefinitionFactory().getDefinitions(dict)\r\n this.config.definitions = df\r\n this.definitions = df\r\n }\r\n const definitions = this.definitions\r\n if (argv.delimiter) {\r\n this.delimiter = AsciiChars.firstChar(argv.delimiter)\r\n this.config.delimiter = this.delimiter\r\n }\r\n this.jsonHelper = new JsonHelper(definitions)\r\n if (argv.session) {\r\n this.session = container.resolve<AsciiMsgTransmitter>(DITokens.MsgTransmitter)\r\n }\r\n }\r\n\r\n private async dispatch (ft: MsgTransport): Promise<any> {\r\n if (argv.type != null) {\r\n this.filter = argv.type.toString()\r\n }\r\n let time: boolean = false\r\n if (argv.time || argv.stats) {\r\n this.print = false\r\n time = true\r\n }\r\n this.subscribe(ft)\r\n const startsAt: Date = new Date()\r\n await ft.wait()\r\n const elapsed: number = new Date().getTime() - startsAt.getTime()\r\n if (time) {\r\n console.log(`messages ${this.messages} elapsed ms ${elapsed}`)\r\n }\r\n if (argv.stats) {\r\n console.log(JSON.stringify(this.stats, null, 4))\r\n }\r\n }\r\n\r\n private subscribe (ft: MsgTransport) {\r\n this.messages = 0\r\n this.stats = {}\r\n const filter = this.filter\r\n // the receiver is message parser which is piped from an input stream - file, socket\r\n ft.receiver.on('msg', (msgType: string, m: AsciiView) => {\r\n\r\n if (filter) {\r\n if (msgType !== filter) {\r\n return\r\n }\r\n }\r\n ++this.messages\r\n this.onMsg(msgType, m)\r\n })\r\n }\r\n\r\n private onMsg (msgType: string, m: MsgView) {\r\n const mode: PrintMode = JsfixCmd.getPrintMode()\r\n const print = this.print\r\n const stats = this.stats\r\n switch (mode) {\r\n case PrintMode.Stats: {\r\n if (!stats[msgType]) {\r\n stats[msgType] = 1\r\n } else {\r\n stats[msgType] = stats[msgType] + 1\r\n }\r\n break\r\n }\r\n\r\n case PrintMode.Verbose: {\r\n const verbose = m.toVerbose()\r\n if (verbose) {\r\n console.log(verbose)\r\n }\r\n break\r\n }\r\n\r\n case PrintMode.Object: {\r\n const asObject: ILooseObject = m.toObject()\r\n if (print) {\r\n const def = this.definitions.message.get(msgType)\r\n console.log(`${msgType} [${def.name}] = ${JSON.stringify(asObject, null, 4)}`)\r\n console.log()\r\n }\r\n break\r\n }\r\n\r\n case PrintMode.Structure: {\r\n const summary = m.structure.summary()\r\n if (print) {\r\n console.log(JSON.stringify(summary, null, 4))\r\n }\r\n break\r\n }\r\n\r\n case PrintMode.Token: {\r\n const tokens = m.toString()\r\n if (print) {\r\n console.log(tokens)\r\n }\r\n break\r\n }\r\n\r\n case PrintMode.Encoded: {\r\n const fix: string = this.encodeObject(msgType, m.toObject())\r\n console.log(fix)\r\n break\r\n }\r\n\r\n default:\r\n throw new Error(`unknown mode ${mode}`)\r\n }\r\n }\r\n\r\n private async replay (): Promise<any> {\r\n if (!argv.fix) {\r\n console.log('provide a path to fix file i.e. --fix=data/examples/execution-report/fix.txt')\r\n return\r\n }\r\n const fix: string = this.norm(argv.fix)\r\n const config = this.config\r\n const ft: MsgTransport = new MsgTransport(1, config, new FileDuplex(fix))\r\n await this.dispatch(ft)\r\n }\r\n\r\n private async benchmark (repeats: number): Promise<any> {\r\n if (!argv.fix) {\r\n console.log('provide a path to fix file i.e. --fix=data/examples/execution-report/fix.txt')\r\n return\r\n }\r\n return new Promise<any>((accept, reject) => {\r\n const fix: string = this.norm(argv.fix)\r\n const fs = require('fs')\r\n fs.readFile(fix, 'utf8', async (err: Error, contents: string) => {\r\n if (err) {\r\n reject(err)\r\n }\r\n const toParse = new StringDuplex(contents.repeat(repeats), false)\r\n const startsAt: Date = new Date()\r\n let i = 0\r\n const config = this.config\r\n const buffer = config.sessionContainer.resolve<ElasticBuffer>(DITokens.ParseBuffer)\r\n const asciiParser: MsgParser = new AsciiParser(config, toParse.readable, buffer)\r\n asciiParser.on('msg', (msgType: string, v: MsgView) => {\r\n ++i\r\n if (i === repeats) {\r\n const elapsed: number = new Date().getTime() - startsAt.getTime()\r\n console.log(contents)\r\n console.log(v.toString())\r\n console.log(`[${msgType}]: repeats = ${repeats}, fields = ${v.structure.tags.nextTagPos}, length = ${contents.length} chars, elapsed ms ${elapsed}, ${(elapsed / repeats) * 1000} micros per msg`)\r\n accept(true)\r\n }\r\n })\r\n })\r\n })\r\n }\r\n\r\n private encode (): void {\r\n const session: AsciiMsgTransmitter = this.session\r\n if (!session) {\r\n console.log('provide a session json file e.g. --session=data/session/test-initiator.json')\r\n return\r\n }\r\n if (!argv.type) {\r\n console.log('provide a message type e.g. --type=8')\r\n return\r\n }\r\n if (!argv.json) {\r\n console.log('provide a json representation e.g. data/examples/execution-report/object.json')\r\n return\r\n }\r\n const ts: string = argv.type.toString()\r\n const msg: ILooseObject = this.jsonHelper.fromJson(path.join(this.root, argv.json), ts)\r\n session.encodeMessage(ts, msg)\r\n const fix: string = session.buffer.toString()\r\n console.log(fix)\r\n }\r\n\r\n private norm (p: string): string {\r\n let f: string = p\r\n if (!path.isAbsolute(p)) {\r\n f = path.join(this.root, f)\r\n }\r\n return f\r\n }\r\n}\r\n\r\nfunction showHelp (): void {\r\n console.log('this help page')\r\n console.log('npm run cmd')\r\n console.log('npm run cmd -- --help')\r\n console.log()\r\n\r\n console.log('token format i.e. [602] 687 (LegQty) = 33589')\r\n console.log('jsfix-cmd --dict=data/FIX44.xml --fix=data/examples/quickfix/FIX.4.4/execution-report/fix.txt --delimiter=\"|\" --tokens')\r\n console.log()\r\n\r\n console.log('token format use fix repo dictionary')\r\n console.log('jsfix-cmd --dict=data/fix_repo/FIX.4.4/Base --fix=data/examples/quickfix/FIX.4.4/execution-report/fix.txt'\r\n + ' --delimiter=\"|\" --tokens')\r\n console.log()\r\n\r\n console.log('structure format i.e. show locations of components etc.')\r\n console.log('jsfix-cmd --dict=data/FIX44.xml --fix=data/examples/FIX.4.4/quickfix/execution-report/fix.txt' +\r\n ' --delimiter=\"|\" --tokens --structures')\r\n console.log()\r\n\r\n console.log('full JS object in JSON format.')\r\n console.log('jsfix-cmd --dict=data/FIX44.xml --fix=data/examples/FIX.4.4/quickfix/execution-report/fix.txt' +\r\n ' --delimiter=\"|\" --tokens --objects')\r\n console.log()\r\n\r\n console.log('full JS object in JSON format - filter only type messages.')\r\n console.log('jsfix-cmd --dict=data/FIX44.xml --fix=data/examples/FIX.4.4/quickfix/execution-report/fix.txt' +\r\n ' --delimiter=\"|\" --tokens --type=8 --objects')\r\n console.log()\r\n\r\n console.log('timing stats and message counts. Structured parsing of all messages.')\r\n console.log('jsfix-cmd --dict=data/FIX44.xml --fix=data/examples/FIX.4.4/quickfix/execution-report/fix.txt --stats')\r\n console.log()\r\n\r\n console.log('encode a json object to fix format')\r\n console.log('jsfix-cmd --json=data/examples/FIX.4.4/quickfix/execution-report/object.json' +\r\n ' --session=data/session.json --type=8 --delimiter=\"|\"')\r\n console.log()\r\n\r\n console.log('display field definition')\r\n console.log('jsfix-cmd --dict=data/FIX44.xml --field=MsgType|35')\r\n console.log()\r\n\r\n console.log('display field use fix repo dictionary e.g. 271 MDEntrySize QTY Quantity or volume represented by the Market Data Entry.')\r\n console.log('jsfix-cmd --dict=data/fix_repo/FIX.4.4/Base --field=MsgType')\r\n console.log('jsfix-cmd --dict=data/fix_repo/FIX.4.4/Base --field=35')\r\n console.log()\r\n\r\n console.log('script to describe field in repository version 4.4')\r\n console.log('npm run repo44 -- --field=8')\r\n console.log()\r\n\r\n console.log('script to describe field in fixml')\r\n console.log('npm run fixml -- --field=50')\r\n console.log()\r\n\r\n console.log('generate unit test set of files - i.e. randomly generate an object, encode to fix. density 1 is all fields')\r\n console.log('jsfix-cmd --generate --type=AE --density=0.8 --unit --delimiter=\"|\" --session=data/session/test-initiator.json')\r\n console.log('npm run repo44-unit -- --type=AE')\r\n console.log('test script with no repeat groups')\r\n console.log('npm run repo44-unit -- --type=AE --groups=false')\r\n console.log()\r\n\r\n console.log('generate a fix log of randomly generated but syntactically correct messages')\r\n console.log('jsfix-cmd --generate --density=0.8 --repeats=50 --script --delimiter=\"|\" --session=data/session/test-initiator.json')\r\n console.log('npm run repo44-script')\r\n console.log('parse above generated script')\r\n console.log('npm run repo44-repscr')\r\n console.log()\r\n\r\n console.log('replay example repo fix file of 50 messages.')\r\n console.log('jsfix-cmd --session=data/session/test-initiator.json --fix=data/examples/FIX.4.4/fix.txt --delimiter=\"|\" --stats')\r\n console.log('npm run repo44-replay -- --stats')\r\n console.log('npm run repo44-replay -- --objects')\r\n console.log('npm run repo44-replay -- --tokens')\r\n console.log('npm run repo44-replay -- --structures')\r\n console.log()\r\n\r\n console.log('benchmark parse a message')\r\n console.log('jsfix-cmd --delimiter=\"|\" --session=data/session/test-initiator.json --fix=data/examples/FIX.4.4/repo/trade-capture-no-groups/fix.txt --benchmark')\r\n console.log('npm run repo44-bench -- --fix=data/examples/FIX.4.4/repo/trade-capture-no-groups/fix.txt')\r\n console.log()\r\n\r\n console.log('compile typescript interfaces - i.e. outputs to src/types/FIX4.4 - requires set and enum sub folders')\r\n console.log('npm run cmd -- --dict=repo40 --compile')\r\n console.log('npm run cmd -- --dict=repo41 --compile')\r\n console.log('npm run cmd -- --dict=repo42 --compile')\r\n console.log('npm run cmd -- --dict=repo43 --compile')\r\n console.log('npm run cmd -- --dict=repo44 --compile')\r\n console.log('npm run cmd -- --dict=repo50 --compile')\r\n console.log('npm run cmd -- --dict=repo50sp1 --compile')\r\n console.log('npm run cmd -- --dict=repo50sp2 --compile')\r\n console.log('npm run cmd -- --dict=repofixml --compile')\r\n console.log('npm run cmd -- --dict=qf44 --compile')\r\n console.log('npm run cmd -- --dict=data/handmade.xml --compile --output=src/types/handmade')\r\n\r\n console.log()\r\n}\r\n\r\nconst help: boolean = argv.h || argv.help\r\nif (help) {\r\n showHelp()\r\n} else {\r\n const cmd: JsfixCmd = new JsfixCmd()\r\n cmd.exec().then((res: boolean) => {\r\n if (!res) {\r\n showHelp()\r\n }\r\n }).catch((e: Error) => {\r\n console.log(`error ${e.message}`)\r\n })\r\n}\r\n"]}
File without changes
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=launcher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"launcher.js","sourceRoot":"","sources":["../src/sample/launcher.ts"],"names":[],"mappings":"","sourcesContent":[""]}
File without changes
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=logon.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logon.test.js","sourceRoot":"","sources":["../src/test/logon.test.ts"],"names":[],"mappings":"","sourcesContent":[""]}
File without changes
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=make-fix-session.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"make-fix-session.js","sourceRoot":"","sources":["../src/transport/make-fix-session.ts"],"names":[],"mappings":"","sourcesContent":[""]}
File without changes
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=memory-store.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"memory-store.test.js","sourceRoot":"","sources":["../src/test/memory-store.test.ts"],"names":[],"mappings":"","sourcesContent":[""]}