@genesislcap/foundation-comms 14.167.2 → 14.167.3-alpha-b40d1e5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (224) hide show
  1. package/dist/dts/auth/auth.d.ts.map +1 -1
  2. package/dist/dts/connect/connect.d.ts +11 -1
  3. package/dist/dts/connect/connect.d.ts.map +1 -1
  4. package/dist/dts/connect/connect.events.d.ts +173 -0
  5. package/dist/dts/connect/connect.events.d.ts.map +1 -0
  6. package/dist/dts/connect/http.connect.d.ts +1 -0
  7. package/dist/dts/connect/http.connect.d.ts.map +1 -1
  8. package/dist/dts/connect/index.d.ts +2 -0
  9. package/dist/dts/connect/index.d.ts.map +1 -1
  10. package/dist/dts/connect/message.d.ts +51 -0
  11. package/dist/dts/connect/message.d.ts.map +1 -1
  12. package/dist/dts/connect/socket.d.ts +72 -8
  13. package/dist/dts/connect/socket.d.ts.map +1 -1
  14. package/dist/dts/connect/socket.status.d.ts +79 -0
  15. package/dist/dts/connect/socket.status.d.ts.map +1 -0
  16. package/dist/dts/datasource/datasource.d.ts +9 -0
  17. package/dist/dts/datasource/datasource.d.ts.map +1 -1
  18. package/dist/dts/fdc3/fdc3.d.ts +17 -1
  19. package/dist/dts/fdc3/fdc3.d.ts.map +1 -1
  20. package/dist/dts/index.d.ts +1 -0
  21. package/dist/dts/index.d.ts.map +1 -1
  22. package/dist/dts/networkMonitor/config.d.ts +56 -0
  23. package/dist/dts/networkMonitor/config.d.ts.map +1 -0
  24. package/dist/dts/networkMonitor/index.d.ts +4 -0
  25. package/dist/dts/networkMonitor/index.d.ts.map +1 -0
  26. package/dist/dts/networkMonitor/service.d.ts +193 -0
  27. package/dist/dts/networkMonitor/service.d.ts.map +1 -0
  28. package/dist/dts/networkMonitor/types.d.ts +133 -0
  29. package/dist/dts/networkMonitor/types.d.ts.map +1 -0
  30. package/dist/dts/testing/mocks/connect/connect.d.ts +1 -0
  31. package/dist/dts/testing/mocks/connect/connect.d.ts.map +1 -1
  32. package/dist/dts/testing/mocks/connect/socket.d.ts +5 -1
  33. package/dist/dts/testing/mocks/connect/socket.d.ts.map +1 -1
  34. package/dist/dts/testing/mocks/datasource/datasource.d.ts +1 -0
  35. package/dist/dts/testing/mocks/datasource/datasource.d.ts.map +1 -1
  36. package/dist/dts/user/user.d.ts +15 -0
  37. package/dist/dts/user/user.d.ts.map +1 -1
  38. package/dist/esm/auth/auth.js +5 -2
  39. package/dist/esm/connect/connect.events.js +113 -0
  40. package/dist/esm/connect/connect.js +30 -8
  41. package/dist/esm/connect/http.connect.js +6 -0
  42. package/dist/esm/connect/index.js +2 -0
  43. package/dist/esm/connect/message.js +25 -4
  44. package/dist/esm/connect/socket.js +113 -44
  45. package/dist/esm/connect/socket.status.js +119 -0
  46. package/dist/esm/datasource/datasource.js +18 -8
  47. package/dist/esm/fdc3/fdc3.js +4 -4
  48. package/dist/esm/index.js +1 -0
  49. package/dist/esm/networkMonitor/config.js +46 -0
  50. package/dist/esm/networkMonitor/index.js +3 -0
  51. package/dist/esm/networkMonitor/service.js +432 -0
  52. package/dist/esm/networkMonitor/types.js +5 -0
  53. package/dist/esm/testing/mocks/connect/connect.js +3 -0
  54. package/dist/esm/testing/mocks/connect/socket.js +1 -1
  55. package/dist/esm/testing/mocks/datasource/datasource.js +1 -0
  56. package/dist/esm/user/user.js +22 -1
  57. package/dist/foundation-comms.api.json +14711 -8166
  58. package/dist/foundation-comms.d.ts +841 -13
  59. package/docs/api/foundation-comms.commitevent.md +14 -0
  60. package/docs/api/foundation-comms.commiteventdetail.md +17 -0
  61. package/docs/api/foundation-comms.commiteventtype.md +12 -0
  62. package/docs/api/foundation-comms.connect.getmorecolumns.md +26 -0
  63. package/docs/api/foundation-comms.connect.md +1 -0
  64. package/docs/api/foundation-comms.connectevents.addcommitlistener.md +24 -0
  65. package/docs/api/foundation-comms.connectevents.addmetadatalistener.md +24 -0
  66. package/docs/api/foundation-comms.connectevents.addstreamlistener.md +25 -0
  67. package/docs/api/foundation-comms.connectevents.md +22 -0
  68. package/docs/api/foundation-comms.connecteventsemitter.md +24 -0
  69. package/docs/api/foundation-comms.connecteventsemitter.oncommitevent.md +25 -0
  70. package/docs/api/foundation-comms.connecteventsemitter.onmetadataevent.md +26 -0
  71. package/docs/api/foundation-comms.connecteventsemitter.onstreamcompleteevent.md +24 -0
  72. package/docs/api/foundation-comms.connecteventsemitter.onstreamevent.md +27 -0
  73. package/docs/api/foundation-comms.currentuser.md +2 -0
  74. package/docs/api/foundation-comms.currentuser.set.md +22 -0
  75. package/docs/api/foundation-comms.currentuser.unset.md +15 -0
  76. package/docs/api/foundation-comms.datasource.destroy.md +17 -0
  77. package/docs/api/foundation-comms.datasource.md +1 -0
  78. package/docs/api/foundation-comms.defaultconnect._constructor_.md +2 -1
  79. package/docs/api/foundation-comms.defaultconnect.getmorecolumns.md +22 -0
  80. package/docs/api/foundation-comms.defaultconnect.md +2 -1
  81. package/docs/api/foundation-comms.defaultconnectevents.addcommitlistener.md +24 -0
  82. package/docs/api/foundation-comms.defaultconnectevents.addmetadatalistener.md +24 -0
  83. package/docs/api/foundation-comms.defaultconnectevents.addstreamlistener.md +25 -0
  84. package/docs/api/foundation-comms.defaultconnectevents.md +27 -0
  85. package/docs/api/foundation-comms.defaultconnectevents.oncommitevent.md +25 -0
  86. package/docs/api/foundation-comms.defaultconnectevents.onmetadataevent.md +26 -0
  87. package/docs/api/foundation-comms.defaultconnectevents.onstreamcompleteevent.md +24 -0
  88. package/docs/api/foundation-comms.defaultconnectevents.onstreamevent.md +27 -0
  89. package/docs/api/foundation-comms.defaultdatasource.destroy.md +17 -0
  90. package/docs/api/foundation-comms.defaultdatasource.md +1 -0
  91. package/docs/api/foundation-comms.defaulthttpconnect.getmorecolumns.md +22 -0
  92. package/docs/api/foundation-comms.defaulthttpconnect.md +1 -0
  93. package/docs/api/foundation-comms.defaultmessagebuilder._constructor_.md +21 -0
  94. package/docs/api/foundation-comms.defaultmessagebuilder.createchangepasswordmessage.md +24 -0
  95. package/docs/api/foundation-comms.defaultmessagebuilder.createcommitmessage.md +23 -0
  96. package/docs/api/foundation-comms.defaultmessagebuilder.createdatalogoffmessage.md +22 -0
  97. package/docs/api/foundation-comms.defaultmessagebuilder.createdatalogonmessage.md +23 -0
  98. package/docs/api/foundation-comms.defaultmessagebuilder.createforgotpasswordmessage.md +24 -0
  99. package/docs/api/foundation-comms.defaultmessagebuilder.createforgotpasswordtokenmessage.md +25 -0
  100. package/docs/api/foundation-comms.defaultmessagebuilder.createhttpheadersfrommessage.md +23 -0
  101. package/docs/api/foundation-comms.defaultmessagebuilder.createloginmessage.md +22 -0
  102. package/docs/api/foundation-comms.defaultmessagebuilder.createlogoutmessage.md +22 -0
  103. package/docs/api/foundation-comms.defaultmessagebuilder.createmetarequestmessage.md +23 -0
  104. package/docs/api/foundation-comms.defaultmessagebuilder.createmorecolumnsmessage.md +22 -0
  105. package/docs/api/foundation-comms.defaultmessagebuilder.createmorerowsmessage.md +22 -0
  106. package/docs/api/foundation-comms.defaultmessagebuilder.createrefreshtokenmessage.md +15 -0
  107. package/docs/api/foundation-comms.defaultmessagebuilder.createrequestmessage.md +23 -0
  108. package/docs/api/foundation-comms.defaultmessagebuilder.createresourcesmessage.md +22 -0
  109. package/docs/api/foundation-comms.defaultmessagebuilder.md +41 -0
  110. package/docs/api/foundation-comms.defaultnetworkmonitor.addresource.md +23 -0
  111. package/docs/api/foundation-comms.defaultnetworkmonitor.create.md +16 -0
  112. package/docs/api/foundation-comms.defaultnetworkmonitor.destroy.md +16 -0
  113. package/docs/api/foundation-comms.defaultnetworkmonitor.md +31 -0
  114. package/docs/api/foundation-comms.defaultnetworkmonitor.removeresource.md +22 -0
  115. package/docs/api/foundation-comms.defaultnetworkmonitor.runallchecks.md +11 -0
  116. package/docs/api/foundation-comms.defaultnetworkmonitor.status.md +12 -0
  117. package/docs/api/foundation-comms.defaultnetworkmonitorconfig.md +13 -0
  118. package/docs/api/foundation-comms.defaultsocket._constructor_.md +24 -0
  119. package/docs/api/foundation-comms.defaultsocket.connect.md +24 -0
  120. package/docs/api/foundation-comms.defaultsocket.hasvalidsession.md +13 -0
  121. package/docs/api/foundation-comms.defaultsocket.isconfigured.md +11 -0
  122. package/docs/api/foundation-comms.defaultsocket.isconnected.md +11 -0
  123. package/docs/api/foundation-comms.defaultsocket.isconnectedsubject.md +11 -0
  124. package/docs/api/foundation-comms.defaultsocket.isconnecting.md +11 -0
  125. package/docs/api/foundation-comms.defaultsocket.isdisconnected.md +11 -0
  126. package/docs/api/foundation-comms.defaultsocket.isdisconnectedbyserver.md +11 -0
  127. package/docs/api/foundation-comms.defaultsocket.isreconnecting.md +11 -0
  128. package/docs/api/foundation-comms.defaultsocket.md +44 -0
  129. package/docs/api/foundation-comms.defaultsocket.reset.md +15 -0
  130. package/docs/api/foundation-comms.defaultsocket.send.md +23 -0
  131. package/docs/api/foundation-comms.defaultsocket.sendforstream.md +25 -0
  132. package/docs/api/foundation-comms.defaultsocket.socketmessages.md +11 -0
  133. package/docs/api/foundation-comms.defaultsocketstatus.closedclean.md +11 -0
  134. package/docs/api/foundation-comms.defaultsocketstatus.closedcode.md +11 -0
  135. package/docs/api/foundation-comms.defaultsocketstatus.closedreason.md +11 -0
  136. package/docs/api/foundation-comms.defaultsocketstatus.hasvalidsession.md +11 -0
  137. package/docs/api/foundation-comms.defaultsocketstatus.isconfigured.md +11 -0
  138. package/docs/api/foundation-comms.defaultsocketstatus.isconnected.md +11 -0
  139. package/docs/api/foundation-comms.defaultsocketstatus.isconnectedchanged.md +15 -0
  140. package/docs/api/foundation-comms.defaultsocketstatus.isconnectedsubject.md +11 -0
  141. package/docs/api/foundation-comms.defaultsocketstatus.isconnecting.md +11 -0
  142. package/docs/api/foundation-comms.defaultsocketstatus.isdisconnected.md +11 -0
  143. package/docs/api/foundation-comms.defaultsocketstatus.isdisconnectedbyserver.md +11 -0
  144. package/docs/api/foundation-comms.defaultsocketstatus.isreconnecting.md +11 -0
  145. package/docs/api/foundation-comms.defaultsocketstatus.isreconnectingchanged.md +15 -0
  146. package/docs/api/foundation-comms.defaultsocketstatus.md +42 -0
  147. package/docs/api/foundation-comms.defaultsocketstatus.onclose.md +22 -0
  148. package/docs/api/foundation-comms.defaultsocketstatus.reconnectionlimitreached.md +11 -0
  149. package/docs/api/foundation-comms.defaultsocketstatus.resetclosedstate.md +15 -0
  150. package/docs/api/foundation-comms.defaultsocketstatus.serialize.md +15 -0
  151. package/docs/api/foundation-comms.genesisconnectevents.md +18 -0
  152. package/docs/api/foundation-comms.getnetworkmonitor.md +30 -0
  153. package/docs/api/foundation-comms.getsocket.md +30 -0
  154. package/docs/api/foundation-comms.getsocketstatus.md +30 -0
  155. package/docs/api/foundation-comms.md +39 -0
  156. package/docs/api/foundation-comms.messagebuilder.createmorecolumnsmessage.md +30 -0
  157. package/docs/api/foundation-comms.messagebuilder.md +1 -0
  158. package/docs/api/foundation-comms.messagehaserrorcode.md +13 -0
  159. package/docs/api/foundation-comms.messagetype.md +2 -0
  160. package/docs/api/foundation-comms.metadataevent.md +14 -0
  161. package/docs/api/foundation-comms.metadataeventdetail.md +18 -0
  162. package/docs/api/foundation-comms.metadataeventtype.md +12 -0
  163. package/docs/api/foundation-comms.monitoredresource.md +15 -0
  164. package/docs/api/foundation-comms.monitoredresourcechecks.md +15 -0
  165. package/docs/api/foundation-comms.monitoredresourcechecksresult.isconnected.md +11 -0
  166. package/docs/api/foundation-comms.monitoredresourcechecksresult.lastmessage.md +11 -0
  167. package/docs/api/foundation-comms.monitoredresourcechecksresult.lastupdated.md +11 -0
  168. package/docs/api/foundation-comms.monitoredresourcechecksresult.md +23 -0
  169. package/docs/api/foundation-comms.monitoredresourcechecksresult.timeout.md +11 -0
  170. package/docs/api/foundation-comms.monitoredresourcedatalogon.md +15 -0
  171. package/docs/api/foundation-comms.monitoredresourcemetadata.md +15 -0
  172. package/docs/api/foundation-comms.networklogger.md +12 -0
  173. package/docs/api/foundation-comms.networkmonitor.addresource.md +23 -0
  174. package/docs/api/foundation-comms.networkmonitor.create.md +15 -0
  175. package/docs/api/foundation-comms.networkmonitor.destroy.md +15 -0
  176. package/docs/api/foundation-comms.networkmonitor.md +34 -0
  177. package/docs/api/foundation-comms.networkmonitor.removeresource.md +22 -0
  178. package/docs/api/foundation-comms.networkmonitor.runallchecks.md +23 -0
  179. package/docs/api/foundation-comms.networkmonitor.status.md +11 -0
  180. package/docs/api/foundation-comms.networkmonitorconfig.checkinterval.md +13 -0
  181. package/docs/api/foundation-comms.networkmonitorconfig.checktimeout.md +13 -0
  182. package/docs/api/foundation-comms.networkmonitorconfig.documentevents.md +13 -0
  183. package/docs/api/foundation-comms.networkmonitorconfig.eventemitter.md +13 -0
  184. package/docs/api/foundation-comms.networkmonitorconfig.genesisconnectevents.md +13 -0
  185. package/docs/api/foundation-comms.networkmonitorconfig.md +27 -0
  186. package/docs/api/foundation-comms.networkmonitorconfig.resourcechecks.md +13 -0
  187. package/docs/api/foundation-comms.networkmonitorconfig.resourcedatalogon.md +18 -0
  188. package/docs/api/foundation-comms.networkmonitorconfig.windowevents.md +13 -0
  189. package/docs/api/foundation-comms.resourcehealth.md +19 -0
  190. package/docs/api/foundation-comms.serializedsocketstatus.closedclean.md +11 -0
  191. package/docs/api/foundation-comms.serializedsocketstatus.closedcode.md +11 -0
  192. package/docs/api/foundation-comms.serializedsocketstatus.closedreason.md +11 -0
  193. package/docs/api/foundation-comms.serializedsocketstatus.hasvalidsession.md +11 -0
  194. package/docs/api/foundation-comms.serializedsocketstatus.isconfigured.md +13 -0
  195. package/docs/api/foundation-comms.serializedsocketstatus.isconnected.md +11 -0
  196. package/docs/api/foundation-comms.serializedsocketstatus.isconnecting.md +11 -0
  197. package/docs/api/foundation-comms.serializedsocketstatus.isdisconnected.md +11 -0
  198. package/docs/api/foundation-comms.serializedsocketstatus.isdisconnectedbyserver.md +11 -0
  199. package/docs/api/foundation-comms.serializedsocketstatus.isreconnecting.md +11 -0
  200. package/docs/api/foundation-comms.serializedsocketstatus.md +30 -0
  201. package/docs/api/foundation-comms.serializedsocketstatus.reconnectionlimitreached.md +11 -0
  202. package/docs/api/foundation-comms.socket.md +3 -11
  203. package/docs/api/foundation-comms.socket.sendforstream.md +2 -1
  204. package/docs/api/{foundation-comms.socket.isconnectedsubject.md → foundation-comms.socketstatus.isconnectedsubject.md} +2 -2
  205. package/docs/api/foundation-comms.socketstatus.md +28 -0
  206. package/docs/api/foundation-comms.socketstatus.onclose.md +22 -0
  207. package/docs/api/foundation-comms.socketstatus.serialize.md +15 -0
  208. package/docs/api/foundation-comms.streamcompleteevent.md +14 -0
  209. package/docs/api/foundation-comms.streamcompleteeventtype.md +12 -0
  210. package/docs/api/foundation-comms.streamevent.md +14 -0
  211. package/docs/api/foundation-comms.streameventdetail.md +19 -0
  212. package/docs/api/foundation-comms.streameventfunctions.md +19 -0
  213. package/docs/api/foundation-comms.streameventtype.md +12 -0
  214. package/docs/api/foundation-comms.systemhealthchanged.md +13 -0
  215. package/docs/api/foundation-comms.systemhealthchangedevent.md +15 -0
  216. package/docs/api/foundation-comms.systemhealthstatus.md +29 -0
  217. package/docs/api/foundation-comms.user.md +2 -0
  218. package/docs/api/foundation-comms.user.set.md +22 -0
  219. package/docs/api/foundation-comms.user.unset.md +15 -0
  220. package/docs/api-report.md +520 -16
  221. package/package.json +13 -11
  222. package/docs/api/foundation-comms.socket.hasvalidsession.md +0 -11
  223. package/docs/api/foundation-comms.socket.isconnected.md +0 -11
  224. package/docs/api/foundation-comms.socket.isreconnecting.md +0 -11
