@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
@@ -3,7 +3,7 @@ import type { Metadata, SchemaResponse } from '../metadata';
|
|
3
3
|
import { MetaCache } from '../metadata';
|
4
4
|
import { ConnectEventsEmitter } from './connect.events';
|
5
5
|
import { ConnectConfig } from './connect.types';
|
6
|
-
import { CommitParams, Message, MessageBuilder, RequestParams
|
6
|
+
import { CommitParams, Message, MessageBuilder, RequestParams } from './message';
|
7
7
|
import type { SocketObservable } from './socket';
|
8
8
|
import { Socket } from './socket';
|
9
9
|
/**
|
@@ -51,10 +51,10 @@ export interface Connect {
|
|
51
51
|
/**
|
52
52
|
* Connects to a server at the specified host.
|
53
53
|
* @public
|
54
|
-
* @param host - The host to connect to.
|
54
|
+
* @param host - The host to connect to.
|
55
55
|
* @returns A promise that resolves with a boolean indicating whether the connection was successful.
|
56
56
|
*/
|
57
|
-
connect(host
|
57
|
+
connect(host: string): Promise<boolean>;
|
58
58
|
/**
|
59
59
|
* Disconnects from the server.
|
60
60
|
* @public
|
@@ -156,7 +156,7 @@ export interface Connect {
|
|
156
156
|
* @param params - An object containing optional parameters to include in the request.
|
157
157
|
* @returns A promise that resolves to a Message containing the server's response with available resources.
|
158
158
|
*/
|
159
|
-
getAvailableResources(params?: RequestParams): Promise<
|
159
|
+
getAvailableResources(params?: RequestParams): Promise<Message>;
|
160
160
|
/**
|
161
161
|
* Sends a request to the server to retrieve data or perform an action.
|
162
162
|
* @public
|
@@ -165,10 +165,6 @@ export interface Connect {
|
|
165
165
|
* @returns A promise that resolves to a Message containing the server's response.
|
166
166
|
*/
|
167
167
|
commitEvent(eventName: string, params?: CommitParams): Promise<Message>;
|
168
|
-
/**
|
169
|
-
* @returns The host provided.
|
170
|
-
*/
|
171
|
-
host: string;
|
172
168
|
}
|
173
169
|
/**
|
174
170
|
* The default implementation for the Connect interface (WS-only).
|
@@ -184,7 +180,6 @@ export declare class DefaultConnect implements Connect {
|
|
184
180
|
get isConnected(): boolean;
|
185
181
|
get isConnectedSubject(): BehaviorSubject<boolean>;
|
186
182
|
get isConnected$(): Observable<boolean>;
|
187
|
-
get host(): string;
|
188
183
|
constructor(socket: Socket, messageBuilder: MessageBuilder, metaCache: MetaCache, events: ConnectEventsEmitter, config: ConnectConfig);
|
189
184
|
httpMode(): boolean;
|
190
185
|
/**
|
@@ -192,7 +187,7 @@ export declare class DefaultConnect implements Connect {
|
|
192
187
|
*/
|
193
188
|
setValidSession(valid: boolean): void;
|
194
189
|
send<T>(message: Message<any>, needsHandling?: boolean): Promise<any>;
|
195
|
-
connect(host
|
190
|
+
connect(host: string): Promise<boolean>;
|
196
191
|
disconnect(): void;
|
197
192
|
snapshot(resourceName: string, params?: any): Promise<Message>;
|
198
193
|
stream(resourceName: string, onMessage: Function, onError: Function, params?: any): SocketObservable<Message>;
|
@@ -204,7 +199,7 @@ export declare class DefaultConnect implements Connect {
|
|
204
199
|
getMetadata(resourceName: string, useCache?: boolean): Promise<Metadata>;
|
205
200
|
getJSONSchema(resourceName: string, useCache?: boolean): Promise<SchemaResponse>;
|
206
201
|
request(resourceName: string, params?: RequestParams): Promise<Message>;
|
207
|
-
getAvailableResources(params?: any): Promise<
|
202
|
+
getAvailableResources(params?: any): Promise<Message>;
|
208
203
|
commitEvent(eventName: string, params?: CommitParams): Promise<Message>;
|
209
204
|
}
|
210
205
|
/**
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"connect.d.ts","sourceRoot":"","sources":["../../../src/connect/connect.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,UAAU,EAAQ,MAAM,MAAM,CAAC;AACzD,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,
|
1
|
+
{"version":3,"file":"connect.d.ts","sourceRoot":"","sources":["../../../src/connect/connect.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,UAAU,EAAQ,MAAM,MAAM,CAAC;AACzD,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,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GAAG,EAAE,CAAC;IAMb,yBAAyB,CAC9B,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,QAAQ,EACnB,OAAO,EAAE,QAAQ,EACjB,MAAM,CAAC,EAAE,GAAG,GACX,gBAAgB,CAAC,OAAO,CAAC;IAef,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAMhD,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAKnD,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;IAmC9E,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;CAOrF;AAID;;;GAGG;AACH,eAAO,MAAM,SAAS,+DAAkE,CAAC;AAEzF;;;GAGG;AACH,eAAO,MAAM,OAAO,+DAEnB,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,UAAU,IAAI,OAAO,CAEpC"}
|
@@ -6,7 +6,7 @@ import { Session } from '../session';
|
|
6
6
|
import type { Connect } from './connect';
|
7
7
|
import { Http } from './http';
|
8
8
|
import { HttpConnectConfig } from './http.connect.types';
|
9
|
-
import { CommitParams, Message, MessageBuilder, RequestParams
|
9
|
+
import { CommitParams, Message, MessageBuilder, RequestParams } from './message';
|
10
10
|
import { SocketObservable } from './socket';
|
11
11
|
/**
|
12
12
|
* The default implementation for the Connect interface (HTTP-only).
|
@@ -56,7 +56,7 @@ export declare class DefaultHttpConnect implements Connect {
|
|
56
56
|
getMetadata(resourceName: string, useCache?: boolean): Promise<Metadata>;
|
57
57
|
getJSONSchema(resourceName: string): Promise<SchemaResponse>;
|
58
58
|
request(resourceName: string, params?: RequestParams): Promise<Message>;
|
59
|
-
getAvailableResources(params?: any): Promise<
|
59
|
+
getAvailableResources(params?: any): Promise<Message>;
|
60
60
|
commitEvent(eventName: string, params?: CommitParams): Promise<Message>;
|
61
61
|
private maybeTurbo;
|
62
62
|
private updateIntervals;
|
@@ -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;AAG/D,OAAO,EACL,eAAe,EAKf,UAAU,EAIX,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,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EACL,YAAY,EAEZ,OAAO,EACP,cAAc,EAGd,aAAa,
|
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;AAG/D,OAAO,EACL,eAAe,EAKf,UAAU,EAIX,MAAM,MAAM,CAAC;AACd,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc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ASvE,qBAAqB,CAAC,MAAM,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,OAAO,CAAC;IAS/C,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,OAAO,CAAC;IAYpF,OAAO,CAAC,UAAU;IAkDlB,OAAO,CAAC,eAAe;IAOvB,OAAO,CAAC,8BAA8B;IAmBtC,OAAO,CAAC,MAAM,CAAC,OAAO;IAItB,OAAO,CAAC,MAAM,CAAC,MAAM;CAUtB;AAED;;;GAGG;AACH,eAAO,MAAM,WAAW,+DAAsE,CAAC"}
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { UUID } from '@genesislcap/foundation-utils';
|
2
2
|
import { AuthInfo, LoginResult } from '../auth/auth.types';
|
3
|
-
import type { ResourceItem } from '../resources/genesis/types';
|
4
3
|
import { Session } from '../session';
|
5
4
|
/**
|
6
5
|
* General Message types
|
@@ -36,8 +35,6 @@ export declare enum EventMessageType {
|
|
36
35
|
META_REQUEST = "META_REQUEST",
|
37
36
|
JSON_SCHEMA_REQUEST = "JSON_SCHEMA_REQUEST",
|
38
37
|
RESOURCES_REQUEST = "RESOURCES_REQUEST",
|
39
|
-
RESOURCES_REQUEST_ACK = "RESOURCES_REQUEST_ACK",
|
40
|
-
RESOURCES_REQUEST_NACK = "RESOURCES_REQUEST_NACK",
|
41
38
|
EVENT_CHANGE_USER_PASSWORD = "EVENT_CHANGE_USER_PASSWORD",
|
42
39
|
EVENT_SELF_SERVICE_PASSWORD_RESET = "EVENT_SELF_SERVICE_PASSWORD_RESET",
|
43
40
|
EVENT_PASSWORD_RESET_ACTION = "EVENT_PASSWORD_RESET_ACTION"
|
@@ -250,14 +247,6 @@ export type PongMessage = Pick<Message, 'MESSAGE_TYPE' | 'SOURCE_REF' | 'USER_NA
|
|
250
247
|
LAST_SENT?: number;
|
251
248
|
RESOURCES?: Record<string, RESOURCE_DETAILS[]>;
|
252
249
|
};
|
253
|
-
/**
|
254
|
-
* @public
|
255
|
-
*/
|
256
|
-
export type ResourcesMessage = {
|
257
|
-
MESSAGE_TYPE: EventMessageType.RESOURCES_REQUEST_ACK | EventMessageType.RESOURCES_REQUEST_NACK | MessageType.MSG_NACK;
|
258
|
-
SOURCE_REF: string;
|
259
|
-
RESOURCES: ResourceItem[];
|
260
|
-
};
|
261
250
|
/**
|
262
251
|
* Parameters for a REQUEST message
|
263
252
|
* @public
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../../src/connect/message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AAErD,OAAO,EAAE,QAAQ,EAAY,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACrE,OAAO,
|
1
|
+
{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../../src/connect/message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AAErD,OAAO,EAAE,QAAQ,EAAY,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC;;;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;IACvB,YAAY,iBAAiB;IAC7B,gBAAgB,qBAAqB;IAErC,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,yBAAyB;IAC7C,qBAAqB,0BAA0B;IAE/C,YAAY,iBAAiB;IAC7B,UAAU,eAAe;IACzB,WAAW,gBAAgB;IAE3B,YAAY,iBA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AC,CAAC,CAAC;IASnE,wBAAwB,CAC7B,YAAY,EAAE,MAAM,EACpB,WAAW,GAAE,gBAAgD,GAC5D,OAAO,CAAC,cAAc,CAAC,WAAW,CAAC;IAW/B,mBAAmB,CAAC,CAAC,GAAG,GAAG,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,CAAC,CAAC;IASlF,yBAAyB,IAAI,OAAO,CAAC,cAAc,CAAC,YAAY,CAAC;IAYjE,2BAA2B,CAChC,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,cAAc,CAAC,cAAc,CAAC;IAYlC,2BAA2B,CAChC,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,EACjB,SAAS,GAAE,MAAiB,GAC3B,OAAO,CAAC,cAAc,CAAC,cAAc,CAAC;IAYlC,gCAAgC,CACrC,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,EAClB,WAAW,EAAE,MAAM,EACnB,SAAS,GAAE,MAAiB,GAC3B,OAAO,CAAC,cAAc,CAAC,mBAAmB,CAAC;IAavC,qBAAqB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO;IAWjD,wBAAwB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO;IAOpD,4BAA4B,CACjC,OAAO,EAAE,OAAO,EAChB,WAAW,GAAE,MAA0C,GACtD,WAAW;IAed,8DAA8D;IACvD,0BAA0B,CAAC,OAAO,UAAQ,GAAG,WAAW;CAShE;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,sEAE1B,CAAC"}
|
@@ -2,7 +2,6 @@ import { User } from '@genesislcap/foundation-user';
|
|
2
2
|
import { JSONSerializer, UUID } from '@genesislcap/foundation-utils';
|
3
3
|
import { Observable, Subject, Subscription } from 'rxjs';
|
4
4
|
import { Session } from '../session';
|
5
|
-
import { ConnectConfig } from './connect.types';
|
6
5
|
import { Message, MessageBuilder } from './message';
|
7
6
|
import { SocketReconnectOptions } from './reconnectStrategy';
|
8
7
|
import { SocketStatus } from './socket.status';
|
@@ -94,7 +93,6 @@ export interface Socket extends Omit<SocketStatus, 'serialize' | 'onClose' | 're
|
|
94
93
|
*/
|
95
94
|
sendForStreamWithoutTeardown<T>(message: Message<T | any>, onMessage: Function, onError: Function): Observable<Message>;
|
96
95
|
socketMessages(): SocketSubject<Message>;
|
97
|
-
host: string;
|
98
96
|
}
|
99
97
|
/**
|
100
98
|
* Default Socket implementation.
|
@@ -110,7 +108,6 @@ export declare class DefaultSocket implements Socket {
|
|
110
108
|
* Temp putting the user in place to bridge the hasValidSession logic.
|
111
109
|
*/
|
112
110
|
protected user: User;
|
113
|
-
protected config: ConnectConfig;
|
114
111
|
private readonly defaultInterval;
|
115
112
|
private readonly secondsMultiplier;
|
116
113
|
private websocket;
|
@@ -126,7 +123,6 @@ export declare class DefaultSocket implements Socket {
|
|
126
123
|
/** {@inheritDoc SerializedSocketStatus.hasValidSession} */
|
127
124
|
get hasValidSession(): boolean;
|
128
125
|
set hasValidSession(value: boolean);
|
129
|
-
get host(): string;
|
130
126
|
private heartbeatIsEnabled;
|
131
127
|
private heartbeatInterval;
|
132
128
|
private heartbeatTicker;
|
@@ -138,10 +134,10 @@ export declare class DefaultSocket implements Socket {
|
|
138
134
|
/**
|
139
135
|
* Temp putting the user in place to bridge the hasValidSession logic.
|
140
136
|
*/
|
141
|
-
user: User
|
137
|
+
user: User);
|
142
138
|
private get heartbeatLoggingIsEnabled();
|
143
139
|
private get messageLoggingIsEnabled();
|
144
|
-
connect(host
|
140
|
+
connect(host: string, connectOptions?: SocketConnectOptions, reconnectOptions?: SocketReconnectOptions): Promise<boolean>;
|
145
141
|
private prepareHeartbeat;
|
146
142
|
private reconnect;
|
147
143
|
reset(): void;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"socket.d.ts","sourceRoot":"","sources":["../../../src/connect/socket.ts"],"names":[],"mappings":"AAA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IAAI,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,GAAG,GAAG,CAAC,EAAE,aAAa,UAAO,GAAG,OAAO,CAAC,OAAO,GAAG,GAAG,CAAC;IAyBhF,aAAa,CAAC,CAAC,EACpB,OAAO,EAAE,OAAO,CAAC,CAAC,GAAG,GAAG,CAAC,EACzB,SAAS,EAAE,QAAQ,EACnB,OAAO,EAAE,QAAQ,EACjB,UAAU,CAAC,EAAE,QAAQ,GACpB,UAAU,CAAC,OAAO,CAAC;IAgDf,4BAA4B,CAAC,CAAC,EACnC,OAAO,EAAE,OAAO,CAAC,CAAC,GAAG,GAAG,CAAC,EACzB,SAAS,EAAE,QAAQ,EACnB,OAAO,EAAE,QAAQ,GAChB,UAAU,CAAC,OAAO,CAAC;IAcf,cAAc,QAAO,cAAc,OAAO,CAAC,CAAoB;IAEtE,OAAO,CAAC,iBAAiB;IAezB,OAAO,CAAC,cAAc;IAItB,OAAO,CAAC,oBAAoB;IAI5B,OAAO,CAAC,iBAAiB;IAUzB,OAAO,CAAC,kBAAkB;CAkB3B;AAED;;;GAGG;AACH,eAAO,MAAM,MAAM,8DAAgE,CAAC;AAEpF;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,SAAS,IAAI,MAAM,CAElC"}
|
@@ -1,37 +1,30 @@
|
|
1
1
|
import { Auth } from '../auth';
|
2
2
|
import { Connect, Message, SocketObservable } from '../connect';
|
3
3
|
import type { FieldMetadata, FilteredDataServerResult, IndexDetail, MetadataDetail, RequestServerResult } from '../metadata/metadata.types';
|
4
|
-
import {
|
5
|
-
import { DatasourceConfig } from './datasource.
|
6
|
-
import type { DatasourceOptions, DatasourceStatus, Dataview } from './datasource.types';
|
7
|
-
import { ResourceType } from './datasource.types';
|
4
|
+
import type { DatasourceOptions, Dataview } from './datasource.types';
|
5
|
+
import { DatasourceConfig, ResourceType } from './datasource.types';
|
8
6
|
/**
|
9
|
-
*
|
7
|
+
* The default configuration for the Datasource service.
|
10
8
|
* @public
|
11
9
|
*/
|
12
|
-
export
|
13
|
-
fetchMetadataRequired: boolean;
|
14
|
-
readonly availableIndexes: IndexDetail[];
|
15
|
-
readonly originalFieldDef: MetadataDetail[];
|
16
|
-
readonly fieldMetadata: FieldMetadata[];
|
17
|
-
readonly requestFields: MetadataDetail[];
|
18
|
-
}
|
10
|
+
export declare const defaultDatasourceConfig: DatasourceConfig;
|
19
11
|
/**
|
20
12
|
* Datasource interface.
|
21
13
|
* @public
|
22
14
|
* @remarks
|
23
15
|
* The public interface available on the injected store fragment.
|
24
16
|
*/
|
25
|
-
export interface Datasource
|
17
|
+
export interface Datasource {
|
26
18
|
/**
|
19
|
+
* Indicates whether the datasource has been initialized.
|
27
20
|
* @public
|
28
21
|
*/
|
29
|
-
|
22
|
+
initialized: boolean;
|
30
23
|
/**
|
31
|
-
*
|
24
|
+
* Metadata about the fields of the datasource.
|
32
25
|
* @public
|
33
26
|
*/
|
34
|
-
|
27
|
+
fieldMetadata: FieldMetadata[];
|
35
28
|
/**
|
36
29
|
* Indicates whether the datasource is read-only.
|
37
30
|
* TODO: Should have is prefix
|
@@ -57,10 +50,10 @@ export interface Datasource extends DatasourceMetadata {
|
|
57
50
|
* Initializes the datasource with the given options and fetches metadata if specified.
|
58
51
|
* @public
|
59
52
|
* @param options - The options to initialize the datasource with.
|
60
|
-
* @param fetchMeta -
|
53
|
+
* @param fetchMeta - Whether to fetch metadata for the datasource.
|
61
54
|
* @returns A promise that resolves with a boolean indicating whether the initialization was successful.
|
62
55
|
*/
|
63
|
-
init(options: DatasourceOptions, fetchMeta
|
56
|
+
init(options: DatasourceOptions, fetchMeta: boolean): Promise<boolean>;
|
64
57
|
/**
|
65
58
|
* Deinitializes the datasource.
|
66
59
|
* @remarks This should be called to clean up any resources when the datasource is no longer needed.
|
@@ -165,52 +158,29 @@ export interface Datasource extends DatasourceMetadata {
|
|
165
158
|
export declare class DefaultDatasource implements Datasource {
|
166
159
|
protected connect: Connect;
|
167
160
|
protected auth: Auth;
|
168
|
-
protected resources: GenesisResources;
|
169
161
|
protected config: DatasourceConfig;
|
170
|
-
|
171
|
-
* {@inheritDoc Datasource.status}
|
172
|
-
*/
|
173
|
-
status: DatasourceStatus;
|
174
|
-
/** {@inheritDoc DatasourceMetadata.fetchMetadataRequired} */
|
175
|
-
fetchMetadataRequired: boolean;
|
176
|
-
/** {@inheritDoc DatasourceMetadata.originalFieldDef} */
|
177
|
-
originalFieldDef: MetadataDetail[];
|
178
|
-
/** {@inheritDoc DatasourceMetadata.fieldMetadata} */
|
179
|
-
fieldMetadata: FieldMetadata[];
|
180
|
-
/** {@inheritDoc DatasourceMetadata.requestFields} */
|
181
|
-
requestFields: MetadataDetail[];
|
182
|
-
/** {@inheritDoc DatasourceMetadata.availableIndexes} */
|
183
|
-
availableIndexes: IndexDetail[];
|
184
|
-
/** {@inheritDoc Datasource.initialized} */
|
185
|
-
get initialized(): boolean;
|
162
|
+
initialized: boolean;
|
186
163
|
readOnly: boolean;
|
187
164
|
protected options: DatasourceOptions;
|
188
165
|
resourceType: ResourceType;
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
166
|
+
protected _stream: SocketObservable<FilteredDataServerResult | RequestServerResult>;
|
167
|
+
protected originalFieldDef: MetadataDetail[];
|
168
|
+
protected requestFields: MetadataDetail[];
|
169
|
+
fieldMetadata: FieldMetadata[];
|
170
|
+
protected availableIndexes: IndexDetail[];
|
171
|
+
constructor(connect: Connect, auth: Auth, config?: DatasourceConfig);
|
194
172
|
validResourceName(resourceName: string): boolean;
|
195
173
|
init(options: DatasourceOptions, fetchMeta?: boolean): Promise<boolean>;
|
196
174
|
deinit(): void;
|
197
175
|
/** {@inheritDoc Datasource.destroy} */
|
198
176
|
destroy(): void;
|
177
|
+
get stream(): SocketObservable<FilteredDataServerResult | RequestServerResult>;
|
199
178
|
get params(): any;
|
200
179
|
snapshot(): Promise<Message>;
|
201
180
|
snapshotFiltered(rowId?: string): Promise<any[]>;
|
202
181
|
private createStream;
|
203
182
|
private createDataserverStream;
|
204
183
|
private createReqRepStream;
|
205
|
-
protected fetchAndApplyMetadata(resourceName: string): Promise<void>;
|
206
|
-
/**
|
207
|
-
* @internal
|
208
|
-
*/
|
209
|
-
protected reportStatus(detail?: Partial<DatasourceStatus>): void;
|
210
|
-
/**
|
211
|
-
* @internal
|
212
|
-
*/
|
213
|
-
protected normaliseStatus(status: Partial<DatasourceStatus>): DatasourceStatus;
|
214
184
|
}
|
215
185
|
/**
|
216
186
|
* The DI token for the Datasource interface.
|
@@ -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;
|
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,W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uCAAuC;IACvC,OAAO;IAMP,IAAI,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"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { FieldMetadata } from '../metadata/metadata.types';
|
1
|
+
import type { FieldMetadata, FilteredDataServerResult, RawDataServerResult } from '../metadata/metadata.types';
|
2
2
|
/**
|
3
3
|
* Types of Genesis resources.
|
4
4
|
* @public
|
@@ -97,24 +97,32 @@ export interface DatasourceOptions {
|
|
97
97
|
reverse?: boolean;
|
98
98
|
}
|
99
99
|
/**
|
100
|
-
*
|
100
|
+
* Default values for a DatasourceConfig
|
101
101
|
* @public
|
102
102
|
*/
|
103
|
-
export
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
}
|
103
|
+
export declare class DatasourceDefaults {
|
104
|
+
static readonly MAX_ROWS_250 = 250;
|
105
|
+
static readonly MAX_VIEW_1000 = 1000;
|
106
|
+
static readonly REQ_REP_POLLING_INTERVAL_MS = 10000;
|
107
|
+
static readonly DATASERVER_ROW_ID = "ROW_REF";
|
108
|
+
static readonly REQUEST_SERVER_ROW_ID = "RECORD_ID";
|
109
|
+
}
|
110
110
|
/**
|
111
|
-
*
|
111
|
+
* The configuration object for a Datasource
|
112
112
|
* @public
|
113
113
|
*/
|
114
|
-
export
|
114
|
+
export interface DatasourceConfig {
|
115
|
+
options: DatasourceOptions;
|
116
|
+
criteriaToFields(filters: string): Record<string, string>;
|
117
|
+
dataServerResultFilter(result: RawDataServerResult, rowId?: string): FilteredDataServerResult;
|
118
|
+
}
|
115
119
|
/**
|
116
|
-
*
|
117
|
-
*
|
120
|
+
* The DI token for the DatasourceConfig interface.
|
121
|
+
*
|
122
|
+
* @privateRemarks
|
123
|
+
* Marked as internal to stop api-extractor becoming confused cross-linking tokens with the same name.
|
124
|
+
*
|
125
|
+
* @internal
|
118
126
|
*/
|
119
|
-
export
|
127
|
+
export declare const DatasourceConfig: import("@microsoft/fast-foundation").InterfaceSymbol<DatasourceConfig>;
|
120
128
|
//# sourceMappingURL=datasource.types.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"datasource.types.d.ts","sourceRoot":"","sources":["../../../src/datasource/datasource.types.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"datasource.types.d.ts","sourceRoot":"","sources":["../../../src/datasource/datasource.types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,aAAa,EACb,wBAAwB,EACxB,mBAAmB,EACpB,MAAM,4BAA4B,CAAC;AAEpC;;;GAGG;AACH,oBAAY,YAAY;IACtB,UAAU,eAAe;IACzB,aAAa,kBAAkB;IAC/B,cAAc,mBAAmB;CAClC;AAED;;;GAGG;AACH,MAAM,WAAW,UAAU;IACzB,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IACjB,IAAI,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IAClB,MAAM,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;CACrB;AAED;;;GAGG;AACH,MAAM,WAAW,QAAQ;IACvB;;;;OAIG;IACH,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7C;;OAEG;IACH,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ;;OAEG;IACH,eAAe,CAAC,EAAE,aAAa,EAAE,CAAC;IAClC;;OAEG;IACH,UAAU,CA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AC"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import type { DTOMapper } from '@genesislcap/foundation-utils';
|
2
2
|
import type { SocketSubscription } from '../connect/socket';
|
3
3
|
import type { FilteredDataServerResult, RowData } from '../metadata/metadata.types';
|
4
|
-
import {
|
4
|
+
import { DefaultDatasource } from './datasource';
|
5
5
|
import type { DatasourceOptions } from './datasource.types';
|
6
6
|
/**
|
7
7
|
* This is a wip. We need to see if and where this fits into our strategic shared datasource solution.
|
@@ -82,7 +82,12 @@ export interface EntityDatasourceInit<TDTO, TEntity> {
|
|
82
82
|
*
|
83
83
|
* @alpha
|
84
84
|
*/
|
85
|
-
export interface EntityDatasource<TDTO, TEntity>
|
85
|
+
export interface EntityDatasource<TDTO, TEntity> {
|
86
|
+
/**
|
87
|
+
* @remarks
|
88
|
+
* Datasource initialized.
|
89
|
+
*/
|
90
|
+
readonly initialized: boolean;
|
86
91
|
/**
|
87
92
|
* @remarks
|
88
93
|
* Initialize datasource.
|
@@ -121,9 +126,7 @@ export declare class DefaultEntityDatasource<TDTO, TEntity> extends DefaultDatas
|
|
121
126
|
protected entityMap: Map<string, TEntity>;
|
122
127
|
protected rowId: string;
|
123
128
|
/** {@inheritDoc EntityDatasource.initialized} */
|
124
|
-
|
125
|
-
get initialized(): boolean;
|
126
|
-
set initialized(value: boolean);
|
129
|
+
initialized: boolean;
|
127
130
|
/** {@inheritDoc EntityDatasource.initialize} */
|
128
131
|
initialize: (init: EntityDatasourceInit<TDTO, TEntity>) => Promise<boolean>;
|
129
132
|
/** {@inheritDoc EntityDatasource.cache} */
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"entityDatasource.d.ts","sourceRoot":"","sources":["../../../src/datasource/entityDatasource.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAG/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,KAAK,EACV,wBAAwB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,OAAO,CAChD,SAAQ,iBACR,YAAW,gBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC;IAE1C,SAAS,CAAC,MAAM,EAAE,SAAS,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC3C,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC;IAC5B,SAAS,CAAC,YAAY,EAAE,kBAAkB,CAAC;IAC3C,SAAS,CAAC,qBAAqB,EAAE,OAAO,CAAC;IACzC,SAAS,CAAC,WAAW,EAAE,OAAO,EAAE,CAAM;IACtC,SAAS,CAAC,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAa;IACtD,SAAS,CAAC,KAAK,EAAE,MAAM,CAAa;IAEpC,iDAAiD;IAC1C,WAAW,EAAE,OAAO,CAAC;IAE5B,gDAAgD;IAChD,UAAU,SAAgB,qBAAqB,IAAI,EAAE,OAAO,CAAC,KAAG,QAAQ,OAAO,CAAC,CAqB9E;IAEF,2CAA2C;IAC3C,IAAI,KAAK,IAAI,OAAO,EAAE,CAKrB;IAED,6CAA6C;IAC7C,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,gDAAgD;IAChD,UAAU,QAAO,IAAI,CAGnB;IAEF,SAAS,CAAC,WAAW,CAAC,MAAM,EAAE,wBAAwB,GAAG,IAAI;IAoB7D,SAAS,CAAC,oBAAoB,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE,SAAS,GAAE,OAAe,GAAG,IAAI;CAarF;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,kFAE5B,CAAC"}
|
@@ -1,7 +1,5 @@
|
|
1
1
|
export * from './criteriaFiltersToFields';
|
2
2
|
export * from './dataServerResultFilter';
|
3
|
-
export * from './datasource.config';
|
4
|
-
export * from './datasource.mixins';
|
5
3
|
export * from './datasource';
|
6
4
|
export * from './datasource.types';
|
7
5
|
export * from './entityDatasource';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/datasource/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/datasource/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,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,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,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,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC"}
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import type { User } from '@genesislcap/foundation-user';
|
2
|
-
import { SetUserProperties } from '@genesislcap/foundation-user/dist/esm';
|
3
2
|
import type { Auth, AuthInfo, LoginResult, LogoutResult } from '../../../';
|
4
3
|
/**
|
5
4
|
* @internal
|
@@ -15,7 +14,5 @@ export declare class AuthMock implements Auth {
|
|
15
14
|
login(credentials: AuthInfo): Promise<LoginResult>;
|
16
15
|
logout(): Promise<LogoutResult>;
|
17
16
|
reAuthFromSession(): Promise<boolean>;
|
18
|
-
setTestUser(properties?: Partial<SetUserProperties>): void;
|
19
|
-
resetTestUser(): void;
|
20
17
|
}
|
21
18
|
//# sourceMappingURL=auth.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../../src/testing/mocks/auth/auth.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../../src/testing/mocks/auth/auth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AAEzD,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAE3E;;GAEG;AACH,qBAAa,QAAS,YAAW,IAAI;IACvB,SAAS,UAAS;IAClB,gBAAgB,EAAE,WAAW,CAAQ;IACrC,WAAW,EAAE,IAAI,CAAQ;IACzB,UAAU,EAAE,OAAO,CAAS;IAExC,eAAe,EAAE,WAAW,CAAC;IAC7B,gBAAgB,EAAE,YAAY,CAAC;IAC/B,gBAAgB,EAAE,OAAO,CAAC;IAEpB,KAAK,CAAC,WAAW,EAAE,QAAQ,GAAG,OAAO,CAAC,WAAW,CAAC;IAIlD,MAAM,IAAI,OAAO,CAAC,YAAY,CAAC;IAI/B,iBAAiB,IAAI,OAAO,CAAC,OAAO,CAAC;CAG5C"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { BehaviorSubject, Observable } from 'rxjs';
|
2
|
-
import type { CommitParams, Connect, Message, Metadata, RequestParams, SocketMock,
|
2
|
+
import type { CommitParams, Connect, Message, Metadata, RequestParams, SocketMock, SocketObservable } from '../../../';
|
3
3
|
/**
|
4
4
|
* @internal
|
5
5
|
*/
|
@@ -7,7 +7,6 @@ export declare class ConnectMock implements Connect {
|
|
7
7
|
isConnected: boolean;
|
8
8
|
isWorking: boolean;
|
9
9
|
socket: SocketMock;
|
10
|
-
get host(): string;
|
11
10
|
get isConnectedSubject(): BehaviorSubject<boolean>;
|
12
11
|
get isConnected$(): Observable<boolean>;
|
13
12
|
send<T>(message: Message<any>, needsHandling?: boolean): Promise<any>;
|
@@ -23,7 +22,7 @@ export declare class ConnectMock implements Connect {
|
|
23
22
|
disconnect(): void;
|
24
23
|
getMetadata(resourceName: string): Promise<Metadata>;
|
25
24
|
request(resourceName: string, params?: RequestParams): Promise<Message>;
|
26
|
-
getAvailableResources(params?: RequestParams): Promise<
|
25
|
+
getAvailableResources(params?: RequestParams): Promise<Message>;
|
27
26
|
snapshot(resourceName: string, params?: any): Promise<Message>;
|
28
27
|
stream(resourceName: string, onMessage: Function, onError: Function, params?: any): SocketObservable<Message>;
|
29
28
|
streamState(resourceName: string, onMessage: Function, onError: Function, params?: any, initialState?: any[]): Observable<any[]>;
|
@@ -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,KAAK,EACV,YAAY,EACZ,OAAO,EACP,OAAO,EACP,QAAQ,EACR,aAAa,EACb,UAAU,EACV,gBAAgB,
|
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,KAAK,EACV,YAAY,EACZ,OAAO,EACP,OAAO,EACP,QAAQ,EACR,aAAa,EACb,UAAU,EACV,gBAAgB,EACjB,MAAM,WAAW,CAAC;AAEnB;;GAEG;AACH,qBAAa,WAAY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BAAgB,CAAC,OAAO,CAAC;IAI5B,WAAW,CACT,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,QAAQ,EACnB,OAAO,EAAE,QAAQ,EACjB,MAAM,CAAC,EAAE,GAAG,EACZ,YAAY,CAAC,EAAE,GAAG,EAAE,GACnB,UAAU,CAAC,GAAG,EAAE,CAAC;IAIpB,yBAAyB,CACvB,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,QAAQ,EACnB,OAAO,EAAE,QAAQ,EACjB,MAAM,CAAC,EAAE,GAAG,GACX,gBAAgB,CAAC,OAAO,CAAC;IAI5B,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAIrD,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAIxD,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"}
|
@@ -13,7 +13,6 @@ export declare class SocketMock implements Socket {
|
|
13
13
|
isConnected: boolean;
|
14
14
|
isConnectedSubject: BehaviorSubject<boolean>;
|
15
15
|
isReconnecting: boolean;
|
16
|
-
host: string;
|
17
16
|
nextMessage: Message;
|
18
17
|
socketMessagesSubject: SocketSubject<Message<any>>;
|
19
18
|
connect(host: string, options?: SocketConnectOptions, reconnectOptions?: SocketReconnectOptions): Promise<boolean>;
|