@genesislcap/foundation-comms 14.187.1-alpha-3406925.0 → 14.187.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/dts/connect/connect.d.ts +6 -11
- package/dist/dts/connect/connect.d.ts.map +1 -1
- package/dist/dts/connect/http.connect.d.ts +2 -2
- package/dist/dts/connect/http.connect.d.ts.map +1 -1
- package/dist/dts/connect/message.d.ts +0 -11
- package/dist/dts/connect/message.d.ts.map +1 -1
- package/dist/dts/connect/socket.d.ts +2 -6
- package/dist/dts/connect/socket.d.ts.map +1 -1
- package/dist/dts/datasource/datasource.d.ts +19 -49
- package/dist/dts/datasource/datasource.d.ts.map +1 -1
- package/dist/dts/datasource/datasource.types.d.ts +22 -14
- package/dist/dts/datasource/datasource.types.d.ts.map +1 -1
- package/dist/dts/datasource/entityDatasource.d.ts +8 -5
- package/dist/dts/datasource/entityDatasource.d.ts.map +1 -1
- package/dist/dts/datasource/index.d.ts +0 -2
- package/dist/dts/datasource/index.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/auth/auth.d.ts +0 -3
- package/dist/dts/testing/mocks/auth/auth.d.ts.map +1 -1
- package/dist/dts/testing/mocks/connect/connect.d.ts +2 -3
- package/dist/dts/testing/mocks/connect/connect.d.ts.map +1 -1
- package/dist/dts/testing/mocks/connect/socket.d.ts +0 -1
- package/dist/dts/testing/mocks/connect/socket.d.ts.map +1 -1
- package/dist/dts/testing/mocks/datasource/datasource.d.ts +4 -22
- package/dist/dts/testing/mocks/datasource/datasource.d.ts.map +1 -1
- package/dist/dts/testing/mocks/index.d.ts +0 -1
- package/dist/dts/testing/mocks/index.d.ts.map +1 -1
- package/dist/esm/connect/connect.js +15 -12
- package/dist/esm/connect/http.connect.js +3 -5
- package/dist/esm/connect/message.js +0 -2
- package/dist/esm/connect/socket.js +6 -19
- package/dist/esm/datasource/datasource.js +58 -133
- package/dist/esm/datasource/datasource.types.js +18 -2
- package/dist/esm/datasource/entityDatasource.js +0 -6
- package/dist/esm/datasource/index.js +0 -2
- package/dist/esm/index.js +0 -1
- package/dist/esm/testing/mocks/auth/auth.js +0 -10
- package/dist/esm/testing/mocks/connect/connect.js +2 -9
- package/dist/esm/testing/mocks/connect/socket.js +0 -2
- package/dist/esm/testing/mocks/datasource/datasource.js +0 -59
- package/dist/esm/testing/mocks/index.js +0 -1
- package/dist/foundation-comms.api.json +6042 -10797
- package/dist/foundation-comms.d.ts +37 -696
- package/docs/api/foundation-comms.connect.connect.md +2 -2
- package/docs/api/foundation-comms.connect.getavailableresources.md +2 -2
- package/docs/api/foundation-comms.connect.md +0 -1
- package/docs/api/{foundation-comms.datasource.status.md → foundation-comms.datasource.fieldmetadata.md} +4 -3
- package/docs/api/foundation-comms.datasource.init.md +2 -2
- package/docs/api/foundation-comms.datasource.md +2 -3
- package/docs/api/foundation-comms.datasourceconfig.md +1 -2
- package/docs/api/foundation-comms.defaultconnect.connect.md +2 -2
- package/docs/api/foundation-comms.defaultconnect.getavailableresources.md +2 -2
- package/docs/api/foundation-comms.defaultconnect.md +0 -1
- package/docs/api/foundation-comms.defaultdatasource._constructor_.md +2 -3
- package/docs/api/{foundation-comms.defaultdatasource.fetchmetadatarequired.md → foundation-comms.defaultdatasource._stream.md} +3 -4
- package/docs/api/foundation-comms.defaultdatasource.availableindexes.md +1 -2
- package/docs/api/foundation-comms.defaultdatasource.fieldmetadata.md +0 -1
- package/docs/api/foundation-comms.defaultdatasource.initialized.md +1 -3
- package/docs/api/foundation-comms.defaultdatasource.md +7 -10
- package/docs/api/foundation-comms.defaultdatasource.originalfielddef.md +1 -2
- package/docs/api/foundation-comms.defaultdatasource.requestfields.md +1 -2
- package/docs/api/foundation-comms.defaultdatasource.stream.md +1 -1
- package/docs/api/foundation-comms.defaultdatasource.validresourcename.md +0 -5
- package/docs/api/foundation-comms.defaultdatasourceconfig.md +1 -1
- package/docs/api/foundation-comms.defaulthttpconnect.getavailableresources.md +2 -2
- package/docs/api/foundation-comms.defaultsocket._constructor_.md +1 -2
- package/docs/api/foundation-comms.defaultsocket.connect.md +2 -2
- package/docs/api/foundation-comms.defaultsocket.md +1 -3
- package/docs/api/foundation-comms.eventmessagetype.md +0 -2
- package/docs/api/foundation-comms.md +2 -19
- package/docs/api/foundation-comms.socket.md +0 -6
- package/docs/api-report.md +25 -550
- package/package.json +12 -13
- package/dist/dts/datasource/datasource.config.d.ts +0 -44
- package/dist/dts/datasource/datasource.config.d.ts.map +0 -1
- package/dist/dts/datasource/datasource.mixins.d.ts +0 -367
- package/dist/dts/datasource/datasource.mixins.d.ts.map +0 -1
- package/dist/dts/resources/genesis/config.d.ts +0 -81
- package/dist/dts/resources/genesis/config.d.ts.map +0 -1
- package/dist/dts/resources/genesis/genesis.d.ts +0 -69
- package/dist/dts/resources/genesis/genesis.d.ts.map +0 -1
- package/dist/dts/resources/genesis/index.d.ts +0 -4
- package/dist/dts/resources/genesis/index.d.ts.map +0 -1
- package/dist/dts/resources/genesis/types.d.ts +0 -19
- package/dist/dts/resources/genesis/types.d.ts.map +0 -1
- package/dist/dts/resources/index.d.ts +0 -2
- package/dist/dts/resources/index.d.ts.map +0 -1
- package/dist/dts/testing/mocks/resources/genesis/genesis.d.ts +0 -16
- package/dist/dts/testing/mocks/resources/genesis/genesis.d.ts.map +0 -1
- package/dist/dts/testing/mocks/resources/genesis/index.d.ts +0 -2
- package/dist/dts/testing/mocks/resources/genesis/index.d.ts.map +0 -1
- package/dist/dts/testing/mocks/resources/index.d.ts +0 -2
- package/dist/dts/testing/mocks/resources/index.d.ts.map +0 -1
- package/dist/esm/datasource/datasource.config.js +0 -41
- package/dist/esm/datasource/datasource.mixins.js +0 -86
- package/dist/esm/resources/genesis/config.js +0 -51
- package/dist/esm/resources/genesis/genesis.js +0 -114
- package/dist/esm/resources/genesis/index.js +0 -3
- package/dist/esm/resources/genesis/types.js +0 -4
- package/dist/esm/resources/index.js +0 -1
- package/dist/esm/testing/mocks/resources/genesis/genesis.js +0 -25
- package/dist/esm/testing/mocks/resources/genesis/index.js +0 -1
- package/dist/esm/testing/mocks/resources/index.js +0 -1
- package/docs/api/foundation-comms.connect.host.md +0 -11
- package/docs/api/foundation-comms.datasourceconfig.eventemitter.md +0 -18
- package/docs/api/foundation-comms.datasourceeventhandler.md +0 -353
- package/docs/api/foundation-comms.datasourcemetadata.availableindexes.md +0 -11
- package/docs/api/foundation-comms.datasourcemetadata.fetchmetadatarequired.md +0 -11
- package/docs/api/foundation-comms.datasourcemetadata.fieldmetadata.md +0 -11
- package/docs/api/foundation-comms.datasourcemetadata.md +0 -24
- package/docs/api/foundation-comms.datasourcemetadata.originalfielddef.md +0 -11
- package/docs/api/foundation-comms.datasourcemetadata.requestfields.md +0 -11
- package/docs/api/foundation-comms.datasourcestatus.md +0 -21
- package/docs/api/foundation-comms.datasourcestatuschanged.md +0 -13
- package/docs/api/foundation-comms.datasourcestatuschangedevent.md +0 -15
- package/docs/api/foundation-comms.defaultconnect.host.md +0 -11
- package/docs/api/foundation-comms.defaultdatasource.fetchandapplymetadata.md +0 -22
- package/docs/api/foundation-comms.defaultdatasource.resources.md +0 -11
- package/docs/api/foundation-comms.defaultdatasource.status.md +0 -12
- package/docs/api/foundation-comms.defaultgenesisresources._constructor_.md +0 -21
- package/docs/api/foundation-comms.defaultgenesisresources.config.md +0 -11
- package/docs/api/foundation-comms.defaultgenesisresources.connect.md +0 -11
- package/docs/api/foundation-comms.defaultgenesisresources.destroy.md +0 -17
- package/docs/api/foundation-comms.defaultgenesisresources.getresources.md +0 -15
- package/docs/api/foundation-comms.defaultgenesisresources.getresourcetypefor.md +0 -24
- package/docs/api/foundation-comms.defaultgenesisresources.isvalidresource.md +0 -24
- package/docs/api/foundation-comms.defaultgenesisresources.md +0 -40
- package/docs/api/foundation-comms.defaultgenesisresources.postloadedmessage.md +0 -15
- package/docs/api/foundation-comms.defaultgenesisresources.resources.md +0 -11
- package/docs/api/foundation-comms.defaultgenesisresources.resourcespromise.md +0 -11
- package/docs/api/foundation-comms.defaultgenesisresourcesconfig.md +0 -13
- package/docs/api/foundation-comms.defaultsocket.config.md +0 -11
- package/docs/api/foundation-comms.defaultsocket.host.md +0 -11
- package/docs/api/foundation-comms.genesisresources.destroy.md +0 -13
- package/docs/api/foundation-comms.genesisresources.getresourcetypefor.md +0 -13
- package/docs/api/foundation-comms.genesisresources.isvalidresource.md +0 -13
- package/docs/api/foundation-comms.genesisresources.md +0 -26
- package/docs/api/foundation-comms.genesisresourceschannel.md +0 -33
- package/docs/api/foundation-comms.genesisresourceschannelid.md +0 -12
- package/docs/api/foundation-comms.genesisresourcesconfig.md +0 -21
- package/docs/api/foundation-comms.genesisresourcesconfig.throwwhenunavailable.md +0 -13
- package/docs/api/foundation-comms.genesisresourcesconfig.throwwhenunknown.md +0 -13
- package/docs/api/foundation-comms.genesisresourcesevents.md +0 -17
- package/docs/api/foundation-comms.genesisresourcesmock.destroy.md +0 -15
- package/docs/api/foundation-comms.genesisresourcesmock.getresourcetypefor.md +0 -24
- package/docs/api/foundation-comms.genesisresourcesmock.isvalidresource.md +0 -24
- package/docs/api/foundation-comms.genesisresourcesmock.md +0 -30
- package/docs/api/foundation-comms.genesisresourcesmock.nextisvalidresourceresponse.md +0 -11
- package/docs/api/foundation-comms.genesisresourcesmock.nextresourcetypeforresponse.md +0 -11
- package/docs/api/foundation-comms.genesisresourcesmock.resources.md +0 -11
- package/docs/api/foundation-comms.getgenesisresources.md +0 -30
- package/docs/api/foundation-comms.getgenesisresourceschannel.md +0 -39
- package/docs/api/foundation-comms.resourceitem.md +0 -15
- package/docs/api/foundation-comms.resourcesmessage.md +0 -18
- package/docs/api/foundation-comms.socket.host.md +0 -11
@@ -2,10 +2,8 @@
|
|
2
2
|
|
3
3
|
import { BehaviorSubject } from 'rxjs';
|
4
4
|
import { default as Bowser_2 } from 'bowser';
|
5
|
-
import { Controller } from '@microsoft/fast-element';
|
6
5
|
import { DefaultUser } from '@genesislcap/foundation-user';
|
7
6
|
import type { DTOMapper } from '@genesislcap/foundation-utils';
|
8
|
-
import type { FASTElement } from '@microsoft/fast-element';
|
9
7
|
import { InterfaceSymbol } from '@microsoft/fast-foundation';
|
10
8
|
import { JSONSchema7 } from 'json-schema';
|
11
9
|
import { JSONSerializer } from '@genesislcap/foundation-utils';
|
@@ -15,10 +13,8 @@ import type { LogLevel } from '@genesislcap/foundation-utils';
|
|
15
13
|
import { Observable } from 'rxjs';
|
16
14
|
import { Observer } from '@genesislcap/foundation-utils';
|
17
15
|
import { Observer as Observer_2 } from 'rxjs';
|
18
|
-
import { SetUserProperties } from '@genesislcap/foundation-user/dist/esm';
|
19
16
|
import { Subscription as SocketSubscription } from 'rxjs';
|
20
17
|
import { Subject } from 'rxjs';
|
21
|
-
import { TypedBroadcastChannel } from '@genesislcap/foundation-broadcast-channel';
|
22
18
|
import { User as User_2 } from '@genesislcap/foundation-user';
|
23
19
|
import { UUID } from '@genesislcap/foundation-utils';
|
24
20
|
|
@@ -120,8 +116,6 @@ export declare class AuthMock implements Auth {
|
|
120
116
|
login(credentials: AuthInfo): Promise<LoginResult>;
|
121
117
|
logout(): Promise<LogoutResult>;
|
122
118
|
reAuthFromSession(): Promise<boolean>;
|
123
|
-
setTestUser(properties?: Partial<SetUserProperties>): void;
|
124
|
-
resetTestUser(): void;
|
125
119
|
}
|
126
120
|
|
127
121
|
/**
|
@@ -229,10 +223,10 @@ export declare interface Connect {
|
|
229
223
|
/**
|
230
224
|
* Connects to a server at the specified host.
|
231
225
|
* @public
|
232
|
-
* @param host - The host to connect to.
|
226
|
+
* @param host - The host to connect to.
|
233
227
|
* @returns A promise that resolves with a boolean indicating whether the connection was successful.
|
234
228
|
*/
|
235
|
-
connect(host
|
229
|
+
connect(host: string): Promise<boolean>;
|
236
230
|
/**
|
237
231
|
* Disconnects from the server.
|
238
232
|
* @public
|
@@ -334,7 +328,7 @@ export declare interface Connect {
|
|
334
328
|
* @param params - An object containing optional parameters to include in the request.
|
335
329
|
* @returns A promise that resolves to a Message containing the server's response with available resources.
|
336
330
|
*/
|
337
|
-
getAvailableResources(params?: RequestParams): Promise<
|
331
|
+
getAvailableResources(params?: RequestParams): Promise<Message>;
|
338
332
|
/**
|
339
333
|
* Sends a request to the server to retrieve data or perform an action.
|
340
334
|
* @public
|
@@ -343,10 +337,6 @@ export declare interface Connect {
|
|
343
337
|
* @returns A promise that resolves to a Message containing the server's response.
|
344
338
|
*/
|
345
339
|
commitEvent(eventName: string, params?: CommitParams): Promise<Message>;
|
346
|
-
/**
|
347
|
-
* @returns The host provided.
|
348
|
-
*/
|
349
|
-
host: string;
|
350
340
|
}
|
351
341
|
|
352
342
|
/**
|
@@ -481,7 +471,6 @@ export declare class ConnectMock implements Connect {
|
|
481
471
|
isConnected: boolean;
|
482
472
|
isWorking: boolean;
|
483
473
|
socket: SocketMock;
|
484
|
-
get host(): string;
|
485
474
|
get isConnectedSubject(): BehaviorSubject<boolean>;
|
486
475
|
get isConnected$(): Observable<boolean>;
|
487
476
|
send<T>(message: Message<any>, needsHandling?: boolean): Promise<any>;
|
@@ -497,7 +486,7 @@ export declare class ConnectMock implements Connect {
|
|
497
486
|
disconnect(): void;
|
498
487
|
getMetadata(resourceName: string): Promise<Metadata>;
|
499
488
|
request(resourceName: string, params?: RequestParams): Promise<Message>;
|
500
|
-
getAvailableResources(params?: RequestParams): Promise<
|
489
|
+
getAvailableResources(params?: RequestParams): Promise<Message>;
|
501
490
|
snapshot(resourceName: string, params?: any): Promise<Message>;
|
502
491
|
stream(resourceName: string, onMessage: Function, onError: Function, params?: any): SocketObservable<Message>;
|
503
492
|
streamState(resourceName: string, onMessage: Function, onError: Function, params?: any, initialState?: any[]): Observable<any[]>;
|
@@ -826,16 +815,17 @@ export declare function dataServerResultFilter(result: RawDataServerResult, rowI
|
|
826
815
|
* @remarks
|
827
816
|
* The public interface available on the injected store fragment.
|
828
817
|
*/
|
829
|
-
export declare interface Datasource
|
818
|
+
export declare interface Datasource {
|
830
819
|
/**
|
820
|
+
* Indicates whether the datasource has been initialized.
|
831
821
|
* @public
|
832
822
|
*/
|
833
|
-
|
823
|
+
initialized: boolean;
|
834
824
|
/**
|
835
|
-
*
|
825
|
+
* Metadata about the fields of the datasource.
|
836
826
|
* @public
|
837
827
|
*/
|
838
|
-
|
828
|
+
fieldMetadata: FieldMetadata[];
|
839
829
|
/**
|
840
830
|
* Indicates whether the datasource is read-only.
|
841
831
|
* TODO: Should have is prefix
|
@@ -861,10 +851,10 @@ export declare interface Datasource extends DatasourceMetadata {
|
|
861
851
|
* Initializes the datasource with the given options and fetches metadata if specified.
|
862
852
|
* @public
|
863
853
|
* @param options - The options to initialize the datasource with.
|
864
|
-
* @param fetchMeta -
|
854
|
+
* @param fetchMeta - Whether to fetch metadata for the datasource.
|
865
855
|
* @returns A promise that resolves with a boolean indicating whether the initialization was successful.
|
866
856
|
*/
|
867
|
-
init(options: DatasourceOptions, fetchMeta
|
857
|
+
init(options: DatasourceOptions, fetchMeta: boolean): Promise<boolean>;
|
868
858
|
/**
|
869
859
|
* Deinitializes the datasource.
|
870
860
|
* @remarks This should be called to clean up any resources when the datasource is no longer needed.
|
@@ -970,29 +960,22 @@ export declare interface Datasource extends DatasourceMetadata {
|
|
970
960
|
export declare const Datasource: InterfaceSymbol<Datasource>;
|
971
961
|
|
972
962
|
/**
|
973
|
-
*
|
974
|
-
*
|
963
|
+
* The configuration object for a Datasource
|
975
964
|
* @public
|
976
965
|
*/
|
977
966
|
export declare interface DatasourceConfig {
|
978
|
-
/**
|
979
|
-
* The element to emit events from.
|
980
|
-
*
|
981
|
-
* @remarks
|
982
|
-
* If omitted the document is used.
|
983
|
-
*/
|
984
|
-
eventEmitter?: HTMLElement;
|
985
967
|
options: DatasourceOptions;
|
986
968
|
criteriaToFields(filters: string): Record<string, string>;
|
987
969
|
dataServerResultFilter(result: RawDataServerResult, rowId?: string): FilteredDataServerResult;
|
988
970
|
}
|
989
971
|
|
990
972
|
/**
|
991
|
-
*
|
973
|
+
* The DI token for the DatasourceConfig interface.
|
992
974
|
*
|
993
|
-
* @internal
|
994
975
|
* @privateRemarks
|
995
976
|
* Marked as internal to stop api-extractor becoming confused cross-linking tokens with the same name.
|
977
|
+
*
|
978
|
+
* @internal
|
996
979
|
*/
|
997
980
|
export declare const DatasourceConfig: InterfaceSymbol<DatasourceConfig>;
|
998
981
|
|
@@ -1008,411 +991,16 @@ export declare class DatasourceDefaults {
|
|
1008
991
|
static readonly REQUEST_SERVER_ROW_ID = "RECORD_ID";
|
1009
992
|
}
|
1010
993
|
|
1011
|
-
/**
|
1012
|
-
* Datasource event handler mixin for target classes that use or are interested in datasource status changes.
|
1013
|
-
*
|
1014
|
-
* @remarks
|
1015
|
-
* Classes that use the mixin are not required to own the datasource itself, there may be several interested parties.
|
1016
|
-
*
|
1017
|
-
* @example
|
1018
|
-
* ```ts
|
1019
|
-
* import { DatasourceEventHandler, DatasourceStatus } from '@genesislcap/foundation-comms';
|
1020
|
-
* ...
|
1021
|
-
* class MyComponent extends DatasourceEventHandler(FASTElement) {
|
1022
|
-
* resourceName: string = 'some-resource';
|
1023
|
-
* ...
|
1024
|
-
* datasourceStatusChanged(prev: DatasourceStatus, next: DatasourceStatus) {
|
1025
|
-
* // Respond to changes in the target datasource.
|
1026
|
-
* }
|
1027
|
-
* }
|
1028
|
-
* ```
|
1029
|
-
*
|
1030
|
-
* @privateRemarks
|
1031
|
-
* Unfortunately our datasource ui components do not share a common baseclass. Given datasource ui components contain a
|
1032
|
-
* Datasource and currently await their `init`, usage is more for example at this point, ie. how could we allow interested
|
1033
|
-
* parties to monitor and respond to changes, given they will exist at different levels of DOM hierarchy etc. Datasource
|
1034
|
-
* itself is also transient DI injectable, so each interested party would not have access to the same instance, nor would
|
1035
|
-
* we necessarily want to expose that via the event to prevent them operating on it to cause unwanted side effects.
|
1036
|
-
*
|
1037
|
-
* @param Target - The class to mix the event handler with.
|
1038
|
-
*
|
1039
|
-
* @public
|
1040
|
-
*/
|
1041
|
-
export declare const DatasourceEventHandler: (Target: new () => HTMLElement & FASTElement) => {
|
1042
|
-
new (): {
|
1043
|
-
datasourceStatus: DatasourceStatus;
|
1044
|
-
/**
|
1045
|
-
* Classes should provide.
|
1046
|
-
*/
|
1047
|
-
resourceName: string;
|
1048
|
-
/**
|
1049
|
-
* The component-level handler for datasource status changes.
|
1050
|
-
*
|
1051
|
-
* @remarks
|
1052
|
-
* If implementing custom logic in the target class, please check the `event.detail.name` matches your resourceName.
|
1053
|
-
*/
|
1054
|
-
onDatasourceStatusChanged: (event: DatasourceStatusChangedEvent) => void;
|
1055
|
-
/**
|
1056
|
-
* @remarks
|
1057
|
-
* Override this method to respond to changes in the target datasource.
|
1058
|
-
*/
|
1059
|
-
datasourceStatusChanged(prev: DatasourceStatus, next: DatasourceStatus): void;
|
1060
|
-
connectedCallback(): void;
|
1061
|
-
disconnectedCallback(): void;
|
1062
|
-
accessKey: string;
|
1063
|
-
readonly accessKeyLabel: string;
|
1064
|
-
autocapitalize: string;
|
1065
|
-
dir: string;
|
1066
|
-
draggable: boolean;
|
1067
|
-
hidden: boolean;
|
1068
|
-
inert: boolean;
|
1069
|
-
innerText: string;
|
1070
|
-
lang: string;
|
1071
|
-
readonly offsetHeight: number;
|
1072
|
-
readonly offsetLeft: number;
|
1073
|
-
readonly offsetParent: Element;
|
1074
|
-
readonly offsetTop: number;
|
1075
|
-
readonly offsetWidth: number;
|
1076
|
-
outerText: string;
|
1077
|
-
spellcheck: boolean;
|
1078
|
-
title: string;
|
1079
|
-
translate: boolean;
|
1080
|
-
attachInternals(): ElementInternals;
|
1081
|
-
click(): void;
|
1082
|
-
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
1083
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
1084
|
-
removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions): void;
|
1085
|
-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
1086
|
-
readonly attributes: NamedNodeMap;
|
1087
|
-
readonly classList: DOMTokenList;
|
1088
|
-
className: string;
|
1089
|
-
readonly clientHeight: number;
|
1090
|
-
readonly clientLeft: number;
|
1091
|
-
readonly clientTop: number;
|
1092
|
-
readonly clientWidth: number;
|
1093
|
-
id: string;
|
1094
|
-
readonly localName: string;
|
1095
|
-
readonly namespaceURI: string;
|
1096
|
-
onfullscreenchange: (this: Element, ev: Event) => any;
|
1097
|
-
onfullscreenerror: (this: Element, ev: Event) => any;
|
1098
|
-
outerHTML: string;
|
1099
|
-
readonly ownerDocument: Document;
|
1100
|
-
readonly part: DOMTokenList;
|
1101
|
-
readonly prefix: string;
|
1102
|
-
readonly scrollHeight: number;
|
1103
|
-
scrollLeft: number;
|
1104
|
-
scrollTop: number;
|
1105
|
-
readonly scrollWidth: number;
|
1106
|
-
readonly shadowRoot: ShadowRoot;
|
1107
|
-
slot: string;
|
1108
|
-
readonly tagName: string;
|
1109
|
-
attachShadow(init: ShadowRootInit): ShadowRoot;
|
1110
|
-
closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2];
|
1111
|
-
closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3];
|
1112
|
-
closest<E extends Element = Element>(selectors: string): E;
|
1113
|
-
getAttribute(qualifiedName: string): string;
|
1114
|
-
getAttributeNS(namespace: string, localName: string): string;
|
1115
|
-
getAttributeNames(): string[];
|
1116
|
-
getAttributeNode(qualifiedName: string): Attr;
|
1117
|
-
getAttributeNodeNS(namespace: string, localName: string): Attr;
|
1118
|
-
getBoundingClientRect(): DOMRect;
|
1119
|
-
getClientRects(): DOMRectList;
|
1120
|
-
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
1121
|
-
getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>;
|
1122
|
-
getElementsByTagName<K_5 extends keyof SVGElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<SVGElementTagNameMap[K_5]>;
|
1123
|
-
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
1124
|
-
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
1125
|
-
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
1126
|
-
getElementsByTagNameNS(namespace: string, localName: string): HTMLCollectionOf<Element>;
|
1127
|
-
hasAttribute(qualifiedName: string): boolean;
|
1128
|
-
hasAttributeNS(namespace: string, localName: string): boolean;
|
1129
|
-
hasAttributes(): boolean;
|
1130
|
-
hasPointerCapture(pointerId: number): boolean;
|
1131
|
-
insertAdjacentElement(where: InsertPosition, element: Element): Element;
|
1132
|
-
insertAdjacentHTML(position: InsertPosition, text: string): void;
|
1133
|
-
insertAdjacentText(where: InsertPosition, data: string): void;
|
1134
|
-
matches(selectors: string): boolean;
|
1135
|
-
releasePointerCapture(pointerId: number): void;
|
1136
|
-
removeAttribute(qualifiedName: string): void;
|
1137
|
-
removeAttributeNS(namespace: string, localName: string): void;
|
1138
|
-
removeAttributeNode(attr: Attr): Attr;
|
1139
|
-
requestFullscreen(options?: FullscreenOptions): Promise<void>;
|
1140
|
-
requestPointerLock(): void;
|
1141
|
-
scroll(options?: ScrollToOptions): void;
|
1142
|
-
scroll(x: number, y: number): void;
|
1143
|
-
scrollBy(options?: ScrollToOptions): void;
|
1144
|
-
scrollBy(x: number, y: number): void;
|
1145
|
-
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
|
1146
|
-
scrollTo(options?: ScrollToOptions): void;
|
1147
|
-
scrollTo(x: number, y: number): void;
|
1148
|
-
setAttribute(qualifiedName: string, value: string): void;
|
1149
|
-
setAttributeNS(namespace: string, qualifiedName: string, value: string): void;
|
1150
|
-
setAttributeNode(attr: Attr): Attr;
|
1151
|
-
setAttributeNodeNS(attr: Attr): Attr;
|
1152
|
-
setPointerCapture(pointerId: number): void;
|
1153
|
-
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
1154
|
-
webkitMatchesSelector(selectors: string): boolean;
|
1155
|
-
readonly baseURI: string;
|
1156
|
-
readonly childNodes: NodeListOf<ChildNode>;
|
1157
|
-
readonly firstChild: ChildNode;
|
1158
|
-
readonly isConnected: boolean;
|
1159
|
-
readonly lastChild: ChildNode;
|
1160
|
-
readonly nextSibling: ChildNode;
|
1161
|
-
readonly nodeName: string;
|
1162
|
-
readonly nodeType: number;
|
1163
|
-
nodeValue: string;
|
1164
|
-
readonly parentElement: HTMLElement;
|
1165
|
-
readonly parentNode: ParentNode;
|
1166
|
-
readonly previousSibling: ChildNode;
|
1167
|
-
textContent: string;
|
1168
|
-
appendChild<T extends Node>(node: T): T;
|
1169
|
-
cloneNode(deep?: boolean): Node;
|
1170
|
-
compareDocumentPosition(other: Node): number;
|
1171
|
-
contains(other: Node): boolean;
|
1172
|
-
getRootNode(options?: GetRootNodeOptions): Node;
|
1173
|
-
hasChildNodes(): boolean;
|
1174
|
-
insertBefore<T_1 extends Node>(node: T_1, child: Node): T_1;
|
1175
|
-
isDefaultNamespace(namespace: string): boolean;
|
1176
|
-
isEqualNode(otherNode: Node): boolean;
|
1177
|
-
isSameNode(otherNode: Node): boolean;
|
1178
|
-
lookupNamespaceURI(prefix: string): string;
|
1179
|
-
lookupPrefix(namespace: string): string;
|
1180
|
-
normalize(): void;
|
1181
|
-
removeChild<T_2 extends Node>(child: T_2): T_2;
|
1182
|
-
replaceChild<T_3 extends Node>(node: Node, child: T_3): T_3;
|
1183
|
-
readonly ATTRIBUTE_NODE: number;
|
1184
|
-
readonly CDATA_SECTION_NODE: number;
|
1185
|
-
readonly COMMENT_NODE: number;
|
1186
|
-
readonly DOCUMENT_FRAGMENT_NODE: number;
|
1187
|
-
readonly DOCUMENT_NODE: number;
|
1188
|
-
readonly DOCUMENT_POSITION_CONTAINED_BY: number;
|
1189
|
-
readonly DOCUMENT_POSITION_CONTAINS: number;
|
1190
|
-
readonly DOCUMENT_POSITION_DISCONNECTED: number;
|
1191
|
-
readonly DOCUMENT_POSITION_FOLLOWING: number;
|
1192
|
-
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
|
1193
|
-
readonly DOCUMENT_POSITION_PRECEDING: number;
|
1194
|
-
readonly DOCUMENT_TYPE_NODE: number;
|
1195
|
-
readonly ELEMENT_NODE: number;
|
1196
|
-
readonly ENTITY_NODE: number;
|
1197
|
-
readonly ENTITY_REFERENCE_NODE: number;
|
1198
|
-
readonly NOTATION_NODE: number;
|
1199
|
-
readonly PROCESSING_INSTRUCTION_NODE: number;
|
1200
|
-
readonly TEXT_NODE: number;
|
1201
|
-
dispatchEvent(event: Event): boolean;
|
1202
|
-
ariaAtomic: string;
|
1203
|
-
ariaAutoComplete: string;
|
1204
|
-
ariaBusy: string;
|
1205
|
-
ariaChecked: string;
|
1206
|
-
ariaColCount: string;
|
1207
|
-
ariaColIndex: string;
|
1208
|
-
ariaColIndexText: string;
|
1209
|
-
ariaColSpan: string;
|
1210
|
-
ariaCurrent: string;
|
1211
|
-
ariaDisabled: string;
|
1212
|
-
ariaExpanded: string;
|
1213
|
-
ariaHasPopup: string;
|
1214
|
-
ariaHidden: string;
|
1215
|
-
ariaInvalid: string;
|
1216
|
-
ariaKeyShortcuts: string;
|
1217
|
-
ariaLabel: string;
|
1218
|
-
ariaLevel: string;
|
1219
|
-
ariaLive: string;
|
1220
|
-
ariaModal: string;
|
1221
|
-
ariaMultiLine: string;
|
1222
|
-
ariaMultiSelectable: string;
|
1223
|
-
ariaOrientation: string;
|
1224
|
-
ariaPlaceholder: string;
|
1225
|
-
ariaPosInSet: string;
|
1226
|
-
ariaPressed: string;
|
1227
|
-
ariaReadOnly: string;
|
1228
|
-
ariaRequired: string;
|
1229
|
-
ariaRoleDescription: string;
|
1230
|
-
ariaRowCount: string;
|
1231
|
-
ariaRowIndex: string;
|
1232
|
-
ariaRowIndexText: string;
|
1233
|
-
ariaRowSpan: string;
|
1234
|
-
ariaSelected: string;
|
1235
|
-
ariaSetSize: string;
|
1236
|
-
ariaSort: string;
|
1237
|
-
ariaValueMax: string;
|
1238
|
-
ariaValueMin: string;
|
1239
|
-
ariaValueNow: string;
|
1240
|
-
ariaValueText: string;
|
1241
|
-
role: string;
|
1242
|
-
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes, options?: number | KeyframeAnimationOptions): Animation;
|
1243
|
-
getAnimations(options?: GetAnimationsOptions): Animation[];
|
1244
|
-
after(...nodes: (string | Node)[]): void;
|
1245
|
-
before(...nodes: (string | Node)[]): void;
|
1246
|
-
remove(): void;
|
1247
|
-
replaceWith(...nodes: (string | Node)[]): void;
|
1248
|
-
innerHTML: string;
|
1249
|
-
readonly nextElementSibling: Element;
|
1250
|
-
readonly previousElementSibling: Element;
|
1251
|
-
readonly childElementCount: number;
|
1252
|
-
readonly children: HTMLCollection;
|
1253
|
-
readonly firstElementChild: Element;
|
1254
|
-
readonly lastElementChild: Element;
|
1255
|
-
append(...nodes: (string | Node)[]): void;
|
1256
|
-
prepend(...nodes: (string | Node)[]): void;
|
1257
|
-
querySelector<K_6 extends keyof HTMLElementTagNameMap>(selectors: K_6): HTMLElementTagNameMap[K_6];
|
1258
|
-
querySelector<K_7 extends keyof SVGElementTagNameMap>(selectors: K_7): SVGElementTagNameMap[K_7];
|
1259
|
-
querySelector<E_1 extends Element = Element>(selectors: string): E_1;
|
1260
|
-
querySelectorAll<K_8 extends keyof HTMLElementTagNameMap>(selectors: K_8): NodeListOf<HTMLElementTagNameMap[K_8]>;
|
1261
|
-
querySelectorAll<K_9 extends keyof SVGElementTagNameMap>(selectors: K_9): NodeListOf<SVGElementTagNameMap[K_9]>;
|
1262
|
-
querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
1263
|
-
replaceChildren(...nodes: (string | Node)[]): void;
|
1264
|
-
readonly assignedSlot: HTMLSlotElement;
|
1265
|
-
oncopy: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
|
1266
|
-
oncut: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
|
1267
|
-
onpaste: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
|
1268
|
-
readonly style: CSSStyleDeclaration;
|
1269
|
-
contentEditable: string;
|
1270
|
-
enterKeyHint: string;
|
1271
|
-
inputMode: string;
|
1272
|
-
readonly isContentEditable: boolean;
|
1273
|
-
onabort: (this: GlobalEventHandlers, ev: UIEvent) => any;
|
1274
|
-
onanimationcancel: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
|
1275
|
-
onanimationend: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
|
1276
|
-
onanimationiteration: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
|
1277
|
-
onanimationstart: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
|
1278
|
-
onauxclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
1279
|
-
onbeforeinput: (this: GlobalEventHandlers, ev: InputEvent) => any;
|
1280
|
-
onblur: (this: GlobalEventHandlers, ev: FocusEvent) => any;
|
1281
|
-
oncancel: (this: GlobalEventHandlers, ev: Event) => any;
|
1282
|
-
oncanplay: (this: GlobalEventHandlers, ev: Event) => any;
|
1283
|
-
oncanplaythrough: (this: GlobalEventHandlers, ev: Event) => any;
|
1284
|
-
onchange: (this: GlobalEventHandlers, ev: Event) => any;
|
1285
|
-
onclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
1286
|
-
onclose: (this: GlobalEventHandlers, ev: Event) => any;
|
1287
|
-
oncontextmenu: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
1288
|
-
oncuechange: (this: GlobalEventHandlers, ev: Event) => any;
|
1289
|
-
ondblclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
1290
|
-
ondrag: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
1291
|
-
ondragend: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
1292
|
-
ondragenter: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
1293
|
-
ondragleave: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
1294
|
-
ondragover: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
1295
|
-
ondragstart: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
1296
|
-
ondrop: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
1297
|
-
ondurationchange: (this: GlobalEventHandlers, ev: Event) => any;
|
1298
|
-
onemptied: (this: GlobalEventHandlers, ev: Event) => any;
|
1299
|
-
onended: (this: GlobalEventHandlers, ev: Event) => any;
|
1300
|
-
onerror: OnErrorEventHandlerNonNull;
|
1301
|
-
onfocus: (this: GlobalEventHandlers, ev: FocusEvent) => any;
|
1302
|
-
onformdata: (this: GlobalEventHandlers, ev: FormDataEvent) => any;
|
1303
|
-
ongotpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
1304
|
-
oninput: (this: GlobalEventHandlers, ev: Event) => any;
|
1305
|
-
oninvalid: (this: GlobalEventHandlers, ev: Event) => any;
|
1306
|
-
onkeydown: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
|
1307
|
-
onkeypress: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
|
1308
|
-
onkeyup: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
|
1309
|
-
onload: (this: GlobalEventHandlers, ev: Event) => any;
|
1310
|
-
onloadeddata: (this: GlobalEventHandlers, ev: Event) => any;
|
1311
|
-
onloadedmetadata: (this: GlobalEventHandlers, ev: Event) => any;
|
1312
|
-
onloadstart: (this: GlobalEventHandlers, ev: Event) => any;
|
1313
|
-
onlostpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
1314
|
-
onmousedown: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
1315
|
-
onmouseenter: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
1316
|
-
onmouseleave: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
1317
|
-
onmousemove: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
1318
|
-
onmouseout: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
1319
|
-
onmouseover: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
1320
|
-
onmouseup: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
1321
|
-
onpause: (this: GlobalEventHandlers, ev: Event) => any;
|
1322
|
-
onplay: (this: GlobalEventHandlers, ev: Event) => any;
|
1323
|
-
onplaying: (this: GlobalEventHandlers, ev: Event) => any;
|
1324
|
-
onpointercancel: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
1325
|
-
onpointerdown: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
1326
|
-
onpointerenter: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
1327
|
-
onpointerleave: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
1328
|
-
onpointermove: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
1329
|
-
onpointerout: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
1330
|
-
onpointerover: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
1331
|
-
onpointerup: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
1332
|
-
onprogress: (this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any;
|
1333
|
-
onratechange: (this: GlobalEventHandlers, ev: Event) => any;
|
1334
|
-
onreset: (this: GlobalEventHandlers, ev: Event) => any;
|
1335
|
-
onresize: (this: GlobalEventHandlers, ev: UIEvent) => any;
|
1336
|
-
onscroll: (this: GlobalEventHandlers, ev: Event) => any;
|
1337
|
-
onsecuritypolicyviolation: (this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any;
|
1338
|
-
onseeked: (this: GlobalEventHandlers, ev: Event) => any;
|
1339
|
-
onseeking: (this: GlobalEventHandlers, ev: Event) => any;
|
1340
|
-
onselect: (this: GlobalEventHandlers, ev: Event) => any;
|
1341
|
-
onselectionchange: (this: GlobalEventHandlers, ev: Event) => any;
|
1342
|
-
onselectstart: (this: GlobalEventHandlers, ev: Event) => any;
|
1343
|
-
onslotchange: (this: GlobalEventHandlers, ev: Event) => any;
|
1344
|
-
onstalled: (this: GlobalEventHandlers, ev: Event) => any;
|
1345
|
-
onsubmit: (this: GlobalEventHandlers, ev: SubmitEvent) => any;
|
1346
|
-
onsuspend: (this: GlobalEventHandlers, ev: Event) => any;
|
1347
|
-
ontimeupdate: (this: GlobalEventHandlers, ev: Event) => any;
|
1348
|
-
ontoggle: (this: GlobalEventHandlers, ev: Event) => any;
|
1349
|
-
ontouchcancel?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
|
1350
|
-
ontouchend?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
|
1351
|
-
ontouchmove?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
|
1352
|
-
ontouchstart?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
|
1353
|
-
ontransitioncancel: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
|
1354
|
-
ontransitionend: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
|
1355
|
-
ontransitionrun: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
|
1356
|
-
ontransitionstart: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
|
1357
|
-
onvolumechange: (this: GlobalEventHandlers, ev: Event) => any;
|
1358
|
-
onwaiting: (this: GlobalEventHandlers, ev: Event) => any;
|
1359
|
-
onwebkitanimationend: (this: GlobalEventHandlers, ev: Event) => any;
|
1360
|
-
onwebkitanimationiteration: (this: GlobalEventHandlers, ev: Event) => any;
|
1361
|
-
onwebkitanimationstart: (this: GlobalEventHandlers, ev: Event) => any;
|
1362
|
-
onwebkittransitionend: (this: GlobalEventHandlers, ev: Event) => any;
|
1363
|
-
onwheel: (this: GlobalEventHandlers, ev: WheelEvent) => any;
|
1364
|
-
autofocus: boolean;
|
1365
|
-
readonly dataset: DOMStringMap;
|
1366
|
-
nonce?: string;
|
1367
|
-
tabIndex: number;
|
1368
|
-
blur(): void;
|
1369
|
-
focus(options?: FocusOptions): void;
|
1370
|
-
readonly $fastController: Controller;
|
1371
|
-
$emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail">): boolean | void;
|
1372
|
-
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
1373
|
-
};
|
1374
|
-
};
|
1375
|
-
|
1376
|
-
/**
|
1377
|
-
* DatasourceMetadata interface.
|
1378
|
-
* @public
|
1379
|
-
*/
|
1380
|
-
export declare interface DatasourceMetadata {
|
1381
|
-
fetchMetadataRequired: boolean;
|
1382
|
-
readonly availableIndexes: IndexDetail[];
|
1383
|
-
readonly originalFieldDef: MetadataDetail[];
|
1384
|
-
readonly fieldMetadata: FieldMetadata[];
|
1385
|
-
readonly requestFields: MetadataDetail[];
|
1386
|
-
}
|
1387
|
-
|
1388
994
|
/**
|
1389
995
|
* @internal
|
1390
996
|
*/
|
1391
997
|
export declare class DatasourceMock implements Datasource {
|
1392
|
-
status: DatasourceStatus;
|
1393
|
-
fetchMetadataRequired: boolean;
|
1394
|
-
protected fetchingMetadata: boolean;
|
1395
|
-
originalFieldDef: MetadataDetail[];
|
1396
|
-
fieldMetadata: FieldMetadata[];
|
1397
|
-
requestFields: MetadataDetail[];
|
1398
|
-
availableIndexes: IndexDetail[];
|
1399
998
|
initialized: boolean;
|
999
|
+
fieldMetadata: FieldMetadata[];
|
1400
1000
|
readOnly: boolean;
|
1401
1001
|
resourceType: ResourceType;
|
1402
1002
|
stream: SocketObservable<FilteredDataServerResult | RequestServerResult>;
|
1403
1003
|
init(options: DatasourceOptions, fetchMeta: boolean): Promise<boolean>;
|
1404
|
-
/**
|
1405
|
-
* Convenience method to avoid you having to prime connect etc.
|
1406
|
-
* @param meta - The metadata to set.
|
1407
|
-
*/
|
1408
|
-
setMetadata(meta: Metadata): void;
|
1409
|
-
unsetMedata(): void;
|
1410
|
-
/**
|
1411
|
-
* Convenience method to avoid you having to prime connect etc.
|
1412
|
-
* @param message - The Message to stream.
|
1413
|
-
*/
|
1414
|
-
setStream(message: Message): void;
|
1415
|
-
unsetStream(): void;
|
1416
1004
|
deinit(): void;
|
1417
1005
|
destroy(): void;
|
1418
1006
|
validResourceName(resourceName: string): boolean;
|
@@ -1486,30 +1074,6 @@ export declare interface DatasourceOptions {
|
|
1486
1074
|
reverse?: boolean;
|
1487
1075
|
}
|
1488
1076
|
|
1489
|
-
/**
|
1490
|
-
* DatasourceStatus.
|
1491
|
-
* @public
|
1492
|
-
*/
|
1493
|
-
export declare type DatasourceStatus = {
|
1494
|
-
name: string;
|
1495
|
-
type: `${ResourceType}`;
|
1496
|
-
isInitialized: boolean;
|
1497
|
-
metadataRequired: boolean;
|
1498
|
-
hasMetadata: boolean;
|
1499
|
-
};
|
1500
|
-
|
1501
|
-
/**
|
1502
|
-
* DatasourceStatusChanged.
|
1503
|
-
* @public
|
1504
|
-
*/
|
1505
|
-
export declare const DatasourceStatusChanged = "datasource-status-changed";
|
1506
|
-
|
1507
|
-
/**
|
1508
|
-
* DatasourceStatusChangedEvent.
|
1509
|
-
* @public
|
1510
|
-
*/
|
1511
|
-
export declare type DatasourceStatusChangedEvent = CustomEvent<DatasourceStatus>;
|
1512
|
-
|
1513
1077
|
/**
|
1514
1078
|
* Data Update definition with details of what data to add, drop, and/or modify.
|
1515
1079
|
* @public
|
@@ -1602,7 +1166,6 @@ export declare class DefaultConnect implements Connect {
|
|
1602
1166
|
get isConnected(): boolean;
|
1603
1167
|
get isConnectedSubject(): BehaviorSubject<boolean>;
|
1604
1168
|
get isConnected$(): Observable<boolean>;
|
1605
|
-
get host(): string;
|
1606
1169
|
constructor(socket: Socket, messageBuilder: MessageBuilder, metaCache: MetaCache, events: ConnectEventsEmitter, config: ConnectConfig);
|
1607
1170
|
httpMode(): boolean;
|
1608
1171
|
/**
|
@@ -1610,7 +1173,7 @@ export declare class DefaultConnect implements Connect {
|
|
1610
1173
|
*/
|
1611
1174
|
setValidSession(valid: boolean): void;
|
1612
1175
|
send<T>(message: Message<any>, needsHandling?: boolean): Promise<any>;
|
1613
|
-
connect(host
|
1176
|
+
connect(host: string): Promise<boolean>;
|
1614
1177
|
disconnect(): void;
|
1615
1178
|
snapshot(resourceName: string, params?: any): Promise<Message>;
|
1616
1179
|
stream(resourceName: string, onMessage: Function, onError: Function, params?: any): SocketObservable<Message>;
|
@@ -1622,7 +1185,7 @@ export declare class DefaultConnect implements Connect {
|
|
1622
1185
|
getMetadata(resourceName: string, useCache?: boolean): Promise<Metadata>;
|
1623
1186
|
getJSONSchema(resourceName: string, useCache?: boolean): Promise<SchemaResponse>;
|
1624
1187
|
request(resourceName: string, params?: RequestParams): Promise<Message>;
|
1625
|
-
getAvailableResources(params?: any): Promise<
|
1188
|
+
getAvailableResources(params?: any): Promise<Message>;
|
1626
1189
|
commitEvent(eventName: string, params?: CommitParams): Promise<Message>;
|
1627
1190
|
}
|
1628
1191
|
|
@@ -1719,56 +1282,33 @@ export declare const defaultCredentialRequestOptions: GetCredentialOptions;
|
|
1719
1282
|
export declare class DefaultDatasource implements Datasource {
|
1720
1283
|
protected connect: Connect;
|
1721
1284
|
protected auth: Auth;
|
1722
|
-
protected resources: GenesisResources;
|
1723
1285
|
protected config: DatasourceConfig;
|
1724
|
-
|
1725
|
-
* {@inheritDoc Datasource.status}
|
1726
|
-
*/
|
1727
|
-
status: DatasourceStatus;
|
1728
|
-
/** {@inheritDoc DatasourceMetadata.fetchMetadataRequired} */
|
1729
|
-
fetchMetadataRequired: boolean;
|
1730
|
-
/** {@inheritDoc DatasourceMetadata.originalFieldDef} */
|
1731
|
-
originalFieldDef: MetadataDetail[];
|
1732
|
-
/** {@inheritDoc DatasourceMetadata.fieldMetadata} */
|
1733
|
-
fieldMetadata: FieldMetadata[];
|
1734
|
-
/** {@inheritDoc DatasourceMetadata.requestFields} */
|
1735
|
-
requestFields: MetadataDetail[];
|
1736
|
-
/** {@inheritDoc DatasourceMetadata.availableIndexes} */
|
1737
|
-
availableIndexes: IndexDetail[];
|
1738
|
-
/** {@inheritDoc Datasource.initialized} */
|
1739
|
-
get initialized(): boolean;
|
1286
|
+
initialized: boolean;
|
1740
1287
|
readOnly: boolean;
|
1741
1288
|
protected options: DatasourceOptions;
|
1742
1289
|
resourceType: ResourceType;
|
1743
|
-
|
1744
|
-
|
1745
|
-
|
1746
|
-
|
1747
|
-
|
1290
|
+
protected _stream: SocketObservable<FilteredDataServerResult | RequestServerResult>;
|
1291
|
+
protected originalFieldDef: MetadataDetail[];
|
1292
|
+
protected requestFields: MetadataDetail[];
|
1293
|
+
fieldMetadata: FieldMetadata[];
|
1294
|
+
protected availableIndexes: IndexDetail[];
|
1295
|
+
constructor(connect: Connect, auth: Auth, config?: DatasourceConfig);
|
1748
1296
|
validResourceName(resourceName: string): boolean;
|
1749
1297
|
init(options: DatasourceOptions, fetchMeta?: boolean): Promise<boolean>;
|
1750
1298
|
deinit(): void;
|
1751
1299
|
/** {@inheritDoc Datasource.destroy} */
|
1752
1300
|
destroy(): void;
|
1301
|
+
get stream(): SocketObservable<FilteredDataServerResult | RequestServerResult>;
|
1753
1302
|
get params(): any;
|
1754
1303
|
snapshot(): Promise<Message>;
|
1755
1304
|
snapshotFiltered(rowId?: string): Promise<any[]>;
|
1756
1305
|
private createStream;
|
1757
1306
|
private createDataserverStream;
|
1758
1307
|
private createReqRepStream;
|
1759
|
-
protected fetchAndApplyMetadata(resourceName: string): Promise<void>;
|
1760
|
-
/**
|
1761
|
-
* @internal
|
1762
|
-
*/
|
1763
|
-
protected reportStatus(detail?: Partial<DatasourceStatus>): void;
|
1764
|
-
/**
|
1765
|
-
* @internal
|
1766
|
-
*/
|
1767
|
-
protected normaliseStatus(status: Partial<DatasourceStatus>): DatasourceStatus;
|
1768
1308
|
}
|
1769
1309
|
|
1770
1310
|
/**
|
1771
|
-
*
|
1311
|
+
* The default configuration for the Datasource service.
|
1772
1312
|
* @public
|
1773
1313
|
*/
|
1774
1314
|
export declare const defaultDatasourceConfig: DatasourceConfig;
|
@@ -1787,9 +1327,7 @@ export declare class DefaultEntityDatasource<TDTO, TEntity> extends DefaultDatas
|
|
1787
1327
|
protected entityMap: Map<string, TEntity>;
|
1788
1328
|
protected rowId: string;
|
1789
1329
|
/** {@inheritDoc EntityDatasource.initialized} */
|
1790
|
-
|
1791
|
-
get initialized(): boolean;
|
1792
|
-
set initialized(value: boolean);
|
1330
|
+
initialized: boolean;
|
1793
1331
|
/** {@inheritDoc EntityDatasource.initialize} */
|
1794
1332
|
initialize: (init: EntityDatasourceInit<TDTO, TEntity>) => Promise<boolean>;
|
1795
1333
|
/** {@inheritDoc EntityDatasource.cache} */
|
@@ -1824,32 +1362,6 @@ export declare class DefaultFoundationAnalytics implements FoundationAnalytics {
|
|
1824
1362
|
trackEvent(eventName: FoundationAnalyticsEventType.routeChanged, payload: FoundationAnalyticsEvent.RouteChanged): void;
|
1825
1363
|
}
|
1826
1364
|
|
1827
|
-
/**
|
1828
|
-
* Default GenesisResources implementation.
|
1829
|
-
* @public
|
1830
|
-
*/
|
1831
|
-
export declare class DefaultGenesisResources implements GenesisResources {
|
1832
|
-
protected connect: Connect;
|
1833
|
-
protected config: GenesisResourcesConfig;
|
1834
|
-
protected resources: ResourceItem[];
|
1835
|
-
protected resourcesPromise: Promise<ResourcesMessage>;
|
1836
|
-
constructor(connect: Connect, config: GenesisResourcesConfig);
|
1837
|
-
/** {@inheritDoc GenesisResources.isValidResource} */
|
1838
|
-
isValidResource(resourceName: string): Promise<boolean>;
|
1839
|
-
/** {@inheritDoc GenesisResources.getResourceTypeFor} */
|
1840
|
-
getResourceTypeFor(resourceName: string): Promise<ResourceType>;
|
1841
|
-
/** {@inheritDoc GenesisResources.destroy} */
|
1842
|
-
destroy(): void;
|
1843
|
-
protected getResources(): Promise<void>;
|
1844
|
-
protected postLoadedMessage(): void;
|
1845
|
-
}
|
1846
|
-
|
1847
|
-
/**
|
1848
|
-
* Default GenesisResourcesConfig implementation.
|
1849
|
-
* @public
|
1850
|
-
*/
|
1851
|
-
export declare const defaultGenesisResourcesConfig: GenesisResourcesConfig;
|
1852
|
-
|
1853
1365
|
/**
|
1854
1366
|
* The default implementation of the Http interface.
|
1855
1367
|
* @public
|
@@ -1909,7 +1421,7 @@ export declare class DefaultHttpConnect implements Connect {
|
|
1909
1421
|
getMetadata(resourceName: string, useCache?: boolean): Promise<Metadata>;
|
1910
1422
|
getJSONSchema(resourceName: string): Promise<SchemaResponse>;
|
1911
1423
|
request(resourceName: string, params?: RequestParams): Promise<Message>;
|
1912
|
-
getAvailableResources(params?: any): Promise<
|
1424
|
+
getAvailableResources(params?: any): Promise<Message>;
|
1913
1425
|
commitEvent(eventName: string, params?: CommitParams): Promise<Message>;
|
1914
1426
|
private maybeTurbo;
|
1915
1427
|
private updateIntervals;
|
@@ -2237,7 +1749,6 @@ export declare class DefaultSocket implements Socket {
|
|
2237
1749
|
* Temp putting the user in place to bridge the hasValidSession logic.
|
2238
1750
|
*/
|
2239
1751
|
protected user: User_2;
|
2240
|
-
protected config: ConnectConfig;
|
2241
1752
|
private readonly defaultInterval;
|
2242
1753
|
private readonly secondsMultiplier;
|
2243
1754
|
private websocket;
|
@@ -2253,7 +1764,6 @@ export declare class DefaultSocket implements Socket {
|
|
2253
1764
|
/** {@inheritDoc SerializedSocketStatus.hasValidSession} */
|
2254
1765
|
get hasValidSession(): boolean;
|
2255
1766
|
set hasValidSession(value: boolean);
|
2256
|
-
get host(): string;
|
2257
1767
|
private heartbeatIsEnabled;
|
2258
1768
|
private heartbeatInterval;
|
2259
1769
|
private heartbeatTicker;
|
@@ -2265,10 +1775,10 @@ export declare class DefaultSocket implements Socket {
|
|
2265
1775
|
/**
|
2266
1776
|
* Temp putting the user in place to bridge the hasValidSession logic.
|
2267
1777
|
*/
|
2268
|
-
user: User_2
|
1778
|
+
user: User_2);
|
2269
1779
|
private get heartbeatLoggingIsEnabled();
|
2270
1780
|
private get messageLoggingIsEnabled();
|
2271
|
-
connect(host
|
1781
|
+
connect(host: string, connectOptions?: SocketConnectOptions, reconnectOptions?: SocketReconnectOptions): Promise<boolean>;
|
2272
1782
|
private prepareHeartbeat;
|
2273
1783
|
private reconnect;
|
2274
1784
|
reset(): void;
|
@@ -2376,7 +1886,12 @@ export declare class DefaultSocketStatus implements SocketStatus {
|
|
2376
1886
|
*
|
2377
1887
|
* @alpha
|
2378
1888
|
*/
|
2379
|
-
export declare interface EntityDatasource<TDTO, TEntity>
|
1889
|
+
export declare interface EntityDatasource<TDTO, TEntity> {
|
1890
|
+
/**
|
1891
|
+
* @remarks
|
1892
|
+
* Datasource initialized.
|
1893
|
+
*/
|
1894
|
+
readonly initialized: boolean;
|
2380
1895
|
/**
|
2381
1896
|
* @remarks
|
2382
1897
|
* Initialize datasource.
|
@@ -2440,8 +1955,6 @@ export declare enum EventMessageType {
|
|
2440
1955
|
META_REQUEST = "META_REQUEST",
|
2441
1956
|
JSON_SCHEMA_REQUEST = "JSON_SCHEMA_REQUEST",
|
2442
1957
|
RESOURCES_REQUEST = "RESOURCES_REQUEST",
|
2443
|
-
RESOURCES_REQUEST_ACK = "RESOURCES_REQUEST_ACK",
|
2444
|
-
RESOURCES_REQUEST_NACK = "RESOURCES_REQUEST_NACK",
|
2445
1958
|
EVENT_CHANGE_USER_PASSWORD = "EVENT_CHANGE_USER_PASSWORD",
|
2446
1959
|
EVENT_SELF_SERVICE_PASSWORD_RESET = "EVENT_SELF_SERVICE_PASSWORD_RESET",
|
2447
1960
|
EVENT_PASSWORD_RESET_ACTION = "EVENT_PASSWORD_RESET_ACTION"
|
@@ -2579,118 +2092,6 @@ export declare enum FoundationAnalyticsEventType {
|
|
2579
2092
|
*/
|
2580
2093
|
export declare type GenesisConnectEvents = 'stream' | 'commit';
|
2581
2094
|
|
2582
|
-
/**
|
2583
|
-
* GenesisResources DI interface.
|
2584
|
-
* @remarks
|
2585
|
-
* A lazy shared Genesis Resources lookup system. N number of callers can request information in succession, but only
|
2586
|
-
* the first will invoke the server request, and each caller will receive their results when that returns.
|
2587
|
-
* @public
|
2588
|
-
*/
|
2589
|
-
export declare interface GenesisResources {
|
2590
|
-
/**
|
2591
|
-
* Checks if the resource exists
|
2592
|
-
* @param resourceName - The name of the resource to check.
|
2593
|
-
*/
|
2594
|
-
isValidResource: (resourceName: string) => Promise<boolean>;
|
2595
|
-
/**
|
2596
|
-
* Gets the type of resource
|
2597
|
-
* @param resourceName - The name of the resource to get the type for.
|
2598
|
-
*/
|
2599
|
-
getResourceTypeFor: (resourceName: string) => Promise<ResourceType>;
|
2600
|
-
/**
|
2601
|
-
* Destroy and garbage collect
|
2602
|
-
*/
|
2603
|
-
destroy: () => void;
|
2604
|
-
}
|
2605
|
-
|
2606
|
-
/**
|
2607
|
-
* GenesisResources DI key.
|
2608
|
-
* @internal
|
2609
|
-
* @privateRemarks
|
2610
|
-
* Marked as internal to stop api-extractor becoming confused cross-linking tokens with the same name.
|
2611
|
-
*/
|
2612
|
-
export declare const GenesisResources: InterfaceSymbol<GenesisResources>;
|
2613
|
-
|
2614
|
-
/**
|
2615
|
-
* GenesisResourcesChannel DI interface.
|
2616
|
-
* @example
|
2617
|
-
* ```ts
|
2618
|
-
* import { GenesisResourcesChannel } from '@genesislcap/foundation-comms';
|
2619
|
-
* ...
|
2620
|
-
* @GenesisResourcesChannel protected channel: GenesisResourcesChannel;
|
2621
|
-
* ...
|
2622
|
-
* this.channel.onmessage = (e) => {
|
2623
|
-
* if (this.channel.isMessageType('resources-loaded', e)) {
|
2624
|
-
* logger.debug('resources-loaded', e.data.detail);
|
2625
|
-
* return;
|
2626
|
-
* }
|
2627
|
-
* }
|
2628
|
-
* ...
|
2629
|
-
* this.channel.close();
|
2630
|
-
* ```
|
2631
|
-
* @public
|
2632
|
-
*/
|
2633
|
-
export declare interface GenesisResourcesChannel extends TypedBroadcastChannel<GenesisResourcesEvents> {
|
2634
|
-
}
|
2635
|
-
|
2636
|
-
/**
|
2637
|
-
* GenesisResourcesChannel DI key.
|
2638
|
-
* @internal
|
2639
|
-
* @privateRemarks
|
2640
|
-
* Marked as internal to stop api-extractor becoming confused cross-linking tokens with the same name.
|
2641
|
-
*/
|
2642
|
-
export declare const GenesisResourcesChannel: InterfaceSymbol<TypedBroadcastChannel<GenesisResourcesEvents>>;
|
2643
|
-
|
2644
|
-
/**
|
2645
|
-
* @public
|
2646
|
-
*/
|
2647
|
-
export declare const GenesisResourcesChannelId = "genesis-resources";
|
2648
|
-
|
2649
|
-
/**
|
2650
|
-
* GenesisResourcesConfig DI interface.
|
2651
|
-
* @public
|
2652
|
-
*/
|
2653
|
-
export declare interface GenesisResourcesConfig {
|
2654
|
-
/**
|
2655
|
-
* Treat unavailable/empty genesis resource sets as fatal errors.
|
2656
|
-
*/
|
2657
|
-
throwWhenUnavailable?: boolean;
|
2658
|
-
/**
|
2659
|
-
* Treat unknown resources as fatal errors.
|
2660
|
-
*/
|
2661
|
-
throwWhenUnknown?: boolean;
|
2662
|
-
}
|
2663
|
-
|
2664
|
-
/**
|
2665
|
-
* GenesisResourcesConfig DI key.
|
2666
|
-
* @internal
|
2667
|
-
* @privateRemarks
|
2668
|
-
* Marked as internal to stop api-extractor becoming confused cross-linking tokens with the same name.
|
2669
|
-
*/
|
2670
|
-
export declare const GenesisResourcesConfig: InterfaceSymbol<GenesisResourcesConfig>;
|
2671
|
-
|
2672
|
-
/**
|
2673
|
-
* @public
|
2674
|
-
*/
|
2675
|
-
export declare type GenesisResourcesEvents = {
|
2676
|
-
'resources-loaded': ResourceItem[];
|
2677
|
-
'resources-unloaded': void;
|
2678
|
-
};
|
2679
|
-
|
2680
|
-
/**
|
2681
|
-
* @public
|
2682
|
-
*/
|
2683
|
-
export declare class GenesisResourcesMock implements GenesisResources {
|
2684
|
-
resources: ResourceItem[];
|
2685
|
-
nextIsValidResourceResponse: boolean;
|
2686
|
-
nextResourceTypeForResponse: ResourceType;
|
2687
|
-
/** {@inheritDoc GenesisResources.isValidResource} */
|
2688
|
-
isValidResource(resourceName: string): Promise<boolean>;
|
2689
|
-
/** {@inheritDoc GenesisResources.getResourceTypeFor} */
|
2690
|
-
getResourceTypeFor(resourceName: string): Promise<ResourceType>;
|
2691
|
-
destroy(): void;
|
2692
|
-
}
|
2693
|
-
|
2694
2095
|
/**
|
2695
2096
|
* Get Connect from the DI container.
|
2696
2097
|
*
|
@@ -2749,47 +2150,6 @@ export declare type GetCredentialOptions = CredentialRequestOptions & {};
|
|
2749
2150
|
*/
|
2750
2151
|
export declare function getDatasource(): Datasource;
|
2751
2152
|
|
2752
|
-
/**
|
2753
|
-
* Gets GenesisResources from the DI container.
|
2754
|
-
*
|
2755
|
-
* @remarks
|
2756
|
-
* A utility method for host applications that are not using decorators or the DI container.
|
2757
|
-
*
|
2758
|
-
* @example
|
2759
|
-
* ```ts
|
2760
|
-
* import { getGenesisResources } from '@genesislcap/foundation-comms';
|
2761
|
-
* ...
|
2762
|
-
* const genesisResources = getGenesisResources();
|
2763
|
-
* ```
|
2764
|
-
* @public
|
2765
|
-
*/
|
2766
|
-
export declare function getGenesisResources(): GenesisResources;
|
2767
|
-
|
2768
|
-
/**
|
2769
|
-
* Gets GenesisResourcesChannel from the DI container.
|
2770
|
-
*
|
2771
|
-
* @remarks
|
2772
|
-
* A utility method for host applications that are not using decorators or the DI container.
|
2773
|
-
*
|
2774
|
-
* @example
|
2775
|
-
* ```ts
|
2776
|
-
* import { getGenesisResourcesChannel } from '@genesislcap/foundation-comms';
|
2777
|
-
* ...
|
2778
|
-
* const channel = getGenesisResourcesChannel();
|
2779
|
-
* ...
|
2780
|
-
* channel.onmessage = (e) => {
|
2781
|
-
* if (channel.isMessageType('resources-loaded', e)) {
|
2782
|
-
* logger.debug('resources-loaded', e.data.detail);
|
2783
|
-
* return;
|
2784
|
-
* }
|
2785
|
-
* }
|
2786
|
-
* ...
|
2787
|
-
* channel.close();
|
2788
|
-
* ```
|
2789
|
-
* @public
|
2790
|
-
*/
|
2791
|
-
export declare function getGenesisResourcesChannel(): GenesisResourcesChannel;
|
2792
|
-
|
2793
2153
|
/**
|
2794
2154
|
* Gets KVStorage from the DI container.
|
2795
2155
|
*
|
@@ -3914,23 +3274,6 @@ export declare type ResourceHealth = MonitoredResourceChecksResult & {
|
|
3914
3274
|
lastError?: any;
|
3915
3275
|
};
|
3916
3276
|
|
3917
|
-
/**
|
3918
|
-
* @public
|
3919
|
-
*/
|
3920
|
-
export declare type ResourceItem = {
|
3921
|
-
RESOURCE_NAME: string;
|
3922
|
-
RESOURCE_TYPE: string;
|
3923
|
-
};
|
3924
|
-
|
3925
|
-
/**
|
3926
|
-
* @public
|
3927
|
-
*/
|
3928
|
-
export declare type ResourcesMessage = {
|
3929
|
-
MESSAGE_TYPE: EventMessageType.RESOURCES_REQUEST_ACK | EventMessageType.RESOURCES_REQUEST_NACK | MessageType.MSG_NACK;
|
3930
|
-
SOURCE_REF: string;
|
3931
|
-
RESOURCES: ResourceItem[];
|
3932
|
-
};
|
3933
|
-
|
3934
3277
|
/**
|
3935
3278
|
* Types of Genesis resources.
|
3936
3279
|
* @public
|
@@ -4191,7 +3534,6 @@ export declare interface Socket extends Omit<SocketStatus, 'serialize' | 'onClos
|
|
4191
3534
|
*/
|
4192
3535
|
sendForStreamWithoutTeardown<T>(message: Message<T | any>, onMessage: Function, onError: Function): Observable<Message>;
|
4193
3536
|
socketMessages(): SocketSubject<Message>;
|
4194
|
-
host: string;
|
4195
3537
|
}
|
4196
3538
|
|
4197
3539
|
/**
|
@@ -4311,7 +3653,6 @@ export declare class SocketMock implements Socket {
|
|
4311
3653
|
isConnected: boolean;
|
4312
3654
|
isConnectedSubject: BehaviorSubject<boolean>;
|
4313
3655
|
isReconnecting: boolean;
|
4314
|
-
host: string;
|
4315
3656
|
nextMessage: Message;
|
4316
3657
|
socketMessagesSubject: SocketSubject<Message<any>>;
|
4317
3658
|
connect(host: string, options?: SocketConnectOptions, reconnectOptions?: SocketReconnectOptions): Promise<boolean>;
|