@@ -0,0 +1,30 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-comms](./foundation-comms.md) &gt; [getSocket](./foundation-comms.getsocket.md)
4
+
5
+ ## getSocket() function
6
+
7
+ Gets Socket from the DI container.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ export declare function getSocket(): Socket;
13
+ ```
14
+ **Returns:**
15
+
16
+ [Socket](./foundation-comms.socket.md)
17
+
18
+ ## Remarks
19
+
20
+ A utility method for host applications that are not using decorators or the DI container.
21
+
22
+ ## Example
23
+
24
+
25
+ ```ts
26
+ import { getSocket } from '@genesislcap/foundation-comms';
27
+ ...
28
+ private socket = getSocket();
29
+ ```
30
+
@@ -0,0 +1,30 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-comms](./foundation-comms.md) &gt; [getSocketStatus](./foundation-comms.getsocketstatus.md)
4
+
5
+ ## getSocketStatus() function
6
+
7
+ Gets SocketStatus from the DI container.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ export declare function getSocketStatus(): SocketStatus;
13
+ ```
14
+ **Returns:**
15
+
16
+ [SocketStatus](./foundation-comms.socketstatus.md)
17
+
18
+ ## Remarks
19
+
20
+ A utility method for host applications that are not using decorators or the DI container.
21
+
22
+ ## Example
23
+
24
+
25
+ ```ts
26
+ import { getSocketStatus } from '@genesislcap/foundation-comms';
27
+ ...
28
+ private socketStatus = getSocketStatus();
29
+ ```
30
+
@@ -13,13 +13,18 @@
13
13
  | [DatasourceDefaults](./foundation-comms.datasourcedefaults.md) | Default values for a DatasourceConfig |
