@factset/frontgate-js-sdk 6.10.3 → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (314) hide show
  1. package/CHANGELOG.md +0 -14
  2. package/dist/lib/esnext/FrontgateClient.js +0 -3
  3. package/dist/lib/esnext/FrontgateClient.js.map +1 -1
  4. package/dist/lib/esnext/authentication/index.js +3 -4
  5. package/dist/lib/esnext/authentication/index.js.map +1 -1
  6. package/dist/lib/esnext/common/errors.js +0 -35
  7. package/dist/lib/esnext/common/errors.js.map +1 -1
  8. package/dist/lib/esnext/common/functions.js +0 -84
  9. package/dist/lib/esnext/common/functions.js.map +1 -1
  10. package/dist/lib/esnext/common/interfaces/index.js +0 -1
  11. package/dist/lib/esnext/common/interfaces/index.js.map +1 -1
  12. package/dist/lib/esnext/compat/index.js +0 -3
  13. package/dist/lib/esnext/compat/index.js.map +1 -1
  14. package/dist/lib/esnext/connection/index.js +19 -6
  15. package/dist/lib/esnext/connection/index.js.map +1 -1
  16. package/dist/lib/esnext/connection/util/functions.js +0 -56
  17. package/dist/lib/esnext/connection/util/functions.js.map +1 -1
  18. package/dist/lib/esnext/index.js +0 -1
  19. package/dist/lib/esnext/index.js.map +1 -1
  20. package/dist/lib/esnext/message/index.js +1 -1
  21. package/dist/lib/esnext/message/index.js.map +1 -1
  22. package/dist/lib/esnext/message/interfaces/index.js +0 -1
  23. package/dist/lib/esnext/message/interfaces/index.js.map +1 -1
  24. package/dist/lib/esnext/message/request/TransportLayerClientRequestHeader.js +1 -1
  25. package/dist/lib/esnext/message/request/TransportLayerClientRequestHeader.js.map +1 -1
  26. package/dist/lib/esnext/message/request/raw/example/CreateNotationSearchRequest.js +1 -1
  27. package/dist/lib/esnext/message/request/raw/example/CreateNotationSearchRequest.js.map +1 -1
  28. package/dist/lib/esnext/message/request/raw/index.js +0 -1
  29. package/dist/lib/esnext/message/request/raw/index.js.map +1 -1
  30. package/dist/lib/esnext/message/response/index.js +0 -5
  31. package/dist/lib/esnext/message/response/index.js.map +1 -1
  32. package/dist/lib/esnext/message/update/index.js +0 -1
  33. package/dist/lib/esnext/message/update/index.js.map +1 -1
  34. package/dist/lib/esnext/mixins/EndpointRequestMixin.js +1 -1
  35. package/dist/lib/esnext/mixins/EndpointRequestMixin.js.map +1 -1
  36. package/dist/lib/esnext/mixins/HTTPProxyRequestMixin.js.map +1 -1
  37. package/dist/lib/esnext/mixins/RemoteLoggerMixin.js +30 -0
  38. package/dist/lib/esnext/mixins/RemoteLoggerMixin.js.map +1 -0
  39. package/dist/lib/esnext/mixins/auth/AppAuthMixin.js +79 -11
  40. package/dist/lib/esnext/mixins/auth/AppAuthMixin.js.map +1 -1
  41. package/dist/lib/esnext/mixins/auth/SessionAuthMixin.js +76 -36
  42. package/dist/lib/esnext/mixins/auth/SessionAuthMixin.js.map +1 -1
  43. package/dist/lib/esnext/mixins/auth/UserCredentialAuthMixin.js +82 -12
  44. package/dist/lib/esnext/mixins/auth/UserCredentialAuthMixin.js.map +1 -1
  45. package/dist/lib/esnext/mixins/auth/UserPasswordAuthMixin.js +80 -13
  46. package/dist/lib/esnext/mixins/auth/UserPasswordAuthMixin.js.map +1 -1
  47. package/dist/lib/esnext/mixins/auth/index.js +0 -31
  48. package/dist/lib/esnext/mixins/auth/index.js.map +1 -1
  49. package/dist/lib/esnext/mixins/index.js +1 -0
  50. package/dist/lib/esnext/mixins/index.js.map +1 -1
  51. package/dist/lib/esnext/version.js +1 -1
  52. package/dist/lib/esnext/version.js.map +1 -1
  53. package/dist/lib/node/FrontgateClient.js +0 -3
  54. package/dist/lib/node/FrontgateClient.js.map +1 -1
  55. package/dist/lib/node/authentication/index.js +4 -4
  56. package/dist/lib/node/authentication/index.js.map +1 -1
  57. package/dist/lib/node/common/errors.js +1 -41
  58. package/dist/lib/node/common/errors.js.map +1 -1
  59. package/dist/lib/node/common/functions.js +0 -92
  60. package/dist/lib/node/common/functions.js.map +1 -1
  61. package/dist/lib/node/common/interfaces/index.js +0 -1
  62. package/dist/lib/node/common/interfaces/index.js.map +1 -1
  63. package/dist/lib/node/compat/index.js +0 -3
  64. package/dist/lib/node/compat/index.js.map +1 -1
  65. package/dist/lib/node/connection/index.js +20 -6
  66. package/dist/lib/node/connection/index.js.map +1 -1
  67. package/dist/lib/node/connection/util/functions.js +0 -63
  68. package/dist/lib/node/connection/util/functions.js.map +1 -1
  69. package/dist/lib/node/index.js +1 -3
  70. package/dist/lib/node/index.js.map +1 -1
  71. package/dist/lib/node/message/index.js +2 -1
  72. package/dist/lib/node/message/index.js.map +1 -1
  73. package/dist/lib/node/message/interfaces/index.js +0 -1
  74. package/dist/lib/node/message/interfaces/index.js.map +1 -1
  75. package/dist/lib/node/message/request/TransportLayerClientRequestHeader.js +3 -3
  76. package/dist/lib/node/message/request/TransportLayerClientRequestHeader.js.map +1 -1
  77. package/dist/lib/node/message/request/raw/example/CreateNotationSearchRequest.js +3 -3
  78. package/dist/lib/node/message/request/raw/example/CreateNotationSearchRequest.js.map +1 -1
  79. package/dist/lib/node/message/request/raw/index.js +0 -1
  80. package/dist/lib/node/message/request/raw/index.js.map +1 -1
  81. package/dist/lib/node/message/response/index.js +0 -5
  82. package/dist/lib/node/message/response/index.js.map +1 -1
  83. package/dist/lib/node/message/update/index.js +0 -1
  84. package/dist/lib/node/message/update/index.js.map +1 -1
  85. package/dist/lib/node/mixins/EndpointRequestMixin.js +2 -2
  86. package/dist/lib/node/mixins/EndpointRequestMixin.js.map +1 -1
  87. package/dist/lib/node/mixins/HTTPProxyRequestMixin.js.map +1 -1
  88. package/dist/lib/node/mixins/RemoteLoggerMixin.js +34 -0
  89. package/dist/lib/node/mixins/RemoteLoggerMixin.js.map +1 -0
  90. package/dist/lib/node/mixins/auth/AppAuthMixin.js +78 -10
  91. package/dist/lib/node/mixins/auth/AppAuthMixin.js.map +1 -1
  92. package/dist/lib/node/mixins/auth/SessionAuthMixin.js +75 -35
  93. package/dist/lib/node/mixins/auth/SessionAuthMixin.js.map +1 -1
  94. package/dist/lib/node/mixins/auth/UserCredentialAuthMixin.js +80 -10
  95. package/dist/lib/node/mixins/auth/UserCredentialAuthMixin.js.map +1 -1
  96. package/dist/lib/node/mixins/auth/UserPasswordAuthMixin.js +78 -11
  97. package/dist/lib/node/mixins/auth/UserPasswordAuthMixin.js.map +1 -1
  98. package/dist/lib/node/mixins/auth/index.js +0 -33
  99. package/dist/lib/node/mixins/auth/index.js.map +1 -1
  100. package/dist/lib/node/mixins/index.js +1 -0
  101. package/dist/lib/node/mixins/index.js.map +1 -1
  102. package/dist/lib/node/version.js +1 -1
  103. package/dist/lib/node/version.js.map +1 -1
  104. package/dist/lib/types/FrontgateClient.d.ts +0 -1
  105. package/dist/lib/types/authentication/index.d.ts +3 -4
  106. package/dist/lib/types/authentication/util/ChallengeResolver.d.ts +2 -1
  107. package/dist/lib/types/common/errors.d.ts +0 -21
  108. package/dist/lib/types/common/functions.d.ts +0 -8
  109. package/dist/lib/types/common/interfaces/index.d.ts +0 -1
  110. package/dist/lib/types/compat/index.d.ts +0 -3
  111. package/dist/lib/types/connection/index.d.ts +16 -6
  112. package/dist/lib/types/connection/util/functions.d.ts +0 -18
  113. package/dist/lib/types/index.d.ts +0 -1
  114. package/dist/lib/types/message/index.d.ts +1 -1
  115. package/dist/lib/types/message/interfaces/index.d.ts +0 -1
  116. package/dist/lib/types/message/request/TransportLayerClientRequestHeader.d.ts +1 -0
  117. package/dist/lib/types/message/request/raw/index.d.ts +0 -1
  118. package/dist/lib/types/message/response/index.d.ts +0 -5
  119. package/dist/lib/types/message/update/index.d.ts +0 -1
  120. package/dist/lib/types/mixins/AuthTokenRequestMixin.d.ts +2 -2
  121. package/dist/lib/types/mixins/EndpointRequestMixin.d.ts +2 -2
  122. package/dist/lib/types/mixins/HTTPProxyRequestMixin.d.ts +2 -4
  123. package/dist/lib/types/mixins/LoggerMixin.d.ts +2 -2
  124. package/dist/lib/types/mixins/MessageCompressorMixin.d.ts +2 -2
  125. package/dist/lib/types/mixins/OpenTelemetryMixin.d.ts +2 -2
  126. package/dist/lib/types/mixins/PingMixin.d.ts +2 -2
  127. package/dist/lib/types/mixins/ReconnectMixin.d.ts +2 -2
  128. package/dist/lib/types/mixins/RemoteLoggerMixin.d.ts +16 -0
  129. package/dist/lib/types/mixins/RequestMixin.d.ts +2 -2
  130. package/dist/lib/types/mixins/auth/AppAuthMixin.d.ts +16 -8
  131. package/dist/lib/types/mixins/auth/CookieTokenAuthMixin.d.ts +2 -2
  132. package/dist/lib/types/mixins/auth/FetchAuthenticationMixin.d.ts +2 -2
  133. package/dist/lib/types/mixins/auth/SessionAuthMixin.d.ts +11 -5
  134. package/dist/lib/types/mixins/auth/TokenAuthMixin.d.ts +2 -2
  135. package/dist/lib/types/mixins/auth/UserCredentialAuthMixin.d.ts +16 -8
  136. package/dist/lib/types/mixins/auth/UserPasswordAuthMixin.d.ts +16 -8
  137. package/dist/lib/types/mixins/auth/index.d.ts +0 -8
  138. package/dist/lib/types/mixins/connection/FrontgateWSMixin.d.ts +2 -2
  139. package/dist/lib/types/mixins/index.d.ts +2 -1
  140. package/dist/lib/types/mixins/subscription/EndpointSubscriptionMixin.d.ts +2 -2
  141. package/dist/lib/types/mixins/subscription/RawSubscriptionMixin.d.ts +2 -2
  142. package/dist/lib/umd/mdg2.client.min.umd.js +1 -12
  143. package/dist/lib/umd/mdg2.client.umd.js +3891 -7990
  144. package/package.json +7 -11
  145. package/dist/lib/esnext/Mdg2Client.js +0 -186
  146. package/dist/lib/esnext/Mdg2Client.js.map +0 -1
  147. package/dist/lib/esnext/authentication/AbstractAuthentication.js +0 -50
  148. package/dist/lib/esnext/authentication/AbstractAuthentication.js.map +0 -1
  149. package/dist/lib/esnext/authentication/AppAuthentication.js +0 -71
  150. package/dist/lib/esnext/authentication/AppAuthentication.js.map +0 -1
  151. package/dist/lib/esnext/authentication/AuthenticationInterface.js +0 -2
  152. package/dist/lib/esnext/authentication/AuthenticationInterface.js.map +0 -1
  153. package/dist/lib/esnext/authentication/CookieTokenAuthentication.js +0 -19
  154. package/dist/lib/esnext/authentication/CookieTokenAuthentication.js.map +0 -1
  155. package/dist/lib/esnext/authentication/TokenAuthentication.js +0 -43
  156. package/dist/lib/esnext/authentication/TokenAuthentication.js.map +0 -1
  157. package/dist/lib/esnext/authentication/UserCredentialAuthentication.js +0 -74
  158. package/dist/lib/esnext/authentication/UserCredentialAuthentication.js.map +0 -1
  159. package/dist/lib/esnext/authentication/UserPasswordAuthentication.js +0 -72
  160. package/dist/lib/esnext/authentication/UserPasswordAuthentication.js.map +0 -1
  161. package/dist/lib/esnext/common/Mdg2ClientOptions.js +0 -2
  162. package/dist/lib/esnext/common/Mdg2ClientOptions.js.map +0 -1
  163. package/dist/lib/esnext/common/constants.js +0 -11
  164. package/dist/lib/esnext/common/constants.js.map +0 -1
  165. package/dist/lib/esnext/common/interfaces/observe/ObserveOptions.js +0 -2
  166. package/dist/lib/esnext/common/interfaces/observe/ObserveOptions.js.map +0 -1
  167. package/dist/lib/esnext/connection/AbstractFrontgateConnection.js +0 -325
  168. package/dist/lib/esnext/connection/AbstractFrontgateConnection.js.map +0 -1
  169. package/dist/lib/esnext/connection/ConnectionInterface.js +0 -2
  170. package/dist/lib/esnext/connection/ConnectionInterface.js.map +0 -1
  171. package/dist/lib/esnext/connection/FrontgateWSConnection.js +0 -282
  172. package/dist/lib/esnext/connection/FrontgateWSConnection.js.map +0 -1
  173. package/dist/lib/esnext/connection/JobPromise.js +0 -3
  174. package/dist/lib/esnext/connection/JobPromise.js.map +0 -1
  175. package/dist/lib/esnext/connection/LatencyHandler.js +0 -2
  176. package/dist/lib/esnext/connection/LatencyHandler.js.map +0 -1
  177. package/dist/lib/esnext/connection/LatencyTracker.js +0 -48
  178. package/dist/lib/esnext/connection/LatencyTracker.js.map +0 -1
  179. package/dist/lib/esnext/connection/MessageProcessor.js +0 -2
  180. package/dist/lib/esnext/connection/MessageProcessor.js.map +0 -1
  181. package/dist/lib/esnext/connection/util/Encoding.js +0 -15
  182. package/dist/lib/esnext/connection/util/Encoding.js.map +0 -1
  183. package/dist/lib/esnext/core/RequestModule.js +0 -350
  184. package/dist/lib/esnext/core/RequestModule.js.map +0 -1
  185. package/dist/lib/esnext/core/SubscriptionModule.js +0 -105
  186. package/dist/lib/esnext/core/SubscriptionModule.js.map +0 -1
  187. package/dist/lib/esnext/core/subscription/EndpointHandler.js +0 -122
  188. package/dist/lib/esnext/core/subscription/EndpointHandler.js.map +0 -1
  189. package/dist/lib/esnext/core/subscription/SubjectManager.js +0 -40
  190. package/dist/lib/esnext/core/subscription/SubjectManager.js.map +0 -1
  191. package/dist/lib/esnext/message/MessageFactory.js +0 -37
  192. package/dist/lib/esnext/message/MessageFactory.js.map +0 -1
  193. package/dist/lib/esnext/message/guards.js +0 -22
  194. package/dist/lib/esnext/message/guards.js.map +0 -1
  195. package/dist/lib/esnext/message/interfaces/JobObservable.js +0 -2
  196. package/dist/lib/esnext/message/interfaces/JobObservable.js.map +0 -1
  197. package/dist/lib/esnext/message/request/raw/RawRequestFactory.js +0 -19
  198. package/dist/lib/esnext/message/request/raw/RawRequestFactory.js.map +0 -1
  199. package/dist/lib/esnext/message/response/AuthenticationByTokenResponse.js +0 -2
  200. package/dist/lib/esnext/message/response/AuthenticationByTokenResponse.js.map +0 -1
  201. package/dist/lib/esnext/message/response/CancelSubscriptionResponse.js +0 -4
  202. package/dist/lib/esnext/message/response/CancelSubscriptionResponse.js.map +0 -1
  203. package/dist/lib/esnext/message/response/LoadNotificationMessage.js +0 -2
  204. package/dist/lib/esnext/message/response/LoadNotificationMessage.js.map +0 -1
  205. package/dist/lib/esnext/message/response/PermissionDeniedResponse.js +0 -7
  206. package/dist/lib/esnext/message/response/PermissionDeniedResponse.js.map +0 -1
  207. package/dist/lib/esnext/message/response/RejectResponse.js +0 -10
  208. package/dist/lib/esnext/message/response/RejectResponse.js.map +0 -1
  209. package/dist/lib/esnext/message/update/SubscriptionLossMessage.js +0 -11
  210. package/dist/lib/esnext/message/update/SubscriptionLossMessage.js.map +0 -1
  211. package/dist/lib/esnext/util/TimeOutWrapper.js +0 -52
  212. package/dist/lib/esnext/util/TimeOutWrapper.js.map +0 -1
  213. package/dist/lib/node/Mdg2Client.js +0 -190
  214. package/dist/lib/node/Mdg2Client.js.map +0 -1
  215. package/dist/lib/node/authentication/AbstractAuthentication.js +0 -54
  216. package/dist/lib/node/authentication/AbstractAuthentication.js.map +0 -1
  217. package/dist/lib/node/authentication/AppAuthentication.js +0 -75
  218. package/dist/lib/node/authentication/AppAuthentication.js.map +0 -1
  219. package/dist/lib/node/authentication/AuthenticationInterface.js +0 -3
  220. package/dist/lib/node/authentication/AuthenticationInterface.js.map +0 -1
  221. package/dist/lib/node/authentication/CookieTokenAuthentication.js +0 -23
  222. package/dist/lib/node/authentication/CookieTokenAuthentication.js.map +0 -1
  223. package/dist/lib/node/authentication/TokenAuthentication.js +0 -47
  224. package/dist/lib/node/authentication/TokenAuthentication.js.map +0 -1
  225. package/dist/lib/node/authentication/UserCredentialAuthentication.js +0 -78
  226. package/dist/lib/node/authentication/UserCredentialAuthentication.js.map +0 -1
  227. package/dist/lib/node/authentication/UserPasswordAuthentication.js +0 -76
  228. package/dist/lib/node/authentication/UserPasswordAuthentication.js.map +0 -1
  229. package/dist/lib/node/common/Mdg2ClientOptions.js +0 -3
  230. package/dist/lib/node/common/Mdg2ClientOptions.js.map +0 -1
  231. package/dist/lib/node/common/constants.js +0 -14
  232. package/dist/lib/node/common/constants.js.map +0 -1
  233. package/dist/lib/node/common/interfaces/observe/ObserveOptions.js +0 -3
  234. package/dist/lib/node/common/interfaces/observe/ObserveOptions.js.map +0 -1
  235. package/dist/lib/node/connection/AbstractFrontgateConnection.js +0 -329
  236. package/dist/lib/node/connection/AbstractFrontgateConnection.js.map +0 -1
  237. package/dist/lib/node/connection/ConnectionInterface.js +0 -3
  238. package/dist/lib/node/connection/ConnectionInterface.js.map +0 -1
  239. package/dist/lib/node/connection/FrontgateWSConnection.js +0 -289
  240. package/dist/lib/node/connection/FrontgateWSConnection.js.map +0 -1
  241. package/dist/lib/node/connection/JobPromise.js +0 -7
  242. package/dist/lib/node/connection/JobPromise.js.map +0 -1
  243. package/dist/lib/node/connection/LatencyHandler.js +0 -3
  244. package/dist/lib/node/connection/LatencyHandler.js.map +0 -1
  245. package/dist/lib/node/connection/LatencyTracker.js +0 -52
  246. package/dist/lib/node/connection/LatencyTracker.js.map +0 -1
  247. package/dist/lib/node/connection/MessageProcessor.js +0 -3
  248. package/dist/lib/node/connection/MessageProcessor.js.map +0 -1
  249. package/dist/lib/node/connection/util/Encoding.js +0 -19
  250. package/dist/lib/node/connection/util/Encoding.js.map +0 -1
  251. package/dist/lib/node/core/RequestModule.js +0 -354
  252. package/dist/lib/node/core/RequestModule.js.map +0 -1
  253. package/dist/lib/node/core/SubscriptionModule.js +0 -109
  254. package/dist/lib/node/core/SubscriptionModule.js.map +0 -1
  255. package/dist/lib/node/core/subscription/EndpointHandler.js +0 -126
  256. package/dist/lib/node/core/subscription/EndpointHandler.js.map +0 -1
  257. package/dist/lib/node/core/subscription/SubjectManager.js +0 -44
  258. package/dist/lib/node/core/subscription/SubjectManager.js.map +0 -1
  259. package/dist/lib/node/message/MessageFactory.js +0 -74
  260. package/dist/lib/node/message/MessageFactory.js.map +0 -1
  261. package/dist/lib/node/message/guards.js +0 -31
  262. package/dist/lib/node/message/guards.js.map +0 -1
  263. package/dist/lib/node/message/interfaces/JobObservable.js +0 -3
  264. package/dist/lib/node/message/interfaces/JobObservable.js.map +0 -1
  265. package/dist/lib/node/message/request/raw/RawRequestFactory.js +0 -23
  266. package/dist/lib/node/message/request/raw/RawRequestFactory.js.map +0 -1
  267. package/dist/lib/node/message/response/AuthenticationByTokenResponse.js +0 -3
  268. package/dist/lib/node/message/response/AuthenticationByTokenResponse.js.map +0 -1
  269. package/dist/lib/node/message/response/CancelSubscriptionResponse.js +0 -8
  270. package/dist/lib/node/message/response/CancelSubscriptionResponse.js.map +0 -1
  271. package/dist/lib/node/message/response/LoadNotificationMessage.js +0 -3
  272. package/dist/lib/node/message/response/LoadNotificationMessage.js.map +0 -1
  273. package/dist/lib/node/message/response/PermissionDeniedResponse.js +0 -11
  274. package/dist/lib/node/message/response/PermissionDeniedResponse.js.map +0 -1
  275. package/dist/lib/node/message/response/RejectResponse.js +0 -14
  276. package/dist/lib/node/message/response/RejectResponse.js.map +0 -1
  277. package/dist/lib/node/message/update/SubscriptionLossMessage.js +0 -15
  278. package/dist/lib/node/message/update/SubscriptionLossMessage.js.map +0 -1
  279. package/dist/lib/node/util/TimeOutWrapper.js +0 -56
  280. package/dist/lib/node/util/TimeOutWrapper.js.map +0 -1
  281. package/dist/lib/types/Mdg2Client.d.ts +0 -52
  282. package/dist/lib/types/authentication/AbstractAuthentication.d.ts +0 -17
  283. package/dist/lib/types/authentication/AppAuthentication.d.ts +0 -12
  284. package/dist/lib/types/authentication/AuthenticationInterface.d.ts +0 -9
  285. package/dist/lib/types/authentication/CookieTokenAuthentication.d.ts +0 -6
  286. package/dist/lib/types/authentication/TokenAuthentication.d.ts +0 -14
  287. package/dist/lib/types/authentication/UserCredentialAuthentication.d.ts +0 -13
  288. package/dist/lib/types/authentication/UserPasswordAuthentication.d.ts +0 -14
  289. package/dist/lib/types/common/Mdg2ClientOptions.d.ts +0 -12
  290. package/dist/lib/types/common/constants.d.ts +0 -11
  291. package/dist/lib/types/common/interfaces/observe/ObserveOptions.d.ts +0 -5
  292. package/dist/lib/types/connection/AbstractFrontgateConnection.d.ts +0 -116
  293. package/dist/lib/types/connection/ConnectionInterface.d.ts +0 -53
  294. package/dist/lib/types/connection/FrontgateWSConnection.d.ts +0 -23
  295. package/dist/lib/types/connection/JobPromise.d.ts +0 -3
  296. package/dist/lib/types/connection/LatencyHandler.d.ts +0 -1
  297. package/dist/lib/types/connection/LatencyTracker.d.ts +0 -13
  298. package/dist/lib/types/connection/MessageProcessor.d.ts +0 -2
  299. package/dist/lib/types/connection/util/Encoding.d.ts +0 -9
  300. package/dist/lib/types/core/RequestModule.d.ts +0 -78
  301. package/dist/lib/types/core/SubscriptionModule.d.ts +0 -24
  302. package/dist/lib/types/core/subscription/EndpointHandler.d.ts +0 -37
  303. package/dist/lib/types/core/subscription/SubjectManager.d.ts +0 -21
  304. package/dist/lib/types/message/MessageFactory.d.ts +0 -29
  305. package/dist/lib/types/message/guards.d.ts +0 -11
  306. package/dist/lib/types/message/interfaces/JobObservable.d.ts +0 -4
  307. package/dist/lib/types/message/request/raw/RawRequestFactory.d.ts +0 -4
  308. package/dist/lib/types/message/response/AuthenticationByTokenResponse.d.ts +0 -20
  309. package/dist/lib/types/message/response/CancelSubscriptionResponse.d.ts +0 -3
  310. package/dist/lib/types/message/response/LoadNotificationMessage.d.ts +0 -8
  311. package/dist/lib/types/message/response/PermissionDeniedResponse.d.ts +0 -4
  312. package/dist/lib/types/message/response/RejectResponse.d.ts +0 -5
  313. package/dist/lib/types/message/update/SubscriptionLossMessage.d.ts +0 -17
  314. package/dist/lib/types/util/TimeOutWrapper.d.ts +0 -12
