@genesislcap/foundation-comms 14.379.0 → 14.380.1-TAMTECH-262.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dts/connect/connect.d.ts +3 -2
- package/dist/dts/connect/connect.d.ts.map +1 -1
- package/dist/dts/connect/http.connect.d.ts +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/metadata/metadata.d.ts +17 -2
- package/dist/dts/metadata/metadata.d.ts.map +1 -1
- package/dist/dts/testing/mocks/connect/connect.d.ts +1 -1
- package/dist/dts/testing/mocks/connect/connect.d.ts.map +1 -1
- package/dist/esm/connect/connect.js +11 -3
- package/dist/esm/connect/http.connect.js +11 -3
- package/dist/esm/connect/index.js +1 -0
- package/dist/esm/metadata/metadata.js +10 -0
- package/dist/esm/testing/mocks/connect/connect.js +1 -1
- package/dist/foundation-comms.api.json +649 -15
- package/dist/foundation-comms.d.ts +32 -10
- package/docs/api/foundation-comms.connect.getavailableresources.md +17 -1
- package/docs/api/foundation-comms.connect.md +1 -1
- package/docs/api/foundation-comms.defaultconnect.getavailableresources.md +17 -1
- package/docs/api/foundation-comms.defaultconnect.md +1 -1
- package/docs/api/foundation-comms.defaulthttpconnect._constructor_.md +1 -1
- package/docs/api/foundation-comms.defaulthttpconnect.getavailableresources.md +17 -1
- package/docs/api/foundation-comms.defaulthttpconnect.md +1 -1
- package/docs/api/foundation-comms.defaulthttpconnectconfig.md +13 -0
- package/docs/api/foundation-comms.defaultmetacache.cachedresources.md +11 -0
- package/docs/api/foundation-comms.defaultmetacache.getresources.md +15 -0
- package/docs/api/foundation-comms.defaultmetacache.hasresources.md +15 -0
- package/docs/api/foundation-comms.defaultmetacache.md +53 -0
- package/docs/api/foundation-comms.defaultmetacache.setresources.md +50 -0
- package/docs/api/foundation-comms.httpconnectconfig.md +58 -0
- package/docs/api/foundation-comms.httpconnectconfig.polling.md +13 -0
- package/docs/api/foundation-comms.httppollingconfig.md +96 -0
- package/docs/api/foundation-comms.httppollingconfig.polling_frequency.md +13 -0
- package/docs/api/foundation-comms.httppollingconfig.polling_interval_map.md +15 -0
- package/docs/api/foundation-comms.httppollingconfig.polling_map.md +15 -0
- package/docs/api/foundation-comms.md +56 -1
- package/docs/api/foundation-comms.metacache.md +3 -3
- package/docs/api/foundation-comms.pollingconfiguration.amount_of_polls.md +18 -0
- package/docs/api/foundation-comms.pollingconfiguration.md +96 -0
- package/docs/api/foundation-comms.pollingconfiguration.queries.md +13 -0
- package/docs/api/foundation-comms.pollingconfiguration.temp_frequency.md +13 -0
- package/docs/api/foundation-comms.resourcescache.cachedresources.md +11 -0
- package/docs/api/foundation-comms.resourcescache.getresources.md +15 -0
- package/docs/api/foundation-comms.resourcescache.hasresources.md +15 -0
- package/docs/api/foundation-comms.resourcescache.md +98 -0
- package/docs/api/foundation-comms.resourcescache.setresources.md +50 -0
- package/docs/api-report.md.api.md +56 -6
- package/package.json +14 -14
|
@@ -896,6 +896,17 @@ GenesisResourcesConfig DI interface.
|
|
|
896
896
|
An interface representing an HTTP client that can make GET and POST requests and return a promise with the response data.
|
|
897
897
|
|
|
898
898
|
|
|
899
|
+
</td></tr>
|
|
900
|
+
<tr><td>
|
|
901
|
+
|
|
902
|
+
[HttpConnectConfig](./foundation-comms.httpconnectconfig.md)
|
|
903
|
+
|
|
904
|
+
|
|
905
|
+
</td><td>
|
|
906
|
+
|
|
907
|
+
Configuration options for the Connect (HTTP) instance.
|
|
908
|
+
|
|
909
|
+
|
|
899
910
|
</td></tr>
|
|
900
911
|
<tr><td>
|
|
901
912
|
|
|
@@ -907,6 +918,17 @@ An interface representing an HTTP client that can make GET and POST requests and
|
|
|
907
918
|
An error thrown when an HTTP request fails with a non-2xx status code.
|
|
908
919
|
|
|
909
920
|
|
|
921
|
+
</td></tr>
|
|
922
|
+
<tr><td>
|
|
923
|
+
|
|
924
|
+
[HttpPollingConfig](./foundation-comms.httppollingconfig.md)
|
|
925
|
+
|
|
926
|
+
|
|
927
|
+
</td><td>
|
|
928
|
+
|
|
929
|
+
Configuration options for http connection.
|
|
930
|
+
|
|
931
|
+
|
|
910
932
|
</td></tr>
|
|
911
933
|
<tr><td>
|
|
912
934
|
|
|
@@ -1050,6 +1072,28 @@ MonitoredResourceMetadata.
|
|
|
1050
1072
|
NetworkMonitorConfig DI interface.
|
|
1051
1073
|
|
|
1052
1074
|
|
|
1075
|
+
</td></tr>
|
|
1076
|
+
<tr><td>
|
|
1077
|
+
|
|
1078
|
+
[PollingConfiguration](./foundation-comms.pollingconfiguration.md)
|
|
1079
|
+
|
|
1080
|
+
|
|
1081
|
+
</td><td>
|
|
1082
|
+
|
|
1083
|
+
Configuration options for http polling.
|
|
1084
|
+
|
|
1085
|
+
|
|
1086
|
+
</td></tr>
|
|
1087
|
+
<tr><td>
|
|
1088
|
+
|
|
1089
|
+
[ResourcesCache](./foundation-comms.resourcescache.md)
|
|
1090
|
+
|
|
1091
|
+
|
|
1092
|
+
</td><td>
|
|
1093
|
+
|
|
1094
|
+
A resources cache definition
|
|
1095
|
+
|
|
1096
|
+
|
|
1053
1097
|
</td></tr>
|
|
1054
1098
|
<tr><td>
|
|
1055
1099
|
|
|
@@ -1275,6 +1319,17 @@ Default DatasourceConfig DI implementation.
|
|
|
1275
1319
|
Default GenesisResourcesConfig implementation.
|
|
1276
1320
|
|
|
1277
1321
|
|
|
1322
|
+
</td></tr>
|
|
1323
|
+
<tr><td>
|
|
1324
|
+
|
|
1325
|
+
[defaultHttpConnectConfig](./foundation-comms.defaulthttpconnectconfig.md)
|
|
1326
|
+
|
|
1327
|
+
|
|
1328
|
+
</td><td>
|
|
1329
|
+
|
|
1330
|
+
The default configuration for connecting to an HTTP service.
|
|
1331
|
+
|
|
1332
|
+
|
|
1278
1333
|
</td></tr>
|
|
1279
1334
|
<tr><td>
|
|
1280
1335
|
|
|
@@ -1747,7 +1802,7 @@ Error definition for a message result
|
|
|
1747
1802
|
|
|
1748
1803
|
</td><td>
|
|
1749
1804
|
|
|
1750
|
-
Union type of MetadataCache and
|
|
1805
|
+
Union type of MetadataCache, JsonSchemaCache and ResourcesCache
|
|
1751
1806
|
|
|
1752
1807
|
|
|
1753
1808
|
</td></tr>
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
## MetaCache type
|
|
6
6
|
|
|
7
|
-
Union type of MetadataCache and
|
|
7
|
+
Union type of MetadataCache, JsonSchemaCache and ResourcesCache
|
|
8
8
|
|
|
9
9
|
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
|
-
export type MetaCache = MetadataCache & JsonSchemaCache;
|
|
12
|
+
export type MetaCache = MetadataCache & JsonSchemaCache & ResourcesCache;
|
|
13
13
|
```
|
|
14
|
-
**References:** [MetadataCache](./foundation-comms.metadatacache.md)<!-- -->, [JsonSchemaCache](./foundation-comms.jsonschemacache.md)
|
|
14
|
+
**References:** [MetadataCache](./foundation-comms.metadatacache.md)<!-- -->, [JsonSchemaCache](./foundation-comms.jsonschemacache.md)<!-- -->, [ResourcesCache](./foundation-comms.resourcescache.md)
|
|
15
15
|
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [PollingConfiguration](./foundation-comms.pollingconfiguration.md) > [AMOUNT\_OF\_POLLS](./foundation-comms.pollingconfiguration.amount_of_polls.md)
|
|
4
|
+
|
|
5
|
+
## PollingConfiguration.AMOUNT\_OF\_POLLS property
|
|
6
|
+
|
|
7
|
+
The expected amount of HTTP polling attempts to be performed.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
AMOUNT_OF_POLLS: number;
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Remarks
|
|
16
|
+
|
|
17
|
+
TEMP\_FREQUENCY \* AMOUNT\_OF\_POLLS = the total polling time/duration
|
|
18
|
+
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [PollingConfiguration](./foundation-comms.pollingconfiguration.md)
|
|
4
|
+
|
|
5
|
+
## PollingConfiguration interface
|
|
6
|
+
|
|
7
|
+
Configuration options for http polling.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export interface PollingConfiguration
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Properties
|
|
16
|
+
|
|
17
|
+
<table><thead><tr><th>
|
|
18
|
+
|
|
19
|
+
Property
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
</th><th>
|
|
23
|
+
|
|
24
|
+
Modifiers
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
</th><th>
|
|
28
|
+
|
|
29
|
+
Type
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
</th><th>
|
|
33
|
+
|
|
34
|
+
Description
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
</th></tr></thead>
|
|
38
|
+
<tbody><tr><td>
|
|
39
|
+
|
|
40
|
+
[AMOUNT\_OF\_POLLS](./foundation-comms.pollingconfiguration.amount_of_polls.md)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
</td><td>
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
</td><td>
|
|
47
|
+
|
|
48
|
+
number
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
</td><td>
|
|
52
|
+
|
|
53
|
+
The expected amount of HTTP polling attempts to be performed.
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
</td></tr>
|
|
57
|
+
<tr><td>
|
|
58
|
+
|
|
59
|
+
[QUERIES](./foundation-comms.pollingconfiguration.queries.md)
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
</td><td>
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
</td><td>
|
|
66
|
+
|
|
67
|
+
string\[\]
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
</td><td>
|
|
71
|
+
|
|
72
|
+
The queries to be polled.
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
</td></tr>
|
|
76
|
+
<tr><td>
|
|
77
|
+
|
|
78
|
+
[TEMP\_FREQUENCY](./foundation-comms.pollingconfiguration.temp_frequency.md)
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
</td><td>
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
</td><td>
|
|
85
|
+
|
|
86
|
+
number
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
</td><td>
|
|
90
|
+
|
|
91
|
+
The temporary polling frequency.
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
</td></tr>
|
|
95
|
+
</tbody></table>
|
|
96
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [PollingConfiguration](./foundation-comms.pollingconfiguration.md) > [QUERIES](./foundation-comms.pollingconfiguration.queries.md)
|
|
4
|
+
|
|
5
|
+
## PollingConfiguration.QUERIES property
|
|
6
|
+
|
|
7
|
+
The queries to be polled.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
QUERIES: string[];
|
|
13
|
+
```
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [PollingConfiguration](./foundation-comms.pollingconfiguration.md) > [TEMP\_FREQUENCY](./foundation-comms.pollingconfiguration.temp_frequency.md)
|
|
4
|
+
|
|
5
|
+
## PollingConfiguration.TEMP\_FREQUENCY property
|
|
6
|
+
|
|
7
|
+
The temporary polling frequency.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
TEMP_FREQUENCY: number;
|
|
13
|
+
```
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [ResourcesCache](./foundation-comms.resourcescache.md) > [cachedResources](./foundation-comms.resourcescache.cachedresources.md)
|
|
4
|
+
|
|
5
|
+
## ResourcesCache.cachedResources property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
cachedResources: ResourcesMessage | null;
|
|
11
|
+
```
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [ResourcesCache](./foundation-comms.resourcescache.md) > [getResources](./foundation-comms.resourcescache.getresources.md)
|
|
4
|
+
|
|
5
|
+
## ResourcesCache.getResources() method
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
getResources(): ResourcesMessage;
|
|
11
|
+
```
|
|
12
|
+
**Returns:**
|
|
13
|
+
|
|
14
|
+
[ResourcesMessage](./foundation-comms.resourcesmessage.md)
|
|
15
|
+
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [ResourcesCache](./foundation-comms.resourcescache.md) > [hasResources](./foundation-comms.resourcescache.hasresources.md)
|
|
4
|
+
|
|
5
|
+
## ResourcesCache.hasResources() method
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
hasResources(): boolean;
|
|
11
|
+
```
|
|
12
|
+
**Returns:**
|
|
13
|
+
|
|
14
|
+
boolean
|
|
15
|
+
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [ResourcesCache](./foundation-comms.resourcescache.md)
|
|
4
|
+
|
|
5
|
+
## ResourcesCache interface
|
|
6
|
+
|
|
7
|
+
A resources cache definition
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export interface ResourcesCache
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Properties
|
|
16
|
+
|
|
17
|
+
<table><thead><tr><th>
|
|
18
|
+
|
|
19
|
+
Property
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
</th><th>
|
|
23
|
+
|
|
24
|
+
Modifiers
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
</th><th>
|
|
28
|
+
|
|
29
|
+
Type
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
</th><th>
|
|
33
|
+
|
|
34
|
+
Description
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
</th></tr></thead>
|
|
38
|
+
<tbody><tr><td>
|
|
39
|
+
|
|
40
|
+
[cachedResources](./foundation-comms.resourcescache.cachedresources.md)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
</td><td>
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
</td><td>
|
|
47
|
+
|
|
48
|
+
[ResourcesMessage](./foundation-comms.resourcesmessage.md) \| null
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
</td><td>
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
</td></tr>
|
|
55
|
+
</tbody></table>
|
|
56
|
+
|
|
57
|
+
## Methods
|
|
58
|
+
|
|
59
|
+
<table><thead><tr><th>
|
|
60
|
+
|
|
61
|
+
Method
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
</th><th>
|
|
65
|
+
|
|
66
|
+
Description
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
</th></tr></thead>
|
|
70
|
+
<tbody><tr><td>
|
|
71
|
+
|
|
72
|
+
[getResources()](./foundation-comms.resourcescache.getresources.md)
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
</td><td>
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
</td></tr>
|
|
79
|
+
<tr><td>
|
|
80
|
+
|
|
81
|
+
[hasResources()](./foundation-comms.resourcescache.hasresources.md)
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
</td><td>
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
</td></tr>
|
|
88
|
+
<tr><td>
|
|
89
|
+
|
|
90
|
+
[setResources(resources)](./foundation-comms.resourcescache.setresources.md)
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
</td><td>
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
</td></tr>
|
|
97
|
+
</tbody></table>
|
|
98
|
+
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [ResourcesCache](./foundation-comms.resourcescache.md) > [setResources](./foundation-comms.resourcescache.setresources.md)
|
|
4
|
+
|
|
5
|
+
## ResourcesCache.setResources() method
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
setResources(resources: ResourcesMessage): void;
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Parameters
|
|
14
|
+
|
|
15
|
+
<table><thead><tr><th>
|
|
16
|
+
|
|
17
|
+
Parameter
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
</th><th>
|
|
21
|
+
|
|
22
|
+
Type
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
</th><th>
|
|
26
|
+
|
|
27
|
+
Description
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
</th></tr></thead>
|
|
31
|
+
<tbody><tr><td>
|
|
32
|
+
|
|
33
|
+
resources
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
</td><td>
|
|
37
|
+
|
|
38
|
+
[ResourcesMessage](./foundation-comms.resourcesmessage.md)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
</td><td>
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
</td></tr>
|
|
45
|
+
</tbody></table>
|
|
46
|
+
|
|
47
|
+
**Returns:**
|
|
48
|
+
|
|
49
|
+
void
|
|
50
|
+
|
|
@@ -182,7 +182,7 @@ export interface Connect {
|
|
|
182
182
|
connect(host?: string): Promise<boolean>;
|
|
183
183
|
dataLogoff(sourceRef: string): Promise<Message>;
|
|
184
184
|
disconnect(): void;
|
|
185
|
-
getAvailableResources(params?: RequestParams): Promise<ResourcesMessage>;
|
|
185
|
+
getAvailableResources(params?: RequestParams, useCache?: boolean): Promise<ResourcesMessage>;
|
|
186
186
|
getJSONSchema(resourceName: string): Promise<SchemaResponse>;
|
|
187
187
|
getMetadata(resourceName: string, useCache?: boolean): Promise<Metadata>;
|
|
188
188
|
getMoreColumns(sourceRef: string): Promise<Message>;
|
|
@@ -312,7 +312,7 @@ export class ConnectMock implements Connect {
|
|
|
312
312
|
// (undocumented)
|
|
313
313
|
disconnect(): void;
|
|
314
314
|
// (undocumented)
|
|
315
|
-
getAvailableResources(params?: RequestParams): Promise<ResourcesMessage>;
|
|
315
|
+
getAvailableResources(params?: RequestParams, useCache?: boolean): Promise<ResourcesMessage>;
|
|
316
316
|
// (undocumented)
|
|
317
317
|
getJSONSchema(resourceName: string): Promise<any>;
|
|
318
318
|
// (undocumented)
|
|
@@ -1079,7 +1079,7 @@ export class DefaultConnect implements Connect {
|
|
|
1079
1079
|
// (undocumented)
|
|
1080
1080
|
disconnect(): void;
|
|
1081
1081
|
// (undocumented)
|
|
1082
|
-
getAvailableResources(params?: RequestParams): Promise<ResourcesMessage>;
|
|
1082
|
+
getAvailableResources(params?: RequestParams, useCache?: boolean): Promise<ResourcesMessage>;
|
|
1083
1083
|
// (undocumented)
|
|
1084
1084
|
getJSONSchema(resourceName: string, useCache?: boolean): Promise<SchemaResponse>;
|
|
1085
1085
|
// (undocumented)
|
|
@@ -1420,7 +1420,6 @@ export class DefaultHttp implements Http {
|
|
|
1420
1420
|
|
|
1421
1421
|
// @public
|
|
1422
1422
|
export class DefaultHttpConnect implements Connect {
|
|
1423
|
-
// Warning: (ae-forgotten-export) The symbol "HttpConnectConfig" needs to be exported by the entry point index.d.ts
|
|
1424
1423
|
constructor(http: Http, messageBuilder: MessageBuilder, session: Session, metaCache: MetaCache, serializer: JSONSerializer, config: HttpConnectConfig);
|
|
1425
1424
|
// (undocumented)
|
|
1426
1425
|
commitEvent(eventName: string, params?: CommitParams): Promise<Message>;
|
|
@@ -1431,7 +1430,7 @@ export class DefaultHttpConnect implements Connect {
|
|
|
1431
1430
|
// (undocumented)
|
|
1432
1431
|
disconnect(): void;
|
|
1433
1432
|
// (undocumented)
|
|
1434
|
-
getAvailableResources(params?: any): Promise<ResourcesMessage>;
|
|
1433
|
+
getAvailableResources(params?: any, useCache?: boolean): Promise<ResourcesMessage>;
|
|
1435
1434
|
// (undocumented)
|
|
1436
1435
|
getJSONSchema(resourceName: string): Promise<SchemaResponse>;
|
|
1437
1436
|
// (undocumented)
|
|
@@ -1471,6 +1470,9 @@ export class DefaultHttpConnect implements Connect {
|
|
|
1471
1470
|
streamWithoutAutoTeardown(resourceName: string, onMessage: Function, onError: Function, params?: any): SocketObservable<Message<any>>;
|
|
1472
1471
|
}
|
|
1473
1472
|
|
|
1473
|
+
// @public
|
|
1474
|
+
export const defaultHttpConnectConfig: HttpConnectConfig;
|
|
1475
|
+
|
|
1474
1476
|
// @alpha
|
|
1475
1477
|
export class DefaultKVStorage implements KVStorage {
|
|
1476
1478
|
constructor(connect: Connect, user: User_2, kvStorageConfig?: KVStorageConfig);
|
|
@@ -1533,17 +1535,25 @@ export class DefaultMetaCache implements MetaCache {
|
|
|
1533
1535
|
// (undocumented)
|
|
1534
1536
|
cachedMetadata: Map<string, Metadata>;
|
|
1535
1537
|
// (undocumented)
|
|
1538
|
+
cachedResources: ResourcesMessage | null;
|
|
1539
|
+
// (undocumented)
|
|
1536
1540
|
getJsonSchemaFor(resourceName: string): SchemaResponse;
|
|
1537
1541
|
// (undocumented)
|
|
1538
1542
|
getMetadataFor(resourceName: string): Metadata;
|
|
1539
1543
|
// (undocumented)
|
|
1544
|
+
getResources(): ResourcesMessage;
|
|
1545
|
+
// (undocumented)
|
|
1540
1546
|
hasJsonSchemaFor(resourceName: string): boolean;
|
|
1541
1547
|
// (undocumented)
|
|
1542
1548
|
hasMetadataFor(resourceName: string): boolean;
|
|
1543
1549
|
// (undocumented)
|
|
1550
|
+
hasResources(): boolean;
|
|
1551
|
+
// (undocumented)
|
|
1544
1552
|
setJsonSchemaFor(resourceName: string, schemaResponse: SchemaResponse): void;
|
|
1545
1553
|
// (undocumented)
|
|
1546
1554
|
setMetadataFor(resourceName: string, metadata: Metadata): void;
|
|
1555
|
+
// (undocumented)
|
|
1556
|
+
setResources(resources: ResourcesMessage): void;
|
|
1547
1557
|
}
|
|
1548
1558
|
|
|
1549
1559
|
// @public
|
|
@@ -1991,6 +2001,16 @@ export const Http: InterfaceSymbol<Http>;
|
|
|
1991
2001
|
// @internal
|
|
1992
2002
|
export const HttpConnect: InterfaceSymbol<Connect>;
|
|
1993
2003
|
|
|
2004
|
+
// Warning: (ae-internal-mixed-release-tag) Mixed release tags are not allowed for "HttpConnectConfig" because one of its declarations is marked as @internal
|
|
2005
|
+
//
|
|
2006
|
+
// @public
|
|
2007
|
+
export interface HttpConnectConfig {
|
|
2008
|
+
polling: HttpPollingConfig;
|
|
2009
|
+
}
|
|
2010
|
+
|
|
2011
|
+
// @internal
|
|
2012
|
+
export const HttpConnectConfig: InterfaceSymbol<HttpConnectConfig>;
|
|
2013
|
+
|
|
1994
2014
|
// @public
|
|
1995
2015
|
export interface HttpError extends Error {
|
|
1996
2016
|
// (undocumented)
|
|
@@ -1999,6 +2019,17 @@ export interface HttpError extends Error {
|
|
|
1999
2019
|
status: number;
|
|
2000
2020
|
}
|
|
2001
2021
|
|
|
2022
|
+
// @public
|
|
2023
|
+
export interface HttpPollingConfig {
|
|
2024
|
+
POLLING_FREQUENCY?: number;
|
|
2025
|
+
POLLING_INTERVAL_MAP?: {
|
|
2026
|
+
[resource: string]: number;
|
|
2027
|
+
};
|
|
2028
|
+
POLLING_MAP?: {
|
|
2029
|
+
[key: string]: PollingConfiguration;
|
|
2030
|
+
};
|
|
2031
|
+
}
|
|
2032
|
+
|
|
2002
2033
|
// @public
|
|
2003
2034
|
export interface HttpRequestInit extends RequestInit {
|
|
2004
2035
|
serializer?: JSONSerializer;
|
|
@@ -2308,7 +2339,7 @@ export enum MessageType {
|
|
|
2308
2339
|
// Warning: (ae-internal-mixed-release-tag) Mixed release tags are not allowed for "MetaCache" because one of its declarations is marked as @internal
|
|
2309
2340
|
//
|
|
2310
2341
|
// @public
|
|
2311
|
-
export type MetaCache = MetadataCache & JsonSchemaCache;
|
|
2342
|
+
export type MetaCache = MetadataCache & JsonSchemaCache & ResourcesCache;
|
|
2312
2343
|
|
|
2313
2344
|
// @internal
|
|
2314
2345
|
export const MetaCache: InterfaceSymbol<MetaCache>;
|
|
@@ -2443,6 +2474,13 @@ export type PingMessage = Pick<Message, 'MESSAGE_TYPE' | 'SOURCE_REF' | 'DETAILS
|
|
|
2443
2474
|
[key: string]: any;
|
|
2444
2475
|
};
|
|
2445
2476
|
|
|
2477
|
+
// @public
|
|
2478
|
+
export interface PollingConfiguration {
|
|
2479
|
+
AMOUNT_OF_POLLS: number;
|
|
2480
|
+
QUERIES: string[];
|
|
2481
|
+
TEMP_FREQUENCY: number;
|
|
2482
|
+
}
|
|
2483
|
+
|
|
2446
2484
|
// @public (undocumented)
|
|
2447
2485
|
export type PongMessage = Pick<Message, 'MESSAGE_TYPE' | 'SOURCE_REF' | 'USER_NAME'> & {
|
|
2448
2486
|
IS_AUTHENTICATED?: boolean;
|
|
@@ -2528,6 +2566,18 @@ export type ResourceItem = {
|
|
|
2528
2566
|
RESOURCE_TYPE: string;
|
|
2529
2567
|
};
|
|
2530
2568
|
|
|
2569
|
+
// @public
|
|
2570
|
+
export interface ResourcesCache {
|
|
2571
|
+
// (undocumented)
|
|
2572
|
+
cachedResources: ResourcesMessage | null;
|
|
2573
|
+
// (undocumented)
|
|
2574
|
+
getResources(): ResourcesMessage;
|
|
2575
|
+
// (undocumented)
|
|
2576
|
+
hasResources(): boolean;
|
|
2577
|
+
// (undocumented)
|
|
2578
|
+
setResources(resources: ResourcesMessage): void;
|
|
2579
|
+
}
|
|
2580
|
+
|
|
2531
2581
|
// @public (undocumented)
|
|
2532
2582
|
export type ResourcesMessage = {
|
|
2533
2583
|
MESSAGE_TYPE: EventMessageType.RESOURCES_REQUEST_ACK | EventMessageType.RESOURCES_REQUEST_NACK | MessageType.MSG_NACK;
|
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.380.1-TAMTECH-262.2",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -75,24 +75,24 @@
|
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
|
-
"@genesislcap/foundation-testing": "14.
|
|
79
|
-
"@genesislcap/genx": "14.
|
|
80
|
-
"@genesislcap/rollup-builder": "14.
|
|
81
|
-
"@genesislcap/ts-builder": "14.
|
|
82
|
-
"@genesislcap/uvu-playwright-builder": "14.
|
|
83
|
-
"@genesislcap/vite-builder": "14.
|
|
84
|
-
"@genesislcap/webpack-builder": "14.
|
|
78
|
+
"@genesislcap/foundation-testing": "14.380.1-TAMTECH-262.2",
|
|
79
|
+
"@genesislcap/genx": "14.380.1-TAMTECH-262.2",
|
|
80
|
+
"@genesislcap/rollup-builder": "14.380.1-TAMTECH-262.2",
|
|
81
|
+
"@genesislcap/ts-builder": "14.380.1-TAMTECH-262.2",
|
|
82
|
+
"@genesislcap/uvu-playwright-builder": "14.380.1-TAMTECH-262.2",
|
|
83
|
+
"@genesislcap/vite-builder": "14.380.1-TAMTECH-262.2",
|
|
84
|
+
"@genesislcap/webpack-builder": "14.380.1-TAMTECH-262.2",
|
|
85
85
|
"@types/js-cookie": "^3.0.2",
|
|
86
86
|
"@types/json-schema": "^7.0.11",
|
|
87
87
|
"@types/webappsec-credential-management": "^0.6.2",
|
|
88
88
|
"sinon": "^17.0.1"
|
|
89
89
|
},
|
|
90
90
|
"dependencies": {
|
|
91
|
-
"@genesislcap/foundation-broadcast-channel": "14.
|
|
92
|
-
"@genesislcap/foundation-logger": "14.
|
|
93
|
-
"@genesislcap/foundation-user": "14.
|
|
94
|
-
"@genesislcap/foundation-utils": "14.
|
|
95
|
-
"@genesislcap/web-core": "14.
|
|
91
|
+
"@genesislcap/foundation-broadcast-channel": "14.380.1-TAMTECH-262.2",
|
|
92
|
+
"@genesislcap/foundation-logger": "14.380.1-TAMTECH-262.2",
|
|
93
|
+
"@genesislcap/foundation-user": "14.380.1-TAMTECH-262.2",
|
|
94
|
+
"@genesislcap/foundation-utils": "14.380.1-TAMTECH-262.2",
|
|
95
|
+
"@genesislcap/web-core": "14.380.1-TAMTECH-262.2",
|
|
96
96
|
"@microsoft/fast-element": "1.14.0",
|
|
97
97
|
"@microsoft/fast-foundation": "2.49.6",
|
|
98
98
|
"analytics": "0.8.16",
|
|
@@ -111,5 +111,5 @@
|
|
|
111
111
|
"publishConfig": {
|
|
112
112
|
"access": "public"
|
|
113
113
|
},
|
|
114
|
-
"gitHead": "
|
|
114
|
+
"gitHead": "e7f7521f3249ec06552fe8e87253b3d63de1c10a"
|
|
115
115
|
}
|