14
14
  | [DefaultAuth](./foundation-comms.defaultauth.md) | The default implementation for the Auth interface. |
15
15
  | [DefaultConnect](./foundation-comms.defaultconnect.md) | The default implementation for the Connect interface (WS-only). |
16
+ | [DefaultConnectEvents](./foundation-comms.defaultconnectevents.md) | Default ConnectEvents implementation. |
16
17
  | [DefaultCredentialManager](./foundation-comms.defaultcredentialmanager.md) | The default implementation for the CredentialManager interface. |
17
18
  | [DefaultDatasource](./foundation-comms.defaultdatasource.md) | The default implementation for the Datasource interface. |
18
19
  | [DefaultFoundationAnalytics](./foundation-comms.defaultfoundationanalytics.md) | The default implementation for the FoundationAnalytics interface. |
19
20
  | [DefaultHttp](./foundation-comms.defaulthttp.md) | The default implementation of the Http interface. |
20
21
  | [DefaultHttpConnect](./foundation-comms.defaulthttpconnect.md) | The default implementation for the Connect interface (HTTP-only). |
22
+ | [DefaultMessageBuilder](./foundation-comms.defaultmessagebuilder.md) | Default MessageBuilder implementation. |
21
23
  | [DefaultMetaCache](./foundation-comms.defaultmetacache.md) | The default implementation for the MetaCache interface. |