@@ -13,29 +13,96 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
14
14
  exports.userPasswordAuth = void 0;
15
15
  const _1 = require("../.");
16
- const compat_1 = require("../../compat");
16
+ const connection_1 = require("../../connection");
17
17
  const authentication_1 = require("../../authentication");
18
+ const compat_1 = require("../../compat");
19
+ const logger_1 = require("../../logger");
20
+ const crypto_1 = require("crypto");
18
21
  const userPasswordAuth = (idApplication, username, password, deploymentStage) => {
19
22
  const mixinUserPasswordAuth = (Base) => {
20
- var _auth, _a;
23
+ var _instances, _sharedSecret, _clientSecret, _createAuthenticationRequest, _createConfigurationRequest, _createTransportLayerRequestHeaderConfigurationRequest, _submit, _a;
21
24
  return _a = class extends Base {
22
25
  constructor(...args) {
23
26
  super(...args);
24
- _auth.set(this, void 0);
25
- __classPrivateFieldSet(this, _auth, new compat_1.UserPasswordAuthentication(idApplication, username, password), "f");
27
+ _instances.add(this);
28
+ _sharedSecret.set(this, void 0);
29
+ _clientSecret.set(this, void 0);
30
+ const plainSharedSecret = compat_1.SecretGenerator.generateSharedSecret(username, password);
31
+ const plainClientSecret = compat_1.SecretGenerator.generateClientSecret(username, password);
32
+ if (plainSharedSecret && plainClientSecret) {
33
+ __classPrivateFieldSet(this, _sharedSecret, Buffer.from(plainSharedSecret), "f");
34
+ __classPrivateFieldSet(this, _clientSecret, Buffer.from(plainClientSecret), "f");
35
+ }
26
36
  this.hooks.hook('frontgateConnection:connected', async (conf) => {
27
37
  void this.hooks.callHook('frontgateConnection:setIdApp', idApplication);
28
- void this.hooks.callHook('frontgateConnection:setIdUser', authentication_1.ID_USER_NONE);
29
- await __classPrivateFieldGet(this, _auth, "f").authenticate((0, _1.createConnectionInterface)({
30
- payload_content: conf.payloadContent,
31
- deployment_stage: deploymentStage,
32
- maximum_idle_interval: conf.maximumIdleInterval,
33
- }, this));
38
+ void this.hooks.callHook('frontgateConnection:setIdUser', authentication_1.ID_USER_AUTHENTICATED);
39
+ const authResponse = await __classPrivateFieldGet(this, _instances, "m", _submit).call(this, __classPrivateFieldGet(this, _instances, "m", _createAuthenticationRequest).call(this).toJson());
40
+ await __classPrivateFieldGet(this, _instances, "m", _submit).call(this, __classPrivateFieldGet(this, _instances, "m", _createConfigurationRequest).call(this, authResponse, conf).toJson());
41
+ await __classPrivateFieldGet(this, _instances, "m", _submit).call(this, __classPrivateFieldGet(this, _instances, "m", _createTransportLayerRequestHeaderConfigurationRequest).call(this));
34
42
  await this.hooks.callHook('frontgateConnection:authenticated');
35
43
  });
36
44
  }
37
45
  },
38
- _auth = new WeakMap(),
46
+ _sharedSecret = new WeakMap(),
47
+ _clientSecret = new WeakMap(),
48
+ _instances = new WeakSet(),
49
+ _createAuthenticationRequest = function _createAuthenticationRequest() {
50
+ const salt = (0, crypto_1.randomBytes)(16);
51
+ const options = {
52
+ idApplication,
53
+ username,
54
+ salt: (0, connection_1.getBytesFromBuffer)(salt),
55
+ challenge: (0, connection_1.getBytesFromBuffer)((0, crypto_1.randomBytes)(16)),
56
+ encryptedSecrets: [{ encrypted_secret: compat_1.SecretGenerator.createEncryptedSecret(salt, __classPrivateFieldGet(this, _sharedSecret, "f"), __classPrivateFieldGet(this, _clientSecret, "f")) }],
57
+ };
58
+ return new compat_1.AuthenticationRequest(options);
59
+ },
60
+ _createConfigurationRequest = function _createConfigurationRequest(msg, conf) {
61
+ const expectedMessage = 'Foundation::AuthenticationResponse';
62
+ if (msg.Message !== expectedMessage) {
63
+ throw new Error(`Expected message "${expectedMessage}" but received "${msg.Message}"`);
64
+ }
65
+ if (msg.id_user === authentication_1.ID_USER_AUTHENTICATED) {
66
+ void this.hooks.callHook('frontgateConnection:setIdApp', authentication_1.ID_APP_AUTHENTICATED);
67
+ void this.hooks.callHook('frontgateConnection:setIdUser', authentication_1.ID_USER_AUTHENTICATED);
68
+ }
69
+ const { challenge } = msg.challenge;
70
+ const options = {
71
+ shared_secret: __classPrivateFieldGet(this, _sharedSecret, "f"),
72
+ payload_content: conf.payloadContent,
73
+ deployment_stage: deploymentStage,
74
+ maximum_idle_interval: conf.maximumIdleInterval,
75
+ };
76
+ return new compat_1.ConfigurationRequest(challenge, options);
77
+ },
78
+ _createTransportLayerRequestHeaderConfigurationRequest = function _createTransportLayerRequestHeaderConfigurationRequest() {
79
+ return {
80
+ Message: 'TransportLayerClientConfigurationRequest',
81
+ Version: 1,
82
+ flags: 0,
83
+ };
84
+ },
85
+ _submit = async function _submit(message) {
86
+ this.log(logger_1.LogLevel.INFO, 'Sending message', message);
87
+ const msg = {
88
+ message,
89
+ callbackType: 'response',
90
+ callbackId: message.Message.replace('Request', 'Response'),
91
+ };
92
+ await this.hooks.callHook('frontgateConnection:sendMessage', msg);
93
+ let timeout;
94
+ return new Promise((resolve, reject) => {
95
+ const unsubMessage = this.hooks.hookOnce(`frontgateConnection:response:${msg.callbackId}`, (response) => {
96
+ clearTimeout(timeout);
97
+ this.log(logger_1.LogLevel.INFO, 'Received response', response);
98
+ resolve(response);
99
+ });
100
+ timeout = setTimeout(() => {
101
+ unsubMessage();
102
+ reject(new Error('Authentication message timeout'));
103
+ }, 3000);
104
+ });
105
+ },
39
106
  _a;
40
107
  };
41
108
  return (0, _1.createExtendedMixinFactory)(mixinUserPasswordAuth, {
@@ -1 +1 @@
1
- {"version":3,"file":"UserPasswordAuthMixin.js","sourceRoot":"","sources":["../../../../../src/mixins/auth/UserPasswordAuthMixin.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,2BAOc;AAGd,yCAAwD;AACxD,yDAAkD;AAI3C,MAAM,gBAAgB,GAAG,CAAC,aAAqB,EAAE,QAAgB,EAAE,QAAgB,EAAE,eAAgC,EAAE,EAAE;IAC9H,MAAM,qBAAqB,GAAG,CAA+H,IAAO,EAAE,EAAE;;QACtK,YAAO,KAAM,SAAQ,IAAI;gBAEvB,YAAY,GAAG,IAAW;oBACxB,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;oBAFR,wBAAkC;oBAGzC,uBAAA,IAAI,SAAS,IAAI,mCAA0B,CAAC,aAAa,EAAE,QAAQ,EAAE,QAAQ,CAAC,MAAA,CAAC;oBAE/E,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,+BAA+B,EAAE,KAAK,EAAE,IAAuC,EAAE,EAAE;wBACjG,KAAK,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,8BAA8B,EAAE,aAAa,CAAC,CAAC;wBACxE,KAAK,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,+BAA+B,EAAE,6BAAY,CAAC,CAAC;wBACxE,MAAM,uBAAA,IAAI,aAAM,CAAC,YAAY,CAC3B,IAAA,4BAAyB,EACvB;4BACE,eAAe,EAAE,IAAI,CAAC,cAAc;4BACpC,gBAAgB,EAAE,eAAe;4BACjC,qBAAqB,EAAE,IAAI,CAAC,mBAAmB;yBAChD,EACD,IAAI,CACL,CACF,CAAC;wBACF,MAAM,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,mCAAmC,CAAC,CAAC;oBACjE,CAAC,CAAC,CAAC;gBACL,CAAC;aACF;;eAAC;IACJ,CAAC,CAAC;IAEF,OAAO,IAAA,6BAA0B,EAAC,qBAAqB,EAAE;QACvD,WAAW,EAAE,kBAAkB;QAC/B,aAAa,EAAE,CAAC,MAAM,CAAC;QACvB,qBAAqB,EAAE,CAAC,MAAM,CAAC;KAChC,CAAC,CAAC;AACL,CAAC,CAAC;AAhCW,QAAA,gBAAgB,oBAgC3B"}
1
+ {"version":3,"file":"UserPasswordAuthMixin.js","sourceRoot":"","sources":["../../../../../src/mixins/auth/UserPasswordAuthMixin.ts"],"names":[],"mappings":"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"}
@@ -14,40 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.createConnectionInterface = void 0;
18
- const logger_1 = require("../../logger");
19
17
  __exportStar(require("./CookieTokenAuthMixin"), exports);
20
18
  __exportStar(require("./TokenAuthMixin"), exports);
21
19
  __exportStar(require("./FetchAuthenticationMixin"), exports);
22
- const createConnectionInterface = (options, base) => {
23
- return {
24
- options,
25
- submit: async (message) => {
26
- base.log(logger_1.LogLevel.INFO, 'Sending message', message);
27
- const msg = {
28
- message,
29
- callbackType: 'response',
30
- callbackId: message.Message.replace('Request', 'Response'),
31
- };
32
- await base.hooks.callHook('frontgateConnection:sendMessage', msg);
33
- let timeout;
34
- return new Promise((resolve, reject) => {
35
- const unsubMessage = base.hooks.hookOnce(`frontgateConnection:response:${msg.callbackId}`, (response) => {
36
- clearTimeout(timeout);
37
- base.log(logger_1.LogLevel.INFO, 'Received response', response);
38
- resolve(response);
39
- });
40
- timeout = setTimeout(() => {
41
- unsubMessage();
42
- reject(new Error('Authentication message timeout'));
43
- }, 3000);
44
- });
45
- },
46
- setPeerInfo: (peerInfo) => {
47
- base.log(logger_1.LogLevel.INFO, 'Peer info:', peerInfo);
48
- },
49
- auth: {},
50
- };
51
- };
52
- exports.createConnectionInterface = createConnectionInterface;
53
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/mixins/auth/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAGA,yCAAsC;AAGtC,yDAAuC;AACvC,mDAAiC;AACjC,6DAA2C;AAUpC,MAAM,yBAAyB,GAAG,CACvC,OAIC,EACD,IAAgG,EAChG,EAAE;IACF,OAAO;QACL,OAAO;QACP,MAAM,EAAE,KAAK,EAAE,OAAmB,EAAE,EAAE;YACpC,IAAI,CAAC,GAAG,CAAC,iBAAQ,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,CAAC;YACpD,MAAM,GAAG,GAAqB;gBAC5B,OAAO;gBACP,YAAY,EAAE,UAAU;gBACxB,UAAU,EAAE,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,SAAS,EAAE,UAAU,CAAC;aAC3D,CAAC;YACF,MAAM,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,iCAAiC,EAAE,GAAG,CAAC,CAAC;YAElE,IAAI,OAAqD,CAAC;YAC1D,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;gBACrC,MAAM,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,gCAAgC,GAAG,CAAC,UAAU,EAAE,EAAE,CAAC,QAAoB,EAAE,EAAE;oBAClH,YAAY,CAAC,OAAO,CAAC,CAAC;oBACtB,IAAI,CAAC,GAAG,CAAC,iBAAQ,CAAC,IAAI,EAAE,mBAAmB,EAAE,QAAQ,CAAC,CAAC;oBACvD,OAAO,CAAC,QAAQ,CAAC,CAAC;gBACpB,CAAC,CAAC,CAAC;gBACH,OAAO,GAAG,UAAU,CAAC,GAAG,EAAE;oBACxB,YAAY,EAAE,CAAC;oBACf,MAAM,CAAC,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAC,CAAC;gBACtD,CAAC,EAAE,IAAI,CAAC,CAAC;YACX,CAAC,CAAC,CAAC;QACL,CAAC;QACD,WAAW,EAAE,CAAC,QAAkB,EAAE,EAAE;YAClC,IAAI,CAAC,GAAG,CAAC,iBAAQ,CAAC,IAAI,EAAE,YAAY,EAAE,QAAQ,CAAC,CAAC;QAClD,CAAC;QAGD,IAAI,EAAE,EAAE;KACyB,CAAC;AACtC,CAAC,CAAC;AAvCW,QAAA,yBAAyB,6BAuCpC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/mixins/auth/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,mDAAiC;AACjC,6DAA2C"}
@@ -27,6 +27,7 @@ __exportStar(require("./ReconnectMixin"), exports);
27
27
  __exportStar(require("./OpenTelemetryMixin"), exports);
28
28
  __exportStar(require("./HTTPProxyRequestMixin"), exports);
29
29
  __exportStar(require("./PingMixin"), exports);
30
+ __exportStar(require("./RemoteLoggerMixin"), exports);
30
31
  const createExtendedMixinFactory = (mixinFactory, options) => {
31
32
  const extendedMixinFactory = mixinFactory;
32
33
  extendedMixinFactory.featureName = options.featureName;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/mixins/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,yDAAuC;AACvC,+CAA6B;AAC7B,gDAA8B;AAC9B,2DAAyC;AACzC,iDAA+B;AAC/B,iDAA+B;AAC/B,yCAAuB;AACvB,mDAAiC;AACjC,uDAAqC;AACrC,0DAAwC;AACxC,8CAA4B;AA6CrB,MAAM,0BAA0B,GAAG,CAAI,YAAe,EAAE,OAAqC,EAAoC,EAAE;IACxI,MAAM,oBAAoB,GAAG,YAAgD,CAAC;IAC9E,oBAAoB,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;IACvD,oBAAoB,CAAC,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC;IAC3D,oBAAoB,CAAC,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,CAAC;IACjE,oBAAoB,CAAC,qBAAqB,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAC3E,OAAO,oBAAoB,CAAC;AAC9B,CAAC,CAAC;AAPW,QAAA,0BAA0B,8BAOrC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/mixins/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,yDAAuC;AACvC,+CAA6B;AAC7B,gDAA8B;AAC9B,2DAAyC;AACzC,iDAA+B;AAC/B,iDAA+B;AAC/B,yCAAuB;AACvB,mDAAiC;AACjC,uDAAqC;AACrC,0DAAwC;AACxC,8CAA4B;AAC5B,sDAAoC;AA8C7B,MAAM,0BAA0B,GAAG,CAAI,YAAe,EAAE,OAAqC,EAAoC,EAAE;IACxI,MAAM,oBAAoB,GAAG,YAAgD,CAAC;IAC9E,oBAAoB,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;IACvD,oBAAoB,CAAC,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC;IAC3D,oBAAoB,CAAC,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,CAAC;IACjE,oBAAoB,CAAC,qBAAqB,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAC3E,OAAO,oBAAoB,CAAC;AAC9B,CAAC,CAAC;AAPW,QAAA,0BAA0B,8BAOrC"}
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PACKAGE_JSON = void 0;
4
- exports.PACKAGE_JSON = { version: '6.10.3', package: '@factset/frontgate-js-sdk' };
4
+ exports.PACKAGE_JSON = { version: '7.0.0', package: '@factset/frontgate-js-sdk' };
5
5
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../../../src/version.ts"],"names":[],"mappings":";;;AACa,QAAA,YAAY,GAAG,EAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,2BAA2B,EAAC,CAAC"}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../../src/version.ts"],"names":[],"mappings":";;;AACa,QAAA,YAAY,GAAG,EAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,2BAA2B,EAAC,CAAC"}
@@ -19,7 +19,6 @@ export declare class FrontgateClient<hookable extends DefaultFrontgateClientHook
19
19
  logger: LoggerInterface | undefined;
20
20
  hooks: Hookable<hookable>;
21
21
  get defaultTimeoutInMs(): number;
22
- set defaultTimeoutInMs(value: number);
23
22
  constructor(conf?: Partial<FrontgateClientConfig>);
24
23
  log(level: LogLevel, ...args: unknown[]): void;
25
24
  }
@@ -1,5 +1,4 @@
1
- export * from './AbstractAuthentication';
2
- export * from './AuthenticationInterface';
3
- export * from './CookieTokenAuthentication';
4
1
  export * from './CookieTokenAuthenticationFactors';
5
- export * from './TokenAuthentication';
2
+ export declare const ID_APP_AUTHENTICATED = -2;
3
+ export declare const ID_USER_AUTHENTICATED = -2;
4
+ export declare const ID_USER_NONE = -1;
@@ -1,5 +1,5 @@
1
1
  import bigInt from 'big-integer';
2
- export interface SaltedHash {
2
+ interface SaltedHash {
3
3
  salt: number[];
4
4
  hash1: bigInt.BigInteger;
5
5
  hash2: bigInt.BigInteger;
@@ -13,3 +13,4 @@ export declare class ChallengeResolver {
13
13
  private static createSaltedHash;
14
14
  private static hexToInt64LE;
15
15
  }
16
+ export {};
@@ -1,30 +1,9 @@
1
- import type { ErrorResponse } from '../message';
2
1
  export interface CustomError {
3
2
  message: string;
4
3
  name: string;
5
4
  code: number;
6
5
  }
7
- export declare class ServiceUnavailableError extends Error implements CustomError {
8
- code: number;
9
- constructor(message?: string, error?: Error);
10
- }
11
- export declare class InternalServerError extends Error implements CustomError {
12
- code: number;
13
- constructor(message?: string, error?: Error);
14
- }
15
6
  export declare class TimeoutError extends Error implements CustomError {
16
7
  code: number;
17
8
  constructor(message?: string, error?: Error);
18
9
  }
19
- export declare class UnauthorizedError extends Error implements CustomError {
20
- code: number;
21
- constructor(message?: string, error?: Error);
22
- }
23
- export declare class BadRequestError extends Error implements CustomError {
24
- code: number;
25
- constructor(message?: string, error?: Error);
26
- }
27
- export declare class ResponseError extends Error {
28
- response: ErrorResponse;
29
- constructor(message: string, response: ErrorResponse);
30
- }
@@ -1,11 +1,3 @@
1
- import type { ErrorResponse, PermissionDeniedResponse } from '../message';
2
1
  export declare function isObject(obj: unknown): obj is object;
3
2
  export declare function deepmerge(...args: unknown[]): object;
4
- export declare function provideAsArray<T>(subject: T | T[]): T[];
5
- export declare function unsignedArrayToBase64(data: number[] | Uint8Array): string;
6
3
  export declare function toUrlBase64(strInBase64: string): string;
7
- export declare function isBase64Url(tokenStr: string): boolean;
8
- export declare function base64UrlToBase64(base64Url: string): string;
9
- export declare const errorHandler: (response: ErrorResponse | PermissionDeniedResponse) => Error;
10
- export declare const delay: (delayInMs: number) => Promise<unknown>;
11
- export declare const isNodeEnvironment: () => boolean;
@@ -1,4 +1,3 @@
1
- export * from './observe/ObserveOptions';
2
1
  export * from './result/RequestResult';
3
2
  export * from './result/HighLevelRequestResult';
4
3
  export * from './result/HTTPProxyRequestResult';
@@ -1,7 +1,4 @@
1
1
  export * from '../authentication/util';
2
- export * from '../authentication/AppAuthentication';
3
- export * from '../authentication/UserCredentialAuthentication';
4
- export * from '../authentication/UserPasswordAuthentication';
5
2
  export * from '../message/request/AuthenticationRequest';
6
3
  export * from '../message/request/ConfigurationRequest';
7
4
  export * from '../mixins/auth/AppAuthMixin';
@@ -1,7 +1,17 @@
1
- export * from './ConnectionInterface';
2
- export * from './AbstractFrontgateConnection';
3
- export * from './FrontgateWSConnection';
4
- export * from './util/Encoding';
5
1
  export * from './util/functions';
6
- export * from './LatencyHandler';
7
- export * from './LatencyTracker';
2
+ export declare enum ConnectionState {
3
+ DISCONNECTED = 0,
4
+ CONNECTING = 1,
5
+ AUTHENTICATED = 2,
6
+ RECONNECTING = 3
7
+ }
8
+ export declare enum DeploymentStage {
9
+ production = 40,
10
+ preproduction = 35,
11
+ show = 30,
12
+ testing = 20
13
+ }
14
+ export declare enum DefaultHosts {
15
+ production = "frontgate-eu.factsetdigitalsolutions.com",
16
+ show = "frontgate-eu.show.factsetdigitalsolutions.com"
17
+ }
@@ -1,19 +1 @@
1
- import type { ConnectionInterface } from '../ConnectionInterface';
2
- export declare enum FetchConnectionConfigurationResponseHeaders {
3
- FRONTGATE_HOST = "frontgate-host",
4
- FRONTGATE_PATH_PREFIX = "frontgate-path-prefix",
5
- FRONTGATE_SPLIT_AUTHENTICATION_TOKEN_SECOND_FACTOR = "frontgate-split-authentication-token-second-factor",
6
- FRONTGATE_AUTHENTICATION_TYPE = "frontgate-authentication-type",
7
- FRONTGATE_AUTHENTICATION_TOKEN = "frontgate-authentication-token",
8
- FRONTGATE_WEBSOCKET_PROTOCOL = "frontgate-websocket-protocol"
9
- }
10
1
  export declare function getBytesFromBuffer(buf?: Buffer): number[];
11
- export declare function parseConnectionConfiguration(headers: Record<string, string>): Record<string, string>;
12
- export declare function objectFromFetchHeaders(providedHeaders: Headers): Record<string, string>;
13
- export declare function fetchConnectionConfiguration(input: RequestInfo, init?: RequestInit): Promise<{
14
- config: Record<string, string>;
15
- response: Response;
16
- }>;
17
- export declare function createConnection(options?: Record<string, string>, input?: RequestInfo, init?: RequestInit): ConnectionInterface;
18
- export declare function setConnectionConfiguration({ frontgateHost, frontgateWebsocketProtocol }: Record<string, string>): void;
19
- export declare function getConnectionConfiguration(): Record<string, string> | null;
@@ -5,6 +5,5 @@ export * from './common/interfaces';
5
5
  export * from './common/types';
6
6
  export * from './logger';
7
7
  export * from './mixins';
8
- export { Mdg2Client } from './Mdg2Client';
9
8
  export { FrontgateClientBuilder, FrontgateClient, type DefaultFrontgateClientHooks } from './FrontgateClient';
10
9
  export { useTimeout } from './util/functions';
@@ -1,6 +1,6 @@
1
- export * from './guards';
2
1
  export * from './types';
3
2
  export * from './interfaces';
4
3
  export * from './request';
5
4
  export * from './response';
6
5
  export * from './update';
6
+ export declare const FLAG_HAS_NEXT_CHUNK = 8;
@@ -1,4 +1,3 @@
1
1
  export * from './HighLevelRequestMethod';
2
2
  export * from './HighLevelRequestOptions';
3
3
  export * from './HTTPProxyRequestOptions';
4
- export * from './JobObservable';
@@ -1,6 +1,7 @@
1
1
  import type { Quality } from '../../common/types';
2
2
  import type { TransportLayerClientRequestHeaderFlag } from '../types';
3
3
  import { type SpanContext } from '@opentelemetry/api';
4
+ export declare const DEFAULT_TIMEOUT_IN_MS = 6000;
4
5
  export interface PtlTransportLayerClientRequestHeader {
5
6
  dataset: {
6
7
  id_dataset: number;
@@ -1,2 +1 @@
1
- export * from './RawRequestFactory';
2
1
  export * from './RawRequest';
@@ -1,13 +1,8 @@
1
1
  export * from './AuthenticationTokenResponse';
2
- export * from './AuthenticationByTokenResponse';
3
- export * from './CancelSubscriptionResponse';
4
2
  export * from './ConfigurationResponse';
5
3
  export * from './DisconnectionMessage';
6
4
  export * from './ErrorResponse';
7
5
  export * from './HighLevelResponse';
8
6
  export * from './HTTPProxyResponse';
9
- export * from './LoadNotificationMessage';
10
7
  export * from './Mdg2Response';
11
- export * from './PermissionDeniedResponse';
12
8
  export * from './PingResponse';
13
- export * from './RejectResponse';
@@ -1,2 +1 @@
1
1
  export * from './HighLevelUpdate';
2
- export * from './SubscriptionLossMessage';
@@ -18,8 +18,8 @@ export declare const authTokenRequest: () => (<T extends AConstructorTypeOf<Fron
18
18
  requestAuthenticationTokenForCookieTokenAuthentication(lifetimeSeconds?: number, idUser?: number, idApplication?: number, timeOutInMs?: number): Promise<CookieTokenAuthenticationFactors>;
19
19
  logger: import("..").LoggerInterface | undefined;
20
20
  hooks: import("hookable").Hookable<CalledHooksByConnection & import("../FrontgateClient").CalledHooksByBase, import("hookable").HookKeys<CalledHooksByConnection & import("../FrontgateClient").CalledHooksByBase>>;
21
- "__#11@#defaultTimeoutInMs": number;
22
- defaultTimeoutInMs: number;
21
+ readonly "__#11@#defaultTimeoutInMs": number;
22
+ readonly defaultTimeoutInMs: number;
23
23
  log(level: import("..").LogLevel, ...args: unknown[]): void;
24
24
  };
25
25
  } & T) & import(".").ExtendendMixinFactoryOptions;
@@ -16,8 +16,8 @@ export declare const endpointRequest: (config?: EndpointRequestMixinOptions) =>
16
16
  "__#1@#hasNextChunk"(msg: PtlMessage): boolean;
17
17
  logger: import("..").LoggerInterface | undefined;
18
18
  hooks: import("hookable").Hookable<CalledHooksByConnection & import("../FrontgateClient").CalledHooksByBase, import("hookable").HookKeys<CalledHooksByConnection & import("../FrontgateClient").CalledHooksByBase>>;
19
- "__#11@#defaultTimeoutInMs": number;
20
- defaultTimeoutInMs: number;
19
+ readonly "__#11@#defaultTimeoutInMs": number;
20
+ readonly defaultTimeoutInMs: number;
21
21
  log(level: import("..").LogLevel, ...args: unknown[]): void;
22
22
  };
23
23
  } & T) & import(".").ExtendendMixinFactoryOptions;
@@ -3,8 +3,6 @@ import type { DefaultFrontgateClientHooks, FrontgateClient } from '../FrontgateC
3
3
  import type { HTTPProxyRequestResult } from '../common/interfaces/result/HTTPProxyRequestResult';
4
4
  import type { HTTPProxyRequestBody } from '../message';
5
5
  import { type HTTPMethod, type HTTPProxyRequestOptions } from '../message';
6
- export interface HTTProxyRequestable extends HTTPProxyRequestable {
7
- }
8
6
  export interface HTTPProxyRequestable {
9
7
  requestProxyEndpoint: (method: HTTPMethod, path: string, body?: Record<string, unknown>, options?: HTTPProxyRequestOptions, timeOutInMs?: number) => Promise<HTTPProxyRequestResult>;
10
8
  }
@@ -14,8 +12,8 @@ export declare const httpProxyRequest: () => (<T extends AConstructorTypeOf<Fron
14
12
  requestProxyEndpoint(method: HTTPMethod, path: string, body?: HTTPProxyRequestBody, options?: HTTPProxyRequestOptions, timeOutInMs?: number): Promise<HTTPProxyRequestResult>;
15
13
  logger: import("..").LoggerInterface | undefined;
16
14
  hooks: import("hookable").Hookable<CalledHooksByConnection & import("../FrontgateClient").CalledHooksByBase, import("hookable").HookKeys<CalledHooksByConnection & import("../FrontgateClient").CalledHooksByBase>>;
17
- "__#11@#defaultTimeoutInMs": number;
18
- defaultTimeoutInMs: number;
15
+ readonly "__#11@#defaultTimeoutInMs": number;
16
+ readonly defaultTimeoutInMs: number;
19
17
  log(level: import("..").LogLevel, ...args: unknown[]): void;
20
18
  };
21
19
  } & T) & import(".").ExtendendMixinFactoryOptions;
