jspurefix 1.4.1 → 2.0.3

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 (879) hide show
  1. package/.eslintrc.js +6 -0
  2. package/appveyor.yml +4 -0
  3. package/dist/buffer/{ascii-chars.d.ts → ascii/ascii-chars.d.ts} +0 -0
  4. package/dist/buffer/{ascii-chars.js → ascii/ascii-chars.js} +0 -0
  5. package/dist/buffer/ascii/ascii-chars.js.map +1 -0
  6. package/dist/buffer/ascii/ascii-encoder.d.ts +4 -2
  7. package/dist/buffer/ascii/ascii-encoder.js +54 -32
  8. package/dist/buffer/ascii/ascii-encoder.js.map +1 -1
  9. package/dist/buffer/ascii/ascii-parser-state.d.ts +3 -10
  10. package/dist/buffer/ascii/ascii-parser-state.js +37 -25
  11. package/dist/buffer/ascii/ascii-parser-state.js.map +1 -1
  12. package/dist/buffer/ascii/ascii-parser.d.ts +7 -7
  13. package/dist/buffer/ascii/ascii-parser.js +50 -24
  14. package/dist/buffer/ascii/ascii-parser.js.map +1 -1
  15. package/dist/buffer/ascii/ascii-segment-parser.d.ts +2 -2
  16. package/dist/buffer/ascii/ascii-segment-parser.js +34 -13
  17. package/dist/buffer/ascii/ascii-segment-parser.js.map +1 -1
  18. package/dist/buffer/ascii/ascii-view.d.ts +2 -4
  19. package/dist/buffer/ascii/ascii-view.js +11 -15
  20. package/dist/buffer/ascii/ascii-view.js.map +1 -1
  21. package/dist/buffer/ascii/index.d.ts +1 -0
  22. package/dist/buffer/ascii/index.js +1 -0
  23. package/dist/buffer/ascii/index.js.map +1 -1
  24. package/dist/buffer/ascii/parse-state.d.ts +8 -0
  25. package/dist/buffer/ascii/parse-state.js +13 -0
  26. package/dist/buffer/ascii/parse-state.js.map +1 -0
  27. package/dist/buffer/ascii/time-formatter.js +1 -1
  28. package/dist/buffer/ascii/time-formatter.js.map +1 -1
  29. package/dist/buffer/elastic-buffer.js +29 -8
  30. package/dist/buffer/elastic-buffer.js.map +1 -1
  31. package/dist/buffer/encode-proxy.d.ts +1 -1
  32. package/dist/buffer/encode-proxy.js +16 -17
  33. package/dist/buffer/encode-proxy.js.map +1 -1
  34. package/dist/buffer/fixml/fixml-encoder.d.ts +2 -1
  35. package/dist/buffer/fixml/fixml-encoder.js +43 -20
  36. package/dist/buffer/fixml/fixml-encoder.js.map +1 -1
  37. package/dist/buffer/fixml/fixml-parser.js +47 -24
  38. package/dist/buffer/fixml/fixml-parser.js.map +1 -1
  39. package/dist/buffer/fixml/fixml-view.d.ts +2 -4
  40. package/dist/buffer/fixml/fixml-view.js +13 -16
  41. package/dist/buffer/fixml/fixml-view.js.map +1 -1
  42. package/dist/buffer/fixml/populated-attributes.d.ts +5 -0
  43. package/dist/buffer/fixml/populated-attributes.js +3 -0
  44. package/dist/buffer/fixml/populated-attributes.js.map +1 -0
  45. package/dist/buffer/index.d.ts +4 -8
  46. package/dist/buffer/index.js +4 -8
  47. package/dist/buffer/index.js.map +1 -1
  48. package/dist/buffer/msg-encoder.d.ts +2 -1
  49. package/dist/buffer/msg-encoder.js.map +1 -1
  50. package/dist/buffer/msg-view.d.ts +3 -5
  51. package/dist/buffer/msg-view.js +8 -5
  52. package/dist/buffer/msg-view.js.map +1 -1
  53. package/dist/buffer/{segment-description.d.ts → segment/segment-description.d.ts} +3 -10
  54. package/dist/buffer/{segment-description.js → segment/segment-description.js} +5 -13
  55. package/dist/buffer/segment/segment-description.js.map +1 -0
  56. package/dist/buffer/{segment-summary.d.ts → segment/segment-summary.d.ts} +0 -0
  57. package/dist/buffer/{segment-summary.js → segment/segment-summary.js} +0 -0
  58. package/dist/buffer/segment/segment-summary.js.map +1 -0
  59. package/dist/buffer/segment/segment-type.d.ts +8 -0
  60. package/dist/buffer/segment/segment-type.js +13 -0
  61. package/dist/buffer/segment/segment-type.js.map +1 -0
  62. package/dist/buffer/structure.d.ts +3 -3
  63. package/dist/buffer/structure.js +1 -1
  64. package/dist/buffer/structure.js.map +1 -1
  65. package/dist/buffer/{tag-pos.d.ts → tag/tag-pos.d.ts} +0 -0
  66. package/dist/buffer/{tag-pos.js → tag/tag-pos.js} +0 -0
  67. package/dist/buffer/tag/tag-pos.js.map +1 -0
  68. package/dist/buffer/tag/tag-type.d.ts +13 -0
  69. package/dist/buffer/tag/tag-type.js +18 -0
  70. package/dist/buffer/tag/tag-type.js.map +1 -0
  71. package/dist/buffer/{tags.d.ts → tag/tags.d.ts} +3 -14
  72. package/dist/buffer/{tags.js → tag/tags.js} +24 -37
  73. package/dist/buffer/tag/tags.js.map +1 -0
  74. package/dist/config/get-js-fx-logger.d.ts +4 -0
  75. package/dist/config/get-js-fx-logger.js +3 -0
  76. package/dist/config/get-js-fx-logger.js.map +1 -0
  77. package/dist/config/index.d.ts +1 -0
  78. package/dist/config/index.js +1 -0
  79. package/dist/config/index.js.map +1 -1
  80. package/dist/config/js-fix-config.d.ts +4 -1
  81. package/dist/config/js-fix-config.js +3 -3
  82. package/dist/config/js-fix-config.js.map +1 -1
  83. package/dist/config/js-fix-logger.d.ts +0 -3
  84. package/dist/config/js-fix-logger.js.map +1 -1
  85. package/dist/dict-parser.js +28 -23
  86. package/dist/dict-parser.js.map +1 -1
  87. package/dist/dictionary/compiler/compiler-type.js +7 -7
  88. package/dist/dictionary/compiler/compiler-type.js.map +1 -1
  89. package/dist/dictionary/compiler/enum-compiler.d.ts +1 -0
  90. package/dist/dictionary/compiler/enum-compiler.js +11 -1
  91. package/dist/dictionary/compiler/enum-compiler.js.map +1 -1
  92. package/dist/dictionary/compiler/msg-compiler.js +8 -6
  93. package/dist/dictionary/compiler/msg-compiler.js.map +1 -1
  94. package/dist/dictionary/contained/contained-component-field.js +2 -1
  95. package/dist/dictionary/contained/contained-component-field.js.map +1 -1
  96. package/dist/dictionary/contained/contained-field-dispatch.d.ts +1 -14
  97. package/dist/dictionary/contained/contained-field-dispatch.js +4 -4
  98. package/dist/dictionary/contained/contained-field-dispatch.js.map +1 -1
  99. package/dist/dictionary/contained/contained-field-dispatcher.d.ts +14 -0
  100. package/dist/dictionary/contained/contained-field-dispatcher.js +3 -0
  101. package/dist/dictionary/contained/contained-field-dispatcher.js.map +1 -0
  102. package/dist/dictionary/contained/contained-field-set.d.ts +1 -1
  103. package/dist/dictionary/contained/contained-field-set.js +12 -11
  104. package/dist/dictionary/contained/contained-field-set.js.map +1 -1
  105. package/dist/dictionary/contained/contained-field-type.d.ts +5 -0
  106. package/dist/dictionary/contained/contained-field-type.js +10 -0
  107. package/dist/dictionary/contained/contained-field-type.js.map +1 -0
  108. package/dist/dictionary/contained/contained-field.d.ts +1 -5
  109. package/dist/dictionary/contained/contained-field.js +1 -7
  110. package/dist/dictionary/contained/contained-field.js.map +1 -1
  111. package/dist/dictionary/contained/contained-group-field.js +2 -1
  112. package/dist/dictionary/contained/contained-group-field.js.map +1 -1
  113. package/dist/dictionary/contained/contained-simple-field.js +2 -1
  114. package/dist/dictionary/contained/contained-simple-field.js.map +1 -1
  115. package/dist/dictionary/{fields-dispatch.d.ts → contained/field-dispatcher.d.ts} +3 -2
  116. package/dist/dictionary/contained/field-dispatcher.js +3 -0
  117. package/dist/dictionary/contained/field-dispatcher.js.map +1 -0
  118. package/dist/dictionary/contained/fields-dispatch.d.ts +6 -0
  119. package/dist/dictionary/contained/fields-dispatch.js +42 -0
  120. package/dist/dictionary/contained/fields-dispatch.js.map +1 -0
  121. package/dist/dictionary/contained/index.d.ts +2 -0
  122. package/dist/dictionary/contained/index.js +2 -0
  123. package/dist/dictionary/contained/index.js.map +1 -1
  124. package/dist/dictionary/contained-set-type.d.ts +5 -0
  125. package/dist/dictionary/contained-set-type.js +10 -0
  126. package/dist/dictionary/contained-set-type.js.map +1 -0
  127. package/dist/dictionary/definition/component-field-definition.js +2 -2
  128. package/dist/dictionary/definition/component-field-definition.js.map +1 -1
  129. package/dist/dictionary/definition/fix-definitions.d.ts +2 -1
  130. package/dist/dictionary/definition/fix-definitions.js.map +1 -1
  131. package/dist/dictionary/definition/group-field-definition.js +2 -2
  132. package/dist/dictionary/definition/group-field-definition.js.map +1 -1
  133. package/dist/dictionary/definition/index.d.ts +0 -1
  134. package/dist/dictionary/definition/index.js +0 -1
  135. package/dist/dictionary/definition/index.js.map +1 -1
  136. package/dist/dictionary/definition/message-definition.js +2 -2
  137. package/dist/dictionary/definition/message-definition.js.map +1 -1
  138. package/dist/dictionary/definition/simple-field-definition.d.ts +1 -1
  139. package/dist/dictionary/definition/simple-field-definition.js +5 -4
  140. package/dist/dictionary/definition/simple-field-definition.js.map +1 -1
  141. package/dist/dictionary/dict-primitive.d.ts +0 -11
  142. package/dist/dictionary/dict-primitive.js +0 -7
  143. package/dist/dictionary/dict-primitive.js.map +1 -1
  144. package/dist/dictionary/fix-definition-source.d.ts +6 -0
  145. package/dist/dictionary/fix-definition-source.js +11 -0
  146. package/dist/dictionary/fix-definition-source.js.map +1 -0
  147. package/dist/dictionary/fix-versions.d.ts +0 -9
  148. package/dist/dictionary/fix-versions.js +1 -39
  149. package/dist/dictionary/fix-versions.js.map +1 -1
  150. package/dist/dictionary/index.d.ts +1 -5
  151. package/dist/dictionary/index.js +1 -5
  152. package/dist/dictionary/index.js.map +1 -1
  153. package/dist/dictionary/parser/fix-repository/abbreviations-parser.d.ts +1 -3
  154. package/dist/dictionary/parser/fix-repository/abbreviations-parser.js +2 -3
  155. package/dist/dictionary/parser/fix-repository/abbreviations-parser.js.map +1 -1
  156. package/dist/dictionary/parser/fix-repository/base-parser.d.ts +2 -4
  157. package/dist/dictionary/parser/fix-repository/base-parser.js +1 -2
  158. package/dist/dictionary/parser/fix-repository/base-parser.js.map +1 -1
  159. package/dist/dictionary/parser/fix-repository/components-parser.d.ts +1 -3
  160. package/dist/dictionary/parser/fix-repository/components-parser.js +2 -3
  161. package/dist/dictionary/parser/fix-repository/components-parser.js.map +1 -1
  162. package/dist/dictionary/parser/fix-repository/data-types-parser.d.ts +1 -3
  163. package/dist/dictionary/parser/fix-repository/data-types-parser.js +2 -3
  164. package/dist/dictionary/parser/fix-repository/data-types-parser.js.map +1 -1
  165. package/dist/dictionary/parser/fix-repository/enums-parser.d.ts +1 -3
  166. package/dist/dictionary/parser/fix-repository/enums-parser.js +2 -3
  167. package/dist/dictionary/parser/fix-repository/enums-parser.js.map +1 -1
  168. package/dist/dictionary/parser/fix-repository/fields-parser.d.ts +1 -3
  169. package/dist/dictionary/parser/fix-repository/fields-parser.js +2 -3
  170. package/dist/dictionary/parser/fix-repository/fields-parser.js.map +1 -1
  171. package/dist/dictionary/parser/fix-repository/messages-parser.d.ts +1 -3
  172. package/dist/dictionary/parser/fix-repository/messages-parser.js +2 -3
  173. package/dist/dictionary/parser/fix-repository/messages-parser.js.map +1 -1
  174. package/dist/dictionary/parser/fix-repository/msg-contents-parser.d.ts +1 -3
  175. package/dist/dictionary/parser/fix-repository/msg-contents-parser.js +2 -3
  176. package/dist/dictionary/parser/fix-repository/msg-contents-parser.js.map +1 -1
  177. package/dist/dictionary/parser/fix-repository/repository-abbreviation.d.ts +5 -0
  178. package/dist/dictionary/parser/fix-repository/repository-abbreviation.js +3 -0
  179. package/dist/dictionary/parser/fix-repository/repository-abbreviation.js.map +1 -0
  180. package/dist/dictionary/parser/fix-repository/repository-component.d.ts +10 -0
  181. package/dist/dictionary/parser/fix-repository/repository-component.js +3 -0
  182. package/dist/dictionary/parser/fix-repository/repository-component.js.map +1 -0
  183. package/dist/dictionary/parser/fix-repository/repository-data-type.d.ts +6 -0
  184. package/dist/dictionary/parser/fix-repository/repository-data-type.js +3 -0
  185. package/dist/dictionary/parser/fix-repository/repository-data-type.js.map +1 -0
  186. package/dist/dictionary/parser/fix-repository/repository-enum.d.ts +7 -0
  187. package/dist/{transport/fix-msg-factory.js → dictionary/parser/fix-repository/repository-enum.js} +1 -1
  188. package/dist/dictionary/parser/fix-repository/repository-enum.js.map +1 -0
  189. package/dist/dictionary/parser/fix-repository/repository-field.d.ts +11 -0
  190. package/dist/dictionary/parser/fix-repository/repository-field.js +3 -0
  191. package/dist/dictionary/parser/fix-repository/repository-field.js.map +1 -0
  192. package/dist/dictionary/parser/fix-repository/repository-message.d.ts +11 -0
  193. package/dist/{transport/make-fixl-session.js → dictionary/parser/fix-repository/repository-message.js} +1 -1
  194. package/dist/dictionary/parser/fix-repository/repository-message.js.map +1 -0
  195. package/dist/dictionary/parser/fix-repository/repository-msg-content.d.ts +9 -0
  196. package/dist/dictionary/parser/fix-repository/repository-msg-content.js +3 -0
  197. package/dist/dictionary/parser/fix-repository/repository-msg-content.js.map +1 -0
  198. package/dist/dictionary/parser/fix-repository/repository-type.d.ts +0 -53
  199. package/dist/dictionary/parser/fix-repository/repository-type.js +0 -2
  200. package/dist/dictionary/parser/fix-repository/repository-type.js.map +1 -1
  201. package/dist/dictionary/parser/fix-repository/repository-xml-parser.js +10 -10
  202. package/dist/dictionary/parser/fix-repository/repository-xml-parser.js.map +1 -1
  203. package/dist/dictionary/parser/fix-repository/repository.d.ts +12 -1
  204. package/dist/dictionary/parser/fix-repository/repository.js +50 -28
  205. package/dist/dictionary/parser/fix-repository/repository.js.map +1 -1
  206. package/dist/dictionary/parser/fixml/components-parser.d.ts +1 -1
  207. package/dist/dictionary/parser/fixml/components-parser.js.map +1 -1
  208. package/dist/dictionary/parser/fixml/fields-parser.d.ts +1 -1
  209. package/dist/dictionary/parser/fixml/fields-parser.js.map +1 -1
  210. package/dist/dictionary/parser/fixml/fix-xsd-parser.js +3 -2
  211. package/dist/dictionary/parser/fixml/fix-xsd-parser.js.map +1 -1
  212. package/dist/dictionary/parser/fixml/include-graph.js.map +1 -1
  213. package/dist/dictionary/parser/fixml/xsd-parser.d.ts +1 -1
  214. package/dist/dictionary/parser/fixml/xsd-parser.js.map +1 -1
  215. package/dist/dictionary/parser/quickfix/field-definition-parser.d.ts +4 -4
  216. package/dist/dictionary/parser/quickfix/field-definition-parser.js +3 -3
  217. package/dist/dictionary/parser/quickfix/field-definition-parser.js.map +1 -1
  218. package/dist/dictionary/parser/quickfix/field-set-parser.d.ts +4 -4
  219. package/dist/dictionary/parser/quickfix/field-set-parser.js +3 -3
  220. package/dist/dictionary/parser/quickfix/field-set-parser.js.map +1 -1
  221. package/dist/dictionary/parser/quickfix/message-parser.d.ts +4 -4
  222. package/dist/dictionary/parser/quickfix/message-parser.js +3 -3
  223. package/dist/dictionary/parser/quickfix/message-parser.js.map +1 -1
  224. package/dist/dictionary/parser/quickfix/node-parser.d.ts +4 -5
  225. package/dist/dictionary/parser/quickfix/node-parser.js +4 -4
  226. package/dist/dictionary/parser/quickfix/node-parser.js.map +1 -1
  227. package/dist/dictionary/parser/quickfix/parse-state.d.ts +8 -0
  228. package/dist/dictionary/parser/quickfix/parse-state.js +13 -0
  229. package/dist/dictionary/parser/quickfix/parse-state.js.map +1 -0
  230. package/dist/dictionary/parser/quickfix/quick-fix-xml-file-parser.d.ts +1 -9
  231. package/dist/dictionary/parser/quickfix/quick-fix-xml-file-parser.js +28 -35
  232. package/dist/dictionary/parser/quickfix/quick-fix-xml-file-parser.js.map +1 -1
  233. package/dist/dictionary/sax-node.d.ts +6 -0
  234. package/dist/{types/FIX4.4/quickfix/set/trailer.js → dictionary/sax-node.js} +1 -1
  235. package/dist/dictionary/sax-node.js.map +1 -0
  236. package/dist/dictionary/set-reduce.d.ts +5 -12
  237. package/dist/dictionary/set-reduce.js +28 -26
  238. package/dist/dictionary/set-reduce.js.map +1 -1
  239. package/dist/dictionary/type-dispatcher.d.ts +12 -0
  240. package/dist/dictionary/type-dispatcher.js +3 -0
  241. package/dist/dictionary/type-dispatcher.js.map +1 -0
  242. package/dist/dictionary/version-util.d.ts +4 -0
  243. package/dist/dictionary/version-util.js +36 -0
  244. package/dist/dictionary/version-util.js.map +1 -0
  245. package/dist/index.d.ts +1 -0
  246. package/dist/index.js +1 -0
  247. package/dist/index.js.map +1 -1
  248. package/dist/jsfix-cmd.d.ts +5 -0
  249. package/dist/jsfix-cmd.js +28 -21
  250. package/dist/jsfix-cmd.js.map +1 -1
  251. package/dist/runtime/di-tokens.d.ts +28 -0
  252. package/dist/runtime/di-tokens.js +33 -0
  253. package/dist/runtime/di-tokens.js.map +1 -0
  254. package/dist/runtime/engine-factory.d.ts +4 -0
  255. package/dist/runtime/engine-factory.js +3 -0
  256. package/dist/runtime/engine-factory.js.map +1 -0
  257. package/dist/runtime/index.d.ts +5 -0
  258. package/dist/runtime/index.js +18 -0
  259. package/dist/runtime/index.js.map +1 -0
  260. package/dist/runtime/make-config.d.ts +11 -0
  261. package/dist/runtime/make-config.js +57 -0
  262. package/dist/runtime/make-config.js.map +1 -0
  263. package/dist/runtime/session-container.d.ts +16 -0
  264. package/dist/runtime/session-container.js +168 -0
  265. package/dist/runtime/session-container.js.map +1 -0
  266. package/dist/runtime/session-launcher.d.ts +27 -0
  267. package/dist/runtime/session-launcher.js +131 -0
  268. package/dist/runtime/session-launcher.js.map +1 -0
  269. package/dist/sample/http/oms/app.d.ts +1 -1
  270. package/dist/sample/http/oms/app.js +16 -14
  271. package/dist/sample/http/oms/app.js.map +1 -1
  272. package/dist/sample/http/oms/http-client.js +22 -2
  273. package/dist/sample/http/oms/http-client.js.map +1 -1
  274. package/dist/sample/http/oms/http-server.js +21 -2
  275. package/dist/sample/http/oms/http-server.js.map +1 -1
  276. package/dist/sample/tcp/qf-md/app.d.ts +1 -1
  277. package/dist/sample/tcp/qf-md/app.js +11 -11
  278. package/dist/sample/tcp/qf-md/app.js.map +1 -1
  279. package/dist/sample/tcp/qf-md/md-client.js +21 -2
  280. package/dist/sample/tcp/qf-md/md-client.js.map +1 -1
  281. package/dist/sample/tcp/qf-md/md-server.js +20 -2
  282. package/dist/sample/tcp/qf-md/md-server.js.map +1 -1
  283. package/dist/sample/tcp/recovering-skeleton/app.d.ts +1 -1
  284. package/dist/sample/tcp/recovering-skeleton/app.js +36 -16
  285. package/dist/sample/tcp/recovering-skeleton/app.js.map +1 -1
  286. package/dist/sample/tcp/recovering-skeleton/respawn-acceptor.d.ts +3 -1
  287. package/dist/sample/tcp/recovering-skeleton/respawn-acceptor.js +30 -8
  288. package/dist/sample/tcp/recovering-skeleton/respawn-acceptor.js.map +1 -1
  289. package/dist/sample/tcp/recovering-skeleton/skeleton-client.d.ts +1 -1
  290. package/dist/sample/tcp/recovering-skeleton/skeleton-client.js +22 -3
  291. package/dist/sample/tcp/recovering-skeleton/skeleton-client.js.map +1 -1
  292. package/dist/sample/tcp/recovering-skeleton/skeleton-server.js +21 -2
  293. package/dist/sample/tcp/recovering-skeleton/skeleton-server.js.map +1 -1
  294. package/dist/sample/tcp/skeleton/app.d.ts +1 -1
  295. package/dist/sample/tcp/skeleton/app.js +8 -13
  296. package/dist/sample/tcp/skeleton/app.js.map +1 -1
  297. package/dist/sample/tcp/skeleton/skeleton-session.d.ts +1 -1
  298. package/dist/sample/tcp/skeleton/skeleton-session.js +26 -4
  299. package/dist/sample/tcp/skeleton/skeleton-session.js.map +1 -1
  300. package/dist/sample/tcp/tls-trade-capture/app.d.ts +1 -1
  301. package/dist/sample/tcp/tls-trade-capture/app.js +4 -24
  302. package/dist/sample/tcp/tls-trade-capture/app.js.map +1 -1
  303. package/dist/sample/tcp/trade-capture/app-launcher.d.ts +6 -0
  304. package/dist/sample/tcp/trade-capture/app-launcher.js +21 -0
  305. package/dist/sample/tcp/trade-capture/app-launcher.js.map +1 -0
  306. package/dist/sample/tcp/trade-capture/app.d.ts +1 -1
  307. package/dist/sample/tcp/trade-capture/app.js +4 -21
  308. package/dist/sample/tcp/trade-capture/app.js.map +1 -1
  309. package/dist/sample/tcp/trade-capture/trade-capture-client.js.map +1 -1
  310. package/dist/sample/tcp/trade-capture/trade-capture-server.js.map +1 -1
  311. package/dist/sample/tcp/trade-capture/trade-factory.js +7 -1
  312. package/dist/sample/tcp/trade-capture/trade-factory.js.map +1 -1
  313. package/dist/store/fix-msg-ascii-store-resend.d.ts +1 -1
  314. package/dist/store/fix-msg-ascii-store-resend.js +2 -1
  315. package/dist/store/fix-msg-ascii-store-resend.js.map +1 -1
  316. package/dist/store/fix-msg-memory-store.d.ts +1 -1
  317. package/dist/store/fix-msg-memory-store.js.map +1 -1
  318. package/dist/store/fix-msg-store-record.d.ts +2 -0
  319. package/dist/store/fix-msg-store-record.js +4 -0
  320. package/dist/store/fix-msg-store-record.js.map +1 -1
  321. package/dist/store/fix-msg-store-state.d.ts +6 -0
  322. package/dist/store/fix-msg-store-state.js +3 -0
  323. package/dist/store/fix-msg-store-state.js.map +1 -0
  324. package/dist/store/fix-msg-store.d.ts +1 -6
  325. package/dist/store/fix-msg-store.js.map +1 -1
  326. package/dist/test/ascii/ascii-encoder.test.d.ts +1 -0
  327. package/dist/test/{ascii-encoder.test.js → ascii/ascii-encoder.test.js} +57 -55
  328. package/dist/test/ascii/ascii-encoder.test.js.map +1 -0
  329. package/dist/test/ascii/ascii-parser.test.d.ts +1 -0
  330. package/dist/test/{ascii-parser.test.js → ascii/ascii-parser.test.js} +33 -52
  331. package/dist/test/ascii/ascii-parser.test.js.map +1 -0
  332. package/dist/test/ascii/ascii-segment.test.d.ts +1 -0
  333. package/dist/test/{ascii-segment.test.js → ascii/ascii-segment.test.js} +20 -41
  334. package/dist/test/ascii/ascii-segment.test.js.map +1 -0
  335. package/dist/test/ascii/ascii-store-replay.test.d.ts +1 -0
  336. package/dist/test/{ascii-store-replay.test.js → ascii/ascii-store-replay.test.js} +14 -43
  337. package/dist/test/ascii/ascii-store-replay.test.js.map +1 -0
  338. package/dist/test/ascii/ascii-tag-pos.test.d.ts +1 -0
  339. package/dist/test/{ascii-tag-pos.test.js → ascii/ascii-tag-pos.test.js} +10 -10
  340. package/dist/test/ascii/ascii-tag-pos.test.js.map +1 -0
  341. package/dist/test/ascii/execution-report.test.d.ts +1 -0
  342. package/dist/test/{execution-report.test.js → ascii/execution-report.test.js} +51 -52
  343. package/dist/test/ascii/execution-report.test.js.map +1 -0
  344. package/dist/test/ascii/fix-log-replay.test.d.ts +1 -0
  345. package/dist/test/{fix-log-replay.test.js → ascii/fix-log-replay.test.js} +8 -6
  346. package/dist/test/ascii/fix-log-replay.test.js.map +1 -0
  347. package/dist/test/ascii/fix-repo-dict.test.d.ts +1 -0
  348. package/dist/test/{fix-repo-dict.test.js → ascii/fix-repo-dict.test.js} +8 -7
  349. package/dist/test/ascii/fix-repo-dict.test.js.map +1 -0
  350. package/dist/test/ascii/includes.test.d.ts +1 -0
  351. package/dist/test/{includes.test.js → ascii/includes.test.js} +3 -2
  352. package/dist/test/ascii/includes.test.js.map +1 -0
  353. package/dist/test/ascii/logon.test.d.ts +1 -0
  354. package/dist/test/{logon.test.js → ascii/logon.test.js} +11 -13
  355. package/dist/test/ascii/logon.test.js.map +1 -0
  356. package/dist/test/ascii/memory-store.test.d.ts +1 -0
  357. package/dist/test/{memory-store.test.js → ascii/memory-store.test.js} +12 -12
  358. package/dist/test/ascii/memory-store.test.js.map +1 -0
  359. package/dist/test/ascii/qf-full-msg.test.d.ts +1 -0
  360. package/dist/test/{qf-full-msg.test.js → ascii/qf-full-msg.test.js} +21 -17
  361. package/dist/test/ascii/qf-full-msg.test.js.map +1 -0
  362. package/dist/test/ascii/repo-full-ascii-msg.test.d.ts +1 -0
  363. package/dist/test/{repo-full-ascii-msg.test.js → ascii/repo-full-ascii-msg.test.js} +20 -16
  364. package/dist/test/ascii/repo-full-ascii-msg.test.js.map +1 -0
  365. package/dist/test/ascii/session-state.test.d.ts +1 -0
  366. package/dist/test/{session-state.test.js → ascii/session-state.test.js} +2 -1
  367. package/dist/test/ascii/session-state.test.js.map +1 -0
  368. package/dist/test/ascii/session.test.d.ts +1 -0
  369. package/dist/test/{session.test.js → ascii/session.test.js} +14 -145
  370. package/dist/test/ascii/session.test.js.map +1 -0
  371. package/dist/test/ascii/time-formatter.test.d.ts +1 -0
  372. package/dist/test/{time-formatter.test.js → ascii/time-formatter.test.js} +4 -2
  373. package/dist/test/ascii/time-formatter.test.js.map +1 -0
  374. package/dist/test/ascii/view-decode.test.d.ts +1 -0
  375. package/dist/test/{view-decode.test.js → ascii/view-decode.test.js} +11 -36
  376. package/dist/test/ascii/view-decode.test.js.map +1 -0
  377. package/dist/test/elastic-buffer.test.d.ts +1 -1
  378. package/dist/test/elastic-buffer.test.js +3 -1
  379. package/dist/test/elastic-buffer.test.js.map +1 -1
  380. package/dist/test/encode-proxy.test.d.ts +1 -1
  381. package/dist/test/encode-proxy.test.js +9 -9
  382. package/dist/test/encode-proxy.test.js.map +1 -1
  383. package/dist/test/env/experiment.d.ts +23 -0
  384. package/dist/test/env/experiment.js +33 -0
  385. package/dist/test/env/experiment.js.map +1 -0
  386. package/dist/test/env/parsing-result.d.ts +10 -0
  387. package/dist/test/env/parsing-result.js +14 -0
  388. package/dist/test/env/parsing-result.js.map +1 -0
  389. package/dist/test/env/setup.d.ts +39 -0
  390. package/dist/test/env/setup.js +98 -0
  391. package/dist/test/env/setup.js.map +1 -0
  392. package/dist/test/env/skeleton-runner.d.ts +15 -0
  393. package/dist/test/env/skeleton-runner.js +108 -0
  394. package/dist/test/env/skeleton-runner.js.map +1 -0
  395. package/dist/test/env/test-recovery.d.ts +13 -0
  396. package/dist/test/env/test-recovery.js +41 -0
  397. package/dist/test/env/test-recovery.js.map +1 -0
  398. package/dist/test/{to-views.d.ts → env/to-views.d.ts} +2 -2
  399. package/dist/test/{to-views.js → env/to-views.js} +8 -7
  400. package/dist/test/env/to-views.js.map +1 -0
  401. package/dist/test/fixml/fixml-alloc-parse.test.d.ts +1 -0
  402. package/dist/test/{fixml-alloc-parse.test.js → fixml/fixml-alloc-parse.test.js} +2 -1
  403. package/dist/test/fixml/fixml-alloc-parse.test.js.map +1 -0
  404. package/dist/test/fixml/fixml-mkt-data-fut-parse.test.d.ts +1 -0
  405. package/dist/test/{fixml-mkt-data-fut-parse.test.js → fixml/fixml-mkt-data-fut-parse.test.js} +2 -1
  406. package/dist/test/fixml/fixml-mkt-data-fut-parse.test.js.map +1 -0
  407. package/dist/test/fixml/fixml-mkt-data-settle-parse.test.d.ts +1 -0
  408. package/dist/test/{fixml-mkt-data-settle-parse.test.js → fixml/fixml-mkt-data-settle-parse.test.js} +2 -1
  409. package/dist/test/fixml/fixml-mkt-data-settle-parse.test.js.map +1 -0
  410. package/dist/test/fixml/fixml-tc-bi-lateral-parse.test.d.ts +1 -0
  411. package/dist/test/{fixml-tc-bi-lateral-parse.test.js → fixml/fixml-tc-bi-lateral-parse.test.js} +2 -1
  412. package/dist/test/fixml/fixml-tc-bi-lateral-parse.test.js.map +1 -0
  413. package/dist/test/fixml/repo-full-fixml-msg.test.d.ts +1 -0
  414. package/dist/test/{repo-full-fixml-msg.test.js → fixml/repo-full-fixml-msg.test.js} +17 -10
  415. package/dist/test/fixml/repo-full-fixml-msg.test.js.map +1 -0
  416. package/dist/transport/ascii/ascii-msg-transmitter.js +25 -6
  417. package/dist/transport/ascii/ascii-msg-transmitter.js.map +1 -1
  418. package/dist/transport/ascii/ascii-session-msg-factory.d.ts +2 -2
  419. package/dist/transport/ascii/ascii-session-msg-factory.js +1 -1
  420. package/dist/transport/ascii/ascii-session-msg-factory.js.map +1 -1
  421. package/dist/transport/ascii/ascii-session.d.ts +1 -1
  422. package/dist/transport/ascii/ascii-session.js +26 -23
  423. package/dist/transport/ascii/ascii-session.js.map +1 -1
  424. package/dist/transport/ascii/index.d.ts +0 -1
  425. package/dist/transport/ascii/index.js +0 -1
  426. package/dist/transport/ascii/index.js.map +1 -1
  427. package/dist/transport/duplex/http-duplex.d.ts +1 -1
  428. package/dist/transport/duplex/http-duplex.js.map +1 -1
  429. package/dist/transport/duplex/tcp-duplex.js +22 -2
  430. package/dist/transport/duplex/tcp-duplex.js.map +1 -1
  431. package/dist/transport/factory/index.d.ts +1 -0
  432. package/dist/transport/factory/index.js +14 -0
  433. package/dist/transport/factory/index.js.map +1 -0
  434. package/dist/transport/{msg-transport.d.ts → factory/msg-transport.d.ts} +4 -4
  435. package/dist/transport/factory/msg-transport.js +61 -0
  436. package/dist/transport/factory/msg-transport.js.map +1 -0
  437. package/dist/transport/fix-acceptor.d.ts +2 -2
  438. package/dist/transport/fix-acceptor.js.map +1 -1
  439. package/dist/transport/fix-entity.d.ts +8 -0
  440. package/dist/transport/fix-entity.js +12 -0
  441. package/dist/transport/fix-entity.js.map +1 -0
  442. package/dist/transport/fix-initiator.d.ts +2 -2
  443. package/dist/transport/fix-initiator.js.map +1 -1
  444. package/dist/transport/fixml/fixml-msg-transmitter.js +23 -5
  445. package/dist/transport/fixml/fixml-msg-transmitter.js.map +1 -1
  446. package/dist/transport/fixml/fixml-session-msg-factory.d.ts +2 -2
  447. package/dist/transport/fixml/fixml-session-msg-factory.js +1 -1
  448. package/dist/transport/fixml/fixml-session-msg-factory.js.map +1 -1
  449. package/dist/transport/fixml/fixml-session.d.ts +1 -1
  450. package/dist/transport/fixml/fixml-session.js +3 -3
  451. package/dist/transport/fixml/fixml-session.js.map +1 -1
  452. package/dist/transport/fixml/index.d.ts +0 -2
  453. package/dist/transport/fixml/index.js +0 -2
  454. package/dist/transport/fixml/index.js.map +1 -1
  455. package/dist/transport/http/html-options.d.ts +8 -0
  456. package/dist/{store/replay-record.js → transport/http/html-options.js} +1 -1
  457. package/dist/transport/http/html-options.js.map +1 -0
  458. package/dist/transport/http/html-route.d.ts +5 -0
  459. package/dist/{types/FIX4.4/quickfix/set/header.js → transport/http/html-route.js} +1 -1
  460. package/dist/transport/http/html-route.js.map +1 -0
  461. package/dist/transport/http/http-acceptor-listener.d.ts +7 -0
  462. package/dist/transport/http/http-acceptor-listener.js +68 -0
  463. package/dist/transport/http/http-acceptor-listener.js.map +1 -0
  464. package/dist/transport/http/http-acceptor.js +24 -5
  465. package/dist/transport/http/http-acceptor.js.map +1 -1
  466. package/dist/transport/http/http-adapter.d.ts +7 -0
  467. package/dist/transport/http/http-adapter.js +3 -0
  468. package/dist/transport/http/http-adapter.js.map +1 -0
  469. package/dist/transport/http/http-initiator.d.ts +9 -3
  470. package/dist/transport/http/http-initiator.js +57 -26
  471. package/dist/transport/http/http-initiator.js.map +1 -1
  472. package/dist/transport/http/http-json-sample-adapter.d.ts +2 -1
  473. package/dist/transport/http/http-json-sample-adapter.js +21 -2
  474. package/dist/transport/http/http-json-sample-adapter.js.map +1 -1
  475. package/dist/transport/http/http-transaction.d.ts +1 -1
  476. package/dist/transport/http/http-transaction.js.map +1 -1
  477. package/dist/transport/http/http-transport-description.d.ts +8 -0
  478. package/dist/transport/http/http-transport-description.js +3 -0
  479. package/dist/transport/http/http-transport-description.js.map +1 -0
  480. package/dist/transport/http/index.d.ts +1 -0
  481. package/dist/transport/http/index.js +1 -0
  482. package/dist/transport/http/index.js.map +1 -1
  483. package/dist/transport/index.d.ts +11 -10
  484. package/dist/transport/index.js +11 -10
  485. package/dist/transport/index.js.map +1 -1
  486. package/dist/transport/msg-application.d.ts +12 -0
  487. package/dist/transport/msg-application.js +3 -0
  488. package/dist/transport/msg-application.js.map +1 -0
  489. package/dist/transport/msg-transmitter.d.ts +5 -5
  490. package/dist/transport/msg-transmitter.js +2 -3
  491. package/dist/transport/msg-transmitter.js.map +1 -1
  492. package/dist/transport/{a-session-msg-factory.d.ts → session/a-session-msg-factory.d.ts} +3 -3
  493. package/dist/transport/{a-session-msg-factory.js → session/a-session-msg-factory.js} +1 -1
  494. package/dist/transport/session/a-session-msg-factory.js.map +1 -0
  495. package/dist/transport/session/fix-session-state-args.d.ts +8 -0
  496. package/dist/transport/session/fix-session-state-args.js +3 -0
  497. package/dist/transport/session/fix-session-state-args.js.map +1 -0
  498. package/dist/transport/session/fix-session-state.d.ts +32 -0
  499. package/dist/transport/{fix-session-state.js → session/fix-session-state.js} +22 -55
  500. package/dist/transport/session/fix-session-state.js.map +1 -0
  501. package/dist/transport/{fix-session.d.ts → session/fix-session.d.ts} +6 -5
  502. package/dist/transport/{fix-session.js → session/fix-session.js} +45 -43
  503. package/dist/transport/session/fix-session.js.map +1 -0
  504. package/dist/transport/{make-fixl-session.d.ts → session/make-fix-session.d.ts} +1 -1
  505. package/dist/transport/session/make-fix-session.js +3 -0
  506. package/dist/transport/session/make-fix-session.js.map +1 -0
  507. package/dist/transport/session/session-description.d.ts +17 -0
  508. package/dist/transport/{session-description.js → session/session-description.js} +0 -0
  509. package/dist/transport/session/session-description.js.map +1 -0
  510. package/dist/transport/{fix-msg-factory.d.ts → session/session-msg-factory.d.ts} +2 -2
  511. package/dist/transport/session/session-msg-factory.js +3 -0
  512. package/dist/transport/session/session-msg-factory.js.map +1 -0
  513. package/dist/transport/session/session-state.d.ts +25 -0
  514. package/dist/transport/session/session-state.js +30 -0
  515. package/dist/transport/session/session-state.js.map +1 -0
  516. package/dist/transport/tcp/index.d.ts +3 -2
  517. package/dist/transport/tcp/index.js +3 -2
  518. package/dist/transport/tcp/index.js.map +1 -1
  519. package/dist/transport/tcp/recovering-tcp-initiator.d.ts +7 -9
  520. package/dist/transport/tcp/recovering-tcp-initiator.js +41 -16
  521. package/dist/transport/tcp/recovering-tcp-initiator.js.map +1 -1
  522. package/dist/transport/tcp/tcp-acceptor-listener.d.ts +7 -0
  523. package/dist/transport/tcp/tcp-acceptor-listener.js +70 -0
  524. package/dist/transport/tcp/tcp-acceptor-listener.js.map +1 -0
  525. package/dist/transport/tcp/tcp-acceptor.js +29 -12
  526. package/dist/transport/tcp/tcp-acceptor.js.map +1 -1
  527. package/dist/transport/tcp/tcp-initiator-connector.d.ts +10 -0
  528. package/dist/transport/tcp/tcp-initiator-connector.js +97 -0
  529. package/dist/transport/tcp/tcp-initiator-connector.js.map +1 -0
  530. package/dist/transport/tcp/tcp-initiator.d.ts +2 -2
  531. package/dist/transport/tcp/tcp-initiator.js +28 -9
  532. package/dist/transport/tcp/tcp-initiator.js.map +1 -1
  533. package/dist/transport/tcp/tcp-transport-description.d.ts +6 -0
  534. package/dist/transport/tcp/tcp-transport-description.js +3 -0
  535. package/dist/transport/tcp/tcp-transport-description.js.map +1 -0
  536. package/dist/transport/tcp/tls-options-factory.d.ts +9 -0
  537. package/dist/transport/tcp/tls-options-factory.js +53 -0
  538. package/dist/transport/tcp/tls-options-factory.js.map +1 -0
  539. package/dist/transport/tcp/tls-options.d.ts +10 -5
  540. package/dist/transport/tcp/tls-options.js +0 -49
  541. package/dist/transport/tcp/tls-options.js.map +1 -1
  542. package/dist/transport/tick-action.d.ts +8 -0
  543. package/dist/transport/tick-action.js +13 -0
  544. package/dist/transport/tick-action.js.map +1 -0
  545. package/dist/util/buffer-helper.js +1 -1
  546. package/dist/util/buffer-helper.js.map +1 -1
  547. package/dist/util/definition-factory.d.ts +10 -0
  548. package/dist/util/definition-factory.js +56 -0
  549. package/dist/util/definition-factory.js.map +1 -0
  550. package/dist/util/dictionary-path.d.ts +4 -0
  551. package/dist/util/dictionary-path.js +3 -0
  552. package/dist/util/dictionary-path.js.map +1 -0
  553. package/dist/util/index.d.ts +1 -1
  554. package/dist/util/index.js +1 -1
  555. package/dist/util/index.js.map +1 -1
  556. package/dist/util/json-helper.d.ts +3 -1
  557. package/dist/util/json-helper.js +13 -12
  558. package/dist/util/json-helper.js.map +1 -1
  559. package/dist/util/message-generator.d.ts +1 -1
  560. package/dist/util/message-generator.js +16 -15
  561. package/dist/util/message-generator.js.map +1 -1
  562. package/dist/util/replay.d.ts +6 -3
  563. package/dist/util/replay.js +24 -26
  564. package/dist/util/replay.js.map +1 -1
  565. package/package.json +18 -13
  566. package/script/build.cmd +1 -0
  567. package/script/build.sh +1 -0
  568. package/script/test.cmd +3 -0
  569. package/src/buffer/{ascii-chars.ts → ascii/ascii-chars.ts} +0 -0
  570. package/src/buffer/ascii/ascii-encoder.ts +9 -6
  571. package/src/buffer/ascii/ascii-parser-state.ts +7 -12
  572. package/src/buffer/ascii/ascii-parser.ts +23 -16
  573. package/src/buffer/ascii/ascii-segment-parser.ts +14 -8
  574. package/src/buffer/ascii/ascii-view.ts +4 -9
  575. package/src/buffer/ascii/index.ts +1 -0
  576. package/src/buffer/ascii/parse-state.ts +8 -0
  577. package/src/buffer/ascii/time-formatter.ts +1 -1
  578. package/src/buffer/elastic-buffer.ts +7 -2
  579. package/src/buffer/encode-proxy.ts +9 -4
  580. package/src/buffer/fixml/fixml-encoder.ts +15 -11
  581. package/src/buffer/fixml/fixml-parser.ts +16 -6
  582. package/src/buffer/fixml/fixml-view.ts +4 -9
  583. package/src/buffer/fixml/populated-attributes.ts +6 -0
  584. package/src/buffer/index.ts +4 -8
  585. package/src/buffer/msg-encoder.ts +2 -1
  586. package/src/buffer/msg-view.ts +13 -9
  587. package/src/buffer/{segment-description.ts → segment/segment-description.ts} +4 -11
  588. package/src/buffer/{segment-summary.ts → segment/segment-summary.ts} +0 -0
  589. package/src/buffer/segment/segment-type.ts +8 -0
  590. package/src/buffer/structure.ts +3 -3
  591. package/src/buffer/{tag-pos.ts → tag/tag-pos.ts} +0 -0
  592. package/src/buffer/tag/tag-type.ts +13 -0
  593. package/src/buffer/{tags.ts → tag/tags.ts} +4 -16
  594. package/src/config/get-js-fx-logger.ts +4 -0
  595. package/src/config/index.ts +1 -0
  596. package/src/config/js-fix-config.ts +5 -2
  597. package/src/config/js-fix-logger.ts +0 -3
  598. package/src/dictionary/compiler/compiler-type.ts +3 -3
  599. package/src/dictionary/compiler/enum-compiler.ts +12 -1
  600. package/src/dictionary/compiler/msg-compiler.ts +8 -7
  601. package/src/dictionary/contained/contained-component-field.ts +2 -1
  602. package/src/dictionary/contained/contained-field-dispatch.ts +3 -7
  603. package/src/dictionary/contained/contained-field-dispatcher.ts +9 -0
  604. package/src/dictionary/contained/contained-field-set.ts +5 -3
  605. package/src/dictionary/contained/contained-field-type.ts +5 -0
  606. package/src/dictionary/contained/contained-field.ts +1 -6
  607. package/src/dictionary/contained/contained-group-field.ts +2 -1
  608. package/src/dictionary/contained/contained-simple-field.ts +2 -1
  609. package/src/dictionary/contained/field-dispatcher.ts +9 -0
  610. package/src/dictionary/contained/fields-dispatch.ts +46 -0
  611. package/src/dictionary/contained/index.ts +2 -0
  612. package/src/dictionary/contained-set-type.ts +5 -0
  613. package/src/dictionary/definition/component-field-definition.ts +1 -1
  614. package/src/dictionary/definition/fix-definitions.ts +2 -1
  615. package/src/dictionary/definition/group-field-definition.ts +1 -1
  616. package/src/dictionary/definition/index.ts +0 -1
  617. package/src/dictionary/definition/message-definition.ts +1 -1
  618. package/src/dictionary/definition/simple-field-definition.ts +3 -1
  619. package/src/dictionary/dict-primitive.ts +0 -13
  620. package/src/dictionary/fix-definition-source.ts +6 -0
  621. package/src/dictionary/fix-versions.ts +0 -32
  622. package/src/dictionary/index.ts +1 -5
  623. package/src/dictionary/parser/fix-repository/abbreviations-parser.ts +2 -3
  624. package/src/dictionary/parser/fix-repository/base-parser.ts +2 -3
  625. package/src/dictionary/parser/fix-repository/components-parser.ts +2 -3
  626. package/src/dictionary/parser/fix-repository/data-types-parser.ts +2 -3
  627. package/src/dictionary/parser/fix-repository/enums-parser.ts +2 -3
  628. package/src/dictionary/parser/fix-repository/fields-parser.ts +2 -3
  629. package/src/dictionary/parser/fix-repository/messages-parser.ts +2 -3
  630. package/src/dictionary/parser/fix-repository/msg-contents-parser.ts +2 -3
  631. package/src/dictionary/parser/fix-repository/repository-abbreviation.ts +6 -0
  632. package/src/dictionary/parser/fix-repository/repository-component.ts +11 -0
  633. package/src/dictionary/parser/fix-repository/repository-data-type.ts +7 -0
  634. package/src/dictionary/parser/fix-repository/repository-enum.ts +8 -0
  635. package/src/dictionary/parser/fix-repository/repository-field.ts +12 -0
  636. package/src/dictionary/parser/fix-repository/repository-message.ts +12 -0
  637. package/src/dictionary/parser/fix-repository/repository-msg-content.ts +10 -0
  638. package/src/dictionary/parser/fix-repository/repository-type.ts +0 -59
  639. package/src/dictionary/parser/fix-repository/repository-xml-parser.ts +10 -9
  640. package/src/dictionary/parser/fix-repository/repository.ts +69 -38
  641. package/src/dictionary/parser/fixml/components-parser.ts +6 -3
  642. package/src/dictionary/parser/fixml/fields-parser.ts +1 -1
  643. package/src/dictionary/parser/fixml/fix-xsd-parser.ts +2 -1
  644. package/src/dictionary/parser/fixml/include-graph.ts +2 -1
  645. package/src/dictionary/parser/fixml/xsd-parser.ts +2 -1
  646. package/src/dictionary/parser/quickfix/field-definition-parser.ts +4 -5
  647. package/src/dictionary/parser/quickfix/field-set-parser.ts +4 -5
  648. package/src/dictionary/parser/quickfix/message-parser.ts +4 -5
  649. package/src/dictionary/parser/quickfix/node-parser.ts +3 -6
  650. package/src/dictionary/parser/quickfix/parse-state.ts +8 -0
  651. package/src/dictionary/parser/quickfix/quick-fix-xml-file-parser.ts +9 -15
  652. package/src/dictionary/sax-node.ts +7 -0
  653. package/src/dictionary/set-reduce.ts +30 -31
  654. package/src/dictionary/type-dispatcher.ts +7 -0
  655. package/src/dictionary/version-util.ts +25 -0
  656. package/src/index.ts +1 -0
  657. package/src/jsfix-cmd.ts +31 -16
  658. package/src/runtime/di-tokens.ts +48 -0
  659. package/src/runtime/engine-factory.ts +5 -0
  660. package/src/runtime/index.ts +5 -0
  661. package/src/runtime/make-config.ts +35 -0
  662. package/src/runtime/session-container.ts +180 -0
  663. package/src/runtime/session-launcher.ts +127 -0
  664. package/src/sample/http/oms/app.ts +20 -14
  665. package/src/sample/http/oms/http-client.ts +5 -2
  666. package/src/sample/http/oms/http-server.ts +5 -1
  667. package/src/sample/tcp/qf-md/app.ts +12 -12
  668. package/src/sample/tcp/qf-md/md-client.ts +4 -1
  669. package/src/sample/tcp/qf-md/md-server.ts +3 -1
  670. package/src/sample/tcp/recovering-skeleton/app.ts +37 -15
  671. package/src/sample/tcp/recovering-skeleton/respawn-acceptor.ts +16 -9
  672. package/src/sample/tcp/recovering-skeleton/skeleton-client.ts +4 -2
  673. package/src/sample/tcp/recovering-skeleton/skeleton-server.ts +4 -2
  674. package/src/sample/tcp/skeleton/app.ts +10 -15
  675. package/src/sample/tcp/skeleton/skeleton-session.ts +8 -4
  676. package/src/sample/tcp/tls-trade-capture/app.ts +8 -31
  677. package/src/sample/tcp/trade-capture/app-launcher.ts +22 -0
  678. package/src/sample/tcp/trade-capture/app.ts +3 -26
  679. package/src/sample/tcp/trade-capture/trade-capture-client.ts +2 -1
  680. package/src/sample/tcp/trade-capture/trade-capture-server.ts +2 -1
  681. package/src/sample/tcp/trade-capture/trade-factory.ts +7 -1
  682. package/src/store/fix-msg-ascii-store-resend.ts +3 -2
  683. package/src/store/fix-msg-memory-store.ts +1 -1
  684. package/src/store/fix-msg-store-record.ts +6 -0
  685. package/src/store/fix-msg-store-state.ts +6 -0
  686. package/src/store/fix-msg-store.ts +1 -7
  687. package/src/transport/ascii/ascii-msg-transmitter.ts +9 -5
  688. package/src/transport/ascii/ascii-session-msg-factory.ts +2 -2
  689. package/src/transport/ascii/ascii-session.ts +9 -6
  690. package/src/transport/ascii/index.ts +0 -1
  691. package/src/transport/duplex/http-duplex.ts +1 -1
  692. package/src/transport/duplex/tcp-duplex.ts +4 -1
  693. package/src/transport/factory/index.ts +1 -0
  694. package/src/transport/factory/msg-transport.ts +55 -0
  695. package/src/transport/fix-acceptor.ts +2 -2
  696. package/src/transport/fix-entity.ts +9 -0
  697. package/src/transport/fix-initiator.ts +2 -2
  698. package/src/transport/fixml/fixml-msg-transmitter.ts +8 -4
  699. package/src/transport/fixml/fixml-session-msg-factory.ts +2 -2
  700. package/src/transport/fixml/fixml-session.ts +2 -2
  701. package/src/transport/fixml/index.ts +0 -2
  702. package/src/transport/http/html-options.ts +8 -0
  703. package/src/transport/http/html-route.ts +6 -0
  704. package/src/transport/http/http-acceptor-listener.ts +42 -0
  705. package/src/transport/http/http-acceptor.ts +5 -2
  706. package/src/transport/http/http-adapter.ts +7 -0
  707. package/src/transport/http/http-initiator.ts +40 -25
  708. package/src/transport/http/http-json-sample-adapter.ts +7 -2
  709. package/src/transport/http/http-transaction.ts +1 -1
  710. package/src/transport/http/http-transport-description.ts +9 -0
  711. package/src/transport/http/index.ts +1 -0
  712. package/src/transport/index.ts +11 -10
  713. package/src/transport/msg-application.ts +13 -0
  714. package/src/transport/msg-transmitter.ts +5 -5
  715. package/src/transport/{a-session-msg-factory.ts → session/a-session-msg-factory.ts} +4 -4
  716. package/src/transport/session/fix-session-state-args.ts +9 -0
  717. package/src/transport/{fix-session-state.ts → session/fix-session-state.ts} +4 -44
  718. package/src/transport/{fix-session.ts → session/fix-session.ts} +10 -7
  719. package/src/transport/{make-fixl-session.ts → session/make-fix-session.ts} +1 -1
  720. package/src/transport/session/session-description.ts +18 -0
  721. package/src/transport/{fix-msg-factory.ts → session/session-msg-factory.ts} +2 -2
  722. package/src/transport/session/session-state.ts +25 -0
  723. package/src/transport/tcp/index.ts +3 -2
  724. package/src/transport/tcp/recovering-tcp-initiator.ts +24 -13
  725. package/src/transport/tcp/tcp-acceptor-listener.ts +45 -0
  726. package/src/transport/tcp/tcp-acceptor.ts +11 -10
  727. package/src/transport/tcp/tcp-initiator-connector.ts +71 -0
  728. package/src/transport/tcp/tcp-initiator.ts +10 -6
  729. package/src/transport/tcp/tcp-transport-description.ts +7 -0
  730. package/src/transport/tcp/tls-options-factory.ts +55 -0
  731. package/src/transport/tcp/tls-options.ts +9 -51
  732. package/src/transport/tick-action.ts +8 -0
  733. package/src/util/definition-factory.ts +47 -0
  734. package/src/util/dictionary-path.ts +4 -0
  735. package/src/util/index.ts +1 -1
  736. package/src/util/json-helper.ts +14 -4
  737. package/src/util/message-generator.ts +6 -3
  738. package/src/util/replay.ts +26 -21
  739. package/tsconfig.json +2 -0
  740. package/dist/buffer/ascii-chars.js.map +0 -1
  741. package/dist/buffer/segment-description.js.map +0 -1
  742. package/dist/buffer/segment-summary.js.map +0 -1
  743. package/dist/buffer/tag-pos.js.map +0 -1
  744. package/dist/buffer/tags.js.map +0 -1
  745. package/dist/dictionary/fields-dispatch.js +0 -40
  746. package/dist/dictionary/fields-dispatch.js.map +0 -1
  747. package/dist/sample/launcher.d.ts +0 -12
  748. package/dist/sample/launcher.js +0 -63
  749. package/dist/sample/launcher.js.map +0 -1
  750. package/dist/sample/tcp/recovering-skeleton/respawn-2.d.ts +0 -2
  751. package/dist/sample/tcp/recovering-skeleton/respawn-2.js +0 -3
  752. package/dist/sample/tcp/recovering-skeleton/respawn-2.js.map +0 -1
  753. package/dist/store/fix-msg-ascii-store-recovery.d.ts +0 -12
  754. package/dist/store/fix-msg-ascii-store-recovery.js +0 -60
  755. package/dist/store/fix-msg-ascii-store-recovery.js.map +0 -1
  756. package/dist/store/fix-msg-ascii-store-replay.d.ts +0 -13
  757. package/dist/store/fix-msg-ascii-store-replay.js +0 -60
  758. package/dist/store/fix-msg-ascii-store-replay.js.map +0 -1
  759. package/dist/store/fix-replay-record.d.ts +0 -12
  760. package/dist/store/fix-replay-record.js +0 -12
  761. package/dist/store/fix-replay-record.js.map +0 -1
  762. package/dist/store/fix-resend-record.d.ts +0 -12
  763. package/dist/store/fix-resend-record.js +0 -12
  764. package/dist/store/fix-resend-record.js.map +0 -1
  765. package/dist/store/replay-record.d.ts +0 -6
  766. package/dist/store/replay-record.js.map +0 -1
  767. package/dist/store/store-replay-record.d.ts +0 -12
  768. package/dist/store/store-replay-record.js +0 -12
  769. package/dist/store/store-replay-record.js.map +0 -1
  770. package/dist/tcp/tls-options.d.ts +0 -5
  771. package/dist/tcp/tls-options.js +0 -45
  772. package/dist/tcp/tls-options.js.map +0 -1
  773. package/dist/test/ascii-encode.test.d.ts +0 -1
  774. package/dist/test/ascii-encode.test.js +0 -416
  775. package/dist/test/ascii-encode.test.js.map +0 -1
  776. package/dist/test/ascii-encoder.test.d.ts +0 -1
  777. package/dist/test/ascii-encoder.test.js.map +0 -1
  778. package/dist/test/ascii-parser.test.d.ts +0 -1
  779. package/dist/test/ascii-parser.test.js.map +0 -1
  780. package/dist/test/ascii-segment.test.d.ts +0 -1
  781. package/dist/test/ascii-segment.test.js.map +0 -1
  782. package/dist/test/ascii-store-recovery.test.d.ts +0 -1
  783. package/dist/test/ascii-store-recovery.test.js +0 -50
  784. package/dist/test/ascii-store-recovery.test.js.map +0 -1
  785. package/dist/test/ascii-store-replay.test.d.ts +0 -1
  786. package/dist/test/ascii-store-replay.test.js.map +0 -1
  787. package/dist/test/ascii-tag-pos.test.d.ts +0 -1
  788. package/dist/test/ascii-tag-pos.test.js.map +0 -1
  789. package/dist/test/execution-report.test.d.ts +0 -1
  790. package/dist/test/execution-report.test.js.map +0 -1
  791. package/dist/test/fix-log-replay.test.d.ts +0 -1
  792. package/dist/test/fix-log-replay.test.js.map +0 -1
  793. package/dist/test/fix-repo-dict.test.d.ts +0 -1
  794. package/dist/test/fix-repo-dict.test.js.map +0 -1
  795. package/dist/test/fixml-alloc-parse.test.d.ts +0 -1
  796. package/dist/test/fixml-alloc-parse.test.js.map +0 -1
  797. package/dist/test/fixml-mkt-data-fut-parse.test.d.ts +0 -1
  798. package/dist/test/fixml-mkt-data-fut-parse.test.js.map +0 -1
  799. package/dist/test/fixml-mkt-data-settle-parse.test.d.ts +0 -1
  800. package/dist/test/fixml-mkt-data-settle-parse.test.js.map +0 -1
  801. package/dist/test/fixml-tc-bi-lateral-parse.test.d.ts +0 -1
  802. package/dist/test/fixml-tc-bi-lateral-parse.test.js.map +0 -1
  803. package/dist/test/includes.test.d.ts +0 -1
  804. package/dist/test/includes.test.js.map +0 -1
  805. package/dist/test/logon.test.d.ts +0 -1
  806. package/dist/test/logon.test.js.map +0 -1
  807. package/dist/test/memory-store.test.d.ts +0 -1
  808. package/dist/test/memory-store.test.js.map +0 -1
  809. package/dist/test/qf-full-msg.test.d.ts +0 -1
  810. package/dist/test/qf-full-msg.test.js.map +0 -1
  811. package/dist/test/repo-full-ascii-msg.test.d.ts +0 -1
  812. package/dist/test/repo-full-ascii-msg.test.js.map +0 -1
  813. package/dist/test/repo-full-fixml-msg.test.d.ts +0 -1
  814. package/dist/test/repo-full-fixml-msg.test.js.map +0 -1
  815. package/dist/test/session-state.test.d.ts +0 -1
  816. package/dist/test/session-state.test.js.map +0 -1
  817. package/dist/test/session.test.d.ts +0 -1
  818. package/dist/test/session.test.js.map +0 -1
  819. package/dist/test/time-formatter.test.d.ts +0 -1
  820. package/dist/test/time-formatter.test.js.map +0 -1
  821. package/dist/test/to-views.js.map +0 -1
  822. package/dist/test/view-decode.test.d.ts +0 -1
  823. package/dist/test/view-decode.test.js.map +0 -1
  824. package/dist/transport/a-session-msg-factory.js.map +0 -1
  825. package/dist/transport/ascii-session-msg-factory.d.ts +0 -16
  826. package/dist/transport/ascii-session-msg-factory.js +0 -47
  827. package/dist/transport/ascii-session-msg-factory.js.map +0 -1
  828. package/dist/transport/fix-msg-factory.js.map +0 -1
  829. package/dist/transport/fix-session-state.d.ts +0 -70
  830. package/dist/transport/fix-session-state.js.map +0 -1
  831. package/dist/transport/fix-session.js.map +0 -1
  832. package/dist/transport/fixml/acceptor.d.ts +0 -3
  833. package/dist/transport/fixml/acceptor.js +0 -38
  834. package/dist/transport/fixml/acceptor.js.map +0 -1
  835. package/dist/transport/fixml-session-msg-factory.d.ts +0 -13
  836. package/dist/transport/fixml-session-msg-factory.js +0 -68
  837. package/dist/transport/fixml-session-msg-factory.js.map +0 -1
  838. package/dist/transport/make-config.d.ts +0 -4
  839. package/dist/transport/make-config.js +0 -31
  840. package/dist/transport/make-config.js.map +0 -1
  841. package/dist/transport/make-fixl-session.js.map +0 -1
  842. package/dist/transport/msg-transport.js +0 -57
  843. package/dist/transport/msg-transport.js.map +0 -1
  844. package/dist/transport/session-description.d.ts +0 -64
  845. package/dist/transport/session-description.js.map +0 -1
  846. package/dist/transport/session-msg-factory.d.ts +0 -28
  847. package/dist/transport/session-msg-factory.js +0 -153
  848. package/dist/transport/session-msg-factory.js.map +0 -1
  849. package/dist/transport/tcp/acceptor.d.ts +0 -3
  850. package/dist/transport/tcp/acceptor.js +0 -40
  851. package/dist/transport/tcp/acceptor.js.map +0 -1
  852. package/dist/transport/tcp/initiator.d.ts +0 -3
  853. package/dist/transport/tcp/initiator.js +0 -67
  854. package/dist/transport/tcp/initiator.js.map +0 -1
  855. package/dist/transport/tcp/recovering-initiator.d.ts +0 -17
  856. package/dist/transport/tcp/recovering-initiator.js +0 -30
  857. package/dist/transport/tcp/recovering-initiator.js.map +0 -1
  858. package/dist/transport/tcp/recovering_initiator.d.ts +0 -12
  859. package/dist/transport/tcp/recovering_initiator.js +0 -25
  860. package/dist/transport/tcp/recovering_initiator.js.map +0 -1
  861. package/dist/transport/tcp/resilient-initiator.d.ts +0 -12
  862. package/dist/transport/tcp/resilient-initiator.js +0 -41
  863. package/dist/transport/tcp/resilient-initiator.js.map +0 -1
  864. package/dist/types/FIX4.4/quickfix/set/header.d.ts +0 -31
  865. package/dist/types/FIX4.4/quickfix/set/header.js.map +0 -1
  866. package/dist/types/FIX4.4/quickfix/set/trailer.d.ts +0 -6
  867. package/dist/types/FIX4.4/quickfix/set/trailer.js.map +0 -1
  868. package/dist/util/dictionary-definitions.d.ts +0 -8
  869. package/dist/util/dictionary-definitions.js +0 -51
  870. package/dist/util/dictionary-definitions.js.map +0 -1
  871. package/src/dictionary/fields-dispatch.ts +0 -45
  872. package/src/sample/launcher.ts +0 -56
  873. package/src/transport/fixml/acceptor.ts +0 -29
  874. package/src/transport/make-config.ts +0 -19
  875. package/src/transport/msg-transport.ts +0 -67
  876. package/src/transport/session-description.ts +0 -70
  877. package/src/transport/tcp/acceptor.ts +0 -31
  878. package/src/transport/tcp/initiator.ts +0 -59
  879. package/src/util/dictionary-definitions.ts +0 -41