24
+ | [DefaultNetworkMonitor](./foundation-comms.defaultnetworkmonitor.md) | Default NetworkMonitor implementation. |
22
25
  | [DefaultSession](./foundation-comms.defaultsession.md) | The default implementation for the Session interface. |
26
+ | [DefaultSocket](./foundation-comms.defaultsocket.md) | Default Socket implementation. |
27
+ | [DefaultSocketStatus](./foundation-comms.defaultsocketstatus.md) | Default SocketStatus implementation. |
23
28
  | [SocketMessageHandler](./foundation-comms.socketmessagehandler.md) | The Socket message handler definition. |
24
29
  | [SocketObservable](./foundation-comms.socketobservable.md) | Observable that wraps a WebSocketSubject and provides an Observable interface for sending and receiving messages. |
25
30
  | [SocketSubject](./foundation-comms.socketsubject.md) | Subject that wraps a WebSocketSubject and provides a Subject interface for sending and receiving messages. |
@@ -45,6 +50,9 @@
45
50
  | [dataServerResultFilter(result, rowId)](./foundation-comms.dataserverresultfilter.md) | Data server result filter. |
46
51
  | [getConnect()](./foundation-comms.getconnect.md) | Get Connect from the DI container. |
47
52
  | [getDatasource()](./foundation-comms.getdatasource.md) | Get Datasource from the DI container. |
53
+ | [getNetworkMonitor()](./foundation-comms.getnetworkmonitor.md) | Gets NetworkMonitor from the DI container. |
54
+ | [getSocket()](./foundation-comms.getsocket.md) | Gets Socket from the DI container. |
55
+ | [getSocketStatus()](./foundation-comms.getsocketstatus.md) | Gets SocketStatus from the DI container. |
48
56
  | [normaliseCriteria(criteria, delimiter)](./foundation-comms.normalisecriteria.md) | Normalise criteria. |
49
57
  | [until(conditionFunc, timeoutMs)](./foundation-comms.until.md) | Polls a condition function until it returns true or a timeout is reached. |
50
58
 
@@ -55,6 +63,8 @@
55
63
  | [Auth](./foundation-comms.auth.md) | Auth is the main interface for authenticating with a Genesis Server endpoint. |
56
64
  | [Connect](./foundation-comms.connect.md) | Represents a connection and its capabilities on a remote server Provides methods to send and receive messages, as well as metadata and schema information. |
57
65
  | [ConnectConfig](./foundation-comms.connectconfig.md) | Configuration options for the Connect (WS) instance. |
66
+ | [ConnectEvents](./foundation-comms.connectevents.md) | <code>ConnectEvents</code> provide hooks to respond to specific connect events. |
67
+ | [ConnectEventsEmitter](./foundation-comms.connecteventsemitter.md) | <code>ConnectEventsEmitter</code> provide event emitting hooks to Connect. |
58
68
  | [CredentialManager](./foundation-comms.credentialmanager.md) | Represents a system for managing user credentials and authentication tokens. |
59
69
  | [CredentialManagerConfig](./foundation-comms.credentialmanagerconfig.md) | The configuration for the CredentialManager |