@@ -5,8 +5,8 @@ export declare const logger: (logger: LoggerInterface, logLevel?: LogLevel) => (
5
5
  new (...args: any[]): {
6
6
  logger: LoggerInterface | undefined;
7
7
  hooks: import("hookable").Hookable<import("../FrontgateClient").CalledHooksByBase, "base:log">;
8
- "__#11@#defaultTimeoutInMs": number;
9
- defaultTimeoutInMs: number;
8
+ readonly "__#11@#defaultTimeoutInMs": number;
9
+ readonly defaultTimeoutInMs: number;
10
10
  log(level: LogLevel, ...args: unknown[]): void;
11
11
  };
12
12
  } & T) & import(".").ExtendendMixinFactoryOptions;
@@ -7,8 +7,8 @@ export declare const messageCompressor: () => (<T extends AConstructorTypeOf<Fro
7
7
  readonly "__#3@#compressor": Compressor;
8
8
  logger: import("..").LoggerInterface | undefined;
9
9
  hooks: import("hookable").Hookable<CalledHooksByConnection & import("../FrontgateClient").CalledHooksByBase, import("hookable").HookKeys<CalledHooksByConnection & import("../FrontgateClient").CalledHooksByBase>>;
10
- "__#11@#defaultTimeoutInMs": number;
11
- defaultTimeoutInMs: number;
10
+ readonly "__#11@#defaultTimeoutInMs": number;
11
+ readonly defaultTimeoutInMs: number;
12
12
  log(level: import("..").LogLevel, ...args: unknown[]): void;
13
13
  };
