@genesislcap/foundation-comms 14.225.3 → 14.225.4-alpha-9342136.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/dts/datasource/datasource.mixins.d.ts +45 -29
- package/dist/dts/datasource/datasource.mixins.d.ts.map +1 -1
- package/dist/dts/testing/mocks/auth/auth.d.ts +1 -1
- package/dist/dts/testing/mocks/auth/auth.d.ts.map +1 -1
- package/dist/dts/testing/mocks/connect/socket.d.ts +1 -1
- package/dist/dts/testing/mocks/connect/socket.d.ts.map +1 -1
- package/dist/dts/tsdoc-metadata.json +1 -1
- package/dist/esm/auth/auth.js +2 -2
- package/dist/esm/connect/connect.js +8 -8
- package/dist/esm/connect/http.connect.js +8 -7
- package/dist/esm/connect/socket.js +1 -5
- package/dist/esm/credentialManager/credentialManager.js +2 -2
- package/dist/esm/datasource/datasource.js +7 -7
- package/dist/esm/networkMonitor/config.js +1 -2
- package/dist/esm/resources/genesis/genesis.js +1 -1
- package/dist/esm/storage/kv/kv.service.js +3 -3
- package/dist/foundation-comms.api.json +4898 -2404
- package/dist/foundation-comms.d.ts +47 -31
- package/docs/api/foundation-comms.connect.md +1 -0
- package/docs/api/foundation-comms.connect.streamwithoutautoteardown.md +37 -0
- package/docs/api/foundation-comms.datasourceeventhandler.md +56 -30
- package/docs/api/foundation-comms.defaultentitydatasource._initialized.md +15 -0
- package/docs/api/foundation-comms.defaultentitydatasource.cache.md +19 -0
- package/docs/api/foundation-comms.defaultentitydatasource.disconnect.md +19 -0
- package/docs/api/foundation-comms.defaultentitydatasource.entitycache.md +14 -0
- package/docs/api/foundation-comms.defaultentitydatasource.entitymap.md +14 -0
- package/docs/api/foundation-comms.defaultentitydatasource.initialize.md +19 -0
- package/docs/api/foundation-comms.defaultentitydatasource.initialized.md +16 -0
- package/docs/api/foundation-comms.defaultentitydatasource.isempty.md +19 -0
- package/docs/api/foundation-comms.defaultentitydatasource.mapper.md +14 -0
- package/docs/api/foundation-comms.defaultentitydatasource.md +38 -0
- package/docs/api/foundation-comms.defaultentitydatasource.rowid.md +14 -0
- package/docs/api/foundation-comms.defaultentitydatasource.sourceref.md +14 -0
- package/docs/api/foundation-comms.defaultentitydatasource.subscription.md +14 -0
- package/docs/api/foundation-comms.defaultentitydatasource.subscriptionloggedoff.md +14 -0
- package/docs/api/foundation-comms.defaultkvstorage._constructor_.md +25 -0
- package/docs/api/foundation-comms.defaultkvstorage.md +30 -0
- package/docs/api/foundation-comms.defaultkvstorage.user.md +14 -0
- package/docs/api/foundation-comms.defaultkvstorageconfig.md +16 -0
- package/docs/api/foundation-comms.entitydatasource.cache.md +19 -0
- package/docs/api/foundation-comms.entitydatasource.disconnect.md +22 -0
- package/docs/api/foundation-comms.entitydatasource.initialize.md +29 -0
- package/docs/api/foundation-comms.entitydatasource.isempty.md +19 -0
- package/docs/api/foundation-comms.entitydatasource.md +81 -0
- package/docs/api/foundation-comms.entitydatasourceinit.fetchmeta.md +14 -0
- package/docs/api/foundation-comms.entitydatasourceinit.mapper.md +14 -0
- package/docs/api/foundation-comms.entitydatasourceinit.md +25 -0
- package/docs/api/foundation-comms.entitydatasourceinit.options.md +14 -0
- package/docs/api/foundation-comms.extractfielddefinitions.md +14 -1
- package/docs/api/foundation-comms.getkvstorage.md +1 -1
- package/docs/api/foundation-comms.keyvalue.base64.md +16 -0
- package/docs/api/foundation-comms.keyvalue.expiration.md +16 -0
- package/docs/api/foundation-comms.keyvalue.key.md +16 -0
- package/docs/api/foundation-comms.keyvalue.md +27 -0
- package/docs/api/foundation-comms.keyvalue.metadata.md +18 -0
- package/docs/api/foundation-comms.keyvalue.value.md +16 -0
- package/docs/api/foundation-comms.keyvaluetransfer.deserialize.md +25 -0
- package/docs/api/foundation-comms.keyvaluetransfer.kv.md +14 -0
- package/docs/api/foundation-comms.keyvaluetransfer.md +30 -0
- package/docs/api/foundation-comms.keyvaluetransfer.serialize.md +25 -0
- package/docs/api/foundation-comms.kveventfailureresponse.md +21 -0
- package/docs/api/foundation-comms.kveventmessagetype.md +24 -0
- package/docs/api/foundation-comms.kvmessagetype.md +24 -0
- package/docs/api/foundation-comms.kvstorage.delete.md +25 -0
- package/docs/api/foundation-comms.kvstorage.get.md +18 -0
- package/docs/api/foundation-comms.kvstorage.get_1.md +25 -0
- package/docs/api/foundation-comms.kvstorage.list.md +18 -0
- package/docs/api/foundation-comms.kvstorage.md +31 -0
- package/docs/api/foundation-comms.kvstorage.put.md +25 -0
- package/docs/api/foundation-comms.kvstorageconfig.account.md +16 -0
- package/docs/api/foundation-comms.kvstorageconfig.authemail.md +21 -0
- package/docs/api/foundation-comms.kvstorageconfig.authkey.md +16 -0
- package/docs/api/foundation-comms.kvstorageconfig.md +26 -0
- package/docs/api/foundation-comms.kvstorageconfig.namespace.md +16 -0
- package/docs/api/foundation-comms.kvvalue.md +16 -0
- package/docs/api/foundation-comms.md +19 -6
- package/docs/api/foundation-comms.messagehaserrorcode.md +13 -1
- package/docs/api/foundation-comms.messageorthrow.md +14 -1
- package/docs/api/foundation-comms.retryinterval.md +15 -1
- package/docs/api/foundation-comms.socket.md +1 -0
- package/docs/api/foundation-comms.socket.sendforstreamwithoutteardown.md +31 -0
- package/docs/api/foundation-comms.tofieldmetadata.md +14 -1
- package/docs/{api-report.md → api-report.md.api.md} +47 -31
- package/package.json +14 -14
@@ -0,0 +1,30 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [KeyValueTransfer](./foundation-comms.keyvaluetransfer.md)
|
4
|
+
|
5
|
+
## KeyValueTransfer interface
|
6
|
+
|
7
|
+
> This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
8
|
+
>
|
9
|
+
|
10
|
+
KeyValueTransfer interface.
|
11
|
+
|
12
|
+
**Signature:**
|
13
|
+
|
14
|
+
```typescript
|
15
|
+
export interface KeyValueTransfer<T>
|
16
|
+
```
|
17
|
+
|
18
|
+
## Properties
|
19
|
+
|
20
|
+
| Property | Modifiers | Type | Description |
|
21
|
+
| --- | --- | --- | --- |
|
22
|
+
| [kv](./foundation-comms.keyvaluetransfer.kv.md) | | [KeyValue](./foundation-comms.keyvalue.md)<!-- --><T> | **_(ALPHA)_** |
|
23
|
+
|
24
|
+
## Methods
|
25
|
+
|
26
|
+
| Method | Description |
|
27
|
+
| --- | --- |
|
28
|
+
| [deserialize(value)?](./foundation-comms.keyvaluetransfer.deserialize.md) | **_(ALPHA)_** _(Optional)_ |
|
29
|
+
| [serialize(value)?](./foundation-comms.keyvaluetransfer.serialize.md) | **_(ALPHA)_** _(Optional)_ |
|
30
|
+
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [KeyValueTransfer](./foundation-comms.keyvaluetransfer.md) > [serialize](./foundation-comms.keyvaluetransfer.serialize.md)
|
4
|
+
|
5
|
+
## KeyValueTransfer.serialize() method
|
6
|
+
|
7
|
+
> This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
8
|
+
>
|
9
|
+
|
10
|
+
**Signature:**
|
11
|
+
|
12
|
+
```typescript
|
13
|
+
serialize?(value: unknown): unknown;
|
14
|
+
```
|
15
|
+
|
16
|
+
## Parameters
|
17
|
+
|
18
|
+
| Parameter | Type | Description |
|
19
|
+
| --- | --- | --- |
|
20
|
+
| value | unknown | |
|
21
|
+
|
22
|
+
**Returns:**
|
23
|
+
|
24
|
+
unknown
|
25
|
+
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [KVEventFailureResponse](./foundation-comms.kveventfailureresponse.md)
|
4
|
+
|
5
|
+
## KVEventFailureResponse type
|
6
|
+
|
7
|
+
> This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
8
|
+
>
|
9
|
+
|
10
|
+
KVStorage type.
|
11
|
+
|
12
|
+
**Signature:**
|
13
|
+
|
14
|
+
```typescript
|
15
|
+
export type KVEventFailureResponse = {
|
16
|
+
ERROR?: MessageError[];
|
17
|
+
WARNING: any[];
|
18
|
+
};
|
19
|
+
```
|
20
|
+
**References:** [MessageError](./foundation-comms.messageerror.md)
|
21
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [KVEventMessageType](./foundation-comms.kveventmessagetype.md)
|
4
|
+
|
5
|
+
## KVEventMessageType enum
|
6
|
+
|
7
|
+
> This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
8
|
+
>
|
9
|
+
|
10
|
+
KV Event Message types
|
11
|
+
|
12
|
+
**Signature:**
|
13
|
+
|
14
|
+
```typescript
|
15
|
+
export declare enum KVEventMessageType
|
16
|
+
```
|
17
|
+
|
18
|
+
## Enumeration Members
|
19
|
+
|
20
|
+
| Member | Value | Description |
|
21
|
+
| --- | --- | --- |
|
22
|
+
| EVENT\_KEY\_VALUE\_DELETE | <code>"EVENT_KEY_VALUE_DELETE"</code> | **_(ALPHA)_** |
|
23
|
+
| EVENT\_KEY\_VALUE\_PUT | <code>"EVENT_KEY_VALUE_PUT"</code> | **_(ALPHA)_** |
|
24
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [KVMessageType](./foundation-comms.kvmessagetype.md)
|
4
|
+
|
5
|
+
## KVMessageType enum
|
6
|
+
|
7
|
+
> This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
8
|
+
>
|
9
|
+
|
10
|
+
KV Message types
|
11
|
+
|
12
|
+
**Signature:**
|
13
|
+
|
14
|
+
```typescript
|
15
|
+
export declare enum KVMessageType
|
16
|
+
```
|
17
|
+
|
18
|
+
## Enumeration Members
|
19
|
+
|
20
|
+
| Member | Value | Description |
|
21
|
+
| --- | --- | --- |
|
22
|
+
| REQ\_KEY\_VALUE\_LIST | <code>"REQ_KEY_VALUE_LIST"</code> | **_(ALPHA)_** |
|
23
|
+
| REQ\_KEY\_VALUE\_READ | <code>"REQ_KEY_VALUE_READ"</code> | **_(ALPHA)_** |
|
24
|
+
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [KVStorage](./foundation-comms.kvstorage.md) > [delete](./foundation-comms.kvstorage.delete.md)
|
4
|
+
|
5
|
+
## KVStorage.delete() method
|
6
|
+
|
7
|
+
> This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
8
|
+
>
|
9
|
+
|
10
|
+
**Signature:**
|
11
|
+
|
12
|
+
```typescript
|
13
|
+
delete(keys: string[]): Promise<true | KVEventFailureResponse>;
|
14
|
+
```
|
15
|
+
|
16
|
+
## Parameters
|
17
|
+
|
18
|
+
| Parameter | Type | Description |
|
19
|
+
| --- | --- | --- |
|
20
|
+
| keys | string\[\] | |
|
21
|
+
|
22
|
+
**Returns:**
|
23
|
+
|
24
|
+
Promise<true \| [KVEventFailureResponse](./foundation-comms.kveventfailureresponse.md)<!-- -->>
|
25
|
+
|
@@ -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) > [KVStorage](./foundation-comms.kvstorage.md) > [get](./foundation-comms.kvstorage.get.md)
|
4
|
+
|
5
|
+
## KVStorage.get() method
|
6
|
+
|
7
|
+
> This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
8
|
+
>
|
9
|
+
|
10
|
+
**Signature:**
|
11
|
+
|
12
|
+
```typescript
|
13
|
+
get<T = KVValue>(): Promise<KeyValueTransfer<T>[]>;
|
14
|
+
```
|
15
|
+
**Returns:**
|
16
|
+
|
17
|
+
Promise<[KeyValueTransfer](./foundation-comms.keyvaluetransfer.md)<!-- --><T>\[\]>
|
18
|
+
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [KVStorage](./foundation-comms.kvstorage.md) > [get](./foundation-comms.kvstorage.get_1.md)
|
4
|
+
|
5
|
+
## KVStorage.get() method
|
6
|
+
|
7
|
+
> This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
8
|
+
>
|
9
|
+
|
10
|
+
**Signature:**
|
11
|
+
|
12
|
+
```typescript
|
13
|
+
get<T = KVValue>(key: string): Promise<KeyValueTransfer<T>>;
|
14
|
+
```
|
15
|
+
|
16
|
+
## Parameters
|
17
|
+
|
18
|
+
| Parameter | Type | Description |
|
19
|
+
| --- | --- | --- |
|
20
|
+
| key | string | |
|
21
|
+
|
22
|
+
**Returns:**
|
23
|
+
|
24
|
+
Promise<[KeyValueTransfer](./foundation-comms.keyvaluetransfer.md)<!-- --><T>>
|
25
|
+
|
@@ -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) > [KVStorage](./foundation-comms.kvstorage.md) > [list](./foundation-comms.kvstorage.list.md)
|
4
|
+
|
5
|
+
## KVStorage.list() method
|
6
|
+
|
7
|
+
> This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
8
|
+
>
|
9
|
+
|
10
|
+
**Signature:**
|
11
|
+
|
12
|
+
```typescript
|
13
|
+
list(): Promise<string[]>;
|
14
|
+
```
|
15
|
+
**Returns:**
|
16
|
+
|
17
|
+
Promise<string\[\]>
|
18
|
+
|
@@ -0,0 +1,31 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [KVStorage](./foundation-comms.kvstorage.md)
|
4
|
+
|
5
|
+
## KVStorage interface
|
6
|
+
|
7
|
+
> This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
8
|
+
>
|
9
|
+
|
10
|
+
Represents a KV (key-value) data storage and its capabilities. Provides methods to set and get items from the KV data storage.
|
11
|
+
|
12
|
+
**Signature:**
|
13
|
+
|
14
|
+
```typescript
|
15
|
+
export interface KVStorage
|
16
|
+
```
|
17
|
+
|
18
|
+
## Remarks
|
19
|
+
|
20
|
+
Provides a key value storage api that abstracts the underlying storage technology.
|
21
|
+
|
22
|
+
## Methods
|
23
|
+
|
24
|
+
| Method | Description |
|
25
|
+
| --- | --- |
|
26
|
+
| [delete(keys)](./foundation-comms.kvstorage.delete.md) | **_(ALPHA)_** |
|
27
|
+
| [get()](./foundation-comms.kvstorage.get.md) | **_(ALPHA)_** |
|
28
|
+
| [get(key)](./foundation-comms.kvstorage.get_1.md) | **_(ALPHA)_** |
|
29
|
+
| [list()](./foundation-comms.kvstorage.list.md) | **_(ALPHA)_** |
|
30
|
+
| [put(kvs)](./foundation-comms.kvstorage.put.md) | **_(ALPHA)_** |
|
31
|
+
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [KVStorage](./foundation-comms.kvstorage.md) > [put](./foundation-comms.kvstorage.put.md)
|
4
|
+
|
5
|
+
## KVStorage.put() method
|
6
|
+
|
7
|
+
> This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
8
|
+
>
|
9
|
+
|
10
|
+
**Signature:**
|
11
|
+
|
12
|
+
```typescript
|
13
|
+
put(kvs: KeyValue<KVValue>[]): Promise<true | KVEventFailureResponse>;
|
14
|
+
```
|
15
|
+
|
16
|
+
## Parameters
|
17
|
+
|
18
|
+
| Parameter | Type | Description |
|
19
|
+
| --- | --- | --- |
|
20
|
+
| kvs | [KeyValue](./foundation-comms.keyvalue.md)<!-- --><[KVValue](./foundation-comms.kvvalue.md)<!-- -->>\[\] | |
|
21
|
+
|
22
|
+
**Returns:**
|
23
|
+
|
24
|
+
Promise<true \| [KVEventFailureResponse](./foundation-comms.kveventfailureresponse.md)<!-- -->>
|
25
|
+
|
@@ -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) > [KVStorageConfig](./foundation-comms.kvstorageconfig.md) > [account](./foundation-comms.kvstorageconfig.account.md)
|
4
|
+
|
5
|
+
## KVStorageConfig.account property
|
6
|
+
|
7
|
+
> This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
8
|
+
>
|
9
|
+
|
10
|
+
The account id to use.
|
11
|
+
|
12
|
+
**Signature:**
|
13
|
+
|
14
|
+
```typescript
|
15
|
+
account?: string;
|
16
|
+
```
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [KVStorageConfig](./foundation-comms.kvstorageconfig.md) > [authEmail](./foundation-comms.kvstorageconfig.authemail.md)
|
4
|
+
|
5
|
+
## KVStorageConfig.authEmail property
|
6
|
+
|
7
|
+
> This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
8
|
+
>
|
9
|
+
|
10
|
+
Access control auth email.
|
11
|
+
|
12
|
+
**Signature:**
|
13
|
+
|
14
|
+
```typescript
|
15
|
+
authEmail?: string;
|
16
|
+
```
|
17
|
+
|
18
|
+
## Remarks
|
19
|
+
|
20
|
+
Part of access requirements and where to report integration issues.
|
21
|
+
|
@@ -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) > [KVStorageConfig](./foundation-comms.kvstorageconfig.md) > [authKey](./foundation-comms.kvstorageconfig.authkey.md)
|
4
|
+
|
5
|
+
## KVStorageConfig.authKey property
|
6
|
+
|
7
|
+
> This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
8
|
+
>
|
9
|
+
|
10
|
+
Access control auth key.
|
11
|
+
|
12
|
+
**Signature:**
|
13
|
+
|
14
|
+
```typescript
|
15
|
+
authKey?: string;
|
16
|
+
```
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [KVStorageConfig](./foundation-comms.kvstorageconfig.md)
|
4
|
+
|
5
|
+
## KVStorageConfig interface
|
6
|
+
|
7
|
+
> This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
8
|
+
>
|
9
|
+
|
10
|
+
KVStorageConfig DI interface.
|
11
|
+
|
12
|
+
**Signature:**
|
13
|
+
|
14
|
+
```typescript
|
15
|
+
export interface KVStorageConfig
|
16
|
+
```
|
17
|
+
|
18
|
+
## Properties
|
19
|
+
|
20
|
+
| Property | Modifiers | Type | Description |
|
21
|
+
| --- | --- | --- | --- |
|
22
|
+
| [account?](./foundation-comms.kvstorageconfig.account.md) | | string | **_(ALPHA)_** _(Optional)_ The account id to use. |
|
23
|
+
| [authEmail?](./foundation-comms.kvstorageconfig.authemail.md) | | string | **_(ALPHA)_** _(Optional)_ Access control auth email. |
|
24
|
+
| [authKey?](./foundation-comms.kvstorageconfig.authkey.md) | | string | **_(ALPHA)_** _(Optional)_ Access control auth key. |
|
25
|
+
| [namespace?](./foundation-comms.kvstorageconfig.namespace.md) | | string | **_(ALPHA)_** _(Optional)_ The namespace to use. |
|
26
|
+
|
@@ -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) > [KVStorageConfig](./foundation-comms.kvstorageconfig.md) > [namespace](./foundation-comms.kvstorageconfig.namespace.md)
|
4
|
+
|
5
|
+
## KVStorageConfig.namespace property
|
6
|
+
|
7
|
+
> This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
8
|
+
>
|
9
|
+
|
10
|
+
The namespace to use.
|
11
|
+
|
12
|
+
**Signature:**
|
13
|
+
|
14
|
+
```typescript
|
15
|
+
namespace?: string;
|
16
|
+
```
|
@@ -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) > [KVValue](./foundation-comms.kvvalue.md)
|
4
|
+
|
5
|
+
## KVValue type
|
6
|
+
|
7
|
+
> This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
8
|
+
>
|
9
|
+
|
10
|
+
KVValue type.
|
11
|
+
|
12
|
+
**Signature:**
|
13
|
+
|
14
|
+
```typescript
|
15
|
+
export type KVValue = string | ArrayBuffer;
|
16
|
+
```
|
@@ -16,10 +16,12 @@
|
|
16
16
|
| [DefaultConnectEvents](./foundation-comms.defaultconnectevents.md) | Default ConnectEvents implementation. |
|
17
17
|
| [DefaultCredentialManager](./foundation-comms.defaultcredentialmanager.md) | The default implementation for the CredentialManager interface. |
|
18
18
|
| [DefaultDatasource](./foundation-comms.defaultdatasource.md) | The default implementation for the Datasource interface. |
|
19
|
+
| [DefaultEntityDatasource](./foundation-comms.defaultentitydatasource.md) | **_(ALPHA)_** Default EntityDatasource DI implementation. |
|
19
20
|
| [DefaultFoundationAnalytics](./foundation-comms.defaultfoundationanalytics.md) | The default implementation for the FoundationAnalytics interface. |
|
20
21
|
| [DefaultGenesisResources](./foundation-comms.defaultgenesisresources.md) | Default GenesisResources implementation. |
|
21
22
|
| [DefaultHttp](./foundation-comms.defaulthttp.md) | The default implementation of the Http interface. |
|
22
23
|
| [DefaultHttpConnect](./foundation-comms.defaulthttpconnect.md) | The default implementation for the Connect interface (HTTP-only). |
|
24
|
+
| [DefaultKVStorage](./foundation-comms.defaultkvstorage.md) | **_(ALPHA)_** The default implementation for the KVStorage interface. |
|
23
25
|
| [DefaultMessageBuilder](./foundation-comms.defaultmessagebuilder.md) | Default MessageBuilder implementation. |
|
24
26
|
| [DefaultMetaCache](./foundation-comms.defaultmetacache.md) | The default implementation for the MetaCache interface. |
|
25
27
|
| [DefaultNetworkMonitor](./foundation-comms.defaultnetworkmonitor.md) | Default NetworkMonitor implementation. |
|
@@ -39,6 +41,8 @@
|
|
39
41
|
| [EventMessageType](./foundation-comms.eventmessagetype.md) | Event Message types |
|
40
42
|
| [FieldTypeEnum](./foundation-comms.fieldtypeenum.md) | Available types for a field metadata. |
|
41
43
|
| [FoundationAnalyticsEventType](./foundation-comms.foundationanalyticseventtype.md) | Analytics event types |
|
44
|
+
| [KVEventMessageType](./foundation-comms.kveventmessagetype.md) | **_(ALPHA)_** KV Event Message types |
|
45
|
+
| [KVMessageType](./foundation-comms.kvmessagetype.md) | **_(ALPHA)_** KV Message types |
|
42
46
|
| [MessageCode](./foundation-comms.messagecode.md) | General Message codes |
|
43
47
|
| [MessageType](./foundation-comms.messagetype.md) | General Message types |
|
44
48
|
| [ResourceType](./foundation-comms.resourcetype.md) | Types of Genesis resources. |
|
@@ -50,6 +54,8 @@
|
|
50
54
|
| --- | --- |
|
51
55
|
| [criteriaFiltersToFields(filters)](./foundation-comms.criteriafilterstofields.md) | Criteria filters to fields. |
|
52
56
|
| [dataServerResultFilter(result, rowId)](./foundation-comms.dataserverresultfilter.md) | Data server result filter. |
|
57
|
+
| [DatasourceEventHandler(Target)](./foundation-comms.datasourceeventhandler.md) | Datasource event handler mixin for target classes that use or are interested in datasource status changes. |
|
58
|
+
| [extractFieldDefinitions(metadata)](./foundation-comms.extractfielddefinitions.md) | Extracts the field definitions from the metadata. |
|
53
59
|
| [getConnect()](./foundation-comms.getconnect.md) | Get Connect from the DI container. |
|
54
60
|
| [getDatasource()](./foundation-comms.getdatasource.md) | Get Datasource from the DI container. |
|
55
61
|
| [getGenesisResources()](./foundation-comms.getgenesisresources.md) | Gets GenesisResources from the DI container. |
|
@@ -58,7 +64,11 @@
|
|
58
64
|
| [getNetworkMonitor()](./foundation-comms.getnetworkmonitor.md) | Gets NetworkMonitor from the DI container. |
|
59
65
|
| [getSocket()](./foundation-comms.getsocket.md) | Gets Socket from the DI container. |
|
60
66
|
| [getSocketStatus()](./foundation-comms.getsocketstatus.md) | Gets SocketStatus from the DI container. |
|
67
|
+
| [messageHasErrorCode(message, code)](./foundation-comms.messagehaserrorcode.md) | Check if the message contains an error code. |
|
68
|
+
| [messageOrThrow(message)](./foundation-comms.messageorthrow.md) | Check if the provided message contains an error and throw an Error if it does |
|
61
69
|
| [normaliseCriteria(criteria, delimiter)](./foundation-comms.normalisecriteria.md) | Normalise criteria. |
|
70
|
+
| [retryInterval(reconnectOptions, scheduler)](./foundation-comms.retryinterval.md) | Generate reconnect interval based on scheduler |
|
71
|
+
| [toFieldMetadata(fieldDef)](./foundation-comms.tofieldmetadata.md) | Converts the field definitions to field metadata. |
|
62
72
|
| [until(conditionFunc, timeoutMs)](./foundation-comms.until.md) | Polls a condition function until it returns true or a timeout is reached. |
|
63
73
|
|
64
74
|
## Interfaces
|
@@ -79,6 +89,8 @@
|
|
79
89
|
| [DatasourceOptions](./foundation-comms.datasourceoptions.md) | Options that can be passed when initializing a datasource. |
|
80
90
|
| [DataUpdate](./foundation-comms.dataupdate.md) | Data Update definition with details of what data to add, drop, and/or modify. |
|
81
91
|
| [Dataview](./foundation-comms.dataview.md) | Dataview object |
|
92
|
+
| [EntityDatasource](./foundation-comms.entitydatasource.md) | **_(ALPHA)_** EntityDatasource DI interface. |
|
93
|
+
| [EntityDatasourceInit](./foundation-comms.entitydatasourceinit.md) | **_(ALPHA)_** EntityDatasourceInit interface. |
|
82
94
|
| [FoundationAnalytics](./foundation-comms.foundationanalytics.md) | Represents an analytics tracking system. |
|
83
95
|
| [GenesisResources](./foundation-comms.genesisresources.md) | GenesisResources DI interface. |
|
84
96
|
| [GenesisResourcesChannel](./foundation-comms.genesisresourceschannel.md) | GenesisResourcesChannel DI interface. |
|
@@ -86,6 +98,10 @@
|
|
86
98
|
| [Http](./foundation-comms.http.md) | An interface representing an HTTP client that can make GET and POST requests and return a promise with the response data. |
|
87
99
|
| [HttpRequestInit](./foundation-comms.httprequestinit.md) | The options object used when making an HTTP request. |
|
88
100
|
| [JsonSchemaCache](./foundation-comms.jsonschemacache.md) | A JSON schema cache definition |
|
101
|
+
| [KeyValue](./foundation-comms.keyvalue.md) | **_(ALPHA)_** KeyValue interface. |
|
102
|
+
| [KeyValueTransfer](./foundation-comms.keyvaluetransfer.md) | **_(ALPHA)_** KeyValueTransfer interface. |
|
103
|
+
| [KVStorage](./foundation-comms.kvstorage.md) | **_(ALPHA)_** Represents a KV (key-value) data storage and its capabilities. Provides methods to set and get items from the KV data storage. |
|
104
|
+
| [KVStorageConfig](./foundation-comms.kvstorageconfig.md) | **_(ALPHA)_** KVStorageConfig DI interface. |
|
89
105
|
| [LogoutResult](./foundation-comms.logoutresult.md) | Represents the result of a user logout operation. |
|
90
106
|
| [MessageBuilder](./foundation-comms.messagebuilder.md) | A utility class for building different types of messages. |
|
91
107
|
| [MetadataCache](./foundation-comms.metadatacache.md) | A Metadata cache definition |
|
@@ -113,31 +129,26 @@
|
|
113
129
|
| --- | --- |
|
114
130
|
| [CommitEventType](./foundation-comms.commiteventtype.md) | |
|
115
131
|
| [credentialSeparator](./foundation-comms.credentialseparator.md) | The default separator used for splitting credential parts. |
|
116
|
-
| [DatasourceEventHandler](./foundation-comms.datasourceeventhandler.md) | Datasource event handler mixin for target classes that use or are interested in datasource status changes. |
|
117
132
|
| [DatasourceStatusChanged](./foundation-comms.datasourcestatuschanged.md) | DatasourceStatusChanged. |
|
118
133
|
| [defaultConnectConfig](./foundation-comms.defaultconnectconfig.md) | The default configuration for connecting to a WS service. |
|
119
134
|
| [defaultCredentialManagerConfig](./foundation-comms.defaultcredentialmanagerconfig.md) | The default configuration for the CredentialManager service. |
|
120
135
|
| [defaultCredentialRequestOptions](./foundation-comms.defaultcredentialrequestoptions.md) | The default request options for the CredentialManager service. |
|
121
136
|
| [defaultDatasourceConfig](./foundation-comms.defaultdatasourceconfig.md) | Default DatasourceConfig DI implementation. |
|
122
137
|
| [defaultGenesisResourcesConfig](./foundation-comms.defaultgenesisresourcesconfig.md) | Default GenesisResourcesConfig implementation. |
|
138
|
+
| [defaultKVStorageConfig](./foundation-comms.defaultkvstorageconfig.md) | **_(ALPHA)_** The default configuration for the KVStorage service. |
|
123
139
|
| [defaultNetworkMonitorConfig](./foundation-comms.defaultnetworkmonitorconfig.md) | Default NetworkMonitorConfig DI implementation. |
|
124
140
|
| [exponentialScheduler](./foundation-comms.exponentialscheduler.md) | Expontential Interval scheduler for reconnect |
|
125
|
-
| [extractFieldDefinitions](./foundation-comms.extractfielddefinitions.md) | Extracts the field definitions from the metadata. |
|
126
141
|
| [GenesisResourcesChannelId](./foundation-comms.genesisresourceschannelid.md) | |
|
127
142
|
| [isWebSocketExpression](./foundation-comms.iswebsocketexpression.md) | Regular Expression to test valid WebSocket (wss and ws) hosts |
|
128
143
|
| [linearScheduler](./foundation-comms.linearscheduler.md) | Linear Interval scheduler for reconnect |
|
129
144
|
| [logger](./foundation-comms.logger.md) | Logger for the foundation-comms package |
|
130
145
|
| [MAX\_RECONNECT\_ATTEMPTS](./foundation-comms.max_reconnect_attempts.md) | Default number of reconnect attempts |
|
131
|
-
| [messageHasErrorCode](./foundation-comms.messagehaserrorcode.md) | Check if the message contains an error code. |
|
132
|
-
| [messageOrThrow](./foundation-comms.messageorthrow.md) | Check if the provided message contains an error and throw an Error if it does |
|
133
146
|
| [MetadataEventType](./foundation-comms.metadataeventtype.md) | |
|
134
147
|
| [networkLogger](./foundation-comms.networklogger.md) | |
|
135
|
-
| [retryInterval](./foundation-comms.retryinterval.md) | Generate reconnect interval based on scheduler |
|
136
148
|
| [StreamCompleteEventType](./foundation-comms.streamcompleteeventtype.md) | |
|
137
149
|
| [StreamErrorEventType](./foundation-comms.streamerroreventtype.md) | |
|
138
150
|
| [StreamEventType](./foundation-comms.streameventtype.md) | |
|
139
151
|
| [SystemHealthChanged](./foundation-comms.systemhealthchanged.md) | SystemHealthChanged. |
|
140
|
-
| [toFieldMetadata](./foundation-comms.tofieldmetadata.md) | Converts the field definitions to field metadata. |
|
141
152
|
| [TYPES\_MAP](./foundation-comms.types_map.md) | Types map for FieldTypeEnum. |
|
142
153
|
|
143
154
|
## Type Aliases
|
@@ -162,6 +173,8 @@
|
|
162
173
|
| [GetCredentialOptions](./foundation-comms.getcredentialoptions.md) | Represents options for retrieving credentials. |
|
163
174
|
| [IndexDetail](./foundation-comms.indexdetail.md) | Index Detail definition. |
|
164
175
|
| [JwtAuthInfo](./foundation-comms.jwtauthinfo.md) | Represents JWT authentication information. |
|
176
|
+
| [KVEventFailureResponse](./foundation-comms.kveventfailureresponse.md) | **_(ALPHA)_** KVStorage type. |
|
177
|
+
| [KVValue](./foundation-comms.kvvalue.md) | **_(ALPHA)_** KVValue type. |
|
165
178
|
| [LoginResult](./foundation-comms.loginresult.md) | Represents the result of a user login operation. |
|
166
179
|
| [Message](./foundation-comms.message.md) | Base Message type for all DETAIL variants |
|
167
180
|
| [MessageError](./foundation-comms.messageerror.md) | Error definition for a message result |
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [messageHasErrorCode](./foundation-comms.messagehaserrorcode.md)
|
4
4
|
|
5
|
-
## messageHasErrorCode
|
5
|
+
## messageHasErrorCode() function
|
6
6
|
|
7
7
|
Check if the message contains an error code.
|
8
8
|
|
@@ -11,3 +11,15 @@ Check if the message contains an error code.
|
|
11
11
|
```typescript
|
12
12
|
messageHasErrorCode: (message: Message, code: string | number) => boolean
|
13
13
|
```
|
14
|
+
|
15
|
+
## Parameters
|
16
|
+
|
17
|
+
| Parameter | Type | Description |
|
18
|
+
| --- | --- | --- |
|
19
|
+
| message | [Message](./foundation-comms.message.md) | The message object. |
|
20
|
+
| code | string \| number | The error code. Either a number or an entire status code string. |
|
21
|
+
|
22
|
+
**Returns:**
|
23
|
+
|
24
|
+
boolean
|
25
|
+
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [messageOrThrow](./foundation-comms.messageorthrow.md)
|
4
4
|
|
5
|
-
## messageOrThrow
|
5
|
+
## messageOrThrow() function
|
6
6
|
|
7
7
|
Check if the provided message contains an error and throw an Error if it does
|
8
8
|
|
@@ -11,3 +11,16 @@ Check if the provided message contains an error and throw an Error if it does
|
|
11
11
|
```typescript
|
12
12
|
messageOrThrow: (message: Message) => Message<any>
|
13
13
|
```
|
14
|
+
|
15
|
+
## Parameters
|
16
|
+
|
17
|
+
| Parameter | Type | Description |
|
18
|
+
| --- | --- | --- |
|
19
|
+
| message | [Message](./foundation-comms.message.md) | Message to check for errors |
|
20
|
+
|
21
|
+
**Returns:**
|
22
|
+
|
23
|
+
[Message](./foundation-comms.message.md)<!-- --><any>
|
24
|
+
|
25
|
+
The message if no errors are present, otherwise throws an Error
|
26
|
+
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [retryInterval](./foundation-comms.retryinterval.md)
|
4
4
|
|
5
|
-
## retryInterval
|
5
|
+
## retryInterval() function
|
6
6
|
|
7
7
|
Generate reconnect interval based on scheduler
|
8
8
|
|
@@ -11,3 +11,17 @@ Generate reconnect interval based on scheduler
|
|
11
11
|
```typescript
|
12
12
|
retryInterval: (reconnectOptions: SocketReconnectOptions, scheduler: SocketReconnectScheduler) => Observable<number>
|
13
13
|
```
|
14
|
+
|
15
|
+
## Parameters
|
16
|
+
|
17
|
+
| Parameter | Type | Description |
|
18
|
+
| --- | --- | --- |
|
19
|
+
| reconnectOptions | [SocketReconnectOptions](./foundation-comms.socketreconnectoptions.md) | [SocketReconnectOptions](./foundation-comms.socketreconnectoptions.md) options |
|
20
|
+
| scheduler | [SocketReconnectScheduler](./foundation-comms.socketreconnectscheduler.md) | [SocketReconnectScheduler](./foundation-comms.socketreconnectscheduler.md) function |
|
21
|
+
|
22
|
+
**Returns:**
|
23
|
+
|
24
|
+
Observable<number>
|
25
|
+
|
26
|
+
Observable<number>
|
27
|
+
|
@@ -27,5 +27,6 @@ export interface Socket extends Omit<SocketStatus, 'serialize' | 'onClose' | 're
|
|
27
27
|
| [reset()](./foundation-comms.socket.reset.md) | Disconnects the socket and clears all subscriptions |
|
28
28
|
| [send(message, needsHandling)](./foundation-comms.socket.send.md) | |
|
29
29
|
| [sendForStream(message, onMessage, onError, onComplete)](./foundation-comms.socket.sendforstream.md) | |
|
30
|
+
| [sendForStreamWithoutTeardown(message, onMessage, onError)](./foundation-comms.socket.sendforstreamwithoutteardown.md) | **_(ALPHA)_** Sends a message and returns an observable that emits messages received from the server. |
|
30
31
|
| [socketMessages()](./foundation-comms.socket.socketmessages.md) | |
|
31
32
|
|
@@ -0,0 +1,31 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [Socket](./foundation-comms.socket.md) > [sendForStreamWithoutTeardown](./foundation-comms.socket.sendforstreamwithoutteardown.md)
|
4
|
+
|
5
|
+
## Socket.sendForStreamWithoutTeardown() method
|
6
|
+
|
7
|
+
> This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
8
|
+
>
|
9
|
+
|
10
|
+
Sends a message and returns an observable that emits messages received from the server.
|
11
|
+
|
12
|
+
**Signature:**
|
13
|
+
|
14
|
+
```typescript
|
15
|
+
sendForStreamWithoutTeardown<T>(message: Message<T | any>, onMessage: Function, onError: Function): Observable<Message>;
|
16
|
+
```
|
17
|
+
|
18
|
+
## Parameters
|
19
|
+
|
20
|
+
| Parameter | Type | Description |
|
21
|
+
| --- | --- | --- |
|
22
|
+
| message | [Message](./foundation-comms.message.md)<!-- --><T \| any> | The message to send. |
|
23
|
+
| onMessage | Function | The function to call when a message is received. |
|
24
|
+
| onError | Function | The function to call when an error is received. |
|
25
|
+
|
26
|
+
**Returns:**
|
27
|
+
|
28
|
+
Observable<[Message](./foundation-comms.message.md)<!-- -->>
|
29
|
+
|
30
|
+
An observable that emits messages received from the server.
|
31
|
+
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [toFieldMetadata](./foundation-comms.tofieldmetadata.md)
|
4
4
|
|
5
|
-
## toFieldMetadata
|
5
|
+
## toFieldMetadata() function
|
6
6
|
|
7
7
|
Converts the field definitions to field metadata.
|
8
8
|
|
@@ -11,3 +11,16 @@ Converts the field definitions to field metadata.
|
|
11
11
|
```typescript
|
12
12
|
toFieldMetadata: (fieldDef: MetadataDetail[]) => FieldMetadata[]
|
13
13
|
```
|
14
|
+
|
15
|
+
## Parameters
|
16
|
+
|
17
|
+
| Parameter | Type | Description |
|
18
|
+
| --- | --- | --- |
|
19
|
+
| fieldDef | [MetadataDetail](./foundation-comms.metadatadetail.md)<!-- -->\[\] | The field definitions. |
|
20
|
+
|
21
|
+
**Returns:**
|
22
|
+
|
23
|
+
[FieldMetadata](./foundation-comms.fieldmetadata.md)<!-- -->\[\]
|
24
|
+
|
25
|
+
An array of field metadata.
|
26
|
+
|