@genesislcap/foundation-comms 14.185.0 → 14.186.1-alpha-1d915d4.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/dts/connect/connect.d.ts +1 -0
- package/dist/dts/connect/connect.d.ts.map +1 -1
- package/dist/dts/connect/connect.events.d.ts +28 -2
- package/dist/dts/connect/connect.events.d.ts.map +1 -1
- package/dist/dts/connect/connect.types.d.ts +1 -1
- package/dist/dts/connect/connect.types.d.ts.map +1 -1
- package/dist/dts/connect/http.connect.d.ts.map +1 -1
- package/dist/dts/connect/index.d.ts +1 -0
- package/dist/dts/connect/index.d.ts.map +1 -1
- package/dist/dts/connect/message.d.ts +6 -2
- package/dist/dts/connect/message.d.ts.map +1 -1
- package/dist/dts/connect/socket.d.ts +3 -56
- package/dist/dts/connect/socket.d.ts.map +1 -1
- package/dist/dts/connect/socket.types.d.ts +57 -0
- package/dist/dts/connect/socket.types.d.ts.map +1 -0
- package/dist/dts/networkMonitor/service.d.ts.map +1 -1
- package/dist/esm/connect/connect.events.js +21 -2
- package/dist/esm/connect/connect.js +16 -4
- package/dist/esm/connect/http.connect.js +1 -0
- package/dist/esm/connect/index.js +1 -0
- package/dist/esm/connect/message.js +3 -2
- package/dist/esm/connect/socket.js +10 -5
- package/dist/esm/connect/socket.types.js +1 -0
- package/dist/esm/networkMonitor/service.js +18 -8
- package/dist/foundation-comms.api.json +342 -8
- package/dist/foundation-comms.d.ts +38 -4
- package/docs/api/foundation-comms.connectevents.addstreamlistener.md +2 -1
- package/docs/api/foundation-comms.connectevents.md +1 -1
- package/docs/api/foundation-comms.connecteventsemitter.md +1 -0
- package/docs/api/foundation-comms.connecteventsemitter.onstreamerrorevent.md +26 -0
- package/docs/api/foundation-comms.defaultconnectevents.addstreamlistener.md +2 -1
- package/docs/api/foundation-comms.defaultconnectevents.md +2 -1
- package/docs/api/foundation-comms.defaultconnectevents.onstreamerrorevent.md +26 -0
- package/docs/api/foundation-comms.md +3 -0
- package/docs/api/foundation-comms.pingmessage.md +1 -1
- package/docs/api/foundation-comms.streamerrorevent.md +14 -0
- package/docs/api/foundation-comms.streamerroreventdetail.md +16 -0
- package/docs/api/foundation-comms.streamerroreventtype.md +12 -0
- package/docs/api-report.md +23 -5
- package/package.json +12 -12
@@ -8,7 +8,7 @@
|
|
8
8
|
**Signature:**
|
9
9
|
|
10
10
|
```typescript
|
11
|
-
export type PingMessage = Pick<Message, 'MESSAGE_TYPE' | 'SOURCE_REF' | 'DETAILS'> & {
|
11
|
+
export type PingMessage = Pick<Message, 'MESSAGE_TYPE' | 'SOURCE_REF' | 'DETAILS' | 'SESSION_AUTH_TOKEN'> & {
|
12
12
|
VERBOSE?: boolean;
|
13
13
|
[key: string]: any;
|
14
14
|
};
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [StreamErrorEvent](./foundation-comms.streamerrorevent.md)
|
4
|
+
|
5
|
+
## StreamErrorEvent type
|
6
|
+
|
7
|
+
|
8
|
+
**Signature:**
|
9
|
+
|
10
|
+
```typescript
|
11
|
+
export type StreamErrorEvent = CustomEvent<StreamErrorEventDetail>;
|
12
|
+
```
|
13
|
+
**References:** [StreamErrorEventDetail](./foundation-comms.streamerroreventdetail.md)
|
14
|
+
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [StreamErrorEventDetail](./foundation-comms.streamerroreventdetail.md)
|
4
|
+
|
5
|
+
## StreamErrorEventDetail type
|
6
|
+
|
7
|
+
|
8
|
+
**Signature:**
|
9
|
+
|
10
|
+
```typescript
|
11
|
+
export type StreamErrorEventDetail = Pick<StreamEventDetail, 'resourceName' | 'stream'> & {
|
12
|
+
error: any;
|
13
|
+
};
|
14
|
+
```
|
15
|
+
**References:** [StreamEventDetail](./foundation-comms.streameventdetail.md)
|
16
|
+
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [StreamErrorEventType](./foundation-comms.streamerroreventtype.md)
|
4
|
+
|
5
|
+
## StreamErrorEventType variable
|
6
|
+
|
7
|
+
|
8
|
+
**Signature:**
|
9
|
+
|
10
|
+
```typescript
|
11
|
+
StreamErrorEventType = "connect-stream-error-event"
|
12
|
+
```
|
package/docs/api-report.md
CHANGED
@@ -167,7 +167,7 @@ export interface Connect {
|
|
167
167
|
snapshot(resourceName: string, params?: any): Promise<Message>;
|
168
168
|
stream(resourceName: string, onMessage: Function, onError: Function, params?: any): SocketObservable<Message>;
|
169
169
|
streamState(resourceName: string, onMessage: Function, onError: Function, params?: any, initialState?: any[]): Observable<any[]>;
|
170
|
-
// @alpha
|
170
|
+
// @alpha @deprecated
|
171
171
|
streamWithoutAutoTeardown(resourceName: string, onMessage: Function, onError: Function, params?: any): SocketObservable<Message>;
|
172
172
|
}
|
173
173
|
|
@@ -192,7 +192,7 @@ export const ConnectConfig: InterfaceSymbol<ConnectConfig>;
|
|
192
192
|
export interface ConnectEvents {
|
193
193
|
addCommitListener(listener: Listener<CommitEvent>): () => void;
|
194
194
|
addMetadataListener(listener: Listener<MetadataEvent>): () => void;
|
195
|
-
addStreamListener(listener: Listener<StreamEvent>, complete: Listener<StreamCompleteEvent>): () => void;
|
195
|
+
addStreamListener(listener: Listener<StreamEvent>, complete: Listener<StreamCompleteEvent>, error: Listener<StreamErrorEvent>): () => void;
|
196
196
|
}
|
197
197
|
|
198
198
|
// @internal
|
@@ -205,6 +205,7 @@ export interface ConnectEventsEmitter extends ConnectEvents {
|
|
205
205
|
onCommitEvent(eventName: string, message: Message): void;
|
206
206
|
onMetadataEvent(resourceName: string, message: Message<MessageDetails.MetaRequest>, error?: any): void;
|
207
207
|
onStreamCompleteEvent(resourceName: string, stream: SocketObservable<any>): void;
|
208
|
+
onStreamErrorEvent(resourceName: string, stream: SocketObservable<any>, error: any): void;
|
208
209
|
onStreamEvent(resourceName: string, message: Message<MessageDetails.DataserverRequest>, stream: SocketObservable<any>, functions: StreamEventFunctions): void;
|
209
210
|
}
|
210
211
|
|
@@ -587,7 +588,7 @@ export class DefaultConnectEvents implements ConnectEventsEmitter {
|
|
587
588
|
// Warning: (ae-unresolved-inheritdoc-reference) The @inheritDoc reference could not be resolved: The reference is ambiguous because "ConnectEvents" has more than one declaration; you need to add a TSDoc member reference selector
|
588
589
|
//
|
589
590
|
// (undocumented)
|
590
|
-
addStreamListener(listener: Listener<StreamEvent>, complete: Listener<StreamCompleteEvent>): () => void;
|
591
|
+
addStreamListener(listener: Listener<StreamEvent>, complete: Listener<StreamCompleteEvent>, error: Listener<StreamErrorEvent>): () => void;
|
591
592
|
// @internal (undocumented)
|
592
593
|
protected commitListeners: Observer<CommitEvent>;
|
593
594
|
// @internal (undocumented)
|
@@ -607,10 +608,16 @@ export class DefaultConnectEvents implements ConnectEventsEmitter {
|
|
607
608
|
// Warning: (ae-unresolved-inheritdoc-reference) The @inheritDoc reference could not be resolved: The reference is ambiguous because "ConnectEventsEmitter" has more than one declaration; you need to add a TSDoc member reference selector
|
608
609
|
//
|
609
610
|
// (undocumented)
|
611
|
+
onStreamErrorEvent(resourceName: string, stream: SocketObservable<any>, error: any): void;
|
612
|
+
// Warning: (ae-unresolved-inheritdoc-reference) The @inheritDoc reference could not be resolved: The reference is ambiguous because "ConnectEventsEmitter" has more than one declaration; you need to add a TSDoc member reference selector
|
613
|
+
//
|
614
|
+
// (undocumented)
|
610
615
|
onStreamEvent(resourceName: string, message: Message<MessageDetails.DataserverRequest>, stream: SocketObservable<any>, functions: StreamEventFunctions): void;
|
611
616
|
// @internal (undocumented)
|
612
617
|
protected streamCompleteListeners: Observer<StreamCompleteEvent>;
|
613
618
|
// @internal (undocumented)
|
619
|
+
protected streamErrorListeners: Observer<StreamErrorEvent>;
|
620
|
+
// @internal (undocumented)
|
614
621
|
protected streamListeners: Observer<StreamEvent>;
|
615
622
|
}
|
616
623
|
|
@@ -1703,7 +1710,7 @@ export const NetworkMonitorConfig: InterfaceSymbol<NetworkMonitorConfig>;
|
|
1703
1710
|
export function normaliseCriteria(criteria: string, delimiter?: string): string;
|
1704
1711
|
|
1705
1712
|
// @public (undocumented)
|
1706
|
-
export type PingMessage = Pick<Message, 'MESSAGE_TYPE' | 'SOURCE_REF' | 'DETAILS'> & {
|
1713
|
+
export type PingMessage = Pick<Message, 'MESSAGE_TYPE' | 'SOURCE_REF' | 'DETAILS' | 'SESSION_AUTH_TOKEN'> & {
|
1707
1714
|
VERBOSE?: boolean;
|
1708
1715
|
[key: string]: any;
|
1709
1716
|
};
|
@@ -2050,6 +2057,17 @@ export type StreamCompleteEventDetail = Pick<StreamEventDetail, 'resourceName' |
|
|
2050
2057
|
// @public (undocumented)
|
2051
2058
|
export const StreamCompleteEventType = "connect-stream-complete-event";
|
2052
2059
|
|
2060
|
+
// @public (undocumented)
|
2061
|
+
export type StreamErrorEvent = CustomEvent<StreamErrorEventDetail>;
|
2062
|
+
|
2063
|
+
// @public (undocumented)
|
2064
|
+
export type StreamErrorEventDetail = Pick<StreamEventDetail, 'resourceName' | 'stream'> & {
|
2065
|
+
error: any;
|
2066
|
+
};
|
2067
|
+
|
2068
|
+
// @public (undocumented)
|
2069
|
+
export const StreamErrorEventType = "connect-stream-error-event";
|
2070
|
+
|
2053
2071
|
// @public (undocumented)
|
2054
2072
|
export type StreamEvent = CustomEvent<StreamEventDetail>;
|
2055
2073
|
|
@@ -2150,7 +2168,7 @@ export const WSConnect: InterfaceSymbol<Connect>;
|
|
2150
2168
|
|
2151
2169
|
// Warnings were encountered during analysis:
|
2152
2170
|
//
|
2153
|
-
// src/connect/message.ts:
|
2171
|
+
// src/connect/message.ts:286:3 - (ae-forgotten-export) The symbol "RESOURCE_DETAILS" needs to be exported by the entry point index.d.ts
|
2154
2172
|
|
2155
2173
|
// (No @packageDocumentation comment for this package)
|
2156
2174
|
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@genesislcap/foundation-comms",
|
3
3
|
"description": "Genesis Foundation UI Comms",
|
4
|
-
"version": "14.
|
4
|
+
"version": "14.186.1-alpha-1d915d4.0",
|
5
5
|
"sideEffects": false,
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
7
7
|
"main": "dist/esm/index.js",
|
@@ -74,22 +74,22 @@
|
|
74
74
|
}
|
75
75
|
},
|
76
76
|
"devDependencies": {
|
77
|
-
"@genesislcap/foundation-testing": "14.
|
78
|
-
"@genesislcap/genx": "14.
|
79
|
-
"@genesislcap/rollup-builder": "14.
|
80
|
-
"@genesislcap/ts-builder": "14.
|
81
|
-
"@genesislcap/uvu-playwright-builder": "14.
|
82
|
-
"@genesislcap/vite-builder": "14.
|
83
|
-
"@genesislcap/webpack-builder": "14.
|
77
|
+
"@genesislcap/foundation-testing": "14.186.1-alpha-1d915d4.0",
|
78
|
+
"@genesislcap/genx": "14.186.1-alpha-1d915d4.0",
|
79
|
+
"@genesislcap/rollup-builder": "14.186.1-alpha-1d915d4.0",
|
80
|
+
"@genesislcap/ts-builder": "14.186.1-alpha-1d915d4.0",
|
81
|
+
"@genesislcap/uvu-playwright-builder": "14.186.1-alpha-1d915d4.0",
|
82
|
+
"@genesislcap/vite-builder": "14.186.1-alpha-1d915d4.0",
|
83
|
+
"@genesislcap/webpack-builder": "14.186.1-alpha-1d915d4.0",
|
84
84
|
"@types/js-cookie": "^3.0.2",
|
85
85
|
"@types/json-schema": "^7.0.11",
|
86
86
|
"@types/webappsec-credential-management": "^0.6.2",
|
87
87
|
"rimraf": "^5.0.0"
|
88
88
|
},
|
89
89
|
"dependencies": {
|
90
|
-
"@genesislcap/foundation-logger": "14.
|
91
|
-
"@genesislcap/foundation-user": "14.
|
92
|
-
"@genesislcap/foundation-utils": "14.
|
90
|
+
"@genesislcap/foundation-logger": "14.186.1-alpha-1d915d4.0",
|
91
|
+
"@genesislcap/foundation-user": "14.186.1-alpha-1d915d4.0",
|
92
|
+
"@genesislcap/foundation-utils": "14.186.1-alpha-1d915d4.0",
|
93
93
|
"@microsoft/fast-element": "^1.12.0",
|
94
94
|
"@microsoft/fast-foundation": "^2.49.4",
|
95
95
|
"analytics": "^0.8.0",
|
@@ -109,5 +109,5 @@
|
|
109
109
|
"publishConfig": {
|
110
110
|
"access": "public"
|
111
111
|
},
|
112
|
-
"gitHead": "
|
112
|
+
"gitHead": "e4b12d06812bdfbb2b66c61c89ae7bccebbfcdeb"
|
113
113
|
}
|