14
14
  } & T) & import(".").ExtendendMixinFactoryOptions;
@@ -12,8 +12,8 @@ export declare const openTelemetry: () => (<T extends AConstructorTypeOf<Frontga
12
12
  } | undefined;
13
13
  logger: import("..").LoggerInterface | undefined;
14
14
  hooks: import("hookable").Hookable<CalledHooksByConnection & import("../FrontgateClient").CalledHooksByBase, import("hookable").HookKeys<CalledHooksByConnection & import("../FrontgateClient").CalledHooksByBase>>;
15
- "__#11@#defaultTimeoutInMs": number;
16
- defaultTimeoutInMs: number;
15
+ readonly "__#11@#defaultTimeoutInMs": number;
16
+ readonly defaultTimeoutInMs: number;
17
17
  log(level: import("..").LogLevel, ...args: unknown[]): void;
18
18
  };
19
19
  } & T) & import(".").ExtendendMixinFactoryOptions;
@@ -10,8 +10,8 @@ export declare const pingRequests: () => (<T extends AConstructorTypeOf<Frontgat
10
10
  ping(timeOutInMs?: number): Promise<PingResponse>;
11
11
  logger: import("..").LoggerInterface | undefined;
12
12
  hooks: import("hookable").Hookable<CalledHooksByConnection & import("../FrontgateClient").CalledHooksByBase, import("hookable").HookKeys<CalledHooksByConnection & import("../FrontgateClient").CalledHooksByBase>>;
13
- "__#11@#defaultTimeoutInMs": number;
14
- defaultTimeoutInMs: number;
13
+ readonly "__#11@#defaultTimeoutInMs": number;
14
+ readonly defaultTimeoutInMs: number;
15
15
  log(level: import("..").LogLevel, ...args: unknown[]): void;
16
16
  };
