@genesislcap/foundation-comms 14.167.3-alpha-b40d1e5.0 → 14.167.3-alpha-69ba23f.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 +1 -11
  3. package/dist/dts/connect/connect.d.ts.map +1 -1
  4. package/dist/dts/connect/http.connect.d.ts +0 -1
  5. package/dist/dts/connect/http.connect.d.ts.map +1 -1
  6. package/dist/dts/connect/index.d.ts +0 -2
  7. package/dist/dts/connect/index.d.ts.map +1 -1
  8. package/dist/dts/connect/message.d.ts +0 -51
  9. package/dist/dts/connect/message.d.ts.map +1 -1
  10. package/dist/dts/connect/socket.d.ts +8 -72
  11. package/dist/dts/connect/socket.d.ts.map +1 -1
  12. package/dist/dts/datasource/datasource.d.ts +0 -9
  13. package/dist/dts/datasource/datasource.d.ts.map +1 -1
  14. package/dist/dts/fdc3/fdc3.d.ts +1 -17
  15. package/dist/dts/fdc3/fdc3.d.ts.map +1 -1
  16. package/dist/dts/index.d.ts +0 -1
  17. package/dist/dts/index.d.ts.map +1 -1
  18. package/dist/dts/testing/mocks/connect/connect.d.ts +0 -1
  19. package/dist/dts/testing/mocks/connect/connect.d.ts.map +1 -1
  20. package/dist/dts/testing/mocks/connect/socket.d.ts +1 -5
  21. package/dist/dts/testing/mocks/connect/socket.d.ts.map +1 -1
  22. package/dist/dts/testing/mocks/datasource/datasource.d.ts +0 -1
  23. package/dist/dts/testing/mocks/datasource/datasource.d.ts.map +1 -1
  24. package/dist/dts/user/user.d.ts +0 -15
  25. package/dist/dts/user/user.d.ts.map +1 -1
  26. package/dist/esm/auth/auth.js +2 -5
  27. package/dist/esm/connect/connect.js +8 -30
  28. package/dist/esm/connect/http.connect.js +0 -6
  29. package/dist/esm/connect/index.js +0 -2
  30. package/dist/esm/connect/message.js +4 -25
  31. package/dist/esm/connect/socket.js +44 -113
  32. package/dist/esm/datasource/datasource.js +8 -18
  33. package/dist/esm/fdc3/fdc3.js +4 -4
  34. package/dist/esm/index.js +0 -1
  35. package/dist/esm/testing/mocks/connect/connect.js +0 -3
  36. package/dist/esm/testing/mocks/connect/socket.js +1 -1
  37. package/dist/esm/testing/mocks/datasource/datasource.js +0 -1
  38. package/dist/esm/user/user.js +1 -22
  39. package/dist/foundation-comms.api.json +6567 -13112
  40. package/dist/foundation-comms.d.ts +13 -841
  41. package/docs/api/foundation-comms.connect.md +0 -1
  42. package/docs/api/foundation-comms.currentuser.md +0 -2
  43. package/docs/api/foundation-comms.datasource.md +0 -1
  44. package/docs/api/foundation-comms.defaultconnect._constructor_.md +1 -2
  45. package/docs/api/foundation-comms.defaultconnect.md +1 -2
  46. package/docs/api/foundation-comms.defaultdatasource.md +0 -1
  47. package/docs/api/foundation-comms.defaulthttpconnect.md +0 -1
  48. package/docs/api/foundation-comms.md +0 -39
  49. package/docs/api/foundation-comms.messagebuilder.md +0 -1
  50. package/docs/api/foundation-comms.messagetype.md +0 -2
  51. package/docs/api/foundation-comms.socket.hasvalidsession.md +11 -0
  52. package/docs/api/foundation-comms.socket.isconnected.md +11 -0
  53. package/docs/api/{foundation-comms.socketstatus.isconnectedsubject.md → foundation-comms.socket.isconnectedsubject.md} +2 -2
  54. package/docs/api/foundation-comms.socket.isreconnecting.md +11 -0
  55. package/docs/api/foundation-comms.socket.md +11 -3
  56. package/docs/api/foundation-comms.socket.sendforstream.md +1 -2
  57. package/docs/api/foundation-comms.user.md +0 -2
  58. package/docs/api-report.md +16 -520
  59. package/package.json +11 -13
  60. package/dist/dts/connect/connect.events.d.ts +0 -173
  61. package/dist/dts/connect/connect.events.d.ts.map +0 -1
  62. package/dist/dts/connect/socket.status.d.ts +0 -79
  63. package/dist/dts/connect/socket.status.d.ts.map +0 -1
  64. package/dist/dts/networkMonitor/config.d.ts +0 -56
  65. package/dist/dts/networkMonitor/config.d.ts.map +0 -1
  66. package/dist/dts/networkMonitor/index.d.ts +0 -4
  67. package/dist/dts/networkMonitor/index.d.ts.map +0 -1
  68. package/dist/dts/networkMonitor/service.d.ts +0 -193
  69. package/dist/dts/networkMonitor/service.d.ts.map +0 -1
  70. package/dist/dts/networkMonitor/types.d.ts +0 -133
  71. package/dist/dts/networkMonitor/types.d.ts.map +0 -1
  72. package/dist/esm/connect/connect.events.js +0 -113
  73. package/dist/esm/connect/socket.status.js +0 -119
  74. package/dist/esm/networkMonitor/config.js +0 -46
  75. package/dist/esm/networkMonitor/index.js +0 -3
  76. package/dist/esm/networkMonitor/service.js +0 -432
  77. package/dist/esm/networkMonitor/types.js +0 -5
  78. package/docs/api/foundation-comms.commitevent.md +0 -14
  79. package/docs/api/foundation-comms.commiteventdetail.md +0 -17
  80. package/docs/api/foundation-comms.commiteventtype.md +0 -12
  81. package/docs/api/foundation-comms.connect.getmorecolumns.md +0 -26
  82. package/docs/api/foundation-comms.connectevents.addcommitlistener.md +0 -24
  83. package/docs/api/foundation-comms.connectevents.addmetadatalistener.md +0 -24
  84. package/docs/api/foundation-comms.connectevents.addstreamlistener.md +0 -25
  85. package/docs/api/foundation-comms.connectevents.md +0 -22
  86. package/docs/api/foundation-comms.connecteventsemitter.md +0 -24
  87. package/docs/api/foundation-comms.connecteventsemitter.oncommitevent.md +0 -25
  88. package/docs/api/foundation-comms.connecteventsemitter.onmetadataevent.md +0 -26
  89. package/docs/api/foundation-comms.connecteventsemitter.onstreamcompleteevent.md +0 -24
  90. package/docs/api/foundation-comms.connecteventsemitter.onstreamevent.md +0 -27
  91. package/docs/api/foundation-comms.currentuser.set.md +0 -22
  92. package/docs/api/foundation-comms.currentuser.unset.md +0 -15
  93. package/docs/api/foundation-comms.datasource.destroy.md +0 -17
  94. package/docs/api/foundation-comms.defaultconnect.getmorecolumns.md +0 -22
  95. package/docs/api/foundation-comms.defaultconnectevents.addcommitlistener.md +0 -24
  96. package/docs/api/foundation-comms.defaultconnectevents.addmetadatalistener.md +0 -24
  97. package/docs/api/foundation-comms.defaultconnectevents.addstreamlistener.md +0 -25
  98. package/docs/api/foundation-comms.defaultconnectevents.md +0 -27
  99. package/docs/api/foundation-comms.defaultconnectevents.oncommitevent.md +0 -25
  100. package/docs/api/foundation-comms.defaultconnectevents.onmetadataevent.md +0 -26
  101. package/docs/api/foundation-comms.defaultconnectevents.onstreamcompleteevent.md +0 -24
  102. package/docs/api/foundation-comms.defaultconnectevents.onstreamevent.md +0 -27
  103. package/docs/api/foundation-comms.defaultdatasource.destroy.md +0 -17
  104. package/docs/api/foundation-comms.defaulthttpconnect.getmorecolumns.md +0 -22
  105. package/docs/api/foundation-comms.defaultmessagebuilder._constructor_.md +0 -21
  106. package/docs/api/foundation-comms.defaultmessagebuilder.createchangepasswordmessage.md +0 -24
  107. package/docs/api/foundation-comms.defaultmessagebuilder.createcommitmessage.md +0 -23
  108. package/docs/api/foundation-comms.defaultmessagebuilder.createdatalogoffmessage.md +0 -22
  109. package/docs/api/foundation-comms.defaultmessagebuilder.createdatalogonmessage.md +0 -23
  110. package/docs/api/foundation-comms.defaultmessagebuilder.createforgotpasswordmessage.md +0 -24
  111. package/docs/api/foundation-comms.defaultmessagebuilder.createforgotpasswordtokenmessage.md +0 -25
  112. package/docs/api/foundation-comms.defaultmessagebuilder.createhttpheadersfrommessage.md +0 -23
  113. package/docs/api/foundation-comms.defaultmessagebuilder.createloginmessage.md +0 -22
  114. package/docs/api/foundation-comms.defaultmessagebuilder.createlogoutmessage.md +0 -22
  115. package/docs/api/foundation-comms.defaultmessagebuilder.createmetarequestmessage.md +0 -23
  116. package/docs/api/foundation-comms.defaultmessagebuilder.createmorecolumnsmessage.md +0 -22
  117. package/docs/api/foundation-comms.defaultmessagebuilder.createmorerowsmessage.md +0 -22
  118. package/docs/api/foundation-comms.defaultmessagebuilder.createrefreshtokenmessage.md +0 -15
  119. package/docs/api/foundation-comms.defaultmessagebuilder.createrequestmessage.md +0 -23
  120. package/docs/api/foundation-comms.defaultmessagebuilder.createresourcesmessage.md +0 -22
  121. package/docs/api/foundation-comms.defaultmessagebuilder.md +0 -41
  122. package/docs/api/foundation-comms.defaultnetworkmonitor.addresource.md +0 -23
  123. package/docs/api/foundation-comms.defaultnetworkmonitor.create.md +0 -16
  124. package/docs/api/foundation-comms.defaultnetworkmonitor.destroy.md +0 -16
  125. package/docs/api/foundation-comms.defaultnetworkmonitor.md +0 -31
  126. package/docs/api/foundation-comms.defaultnetworkmonitor.removeresource.md +0 -22
  127. package/docs/api/foundation-comms.defaultnetworkmonitor.runallchecks.md +0 -11
  128. package/docs/api/foundation-comms.defaultnetworkmonitor.status.md +0 -12
  129. package/docs/api/foundation-comms.defaultnetworkmonitorconfig.md +0 -13
  130. package/docs/api/foundation-comms.defaultsocket._constructor_.md +0 -24
  131. package/docs/api/foundation-comms.defaultsocket.connect.md +0 -24
  132. package/docs/api/foundation-comms.defaultsocket.hasvalidsession.md +0 -13
  133. package/docs/api/foundation-comms.defaultsocket.isconfigured.md +0 -11
  134. package/docs/api/foundation-comms.defaultsocket.isconnected.md +0 -11
  135. package/docs/api/foundation-comms.defaultsocket.isconnectedsubject.md +0 -11
  136. package/docs/api/foundation-comms.defaultsocket.isconnecting.md +0 -11
  137. package/docs/api/foundation-comms.defaultsocket.isdisconnected.md +0 -11
  138. package/docs/api/foundation-comms.defaultsocket.isdisconnectedbyserver.md +0 -11
  139. package/docs/api/foundation-comms.defaultsocket.isreconnecting.md +0 -11
  140. package/docs/api/foundation-comms.defaultsocket.md +0 -44
  141. package/docs/api/foundation-comms.defaultsocket.reset.md +0 -15
  142. package/docs/api/foundation-comms.defaultsocket.send.md +0 -23
  143. package/docs/api/foundation-comms.defaultsocket.sendforstream.md +0 -25
  144. package/docs/api/foundation-comms.defaultsocket.socketmessages.md +0 -11
  145. package/docs/api/foundation-comms.defaultsocketstatus.closedclean.md +0 -11
  146. package/docs/api/foundation-comms.defaultsocketstatus.closedcode.md +0 -11
  147. package/docs/api/foundation-comms.defaultsocketstatus.closedreason.md +0 -11
  148. package/docs/api/foundation-comms.defaultsocketstatus.hasvalidsession.md +0 -11
  149. package/docs/api/foundation-comms.defaultsocketstatus.isconfigured.md +0 -11
  150. package/docs/api/foundation-comms.defaultsocketstatus.isconnected.md +0 -11
  151. package/docs/api/foundation-comms.defaultsocketstatus.isconnectedchanged.md +0 -15
  152. package/docs/api/foundation-comms.defaultsocketstatus.isconnectedsubject.md +0 -11
  153. package/docs/api/foundation-comms.defaultsocketstatus.isconnecting.md +0 -11
  154. package/docs/api/foundation-comms.defaultsocketstatus.isdisconnected.md +0 -11
  155. package/docs/api/foundation-comms.defaultsocketstatus.isdisconnectedbyserver.md +0 -11
  156. package/docs/api/foundation-comms.defaultsocketstatus.isreconnecting.md +0 -11
  157. package/docs/api/foundation-comms.defaultsocketstatus.isreconnectingchanged.md +0 -15
  158. package/docs/api/foundation-comms.defaultsocketstatus.md +0 -42
  159. package/docs/api/foundation-comms.defaultsocketstatus.onclose.md +0 -22
  160. package/docs/api/foundation-comms.defaultsocketstatus.reconnectionlimitreached.md +0 -11
  161. package/docs/api/foundation-comms.defaultsocketstatus.resetclosedstate.md +0 -15
  162. package/docs/api/foundation-comms.defaultsocketstatus.serialize.md +0 -15
  163. package/docs/api/foundation-comms.genesisconnectevents.md +0 -18
  164. package/docs/api/foundation-comms.getnetworkmonitor.md +0 -30
  165. package/docs/api/foundation-comms.getsocket.md +0 -30
  166. package/docs/api/foundation-comms.getsocketstatus.md +0 -30
  167. package/docs/api/foundation-comms.messagebuilder.createmorecolumnsmessage.md +0 -30
  168. package/docs/api/foundation-comms.messagehaserrorcode.md +0 -13
  169. package/docs/api/foundation-comms.metadataevent.md +0 -14
  170. package/docs/api/foundation-comms.metadataeventdetail.md +0 -18
  171. package/docs/api/foundation-comms.metadataeventtype.md +0 -12
  172. package/docs/api/foundation-comms.monitoredresource.md +0 -15
  173. package/docs/api/foundation-comms.monitoredresourcechecks.md +0 -15
  174. package/docs/api/foundation-comms.monitoredresourcechecksresult.isconnected.md +0 -11
  175. package/docs/api/foundation-comms.monitoredresourcechecksresult.lastmessage.md +0 -11
  176. package/docs/api/foundation-comms.monitoredresourcechecksresult.lastupdated.md +0 -11
  177. package/docs/api/foundation-comms.monitoredresourcechecksresult.md +0 -23
  178. package/docs/api/foundation-comms.monitoredresourcechecksresult.timeout.md +0 -11
  179. package/docs/api/foundation-comms.monitoredresourcedatalogon.md +0 -15
  180. package/docs/api/foundation-comms.monitoredresourcemetadata.md +0 -15
  181. package/docs/api/foundation-comms.networklogger.md +0 -12
  182. package/docs/api/foundation-comms.networkmonitor.addresource.md +0 -23
  183. package/docs/api/foundation-comms.networkmonitor.create.md +0 -15
  184. package/docs/api/foundation-comms.networkmonitor.destroy.md +0 -15
  185. package/docs/api/foundation-comms.networkmonitor.md +0 -34
  186. package/docs/api/foundation-comms.networkmonitor.removeresource.md +0 -22
  187. package/docs/api/foundation-comms.networkmonitor.runallchecks.md +0 -23
  188. package/docs/api/foundation-comms.networkmonitor.status.md +0 -11
  189. package/docs/api/foundation-comms.networkmonitorconfig.checkinterval.md +0 -13
  190. package/docs/api/foundation-comms.networkmonitorconfig.checktimeout.md +0 -13
  191. package/docs/api/foundation-comms.networkmonitorconfig.documentevents.md +0 -13
  192. package/docs/api/foundation-comms.networkmonitorconfig.eventemitter.md +0 -13
  193. package/docs/api/foundation-comms.networkmonitorconfig.genesisconnectevents.md +0 -13
  194. package/docs/api/foundation-comms.networkmonitorconfig.md +0 -27
  195. package/docs/api/foundation-comms.networkmonitorconfig.resourcechecks.md +0 -13
  196. package/docs/api/foundation-comms.networkmonitorconfig.resourcedatalogon.md +0 -18
  197. package/docs/api/foundation-comms.networkmonitorconfig.windowevents.md +0 -13
  198. package/docs/api/foundation-comms.resourcehealth.md +0 -19
  199. package/docs/api/foundation-comms.serializedsocketstatus.closedclean.md +0 -11
  200. package/docs/api/foundation-comms.serializedsocketstatus.closedcode.md +0 -11
  201. package/docs/api/foundation-comms.serializedsocketstatus.closedreason.md +0 -11
  202. package/docs/api/foundation-comms.serializedsocketstatus.hasvalidsession.md +0 -11
  203. package/docs/api/foundation-comms.serializedsocketstatus.isconfigured.md +0 -13
  204. package/docs/api/foundation-comms.serializedsocketstatus.isconnected.md +0 -11
  205. package/docs/api/foundation-comms.serializedsocketstatus.isconnecting.md +0 -11
  206. package/docs/api/foundation-comms.serializedsocketstatus.isdisconnected.md +0 -11
  207. package/docs/api/foundation-comms.serializedsocketstatus.isdisconnectedbyserver.md +0 -11
  208. package/docs/api/foundation-comms.serializedsocketstatus.isreconnecting.md +0 -11
  209. package/docs/api/foundation-comms.serializedsocketstatus.md +0 -30
  210. package/docs/api/foundation-comms.serializedsocketstatus.reconnectionlimitreached.md +0 -11
  211. package/docs/api/foundation-comms.socketstatus.md +0 -28
  212. package/docs/api/foundation-comms.socketstatus.onclose.md +0 -22
  213. package/docs/api/foundation-comms.socketstatus.serialize.md +0 -15
  214. package/docs/api/foundation-comms.streamcompleteevent.md +0 -14
  215. package/docs/api/foundation-comms.streamcompleteeventtype.md +0 -12
  216. package/docs/api/foundation-comms.streamevent.md +0 -14
  217. package/docs/api/foundation-comms.streameventdetail.md +0 -19
  218. package/docs/api/foundation-comms.streameventfunctions.md +0 -19
  219. package/docs/api/foundation-comms.streameventtype.md +0 -12
  220. package/docs/api/foundation-comms.systemhealthchanged.md +0 -13
  221. package/docs/api/foundation-comms.systemhealthchangedevent.md +0 -15
  222. package/docs/api/foundation-comms.systemhealthstatus.md +0 -29
  223. package/docs/api/foundation-comms.user.set.md +0 -22
  224. package/docs/api/foundation-comms.user.unset.md +0 -15