@@ -9,22 +9,21 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
+ require("reflect-metadata");
12
13
  const path = require("path");
13
- const buffer_1 = require("../buffer");
14
- const transport_1 = require("../transport");
15
- const config_1 = require("../config");
16
- const util_1 = require("../util");
17
- const root = path.join(__dirname, '../../data');
14
+ const segment_type_1 = require("../../buffer/segment/segment-type");
15
+ const setup_1 = require("../env/setup");
16
+ const root = path.join(__dirname, '../../../data');
18
17
  let definitions;
19
- let session;
20
18
  let views;
21
19
  let structure;
20
+ let setup = null;
22
21
  beforeAll(() => __awaiter(void 0, void 0, void 0, function* () {
23
- const sessionDescription = require(path.join(root, 'session/qf-fix44.json'));
24
- definitions = yield util_1.getDefinitions(sessionDescription.application.dictionary);
25
- const config = new config_1.JsFixConfig(null, definitions, sessionDescription, buffer_1.AsciiChars.Pipe);
26
- session = new transport_1.AsciiMsgTransmitter(config);
27
- views = yield util_1.replayFixFile(definitions, sessionDescription, path.join(root, 'examples/FIX.4.4/quickfix/execution-report/fix.txt'), buffer_1.AsciiChars.Pipe);
22
+ setup = new setup_1.Setup('session/qf-fix44.json', null);
23
+ yield setup.init();
24
+ const config = setup.client.config;
25
+ definitions = config.definitions;
26
+ views = yield setup.client.replayer.replayFixFile(path.join(root, 'examples/FIX.4.4/quickfix/execution-report/fix.txt'));
28
27
  if (views && views.length > 0) {
29
28
  structure = views[0].structure;
30
29
  }
@@ -39,11 +38,11 @@ test('Parties structure', () => {
39
38
  expect(parties.startPosition === 20);
40
39
  expect(parties.endPosition === 44);
41
40
  expect(parties.depth === 1);
42
- expect(parties.type === buffer_1.SegmentType.Component);
41
+ expect(parties.type === segment_type_1.SegmentType.Component);
43
42
  expect(noPartyIDs.startPosition === 20);
44
43
  expect(noPartyIDs.endPosition === 44);
45
44
  expect(noPartyIDs.depth === 2);
46
- expect(parties.type === buffer_1.SegmentType.Group);
45
+ expect(parties.type === segment_type_1.SegmentType.Group);
47
46
  });
48
47
  test('Parties PartySubIDType sub-structure', () => {
49
48
  const ptysSubGrp = structure.layout.PtysSubGrp;
@@ -51,25 +50,25 @@ test('Parties PartySubIDType sub-structure', () => {
51
50
  expect(Array.isArray(ptysSubGrp)).toEqual(true);
52
51
  expect(ptysSubGrp.length).toEqual(3);
53
52
  expect(ptysSubGrp[0].startPosition).toEqual(24);
54
- expect(ptysSubGrp[0].type).toEqual(buffer_1.SegmentType.Component);
53
+ expect(ptysSubGrp[0].type).toEqual(segment_type_1.SegmentType.Component);
55
54
  expect(ptysSubGrp[1].startPosition).toEqual(32);
56
- expect(ptysSubGrp[1].type).toEqual(buffer_1.SegmentType.Component);
55
+ expect(ptysSubGrp[1].type).toEqual(segment_type_1.SegmentType.Component);
57
56
  expect(ptysSubGrp[2].startPosition).toEqual(42);
58
- expect(ptysSubGrp[2].type).toEqual(buffer_1.SegmentType.Component);
57
+ expect(ptysSubGrp[2].type).toEqual(segment_type_1.SegmentType.Component);
59
58
  const noPartySubIDs = structure.layout.NoPartySubIDs;
60
59
  expect(noPartySubIDs).toBeTruthy();
61
60
  expect(Array.isArray(noPartySubIDs)).toEqual(true);
62
61
  expect(noPartySubIDs.length).toEqual(3);
63
62
  expect(noPartySubIDs[0].delimiterTag).toEqual(523);
64
- expect(noPartySubIDs[0].type).toEqual(buffer_1.SegmentType.Group);
63
+ expect(noPartySubIDs[0].type).toEqual(segment_type_1.SegmentType.Group);
65
64
  expect(noPartySubIDs[0].delimiterPositions).toEqual([25, 27]);
66
65
  expect(noPartySubIDs[0].depth).toEqual(4);
67
66
  expect(noPartySubIDs[1].delimiterTag).toEqual(523);
68
- expect(noPartySubIDs[1].type).toEqual(buffer_1.SegmentType.Group);
67
+ expect(noPartySubIDs[1].type).toEqual(segment_type_1.SegmentType.Group);
69
68
  expect(noPartySubIDs[1].delimiterPositions).toEqual([33, 35, 37]);
70
69
  expect(noPartySubIDs[1].depth).toEqual(4);
71
70
  expect(noPartySubIDs[2].delimiterTag).toEqual(523);
72
- expect(noPartySubIDs[2].type).toEqual(buffer_1.SegmentType.Group);
71
+ expect(noPartySubIDs[2].type).toEqual(segment_type_1.SegmentType.Group);
73
72
  expect(noPartySubIDs[2].delimiterPositions).toEqual([43]);
74
73
  expect(noPartySubIDs[2].depth).toEqual(4);
75
74
  });
@@ -77,27 +76,27 @@ test('ContraGrp structure', () => {
77
76
  const contraGrp = structure.layout.ContraGrp;
78
77
  expect(contraGrp).toBeTruthy();
79
78
  expect(contraGrp.depth).toEqual(1);
80
- expect(contraGrp.type).toEqual(buffer_1.SegmentType.Component);
79
+ expect(contraGrp.type).toEqual(segment_type_1.SegmentType.Component);
81
80
  expect(contraGrp.startPosition).toEqual(46);
82
81
  expect(contraGrp.endPosition).toEqual(61);
83
82
  const noContraBrokers = structure.layout.NoContraBrokers;
84
83
  expect(noContraBrokers).toBeTruthy();
85
84
  expect(noContraBrokers.depth).toEqual(2);
86
- expect(noContraBrokers.type).toEqual(buffer_1.SegmentType.Group);
85
+ expect(noContraBrokers.type).toEqual(segment_type_1.SegmentType.Group);
87
86
  expect(noContraBrokers.delimiterTag).toEqual(375);
88
87
  expect(noContraBrokers.delimiterPositions).toEqual([47, 52, 57]);
89
88
  });
90
89
  test('Instrument structure', () => {
91
90
  const instrument = structure.layout.Instrument;
92
91
  expect(instrument).toBeTruthy();
93
- expect(instrument.type).toEqual(buffer_1.SegmentType.Component);
92
+ expect(instrument.type).toEqual(segment_type_1.SegmentType.Component);
94
93
  expect(instrument.startPosition).toEqual(83);
95
94
  expect(instrument.startTag).toEqual(55);
96
95
  expect(instrument.endPosition).toEqual(133);
97
96
  expect(instrument.endTag).toEqual(874);
98
97
  const noSecurityAltID = structure.layout.NoSecurityAltID;
99
98
  expect(noSecurityAltID).toBeTruthy();
100
- expect(noSecurityAltID.type).toEqual(buffer_1.SegmentType.Group);
99
+ expect(noSecurityAltID.type).toEqual(segment_type_1.SegmentType.Group);
101
100
  expect(noSecurityAltID.delimiterTag).toEqual(455);
102
101
  expect(noSecurityAltID.delimiterPositions).toEqual([88, 90]);
103
102
  });
@@ -105,7 +104,7 @@ test('FinancingDetails structure', () => {
105
104
  const financingDetails = structure.layout.FinancingDetails;
106
105
  expect(financingDetails).toBeTruthy();
107
106
  expect(financingDetails.depth).toEqual(1);
108
- expect(financingDetails.type).toEqual(buffer_1.SegmentType.Component);
107
+ expect(financingDetails.type).toEqual(segment_type_1.SegmentType.Component);
109
108
  expect(financingDetails.startPosition).toEqual(134);
110
109
  expect(financingDetails.startTag).toEqual(913);
111
110
  expect(financingDetails.endPosition).toEqual(142);
@@ -115,7 +114,7 @@ test('PegInstructions structure', () => {
115
114
  const pegInstructions = structure.layout.PegInstructions;
116
115
  expect(pegInstructions).toBeTruthy();
117
116
  expect(pegInstructions.depth).toEqual(1);
118
- expect(pegInstructions.type).toEqual(buffer_1.SegmentType.Component);
117
+ expect(pegInstructions.type).toEqual(segment_type_1.SegmentType.Component);
119
118
  expect(pegInstructions.startPosition).toEqual(272);
120
119
  expect(pegInstructions.startTag).toEqual(211);
121
120
  expect(pegInstructions.endPosition).toEqual(277);
@@ -125,7 +124,7 @@ test('DiscretionInstructions structure', () => {
125
124
  const discretionInstructions = structure.layout.DiscretionInstructions;
126
125
  expect(discretionInstructions).toBeTruthy();
127
126
  expect(discretionInstructions.depth).toEqual(1);
128
- expect(discretionInstructions.type).toEqual(buffer_1.SegmentType.Component);
127
+ expect(discretionInstructions.type).toEqual(segment_type_1.SegmentType.Component);
129
128
  expect(discretionInstructions.startPosition).toEqual(278);
130
129
  expect(discretionInstructions.startTag).toEqual(388);
131
130
  expect(discretionInstructions.endPosition).toEqual(284);
@@ -135,7 +134,7 @@ test('CommissionData structure', () => {
135
134
  const commisionData = structure.layout.CommissionData;
136
135
  expect(commisionData).toBeTruthy();
137
136
  expect(commisionData.depth).toEqual(1);
138
- expect(commisionData.type).toEqual(buffer_1.SegmentType.Component);
137
+ expect(commisionData.type).toEqual(segment_type_1.SegmentType.Component);
139
138
  expect(commisionData.startPosition).toEqual(324);
140
139
  expect(commisionData.startTag).toEqual(12);
141
140
  expect(commisionData.endPosition).toEqual(327);
@@ -145,7 +144,7 @@ test('SpreadOrBenchmarkCurveData structure', () => {
145
144
  const spreadBenchData = structure.layout.SpreadOrBenchmarkCurveData;
146
145
  expect(spreadBenchData).toBeTruthy();
147
146
  expect(spreadBenchData.depth).toEqual(1);
148
- expect(spreadBenchData.type).toEqual(buffer_1.SegmentType.Component);
147
+ expect(spreadBenchData.type).toEqual(segment_type_1.SegmentType.Component);
149
148
  expect(spreadBenchData.startPosition).toEqual(328);
150
149
  expect(spreadBenchData.startTag).toEqual(218);
151
150
  expect(spreadBenchData.endPosition).toEqual(335);
@@ -155,7 +154,7 @@ test('YieldData structure', () => {
155
154
  const yieldData = structure.layout.YieldData;
156
155
  expect(yieldData).toBeTruthy();
157
156
  expect(yieldData.depth).toEqual(1);
158
- expect(yieldData.type).toEqual(buffer_1.SegmentType.Component);
157
+ expect(yieldData.type).toEqual(segment_type_1.SegmentType.Component);
159
158
  expect(yieldData.startPosition).toEqual(336);
160
159
  expect(yieldData.startTag).toEqual(235);
161
160
  expect(yieldData.endPosition).toEqual(341);
@@ -165,7 +164,7 @@ test('ContAmtGrp structure', () => {
165
164
  const contAmtGrp = structure.layout.ContAmtGrp;
166
165
  expect(contAmtGrp).toBeTruthy();
167
166
  expect(contAmtGrp.depth).toEqual(1);
168
- expect(contAmtGrp.type).toEqual(buffer_1.SegmentType.Component);
167
+ expect(contAmtGrp.type).toEqual(segment_type_1.SegmentType.Component);
169
168
  expect(contAmtGrp.startPosition).toEqual(385);
170
169
  expect(contAmtGrp.startTag).toEqual(518);
171
170
  expect(contAmtGrp.endPosition).toEqual(394);
@@ -173,7 +172,7 @@ test('ContAmtGrp structure', () => {
173
172
  const noContAmts = structure.layout.NoContAmts;
174
173
  expect(noContAmts).toBeTruthy();
175
174
  expect(noContAmts.depth).toEqual(2);
176
- expect(noContAmts.type).toEqual(buffer_1.SegmentType.Group);
175
+ expect(noContAmts.type).toEqual(segment_type_1.SegmentType.Group);
177
176
  expect(noContAmts.startPosition).toEqual(385);
178
177
  expect(noContAmts.startTag).toEqual(518);
179
178
  expect(noContAmts.endPosition).toEqual(394);
@@ -185,7 +184,7 @@ test('MiscFeesGrp structure', () => {
185
184
  const miscFees = structure.layout.MiscFeesGrp;
186
185
  expect(miscFees).toBeTruthy();
187
186
  expect(miscFees.depth).toEqual(1);
188
- expect(miscFees.type).toEqual(buffer_1.SegmentType.Component);
187
+ expect(miscFees.type).toEqual(segment_type_1.SegmentType.Component);
189
188
  expect(miscFees.startPosition).toEqual(636);
190
189
  expect(miscFees.startTag).toEqual(136);
191
190
  expect(miscFees.endPosition).toEqual(644);
@@ -193,7 +192,7 @@ test('MiscFeesGrp structure', () => {
193
192
  const noMiscfees = structure.layout.NoMiscFees;
194
193
  expect(noMiscfees).toBeTruthy();
195
194
  expect(noMiscfees.depth).toEqual(2);
196
- expect(noMiscfees.type).toEqual(buffer_1.SegmentType.Group);
195
+ expect(noMiscfees.type).toEqual(segment_type_1.SegmentType.Group);
197
196
  expect(noMiscfees.startPosition).toEqual(636);
198
197
  expect(noMiscfees.startTag).toEqual(136);
199
198
  expect(noMiscfees.endPosition).toEqual(644);
@@ -204,7 +203,7 @@ test('MiscFeesGrp structure', () => {
204
203
  test('UndInstrmtGrp structure', () => {
205
204
  const undInstrmtGrp = structure.layout.UndInstrmtGrp;
206
205
  expect(undInstrmtGrp).toBeTruthy();
207
- expect(undInstrmtGrp.type).toEqual(buffer_1.SegmentType.Component);
206
+ expect(undInstrmtGrp.type).toEqual(segment_type_1.SegmentType.Component);
208
207
  expect(undInstrmtGrp.startPosition).toEqual(143);
209
208
  expect(undInstrmtGrp.startTag).toEqual(711);
210
209
  expect(undInstrmtGrp.endPosition).toEqual(257);
@@ -215,7 +214,7 @@ test('UndInstrmtGrp structure', () => {
215
214
  expect(noUnderlyings.delimiterTag).toEqual(311);
216
215
  expect(noUnderlyings.delimiterPositions).toEqual([144, 203]);
217
216
  expect(noUnderlyings.depth).toEqual(2);
218
- expect(noUnderlyings.type).toEqual(buffer_1.SegmentType.Group);
217
+ expect(noUnderlyings.type).toEqual(segment_type_1.SegmentType.Group);
219
218
  const underlyingInstrument = structure.layout.UnderlyingInstrument;
220
219
  expect(underlyingInstrument).toBeTruthy();
221
220
  expect(underlyingInstrument.length).toEqual(2);
@@ -225,13 +224,13 @@ test('UndInstrmtGrp structure', () => {
225
224
  expect(underlyingInstrument[0].endPosition).toEqual(202);
226
225
  expect(underlyingInstrument[0].endTag).toEqual(889);
227
226
  expect(underlyingInstrument[0].depth).toEqual(3);
228
- expect(underlyingInstrument[0].type).toEqual(buffer_1.SegmentType.Component);
227
+ expect(underlyingInstrument[0].type).toEqual(segment_type_1.SegmentType.Component);
229
228
  expect(underlyingInstrument[1].startPosition).toEqual(203);
230
229
  expect(underlyingInstrument[1].startTag).toEqual(311);
231
230
  expect(underlyingInstrument[1].endPosition).toEqual(257);
232
231
  expect(underlyingInstrument[1].endTag).toEqual(889);
233
232
  expect(underlyingInstrument[1].depth).toEqual(3);
234
- expect(underlyingInstrument[1].type).toEqual(buffer_1.SegmentType.Component);
233
+ expect(underlyingInstrument[1].type).toEqual(segment_type_1.SegmentType.Component);
235
234
  const undSecAltIDGrp = structure.layout.UndSecAltIDGrp;
236
235
  expect(undSecAltIDGrp.length).toEqual(2);
237
236
  expect(undSecAltIDGrp[0].startPosition).toEqual(148);
@@ -239,25 +238,25 @@ test('UndInstrmtGrp structure', () => {
239
238
  expect(undSecAltIDGrp[0].endPosition).toEqual(154);
240
239
  expect(undSecAltIDGrp[0].endTag).toEqual(459);
241
240
  expect(undSecAltIDGrp[0].depth).toEqual(4);
242
- expect(undSecAltIDGrp[0].type).toEqual(buffer_1.SegmentType.Component);
241
+ expect(undSecAltIDGrp[0].type).toEqual(segment_type_1.SegmentType.Component);
243
242
  expect(undSecAltIDGrp[1].startPosition).toEqual(207);
244
243
  expect(undSecAltIDGrp[1].startTag).toEqual(457);
245
244
  expect(undSecAltIDGrp[1].endPosition).toEqual(209);
246
245
  expect(undSecAltIDGrp[1].endTag).toEqual(459);
247
246
  expect(undSecAltIDGrp[1].depth).toEqual(4);
248
- expect(undSecAltIDGrp[1].type).toEqual(buffer_1.SegmentType.Component);
247
+ expect(undSecAltIDGrp[1].type).toEqual(segment_type_1.SegmentType.Component);
249
248
  const noUnderlyingSecurityAltID = structure.layout.NoUnderlyingSecurityAltID;
250
249
  expect(noUnderlyingSecurityAltID.length).toEqual(2);
251
250
  expect(noUnderlyingSecurityAltID).toBeTruthy();
252
251
  expect(noUnderlyingSecurityAltID[0].depth).toEqual(5);
253
252
  expect(noUnderlyingSecurityAltID[0].delimiterTag).toEqual(458);
254
- expect(noUnderlyingSecurityAltID[0].type).toEqual(buffer_1.SegmentType.Group);
253
+ expect(noUnderlyingSecurityAltID[0].type).toEqual(segment_type_1.SegmentType.Group);
255
254
  expect(noUnderlyingSecurityAltID[0].startPosition).toEqual(148);
256
255
  expect(noUnderlyingSecurityAltID[0].endPosition).toEqual(154);
257
256
  expect(noUnderlyingSecurityAltID[0].delimiterPositions).toEqual([149, 151, 153]);
258
257
  expect(noUnderlyingSecurityAltID[1].depth).toEqual(5);
259
258
  expect(noUnderlyingSecurityAltID[1].delimiterTag).toEqual(458);
260
- expect(noUnderlyingSecurityAltID[1].type).toEqual(buffer_1.SegmentType.Group);
259
+ expect(noUnderlyingSecurityAltID[1].type).toEqual(segment_type_1.SegmentType.Group);
261
260
  expect(noUnderlyingSecurityAltID[1].startPosition).toEqual(207);
262
261
  expect(noUnderlyingSecurityAltID[1].endPosition).toEqual(209);
263
262
  expect(noUnderlyingSecurityAltID[1].delimiterPositions).toEqual([208]);
@@ -267,7 +266,7 @@ test('UndInstrmtGrp structure', () => {
267
266
  test('InstrmtLegExecGrp structure', () => {
268
267
  const instrmtLegExecGrp = structure.layout.InstrmtLegExecGrp;
269
268
  expect(instrmtLegExecGrp).toBeTruthy();
270
- expect(instrmtLegExecGrp.type).toEqual(buffer_1.SegmentType.Component);
269
+ expect(instrmtLegExecGrp.type).toEqual(segment_type_1.SegmentType.Component);
271
270
  expect(instrmtLegExecGrp.startPosition).toEqual(395);
272
271
  expect(instrmtLegExecGrp.startTag).toEqual(555);
273
272
  expect(instrmtLegExecGrp.endTag).toEqual(637);
@@ -275,7 +274,7 @@ test('InstrmtLegExecGrp structure', () => {
275
274
  expect(instrmtLegExecGrp.depth).toEqual(1);
276
275
  const noLegs = structure.layout.NoLegs;
277
276
  expect(noLegs).toBeTruthy();
278
- expect(noLegs.type).toEqual(buffer_1.SegmentType.Group);
277
+ expect(noLegs.type).toEqual(segment_type_1.SegmentType.Group);
279
278
  expect(noLegs.startPosition).toEqual(395);
280
279
  expect(noLegs.startTag).toEqual(555);
281
280
  expect(noLegs.endTag).toEqual(637);
@@ -289,19 +288,19 @@ test('instrumentLeg structure', () => {
289
288
  expect(instrumentLeg).toBeTruthy();
290
289
  expect(Array.isArray(instrumentLeg)).toEqual(true);
291
290
  expect(instrumentLeg.length).toEqual(3);
292
- expect(instrumentLeg[0].type).toEqual(buffer_1.SegmentType.Component);
291
+ expect(instrumentLeg[0].type).toEqual(segment_type_1.SegmentType.Component);
293
292
  expect(instrumentLeg[0].depth).toEqual(3);
294
293
  expect(instrumentLeg[0].startTag).toEqual(600);
295
294
  expect(instrumentLeg[0].startPosition).toEqual(396);
296
295
  expect(instrumentLeg[0].endPosition).toEqual(443);
297
296
  expect(instrumentLeg[0].endTag).toEqual(956);
298
- expect(instrumentLeg[1].type).toEqual(buffer_1.SegmentType.Component);
297
+ expect(instrumentLeg[1].type).toEqual(segment_type_1.SegmentType.Component);
299
298
  expect(instrumentLeg[1].depth).toEqual(3);
300
299
  expect(instrumentLeg[1].startTag).toEqual(600);
301
300
  expect(instrumentLeg[1].startPosition).toEqual(465);
302
301
  expect(instrumentLeg[1].endPosition).toEqual(512);
303
302
  expect(instrumentLeg[1].endTag).toEqual(956);
304
- expect(instrumentLeg[2].type).toEqual(buffer_1.SegmentType.Component);
303
+ expect(instrumentLeg[2].type).toEqual(segment_type_1.SegmentType.Component);
305
304
  expect(instrumentLeg[2].depth).toEqual(3);
306
305
  expect(instrumentLeg[2].startTag).toEqual(600);
307
306
  expect(instrumentLeg[2].startPosition).toEqual(554);
@@ -314,7 +313,7 @@ test('LegSecAltIDGrp [0] structure', () => {
314
313
  expect(Array.isArray(legSecAltIDGrp)).toEqual(true);
315
314
  expect(legSecAltIDGrp.length).toEqual(3);
316
315
  const index = 0;
317
- expect(legSecAltIDGrp[index].type).toEqual(buffer_1.SegmentType.Component);
316
+ expect(legSecAltIDGrp[index].type).toEqual(segment_type_1.SegmentType.Component);
318
317
  expect(legSecAltIDGrp[index].depth).toEqual(4);
319
318
  expect(legSecAltIDGrp[index].startTag).toEqual(604);
320
319
  expect(legSecAltIDGrp[index].startPosition).toEqual(400);
@@ -324,7 +323,7 @@ test('LegSecAltIDGrp [0] structure', () => {
324
323
  expect(noLegSecurityAltID).toBeTruthy();
325
324
  expect(Array.isArray(noLegSecurityAltID)).toEqual(true);
326
325
  expect(noLegSecurityAltID.length).toEqual(3);
327
- expect(noLegSecurityAltID[index].type).toEqual(buffer_1.SegmentType.Group);
326
+ expect(noLegSecurityAltID[index].type).toEqual(segment_type_1.SegmentType.Group);
328
327
  expect(noLegSecurityAltID[index].depth).toEqual(5);
329
328
  expect(noLegSecurityAltID[index].startTag).toEqual(604);
330
329
  expect(noLegSecurityAltID[index].startPosition).toEqual(400);
@@ -339,7 +338,7 @@ test('LegSecAltIDGrp [1] structure', () => {
339
338
  expect(Array.isArray(legSecAltIDGrp)).toEqual(true);
340
339
  expect(legSecAltIDGrp.length).toEqual(3);
341
340
  const index = 1;
342
- expect(legSecAltIDGrp[index].type).toEqual(buffer_1.SegmentType.Component);
341
+ expect(legSecAltIDGrp[index].type).toEqual(segment_type_1.SegmentType.Component);
343
342
  expect(legSecAltIDGrp[index].depth).toEqual(4);
344
343
  expect(legSecAltIDGrp[index].startTag).toEqual(604);
345
344
  expect(legSecAltIDGrp[index].startPosition).toEqual(469);
@@ -349,7 +348,7 @@ test('LegSecAltIDGrp [1] structure', () => {
349
348
  expect(noLegSecurityAltID).toBeTruthy();
350
349
  expect(Array.isArray(noLegSecurityAltID)).toEqual(true);
351
350
  expect(noLegSecurityAltID.length).toEqual(3);
352
- expect(noLegSecurityAltID[index].type).toEqual(buffer_1.SegmentType.Group);
351
+ expect(noLegSecurityAltID[index].type).toEqual(segment_type_1.SegmentType.Group);
353
352
  expect(noLegSecurityAltID[index].depth).toEqual(5);
354
353
  expect(noLegSecurityAltID[index].startTag).toEqual(604);
355
354
  expect(noLegSecurityAltID[index].startPosition).toEqual(469);
@@ -364,7 +363,7 @@ test('LegSecAltIDGrp [2] structure', () => {
364
363
  expect(Array.isArray(legSecAltIDGrp)).toEqual(true);
365
364
  expect(legSecAltIDGrp.length).toEqual(3);
366
365
  const index = 2;
367
- expect(legSecAltIDGrp[index].type).toEqual(buffer_1.SegmentType.Component);
366
+ expect(legSecAltIDGrp[index].type).toEqual(segment_type_1.SegmentType.Component);
368
367
  expect(legSecAltIDGrp[index].depth).toEqual(4);
369
368
  expect(legSecAltIDGrp[index].startTag).toEqual(604);
370
369
  expect(legSecAltIDGrp[index].startPosition).toEqual(558);
@@ -374,7 +373,7 @@ test('LegSecAltIDGrp [2] structure', () => {
374
373
  expect(noLegSecurityAltID).toBeTruthy();
375
374
  expect(Array.isArray(noLegSecurityAltID)).toEqual(true);
376
375
  expect(noLegSecurityAltID.length).toEqual(3);
377
- expect(noLegSecurityAltID[index].type).toEqual(buffer_1.SegmentType.Group);
376
+ expect(noLegSecurityAltID[index].type).toEqual(segment_type_1.SegmentType.Group);
378
377
  expect(noLegSecurityAltID[index].depth).toEqual(5);
379
378
  expect(noLegSecurityAltID[index].startTag).toEqual(604);
380
379
  expect(noLegSecurityAltID[index].startPosition).toEqual(558);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execution-report.test.js","sourceRoot":"","sources":["../../../src/test/ascii/execution-report.test.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,4BAAyB;AAEzB,6BAA4B;AAK5B,oEAA+D;AAC/D,wCAAoC;AAEpC,MAAM,IAAI,GAAW,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,eAAe,CAAC,CAAA;AAE1D,IAAI,WAA2B,CAAA;AAC/B,IAAI,KAAgB,CAAA;AACpB,IAAI,SAAoB,CAAA;AAExB,IAAI,KAAK,GAAU,IAAI,CAAA;AACvB,SAAS,CAAC,GAAS,EAAE;IACnB,KAAK,GAAG,IAAI,aAAK,CAAC,uBAAuB,EAAE,IAAI,CAAC,CAAA;IAChD,MAAM,KAAK,CAAC,IAAI,EAAE,CAAA;IAClB,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,MAAM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AC,WAAW,CAAC,cAAc,CAAC,CAAC,OAAO,CACxC;QACE,yBAAyB,EAAE;YACzB;gBACE,uBAAuB,EAAE,SAAS;gBAClC,6BAA6B,EAAE,QAAQ;aACxC;SACF;KACF,CAAC,CAAA;AACN,CAAC,EAAE,IAAI,CAAC,CAAA","sourcesContent":["import 'reflect-metadata'\r\n\r\nimport * as path from 'path'\r\nimport { SegmentDescription, MsgView, Structure } from '../../buffer'\r\nimport { ILooseObject } from '../../collections/collection'\r\nimport { FixDefinitions } from '../../dictionary/definition'\r\nimport { IUndInstrmtGrp, IUnderlyingInstrument } from '../../types/FIX4.4/quickfix'\r\nimport { SegmentType } from '../../buffer/segment/segment-type'\r\nimport { Setup } from '../env/setup'\r\n\r\nconst root: string = path.join(__dirname, '../../../data')\r\n\r\nlet definitions: FixDefinitions\r\nlet views: MsgView[]\r\nlet structure: Structure\r\n\r\nlet setup: Setup = null\r\nbeforeAll(async () => {\r\n setup = new Setup('session/qf-fix44.json', null)\r\n await setup.init()\r\n const config = setup.client.config\r\n definitions = config.definitions\r\n\r\n views = await setup.client.replayer.replayFixFile(path.join(root, 'examples/FIX.4.4/quickfix/execution-report/fix.txt'))\r\n if (views && views.length > 0) {\r\n structure = views[0].structure\r\n }\r\n}, 45000)\r\n\r\ntest('expect a structure from fix msg', () => {\r\n expect(structure).toBeTruthy()\r\n})\r\n\r\n/*\r\n[20] 453 (NoPartyIDs) = 3, [21] 448 (PartyID) = magna.\r\n[22] 447 (PartyIDSource) = 9[AUSTRALIAN_BUSINESS_NUMBER], [23] 452 (PartyRole) = 28[CUSTODIAN]\r\n[24] 802 (NoPartySubIDs) = 2, [25] 523 (PartySubID) = et\r\n[26] 803 (PartySubIDType) = 22[SECURITIES_ACCOUNT_NAME], [27] 523 (PartySubID) = leo,\r\n[28] 803 (PartySubIDType) = 10[SECURITIES_ACCOUNT_NUMBER], [29] 448 (PartyID) = iaculis\r\n[30] 447 (PartyIDSource) = F[SETTLEMENT_ENTITY_LOCATION], [31] 452 (PartyRole) = 2[BROKER_OF_CREDIT]\r\n[32] 802 (NoPartySubIDs) = 3, [33] 523 (PartySubID) = Nullam\r\n[34] 803 (PartySubIDType) = 12[REGISTERED_ADDRESS_12], [35] 523 (PartySubID) = lectus,\r\n[36] 803 (PartySubIDType) = 13[REGULATORY_STATUS], [37] 523 (PartySubID) = eget\r\n[38] 803 (PartySubIDType) = 18[REGISTERED_ADDRESS_18], [39] 448 (PartyID) = vitae,\r\n[40] 447 (PartyIDSource) = 9[AUSTRALIAN_BUSINESS_NUMBER], [41] 452 (PartyRole) = 5[INVESTOR_ID]\r\n[42] 802 (NoPartySubIDs) = 1, [43] 523 (PartySubID) = ac\r\n[44] 803 (PartySubIDType) = 6[POSTAL_ADDRESS], [45] 229 (TradeOriginationDate) = 20180528-16:38:03.972\r\n */\r\n\r\ntest('Parties structure', () => {\r\n const parties: SegmentDescription = structure.layout.Parties\r\n const noPartyIDs: SegmentDescription = structure.layout.NoPartyIDs\r\n expect(parties).toBeTruthy()\r\n expect(parties.startPosition === 20)\r\n expect(parties.endPosition === 44)\r\n expect(parties.depth === 1)\r\n expect(parties.type === SegmentType.Component)\r\n expect(noPartyIDs.startPosition === 20)\r\n expect(noPartyIDs.endPosition === 44)\r\n expect(noPartyIDs.depth === 2)\r\n expect(parties.type === SegmentType.Group)\r\n})\r\n\r\ntest('Parties PartySubIDType sub-structure', () => {\r\n const ptysSubGrp: SegmentDescription[] = structure.layout.PtysSubGrp\r\n expect(ptysSubGrp).toBeTruthy()\r\n expect(Array.isArray(ptysSubGrp)).toEqual(true)\r\n expect(ptysSubGrp.length).toEqual(3)\r\n expect(ptysSubGrp[0].startPosition).toEqual(24)\r\n expect(ptysSubGrp[0].type).toEqual(SegmentType.Component)\r\n expect(ptysSubGrp[1].startPosition).toEqual(32)\r\n expect(ptysSubGrp[1].type).toEqual(SegmentType.Component)\r\n expect(ptysSubGrp[2].startPosition).toEqual(42)\r\n expect(ptysSubGrp[2].type).toEqual(SegmentType.Component)\r\n\r\n const noPartySubIDs: SegmentDescription[] = structure.layout.NoPartySubIDs\r\n expect(noPartySubIDs).toBeTruthy()\r\n expect(Array.isArray(noPartySubIDs)).toEqual(true)\r\n expect(noPartySubIDs.length).toEqual(3)\r\n\r\n expect(noPartySubIDs[0].delimiterTag).toEqual(523)\r\n expect(noPartySubIDs[0].type).toEqual(SegmentType.Group)\r\n expect(noPartySubIDs[0].delimiterPositions).toEqual([25, 27])\r\n expect(noPartySubIDs[0].depth).toEqual(4)\r\n\r\n expect(noPartySubIDs[1].delimiterTag).toEqual(523)\r\n expect(noPartySubIDs[1].type).toEqual(SegmentType.Group)\r\n expect(noPartySubIDs[1].delimiterPositions).toEqual([33, 35, 37])\r\n expect(noPartySubIDs[1].depth).toEqual(4)\r\n\r\n expect(noPartySubIDs[2].delimiterTag).toEqual(523)\r\n expect(noPartySubIDs[2].type).toEqual(SegmentType.Group)\r\n expect(noPartySubIDs[2].delimiterPositions).toEqual([43])\r\n expect(noPartySubIDs[2].depth).toEqual(4)\r\n})\r\n\r\n/*\r\n[46] 382 (NoContraBrokers) = 3, [47] 375 (ContraBroker) = Quisque\r\n[48] 337 (ContraTrader) = tincidunt, [49] 437 (ContraTradeQty) = 18171\r\n[50] 438 (ContraTradeTime) = 20180528-16:38:03.972, [51] 655 (ContraLegRefID) = Class\r\n[52] 375 (ContraBroker) = taciti, [53] 337 (ContraTrader) = ad\r\n[54] 437 (ContraTradeQty) = 91261, [55] 438 (ContraTradeTime) = 20180528-16:38:03.972\r\n[56] 655 (ContraLegRefID) = torquent, [57] 375 (ContraBroker) = conubia\r\n[58] 337 (ContraTrader) = per, [59] 437 (ContraTradeQty) = 97017\r\n[60] 438 (ContraTradeTime) = 20180528-16:38:03.972, [61] 655 (ContraLegRefID) = himenaeos.\r\n */\r\n\r\ntest('ContraGrp structure', () => {\r\n const contraGrp: SegmentDescription = structure.layout.ContraGrp\r\n expect(contraGrp).toBeTruthy()\r\n expect(contraGrp.depth).toEqual(1)\r\n expect(contraGrp.type).toEqual(SegmentType.Component)\r\n expect(contraGrp.startPosition).toEqual(46)\r\n expect(contraGrp.endPosition).toEqual(61)\r\n\r\n const noContraBrokers: SegmentDescription = structure.layout.NoContraBrokers\r\n expect(noContraBrokers).toBeTruthy()\r\n expect(noContraBrokers.depth).toEqual(2)\r\n expect(noContraBrokers.type).toEqual(SegmentType.Group)\r\n expect(noContraBrokers.delimiterTag).toEqual(375)\r\n expect(noContraBrokers.delimiterPositions).toEqual([47, 52, 57])\r\n\r\n})\r\n\r\n/*\r\n[82] 635 (ClearingFeeIndicator) = 5[5TH_YEAR_DELEGATE_TRADING_FOR_HIS_OWN_ACCOUNT], [83] 55 (Symbol) = ac,\r\n[84] 65 (SymbolSfx) = non, [85] 48 (SecurityID) = Pellentesque\r\n[86] 22 (SecurityIDSource) = B[WERTPAPIER], [87] 454 (NoSecurityAltID) = 2\r\n[88] 455 (SecurityAltID) = lorem, [89] 456 (SecurityAltIDSource) = consequat\r\n[90] 455 (SecurityAltID) = sapien, [91] 456 (SecurityAltIDSource) = tempor\r\n[92] 460 (Product) = 2[COMMODITY], [93] 461 (CFICode) = a\r\n[94] 167 (SecurityType) = SECLOAN[SECURITIES_LOAN], [95] 762 (SecuritySubType) = purus\r\n[96] 200 (MaturityMonthYear) = ut, [97] 541 (MaturityDate) = 20180528-16:38:03.972\r\n[98] 201 (PutOrCall) = 1[CALL], [99] 224 (CouponPaymentDate) = 20180528-16:38:03.972\r\n[100] 225 (IssueDate) = 20180528-16:38:03.972, [101] 239 (RepoCollateralSecurityType) = Proin\r\n[102] 226 (RepurchaseTerm) = 62025, [103] 227 (RepurchaseRate) = 27005\r\n[104] 228 (Factor) = 68810, [105] 255 (CreditRating) = justo\r\n[106] 543 (InstrRegistry) = ut, [107] 470 (CountryOfIssue) = nibh\r\n[108] 471 (StateOrProvinceOfIssue) = at., [109] 472 (LocaleOfIssue) = fermentum\r\n[110] 240 (RedemptionDate) = 20180528-16:38:03.972, [111] 202 (StrikePrice) = 52639\r\n[112] 947 (StrikeCurrency) = 50824, [113] 206 (OptAttribute) = risus,\r\n[114] 231 (ContractMultiplier) = 10378, [115] 223 (CouponRate) = 25946\r\n[116] 207 (SecurityExchange) = placerat, [117] 106 (Issuer) = luctus\r\n[118] 348 (EncodedIssuerLen) = 20, [119] 349 (EncodedIssuer) = zqJsegy0CQ8EyKQ1bmLw\r\n[120] 107 (SecurityDesc) = Vivamus, [121] 350 (EncodedSecurityDescLen) = 20\r\n[122] 351 (EncodedSecurityDesc) = A1xB4jDS31E4zM1xAbk5, [123] 691 (Pool) = mi\r\n[124] 667 (ContractSettlMonth) = arcu, [125] 875 (CPProgram) = 2[4]\r\n[126] 876 (CPRegType) = rhoncus, [127] 864 (NoEvents) = 1\r\n[128] 865 (EventType) = 1[PUT], [129] 866 (EventDate) = 20180528-16:38:03.973\r\n[130] 867 (EventPx) = 16817, [131] 868 (EventText) = amet\r\n[132] 873 (DatedDate) = 20180528-16:38:03.973, [133] 874 (InterestAccrualDate) = 20180528-16:38:03.973\r\n */\r\n\r\ntest('Instrument structure', () => {\r\n const instrument: SegmentDescription = structure.layout.Instrument\r\n expect(instrument).toBeTruthy()\r\n expect(instrument.type).toEqual(SegmentType.Component)\r\n expect(instrument.startPosition).toEqual(83)\r\n expect(instrument.startTag).toEqual(55)\r\n expect(instrument.endPosition).toEqual(133)\r\n expect(instrument.endTag).toEqual(874)\r\n\r\n const noSecurityAltID: SegmentDescription = structure.layout.NoSecurityAltID\r\n expect(noSecurityAltID).toBeTruthy()\r\n expect(noSecurityAltID.type).toEqual(SegmentType.Group)\r\n expect(noSecurityAltID.delimiterTag).toEqual(455)\r\n expect(noSecurityAltID.delimiterPositions).toEqual([88, 90])\r\n})\r\n\r\n/*\r\n[134] 913 (AgreementDesc) = sit, [135] 914 (AgreementID) = eleifend\r\n[136] 915 (AgreementDate) = 20180528-16:38:03.973, [137] 918 (AgreementCurrency) = 78552\r\n[138] 788 (TerminationType) = 2[TERM], [139] 916 (StartDate) = 20180528-16:38:03.973\r\n[140] 917 (EndDate) = 20180528-16:38:03.973, [141] 919 (DeliveryType) = 3[HOLD_IN_CUSTODY]\r\n[142] 898 (MarginRatio) = 13625, [143] 711 (NoUnderlyings) = 2\r\n */\r\n\r\ntest('FinancingDetails structure', () => {\r\n const financingDetails: SegmentDescription = structure.layout.FinancingDetails\r\n expect(financingDetails).toBeTruthy()\r\n expect(financingDetails.depth).toEqual(1)\r\n expect(financingDetails.type).toEqual(SegmentType.Component)\r\n expect(financingDetails.startPosition).toEqual(134)\r\n expect(financingDetails.startTag).toEqual(913)\r\n expect(financingDetails.endPosition).toEqual(142)\r\n expect(financingDetails.endTag).toEqual(898)\r\n})\r\n\r\n/*\r\n[272] 211 (PegOffsetValue) = 38459, [273] 835 (PegMoveType) = 1[FIXED]\r\n[274] 836 (PegOffsetType) = [undefined], [275] 837 (PegLimitType) = 2\r\n[276] 838 (PegRoundDirection) = 2, [277] 840 (PegScope) = 4[NATIONAL_EXCLUDING_LOCAL]\r\n */\r\n\r\ntest('PegInstructions structure', () => {\r\n const pegInstructions: SegmentDescription = structure.layout.PegInstructions\r\n expect(pegInstructions).toBeTruthy()\r\n expect(pegInstructions.depth).toEqual(1)\r\n expect(pegInstructions.type).toEqual(SegmentType.Component)\r\n expect(pegInstructions.startPosition).toEqual(272)\r\n expect(pegInstructions.startTag).toEqual(211)\r\n expect(pegInstructions.endPosition).toEqual(277)\r\n expect(pegInstructions.endTag).toEqual(840)\r\n})\r\n\r\n/*\r\n[278] 388 (DiscretionInst) = 2[RELATED_TO_PRIMARY_PRICE], [279] 389 (DiscretionOffsetValue) = 48430\r\n[280] 841 (DiscretionMoveType) = 1[FIXED], [281] 842 (DiscretionOffsetType) = 3[PRICE_TIER]\r\n[282] 843 (DiscretionLimitType) = 2, [283] 844 (DiscretionRoundDirection) = 2\r\n[284] 846 (DiscretionScope) = 4[NATIONAL_EXCLUDING_LOCAL], [285] 839 (PeggedPrice) = 18644\r\n */\r\n\r\ntest('DiscretionInstructions structure', () => {\r\n const discretionInstructions: SegmentDescription = structure.layout.DiscretionInstructions\r\n expect(discretionInstructions).toBeTruthy()\r\n expect(discretionInstructions.depth).toEqual(1)\r\n expect(discretionInstructions.type).toEqual(SegmentType.Component)\r\n expect(discretionInstructions.startPosition).toEqual(278)\r\n expect(discretionInstructions.startTag).toEqual(388)\r\n expect(discretionInstructions.endPosition).toEqual(284)\r\n expect(discretionInstructions.endTag).toEqual(846)\r\n})\r\n\r\n/*\r\n[324] 12 (Commission) = 3339, [325] 13 (CommType) = 1[PER_UNIT]\r\n[326] 479 (CommCurrency) = 25841, [327] 497 (FundRenewWaiv) = N[NO]\r\n */\r\ntest('CommissionData structure', () => {\r\n const commisionData: SegmentDescription = structure.layout.CommissionData\r\n expect(commisionData).toBeTruthy()\r\n expect(commisionData.depth).toEqual(1)\r\n expect(commisionData.type).toEqual(SegmentType.Component)\r\n expect(commisionData.startPosition).toEqual(324)\r\n expect(commisionData.startTag).toEqual(12)\r\n expect(commisionData.endPosition).toEqual(327)\r\n expect(commisionData.endTag).toEqual(497)\r\n})\r\n\r\n/*\r\n[328] 218 (Spread) = 72687, [329] 220 (BenchmarkCurveCurrency) = 84249\r\n[330] 221 (BenchmarkCurveName) = Pellentesque, [331] 222 (BenchmarkCurvePoint) = luctus\r\n[332] 662 (BenchmarkPrice) = 90721, [333] 663 (BenchmarkPriceType) = 66615\r\n[334] 699 (BenchmarkSecurityID) = et, [335] 761 (BenchmarkSecurityIDSource) = nunc.\r\n */\r\n\r\ntest('SpreadOrBenchmarkCurveData structure', () => {\r\n const spreadBenchData: SegmentDescription = structure.layout.SpreadOrBenchmarkCurveData\r\n expect(spreadBenchData).toBeTruthy()\r\n expect(spreadBenchData.depth).toEqual(1)\r\n expect(spreadBenchData.type).toEqual(SegmentType.Component)\r\n expect(spreadBenchData.startPosition).toEqual(328)\r\n expect(spreadBenchData.startTag).toEqual(218)\r\n expect(spreadBenchData.endPosition).toEqual(335)\r\n expect(spreadBenchData.endTag).toEqual(761)\r\n})\r\n\r\n/*\r\n[336] 235 (YieldType) = INVERSEFLOATER[INVERSE_FLOATER_BOND_YIELD], [337] 236 (Yield) = 34183\r\n[338] 701 (YieldCalcDate) = 20180528-16:38:03.973, [339] 696 (YieldRedemptionDate) = 20180528-16:38:03.973\r\n[340] 697 (YieldRedemptionPrice) = 3652, [341] 698 (YieldRedemptionPriceType) = 10535\r\n */\r\n\r\ntest('YieldData structure', () => {\r\n const yieldData: SegmentDescription = structure.layout.YieldData\r\n expect(yieldData).toBeTruthy()\r\n expect(yieldData.depth).toEqual(1)\r\n expect(yieldData.type).toEqual(SegmentType.Component)\r\n expect(yieldData.startPosition).toEqual(336)\r\n expect(yieldData.startTag).toEqual(235)\r\n expect(yieldData.endPosition).toEqual(341)\r\n expect(yieldData.endTag).toEqual(698)\r\n})\r\n\r\n/*\r\n[384] 851 (LastLiquidityInd) = 3[LIQUIDITY_ROUTED_OUT], [385] 518 (NoContAmts) = 3\r\n[386] 519 (ContAmtType) = 5[DISCOUNT_AMOUNT], [387] 520 (ContAmtValue) = 95673\r\n[388] 521 (ContAmtCurr) = 87528, [389] 519 (ContAmtType) = 14[FUND_BASED_RENEWAL_COMMISSION_AMOUNT_14]\r\n[390] 520 (ContAmtValue) = 56344, [391] 521 (ContAmtCurr) = 46066\r\n[392] 519 (ContAmtType) = 11[FUND_BASED_RENEWAL_COMMISSION], [393] 520 (ContAmtValue) = 94762\r\n[394] 521 (ContAmtCurr) = 6779, [395] 555 (NoLegs) = 3\r\n */\r\n\r\ntest('ContAmtGrp structure', () => {\r\n const contAmtGrp: SegmentDescription = structure.layout.ContAmtGrp\r\n expect(contAmtGrp).toBeTruthy()\r\n expect(contAmtGrp.depth).toEqual(1)\r\n expect(contAmtGrp.type).toEqual(SegmentType.Component)\r\n expect(contAmtGrp.startPosition).toEqual(385)\r\n expect(contAmtGrp.startTag).toEqual(518)\r\n expect(contAmtGrp.endPosition).toEqual(394)\r\n expect(contAmtGrp.endTag).toEqual(521)\r\n\r\n const noContAmts: SegmentDescription = structure.layout.NoContAmts\r\n expect(noContAmts).toBeTruthy()\r\n expect(noContAmts.depth).toEqual(2)\r\n expect(noContAmts.type).toEqual(SegmentType.Group)\r\n expect(noContAmts.startPosition).toEqual(385)\r\n expect(noContAmts.startTag).toEqual(518)\r\n expect(noContAmts.endPosition).toEqual(394)\r\n expect(noContAmts.endTag).toEqual(521)\r\n expect(noContAmts.delimiterTag).toEqual(519)\r\n expect(noContAmts.delimiterPositions).toEqual([386, 389, 392])\r\n})\r\n\r\n/*\r\n[636] 136 (NoMiscFees) = 2, [637] 137 (MiscFeeAmt) = 56059\r\n[638] 138 (MiscFeeCurr) = 92115, [639] 139 (MiscFeeType) = 7[OTHER]\r\n[640] 891 (MiscFeeBasis) = [undefined], [641] 137 (MiscFeeAmt) = 93185\r\n[642] 138 (MiscFeeCurr) = 72195, [643] 139 (MiscFeeType) = 12[AGENT]\r\n[644] 891 (MiscFeeBasis) = [undefined], [645] 10 (CheckSum) = 59\r\n */\r\n\r\ntest('MiscFeesGrp structure', () => {\r\n const miscFees: SegmentDescription = structure.layout.MiscFeesGrp\r\n expect(miscFees).toBeTruthy()\r\n expect(miscFees.depth).toEqual(1)\r\n expect(miscFees.type).toEqual(SegmentType.Component)\r\n expect(miscFees.startPosition).toEqual(636)\r\n expect(miscFees.startTag).toEqual(136)\r\n expect(miscFees.endPosition).toEqual(644)\r\n expect(miscFees.endTag).toEqual(891)\r\n\r\n const noMiscfees: SegmentDescription = structure.layout.NoMiscFees\r\n expect(noMiscfees).toBeTruthy()\r\n expect(noMiscfees.depth).toEqual(2)\r\n expect(noMiscfees.type).toEqual(SegmentType.Group)\r\n expect(noMiscfees.startPosition).toEqual(636)\r\n expect(noMiscfees.startTag).toEqual(136)\r\n expect(noMiscfees.endPosition).toEqual(644)\r\n expect(noMiscfees.endTag).toEqual(891)\r\n expect(noMiscfees.delimiterTag).toEqual(137)\r\n expect(noMiscfees.delimiterPositions).toEqual([637, 641])\r\n})\r\n\r\n/*\r\n[142] 898 (MarginRatio) = 13625, [143] 711 (NoUnderlyings) = 2\r\n[144] 311 (UnderlyingSymbol) = massa., [145] 312 (UnderlyingSymbolSfx) = metus\r\n[146] 309 (UnderlyingSecurityID) = maximus, [147] 305 (UnderlyingSecurityIDSource) = facilisis\r\n[148] 457 (NoUnderlyingSecurityAltID) = 3, [149] 458 (UnderlyingSecurityAltID) = ornare\r\n[150] 459 (UnderlyingSecurityAltIDSource) = magna., [151] 458 (UnderlyingSecurityAltID) = non\r\n[152] 459 (UnderlyingSecurityAltIDSource) = at, [153] 458 (UnderlyingSecurityAltID) = hendrerit\r\n[154] 459 (UnderlyingSecurityAltIDSource) = Pellentesque, [155] 462 (UnderlyingProduct) = 89682\r\n[156] 463 (UnderlyingCFICode) = arcu,, [157] 310 (UnderlyingSecurityType) = eu\r\n[158] 763 (UnderlyingSecuritySubType) = vitae,, [159] 313 (UnderlyingMaturityMonthYear) = ut\r\n[160] 542 (UnderlyingMaturityDate) = 20180528-16:38:03.973, [161] 315 (UnderlyingPutOrCall) = 81619\r\n[162] 241 (UnderlyingCouponPaymentDate) = 20180528-16:38:03.973, [163] 242 (UnderlyingIssueDate) = 20180528-16:38:03.973\r\n[164] 243 (UnderlyingRepoCollateralSecurityType) = Aliquam, [165] 244 (UnderlyingRepurchaseTerm) = 1819\r\n[166] 245 (UnderlyingRepurchaseRate) = 12004, [167] 246 (UnderlyingFactor) = 81916\r\n[168] 256 (UnderlyingCreditRating) = erat, [169] 595 (UnderlyingInstrRegistry) = tellus\r\n[170] 592 (UnderlyingCountryOfIssue) = in, [171] 593 (UnderlyingStateOrProvinceOfIssue) = nisi\r\n[172] 594 (UnderlyingLocaleOfIssue) = Interdum, [173] 247 (UnderlyingRedemptionDate) = 20180528-16:38:03.973\r\n[174] 316 (UnderlyingStrikePrice) = 46328, [175] 941 (UnderlyingStrikeCurrency) = 21536\r\n[176] 317 (UnderlyingOptAttribute) = malesuada, [177] 436 (UnderlyingContractMultiplier) = 83404\r\n[178] 435 (UnderlyingCouponRate) = 1709, [179] 308 (UnderlyingSecurityExchange) = ac\r\n[180] 306 (UnderlyingIssuer) = ipsum, [181] 362 (EncodedUnderlyingIssuerLen) = 20\r\n[182] 363 (EncodedUnderlyingIssuer) = gJ40LPqdkNUGQxMisPLk, [183] 307 (UnderlyingSecurityDesc) = in\r\n[184] 364 (EncodedUnderlyingSecurityDescLen) = 20, [185] 365 (EncodedUnderlyingSecurityDesc) = RUQjbmg6gsPoWBsuwDCh\r\n[186] 877 (UnderlyingCPProgram) = Ut, [187] 878 (UnderlyingCPRegType) = massa\r\n[188] 318 (UnderlyingCurrency) = 47704, [189] 879 (UnderlyingQty) = 31703\r\n[190] 810 (UnderlyingPx) = 60977, [191] 882 (UnderlyingDirtyPrice) = 67361\r\n[192] 883 (UnderlyingEndPrice) = 51785, [193] 884 (UnderlyingStartValue) = 80625\r\n[194] 885 (UnderlyingCurrentValue) = 29888, [195] 886 (UnderlyingEndValue) = 49266\r\n[196] 887 (NoUnderlyingStips) = 3, [197] 888 (UnderlyingStipType) = cursus\r\n[198] 889 (UnderlyingStipValue) = Vivamus, [199] 888 (UnderlyingStipType) = convallis\r\n[200] 889 (UnderlyingStipValue) = nec, [201] 888 (UnderlyingStipType) = urna\r\n[202] 889 (UnderlyingStipValue) = vitae., [203] 311 (UnderlyingSymbol) = erat\r\n[204] 312 (UnderlyingSymbolSfx) = In, [205] 309 (UnderlyingSecurityID) = feugiat\r\n[206] 305 (UnderlyingSecurityIDSource) = ut, [207] 457 (NoUnderlyingSecurityAltID) = 1\r\n[208] 458 (UnderlyingSecurityAltID) = Quisque, [209] 459 (UnderlyingSecurityAltIDSource) = tortor\r\n[210] 462 (UnderlyingProduct) = 36068, [211] 463 (UnderlyingCFICode) = est\r\n[212] 310 (UnderlyingSecurityType) = Lorem, [213] 763 (UnderlyingSecuritySubType) = dolor\r\n[214] 313 (UnderlyingMaturityMonthYear) = amet,, [215] 542 (UnderlyingMaturityDate) = 20180528-16:38:03.973\r\n[216] 315 (UnderlyingPutOrCall) = 94032, [217] 241 (UnderlyingCouponPaymentDate) = 20180528-16:38:03.973\r\n[218] 242 (UnderlyingIssueDate) = 20180528-16:38:03.973, [219] 243 (UnderlyingRepoCollateralSecurityType) = adipiscing\r\n[220] 244 (UnderlyingRepurchaseTerm) = 17712, [221] 245 (UnderlyingRepurchaseRate) = 95092\r\n[222] 246 (UnderlyingFactor) = 82914, [223] 256 (UnderlyingCreditRating) = Nunc\r\n[224] 595 (UnderlyingInstrRegistry) = orci,, [225] 592 (UnderlyingCountryOfIssue) = vel\r\n[226] 593 (UnderlyingStateOrProvinceOfIssue) = sed,, [227] 594 (UnderlyingLocaleOfIssue) = cursus\r\n[228] 247 (UnderlyingRedemptionDate) = 20180528-16:38:03.973, [229] 316 (UnderlyingStrikePrice) = 84513\r\n[230] 941 (UnderlyingStrikeCurrency) = 31556, [231] 317 (UnderlyingOptAttribute) = Aenean\r\n[232] 436 (UnderlyingContractMultiplier) = 8879, [233] 435 (UnderlyingCouponRate) = 68005\r\n[234] 308 (UnderlyingSecurityExchange) = diam, [235] 306 (UnderlyingIssuer) = Aenean\r\n[236] 362 (EncodedUnderlyingIssuerLen) = 20, [237] 363 (EncodedUnderlyingIssuer) = VxRjId4eWuuNiBYgjNpp\r\n[238] 307 (UnderlyingSecurityDesc) = viverra, [239] 364 (EncodedUnderlyingSecurityDescLen) = 20\r\n[240] 365 (EncodedUnderlyingSecurityDesc) = fwlY5CmVswvapjFalVLb, [241] 877 (UnderlyingCPProgram) = non\r\n[242] 878 (UnderlyingCPRegType) = neque., [243] 318 (UnderlyingCurrency) = 53806\r\n[244] 879 (UnderlyingQty) = 26390, [245] 810 (UnderlyingPx) = 32442\r\n[246] 882 (UnderlyingDirtyPrice) = 82617, [247] 883 (UnderlyingEndPrice) = 86326\r\n[248] 884 (UnderlyingStartValue) = 34911, [249] 885 (UnderlyingCurrentValue) = 46867\r\n[250] 886 (UnderlyingEndValue) = 94014, [251] 887 (NoUnderlyingStips) = 3\r\n[252] 888 (UnderlyingStipType) = arcu, [253] 889 (UnderlyingStipValue) = dignissim\r\n[254] 888 (UnderlyingStipType) = auctor, [255] 889 (UnderlyingStipValue) = maximus\r\n[256] 888 (UnderlyingStipType) = quam., [257] 889 (UnderlyingStipValue) = varius\r\n */\r\n\r\ntest('UndInstrmtGrp structure', () => {\r\n const undInstrmtGrp: SegmentDescription = structure.layout.UndInstrmtGrp\r\n expect(undInstrmtGrp).toBeTruthy()\r\n expect(undInstrmtGrp.type).toEqual(SegmentType.Component)\r\n expect(undInstrmtGrp.startPosition).toEqual(143)\r\n expect(undInstrmtGrp.startTag).toEqual(711)\r\n expect(undInstrmtGrp.endPosition).toEqual(257)\r\n expect(undInstrmtGrp.endTag).toEqual(889)\r\n expect(undInstrmtGrp.depth).toEqual(1)\r\n\r\n const noUnderlyings: SegmentDescription = structure.layout.NoUnderlyings\r\n expect(noUnderlyings).toBeTruthy()\r\n expect(noUnderlyings.delimiterTag).toEqual(311)\r\n expect(noUnderlyings.delimiterPositions).toEqual([144, 203])\r\n expect(noUnderlyings.depth).toEqual(2)\r\n expect(noUnderlyings.type).toEqual(SegmentType.Group)\r\n\r\n const underlyingInstrument: SegmentDescription[] = structure.layout.UnderlyingInstrument\r\n expect(underlyingInstrument).toBeTruthy()\r\n expect(underlyingInstrument.length).toEqual(2)\r\n expect(underlyingInstrument).toBeTruthy()\r\n\r\n expect(underlyingInstrument[0].startPosition).toEqual(144)\r\n expect(underlyingInstrument[0].startTag).toEqual(311)\r\n expect(underlyingInstrument[0].endPosition).toEqual(202)\r\n expect(underlyingInstrument[0].endTag).toEqual(889)\r\n expect(underlyingInstrument[0].depth).toEqual(3)\r\n expect(underlyingInstrument[0].type).toEqual(SegmentType.Component)\r\n\r\n expect(underlyingInstrument[1].startPosition).toEqual(203)\r\n expect(underlyingInstrument[1].startTag).toEqual(311)\r\n expect(underlyingInstrument[1].endPosition).toEqual(257)\r\n expect(underlyingInstrument[1].endTag).toEqual(889)\r\n expect(underlyingInstrument[1].depth).toEqual(3)\r\n expect(underlyingInstrument[1].type).toEqual(SegmentType.Component)\r\n\r\n const undSecAltIDGrp: SegmentDescription[] = structure.layout.UndSecAltIDGrp\r\n expect(undSecAltIDGrp.length).toEqual(2)\r\n expect(undSecAltIDGrp[0].startPosition).toEqual(148)\r\n expect(undSecAltIDGrp[0].startTag).toEqual(457)\r\n expect(undSecAltIDGrp[0].endPosition).toEqual(154)\r\n expect(undSecAltIDGrp[0].endTag).toEqual(459)\r\n expect(undSecAltIDGrp[0].depth).toEqual(4)\r\n expect(undSecAltIDGrp[0].type).toEqual(SegmentType.Component)\r\n\r\n expect(undSecAltIDGrp[1].startPosition).toEqual(207)\r\n expect(undSecAltIDGrp[1].startTag).toEqual(457)\r\n expect(undSecAltIDGrp[1].endPosition).toEqual(209)\r\n expect(undSecAltIDGrp[1].endTag).toEqual(459)\r\n expect(undSecAltIDGrp[1].depth).toEqual(4)\r\n expect(undSecAltIDGrp[1].type).toEqual(SegmentType.Component)\r\n\r\n const noUnderlyingSecurityAltID: SegmentDescription[] = structure.layout.NoUnderlyingSecurityAltID\r\n expect(noUnderlyingSecurityAltID.length).toEqual(2)\r\n expect(noUnderlyingSecurityAltID).toBeTruthy()\r\n\r\n expect(noUnderlyingSecurityAltID[0].depth).toEqual(5)\r\n expect(noUnderlyingSecurityAltID[0].delimiterTag).toEqual(458)\r\n expect(noUnderlyingSecurityAltID[0].type).toEqual(SegmentType.Group)\r\n expect(noUnderlyingSecurityAltID[0].startPosition).toEqual(148)\r\n expect(noUnderlyingSecurityAltID[0].endPosition).toEqual(154)\r\n expect(noUnderlyingSecurityAltID[0].delimiterPositions).toEqual([149, 151, 153])\r\n\r\n expect(noUnderlyingSecurityAltID[1].depth).toEqual(5)\r\n expect(noUnderlyingSecurityAltID[1].delimiterTag).toEqual(458)\r\n expect(noUnderlyingSecurityAltID[1].type).toEqual(SegmentType.Group)\r\n expect(noUnderlyingSecurityAltID[1].startPosition).toEqual(207)\r\n expect(noUnderlyingSecurityAltID[1].endPosition).toEqual(209)\r\n expect(noUnderlyingSecurityAltID[1].delimiterPositions).toEqual([208])\r\n\r\n const boundNoUnderlyingSecurityAltID: SegmentDescription = structure.firstContainedWithin(\r\n 'NoUnderlyingSecurityAltID',\r\n underlyingInstrument[1])\r\n expect(boundNoUnderlyingSecurityAltID).toBeTruthy()\r\n})\r\n\r\n/*\r\n[394] 521 (ContAmtCurr) = 6779, [395] 555 (NoLegs) = 3\r\n[396] 600 (LegSymbol) = posuere, [397] 601 (LegSymbolSfx) = nibh.\r\n[398] 602 (LegSecurityID) = ornare,, [399] 603 (LegSecurityIDSource) = semper\r\n[400] 604 (NoLegSecurityAltID) = 3, [401] 605 (LegSecurityAltID) = laoreet,\r\n[402] 606 (LegSecurityAltIDSource) = odio, [403] 605 (LegSecurityAltID) = velit,\r\n[404] 606 (LegSecurityAltIDSource) = sollicitudin, [405] 605 (LegSecurityAltID) = augue\r\n[406] 606 (LegSecurityAltIDSource) = odio., [407] 607 (LegProduct) = 12438\r\n[408] 608 (LegCFICode) = tempor, [409] 609 (LegSecurityType) = nisi,\r\n[410] 764 (LegSecuritySubType) = euismod, [411] 610 (LegMaturityMonthYear) = convallis\r\n[412] 611 (LegMaturityDate) = 20180528-16:38:03.973, [413] 248 (LegCouponPaymentDate) = 20180528-16:38:03.973\r\n[414] 249 (LegIssueDate) = 20180528-16:38:03.973, [415] 250 (LegRepoCollateralSecurityType) = Donec\r\n[416] 251 (LegRepurchaseTerm) = 50636, [417] 252 (LegRepurchaseRate) = 29567\r\n[418] 253 (LegFactor) = 12603, [419] 257 (LegCreditRating) = erat\r\n[420] 599 (LegInstrRegistry) = vel, [421] 596 (LegCountryOfIssue) = nulla\r\n[422] 597 (LegStateOrProvinceOfIssue) = ac., [423] 598 (LegLocaleOfIssue) = vel\r\n[424] 254 (LegRedemptionDate) = 20180528-16:38:03.973, [425] 612 (LegStrikePrice) = 45964\r\n[426] 942 (LegStrikeCurrency) = 52294, [427] 613 (LegOptAttribute) = eros.\r\n[428] 614 (LegContractMultiplier) = 15566, [429] 615 (LegCouponRate) = 29897\r\n[430] 616 (LegSecurityExchange) = urna,, [431] 617 (LegIssuer) = sit\r\n[432] 618 (EncodedLegIssuerLen) = 20, [433] 619 (EncodedLegIssuer) = bsCdR5NlOBXt99NrTSbA\r\n[434] 620 (LegSecurityDesc) = bibendum, [435] 621 (EncodedLegSecurityDescLen) = 20\r\n[436] 622 (EncodedLegSecurityDesc) = 3Mzh9ClDlcxCLLtgAZ0x, [437] 623 (LegRatioQty) = 47570\r\n[438] 624 (LegSide) = amet,, [439] 556 (LegCurrency) = 18817\r\n[440] 740 (LegPool) = non, [441] 739 (LegDatedDate) = 20180528-16:38:03.973\r\n[442] 955 (LegContractSettlMonth) = Nam, [443] 956 (LegInterestAccrualDate) = 20180528-16:38:03.973\r\n[444] 687 (LegQty) = 38413, [445] 690 (LegSwapType) = 4[RISK]\r\n[446] 683 (NoLegStipulations) = 2, [447] 688 (LegStipulationType) = mi,\r\n[448] 689 (LegStipulationValue) = et, [449] 688 (LegStipulationType) = in,\r\n[450] 689 (LegStipulationValue) = sed, [451] 564 (LegPositionEffect) = Nulla\r\n[452] 565 (LegCoveredOrUncovered) = 45098, [453] 539 (NoNestedPartyIDs) = 1\r\n[454] 524 (NestedPartyID) = leo, [455] 525 (NestedPartyIDSource) = odio\r\n[456] 538 (NestedPartyRole) = 59224, [457] 804 (NoNestedPartySubIDs) = 1\r\n[458] 545 (NestedPartySubID) = placerat., [459] 805 (NestedPartySubIDType) = 83297\r\n[460] 654 (LegRefID) = felis, [461] 566 (LegPrice) = 39429\r\n[462] 587 (LegSettlType) = elementum, [463] 588 (LegSettlDate) = 20180528-16:38:03.973\r\n[464] 637 (LegLastPx) = 75387, [465] 600 (LegSymbol) = mollis\r\n[466] 601 (LegSymbolSfx) = euismod, [467] 602 (LegSecurityID) = diam.\r\n[468] 603 (LegSecurityIDSource) = porttitor, [469] 604 (NoLegSecurityAltID) = 3\r\n[470] 605 (LegSecurityAltID) = eget, [471] 606 (LegSecurityAltIDSource) = cursus,\r\n[472] 605 (LegSecurityAltID) = hendrerit, [473] 606 (LegSecurityAltIDSource) = tempus.\r\n[474] 605 (LegSecurityAltID) = et, [475] 606 (LegSecurityAltIDSource) = fames\r\n[476] 607 (LegProduct) = 6990, [477] 608 (LegCFICode) = ante\r\n[478] 609 (LegSecurityType) = primis, [479] 764 (LegSecuritySubType) = faucibus.\r\n[480] 610 (LegMaturityMonthYear) = egestas, [481] 611 (LegMaturityDate) = 20180528-16:38:03.973\r\n[482] 248 (LegCouponPaymentDate) = 20180528-16:38:03.973, [483] 249 (LegIssueDate) = 20180528-16:38:03.973\r\n[484] 250 (LegRepoCollateralSecurityType) = ac, [485] 251 (LegRepurchaseTerm) = 58397\r\n[486] 252 (LegRepurchaseRate) = 22917, [487] 253 (LegFactor) = 96132\r\n[488] 257 (LegCreditRating) = semper., [489] 599 (LegInstrRegistry) = rhoncus\r\n[490] 596 (LegCountryOfIssue) = nulla,, [491] 597 (LegStateOrProvinceOfIssue) = ornare\r\n[492] 598 (LegLocaleOfIssue) = iaculis, [493] 254 (LegRedemptionDate) = 20180528-16:38:03.973\r\n[494] 612 (LegStrikePrice) = 86522, [495] 942 (LegStrikeCurrency) = 3727\r\n[496] 613 (LegOptAttribute) = Aliquam, [497] 614 (LegContractMultiplier) = 18485\r\n[498] 615 (LegCouponRate) = 36169, [499] 616 (LegSecurityExchange) = volutpat.\r\n[500] 617 (LegIssuer) = condimentum, [501] 618 (EncodedLegIssuerLen) = 20\r\n[502] 619 (EncodedLegIssuer) = P813lip75NKBgG1C8re8, [503] 620 (LegSecurityDesc) = sem\r\n[504] 621 (EncodedLegSecurityDescLen) = 20, [505] 622 (EncodedLegSecurityDesc) = 8qbetIHVFcKFS7EY3XOK\r\n[506] 623 (LegRatioQty) = 42919, [507] 624 (LegSide) = porttitor.\r\n[508] 556 (LegCurrency) = 34832, [509] 740 (LegPool) = pellentesque\r\n[510] 739 (LegDatedDate) = 20180528-16:38:03.973, [511] 955 (LegContractSettlMonth) = eget\r\n[512] 956 (LegInterestAccrualDate) = 20180528-16:38:03.973, [513] 687 (LegQty) = 16560\r\n[514] 690 (LegSwapType) = 1[PAR_FOR_PAR], [515] 683 (NoLegStipulations) = 3\r\n[516] 688 (LegStipulationType) = tincidunt, [517] 689 (LegStipulationValue) = ipsum\r\n[518] 688 (LegStipulationType) = sit, [519] 689 (LegStipulationValue) = consectetur\r\n[520] 688 (LegStipulationType) = elit., [521] 689 (LegStipulationValue) = odio\r\n[522] 564 (LegPositionEffect) = blandit, [523] 565 (LegCoveredOrUncovered) = 61021\r\n[524] 539 (NoNestedPartyIDs) = 3, [525] 524 (NestedPartyID) = semper\r\n[526] 525 (NestedPartyIDSource) = bibendum, [527] 538 (NestedPartyRole) = 33332\r\n[528] 804 (NoNestedPartySubIDs) = 1, [529] 545 (NestedPartySubID) = lectus.\r\n[530] 805 (NestedPartySubIDType) = 78292, [531] 524 (NestedPartyID) = vel\r\n[532] 525 (NestedPartyIDSource) = magna., [533] 538 (NestedPartyRole) = 8563\r\n[534] 804 (NoNestedPartySubIDs) = 3, [535] 545 (NestedPartySubID) = et\r\n[536] 805 (NestedPartySubIDType) = 91784, [537] 545 (NestedPartySubID) = leo,\r\n[538] 805 (NestedPartySubIDType) = 69741, [539] 545 (NestedPartySubID) = iaculis\r\n[540] 805 (NestedPartySubIDType) = 88660, [541] 524 (NestedPartyID) = Nullam\r\n[542] 525 (NestedPartyIDSource) = lectus,, [543] 538 (NestedPartyRole) = 92219\r\n[544] 804 (NoNestedPartySubIDs) = 2, [545] 545 (NestedPartySubID) = eget\r\n[546] 805 (NestedPartySubIDType) = 61048, [547] 545 (NestedPartySubID) = vitae,\r\n[548] 805 (NestedPartySubIDType) = 82229, [549] 654 (LegRefID) = ac\r\n[550] 566 (LegPrice) = 87104, [551] 587 (LegSettlType) = Quisque\r\n[552] 588 (LegSettlDate) = 20180528-16:38:03.974, [553] 637 (LegLastPx) = 56182\r\n[554] 600 (LegSymbol) = tincidunt, [555] 601 (LegSymbolSfx) = Class\r\n[556] 602 (LegSecurityID) = taciti, [557] 603 (LegSecurityIDSource) = ad\r\n[558] 604 (NoLegSecurityAltID) = 3, [559] 605 (LegSecurityAltID) = torquent\r\n[560] 606 (LegSecurityAltIDSource) = conubia, [561] 605 (LegSecurityAltID) = per\r\n[562] 606 (LegSecurityAltIDSource) = himenaeos., [563] 605 (LegSecurityAltID) = eu\r\n[564] 606 (LegSecurityAltIDSource) = risus,, [565] 607 (LegProduct) = 36203\r\n[566] 608 (LegCFICode) = tincidunt, [567] 609 (LegSecurityType) = Morbi\r\n[568] 764 (LegSecuritySubType) = mi,, [569] 610 (LegMaturityMonthYear) = vel\r\n[570] 611 (LegMaturityDate) = 20180528-16:38:03.974, [571] 248 (LegCouponPaymentDate) = 20180528-16:38:03.974\r\n[572] 249 (LegIssueDate) = 20180528-16:38:03.974, [573] 250 (LegRepoCollateralSecurityType) = ac,\r\n[574] 251 (LegRepurchaseTerm) = 89976, [575] 252 (LegRepurchaseRate) = 16951\r\n[576] 253 (LegFactor) = 28912, [577] 257 (LegCreditRating) = non\r\n[578] 599 (LegInstrRegistry) = Pellentesque, [579] 596 (LegCountryOfIssue) = lorem\r\n[580] 597 (LegStateOrProvinceOfIssue) = consequat, [581] 598 (LegLocaleOfIssue) = sapien\r\n[582] 254 (LegRedemptionDate) = 20180528-16:38:03.974, [583] 612 (LegStrikePrice) = 97965\r\n[584] 942 (LegStrikeCurrency) = 62977, [585] 613 (LegOptAttribute) = tempor\r\n[586] 614 (LegContractMultiplier) = 4694, [587] 615 (LegCouponRate) = 20263\r\n[588] 616 (LegSecurityExchange) = a, [589] 617 (LegIssuer) = purus\r\n[590] 618 (EncodedLegIssuerLen) = 20, [591] 619 (EncodedLegIssuer) = Z2GKqFkA713xSVG2nqOx\r\n[592] 620 (LegSecurityDesc) = ut, [593] 621 (EncodedLegSecurityDescLen) = 20\r\n[594] 622 (EncodedLegSecurityDesc) = lyQLPxezPpjDNJnvSnCo, [595] 623 (LegRatioQty) = 24444\r\n[596] 624 (LegSide) = Proin, [597] 556 (LegCurrency) = 86893\r\n[598] 740 (LegPool) = justo, [599] 739 (LegDatedDate) = 20180528-16:38:03.974\r\n[600] 955 (LegContractSettlMonth) = ut, [601] 956 (LegInterestAccrualDate) = 20180528-16:38:03.974\r\n[602] 687 (LegQty) = 33589, [603] 690 (LegSwapType) = 4[RISK]\r\n[604] 683 (NoLegStipulations) = 2, [605] 688 (LegStipulationType) = nibh\r\n[606] 689 (LegStipulationValue) = at., [607] 688 (LegStipulationType) = fermentum\r\n[608] 689 (LegStipulationValue) = risus,, [609] 564 (LegPositionEffect) = placerat\r\n[610] 565 (LegCoveredOrUncovered) = 74238, [611] 539 (NoNestedPartyIDs) = 2\r\n[612] 524 (NestedPartyID) = luctus, [613] 525 (NestedPartyIDSource) = Vivamus\r\n[614] 538 (NestedPartyRole) = 41104, [615] 804 (NoNestedPartySubIDs) = 3\r\n[616] 545 (NestedPartySubID) = mi, [617] 805 (NestedPartySubIDType) = 26305\r\n[618] 545 (NestedPartySubID) = arcu, [619] 805 (NestedPartySubIDType) = 97537\r\n[620] 545 (NestedPartySubID) = rhoncus, [621] 805 (NestedPartySubIDType) = 71231\r\n[622] 524 (NestedPartyID) = amet, [623] 525 (NestedPartyIDSource) = sit\r\n[624] 538 (NestedPartyRole) = 66844, [625] 804 (NoNestedPartySubIDs) = 2\r\n[626] 545 (NestedPartySubID) = eleifend, [627] 805 (NestedPartySubIDType) = 8186\r\n[628] 545 (NestedPartySubID) = massa., [629] 805 (NestedPartySubIDType) = 82689\r\n[630] 654 (LegRefID) = metus, [631] 566 (LegPrice) = 6725\r\n[632] 587 (LegSettlType) = maximus, [633] 588 (LegSettlDate) = 20180528-16:38:03.974\r\n[634] 637 (LegLastPx) = 88665, [635] 797 (CopyMsgIndicator) = Y\r\n */\r\n\r\ntest('InstrmtLegExecGrp structure', () => {\r\n const instrmtLegExecGrp: SegmentDescription = structure.layout.InstrmtLegExecGrp\r\n expect(instrmtLegExecGrp).toBeTruthy()\r\n expect(instrmtLegExecGrp.type).toEqual(SegmentType.Component)\r\n expect(instrmtLegExecGrp.startPosition).toEqual(395)\r\n expect(instrmtLegExecGrp.startTag).toEqual(555)\r\n expect(instrmtLegExecGrp.endTag).toEqual(637)\r\n expect(instrmtLegExecGrp.endPosition).toEqual(634)\r\n expect(instrmtLegExecGrp.depth).toEqual(1)\r\n\r\n const noLegs: SegmentDescription = structure.layout.NoLegs\r\n expect(noLegs).toBeTruthy()\r\n expect(noLegs.type).toEqual(SegmentType.Group)\r\n expect(noLegs.startPosition).toEqual(395)\r\n expect(noLegs.startTag).toEqual(555)\r\n expect(noLegs.endTag).toEqual(637)\r\n expect(noLegs.endPosition).toEqual(634)\r\n expect(noLegs.depth).toEqual(2)\r\n expect(noLegs.delimiterTag).toEqual(600)\r\n expect(noLegs.delimiterPositions).toEqual([396, 465, 554])\r\n})\r\n\r\ntest('instrumentLeg structure', () => {\r\n const instrumentLeg: SegmentDescription[] = structure.layout.InstrumentLeg\r\n expect(instrumentLeg).toBeTruthy()\r\n expect(Array.isArray(instrumentLeg)).toEqual(true)\r\n expect(instrumentLeg.length).toEqual(3)\r\n\r\n expect(instrumentLeg[0].type).toEqual(SegmentType.Component)\r\n expect(instrumentLeg[0].depth).toEqual(3)\r\n expect(instrumentLeg[0].startTag).toEqual(600)\r\n expect(instrumentLeg[0].startPosition).toEqual(396)\r\n expect(instrumentLeg[0].endPosition).toEqual(443)\r\n expect(instrumentLeg[0].endTag).toEqual(956)\r\n\r\n expect(instrumentLeg[1].type).toEqual(SegmentType.Component)\r\n expect(instrumentLeg[1].depth).toEqual(3)\r\n expect(instrumentLeg[1].startTag).toEqual(600)\r\n expect(instrumentLeg[1].startPosition).toEqual(465)\r\n expect(instrumentLeg[1].endPosition).toEqual(512)\r\n expect(instrumentLeg[1].endTag).toEqual(956)\r\n\r\n expect(instrumentLeg[2].type).toEqual(SegmentType.Component)\r\n expect(instrumentLeg[2].depth).toEqual(3)\r\n expect(instrumentLeg[2].startTag).toEqual(600)\r\n expect(instrumentLeg[2].startPosition).toEqual(554)\r\n expect(instrumentLeg[2].endPosition).toEqual(601)\r\n expect(instrumentLeg[2].endTag).toEqual(956)\r\n})\r\n\r\ntest('LegSecAltIDGrp [0] structure', () => {\r\n const legSecAltIDGrp: SegmentDescription[] = structure.layout.LegSecAltIDGrp\r\n expect(legSecAltIDGrp).toBeTruthy()\r\n expect(Array.isArray(legSecAltIDGrp)).toEqual(true)\r\n expect(legSecAltIDGrp.length).toEqual(3)\r\n const index: number = 0\r\n expect(legSecAltIDGrp[index].type).toEqual(SegmentType.Component)\r\n expect(legSecAltIDGrp[index].depth).toEqual(4)\r\n expect(legSecAltIDGrp[index].startTag).toEqual(604)\r\n expect(legSecAltIDGrp[index].startPosition).toEqual(400)\r\n expect(legSecAltIDGrp[index].endPosition).toEqual(406)\r\n expect(legSecAltIDGrp[index].endTag).toEqual(606)\r\n\r\n const noLegSecurityAltID: SegmentDescription[] = structure.layout.NoLegSecurityAltID\r\n expect(noLegSecurityAltID).toBeTruthy()\r\n expect(Array.isArray(noLegSecurityAltID)).toEqual(true)\r\n expect(noLegSecurityAltID.length).toEqual(3)\r\n\r\n expect(noLegSecurityAltID[index].type).toEqual(SegmentType.Group)\r\n expect(noLegSecurityAltID[index].depth).toEqual(5)\r\n expect(noLegSecurityAltID[index].startTag).toEqual(604)\r\n expect(noLegSecurityAltID[index].startPosition).toEqual(400)\r\n expect(noLegSecurityAltID[index].endPosition).toEqual(406)\r\n expect(noLegSecurityAltID[index].endTag).toEqual(606)\r\n expect(noLegSecurityAltID[index].delimiterTag).toEqual(605)\r\n expect(noLegSecurityAltID[index].delimiterPositions).toEqual([401, 403, 405])\r\n})\r\n\r\ntest('LegSecAltIDGrp [1] structure', () => {\r\n const legSecAltIDGrp: SegmentDescription[] = structure.layout.LegSecAltIDGrp\r\n expect(legSecAltIDGrp).toBeTruthy()\r\n expect(Array.isArray(legSecAltIDGrp)).toEqual(true)\r\n expect(legSecAltIDGrp.length).toEqual(3)\r\n const index: number = 1\r\n expect(legSecAltIDGrp[index].type).toEqual(SegmentType.Component)\r\n expect(legSecAltIDGrp[index].depth).toEqual(4)\r\n expect(legSecAltIDGrp[index].startTag).toEqual(604)\r\n expect(legSecAltIDGrp[index].startPosition).toEqual(469)\r\n expect(legSecAltIDGrp[index].endPosition).toEqual(475)\r\n expect(legSecAltIDGrp[index].endTag).toEqual(606)\r\n\r\n const noLegSecurityAltID: SegmentDescription[] = structure.layout.NoLegSecurityAltID\r\n expect(noLegSecurityAltID).toBeTruthy()\r\n expect(Array.isArray(noLegSecurityAltID)).toEqual(true)\r\n expect(noLegSecurityAltID.length).toEqual(3)\r\n\r\n expect(noLegSecurityAltID[index].type).toEqual(SegmentType.Group)\r\n expect(noLegSecurityAltID[index].depth).toEqual(5)\r\n expect(noLegSecurityAltID[index].startTag).toEqual(604)\r\n expect(noLegSecurityAltID[index].startPosition).toEqual(469)\r\n expect(noLegSecurityAltID[index].endPosition).toEqual(475)\r\n expect(noLegSecurityAltID[index].endTag).toEqual(606)\r\n expect(noLegSecurityAltID[index].delimiterTag).toEqual(605)\r\n expect(noLegSecurityAltID[index].delimiterPositions).toEqual([470, 472, 474])\r\n})\r\n\r\ntest('LegSecAltIDGrp [2] structure', () => {\r\n const legSecAltIDGrp: SegmentDescription[] = structure.layout.LegSecAltIDGrp\r\n expect(legSecAltIDGrp).toBeTruthy()\r\n expect(Array.isArray(legSecAltIDGrp)).toEqual(true)\r\n expect(legSecAltIDGrp.length).toEqual(3)\r\n const index: number = 2\r\n expect(legSecAltIDGrp[index].type).toEqual(SegmentType.Component)\r\n expect(legSecAltIDGrp[index].depth).toEqual(4)\r\n expect(legSecAltIDGrp[index].startTag).toEqual(604)\r\n expect(legSecAltIDGrp[index].startPosition).toEqual(558)\r\n expect(legSecAltIDGrp[index].endPosition).toEqual(564)\r\n expect(legSecAltIDGrp[index].endTag).toEqual(606)\r\n\r\n const noLegSecurityAltID: SegmentDescription[] = structure.layout.NoLegSecurityAltID\r\n expect(noLegSecurityAltID).toBeTruthy()\r\n expect(Array.isArray(noLegSecurityAltID)).toEqual(true)\r\n expect(noLegSecurityAltID.length).toEqual(3)\r\n\r\n expect(noLegSecurityAltID[index].type).toEqual(SegmentType.Group)\r\n expect(noLegSecurityAltID[index].depth).toEqual(5)\r\n expect(noLegSecurityAltID[index].startTag).toEqual(604)\r\n expect(noLegSecurityAltID[index].startPosition).toEqual(558)\r\n expect(noLegSecurityAltID[index].endPosition).toEqual(564)\r\n expect(noLegSecurityAltID[index].endTag).toEqual(606)\r\n expect(noLegSecurityAltID[index].delimiterTag).toEqual(605)\r\n expect(noLegSecurityAltID[index].delimiterPositions).toEqual([559, 561, 563])\r\n})\r\n\r\ntest('expect one message view from one line fix file', () => {\r\n expect(views).toHaveLength(1)\r\n}, 1000)\r\n\r\ntest('can create object from view', () => {\r\n const erView: MsgView = views[0]\r\n const erAsObject: ILooseObject = erView.toObject()\r\n expect(erAsObject).toBeTruthy()\r\n}, 1000)\r\n\r\ntest('simple tag decoding', () => {\r\n const erView: MsgView = views[0]\r\n expect(erView.getString(35)).toEqual('8')\r\n expect(erView.getString('MsgType')).toEqual('8')\r\n expect(erView.getString(8)).toEqual('FIX4.4')\r\n expect(erView.getTyped(9)).toEqual(6545)\r\n expect(erView.getTyped('TotNumReports')).toEqual(19404)\r\n expect(erView.getTyped('StrikePrice')).toEqual(52639)\r\n}, 1000)\r\n\r\ntest('simple repeated tag decoding', () => {\r\n const erView: MsgView = views[0]\r\n expect(erView.getStrings('PartyID')).toEqual(['magna.', 'iaculis', 'vitae,'])\r\n}, 1000)\r\n\r\ntest('repeated group decoding of Parties', () => {\r\n const erView: MsgView = views[0]\r\n const partyView: MsgView = erView.getView('Parties')\r\n expect(partyView).toBeTruthy()\r\n const partyViewAsObject: ILooseObject = partyView.toObject()\r\n expect(partyViewAsObject).toBeTruthy()\r\n expect(partyViewAsObject.NoPartyIDs.length).toEqual(3)\r\n expect(partyViewAsObject.NoPartyIDs[0]).toEqual({\r\n PartyID: 'magna.',\r\n PartyIDSource: '9',\r\n PartyRole: 28,\r\n PtysSubGrp: {\r\n NoPartySubIDs: [\r\n {\r\n PartySubID: 'et',\r\n PartySubIDType: 22\r\n },\r\n {\r\n PartySubID: 'leo,',\r\n PartySubIDType: 10\r\n }\r\n ]\r\n }\r\n })\r\n const noParties: MsgView = partyView.getView('NoPartyIDs')\r\n expect(noParties).toBeTruthy()\r\n expect(noParties.groupCount()).toEqual(3)\r\n const np0View: MsgView = noParties.getGroupInstance(0)\r\n expect(np0View).toBeTruthy()\r\n expect(np0View.getString('PartyID')).toEqual('magna.')\r\n expect(np0View.getString('PartyIDSource')).toEqual('9')\r\n const np0ViewPtysSubGrp: MsgView = np0View.getView('PtysSubGrp')\r\n const np0ViewPtysSubGrpAsObject: ILooseObject = np0ViewPtysSubGrp.toObject()\r\n expect(np0ViewPtysSubGrpAsObject).toBeTruthy()\r\n expect(np0ViewPtysSubGrpAsObject).toEqual(partyViewAsObject.NoPartyIDs[0].PtysSubGrp)\r\n}, 1000)\r\n\r\ntest('instrument component decode', () => {\r\n const erView: MsgView = views[0]\r\n // check the instrument component\r\n const instrumentView: MsgView = erView.getView('Instrument')\r\n expect(instrumentView).toBeTruthy()\r\n expect(instrumentView.getString('Symbol')).toEqual('ac,')\r\n const secAltIDGrpAsObject: ILooseObject = instrumentView.getView('SecAltIDGrp').toObject()\r\n expect(secAltIDGrpAsObject).toBeTruthy()\r\n expect(secAltIDGrpAsObject.NoSecurityAltID.length).toEqual(2)\r\n}, 1000)\r\n\r\ntest('UndInstrmtGrp component decode', () => {\r\n const erView: MsgView = views[0]\r\n // check the instrument component\r\n const undInstrmtGrpView: MsgView = erView.getView('UndInstrmtGrp')\r\n expect(undInstrmtGrpView).toBeTruthy()\r\n const undInstrmtGrpViewAsObject: IUndInstrmtGrp = undInstrmtGrpView.toObject()\r\n expect(undInstrmtGrpViewAsObject).toBeTruthy()\r\n expect(undInstrmtGrpViewAsObject.NoUnderlyings.length).toEqual(2)\r\n const underlying0: IUnderlyingInstrument = undInstrmtGrpViewAsObject.NoUnderlyings[0].UnderlyingInstrument\r\n expect(underlying0).toBeTruthy()\r\n expect(underlying0.UnderlyingSymbol).toEqual('massa.')\r\n expect(underlying0.UndSecAltIDGrp).toEqual(\r\n {\r\n NoUnderlyingSecurityAltID: [\r\n {\r\n UnderlyingSecurityAltID: 'ornare',\r\n UnderlyingSecurityAltIDSource: 'magna.'\r\n },\r\n {\r\n UnderlyingSecurityAltID: 'non',\r\n UnderlyingSecurityAltIDSource: 'at'\r\n },\r\n {\r\n UnderlyingSecurityAltID: 'hendrerit',\r\n UnderlyingSecurityAltIDSource: 'Pellentesque'\r\n }]\r\n })\r\n const underlying1: ILooseObject = undInstrmtGrpViewAsObject.NoUnderlyings[1].UnderlyingInstrument\r\n expect(underlying1).toBeTruthy()\r\n expect(underlying1.UnderlyingSymbol).toEqual('erat')\r\n expect(underlying1.UndSecAltIDGrp).toEqual(\r\n {\r\n NoUnderlyingSecurityAltID: [\r\n {\r\n UnderlyingSecurityAltID: 'Quisque',\r\n UnderlyingSecurityAltIDSource: 'tortor'\r\n }\r\n ]\r\n })\r\n}, 1000)\r\n"]}
@@ -0,0 +1 @@
1
+ import 'reflect-metadata';
@@ -9,18 +9,20 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
+ require("reflect-metadata");
12
13
  const path = require("path");
13
- const buffer_1 = require("../buffer");
14
- const util_1 = require("../util");
15
- const root = path.join(__dirname, '../../data');
14
+ const setup_1 = require("../env/setup");
15
+ const root = path.join(__dirname, '../../../data');
16
16
  let definitions;
17
17
  let views;
18
18
  let expected;
19
+ let setup = null;
19
20
  beforeAll(() => __awaiter(void 0, void 0, void 0, function* () {
20
- const sessionDescription = require(path.join(root, 'session/test-initiator.json'));
21
+ setup = new setup_1.Setup('session/test-initiator.json', null);
22
+ yield setup.init();
23
+ definitions = setup.client.config.definitions;
21
24
  expected = require(path.join(root, 'examples/FIX.4.4/fix.json'));
22
- definitions = yield util_1.getDefinitions(sessionDescription.application.dictionary);
23
- views = yield util_1.replayFixFile(definitions, sessionDescription, path.join(root, 'examples/FIX.4.4/fix.txt'), buffer_1.AsciiChars.Pipe);
25
+ views = yield setup.client.getViews();
24
26
  }), 45000);
25
27
  test('expect 50 messages in log', () => {
26
28
  expect(views.length).toEqual(50);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fix-log-replay.test.js","sourceRoot":"","sources":["../../../src/test/ascii/fix-log-replay.test.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,4BAAyB;AAEzB,6BAA4B;AAI5B,wCAAoC;AAEpC,MAAM,IAAI,GAAW,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,eAAe,CAAC,CAAA;AAE1D,IAAI,WAA2B,CAAA;AAC/B,IAAI,KAAgB,CAAA;AACpB,IAAI,QAAsB,CAAA;AAC1B,IAAI,KAAK,GAAU,IAAI,CAAA;AAEvB,SAAS,CAAC,GAAS,EAAE;IACnB,KAAK,GAAG,IAAI,aAAK,CAAC,6BAA6B,EAAC,IAAI,CAAC,CAAA;IACrD,MAAM,KAAK,CAAC,IAAI,EAAE,CAAA;IAClB,WAAW,GAAG,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,WAAW,CAAA;IAC7C,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,2BAA2B,CAAC,CAAC,CAAA;IAChE,KAAK,GAAG,MAAM,KAAK,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAA;AACvC,CAAC,CAAA,EAAE,KAAK,CAAC,CAAA;AAET,IAAI,CAAC,2BAA2B,EAAE,GAAG,EAAE;IACrC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAA;AAClC,CAAC,CAAC,CAAA;AAEF,IAAI,CAAC,6CAA6C,EAAE,GAAG,EAAE;IACvD,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAe,EAAE,MAAe,EAAE,EAAE;QAC/D,MAAM,GAAG,GAAsB,WAAW,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;QAC3E,IAAI,GAAG,EAAE;YACP,IAAI,MAAM,GAAG,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;YAC3B,IAAI,CAAC,MAAM,EAAE;gBACX,MAAM,GAAG,CAAC,CAAA;aACX;iBAAM;gBACL,MAAM,EAAE,CAAA;aACT;YACD,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,MAAM,CAAA;SACxB;QACD,OAAO,CAAC,CAAA;IACV,CAAC,EAAE,EAAkB,CAAC,CAAA;IACtB,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAA;AAClC,CAAC,CAAC,CAAA","sourcesContent":["import 'reflect-metadata'\r\n\r\nimport * as path from 'path'\r\nimport { FixDefinitions, MessageDefinition } from '../../dictionary/definition'\r\nimport { MsgView } from '../../buffer'\r\nimport { ILooseObject } from '../../collections/collection'\r\nimport { Setup } from '../env/setup'\r\n\r\nconst root: string = path.join(__dirname, '../../../data')\r\n\r\nlet definitions: FixDefinitions\r\nlet views: MsgView[]\r\nlet expected: ILooseObject\r\nlet setup: Setup = null\r\n\r\nbeforeAll(async () => {\r\n setup = new Setup('session/test-initiator.json',null)\r\n await setup.init()\r\n definitions = setup.client.config.definitions\r\n expected = require(path.join(root, 'examples/FIX.4.4/fix.json'))\r\n views = await setup.client.getViews()\r\n}, 45000)\r\n\r\ntest('expect 50 messages in log', () => {\r\n expect(views.length).toEqual(50)\r\n})\r\n\r\ntest('expect 50 messages of specific types in log', () => {\r\n const layout = views.reduce((a: ILooseObject, latest: MsgView) => {\r\n const def: MessageDefinition = definitions.message.get(latest.segment.name)\r\n if (def) {\r\n let lookup = a[def.msgType]\r\n if (!lookup) {\r\n lookup = 1\r\n } else {\r\n lookup++\r\n }\r\n a[def.msgType] = lookup\r\n }\r\n return a\r\n }, {} as ILooseObject)\r\n expect(layout).toEqual(expected)\r\n})\r\n"]}
@@ -0,0 +1 @@
1
+ import 'reflect-metadata';
@@ -9,14 +9,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
+ require("reflect-metadata");
12
13
  const path = require("path");
13
- const dictionary_1 = require("../dictionary");
14
- const util_1 = require("../util");
15
- const root = path.join(__dirname, '../../data');
14
+ const util_1 = require("../../util");
15
+ const contained_1 = require("../../dictionary/contained");
16
+ const root = path.join(__dirname, '../../../data');
16
17
  let definitions;
17
18
  beforeAll(() => __awaiter(void 0, void 0, void 0, function* () {
18
19
  const sessionDescription = require(path.join(root, 'session/test-initiator.json'));
19
- definitions = yield util_1.getDefinitions(sessionDescription.application.dictionary);
20
+ definitions = yield new util_1.DefinitionFactory().getDefinitions(sessionDescription.application.dictionary);
20
21
  }), 45000);
21
22
  test('field check tag 1', () => {
22
23
  const simple = definitions.simple.get('1');
@@ -117,11 +118,11 @@ test('message check TestRequest', () => {
117
118
  expect(msg).toBeTruthy();
118
119
  expect(msg.msgType).toEqual('1');
119
120
  expect(msg.fields.length).toEqual(3);
120
- expect(msg.fields[0].type).toEqual(dictionary_1.ContainedFieldType.Component);
121
+ expect(msg.fields[0].type).toEqual(contained_1.ContainedFieldType.Component);
121
122
  expect(msg.fields[0].name).toEqual('StandardHeader');
122
- expect(msg.fields[1].type).toEqual(dictionary_1.ContainedFieldType.Simple);
123
+ expect(msg.fields[1].type).toEqual(contained_1.ContainedFieldType.Simple);
123
124
  expect(msg.fields[1].name).toEqual('TestReqID');
124
- expect(msg.fields[2].type).toEqual(dictionary_1.ContainedFieldType.Component);
125
+ expect(msg.fields[2].type).toEqual(contained_1.ContainedFieldType.Component);
125
126
  expect(msg.fields[2].name).toEqual('StandardTrailer');
126
127
  });
127
128
  //# sourceMappingURL=fix-repo-dict.test.js.map