17
17
  } & T) & import(".").ExtendendMixinFactoryOptions;
@@ -15,8 +15,8 @@ export declare const reconnect: (reconnectDelaysInMs?: number[]) => (<T extends
15
15
  "__#9@#reconnectTimer": NodeJS.Timeout | undefined;
16
16
  logger: import("../logger").LoggerInterface | undefined;
17
17
  hooks: import("hookable").Hookable<CalledHooksByConnection & CalledHooksByReconnect & import("../FrontgateClient").CalledHooksByBase, import("hookable").HookKeys<CalledHooksByConnection & CalledHooksByReconnect & import("../FrontgateClient").CalledHooksByBase>>;
18
- "__#11@#defaultTimeoutInMs": number;
19
- defaultTimeoutInMs: number;
18
+ readonly "__#11@#defaultTimeoutInMs": number;
19
+ readonly defaultTimeoutInMs: number;
20
20
  log(level: LogLevel, ...args: unknown[]): void;
21
21
  };
22
22
  } & T) & import(".").ExtendendMixinFactoryOptions;
@@ -0,0 +1,16 @@
1
+ import { type AConstructorTypeOf, type CalledHooksByConnection } from '.';
2
+ import type { DefaultFrontgateClientHooks, FrontgateClient } from '../FrontgateClient';
3
+ export interface RemoteLoggable {
4
+ logRemotely: (msg: string) => Promise<void>;
5
+ }
6
+ export type usedHooksByRemoteLogger = CalledHooksByConnection;
7
+ export declare const remotelogger: (identifier?: number) => (<T extends AConstructorTypeOf<FrontgateClient<usedHooksByRemoteLogger & DefaultFrontgateClientHooks>>>(Base: T) => {
8
+ new (...args: any[]): {
9
+ logRemotely(message: string): Promise<any>;
10
+ logger: import("..").LoggerInterface | undefined;
11
+ hooks: import("hookable").Hookable<CalledHooksByConnection & import("../FrontgateClient").CalledHooksByBase, import("hookable").HookKeys<CalledHooksByConnection & import("../FrontgateClient").CalledHooksByBase>>;
12
+ readonly "__#11@#defaultTimeoutInMs": number;
13
+ readonly defaultTimeoutInMs: number;
14
+ log(level: import("..").LogLevel, ...args: unknown[]): void;
15
+ };
16
+ } & T) & import(".").ExtendendMixinFactoryOptions;
@@ -10,8 +10,8 @@ export declare const requests: () => (<T extends AConstructorTypeOf<FrontgateCli
10
10
  request(request: AbstractMdg2Request, timeOutInMs?: number): Promise<Mdg2Response>;
11
11
  logger: import("..").LoggerInterface | undefined;
12
12
  hooks: import("hookable").Hookable<CalledHooksByConnection & import("../FrontgateClient").CalledHooksByBase, import("hookable").HookKeys<CalledHooksByConnection & import("../FrontgateClient").CalledHooksByBase>>;
13
- "__#11@#defaultTimeoutInMs": number;
14
- defaultTimeoutInMs: number;
13
+ readonly "__#11@#defaultTimeoutInMs": number;
14
+ readonly defaultTimeoutInMs: number;
15
15
  log(level: import("..").LogLevel, ...args: unknown[]): void;
16
16
  };