60
70
  | [CredentialManagerCookieConfig](./foundation-comms.credentialmanagercookieconfig.md) | The configuration options for the CredentialManager cookie |
@@ -76,10 +86,16 @@
76
86
  | [LogoutResult](./foundation-comms.logoutresult.md) | Represents the result of a user logout operation. |
77
87
  | [MessageBuilder](./foundation-comms.messagebuilder.md) | A utility class for building different types of messages. |
78
88
  | [MetadataCache](./foundation-comms.metadatacache.md) | A Metadata cache definition |
89
+ | [MonitoredResourceChecksResult](./foundation-comms.monitoredresourcechecksresult.md) | MonitoredResourceChecksResult. |
90
+ | [MonitoredResourceMetadata](./foundation-comms.monitoredresourcemetadata.md) | MonitoredResourceMetadata. |
91
+ | [NetworkMonitor](./foundation-comms.networkmonitor.md) | <code>NetworkMonitor</code> monitors network and resource availability and health. |
92
+ | [NetworkMonitorConfig](./foundation-comms.networkmonitorconfig.md) | NetworkMonitorConfig DI interface. |
79
93
  | [PollingConfiguration](./foundation-comms.pollingconfiguration.md) | Configuration options for http polling. |
94
+ | [SerializedSocketStatus](./foundation-comms.serializedsocketstatus.md) | <code>SerializedSocketStatus</code> provides the serialize state of the web socket. |
80
95
  | [Serializer](./foundation-comms.serializer.md) | A Serializer interface for serializing and deserializing objects. |
81
96
  | [Session](./foundation-comms.session.md) | Represents a session storage and its capabilities. Provides methods to set and get items from the specified storage. |
82
97
  | [Socket](./foundation-comms.socket.md) | Represents a WebSocket used to establish a communication channel between client and a Genesis server. Provides methods for socket connection, sending and receiving WS messages. |
98
+ | [SocketStatus](./foundation-comms.socketstatus.md) | <code>SocketStatus</code> provides the state of the web socket. |
83
99
  | [User](./foundation-comms.user.md) | Represents a User object with associated permissions and profiles. |
84
100
 
85
101
  ## Namespaces
@@ -93,20 +109,28 @@
93
109
 
94
110
  | Variable | Description |
95
111
  | --- | --- |
112
+ | [CommitEventType](./foundation-comms.commiteventtype.md) | |
96
113
  | [credentialSeparator](./foundation-comms.credentialseparator.md) | The default separator used for splitting credential parts. |
97
114
  | [defaultConnectConfig](./foundation-comms.defaultconnectconfig.md) | The default configuration for connecting to a WS service. |
98
115
  | [defaultCredentialManagerConfig](./foundation-comms.defaultcredentialmanagerconfig.md) | The default configuration for the CredentialManager service. |
99
116
  | [defaultCredentialRequestOptions](./foundation-comms.defaultcredentialrequestoptions.md) | The default request options for the CredentialManager service. |
100
117
  | [defaultDatasourceConfig](./foundation-comms.defaultdatasourceconfig.md) | The default configuration for the Datasource service. |
101
118
  | [defaultHttpConnectConfig](./foundation-comms.defaulthttpconnectconfig.md) | The default configuration for connecting to an HTTP service. |
119
+ | [defaultNetworkMonitorConfig](./foundation-comms.defaultnetworkmonitorconfig.md) | Default NetworkMonitorConfig DI implementation. |
102
120
  | [exponentialScheduler](./foundation-comms.exponentialscheduler.md) | Expontential Interval scheduler for reconnect |
103
121
  | [extractFieldDefinitions](./foundation-comms.extractfielddefinitions.md) | Extracts the field definitions from the metadata. |
104
122
  | [isWebSocketExpression](./foundation-comms.iswebsocketexpression.md) | Regular Expression to test valid WebSocket (wss and ws) hosts |
105
123
  | [linearScheduler](./foundation-comms.linearscheduler.md) | Linear Interval scheduler for reconnect |
106
124
  | [logger](./foundation-comms.logger.md) | Logger for the foundation-comms package |
107
125
  | [MAX\_RECONNECT\_ATTEMPTS](./foundation-comms.max_reconnect_attempts.md) | Default number of reconnect attempts |
126
+ | [messageHasErrorCode](./foundation-comms.messagehaserrorcode.md) | Check if the message contains an error code. |
108
127
  | [messageOrThrow](./foundation-comms.messageorthrow.md) | Check if the provided message contains an error and throw an Error if it does |
128
+ | [MetadataEventType](./foundation-comms.metadataeventtype.md) | |
129
+ | [networkLogger](./foundation-comms.networklogger.md) | |
109
130
  | [retryInterval](./foundation-comms.retryinterval.md) | Generate reconnect interval based on scheduler |
131
+ | [StreamCompleteEventType](./foundation-comms.streamcompleteeventtype.md) | |
132
+ | [StreamEventType](./foundation-comms.streameventtype.md) | |
133
+ | [SystemHealthChanged](./foundation-comms.systemhealthchanged.md) | SystemHealthChanged. |
110
134
  | [toFieldMetadata](./foundation-comms.tofieldmetadata.md) | Converts the field definitions to field metadata. |
111
135
  | [TYPES\_MAP](./foundation-comms.types_map.md) | Types map for FieldTypeEnum. |
112
136
 
@@ -117,6 +141,8 @@
117
141
  | [AuthInfo](./foundation-comms.authinfo.md) | Union type of all authentication information types. |
118
142
  | [BasicAuthInfo](./foundation-comms.basicauthinfo.md) | Represents basic authentication information. |
119
143
  | [BasicCredentialsInput](./foundation-comms.basiccredentialsinput.md) | Represents basic credentials for a user. |
144
+ | [CommitEvent](./foundation-comms.commitevent.md) | |
145
+ | [CommitEventDetail](./foundation-comms.commiteventdetail.md) | |
120
146
  | [CommitParams](./foundation-comms.commitparams.md) | Parameters for a COMMIT message |
121
147
  | [ConnectionStatus](./foundation-comms.connectionstatus.md) | The connection status of the Genesis client. |
122
148
  | [CredentialData\_2](./foundation-comms.credentialdata_2.md) | Represents user credentials. |
@@ -124,6 +150,7 @@
124
150
  | [FDC3Intents](./foundation-comms.fdc3intents.md) | |
125
151
  | [FieldMetadata](./foundation-comms.fieldmetadata.md) | Field Metadata definition. |
