@genesislcap/foundation-comms 14.237.1 → 14.237.2-alpha-78ebbc0.0

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.
Files changed (84) hide show
  1. package/dist/dts/datasource/datasource.mixins.d.ts +45 -29
  2. package/dist/dts/datasource/datasource.mixins.d.ts.map +1 -1
  3. package/dist/dts/testing/mocks/auth/auth.d.ts +1 -1
  4. package/dist/dts/testing/mocks/auth/auth.d.ts.map +1 -1
  5. package/dist/dts/testing/mocks/connect/socket.d.ts +1 -1
  6. package/dist/dts/testing/mocks/connect/socket.d.ts.map +1 -1
  7. package/dist/dts/tsdoc-metadata.json +1 -1
  8. package/dist/esm/auth/auth.js +2 -2
  9. package/dist/esm/connect/connect.js +8 -8
  10. package/dist/esm/connect/http.connect.js +8 -7
  11. package/dist/esm/connect/socket.js +1 -5
  12. package/dist/esm/credentialManager/credentialManager.js +2 -2
  13. package/dist/esm/datasource/datasource.js +7 -7
  14. package/dist/esm/networkMonitor/config.js +1 -2
  15. package/dist/esm/resources/genesis/genesis.js +1 -1
  16. package/dist/esm/storage/kv/kv.service.js +3 -3
  17. package/dist/foundation-comms.api.json +4898 -2404
  18. package/dist/foundation-comms.d.ts +47 -31
  19. package/docs/api/foundation-comms.connect.md +1 -0
  20. package/docs/api/foundation-comms.connect.streamwithoutautoteardown.md +37 -0
  21. package/docs/api/foundation-comms.datasourceeventhandler.md +56 -30
  22. package/docs/api/foundation-comms.defaultentitydatasource._initialized.md +15 -0
  23. package/docs/api/foundation-comms.defaultentitydatasource.cache.md +19 -0
  24. package/docs/api/foundation-comms.defaultentitydatasource.disconnect.md +19 -0
  25. package/docs/api/foundation-comms.defaultentitydatasource.entitycache.md +14 -0
  26. package/docs/api/foundation-comms.defaultentitydatasource.entitymap.md +14 -0
  27. package/docs/api/foundation-comms.defaultentitydatasource.initialize.md +19 -0
  28. package/docs/api/foundation-comms.defaultentitydatasource.initialized.md +16 -0
  29. package/docs/api/foundation-comms.defaultentitydatasource.isempty.md +19 -0
  30. package/docs/api/foundation-comms.defaultentitydatasource.mapper.md +14 -0
  31. package/docs/api/foundation-comms.defaultentitydatasource.md +38 -0
  32. package/docs/api/foundation-comms.defaultentitydatasource.rowid.md +14 -0
  33. package/docs/api/foundation-comms.defaultentitydatasource.sourceref.md +14 -0
  34. package/docs/api/foundation-comms.defaultentitydatasource.subscription.md +14 -0
  35. package/docs/api/foundation-comms.defaultentitydatasource.subscriptionloggedoff.md +14 -0
  36. package/docs/api/foundation-comms.defaultkvstorage._constructor_.md +25 -0
  37. package/docs/api/foundation-comms.defaultkvstorage.md +30 -0
  38. package/docs/api/foundation-comms.defaultkvstorage.user.md +14 -0
  39. package/docs/api/foundation-comms.defaultkvstorageconfig.md +16 -0
  40. package/docs/api/foundation-comms.entitydatasource.cache.md +19 -0
  41. package/docs/api/foundation-comms.entitydatasource.disconnect.md +22 -0
  42. package/docs/api/foundation-comms.entitydatasource.initialize.md +29 -0
  43. package/docs/api/foundation-comms.entitydatasource.isempty.md +19 -0
  44. package/docs/api/foundation-comms.entitydatasource.md +81 -0
  45. package/docs/api/foundation-comms.entitydatasourceinit.fetchmeta.md +14 -0
  46. package/docs/api/foundation-comms.entitydatasourceinit.mapper.md +14 -0
  47. package/docs/api/foundation-comms.entitydatasourceinit.md +25 -0
  48. package/docs/api/foundation-comms.entitydatasourceinit.options.md +14 -0
  49. package/docs/api/foundation-comms.extractfielddefinitions.md +14 -1
  50. package/docs/api/foundation-comms.getkvstorage.md +1 -1
  51. package/docs/api/foundation-comms.keyvalue.base64.md +16 -0
  52. package/docs/api/foundation-comms.keyvalue.expiration.md +16 -0
  53. package/docs/api/foundation-comms.keyvalue.key.md +16 -0
  54. package/docs/api/foundation-comms.keyvalue.md +27 -0
  55. package/docs/api/foundation-comms.keyvalue.metadata.md +18 -0
  56. package/docs/api/foundation-comms.keyvalue.value.md +16 -0
  57. package/docs/api/foundation-comms.keyvaluetransfer.deserialize.md +25 -0
  58. package/docs/api/foundation-comms.keyvaluetransfer.kv.md +14 -0
  59. package/docs/api/foundation-comms.keyvaluetransfer.md +30 -0
  60. package/docs/api/foundation-comms.keyvaluetransfer.serialize.md +25 -0
  61. package/docs/api/foundation-comms.kveventfailureresponse.md +21 -0
  62. package/docs/api/foundation-comms.kveventmessagetype.md +24 -0
  63. package/docs/api/foundation-comms.kvmessagetype.md +24 -0
  64. package/docs/api/foundation-comms.kvstorage.delete.md +25 -0
  65. package/docs/api/foundation-comms.kvstorage.get.md +18 -0
  66. package/docs/api/foundation-comms.kvstorage.get_1.md +25 -0
  67. package/docs/api/foundation-comms.kvstorage.list.md +18 -0
  68. package/docs/api/foundation-comms.kvstorage.md +31 -0
  69. package/docs/api/foundation-comms.kvstorage.put.md +25 -0
  70. package/docs/api/foundation-comms.kvstorageconfig.account.md +16 -0
  71. package/docs/api/foundation-comms.kvstorageconfig.authemail.md +21 -0
  72. package/docs/api/foundation-comms.kvstorageconfig.authkey.md +16 -0
  73. package/docs/api/foundation-comms.kvstorageconfig.md +26 -0
  74. package/docs/api/foundation-comms.kvstorageconfig.namespace.md +16 -0
  75. package/docs/api/foundation-comms.kvvalue.md +16 -0
  76. package/docs/api/foundation-comms.md +19 -6
  77. package/docs/api/foundation-comms.messagehaserrorcode.md +13 -1
  78. package/docs/api/foundation-comms.messageorthrow.md +14 -1
  79. package/docs/api/foundation-comms.retryinterval.md +15 -1
  80. package/docs/api/foundation-comms.socket.md +1 -0
  81. package/docs/api/foundation-comms.socket.sendforstreamwithoutteardown.md +31 -0
  82. package/docs/api/foundation-comms.tofieldmetadata.md +14 -1
  83. package/docs/{api-report.md → api-report.md.api.md} +47 -31
  84. 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) &gt; [@genesislcap/foundation-comms](./foundation-comms.md) &gt; [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)<!-- -->&lt;T&gt; | **_(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) &gt; [@genesislcap/foundation-comms](./foundation-comms.md) &gt; [KeyValueTransfer](./foundation-comms.keyvaluetransfer.md) &gt; [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) &gt; [@genesislcap/foundation-comms](./foundation-comms.md) &gt; [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) &gt; [@genesislcap/foundation-comms](./foundation-comms.md) &gt; [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>&quot;EVENT_KEY_VALUE_DELETE&quot;</code> | **_(ALPHA)_** |
23
+ | EVENT\_KEY\_VALUE\_PUT | <code>&quot;EVENT_KEY_VALUE_PUT&quot;</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) &gt; [@genesislcap/foundation-comms](./foundation-comms.md) &gt; [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>&quot;REQ_KEY_VALUE_LIST&quot;</code> | **_(ALPHA)_** |
23
+ | REQ\_KEY\_VALUE\_READ | <code>&quot;REQ_KEY_VALUE_READ&quot;</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) &gt; [@genesislcap/foundation-comms](./foundation-comms.md) &gt; [KVStorage](./foundation-comms.kvstorage.md) &gt; [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&lt;true \| [KVEventFailureResponse](./foundation-comms.kveventfailureresponse.md)<!-- -->&gt;
25
+
@@ -0,0 +1,18 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-comms](./foundation-comms.md) &gt; [KVStorage](./foundation-comms.kvstorage.md) &gt; [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&lt;[KeyValueTransfer](./foundation-comms.keyvaluetransfer.md)<!-- -->&lt;T&gt;\[\]&gt;
18
+
@@ -0,0 +1,25 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-comms](./foundation-comms.md) &gt; [KVStorage](./foundation-comms.kvstorage.md) &gt; [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&lt;[KeyValueTransfer](./foundation-comms.keyvaluetransfer.md)<!-- -->&lt;T&gt;&gt;
25
+
@@ -0,0 +1,18 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-comms](./foundation-comms.md) &gt; [KVStorage](./foundation-comms.kvstorage.md) &gt; [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&lt;string\[\]&gt;
18
+
@@ -0,0 +1,31 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-comms](./foundation-comms.md) &gt; [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) &gt; [@genesislcap/foundation-comms](./foundation-comms.md) &gt; [KVStorage](./foundation-comms.kvstorage.md) &gt; [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)<!-- -->&lt;[KVValue](./foundation-comms.kvvalue.md)<!-- -->&gt;\[\] | |
21
+
22
+ **Returns:**
23
+
24
+ Promise&lt;true \| [KVEventFailureResponse](./foundation-comms.kveventfailureresponse.md)<!-- -->&gt;
25
+
@@ -0,0 +1,16 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-comms](./foundation-comms.md) &gt; [KVStorageConfig](./foundation-comms.kvstorageconfig.md) &gt; [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) &gt; [@genesislcap/foundation-comms](./foundation-comms.md) &gt; [KVStorageConfig](./foundation-comms.kvstorageconfig.md) &gt; [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) &gt; [@genesislcap/foundation-comms](./foundation-comms.md) &gt; [KVStorageConfig](./foundation-comms.kvstorageconfig.md) &gt; [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) &gt; [@genesislcap/foundation-comms](./foundation-comms.md) &gt; [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) &gt; [@genesislcap/foundation-comms](./foundation-comms.md) &gt; [KVStorageConfig](./foundation-comms.kvstorageconfig.md) &gt; [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) &gt; [@genesislcap/foundation-comms](./foundation-comms.md) &gt; [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) &gt; [@genesislcap/foundation-comms](./foundation-comms.md) &gt; [messageHasErrorCode](./foundation-comms.messagehaserrorcode.md)
4
4
 
5
- ## messageHasErrorCode variable
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) &gt; [@genesislcap/foundation-comms](./foundation-comms.md) &gt; [messageOrThrow](./foundation-comms.messageorthrow.md)
4
4
 
5
- ## messageOrThrow variable
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)<!-- -->&lt;any&gt;
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) &gt; [@genesislcap/foundation-comms](./foundation-comms.md) &gt; [retryInterval](./foundation-comms.retryinterval.md)
4
4
 
5
- ## retryInterval variable
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&lt;number&gt;
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) &gt; [@genesislcap/foundation-comms](./foundation-comms.md) &gt; [Socket](./foundation-comms.socket.md) &gt; [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)<!-- -->&lt;T \| any&gt; | 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&lt;[Message](./foundation-comms.message.md)<!-- -->&gt;
29
+
30
+ An observable that emits messages received from the server.
31
+
@@ -2,7 +2,7 @@
2
2
 
3
3
  [Home](./index.md) &gt; [@genesislcap/foundation-comms](./foundation-comms.md) &gt; [toFieldMetadata](./foundation-comms.tofieldmetadata.md)
4
4
 
5
- ## toFieldMetadata variable
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
+