17
17
  } & T) & import(".").ExtendendMixinFactoryOptions;
@@ -1,15 +1,23 @@
1
- import { type AConstructorTypeOf, type CalledHooksByAuth, type CalledHooksByConnection } from '../.';
1
+ import { type AConstructorTypeOf, type FrontgateClientWSConnectionConfig, type CalledHooksByAuth, type CalledHooksByConnection } from '../.';
2
2
  import type { DefaultFrontgateClientHooks, FrontgateClient } from '../../FrontgateClient';
3
- import { AppAuthentication } from '../../authentication/AppAuthentication';
4
- import type { DeploymentStage } from '../../connection';
3
+ import type { PtlMessage } from '../../common/interfaces';
4
+ import { AuthenticationRequest, ConfigurationRequest } from '../../compat';
5
+ import { type DeploymentStage } from '../../connection';
6
+ import { LogLevel } from '../../logger';
7
+ import type { AuthenticationResponse } from '../../message/response/AuthenticationResponse';
5
8
  export type usedHooksByAppAuth = CalledHooksByConnection;
6
9
  export declare const appAuth: (idApplication: number, idUser: number, clientCredentials: string, deploymentStage: DeploymentStage) => (<T extends AConstructorTypeOf<FrontgateClient<usedHooksByAppAuth & CalledHooksByAuth & DefaultFrontgateClientHooks>>>(Base: T) => {
7
10
  new (...args: any[]): {
8
- readonly "__#13@#auth": AppAuthentication;
9
- logger: import("../..").LoggerInterface | undefined;
11
+ readonly "__#13@#sharedSecret": Buffer;
12
+ readonly "__#13@#clientSecret": Buffer;
13
+ "__#13@#createAuthenticationRequest"(): AuthenticationRequest;
14
+ "__#13@#createConfigurationRequest"(msg: AuthenticationResponse, conf: FrontgateClientWSConnectionConfig): ConfigurationRequest;
15
+ "__#13@#createTransportLayerRequestHeaderConfigurationRequest"(): PtlMessage;
16
+ "__#13@#submit"<M extends PtlMessage>(message: PtlMessage): Promise<M>;
17
+ logger: import("../../logger").LoggerInterface | undefined;
10
18
  hooks: import("hookable").Hookable<CalledHooksByConnection & CalledHooksByAuth & import("../../FrontgateClient").CalledHooksByBase, import("hookable").HookKeys<CalledHooksByConnection & CalledHooksByAuth & import("../../FrontgateClient").CalledHooksByBase>>;
11
- "__#11@#defaultTimeoutInMs": number;
12
- defaultTimeoutInMs: number;
13
- log(level: import("../..").LogLevel, ...args: unknown[]): void;
19
+ readonly "__#11@#defaultTimeoutInMs": number;
20
+ readonly defaultTimeoutInMs: number;
21
+ log(level: LogLevel, ...args: unknown[]): void;
14
22
  };
15
23
  } & T) & import("../.").ExtendendMixinFactoryOptions;
