@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.
- package/dist/dts/auth/auth.d.ts.map +1 -1
- package/dist/dts/connect/connect.d.ts +1 -11
- package/dist/dts/connect/connect.d.ts.map +1 -1
- package/dist/dts/connect/http.connect.d.ts +0 -1
- package/dist/dts/connect/http.connect.d.ts.map +1 -1
- package/dist/dts/connect/index.d.ts +0 -2
- package/dist/dts/connect/index.d.ts.map +1 -1
- package/dist/dts/connect/message.d.ts +0 -51
- package/dist/dts/connect/message.d.ts.map +1 -1
- package/dist/dts/connect/socket.d.ts +8 -72
- package/dist/dts/connect/socket.d.ts.map +1 -1
- package/dist/dts/datasource/datasource.d.ts +0 -9
- package/dist/dts/datasource/datasource.d.ts.map +1 -1
- package/dist/dts/fdc3/fdc3.d.ts +1 -17
- package/dist/dts/fdc3/fdc3.d.ts.map +1 -1
- package/dist/dts/index.d.ts +0 -1
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/testing/mocks/connect/connect.d.ts +0 -1
- package/dist/dts/testing/mocks/connect/connect.d.ts.map +1 -1
- package/dist/dts/testing/mocks/connect/socket.d.ts +1 -5
- package/dist/dts/testing/mocks/connect/socket.d.ts.map +1 -1
- package/dist/dts/testing/mocks/datasource/datasource.d.ts +0 -1
- package/dist/dts/testing/mocks/datasource/datasource.d.ts.map +1 -1
- package/dist/dts/user/user.d.ts +0 -15
- package/dist/dts/user/user.d.ts.map +1 -1
- package/dist/esm/auth/auth.js +2 -5
- package/dist/esm/connect/connect.js +8 -30
- package/dist/esm/connect/http.connect.js +0 -6
- package/dist/esm/connect/index.js +0 -2
- package/dist/esm/connect/message.js +4 -25
- package/dist/esm/connect/socket.js +44 -113
- package/dist/esm/datasource/datasource.js +8 -18
- package/dist/esm/fdc3/fdc3.js +4 -4
- package/dist/esm/index.js +0 -1
- package/dist/esm/testing/mocks/connect/connect.js +0 -3
- package/dist/esm/testing/mocks/connect/socket.js +1 -1
- package/dist/esm/testing/mocks/datasource/datasource.js +0 -1
- package/dist/esm/user/user.js +1 -22
- package/dist/foundation-comms.api.json +6567 -13112
- package/dist/foundation-comms.d.ts +13 -841
- package/docs/api/foundation-comms.connect.md +0 -1
- package/docs/api/foundation-comms.currentuser.md +0 -2
- package/docs/api/foundation-comms.datasource.md +0 -1
- package/docs/api/foundation-comms.defaultconnect._constructor_.md +1 -2
- package/docs/api/foundation-comms.defaultconnect.md +1 -2
- package/docs/api/foundation-comms.defaultdatasource.md +0 -1
- package/docs/api/foundation-comms.defaulthttpconnect.md +0 -1
- package/docs/api/foundation-comms.md +0 -39
- package/docs/api/foundation-comms.messagebuilder.md +0 -1
- package/docs/api/foundation-comms.messagetype.md +0 -2
- package/docs/api/foundation-comms.socket.hasvalidsession.md +11 -0
- package/docs/api/foundation-comms.socket.isconnected.md +11 -0
- package/docs/api/{foundation-comms.socketstatus.isconnectedsubject.md → foundation-comms.socket.isconnectedsubject.md} +2 -2
- package/docs/api/foundation-comms.socket.isreconnecting.md +11 -0
- package/docs/api/foundation-comms.socket.md +11 -3
- package/docs/api/foundation-comms.socket.sendforstream.md +1 -2
- package/docs/api/foundation-comms.user.md +0 -2
- package/docs/api-report.md +16 -520
- package/package.json +11 -13
- package/dist/dts/connect/connect.events.d.ts +0 -173
- package/dist/dts/connect/connect.events.d.ts.map +0 -1
- package/dist/dts/connect/socket.status.d.ts +0 -79
- package/dist/dts/connect/socket.status.d.ts.map +0 -1
- package/dist/dts/networkMonitor/config.d.ts +0 -56
- package/dist/dts/networkMonitor/config.d.ts.map +0 -1
- package/dist/dts/networkMonitor/index.d.ts +0 -4
- package/dist/dts/networkMonitor/index.d.ts.map +0 -1
- package/dist/dts/networkMonitor/service.d.ts +0 -193
- package/dist/dts/networkMonitor/service.d.ts.map +0 -1
- package/dist/dts/networkMonitor/types.d.ts +0 -133
- package/dist/dts/networkMonitor/types.d.ts.map +0 -1
- package/dist/esm/connect/connect.events.js +0 -113
- package/dist/esm/connect/socket.status.js +0 -119
- package/dist/esm/networkMonitor/config.js +0 -46
- package/dist/esm/networkMonitor/index.js +0 -3
- package/dist/esm/networkMonitor/service.js +0 -432
- package/dist/esm/networkMonitor/types.js +0 -5
- package/docs/api/foundation-comms.commitevent.md +0 -14
- package/docs/api/foundation-comms.commiteventdetail.md +0 -17
- package/docs/api/foundation-comms.commiteventtype.md +0 -12
- package/docs/api/foundation-comms.connect.getmorecolumns.md +0 -26
- package/docs/api/foundation-comms.connectevents.addcommitlistener.md +0 -24
- package/docs/api/foundation-comms.connectevents.addmetadatalistener.md +0 -24
- package/docs/api/foundation-comms.connectevents.addstreamlistener.md +0 -25
- package/docs/api/foundation-comms.connectevents.md +0 -22
- package/docs/api/foundation-comms.connecteventsemitter.md +0 -24
- package/docs/api/foundation-comms.connecteventsemitter.oncommitevent.md +0 -25
- package/docs/api/foundation-comms.connecteventsemitter.onmetadataevent.md +0 -26
- package/docs/api/foundation-comms.connecteventsemitter.onstreamcompleteevent.md +0 -24
- package/docs/api/foundation-comms.connecteventsemitter.onstreamevent.md +0 -27
- package/docs/api/foundation-comms.currentuser.set.md +0 -22
- package/docs/api/foundation-comms.currentuser.unset.md +0 -15
- package/docs/api/foundation-comms.datasource.destroy.md +0 -17
- package/docs/api/foundation-comms.defaultconnect.getmorecolumns.md +0 -22
- package/docs/api/foundation-comms.defaultconnectevents.addcommitlistener.md +0 -24
- package/docs/api/foundation-comms.defaultconnectevents.addmetadatalistener.md +0 -24
- package/docs/api/foundation-comms.defaultconnectevents.addstreamlistener.md +0 -25
- package/docs/api/foundation-comms.defaultconnectevents.md +0 -27
- package/docs/api/foundation-comms.defaultconnectevents.oncommitevent.md +0 -25
- package/docs/api/foundation-comms.defaultconnectevents.onmetadataevent.md +0 -26
- package/docs/api/foundation-comms.defaultconnectevents.onstreamcompleteevent.md +0 -24
- package/docs/api/foundation-comms.defaultconnectevents.onstreamevent.md +0 -27
- package/docs/api/foundation-comms.defaultdatasource.destroy.md +0 -17
- package/docs/api/foundation-comms.defaulthttpconnect.getmorecolumns.md +0 -22
- package/docs/api/foundation-comms.defaultmessagebuilder._constructor_.md +0 -21
- package/docs/api/foundation-comms.defaultmessagebuilder.createchangepasswordmessage.md +0 -24
- package/docs/api/foundation-comms.defaultmessagebuilder.createcommitmessage.md +0 -23
- package/docs/api/foundation-comms.defaultmessagebuilder.createdatalogoffmessage.md +0 -22
- package/docs/api/foundation-comms.defaultmessagebuilder.createdatalogonmessage.md +0 -23
- package/docs/api/foundation-comms.defaultmessagebuilder.createforgotpasswordmessage.md +0 -24
- package/docs/api/foundation-comms.defaultmessagebuilder.createforgotpasswordtokenmessage.md +0 -25
- package/docs/api/foundation-comms.defaultmessagebuilder.createhttpheadersfrommessage.md +0 -23
- package/docs/api/foundation-comms.defaultmessagebuilder.createloginmessage.md +0 -22
- package/docs/api/foundation-comms.defaultmessagebuilder.createlogoutmessage.md +0 -22
- package/docs/api/foundation-comms.defaultmessagebuilder.createmetarequestmessage.md +0 -23
- package/docs/api/foundation-comms.defaultmessagebuilder.createmorecolumnsmessage.md +0 -22
- package/docs/api/foundation-comms.defaultmessagebuilder.createmorerowsmessage.md +0 -22
- package/docs/api/foundation-comms.defaultmessagebuilder.createrefreshtokenmessage.md +0 -15
- package/docs/api/foundation-comms.defaultmessagebuilder.createrequestmessage.md +0 -23
- package/docs/api/foundation-comms.defaultmessagebuilder.createresourcesmessage.md +0 -22
- package/docs/api/foundation-comms.defaultmessagebuilder.md +0 -41
- package/docs/api/foundation-comms.defaultnetworkmonitor.addresource.md +0 -23
- package/docs/api/foundation-comms.defaultnetworkmonitor.create.md +0 -16
- package/docs/api/foundation-comms.defaultnetworkmonitor.destroy.md +0 -16
- package/docs/api/foundation-comms.defaultnetworkmonitor.md +0 -31
- package/docs/api/foundation-comms.defaultnetworkmonitor.removeresource.md +0 -22
- package/docs/api/foundation-comms.defaultnetworkmonitor.runallchecks.md +0 -11
- package/docs/api/foundation-comms.defaultnetworkmonitor.status.md +0 -12
- package/docs/api/foundation-comms.defaultnetworkmonitorconfig.md +0 -13
- package/docs/api/foundation-comms.defaultsocket._constructor_.md +0 -24
- package/docs/api/foundation-comms.defaultsocket.connect.md +0 -24
- package/docs/api/foundation-comms.defaultsocket.hasvalidsession.md +0 -13
- package/docs/api/foundation-comms.defaultsocket.isconfigured.md +0 -11
- package/docs/api/foundation-comms.defaultsocket.isconnected.md +0 -11
- package/docs/api/foundation-comms.defaultsocket.isconnectedsubject.md +0 -11
- package/docs/api/foundation-comms.defaultsocket.isconnecting.md +0 -11
- package/docs/api/foundation-comms.defaultsocket.isdisconnected.md +0 -11
- package/docs/api/foundation-comms.defaultsocket.isdisconnectedbyserver.md +0 -11
- package/docs/api/foundation-comms.defaultsocket.isreconnecting.md +0 -11
- package/docs/api/foundation-comms.defaultsocket.md +0 -44
- package/docs/api/foundation-comms.defaultsocket.reset.md +0 -15
- package/docs/api/foundation-comms.defaultsocket.send.md +0 -23
- package/docs/api/foundation-comms.defaultsocket.sendforstream.md +0 -25
- package/docs/api/foundation-comms.defaultsocket.socketmessages.md +0 -11
- package/docs/api/foundation-comms.defaultsocketstatus.closedclean.md +0 -11
- package/docs/api/foundation-comms.defaultsocketstatus.closedcode.md +0 -11
- package/docs/api/foundation-comms.defaultsocketstatus.closedreason.md +0 -11
- package/docs/api/foundation-comms.defaultsocketstatus.hasvalidsession.md +0 -11
- package/docs/api/foundation-comms.defaultsocketstatus.isconfigured.md +0 -11
- package/docs/api/foundation-comms.defaultsocketstatus.isconnected.md +0 -11
- package/docs/api/foundation-comms.defaultsocketstatus.isconnectedchanged.md +0 -15
- package/docs/api/foundation-comms.defaultsocketstatus.isconnectedsubject.md +0 -11
- package/docs/api/foundation-comms.defaultsocketstatus.isconnecting.md +0 -11
- package/docs/api/foundation-comms.defaultsocketstatus.isdisconnected.md +0 -11
- package/docs/api/foundation-comms.defaultsocketstatus.isdisconnectedbyserver.md +0 -11
- package/docs/api/foundation-comms.defaultsocketstatus.isreconnecting.md +0 -11
- package/docs/api/foundation-comms.defaultsocketstatus.isreconnectingchanged.md +0 -15
- package/docs/api/foundation-comms.defaultsocketstatus.md +0 -42
- package/docs/api/foundation-comms.defaultsocketstatus.onclose.md +0 -22
- package/docs/api/foundation-comms.defaultsocketstatus.reconnectionlimitreached.md +0 -11
- package/docs/api/foundation-comms.defaultsocketstatus.resetclosedstate.md +0 -15
- package/docs/api/foundation-comms.defaultsocketstatus.serialize.md +0 -15
- package/docs/api/foundation-comms.genesisconnectevents.md +0 -18
- package/docs/api/foundation-comms.getnetworkmonitor.md +0 -30
- package/docs/api/foundation-comms.getsocket.md +0 -30
- package/docs/api/foundation-comms.getsocketstatus.md +0 -30
- package/docs/api/foundation-comms.messagebuilder.createmorecolumnsmessage.md +0 -30
- package/docs/api/foundation-comms.messagehaserrorcode.md +0 -13
- package/docs/api/foundation-comms.metadataevent.md +0 -14
- package/docs/api/foundation-comms.metadataeventdetail.md +0 -18
- package/docs/api/foundation-comms.metadataeventtype.md +0 -12
- package/docs/api/foundation-comms.monitoredresource.md +0 -15
- package/docs/api/foundation-comms.monitoredresourcechecks.md +0 -15
- package/docs/api/foundation-comms.monitoredresourcechecksresult.isconnected.md +0 -11
- package/docs/api/foundation-comms.monitoredresourcechecksresult.lastmessage.md +0 -11
- package/docs/api/foundation-comms.monitoredresourcechecksresult.lastupdated.md +0 -11
- package/docs/api/foundation-comms.monitoredresourcechecksresult.md +0 -23
- package/docs/api/foundation-comms.monitoredresourcechecksresult.timeout.md +0 -11
- package/docs/api/foundation-comms.monitoredresourcedatalogon.md +0 -15
- package/docs/api/foundation-comms.monitoredresourcemetadata.md +0 -15
- package/docs/api/foundation-comms.networklogger.md +0 -12
- package/docs/api/foundation-comms.networkmonitor.addresource.md +0 -23
- package/docs/api/foundation-comms.networkmonitor.create.md +0 -15
- package/docs/api/foundation-comms.networkmonitor.destroy.md +0 -15
- package/docs/api/foundation-comms.networkmonitor.md +0 -34
- package/docs/api/foundation-comms.networkmonitor.removeresource.md +0 -22
- package/docs/api/foundation-comms.networkmonitor.runallchecks.md +0 -23
- package/docs/api/foundation-comms.networkmonitor.status.md +0 -11
- package/docs/api/foundation-comms.networkmonitorconfig.checkinterval.md +0 -13
- package/docs/api/foundation-comms.networkmonitorconfig.checktimeout.md +0 -13
- package/docs/api/foundation-comms.networkmonitorconfig.documentevents.md +0 -13
- package/docs/api/foundation-comms.networkmonitorconfig.eventemitter.md +0 -13
- package/docs/api/foundation-comms.networkmonitorconfig.genesisconnectevents.md +0 -13
- package/docs/api/foundation-comms.networkmonitorconfig.md +0 -27
- package/docs/api/foundation-comms.networkmonitorconfig.resourcechecks.md +0 -13
- package/docs/api/foundation-comms.networkmonitorconfig.resourcedatalogon.md +0 -18
- package/docs/api/foundation-comms.networkmonitorconfig.windowevents.md +0 -13
- package/docs/api/foundation-comms.resourcehealth.md +0 -19
- package/docs/api/foundation-comms.serializedsocketstatus.closedclean.md +0 -11
- package/docs/api/foundation-comms.serializedsocketstatus.closedcode.md +0 -11
- package/docs/api/foundation-comms.serializedsocketstatus.closedreason.md +0 -11
- package/docs/api/foundation-comms.serializedsocketstatus.hasvalidsession.md +0 -11
- package/docs/api/foundation-comms.serializedsocketstatus.isconfigured.md +0 -13
- package/docs/api/foundation-comms.serializedsocketstatus.isconnected.md +0 -11
- package/docs/api/foundation-comms.serializedsocketstatus.isconnecting.md +0 -11
- package/docs/api/foundation-comms.serializedsocketstatus.isdisconnected.md +0 -11
- package/docs/api/foundation-comms.serializedsocketstatus.isdisconnectedbyserver.md +0 -11
- package/docs/api/foundation-comms.serializedsocketstatus.isreconnecting.md +0 -11
- package/docs/api/foundation-comms.serializedsocketstatus.md +0 -30
- package/docs/api/foundation-comms.serializedsocketstatus.reconnectionlimitreached.md +0 -11
- package/docs/api/foundation-comms.socketstatus.md +0 -28
- package/docs/api/foundation-comms.socketstatus.onclose.md +0 -22
- package/docs/api/foundation-comms.socketstatus.serialize.md +0 -15
- package/docs/api/foundation-comms.streamcompleteevent.md +0 -14
- package/docs/api/foundation-comms.streamcompleteeventtype.md +0 -12
- package/docs/api/foundation-comms.streamevent.md +0 -14
- package/docs/api/foundation-comms.streameventdetail.md +0 -19
- package/docs/api/foundation-comms.streameventfunctions.md +0 -19
- package/docs/api/foundation-comms.streameventtype.md +0 -12
- package/docs/api/foundation-comms.systemhealthchanged.md +0 -13
- package/docs/api/foundation-comms.systemhealthchangedevent.md +0 -15
- package/docs/api/foundation-comms.systemhealthstatus.md +0 -29
- package/docs/api/foundation-comms.user.set.md +0 -22
- package/docs/api/foundation-comms.user.unset.md +0 -15
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../src/auth/auth.ts"],"names":[],"mappings":"AAEA,OAAO,EAAmB,UAAU,EAAE,MAAM,MAAM,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAGL,cAAc,EAIf,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../src/auth/auth.ts"],"names":[],"mappings":"AAEA,OAAO,EAAmB,UAAU,EAAE,MAAM,MAAM,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAGL,cAAc,EAIf,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAe,IAAI,EAAE,MAAM,SAAS,CAAC;AAE5C,OAAO,EAAa,QAAQ,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE9E;;;GAGG;AACH,MAAM,WAAW,IAAI;IACnB;;;OAGG;IACH,SAAS,EAAE,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,OAAO,CAAC,gBAAgB;IAoBxB;;;OAGG;IACH,OAAO,CAAC,iBAAiB;CAI1B;AAED;;;GAGG;AACH,eAAO,MAAM,IAAI,4DAA4D,CAAC"}
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { BehaviorSubject, Observable } from 'rxjs';
|
2
2
|
import type { Metadata, SchemaResponse } from '../metadata';
|
3
3
|
import { MetaCache } from '../metadata';
|
4
|
-
import { ConnectEventsEmitter } from './connect.events';
|
5
4
|
import { ConnectConfig } from './connect.types';
|
6
5
|
import { CommitParams, Message, MessageBuilder, RequestParams } from './message';
|
7
6
|
import type { SocketObservable } from './socket';
|
@@ -97,13 +96,6 @@ export interface Connect {
|
|
97
96
|
* @returns A promise that resolves with the additional rows of data.
|
98
97
|
*/
|
99
98
|
getMoreRows(sourceRef: string): Promise<Message>;
|
100
|
-
/**
|
101
|
-
* Requests additional columns for the specified source reference.
|
102
|
-
* @public
|
103
|
-
* @param sourceRef - The source reference to request more columns for.
|
104
|
-
* @returns A promise that resolves with the additional columns.
|
105
|
-
*/
|
106
|
-
getMoreColumns(sourceRef: string): Promise<Message>;
|
107
99
|
/**
|
108
100
|
* Logs off from the specified data source.
|
109
101
|
* @public
|
@@ -157,13 +149,12 @@ export declare class DefaultConnect implements Connect {
|
|
157
149
|
socket: Socket;
|
158
150
|
private messageBuilder;
|
159
151
|
private metaCache;
|
160
|
-
private events;
|
161
152
|
private config;
|
162
153
|
isWorking: boolean;
|
163
154
|
get isConnected(): boolean;
|
164
155
|
get isConnectedSubject(): BehaviorSubject<boolean>;
|
165
156
|
get isConnected$(): Observable<boolean>;
|
166
|
-
constructor(socket: Socket, messageBuilder: MessageBuilder, metaCache: MetaCache,
|
157
|
+
constructor(socket: Socket, messageBuilder: MessageBuilder, metaCache: MetaCache, config?: ConnectConfig);
|
167
158
|
httpMode(): boolean;
|
168
159
|
setValidSession(valid: boolean): void;
|
169
160
|
send<T>(message: Message<any>, needsHandling?: boolean): Promise<any>;
|
@@ -172,7 +163,6 @@ export declare class DefaultConnect implements Connect {
|
|
172
163
|
snapshot(resourceName: string, params?: any): Promise<Message>;
|
173
164
|
stream(resourceName: string, onMessage: Function, onError: Function, params?: any): SocketObservable<Message>;
|
174
165
|
getMoreRows(sourceRef: string): Promise<Message>;
|
175
|
-
getMoreColumns(sourceRef: string): Promise<Message>;
|
176
166
|
dataLogoff(streamSourceRef: string): Promise<Message>;
|
177
167
|
getMetadata(resourceName: string, useCache?: boolean): Promise<Metadata>;
|
178
168
|
getJSONSchema(resourceName: string, useCache?: boolean): Promise<SchemaResponse>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"connect.d.ts","sourceRoot":"","sources":["../../../src/connect/connect.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AACnD,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"connect.d.ts","sourceRoot":"","sources":["../../../src/connect/connect.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AACnD,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,EAAE,YAAY,EAAoB,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AACnG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,aAalC,CAAC;AAEF;;;;GAIG;AACH,MAAM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MAAM,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,OAAO,CAAC;IAMpE,MAAM,CACX,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,QAAQ,EACnB,OAAO,EAAE,QAAQ,EACjB,MAAM,CAAC,EAAE,GAAG,GACX,gBAAgB,CAAC,OAAO,CAAC;IAMf,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAMhD,UAAU,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAMrD,WAAW,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,GAAE,OAAc,GAAG,OAAO,CAAC,QAAQ,CAAC;IA+B9E,aAAa,CACxB,YAAY,EAAE,MAAM,EACpB,QAAQ,GAAE,OAAc,GACvB,OAAO,CAAC,cAAc,CAAC;IAiCnB,OAAO,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,OAAO,CAAC;IASvE,qBAAqB,CAAC,MAAM,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,OAAO,CAAC;IAM/C,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,OAAO,CAAC;CAKrF;AAID;;;GAGG;AACH,eAAO,MAAM,SAAS,+DAAkE,CAAC;AAEzF;;;GAGG;AACH,eAAO,MAAM,OAAO,+DAEnB,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,UAAU,IAAI,OAAO,CAEpC"}
|
@@ -54,7 +54,6 @@ export declare class DefaultHttpConnect implements Connect {
|
|
54
54
|
stream(resourceName: string, onMessage: Function, onError: Function, params?: any): SocketObservable<Message>;
|
55
55
|
private getMessage;
|
56
56
|
getMoreRows(sourceRef: string): Promise<Message>;
|
57
|
-
getMoreColumns(sourceRef: string): Promise<Message>;
|
58
57
|
dataLogoff(streamSourceRef: string): Promise<Message>;
|
59
58
|
getMetadata(resourceName: string, useCache?: boolean): Promise<Metadata>;
|
60
59
|
getJSONSchema(resourceName: string): Promise<SchemaResponse>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"http.connect.d.ts","sourceRoot":"","sources":["../../../src/connect/http.connect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAG5E,OAAO,EACL,eAAe,EAKf,UAAU,EAGX,MAAM,MAAM,CAAC;AACd,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EACL,YAAY,EAEZ,OAAO,EACP,cAAc,EAGd,aAAa,EACd,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAgB5C;;;GAGG;AACH,eAAO,MAAM,wBAAwB,EAAE,iBAqBtC,CAAC;AAEF;;;GAGG;AACH,qBAAa,kBAAmB,YAAW,OAAO;IAqCjC,IAAI,EAAE,IAAI;IACP,OAAO,CAAC,cAAc;IAC7B,OAAO,CAAC,OAAO;IACb,OAAO,CAAC,SAAS;IACZ,OAAO,CAAC,UAAU;IACL,OAAO,CAAC,MAAM;IAxCtC,IAAI,EAAE,MAAM,CAAC;IAGb,SAAS,UAAS;IAGzB,OAAO,CAAC,YAAY,CAAkB;IAItC,kBAAkB,2BAA0C;IAE5D,YAAY,EAAE,UAAU,CAAC,OAAO,CAAC,CAA2C;IAE5E,IACW,WAAW,IAAI,OAAO,CAEhC;IAED,IAAI,WAAW,CAAC,KAAK,EAJK,OA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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';
|
11
9
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/connect/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/connect/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,qBAAqB,CAAC"}
|
@@ -1,6 +1,4 @@
|
|
1
|
-
import { UUID } from '@genesislcap/foundation-utils';
|
2
1
|
import { AuthInfo, LoginResult } from '../auth/auth.types';
|
3
|
-
import { Session } from '../session';
|
4
2
|
/**
|
5
3
|
* General Message types
|
6
4
|
* @public
|
@@ -13,8 +11,6 @@ export declare enum MessageType {
|
|
13
11
|
HEARTBEAT_PING = "HEARTBEAT_PING",
|
14
12
|
HEARTBEAT_PONG = "HEARTBEAT_PONG",
|
15
13
|
MORE_ROWS = "MORE_ROWS",
|
16
|
-
MORE_COLUMNS = "MORE_COLUMNS",
|
17
|
-
MORE_COLUMNS_ACK = "MORE_COLUMNS_ACK",
|
18
14
|
MSG_ACK = "MSG_ACK",
|
19
15
|
MSG_NACK = "MSG_NACK",
|
20
16
|
LOGOUT_ACK = "LOGOUT_ACK",
|
@@ -237,13 +233,6 @@ export type CommitParams = {
|
|
237
233
|
* @returns The message if no errors are present, otherwise throws an Error
|
238
234
|
*/
|
239
235
|
export declare const messageOrThrow: (message: Message) => Message<any>;
|
240
|
-
/**
|
241
|
-
* Check if the message contains an error code.
|
242
|
-
* @param message - The message object.
|
243
|
-
* @param code - The error code.
|
244
|
-
* @public
|
245
|
-
*/
|
246
|
-
export declare const messageHasErrorCode: (message: Message, code: string | number) => boolean;
|
247
236
|
/**
|
248
237
|
* A utility class for building different types of messages.
|
249
238
|
* @public
|
@@ -296,15 +285,6 @@ export interface MessageBuilder {
|
|
296
285
|
* @returns The more rows message.
|
297
286
|
*/
|
298
287
|
createMoreRowsMessage(sourceRef: string): Message;
|
299
|
-
/**
|
300
|
-
* Creates a message to request more columns.
|
301
|
-
*
|
302
|
-
* @remarks MORE_COLUMNS
|
303
|
-
* @public
|
304
|
-
* @param sourceRef - The source reference.
|
305
|
-
* @returns The more columns message.
|
306
|
-
*/
|
307
|
-
createMoreColumnsMessage(sourceRef: string): Message;
|
308
288
|
/**
|
309
289
|
* Creates a request message.
|
310
290
|
*
|
@@ -394,37 +374,6 @@ export interface MessageBuilder {
|
|
394
374
|
*/
|
395
375
|
createHTTPHeadersFromMessage(message: Message, contentType?: string): HeadersInit;
|
396
376
|
}
|
397
|
-
/**
|
398
|
-
* TODO: Abstract out localStorage interaction with shell io stuff
|
399
|
-
*/
|
400
|
-
/**
|
401
|
-
* Default MessageBuilder implementation.
|
402
|
-
* @public
|
403
|
-
*/
|
404
|
-
export declare class DefaultMessageBuilder implements MessageBuilder {
|
405
|
-
private session;
|
406
|
-
private uuid;
|
407
|
-
/**
|
408
|
-
* UUID will be created in the DI with the App specific requirements.
|
409
|
-
* Keeping it encapsulated means messages will always conform.
|
410
|
-
*/
|
411
|
-
constructor(session: Session, uuid: UUID);
|
412
|
-
createLoginMessage(credentials: AuthInfo): Message<MessageDetails.Login>;
|
413
|
-
createLogoutMessage(loginResult?: LoginResult): Message;
|
414
|
-
createDataLogonMessage(resourceName: string, params?: any): Message<MessageDetails.DataserverRequest>;
|
415
|
-
createDataLogoffMessage<T = any>(sourceRef: string): Message<T>;
|
416
|
-
createRequestMessage<T = any>(resourceName: string, params?: RequestParams): Message<T>;
|
417
|
-
createResourcesMessage<T = any>(params?: RequestParams): Message<T>;
|
418
|
-
createMetaRequestMessage(resourceName: string, messageType?: EventMessageType): Message<MessageDetails.MetaRequest>;
|
419
|
-
createCommitMessage<T = any>(eventName: string, params?: CommitParams): Message<T>;
|
420
|
-
createRefreshTokenMessage(): Message<MessageDetails.RefreshToken>;
|
421
|
-
createChangePasswordMessage(username: string, oldPassword: string, newPassword: string): Message<MessageDetails.ChangePassword>;
|
422
|
-
createForgotPasswordMessage(username: string, returnUrl: string, requester?: string): Message<MessageDetails.ForgotPassword>;
|
423
|
-
createForgotPasswordTokenMessage(username: string, resetToken: string, newPassword: string, requester?: string): Message<MessageDetails.ForgotPasswordToken>;
|
424
|
-
createMoreRowsMessage(sourceRef: string): Message;
|
425
|
-
createMoreColumnsMessage(sourceRef: string): Message;
|
426
|
-
createHTTPHeadersFromMessage(message: Message, contentType?: string): HeadersInit;
|
427
|
-
}
|
428
377
|
/**
|
429
378
|
* The DI token for the MessageBUilder interface.
|
430
379
|
* @internal
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../../src/connect/message.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../../src/connect/message.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAY,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGrE;;;GAGG;AACH,oBAAY,WAAW;IACrB,SAAS,cAAc;IACvB,UAAU,eAAe;IAEzB,UAAU,eAAe;IACzB,WAAW,gBAAgB;IAE3B,cAAc,mBAAmB;IACjC,cAAc,mBAAmB;IAEjC,SAAS,cAAc;IAEvB,OAAO,YAAY;IACnB,QAAQ,aAAa;IAErB,UAAU,eAAe;IACzB,WAAW,gBAAgB;IAE3B,YAAY,iBAAiB;CAC9B;AAED;;;GAGG;AACH,oBAAY,gBAAgB;IAC1B,gBAAgB,qBAAqB;IACrC,oBAAoB,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AAC,cAAc,CAAC,CAAC;IAE1C;;;;;;;;;OASG;IACH,2BAA2B,CACzB,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,EACjB,SAAS,CAAC,EAAE,MAAM,GACjB,OAAO,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;IAE1C;;;;;;;;;OASG;IACH,gCAAgC,CAC9B,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,EAClB,WAAW,EAAE,MAAM,EACnB,SAAS,CAAC,EAAE,MAAM,GACjB,OAAO,CAAC,cAAc,CAAC,mBAAmB,CAAC,CAAC;IAE/C;;;;;;;OAOG;IACH,4BAA4B,CAAC,OAAO,EAAE,OAAO,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC;CACnF;AAwND;;;GAGG;AACH,eAAO,MAAM,cAAc,sEAE1B,CAAC"}
|
@@ -1,10 +1,6 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import { Observable, Observer, Subject, Subscription } from 'rxjs';
|
4
|
-
import { Session } from '../session';
|
5
|
-
import { Message, MessageBuilder } from './message';
|
1
|
+
import { BehaviorSubject, Observable, Observer, Subject, Subscription } from 'rxjs';
|
2
|
+
import { Message } from './message';
|
6
3
|
import { SocketReconnectOptions } from './reconnectStrategy';
|
7
|
-
import { SocketStatus } from './socket.status';
|
8
4
|
/**
|
9
5
|
* Subject that wraps a WebSocketSubject and provides a Subject interface for sending and receiving messages.
|
10
6
|
* @public
|
@@ -114,83 +110,23 @@ export declare class SocketMessageHandler {
|
|
114
110
|
* Provides methods for socket connection, sending and receiving WS messages.
|
115
111
|
* @public
|
116
112
|
*/
|
117
|
-
export interface Socket
|
113
|
+
export interface Socket {
|
114
|
+
isConnected: boolean;
|
115
|
+
isReconnecting: boolean;
|
116
|
+
hasValidSession: boolean;
|
117
|
+
isConnectedSubject: BehaviorSubject<boolean>;
|
118
118
|
connect(host: string, options?: SocketConnectOptions, reconnectOptions?: SocketReconnectOptions): Promise<boolean>;
|
119
119
|
/**
|
120
120
|
* Disconnects the socket and clears all subscriptions
|
121
121
|
*/
|
122
122
|
reset(): void;
|
123
123
|
send<T>(message: Message<T | any>, needsHandling?: boolean): Promise<Message | any>;
|
124
|
-
sendForStream<T>(message: Message<T | any>, onMessage: Function, onError: Function
|
124
|
+
sendForStream<T>(message: Message<T | any>, onMessage: Function, onError: Function): Observable<Message>;
|
125
125
|
socketMessages(): SocketSubject<Message>;
|
126
126
|
}
|
127
|
-
/**
|
128
|
-
* Default Socket implementation.
|
129
|
-
* @public
|
130
|
-
*/
|
131
|
-
export declare class DefaultSocket implements Socket {
|
132
|
-
private messageBuilder;
|
133
|
-
private session;
|
134
|
-
private serializer;
|
135
|
-
private uuid;
|
136
|
-
private status;
|
137
|
-
private readonly defaultInterval;
|
138
|
-
private readonly secondsMultiplier;
|
139
|
-
private websocket;
|
140
|
-
private wsMessages;
|
141
|
-
private wsMessageHandlers;
|
142
|
-
get isConfigured(): boolean;
|
143
|
-
get isConnecting(): boolean;
|
144
|
-
get isConnected(): boolean;
|
145
|
-
get isConnectedSubject(): import("rxjs").BehaviorSubject<boolean>;
|
146
|
-
get isDisconnected(): boolean;
|
147
|
-
get isDisconnectedByServer(): boolean;
|
148
|
-
get isReconnecting(): boolean;
|
149
|
-
get hasValidSession(): boolean;
|
150
|
-
set hasValidSession(value: boolean);
|
151
|
-
private heartbeatIsEnabled;
|
152
|
-
private heartbeatInterval;
|
153
|
-
private heartbeatTicker;
|
154
|
-
private url;
|
155
|
-
private connectOptions;
|
156
|
-
private reconnectOptions;
|
157
|
-
private socketSubscription;
|
158
|
-
constructor(messageBuilder: MessageBuilder, session: Session, serializer: JSONSerializer, uuid: UUID, status: SocketStatus);
|
159
|
-
private get heartbeatLoggingIsEnabled();
|
160
|
-
private get messageLoggingIsEnabled();
|
161
|
-
connect(host: string, connectOptions?: SocketConnectOptions, reconnectOptions?: SocketReconnectOptions): Promise<boolean>;
|
162
|
-
private prepareHeartbeat;
|
163
|
-
private reconnect;
|
164
|
-
reset(): void;
|
165
|
-
private cleanMessages;
|
166
|
-
send<T>(message: Message<T | any>, needsHandling?: boolean): Promise<Message | any>;
|
167
|
-
sendForStream<T>(message: Message<T | any>, onMessage: Function, onError: Function, onComplete?: Function): Observable<Message>;
|
168
|
-
socketMessages: () => SocketSubject<Message>;
|
169
|
-
private setMessageHandler;
|
170
|
-
private sendDataLogoff;
|
171
|
-
private removeMessageHandler;
|
172
|
-
private getMessageHandler;
|
173
|
-
private logMessageTypeFlow;
|
174
|
-
}
|
175
127
|
/**
|
176
128
|
* The DI token for the Socket interface.
|
177
129
|
* @internal
|
178
130
|
*/
|
179
131
|
export declare const Socket: import("@microsoft/fast-foundation").InterfaceSymbol<Socket>;
|
180
|
-
/**
|
181
|
-
* Gets Socket from the DI container.
|
182
|
-
*
|
183
|
-
* @remarks
|
184
|
-
* A utility method for host applications that are not using decorators or the DI container.
|
185
|
-
*
|
186
|
-
* @example
|
187
|
-
* ```ts
|
188
|
-
* import { getSocket } from '@genesislcap/foundation-comms';
|
189
|
-
* ...
|
190
|
-
* private socket = getSocket();
|
191
|
-
* ```
|
192
|
-
*
|
193
|
-
* @public
|
194
|
-
*/
|
195
|
-
export declare function getSocket(): Socket;
|
196
132
|
//# sourceMappingURL=socket.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"socket.d.ts","sourceRoot":"","sources":["../../../src/connect/socket.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"socket.d.ts","sourceRoot":"","sources":["../../../src/connect/socket.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,eAAe,EAEf,UAAU,EACV,QAAQ,EAER,OAAO,EACP,YAAY,EAEb,MAAM,MAAM,CAAC;AAKd,OAAO,EAAoB,OAAO,EAA+C,MAAM,WAAW,CAAC;AACnG,OAAO,EAKL,sBAAsB,EAEvB,MAAM,qBAAqB,CAAC;AAG7B;;;;GAIG;AACH,qBAAa,aAAa,CAAC,CAAC,CAAE,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AAW,EAAE,OAAO,CAAC;IACrB,cAAc,EAAE,OAAO,CAAC;IACxB,eAAe,EAAE,OAAO,CAAC;IACzB,kBAAkB,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC;IAE7C,OAAO,CACL,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,oBAAoB,EAC9B,gBAAgB,CAAC,EAAE,sBAAsB,GACxC,OAAO,CAAC,OAAO,CAAC,CAAC;IAEpB;;OAEG;IACH,KAAK,IAAI,IAAI,CAAC;IAEd,IAAI,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,GAAG,GAAG,CAAC,EAAE,aAAa,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,GAAG,GAAG,CAAC,CAAC;IACpF,aAAa,CAAC,CAAC,EACb,OAAO,EAAE,OAAO,CAAC,CAAC,GAAG,GAAG,CAAC,EACzB,SAAS,EAAE,QAAQ,EACnB,OAAO,EAAE,QAAQ,GAChB,UAAU,CAAC,OAAO,CAAC,CAAC;IAEvB,cAAc,IAAI,aAAa,CAAC,OAAO,CAAC,CAAC;CAC1C;AAucD;;;GAGG;AACH,eAAO,MAAM,MAAM,8DAAgE,CAAC"}
|
@@ -143,13 +143,6 @@ export interface Datasource {
|
|
143
143
|
* @returns A promise that resolves when the item has been updated.
|
144
144
|
*/
|
145
145
|
updateItem?(itemId: string, data: any): Promise<void>;
|
146
|
-
/**
|
147
|
-
* Destroy the datasource.
|
148
|
-
* @privateRemarks
|
149
|
-
* I suspect we may need to call this from datasource disconnectedCallbacks etc to ensure we fully clean up.
|
150
|
-
* @public
|
151
|
-
*/
|
152
|
-
destroy(): void;
|
153
146
|
}
|
154
147
|
/**
|
155
148
|
* The default implementation for the Datasource interface.
|
@@ -172,8 +165,6 @@ export declare class DefaultDatasource implements Datasource {
|
|
172
165
|
validResourceName(resourceName: string): boolean;
|
173
166
|
init(options: DatasourceOptions, fetchMeta?: boolean): Promise<boolean>;
|
174
167
|
deinit(): void;
|
175
|
-
/** {@inheritDoc Datasource.destroy} */
|
176
|
-
destroy(): void;
|
177
168
|
get stream(): SocketObservable<FilteredDataServerResult | RequestServerResult>;
|
178
169
|
get params(): any;
|
179
170
|
snapshot(): Promise<Message>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"datasource.d.ts","sourceRoot":"","sources":["../../../src/datasource/datasource.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAChE,OAAO,KAAK,EACV,aAAa,EACb,wBAAwB,EACxB,WAAW,EACX,cAAc,EAEd,mBAAmB,EACpB,MAAM,4BAA4B,CAAC;AAKpC,OAAO,KAAK,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAsB,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAExF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,EAAE,gBAcrC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,WAAW,EAAE,OAAO,CAAC;IAErB;;;OAGG;IACH,aAAa,EAAE,aAAa,EAAE,CAAC;IAE/B;;;;OAIG;IACH,QAAQ,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,YAAY,EAAE,YAAY,CAAC;IAE3B;;;OAGG;IACH,MAAM,EAAE,gBAAgB,CAAC,wBAAwB,GAAG,mBAAmB,CAAC,CAAC;IAEzE;;;OAGG;IACH,iBAAiB,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC;IAEjD;;;;;;OAMG;IACH,IAAI,CAAC,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAEvE;;;;OAIG;IACH,MAAM,QAAG;IAET;;;;;OAKG;IACH,WAAW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,mBAAmB,CAAC,CAAC;IAEpF,SAAS,CAAC,gBAAgB,EAAE,cAAc,EAAE,CAAM;IAClD,SAAS,CAAC,aAAa,EAAE,cAAc,EAAE,CAAM;IACxC,aAAa,EAAE,aAAa,EAAE,CAAM;IAC3C,SAAS,CAAC,gBAAgB,EAAE,WAAW,EAAE,CAAM;gBAG1B,OAAO,EAAE,OAAO,EACnB,IAAI,EAAE,IAAI,EACY,MAAM,mBAA0B;IAGjE,iBAAiB,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO;IAOjD,IAAI,CAAC,OAAO,EAAE,iBAAiB,EAAE,SAAS,GAAE,OAAc,GAAG,OAAO,CAAC,OAAO,CAAC;IAqCnF,MAAM;IAUN,IACI,MAAM,IAAI,gBAAgB,CAAC,wBAAwB,GAAG,mBAAmB,CAAC,CAE7E;IAED,IAAI,MAAM,QA4BT;IAEK,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC;IA2B5B,gBAAgB,CAAC,KAAK,GAAE,MAAkB;YAYlC,YAAY;YAeZ,sBAAsB;IAMpC,OAAO,CAAC,kBAAkB;CAY3B;AAED;;;GAGG;AACH,eAAO,MAAM,UAAU,kEAAwE,CAAC;AAEhG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,aAAa,IAAI,UAAU,CAE1C"}
|
package/dist/dts/fdc3/fdc3.d.ts
CHANGED
@@ -93,23 +93,7 @@ interface FDC3 {
|
|
93
93
|
broadcastOnChannel(channelId: string, context: FDC3Context): Promise<void>;
|
94
94
|
}
|
95
95
|
/**
|
96
|
-
* The
|
97
|
-
* @internal
|
98
|
-
*/
|
99
|
-
export declare class DefaultFDC3 implements FDC3 {
|
100
|
-
isReady: boolean;
|
101
|
-
constructor();
|
102
|
-
private connect;
|
103
|
-
addIntentListeners(listeners: Map<FDC3Intents, FDC3ContextHandler>): void;
|
104
|
-
findIntent(intent: FDC3Intents, context?: FDC3Context): Promise<FDC3AppIntent>;
|
105
|
-
findIntentsByContext(context: FDC3Context): Promise<FDC3AppIntent[]>;
|
106
|
-
raiseIntent(context: FDC3Context, intent?: FDC3Intents): Promise<FDC3IntentResolution>;
|
107
|
-
joinChannel(channelId: string): Promise<void>;
|
108
|
-
getOrCreateChannel(channelId: string): Promise<FDC3Channel>;
|
109
|
-
broadcastOnChannel(channelId: string, context: FDC3Context): Promise<void>;
|
110
|
-
}
|
111
|
-
/**
|
112
|
-
* The DI token for the FDC3 interface.
|
96
|
+
* The DI token for the FDC3Service interface.
|
113
97
|
* @internal
|
114
98
|
*/
|
115
99
|
export declare const FDC3: import("@microsoft/fast-foundation").InterfaceSymbol<FDC3>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"fdc3.d.ts","sourceRoot":"","sources":["../../../src/fdc3/fdc3.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAEL,SAAS,EACT,OAAO,EACP,OAAO,EACP,cAAc,EAMd,OAAO,EACP,gBAAgB,EAKjB,MAAM,aAAa,CAAC;AAKrB;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC;AAElC;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC;AAEhD;;GAEG;AACH,MAAM,WAAW,aAAc,SAAQ,SAAS;CAAG;AAEnD;;GAEG;AACH,MAAM,WAAW,WAAY,SAAQ,OAAO;CAAG;AAE/C;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAAQ,gBAAgB;CAAG;AAEjE;;GAEG;AACH,MAAM,WAAW,WAAY,SAAQ,OAAO;CAAG;AAE/C;;;GAGG;AACH,UAAU,IAAI;IACZ;;;OAGG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;;;OAIG;IACH,kBAAkB,CAAC,SAAS,EAAE,GAAG,CAAC,WAAW,EAAE,kBAAkB,CAAC,GAAG,IAAI,CAAC;IAE1E;;;;;;OAMG;IACH,UAAU,CAAC,MAAM,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE,WAAW,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GAAG,CAAC,WAAW,EAAE,kBAAkB,CAAC,GAAG,IAAI,CAAC;IAE1E;;;;;;OAMG;IACH,UAAU,CAAC,MAAM,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IAE/E;;;;;OAKG;IACH,oBAAoB,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC,CAAC;IAErE;;;;;;OAMG;IACH,WAAW,CAAC,OAAO,EAAE,WAAW,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAEvF;;;;;OAKG;IACH,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE9C;;;;;OAKG;IACH,kBAAkB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IAE5D;;;;;;OAMG;IACH,kBAAkB,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5E;AAyED;;;GAGG;AACH,eAAO,MAAM,IAAI,4DAA4D,CAAC"}
|
package/dist/dts/index.d.ts
CHANGED
package/dist/dts/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC"}
|
@@ -25,7 +25,6 @@ export declare class ConnectMock implements Connect {
|
|
25
25
|
snapshot(resourceName: string, params?: any): Promise<Message>;
|
26
26
|
stream(resourceName: string, onMessage: Function, onError: Function, params?: any): SocketObservable<Message>;
|
27
27
|
getMoreRows(sourceRef: string): Promise<Message<any>>;
|
28
|
-
getMoreColumns(sourceRef: string): Promise<Message<any>>;
|
29
28
|
dataLogoff(sourceRef: string): Promise<Message<any>>;
|
30
29
|
getJSONSchema(resourceName: string): Promise<any>;
|
31
30
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"connect.d.ts","sourceRoot":"","sources":["../../../../../src/testing/mocks/connect/connect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAQ,UAAU,EAAE,MAAM,MAAM,CAAC;AACzD,OAAO,EACL,YAAY,EACZ,OAAO,EACP,OAAO,EACP,QAAQ,EACR,aAAa,EACb,UAAU,EACV,gBAAgB,EACjB,MAAM,WAAW,CAAC;AAEnB;;GAEG;AACH,qBAAa,WAAY,YAAW,OAAO;IACzC,WAAW,EAAE,OAAO,CAAQ;IAC5B,SAAS,EAAE,OAAO,CAAS;IAC3B,MAAM,EAAE,UAAU,CAAC;IAEnB,IAAI,kBAAkB,IAAI,eAAe,CAAC,OAAO,CAAC,CAEjD;IAED,IAAI,YAAY,IAAI,UAAU,CAAC,OAAO,CAAC,CAEtC;IAED,IAAI,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,EAAE,aAAa,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC;IAIrE,eAAe,C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AAO,CAAC;IAI5B,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAIrD,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAIpD,aAAa,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;CAGlD"}
|
@@ -5,11 +5,7 @@ import { SocketSubject } from '../../../connect';
|
|
5
5
|
* @internal
|
6
6
|
*/
|
7
7
|
export declare class SocketMock implements Socket {
|
8
|
-
isConfigured: boolean;
|
9
|
-
isDisconnected: boolean;
|
10
|
-
isDisconnectedByServer: boolean;
|
11
8
|
hasValidSession: boolean;
|
12
|
-
isConnecting: boolean;
|
13
9
|
isConnected: boolean;
|
14
10
|
isConnectedSubject: BehaviorSubject<boolean>;
|
15
11
|
isReconnecting: boolean;
|
@@ -18,7 +14,7 @@ export declare class SocketMock implements Socket {
|
|
18
14
|
connect(host: string, options?: SocketConnectOptions, reconnectOptions?: SocketReconnectOptions): Promise<boolean>;
|
19
15
|
disconnect(): void;
|
20
16
|
send<T>(message: Message<any>): Promise<Message | any>;
|
21
|
-
sendForStream<T>(message: Message<any>, onMessage: Function, onError: Function
|
17
|
+
sendForStream<T>(message: Message<any>, onMessage: Function, onError: Function): Observable<Message>;
|
22
18
|
socketMessages(): SocketSubject<Message>;
|
23
19
|
reset(): void;
|
24
20
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"socket.d.ts","sourceRoot":"","sources":["../../../../../src/testing/mocks/connect/socket.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAQ,UAAU,EAAE,MAAM,MAAM,CAAC;AACzD,OAAO,KAAK,EACV,OAAO,EACP,MAAM,EACN,oBAAoB,EACpB,sBAAsB,EACvB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD;;GAEG;AACH,qBAAa,UAAW,YAAW,MAAM;IAChC,
|
1
|
+
{"version":3,"file":"socket.d.ts","sourceRoot":"","sources":["../../../../../src/testing/mocks/connect/socket.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAQ,UAAU,EAAE,MAAM,MAAM,CAAC;AACzD,OAAO,KAAK,EACV,OAAO,EACP,MAAM,EACN,oBAAoB,EACpB,sBAAsB,EACvB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD;;GAEG;AACH,qBAAa,UAAW,YAAW,MAAM;IAChC,eAAe,EAAE,OAAO,CAAC;IACzB,WAAW,EAAE,OAAO,CAAC;IACrB,kBAAkB,EAAE,eAAe,CAAC,OAAO,CAAC,CAA6B;IACzE,cAAc,EAAE,OAAO,CAAC;IAExB,WAAW,EAAE,OAAO,CAAC;IACrB,qBAAqB,8BAAgC;IAErD,OAAO,CACZ,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,oBAAoB,EAC9B,gBAAgB,CAAC,EAAE,sBAAsB,GACxC,OAAO,CAAC,OAAO,CAAC;IAIZ,UAAU,IAAI,IAAI;IAElB,IAAI,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,OAAO,GAAG,GAAG,CAAC;IAItD,aAAa,CAAC,CAAC,EACpB,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,EACrB,SAAS,EAAE,QAAQ,EACnB,OAAO,EAAE,QAAQ,GAChB,UAAU,CAAC,OAAO,CAAC;IAIf,cAAc,IAAI,aAAa,CAAC,OAAO,CAAC;IAI/C,KAAK,IAAI,IAAI;CAGd"}
|
@@ -12,7 +12,6 @@ export declare class DatasourceMock implements Datasource {
|
|
12
12
|
stream: SocketObservable<FilteredDataServerResult | RequestServerResult>;
|
13
13
|
init(options: DatasourceOptions, fetchMeta: boolean): Promise<boolean>;
|
14
14
|
deinit(): void;
|
15
|
-
destroy(): void;
|
16
15
|
validResourceName(resourceName: string): boolean;
|
17
16
|
getMetadata?(resourceName: string): Promise<FieldMetadata[]>;
|
18
17
|
snapshot(params?: any): void;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"datasource.d.ts","sourceRoot":"","sources":["../../../../../src/testing/mocks/datasource/datasource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC5F,OAAO,EAAE,aAAa,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAEjG;;GAEG;AACH,qBAAa,cAAe,YAAW,UAAU;IAC/C,WAAW,EAAE,OAAO,CAAC;IACrB,aAAa,EAAE,aAAa,EAAE,CAAC;IAC/B,QAAQ,EAAE,OAAO,CAAC;IAClB,YAAY,EAAE,YAAY,CAAC;IAC3B,MAAM,EAAE,gBAAgB,CAAC,wBAAwB,GAAG,mBAAmB,CAAC,CAAC;IAEzE,IAAI,CAAC,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;IAItE,MAAM;IAEN,
|
1
|
+
{"version":3,"file":"datasource.d.ts","sourceRoot":"","sources":["../../../../../src/testing/mocks/datasource/datasource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC5F,OAAO,EAAE,aAAa,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAEjG;;GAEG;AACH,qBAAa,cAAe,YAAW,UAAU;IAC/C,WAAW,EAAE,OAAO,CAAC;IACrB,aAAa,EAAE,aAAa,E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|
|
1
1
|
import type { UserPermission, UserProfile } from './user.types';
|
2
|
-
/**
|
3
|
-
* Made some minor adjustments here to make user more accessible in the short term.
|
4
|
-
* Please note that this User will be replaced with the enhanced version shortly!
|
5
|
-
*/
|
6
2
|
/**
|
7
3
|
* TODO: Evolve, re-locate to foundation-data, foundation-user or similar and add JSON schema based population,
|
8
4
|
* validation, evolution, foundation-store interop etc.
|
@@ -24,8 +20,6 @@ export interface User extends UserOptions {
|
|
24
20
|
hasAdminProfile(): boolean;
|
25
21
|
hasPermission(permission: UserPermission | UserPermission[]): boolean;
|
26
22
|
hasProfile(profile: UserProfile | UserProfile[]): boolean;
|
27
|
-
set(options: UserOptions): void;
|
28
|
-
unset(): void;
|
29
23
|
}
|
30
24
|
/**
|
31
25
|
* Represents the current user (i.e. the user that is currently logged in).
|
@@ -36,8 +30,6 @@ export declare class CurrentUser implements User {
|
|
36
30
|
profiles: UserProfile[];
|
37
31
|
username: string;
|
38
32
|
constructor(options: UserOptions);
|
39
|
-
set(options: UserOptions): void;
|
40
|
-
unset(): void;
|
41
33
|
hasAdminProfile(): boolean;
|
42
34
|
hasPermission(permission: string | string[]): boolean;
|
43
35
|
hasProfile(profile: string | string[]): boolean;
|
@@ -50,12 +42,5 @@ export declare class CurrentUser implements User {
|
|
50
42
|
*/
|
51
43
|
private hasKey;
|
52
44
|
}
|
53
|
-
/**
|
54
|
-
* User DI key.
|
55
|
-
* @privateRemarks
|
56
|
-
* Marked as internal to stop api-extractor becoming confused cross-linking tokens with the same name.
|
57
|
-
* @internal
|
58
|
-
*/
|
59
|
-
export declare const User: import("@microsoft/fast-foundation").InterfaceSymbol<User>;
|
60
45
|
export {};
|
61
46
|
//# sourceMappingURL=user.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/user/user.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/user/user.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhE;;;GAGG;AAEH;;;GAGG;AACH,UAAU,WAAW;IACnB,QAAQ,CAAC,WAAW,EAAE,cAAc,EAAE,GAAG,IAAI,CAAC;IAC9C,QAAQ,CAAC,QAAQ,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC;IACxC,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CAClC;AAED;;;GAGG;AACH,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,eAAe,IAAI,OAAO,CAAC;IAC3B,aAAa,CAAC,UAAU,EAAE,cAAc,GAAG,cAAc,EAAE,GAAG,OAAO,CAAC;IACtE,UAAU,CAAC,OAAO,EAAE,WAAW,GAAG,WAAW,EAAE,GAAG,OAAO,CAAC;CAC3D;AAED;;;GAGG;AACH,qBAAa,WAAY,YAAW,IAAI;IAC1B,WAAW,EAAE,cAAc,EAAE,CAAC;IAC9B,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;gBAEjB,OAAO,EAAE,WAAW;IAIhC,eAAe;IAIf,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,OAAO;IAIrD,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,OAAO;IAI/C;;;;;;OAMG;IACH,OAAO,CAAC,MAAM;CASf"}
|
package/dist/esm/auth/auth.js
CHANGED
@@ -6,7 +6,7 @@ import { Connect } from '../connect';
|
|
6
6
|
import { EventMessageType, MessageBuilder, MessageCode, MessageType, } from '../connect/message';
|
7
7
|
import { CredentialManager } from '../credentialManager';
|
8
8
|
import { Session } from '../session';
|
9
|
-
import {
|
9
|
+
import { CurrentUser } from '../user';
|
10
10
|
import { logger } from '../utils';
|
11
11
|
import { AuthError } from './auth.types';
|
12
12
|
/**
|
@@ -198,8 +198,7 @@ let DefaultAuth = class DefaultAuth {
|
|
198
198
|
permissions: result.permissions,
|
199
199
|
sessionId: result.sessionId,
|
200
200
|
};
|
201
|
-
this.currentUser =
|
202
|
-
this.currentUser.set({
|
201
|
+
this.currentUser = new CurrentUser({
|
203
202
|
permissions: result.permissions,
|
204
203
|
profiles: result.profiles,
|
205
204
|
username: result.username,
|
@@ -210,9 +209,7 @@ let DefaultAuth = class DefaultAuth {
|
|
210
209
|
* @internal
|
211
210
|
*/
|
212
211
|
removeAuthResults() {
|
213
|
-
var _a;
|
214
212
|
this.loggedUserResult = null;
|
215
|
-
(_a = this.currentUser) === null || _a === void 0 ? void 0 : _a.unset();
|
216
213
|
this.currentUser = null;
|
217
214
|
}
|
218
215
|
};
|