@@ -4,7 +4,6 @@ import { observable, volatile } from '@microsoft/fast-element';
4
4
  import { DI, optional } from '@microsoft/fast-foundation';
5
5
  import { MetaCache } from '../metadata';
6
6
  import { isWebSocketExpression, logger } from '../utils';
7
- import { ConnectEventsEmitter } from './connect.events';
8
7
  import { ConnectConfig } from './connect.types';
9
8
  import { HttpConnect } from './http.connect';
10
9
  import { EventMessageType, MessageBuilder } from './message';
@@ -42,11 +41,10 @@ let DefaultConnect = class DefaultConnect {
42
41
  var _a;
43
42
  return (_a = this.socket.isConnectedSubject) === null || _a === void 0 ? void 0 : _a.asObservable();
44
43
  }
45
- constructor(socket, messageBuilder, metaCache, events, config = defaultConnectConfig) {
44
+ constructor(socket, messageBuilder, metaCache, config = defaultConnectConfig) {
46
45
  this.socket = socket;
47
46
  this.messageBuilder = messageBuilder;
48
47
  this.metaCache = metaCache;
49
- this.events = events;
50
48
  this.config = config;
51
49
  this.isWorking = false;
52
50
  }
@@ -81,16 +79,9 @@ let DefaultConnect = class DefaultConnect {
81
79
  });