@@ -6,8 +6,8 @@ export declare const cookieTokenAuth: (secondFactor: string) => (<T extends ACon
6
6
  new (...args: any[]): {
7
7
  logger: import("../../logger").LoggerInterface | undefined;
8
8
  hooks: import("hookable").Hookable<CalledHooksByConnection & CalledHooksByAuth & import("../../FrontgateClient").CalledHooksByBase, import("hookable").HookKeys<CalledHooksByConnection & CalledHooksByAuth & import("../../FrontgateClient").CalledHooksByBase>>;
9
- "__#11@#defaultTimeoutInMs": number;
10
- defaultTimeoutInMs: number;
9
+ readonly "__#11@#defaultTimeoutInMs": number;
10
+ readonly defaultTimeoutInMs: number;
11
11
  log(level: LogLevel, ...args: unknown[]): void;
12
12
  };
13
13
  } & T) & import("../.").ExtendendMixinFactoryOptions;
@@ -44,8 +44,8 @@ export declare const fetchAuth: (config: FrontgateClientFetchWSConnectionConfig,
44
44
  isReadyToConnect(): boolean;
45
45
  logger: import("../../logger").LoggerInterface | undefined;
46
46
  hooks: import("hookable").Hookable<import("../ReconnectMixin").CalledHooksByReconnect & CalledHooksByAuth & CalledHooksByConnection & import("../../FrontgateClient").CalledHooksByBase, import("hookable").HookKeys<import("../ReconnectMixin").CalledHooksByReconnect & CalledHooksByAuth & CalledHooksByConnection & import("../../FrontgateClient").CalledHooksByBase>> & import("hookable").Hookable<CalledHooksByConnection & CalledHooksByAuth & import("../../FrontgateClient").CalledHooksByBase, import("hookable").HookKeys<CalledHooksByConnection & CalledHooksByAuth & import("../../FrontgateClient").CalledHooksByBase>>;
47
- "__#11@#defaultTimeoutInMs": number;
48
- defaultTimeoutInMs: number;
47
+ readonly "__#11@#defaultTimeoutInMs": number;
48
+ readonly defaultTimeoutInMs: number;
49
49
  log: ((level: LogLevel, ...args: unknown[]) => void) & ((level: LogLevel, ...args: unknown[]) => void);
50
50
  };
51
51
  } & T) & import("../.").ExtendendMixinFactoryOptions;