126
152
  | [FilteredDataServerResult](./foundation-comms.filtereddataserverresult.md) | Fitlered result after initial DATASERVER data fetch. |
153
+ | [GenesisConnectEvents](./foundation-comms.genesisconnectevents.md) | Genesis connect events that can be monitored to invoke resource checking. |
127
154
  | [GetCredentialOptions](./foundation-comms.getcredentialoptions.md) | Represents options for retrieving credentials. |
128
155
  | [IndexDetail](./foundation-comms.indexdetail.md) | Index Detail definition. |
129
156
  | [JwtAuthInfo](./foundation-comms.jwtauthinfo.md) | Represents JWT authentication information. |
@@ -133,11 +160,17 @@
133
160
  | [MetaCache](./foundation-comms.metacache.md) | Union type of MetadataCache and JsonSchemaCache |
134
161
  | [Metadata](./foundation-comms.metadata.md) | Metadata definition for a given resource. |
135
162
  | [MetadataDetail](./foundation-comms.metadatadetail.md) | Metadata Detail definition. |
163
+ | [MetadataEvent](./foundation-comms.metadataevent.md) | |
164
+ | [MetadataEventDetail](./foundation-comms.metadataeventdetail.md) | |
165
+ | [MonitoredResource](./foundation-comms.monitoredresource.md) | MonitoredResource. |
166
+ | [MonitoredResourceChecks](./foundation-comms.monitoredresourcechecks.md) | MonitoredResourceChecks. |
167
+ | [MonitoredResourceDataLogon](./foundation-comms.monitoredresourcedatalogon.md) | MonitoredResourceDataLogon. |
136
168
  | [RawDataServerResult](./foundation-comms.rawdataserverresult.md) | Raw result from a DATASERVER data fetch. |
137
169
  | [RefreshAuthInfo](./foundation-comms.refreshauthinfo.md) | Represents refresh token authentication information. |
138
170
  | [RefreshCredentialsInput](./foundation-comms.refreshcredentialsinput.md) | Represents refresh credentials for a user. |
139
171
  | [RequestParams](./foundation-comms.requestparams.md) | Parameters for a REQUEST message |
140
172
  | [RequestServerResult](./foundation-comms.requestserverresult.md) | Raw result from a REQUEST\_SERVER data fetch. |
173
+ | [ResourceHealth](./foundation-comms.resourcehealth.md) | ResourceHealth. |
141
174
  | [RowData](./foundation-comms.rowdata.md) | Row Data definition. |
142
175
  | [SchemaResponse](./foundation-comms.schemaresponse.md) | Schema Response definition. |
143
176
  | [ServerRow](./foundation-comms.serverrow.md) | Server Row definition. |
@@ -147,4 +180,10 @@
147
180
  | [SsoAuthInfo](./foundation-comms.ssoauthinfo.md) | Represents SSO authentication information. |
148
181
  | [SSOCredentialsInput](./foundation-comms.ssocredentialsinput.md) | Represents SSO credentials for a user. |
149
182
  | [StorageType](./foundation-comms.storagetype.md) | The available browser storage types. |
183
+ | [StreamCompleteEvent](./foundation-comms.streamcompleteevent.md) | |
184
+ | [StreamEvent](./foundation-comms.streamevent.md) | |
185
+ | [StreamEventDetail](./foundation-comms.streameventdetail.md) | |
186
+ | [StreamEventFunctions](./foundation-comms.streameventfunctions.md) | |
187
+ | [SystemHealthChangedEvent](./foundation-comms.systemhealthchangedevent.md) | SystemHealthChangedEvent. |
188
+ | [SystemHealthStatus](./foundation-comms.systemhealthstatus.md) | SystemHealthStatus. |
150
189
 
@@ -0,0 +1,30 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-comms](./foundation-comms.md) &gt; [MessageBuilder](./foundation-comms.messagebuilder.md) &gt; [createMoreColumnsMessage](./foundation-comms.messagebuilder.createmorecolumnsmessage.md)
4
+
5
+ ## MessageBuilder.createMoreColumnsMessage() method
6
+
7
+ Creates a message to request more columns.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ createMoreColumnsMessage(sourceRef: string): Message;
13
+ ```
14
+
15
+ ## Parameters
16
+
17
+ | Parameter | Type | Description |
18
+ | --- | --- | --- |
19
+ | sourceRef | string | The source reference. |
20
+
21
+ **Returns:**
22
+
23
+ [Message](./foundation-comms.message.md)
24
+
25
+ The more columns message.
26
+
27
+ ## Remarks
28
+
29
+ MORE\_COLUMNS
30
+
@@ -26,6 +26,7 @@ export interface MessageBuilder
26
26
  | [createLoginMessage(credentials)](./foundation-comms.messagebuilder.createloginmessage.md) | Creates a login message. |
27
27
  | [createLogoutMessage(loginResult)](./foundation-comms.messagebuilder.createlogoutmessage.md) | Creates a logout message. |
28
28
  | [createMetaRequestMessage(resourceName, messageType)](./foundation-comms.messagebuilder.createmetarequestmessage.md) | Creates a metadata fetch message. |
29
+ | [createMoreColumnsMessage(sourceRef)](./foundation-comms.messagebuilder.createmorecolumnsmessage.md) | Creates a message to request more columns. |
29
30
  | [createMoreRowsMessage(sourceRef)](./foundation-comms.messagebuilder.createmorerowsmessage.md) | Creates a message to request more rows. |
30
31
  | [createRefreshTokenMessage()](./foundation-comms.messagebuilder.createrefreshtokenmessage.md) | Creates an auth message specific for token refresh. |
31
32
  | [createRequestMessage(resourceName, params)](./foundation-comms.messagebuilder.createrequestmessage.md) | Creates a request message. |
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-comms](./foundation-comms.md) &gt; [messageHasErrorCode](./foundation-comms.messagehaserrorcode.md)
4
+
5
+ ## messageHasErrorCode variable
6
+
7
+ Check if the message contains an error code.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ messageHasErrorCode: (message: Message, code: string | number) => boolean
13
+ ```
@@ -24,6 +24,8 @@ export declare enum MessageType
24
24
  | LOGON\_NACK | <code>&quot;LOGON_NACK&quot;</code> | |
25
25
  | LOGOUT\_ACK | <code>&quot;LOGOUT_ACK&quot;</code> | |
26
26
  | LOGOUT\_NACK | <code>&quot;LOGOUT_NACK&quot;</code> | |