82
80
  }
83
81
  stream(resourceName, onMessage, onError, params) {
84
- const msg = this.messageBuilder.createDataLogonMessage(resourceName, params);
85
- logger.debug(`${msg.MESSAGE_TYPE} (stream) message created -> `, msg);
86
- const resource = this.socket.sendForStream(msg, onMessage, onError, () => {
87
- this.events.onStreamCompleteEvent(resource);
88
- });
89
- this.events.onStreamEvent(resourceName, msg, resource, {
90
- onMessage,
91
- onError,
92
- });
93
- return resource;
82
+ const streamMessage = this.messageBuilder.createDataLogonMessage(resourceName, params);
83
+ logger.debug(`${streamMessage.MESSAGE_TYPE} (stream) message created -> `, streamMessage);
84
+ return this.socket.sendForStream(streamMessage, onMessage, onError);
94
85
  }
95
86
  getMoreRows(sourceRef) {
96
87
  return __awaiter(this, void 0, void 0, function* () {
@@ -99,12 +90,6 @@ let DefaultConnect = class DefaultConnect {
99
90
  return this.socket.send(moreRowsMessage, false);
100
91
  });
101
92
  }
102
- getMoreColumns(sourceRef) {
103
- return __awaiter(this, void 0, void 0, function* () {
104
- const message = this.messageBuilder.createMoreColumnsMessage(sourceRef);
105
- return this.socket.send(message);
106
- });
107
- }
108
93
  dataLogoff(streamSourceRef) {
109
94
  return __awaiter(this, void 0, void 0, function* () {
110
95
  const dataLogoffMessage = this.messageBuilder.createDataLogoffMessage(streamSourceRef);
@@ -124,7 +109,6 @@ let DefaultConnect = class DefaultConnect {
124
109
  const metaRequestMessage = this.messageBuilder.createMetaRequestMessage(resourceName);
125
110
  logger.debug(`${metaRequestMessage.MESSAGE_TYPE} (metadata) message created -> `, metaRequestMessage);
126
111
  let details;
127
- let error;
128
112
  try {
129
113
  this.isWorking = true;
130
114
  const metaResponse = yield this.socket.send(metaRequestMessage);
@@ -134,12 +118,9 @@ let DefaultConnect = class DefaultConnect {
134
118
  }
135
119
  }
136
120
  catch (e) {
137
- error = e;
138
121
  logger.error(e);
139
- throw error;
140
122
  }
141
123
  finally {
142
- this.events.onMetadataEvent(resourceName, metaRequestMessage, error);
143
124
  this.isWorking = false;
144
125
  }
145
126
  return details;
@@ -185,11 +166,9 @@ let DefaultConnect = class DefaultConnect {
185
166
  }
186
167
  commitEvent(eventName, params) {
187
168
  return __awaiter(this, void 0, void 0, function* () {
188
- const msg = this.messageBuilder.createCommitMessage(eventName, params);
189
- logger.debug(`${msg.MESSAGE_TYPE} (commit) message created -> `, msg);
190
- const promise = this.socket.send(msg);
191
- this.events.onCommitEvent(eventName, msg);
192
- return promise;
169
+ const commitMessage = this.messageBuilder.createCommitMessage(eventName, params);
170
+ logger.debug(`${commitMessage.MESSAGE_TYPE} (commit) message created -> `, commitMessage);
171
+ return this.socket.send(commitMessage);
193
172
  });
194
173
  }
195
174
  };
@@ -203,8 +182,7 @@ DefaultConnect = __decorate([
203
182
  __param(0, Socket),
204
183
  __param(1, MessageBuilder),
205
184
  __param(2, MetaCache),
206
- __param(3, ConnectEventsEmitter),
207
- __param(4, optional(ConnectConfig))
185
+ __param(3, optional(ConnectConfig))
208
186
  ], DefaultConnect);
209
187
  export { DefaultConnect };
210
188
  const useHttpConnect = FORCE_HTTP === 'true' || false;
@@ -162,12 +162,6 @@ let DefaultHttpConnect = class DefaultHttpConnect {
162
162
  return this.send(moreRowsMessage);
163
163
  });
164
164
  }
165
- getMoreColumns(sourceRef) {
166
- return __awaiter(this, void 0, void 0, function* () {
167
- const message = this.messageBuilder.createMoreColumnsMessage(sourceRef);
168
- return this.send(message);
169
- });
170
- }
171
165
  dataLogoff(streamSourceRef) {
172
166
  return __awaiter(this, void 0, void 0, function* () {
173
167
  const dataLogoffMessage = this.messageBuilder.createDataLogoffMessage(streamSourceRef);
@@ -1,10 +1,8 @@
1
- export * from './connect.events';
2
1
  export * from './connect';
3
2
  export * from './connect.types';
4
3
  export * from './http.connect';
5
4
  export * from './http';
6
5
  export * from './message';
7
6
  export * from './serializers';
8
- export * from './socket.status';
9
7
  export * from './socket';
10
8
  export * from './reconnectStrategy';
@@ -16,8 +16,6 @@ export var MessageType;
16
16
  MessageType["HEARTBEAT_PING"] = "HEARTBEAT_PING";
17
17
  MessageType["HEARTBEAT_PONG"] = "HEARTBEAT_PONG";
18
18
  MessageType["MORE_ROWS"] = "MORE_ROWS";
19
- MessageType["MORE_COLUMNS"] = "MORE_COLUMNS";
20
- MessageType["MORE_COLUMNS_ACK"] = "MORE_COLUMNS_ACK";
21
19
  MessageType["MSG_ACK"] = "MSG_ACK";
22
20
  MessageType["MSG_NACK"] = "MSG_NACK";
23
21
  MessageType["LOGOUT_ACK"] = "LOGOUT_ACK";
@@ -64,25 +62,10 @@ export const messageOrThrow = (message) => {
64
62
  }
65
63
  return message;
66
64
  };
67
- /**
68
- * Check if the message contains an error code.
69
- * @param message - The message object.
70
- * @param code - The error code.
71
- * @public
72
- */
73
- export const messageHasErrorCode = (message, code) => {
74
- return Array.isArray(message === null || message === void 0 ? void 0 : message.ERROR)
75
- ? message === null || message === void 0 ? void 0 : message.ERROR.some((error) => error.CODE === code)
76
- : false;
77
- };
78
65
  /**
79
66
  * TODO: Abstract out localStorage interaction with shell io stuff
80
67
  */
81
- /**
82
- * Default MessageBuilder implementation.
83
- * @public
84
- */
85
- let DefaultMessageBuilder = class DefaultMessageBuilder {
68
+ let MessageBuilderService = class MessageBuilderService {
86
69
  /**
87
70
  * UUID will be created in the DI with the App specific requirements.
88
71
  * Keeping it encapsulated means messages will always conform.
@@ -224,9 +207,6 @@ let DefaultMessageBuilder = class DefaultMessageBuilder {
224
207
  SESSION_AUTH_TOKEN: this.session.getSessionStorageItem('authToken'),
225
208
  };
226
209
  }
227
- createMoreColumnsMessage(sourceRef) {
228
- return Object.assign(Object.assign({}, this.createMoreRowsMessage(sourceRef)), { MESSAGE_TYPE: MessageType.MORE_COLUMNS });
229
- }
230
210
  createHTTPHeadersFromMessage(message, contentType = 'application/json; charset=UTF-8') {
231
211
  const headers = { 'Content-type': contentType };
232
212
  if (message.SOURCE_REF) {
@@ -242,13 +222,12 @@ let DefaultMessageBuilder = class DefaultMessageBuilder {
242
222
  return headers;
243
223
  }
244
224
  };
245
- DefaultMessageBuilder = __decorate([
225
+ MessageBuilderService = __decorate([
246
226
  __param(0, Session),
247
227
  __param(1, UUID)
248
- ], DefaultMessageBuilder);
249
- export { DefaultMessageBuilder };
228
+ ], MessageBuilderService);
250
229
  /**
251
230
  * The DI token for the MessageBUilder interface.
252
231
  * @internal
253
232
  */
254
- export const MessageBuilder = DI.createInterface((x) => x.singleton(DefaultMessageBuilder));
233
+ export const MessageBuilder = DI.createInterface((x) => x.singleton(MessageBuilderService));
@@ -3,14 +3,13 @@ import { UUID } from '@genesislcap/foundation-utils';
3
3
  import { JSONSerializer } from '@genesislcap/foundation-utils';
4
4
  import { observable } from '@microsoft/fast-element';
5
5
  import { DI } from '@microsoft/fast-foundation';
6
- import { Observable, of, Subject, Subscription, takeUntil, throwError } from 'rxjs';
6
+ import { BehaviorSubject, from, Observable, of, Subject, Subscription, throwError, } from 'rxjs';
7
7
  import { filter, mergeMap, switchMap, takeWhile } from 'rxjs/operators';
8
8
  import { WebSocketSubject } from 'rxjs/webSocket';
9
9
  import { Session } from '../session';
10
10
  import { logger } from '../utils';
11
11
  import { EventMessageType, MessageBuilder, MessageType } from './message';
12
12
  import { exponentialScheduler, linearScheduler, MAX_RECONNECT_ATTEMPTS, retryInterval, SocketReconnectStrategy, } from './reconnectStrategy';
13
- import { SocketStatus } from './socket.status';
14
13
  import { Ticker } from './ticker';
15
14
  /**
16
15
  * Subject that wraps a WebSocketSubject and provides a Subject interface for sending and receiving messages.
@@ -77,48 +76,23 @@ export class SocketMessageHandler {
77
76
  return this._isSubscription;
78
77
  }
79
78
  }
80
- /**
81
- * Default Socket implementation.
82
- * @public
83
- */
84
- let DefaultSocket = class DefaultSocket {
85
- get isConfigured() {
86
- return this.status.isConfigured;
87
- }
88
- get isConnecting() {
89
- return this.status.isConnecting;
90
- }
91
- get isConnected() {
92
- return this.status.isConnected;
93
- }
94
- get isConnectedSubject() {
95
- return this.status.isConnectedSubject;
96
- }
97
- get isDisconnected() {
98
- return this.status.isDisconnected;
99
- }
100
- get isDisconnectedByServer() {
101
- return this.status.isDisconnectedByServer;
102
- }
103
- get isReconnecting() {
104
- return this.status.isReconnecting;
79
+ let SocketService = class SocketService {
80
+ isConnectedChanged(_, isConnected) {
81
+ this.isConnectedSubject.next(isConnected);
105
82
  }
106
- get hasValidSession() {
107
- return this.status.hasValidSession;
108
- }
109
- set hasValidSession(value) {
110
- this.status.hasValidSession = value;
111
- }
112
- constructor(messageBuilder, session, serializer, uuid, status) {
83
+ constructor(messageBuilder, session, serializer, uuid) {
113
84
  this.messageBuilder = messageBuilder;
114
85
  this.session = session;
115
86
  this.serializer = serializer;
116
87
  this.uuid = uuid;
117
- this.status = status;
118
88
  this.defaultInterval = 10000;
119
89
  this.secondsMultiplier = 1000;
90
+ this.isConnectedSubject = new BehaviorSubject(false);
91
+ this.isConnected = false;
92
+ this.hasValidSession = false;
120
93
  this.heartbeatIsEnabled = true;
121
94
  this.heartbeatInterval = this.defaultInterval;
95
+ this.isReconnecting = false;
122
96
  this.socketMessages = () => this.wsMessages;
123
97
  }
124
98
  get heartbeatLoggingIsEnabled() {
@@ -136,7 +110,6 @@ let DefaultSocket = class DefaultSocket {
136
110
  return new Promise((resolve) => {
137
111
  var _a, _b, _c, _d;
138
112
  logger.info(`${this.isReconnecting ? 'Reconnecting' : 'Connecting'} to ${this.url}`);
139
- this.status.isConnecting = !this.isReconnecting;
140
113
  const cleanMessages = !this.isReconnecting || !((_a = this.reconnectOptions) === null || _a === void 0 ? void 0 : _a.reconnectStreams);
141
114
  if (cleanMessages) {
142
115
  this.cleanMessages();
@@ -147,7 +120,7 @@ let DefaultSocket = class DefaultSocket {
147
120
  openObserver: {
148
121
  next: () => {
149
122
  this.session.setSessionStorageItem('hostUrl', this.url);
150
- this.status.isConnected = true;
123
+ this.isConnected = true;
151
124
  this.prepareHeartbeat();
152
125
  logger.info(`WebSocket connection is now open`);
153
126
  resolve(this.isConnected);
@@ -155,8 +128,9 @@ let DefaultSocket = class DefaultSocket {
155
128
  },
156
129
  closeObserver: {
157
130
  next: (closeEvent) => {
158
- this.status.onClose(closeEvent);
159
- if (this.isDisconnectedByServer) {
131
+ this.disconnectedByServer = !closeEvent.wasClean;
132
+ this.isConnected = false;
133
+ if (this.disconnectedByServer) {
160
134
  logger.info(`WebSocket connection was closed due an error - Code: ${closeEvent.code} ${closeEvent.reason ? ' | Reason: ' + closeEvent.reason : ''}`);
161
135
  }
162
136
  resolve(this.isConnected);
@@ -222,7 +196,8 @@ let DefaultSocket = class DefaultSocket {
222
196
  }
223
197
  case MessageType.QUERY_UPDATE: {
224
198
  if (!messageHandler.isSubscription) {
225
- this.sendDataLogoff(SOURCE_REF);
199
+ const dataLogoffMessage = this.messageBuilder.createDataLogoffMessage(SOURCE_REF);
200
+ this.send(dataLogoffMessage);
226
201
  }
227
202
  break;
228
203
  }
@@ -252,7 +227,7 @@ let DefaultSocket = class DefaultSocket {
252
227
  };
253
228
  const onComplete = () => {
254
229
  var _a;
255
- if (this.isDisconnectedByServer && ((_a = this.connectOptions) === null || _a === void 0 ? void 0 : _a.alwaysOn)) {
230
+ if (this.disconnectedByServer && ((_a = this.connectOptions) === null || _a === void 0 ? void 0 : _a.alwaysOn)) {
256
231
  this.reconnect();
257
232
  return;
258
233
  }
@@ -263,7 +238,6 @@ let DefaultSocket = class DefaultSocket {
263
238
  error: onError,
264
239
  complete: onComplete,
265
240
  });
266
- this.status.isConfigured = true;
267
241
  });
268
242
  }
269
243
  prepareHeartbeat() {
@@ -301,7 +275,7 @@ let DefaultSocket = class DefaultSocket {
301
275
  if (this.isReconnecting || notAlwaysOnAndHeartbeating) {
302
276
  return;
303
277
  }
304
- this.status.isReconnecting = true;
278
+ this.isReconnecting = true;
305
279
  const scheduler = ((_c = this.reconnectOptions) === null || _c === void 0 ? void 0 : _c.reconnectStrategy) === SocketReconnectStrategy.Exponential
306
280
  ? exponentialScheduler
307
281
  : linearScheduler;
@@ -319,7 +293,6 @@ let DefaultSocket = class DefaultSocket {
319
293
  if (value < attemptsAmount) {
320
294
  return of(value);
321
295
  }
322
- this.status.reconnectionLimitReached = true;
323
296
  return throwError(() => new Error(`Max reconnect attempts ${attemptsAmount} reached.`));
324
297
  }))
325
298
  : of(-1)), takeWhile(() => this.websocket && !this.isConnected));
@@ -333,11 +306,11 @@ let DefaultSocket = class DefaultSocket {
333
306
  var _a;
334
307
  logger.debug(error);
335
308
  (_a = this.socketSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
336
- this.status.isReconnecting = false;
309
+ this.isReconnecting = false;
337
310
  },
338
311
  complete: () => {
339
312
  logger.info(this.isConnected ? 'Reconnected' : 'Disconnected');
340
- this.status.isReconnecting = false;
313
+ this.isReconnecting = false;
341
314
  this.wsMessageHandlers.forEach((mh) => {
342
315
  if (mh.isSubscription) {
343
316
  this.websocket.next(mh.sentMessage);
@@ -347,8 +320,7 @@ let DefaultSocket = class DefaultSocket {
347
320
  });
348
321
  }
349
322
  reset() {
350
- this.status.isConnected = false;
351
- this.status.isConfigured = false;
323
+ this.isConnected = false;
352
324
  this.websocket && this.websocket.complete();
353
325
  this.websocket = null;
354
326
  this.cleanMessages();
@@ -360,7 +332,8 @@ let DefaultSocket = class DefaultSocket {
360
332
  }
361
333
  send(message, needsHandling = true) {
362
334
  if (!this.isConnected) {
363
- return Promise.reject(new Error('WebSocket connection is closed'));
335
+ Promise.reject(new Error('WebSocket connection is closed'));
336
+ return;
364
337
  }
365
338
  const sendingMessasgeLog = `Sending Message for SourceRef: ${message.SOURCE_REF} | MessageType: ${message.MESSAGE_TYPE}`;
366
339
  this.logMessageTypeFlow(message.MESSAGE_TYPE, logger.info, sendingMessasgeLog);
@@ -377,7 +350,7 @@ let DefaultSocket = class DefaultSocket {
377
350
  this.websocket.next(message);
378
351
  });
379
352
  }
380
- sendForStream(message, onMessage, onError, onComplete) {
353
+ sendForStream(message, onMessage, onError) {
381
354
  if (!this.isConnected) {
382
355
  return throwError(() => new Error('WebSocket connection is closed'));
383
356
  }
@@ -388,44 +361,13 @@ let DefaultSocket = class DefaultSocket {
388
361
  this.logMessageTypeFlow(message.MESSAGE_TYPE, logger.info, sendingMessageLog);
389
362
  this.setMessageHandler(message, onMessage, onError, true);
390
363
  this.websocket.next(message);
391
- /**
392
- * @privateRemarks
393
- * Running the data logoff from here makes more sense given the network monitor actor is optionally added.
394
- */
395
- return new Observable((subscriber) => {
396
- const destroyNotifier = new Subject();
397
- this.wsMessages
398
- .pipe(filter((msg) => msg.SOURCE_REF === message.SOURCE_REF), takeUntil(destroyNotifier))
399
- .subscribe({
400
- next: (value) => {
401
- subscriber.next(value);
402
- },
403
- error: (err) => {
404
- subscriber.error(err);
405
- },
406
- complete: () => {
407
- subscriber.complete();
408
- },
409
- });
410
- return () => {
411
- destroyNotifier.complete();
412
- this.sendDataLogoff(message.SOURCE_REF);
413
- this.removeMessageHandler(message.SOURCE_REF);
414
- onComplete && onComplete();
415
- };
416
- });
364
+ return from(this.wsMessages.pipe(filter((msg) => msg.SOURCE_REF === message.SOURCE_REF)));
417
365
  }
418
366
  setMessageHandler(message, onMessage, onError, isSubscription = false) {
419
367
  const settingMessageHandlerLog = `Setting Message Handler for SourceRef: ${message.SOURCE_REF} | MessageType: ${message.MESSAGE_TYPE}`;
420
368
  this.logMessageTypeFlow(message.MESSAGE_TYPE, logger.debug, settingMessageHandlerLog);
421
369
  this.wsMessageHandlers.set(message.SOURCE_REF, new SocketMessageHandler(message, onMessage, onError, isSubscription));
422
370
  }
423
- sendDataLogoff(sourceRef) {
424
- if (!this.hasValidSession) {
425
- return;
426
- }
427
- this.send(this.messageBuilder.createDataLogoffMessage(sourceRef), false);
428
- }
429
371
  removeMessageHandler(sourceRef) {
430
372
  this.wsMessageHandlers.delete(sourceRef);
431
373
  }
@@ -436,9 +378,6 @@ let DefaultSocket = class DefaultSocket {
436
378
  }
437
379
  logMessageTypeFlow(messageType, logFunc, logMsg) {
438
380
  switch (messageType) {
439
- case EventMessageType.DATA_LOGOFF:
440
- logFunc(logMsg);
441
- break;
442
381
  case MessageType.HEARTBEAT_PING:
443
382
  case MessageType.HEARTBEAT_PONG:
444
383
  if (this.heartbeatLoggingIsEnabled) {
@@ -455,44 +394,36 @@ let DefaultSocket = class DefaultSocket {
455
394
  };
456
395
  __decorate([
457
396
  observable
458
- ], DefaultSocket.prototype, "websocket", void 0);
397
+ ], SocketService.prototype, "websocket", void 0);
398
+ __decorate([
399
+ observable
400
+ ], SocketService.prototype, "wsMessages", void 0);
401
+ __decorate([
402
+ observable
403
+ ], SocketService.prototype, "wsMessageHandlers", void 0);
459
404
  __decorate([
460
405
  observable
461
- ], DefaultSocket.prototype, "wsMessages", void 0);
406
+ ], SocketService.prototype, "isConnected", void 0);
462
407
  __decorate([
463
408
  observable
464
- ], DefaultSocket.prototype, "wsMessageHandlers", void 0);
409
+ ], SocketService.prototype, "disconnectedByServer", void 0);
465
410
  __decorate([
466
411
  observable
467
- ], DefaultSocket.prototype, "heartbeatIsEnabled", void 0);
468
- DefaultSocket = __decorate([
412
+ ], SocketService.prototype, "hasValidSession", void 0);
413
+ __decorate([
414
+ observable
415
+ ], SocketService.prototype, "heartbeatIsEnabled", void 0);
416
+ __decorate([
417
+ observable
418
+ ], SocketService.prototype, "isReconnecting", void 0);
419
+ SocketService = __decorate([
469
420
  __param(0, MessageBuilder),
470
421
  __param(1, Session),
471
422
  __param(2, JSONSerializer),
472
- __param(3, UUID),
473
- __param(4, SocketStatus)
474
- ], DefaultSocket);
475
- export { DefaultSocket };
423
+ __param(3, UUID)
424
+ ], SocketService);
476
425
  /**
477
426
  * The DI token for the Socket interface.
478
427
  * @internal
479
428
  */
480
- export const Socket = DI.createInterface((x) => x.singleton(DefaultSocket));
481
- /**
482
- * Gets Socket from the DI container.
483
- *
484
- * @remarks
485
- * A utility method for host applications that are not using decorators or the DI container.
486
- *
487
- * @example
488
- * ```ts
489
- * import { getSocket } from '@genesislcap/foundation-comms';
490
- * ...
491
- * private socket = getSocket();
492
- * ```
493
- *
494
- * @public
495
- */
496
- export function getSocket() {
497
- return DI.getOrCreateDOMContainer().get(Socket);
498
- }
429
+ export const Socket = DI.createInterface((x) => x.singleton(SocketService));
@@ -1,5 +1,5 @@
1
1
  import { __awaiter, __decorate, __param, __rest } from "tslib";
2
- import { observable } from '@microsoft/fast-element';
2
+ import { observable, volatile } from '@microsoft/fast-element';
3
3
  import { DI, optional } from '@microsoft/fast-foundation';
4
4
  import { combineLatest, from, timer } from 'rxjs';
5
5
  import { switchMap, takeWhile } from 'rxjs/operators';
@@ -60,12 +60,11 @@ let DefaultDatasource = class DefaultDatasource {
60
60
  return false;
61
61
  }
62
62
  this.options = Object.assign(Object.assign({}, this.config.options), options);
63
- const resourceName = this.options.resourceName;
64
63
  if (fetchMeta) {
65
- logger.debug(`Initializing ${resourceName} Datasource`);
64
+ logger.debug(`Initializing ${this.options.resourceName} Datasource`);
66
65
  const meta = yield this.connect
67
- .getMetadata(resourceName)
68
- .catch((e) => logger.error(`Metadata Fetch failed for ${resourceName}:`, e));
66
+ .getMetadata(this.options.resourceName)
67
+ .catch((e) => logger.error(`Metadata Fetch failed for ${options.resourceName}:`, e));
69
68
  if (!meta) {
70
69
  this.deinit();
71
70
  return false;
@@ -75,7 +74,7 @@ let DefaultDatasource = class DefaultDatasource {
75
74
  this.originalFieldDef = extractFieldDefinitions(meta);
76
75
  this.fieldMetadata = toFieldMetadata(this.originalFieldDef);
77
76
  this.requestFields = meta.REQUEST_FIELD || [];
78
- logger.debug(`Datasource for ${resourceName} is ready`);
77
+ logger.debug(`Datasource for ${this.options.resourceName} is ready`);
79
78
  }
80
79
  if (!this.options.isSnapshot) {
81
80
  this._stream = yield this.createStream();
@@ -85,23 +84,14 @@ let DefaultDatasource = class DefaultDatasource {
85
84
  });
86
85
  }
87
86
  deinit() {
88
- var _a;
89
- logger.debug('Datasource.deinit', (_a = this.options) === null || _a === void 0 ? void 0 : _a.resourceName);
90
87
  this.initialized = false;
91
- this.options = {};
88
+ this.options = undefined;
92
89
  this.resourceType = undefined;
93
90
  this.availableIndexes = [];
94
91
  this.originalFieldDef = [];
95
92
  this.fieldMetadata = [];
96
93
  this.requestFields = [];
97
94
  }
98
- /** {@inheritDoc Datasource.destroy} */
99
- destroy() {
100
- var _a;
101
- logger.debug('Datasource.destroy', (_a = this.options) === null || _a === void 0 ? void 0 : _a.resourceName);
102
- this.deinit();
103
- delete this._stream;
104
- }
105
95
  get stream() {
106
96
  return this._stream;
107
97
  }
@@ -200,8 +190,8 @@ __decorate([
200
190
  observable
201
191
  ], DefaultDatasource.prototype, "readOnly", void 0);
202
192
  __decorate([
203
- observable
204
- ], DefaultDatasource.prototype, "_stream", void 0);
193
+ volatile
194
+ ], DefaultDatasource.prototype, "stream", null);
205
195
  DefaultDatasource = __decorate([
206
196
  __param(0, Connect),
207
197
  __param(1, Auth),
@@ -10,7 +10,7 @@ import { logger } from '../utils';
10
10
  * The FDC3 implementation.
11
11
  * @internal
12
12
  */
13
- export class DefaultFDC3 {
13
+ class FDC3Service {
14
14
  constructor() {
15
15
  this.isReady = false;
16
16
  this.connect();
@@ -71,9 +71,9 @@ export class DefaultFDC3 {
71
71
  }
72
72
  __decorate([
73
73
  observable
74
- ], DefaultFDC3.prototype, "isReady", void 0);
74
+ ], FDC3Service.prototype, "isReady", void 0);
75
75
  /**
76
- * The DI token for the FDC3 interface.
76
+ * The DI token for the FDC3Service interface.
77
77
  * @internal
78
78
  */
79
- export const FDC3 = DI.createInterface((x) => x.singleton(DefaultFDC3));
79
+ export const FDC3 = DI.createInterface((x) => x.singleton(FDC3Service));
package/dist/esm/index.js CHANGED
@@ -5,7 +5,6 @@ export * from './credentialManager';
5
5
  export * from './datasource';
6
6
  export * from './fdc3';
7
7
  export * from './metadata';
8
- export * from './networkMonitor';
9
8
  export * from './session';
10
9
  export * from './storage';
11
10
  export * from './testing';
@@ -50,9 +50,6 @@ export class ConnectMock {
50
50
  getMoreRows(sourceRef) {
51
51
  return Promise.resolve(this.nextMessage);
52
52
  }
53
- getMoreColumns(sourceRef) {
54
- return Promise.resolve(this.nextMessage);
55
- }
56
53
  dataLogoff(sourceRef) {
57
54
  return Promise.resolve(this.nextMessage);
58
55
  }
@@ -15,7 +15,7 @@ export class SocketMock {
15
15
  send(message) {
16
16
  return Promise.resolve(this.nextMessage);
17
17
  }
18
- sendForStream(message, onMessage, onError, onComplete) {
18
+ sendForStream(message, onMessage, onError) {
19
19
  return from(Promise.resolve(this.nextMessage));
20
20
  }
21
21
  socketMessages() {
@@ -6,7 +6,6 @@ export class DatasourceMock {
6
6
  return Promise.resolve(this.initialized);
7
7
  }
8
8
  deinit() { }
9
- destroy() { }
10
9
  validResourceName(resourceName) {
11
10
  if (!resourceName)
12
11
  return false;
@@ -1,26 +1,12 @@
1
1
  import { __decorate } from "tslib";
2
2
  import { observable } from '@microsoft/fast-element';
3
- import { DI } from '@microsoft/fast-foundation';
4
3
  /**
5
4
  * Represents the current user (i.e. the user that is currently logged in).
6
5
  * @public
7
6
  */
8
7
  export class CurrentUser {
9
8
  constructor(options) {
10
- this.set(options);
11
- }
12
- set(options) {
13
- if (!options) {
14
- return;
15
- }
16
- this.permissions = options.permissions;
17
- this.profiles = options.profiles;
18
- this.username = options.username;
19
- }
20
- unset() {
21
- this.permissions = undefined;
22
- this.profiles = undefined;
23
- this.username = undefined;
9
+ Object.assign(this, options);
24
10
  }
25
11
  hasAdminProfile() {
26
12
  return this.hasProfile('ADMIN');
@@ -57,10 +43,3 @@ __decorate([
57
43
  __decorate([
58
44
  observable
59
45
  ], CurrentUser.prototype, "username", void 0);
60
- /**
61
- * User DI key.
62
- * @privateRemarks
63
- * Marked as internal to stop api-extractor becoming confused cross-linking tokens with the same name.
64
- * @internal
65
- */
66
- export const User = DI.createInterface((x) => x.singleton(CurrentUser));