27
+ | MORE\_COLUMNS | <code>&quot;MORE_COLUMNS&quot;</code> | |
28
+ | MORE\_COLUMNS\_ACK | <code>&quot;MORE_COLUMNS_ACK&quot;</code> | |
27
29
  | MORE\_ROWS | <code>&quot;MORE_ROWS&quot;</code> | |
28
30
  | MSG\_ACK | <code>&quot;MSG_ACK&quot;</code> | |
29
31
  | MSG\_NACK | <code>&quot;MSG_NACK&quot;</code> | |
@@ -0,0 +1,14 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-comms](./foundation-comms.md) &gt; [MetadataEvent](./foundation-comms.metadataevent.md)
4
+
5
+ ## MetadataEvent type
6
+
7
+
8
+ **Signature:**
9
+
10
+ ```typescript
11
+ export type MetadataEvent = CustomEvent<MetadataEventDetail>;
12
+ ```
13
+ **References:** [MetadataEventDetail](./foundation-comms.metadataeventdetail.md)
14
+
@@ -0,0 +1,18 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-comms](./foundation-comms.md) &gt; [MetadataEventDetail](./foundation-comms.metadataeventdetail.md)
4
+
5
+ ## MetadataEventDetail type
6
+
7
+
8
+ **Signature:**
9
+
10
+ ```typescript
11
+ export type MetadataEventDetail = {
12
+ resourceName: string;
13
+ message: Message<MessageDetails.MetaRequest>;
14
+ error?: any;
15
+ };
16
+ ```
17
+ **References:** [Message](./foundation-comms.message.md)<!-- -->, [MessageDetails.MetaRequest](./foundation-comms.messagedetails.metarequest.md)
18
+
@@ -0,0 +1,12 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-comms](./foundation-comms.md) &gt; [MetadataEventType](./foundation-comms.metadataeventtype.md)
4
+
5
+ ## MetadataEventType variable
6
+
7
+
8
+ **Signature:**
9
+
10
+ ```typescript
11
+ MetadataEventType = "connect-metadata-event"
12
+ ```
@@ -0,0 +1,15 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-comms](./foundation-comms.md) &gt; [MonitoredResource](./foundation-comms.monitoredresource.md)
4
+
5
+ ## MonitoredResource type
6
+
7
+ MonitoredResource.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ export type MonitoredResource = SocketObservable<any>;
13
+ ```
14
+ **References:** [SocketObservable](./foundation-comms.socketobservable.md)
15
+
@@ -0,0 +1,15 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-comms](./foundation-comms.md) &gt; [MonitoredResourceChecks](./foundation-comms.monitoredresourcechecks.md)
4
+
5
+ ## MonitoredResourceChecks type
6
+
7
+ MonitoredResourceChecks.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ export type MonitoredResourceChecks = (sourceRef: string, resource: MonitoredResource) => Promise<MonitoredResourceChecksResult>;
13
+ ```
14
+ **References:** [MonitoredResource](./foundation-comms.monitoredresource.md)<!-- -->, [MonitoredResourceChecksResult](./foundation-comms.monitoredresourcechecksresult.md)
15
+
@@ -0,0 +1,11 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-comms](./foundation-comms.md) &gt; [MonitoredResourceChecksResult](./foundation-comms.monitoredresourcechecksresult.md) &gt; [isConnected](./foundation-comms.monitoredresourcechecksresult.isconnected.md)
4
+
5
+ ## MonitoredResourceChecksResult.isConnected property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ isConnected: boolean;
11
+ ```
@@ -0,0 +1,11 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-comms](./foundation-comms.md) &gt; [MonitoredResourceChecksResult](./foundation-comms.monitoredresourcechecksresult.md) &gt; [lastMessage](./foundation-comms.monitoredresourcechecksresult.lastmessage.md)
4
+
5
+ ## MonitoredResourceChecksResult.lastMessage property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ lastMessage?: Message;
11
+ ```
@@ -0,0 +1,11 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-comms](./foundation-comms.md) &gt; [MonitoredResourceChecksResult](./foundation-comms.monitoredresourcechecksresult.md) &gt; [lastUpdated](./foundation-comms.monitoredresourcechecksresult.lastupdated.md)
4
+
5
+ ## MonitoredResourceChecksResult.lastUpdated property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ lastUpdated: number;
11
+ ```
@@ -0,0 +1,23 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-comms](./foundation-comms.md) &gt; [MonitoredResourceChecksResult](./foundation-comms.monitoredresourcechecksresult.md)
4
+
5
+ ## MonitoredResourceChecksResult interface
6
+
7
+ MonitoredResourceChecksResult.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ export interface MonitoredResourceChecksResult
13
+ ```
14
+
15
+ ## Properties
16
+
17
+ | Property | Modifiers | Type | Description |
18
+ | --- | --- | --- | --- |
19
+ | [isConnected](./foundation-comms.monitoredresourcechecksresult.isconnected.md) | | boolean | |
20
+ | [lastMessage?](./foundation-comms.monitoredresourcechecksresult.lastmessage.md) | | [Message](./foundation-comms.message.md) | _(Optional)_ |
21
+ | [lastUpdated](./foundation-comms.monitoredresourcechecksresult.lastupdated.md) | | number | |
22
+ | [timeout?](./foundation-comms.monitoredresourcechecksresult.timeout.md) | | boolean | _(Optional)_ |
23
+
@@ -0,0 +1,11 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-comms](./foundation-comms.md) &gt; [MonitoredResourceChecksResult](./foundation-comms.monitoredresourcechecksresult.md) &gt; [timeout](./foundation-comms.monitoredresourcechecksresult.timeout.md)
4
+
5
+ ## MonitoredResourceChecksResult.timeout property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ timeout?: boolean;
11
+ ```
@@ -0,0 +1,15 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-comms](./foundation-comms.md) &gt; [MonitoredResourceDataLogon](./foundation-comms.monitoredresourcedatalogon.md)
4
+
5
+ ## MonitoredResourceDataLogon type
6
+
7
+ MonitoredResourceDataLogon.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ export type MonitoredResourceDataLogon = (metadata: MonitoredResourceMetadata) => void;
13
+ ```
14
+ **References:** [MonitoredResourceMetadata](./foundation-comms.monitoredresourcemetadata.md)
15
+
@@ -0,0 +1,15 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-comms](./foundation-comms.md) &gt; [MonitoredResourceMetadata](./foundation-comms.monitoredresourcemetadata.md)
4
+
5
+ ## MonitoredResourceMetadata interface
6
+
7
+ MonitoredResourceMetadata.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ export interface MonitoredResourceMetadata extends Partial<MonitoredResourceChecksResult>, Partial<StreamEventDetail>
13
+ ```
14
+ **Extends:** Partial&lt;[MonitoredResourceChecksResult](./foundation-comms.monitoredresourcechecksresult.md)<!-- -->&gt;, Partial&lt;[StreamEventDetail](./foundation-comms.streameventdetail.md)<!-- -->&gt;
15
+
@@ -0,0 +1,12 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-comms](./foundation-comms.md) &gt; [networkLogger](./foundation-comms.networklogger.md)
4
+
5
+ ## networkLogger variable
6
+
7
+
8
+ **Signature:**
9
+
10
+ ```typescript
11
+ networkLogger: import("@genesislcap/foundation-logger").Logger
12
+ ```
@@ -0,0 +1,23 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-comms](./foundation-comms.md) &gt; [NetworkMonitor](./foundation-comms.networkmonitor.md) &gt; [addResource](./foundation-comms.networkmonitor.addresource.md)
4
+
5
+ ## NetworkMonitor.addResource() method
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ addResource(resource: MonitoredResource, metadata: MonitoredResourceMetadata): void;
11
+ ```
12
+
13
+ ## Parameters
14
+
15
+ | Parameter | Type | Description |
16
+ | --- | --- | --- |
17
+ | resource | [MonitoredResource](./foundation-comms.monitoredresource.md) | The resource reference. |
18
+ | metadata | [MonitoredResourceMetadata](./foundation-comms.monitoredresourcemetadata.md) | The resource metadata. |
19
+
20
+ **Returns:**
21
+
22
+ void
23
+
@@ -0,0 +1,15 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-comms](./foundation-comms.md) &gt; [NetworkMonitor](./foundation-comms.networkmonitor.md) &gt; [create](./foundation-comms.networkmonitor.create.md)
4
+
5
+ ## NetworkMonitor.create() method
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ create(): void;
11
+ ```
12
+ **Returns:**
13
+
14
+ void
15
+
@@ -0,0 +1,15 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-comms](./foundation-comms.md) &gt; [NetworkMonitor](./foundation-comms.networkmonitor.md) &gt; [destroy](./foundation-comms.networkmonitor.destroy.md)
4
+
5
+ ## NetworkMonitor.destroy() method
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ destroy(): void;
11
+ ```
12
+ **Returns:**
13
+
14
+ void
15
+
@@ -0,0 +1,34 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-comms](./foundation-comms.md) &gt; [NetworkMonitor](./foundation-comms.networkmonitor.md)
4
+
5
+ ## NetworkMonitor interface
6
+
7
+ `NetworkMonitor` monitors network and resource availability and health.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ export interface NetworkMonitor
13
+ ```
14
+
15
+ ## Remarks
16
+
17
+ UIs can listen for 'system-health-changed' events and display visual overlays to communicate status to the user.
18
+
19
+ ## Properties
20
+
21
+ | Property | Modifiers | Type | Description |
22
+ | --- | --- | --- | --- |
23
+ | [status](./foundation-comms.networkmonitor.status.md) | | [SystemHealthStatus](./foundation-comms.systemhealthstatus.md) | |
24
+
25
+ ## Methods
26
+
27
+ | Method | Description |
28
+ | --- | --- |
29
+ | [addResource(resource, metadata)](./foundation-comms.networkmonitor.addresource.md) | |
30
+ | [create()](./foundation-comms.networkmonitor.create.md) | |
31
+ | [destroy()](./foundation-comms.networkmonitor.destroy.md) | |
32
+ | [removeResource(resource)](./foundation-comms.networkmonitor.removeresource.md) | |
33
+ | [runAllChecks(source, force)](./foundation-comms.networkmonitor.runallchecks.md) | |
34
+
@@ -0,0 +1,22 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-comms](./foundation-comms.md) &gt; [NetworkMonitor](./foundation-comms.networkmonitor.md) &gt; [removeResource](./foundation-comms.networkmonitor.removeresource.md)
4
+
5
+ ## NetworkMonitor.removeResource() method
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ removeResource(resource: MonitoredResource): void;
11
+ ```
12
+
13
+ ## Parameters
14
+
15
+ | Parameter | Type | Description |
16
+ | --- | --- | --- |
17
+ | resource | [MonitoredResource](./foundation-comms.monitoredresource.md) | The resource reference. |
18
+
19
+ **Returns:**
20
+
21
+ void
22
+
@@ -0,0 +1,23 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-comms](./foundation-comms.md) &gt; [NetworkMonitor](./foundation-comms.networkmonitor.md) &gt; [runAllChecks](./foundation-comms.networkmonitor.runallchecks.md)
4
+
5
+ ## NetworkMonitor.runAllChecks() method
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ runAllChecks(source?: unknown, force?: boolean): Promise<void>;
11
+ ```
12
+
13
+ ## Parameters
14
+
15
+ | Parameter | Type | Description |
16
+ | --- | --- | --- |
17
+ | source | unknown | _(Optional)_ The source of the call, which may have been an event or scheduled interval. |
18
+ | force | boolean | _(Optional)_ A flag to bypass abort if already in progress logic. |
19
+
20
+ **Returns:**
21
+
22
+ Promise&lt;void&gt;
23
+
@@ -0,0 +1,11 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-comms](./foundation-comms.md) &gt; [NetworkMonitor](./foundation-comms.networkmonitor.md) &gt; [status](./foundation-comms.networkmonitor.status.md)
4
+
5
+ ## NetworkMonitor.status property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ status: SystemHealthStatus;
11
+ ```
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-comms](./foundation-comms.md) &gt; [NetworkMonitorConfig](./foundation-comms.networkmonitorconfig.md) &gt; [checkInterval](./foundation-comms.networkmonitorconfig.checkinterval.md)
4
+
5
+ ## NetworkMonitorConfig.checkInterval property
6
+
7
+ Periodic check internal in ms
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ checkInterval?: number;
13
+ ```
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-comms](./foundation-comms.md) &gt; [NetworkMonitorConfig](./foundation-comms.networkmonitorconfig.md) &gt; [checkTimeout](./foundation-comms.networkmonitorconfig.checktimeout.md)
4
+
5
+ ## NetworkMonitorConfig.checkTimeout property
6
+
7
+ Check timeout in ms
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ checkTimeout?: number;
13
+ ```