@genesislcap/foundation-comms 14.176.1-alpha-ed9e3d4.0 → 14.177.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/dts/auth/auth.d.ts +4 -4
- package/dist/dts/auth/auth.d.ts.map +1 -1
- package/dist/dts/auth/loginDTOMapper.d.ts +2 -0
- package/dist/dts/auth/loginDTOMapper.d.ts.map +1 -0
- package/dist/dts/connect/connect.d.ts +3 -0
- package/dist/dts/connect/connect.d.ts.map +1 -1
- package/dist/dts/connect/connect.events.d.ts +8 -3
- package/dist/dts/connect/connect.events.d.ts.map +1 -1
- package/dist/dts/connect/message.d.ts +42 -0
- package/dist/dts/connect/message.d.ts.map +1 -1
- package/dist/dts/connect/socket.d.ts +27 -4
- package/dist/dts/connect/socket.d.ts.map +1 -1
- package/dist/dts/connect/socket.status.d.ts +5 -1
- package/dist/dts/connect/socket.status.d.ts.map +1 -1
- package/dist/dts/networkMonitor/config.d.ts +13 -0
- package/dist/dts/networkMonitor/config.d.ts.map +1 -1
- package/dist/dts/networkMonitor/service.d.ts +11 -1
- package/dist/dts/networkMonitor/service.d.ts.map +1 -1
- package/dist/dts/storage/kv/kv.service.d.ts +19 -3
- package/dist/dts/storage/kv/kv.service.d.ts.map +1 -1
- package/dist/dts/testing/mocks/auth/auth.d.ts +2 -1
- package/dist/dts/testing/mocks/auth/auth.d.ts.map +1 -1
- package/dist/dts/user/user.d.ts +14 -43
- package/dist/dts/user/user.d.ts.map +1 -1
- package/dist/esm/auth/auth.js +19 -27
- package/dist/esm/auth/loginDTOMapper.js +49 -0
- package/dist/esm/connect/connect.events.js +5 -2
- package/dist/esm/connect/connect.js +6 -2
- package/dist/esm/connect/message.js +9 -0
- package/dist/esm/connect/socket.js +30 -22
- package/dist/esm/connect/socket.status.js +8 -4
- package/dist/esm/networkMonitor/config.js +2 -0
- package/dist/esm/networkMonitor/service.js +109 -29
- package/dist/esm/storage/kv/kv.service.js +26 -8
- package/dist/esm/user/user.js +11 -54
- package/dist/foundation-comms.api.json +559 -603
- package/dist/foundation-comms.d.ts +148 -55
- package/docs/api/foundation-comms.connecteventsemitter.md +1 -1
- package/docs/api/foundation-comms.connecteventsemitter.onstreamcompleteevent.md +2 -1
- package/docs/api/foundation-comms.currentuser.md +8 -25
- package/docs/api/foundation-comms.defaultauth._constructor_.md +2 -1
- package/docs/api/foundation-comms.defaultauth.md +2 -2
- package/docs/api/foundation-comms.defaultconnect.setvalidsession.md +5 -0
- package/docs/api/foundation-comms.defaultconnectevents.md +1 -1
- package/docs/api/foundation-comms.defaultconnectevents.onstreamcompleteevent.md +2 -1
- package/docs/api/foundation-comms.defaultmessagebuilder.createheartbeatpingmessage.md +22 -0
- package/docs/api/foundation-comms.defaultmessagebuilder.md +1 -0
- package/docs/api/foundation-comms.defaultnetworkmonitor._constructor_.md +13 -0
- package/docs/api/foundation-comms.defaultnetworkmonitor.md +6 -0
- package/docs/api/foundation-comms.defaultsocket._constructor_.md +3 -1
- package/docs/api/foundation-comms.defaultsocket.md +2 -1
- package/docs/api/foundation-comms.defaultsocket.user.md +13 -0
- package/docs/api/foundation-comms.defaultsocketstatus.hasvalidsession.md +1 -1
- package/docs/api/foundation-comms.defaultsocketstatus.md +2 -1
- package/docs/api/foundation-comms.defaultsocketstatus.user.md +11 -0
- package/docs/api/foundation-comms.getkvstorage.md +30 -0
- package/docs/api/foundation-comms.md +4 -0
- package/docs/api/foundation-comms.messagebuilder.createheartbeatpingmessage.md +22 -0
- package/docs/api/foundation-comms.messagebuilder.md +1 -0
- package/docs/api/foundation-comms.networkmonitorconfig.ignoredgenesisresources.md +13 -0
- package/docs/api/foundation-comms.networkmonitorconfig.loglevel.md +13 -0
- package/docs/api/foundation-comms.networkmonitorconfig.md +3 -0
- package/docs/api/foundation-comms.networkmonitorconfig.startdelay.md +13 -0
- package/docs/api/foundation-comms.pingmessage.md +17 -0
- package/docs/api/foundation-comms.pongmessage.md +20 -0
- package/docs/api/foundation-comms.serializedsocketstatus.hasvalidsession.md +5 -0
- package/docs/api/foundation-comms.socketconnectoptions.md +4 -1
- package/docs/api/foundation-comms.streamcompleteevent.md +2 -2
- package/docs/api/foundation-comms.streamcompleteeventdetail.md +14 -0
- package/docs/api/foundation-comms.user.md +7 -12
- package/docs/api-report.md +71 -54
- package/package.json +13 -11
- package/docs/api/foundation-comms.currentuser._constructor_.md +0 -20
- package/docs/api/foundation-comms.currentuser.hasadminprofile.md +0 -15
- package/docs/api/foundation-comms.currentuser.haspermission.md +0 -22
- package/docs/api/foundation-comms.currentuser.hasprofile.md +0 -22
- package/docs/api/foundation-comms.currentuser.permissions.md +0 -11
- package/docs/api/foundation-comms.currentuser.profiles.md +0 -11
- package/docs/api/foundation-comms.currentuser.set.md +0 -22
- package/docs/api/foundation-comms.currentuser.unset.md +0 -15
- package/docs/api/foundation-comms.currentuser.username.md +0 -11
- package/docs/api/foundation-comms.user.hasadminprofile.md +0 -15
- package/docs/api/foundation-comms.user.haspermission.md +0 -22
- package/docs/api/foundation-comms.user.hasprofile.md +0 -22
- package/docs/api/foundation-comms.user.set.md +0 -22
- package/docs/api/foundation-comms.user.unset.md +0 -15
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.177.0",
|
5
5
|
"sideEffects": false,
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
7
7
|
"main": "dist/esm/index.js",
|
@@ -66,25 +66,27 @@
|
|
66
66
|
"test:debug": "genx test --debug"
|
67
67
|
},
|
68
68
|
"devDependencies": {
|
69
|
-
"@genesislcap/foundation-testing": "14.
|
70
|
-
"@genesislcap/genx": "14.
|
71
|
-
"@genesislcap/rollup-builder": "14.
|
72
|
-
"@genesislcap/ts-builder": "14.
|
73
|
-
"@genesislcap/uvu-playwright-builder": "14.
|
74
|
-
"@genesislcap/vite-builder": "14.
|
75
|
-
"@genesislcap/webpack-builder": "14.
|
69
|
+
"@genesislcap/foundation-testing": "14.177.0",
|
70
|
+
"@genesislcap/genx": "14.177.0",
|
71
|
+
"@genesislcap/rollup-builder": "14.177.0",
|
72
|
+
"@genesislcap/ts-builder": "14.177.0",
|
73
|
+
"@genesislcap/uvu-playwright-builder": "14.177.0",
|
74
|
+
"@genesislcap/vite-builder": "14.177.0",
|
75
|
+
"@genesislcap/webpack-builder": "14.177.0",
|
76
76
|
"@types/js-cookie": "^3.0.2",
|
77
77
|
"@types/json-schema": "^7.0.11",
|
78
78
|
"@types/webappsec-credential-management": "^0.6.2",
|
79
79
|
"rimraf": "^3.0.2"
|
80
80
|
},
|
81
81
|
"dependencies": {
|
82
|
-
"@genesislcap/foundation-logger": "14.
|
83
|
-
"@genesislcap/foundation-
|
82
|
+
"@genesislcap/foundation-logger": "14.177.0",
|
83
|
+
"@genesislcap/foundation-user": "14.177.0",
|
84
|
+
"@genesislcap/foundation-utils": "14.177.0",
|
84
85
|
"@microsoft/fast-element": "^1.12.0",
|
85
86
|
"@microsoft/fast-foundation": "^2.49.4",
|
86
87
|
"analytics": "^0.8.0",
|
87
88
|
"bowser": "^2.11.0",
|
89
|
+
"fast-safe-stringify": "^2.1.1",
|
88
90
|
"http-status-codes": "^2.2.0",
|
89
91
|
"js-cookie": "^3.0.1",
|
90
92
|
"json-schema": "^0.4.0",
|
@@ -99,5 +101,5 @@
|
|
99
101
|
"publishConfig": {
|
100
102
|
"access": "public"
|
101
103
|
},
|
102
|
-
"gitHead": "
|
104
|
+
"gitHead": "b3c0ce3e0fa58bae562c2c9bec96beee6a4a2ed4"
|
103
105
|
}
|
@@ -1,20 +0,0 @@
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
-
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [CurrentUser](./foundation-comms.currentuser.md) > [(constructor)](./foundation-comms.currentuser._constructor_.md)
|
4
|
-
|
5
|
-
## CurrentUser.(constructor)
|
6
|
-
|
7
|
-
Constructs a new instance of the `CurrentUser` class
|
8
|
-
|
9
|
-
**Signature:**
|
10
|
-
|
11
|
-
```typescript
|
12
|
-
constructor(options: UserOptions);
|
13
|
-
```
|
14
|
-
|
15
|
-
## Parameters
|
16
|
-
|
17
|
-
| Parameter | Type | Description |
|
18
|
-
| --- | --- | --- |
|
19
|
-
| options | UserOptions | |
|
20
|
-
|
@@ -1,15 +0,0 @@
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
-
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [CurrentUser](./foundation-comms.currentuser.md) > [hasAdminProfile](./foundation-comms.currentuser.hasadminprofile.md)
|
4
|
-
|
5
|
-
## CurrentUser.hasAdminProfile() method
|
6
|
-
|
7
|
-
**Signature:**
|
8
|
-
|
9
|
-
```typescript
|
10
|
-
hasAdminProfile(): boolean;
|
11
|
-
```
|
12
|
-
**Returns:**
|
13
|
-
|
14
|
-
boolean
|
15
|
-
|
@@ -1,22 +0,0 @@
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
-
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [CurrentUser](./foundation-comms.currentuser.md) > [hasPermission](./foundation-comms.currentuser.haspermission.md)
|
4
|
-
|
5
|
-
## CurrentUser.hasPermission() method
|
6
|
-
|
7
|
-
**Signature:**
|
8
|
-
|
9
|
-
```typescript
|
10
|
-
hasPermission(permission: string | string[]): boolean;
|
11
|
-
```
|
12
|
-
|
13
|
-
## Parameters
|
14
|
-
|
15
|
-
| Parameter | Type | Description |
|
16
|
-
| --- | --- | --- |
|
17
|
-
| permission | string \| string\[\] | |
|
18
|
-
|
19
|
-
**Returns:**
|
20
|
-
|
21
|
-
boolean
|
22
|
-
|
@@ -1,22 +0,0 @@
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
-
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [CurrentUser](./foundation-comms.currentuser.md) > [hasProfile](./foundation-comms.currentuser.hasprofile.md)
|
4
|
-
|
5
|
-
## CurrentUser.hasProfile() method
|
6
|
-
|
7
|
-
**Signature:**
|
8
|
-
|
9
|
-
```typescript
|
10
|
-
hasProfile(profile: string | string[]): boolean;
|
11
|
-
```
|
12
|
-
|
13
|
-
## Parameters
|
14
|
-
|
15
|
-
| Parameter | Type | Description |
|
16
|
-
| --- | --- | --- |
|
17
|
-
| profile | string \| string\[\] | |
|
18
|
-
|
19
|
-
**Returns:**
|
20
|
-
|
21
|
-
boolean
|
22
|
-
|
@@ -1,11 +0,0 @@
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
-
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [CurrentUser](./foundation-comms.currentuser.md) > [permissions](./foundation-comms.currentuser.permissions.md)
|
4
|
-
|
5
|
-
## CurrentUser.permissions property
|
6
|
-
|
7
|
-
**Signature:**
|
8
|
-
|
9
|
-
```typescript
|
10
|
-
permissions: UserPermission[];
|
11
|
-
```
|
@@ -1,11 +0,0 @@
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
-
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [CurrentUser](./foundation-comms.currentuser.md) > [profiles](./foundation-comms.currentuser.profiles.md)
|
4
|
-
|
5
|
-
## CurrentUser.profiles property
|
6
|
-
|
7
|
-
**Signature:**
|
8
|
-
|
9
|
-
```typescript
|
10
|
-
profiles: UserProfile[];
|
11
|
-
```
|
@@ -1,22 +0,0 @@
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
-
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [CurrentUser](./foundation-comms.currentuser.md) > [set](./foundation-comms.currentuser.set.md)
|
4
|
-
|
5
|
-
## CurrentUser.set() method
|
6
|
-
|
7
|
-
**Signature:**
|
8
|
-
|
9
|
-
```typescript
|
10
|
-
set(options: UserOptions): void;
|
11
|
-
```
|
12
|
-
|
13
|
-
## Parameters
|
14
|
-
|
15
|
-
| Parameter | Type | Description |
|
16
|
-
| --- | --- | --- |
|
17
|
-
| options | UserOptions | |
|
18
|
-
|
19
|
-
**Returns:**
|
20
|
-
|
21
|
-
void
|
22
|
-
|
@@ -1,15 +0,0 @@
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
-
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [CurrentUser](./foundation-comms.currentuser.md) > [unset](./foundation-comms.currentuser.unset.md)
|
4
|
-
|
5
|
-
## CurrentUser.unset() method
|
6
|
-
|
7
|
-
**Signature:**
|
8
|
-
|
9
|
-
```typescript
|
10
|
-
unset(): void;
|
11
|
-
```
|
12
|
-
**Returns:**
|
13
|
-
|
14
|
-
void
|
15
|
-
|
@@ -1,11 +0,0 @@
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
-
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [CurrentUser](./foundation-comms.currentuser.md) > [username](./foundation-comms.currentuser.username.md)
|
4
|
-
|
5
|
-
## CurrentUser.username property
|
6
|
-
|
7
|
-
**Signature:**
|
8
|
-
|
9
|
-
```typescript
|
10
|
-
username: string;
|
11
|
-
```
|
@@ -1,15 +0,0 @@
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
-
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [User](./foundation-comms.user.md) > [hasAdminProfile](./foundation-comms.user.hasadminprofile.md)
|
4
|
-
|
5
|
-
## User.hasAdminProfile() method
|
6
|
-
|
7
|
-
**Signature:**
|
8
|
-
|
9
|
-
```typescript
|
10
|
-
hasAdminProfile(): boolean;
|
11
|
-
```
|
12
|
-
**Returns:**
|
13
|
-
|
14
|
-
boolean
|
15
|
-
|
@@ -1,22 +0,0 @@
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
-
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [User](./foundation-comms.user.md) > [hasPermission](./foundation-comms.user.haspermission.md)
|
4
|
-
|
5
|
-
## User.hasPermission() method
|
6
|
-
|
7
|
-
**Signature:**
|
8
|
-
|
9
|
-
```typescript
|
10
|
-
hasPermission(permission: UserPermission | UserPermission[]): boolean;
|
11
|
-
```
|
12
|
-
|
13
|
-
## Parameters
|
14
|
-
|
15
|
-
| Parameter | Type | Description |
|
16
|
-
| --- | --- | --- |
|
17
|
-
| permission | UserPermission \| UserPermission\[\] | |
|
18
|
-
|
19
|
-
**Returns:**
|
20
|
-
|
21
|
-
boolean
|
22
|
-
|
@@ -1,22 +0,0 @@
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
-
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [User](./foundation-comms.user.md) > [hasProfile](./foundation-comms.user.hasprofile.md)
|
4
|
-
|
5
|
-
## User.hasProfile() method
|
6
|
-
|
7
|
-
**Signature:**
|
8
|
-
|
9
|
-
```typescript
|
10
|
-
hasProfile(profile: UserProfile | UserProfile[]): boolean;
|
11
|
-
```
|
12
|
-
|
13
|
-
## Parameters
|
14
|
-
|
15
|
-
| Parameter | Type | Description |
|
16
|
-
| --- | --- | --- |
|
17
|
-
| profile | UserProfile \| UserProfile\[\] | |
|
18
|
-
|
19
|
-
**Returns:**
|
20
|
-
|
21
|
-
boolean
|
22
|
-
|
@@ -1,22 +0,0 @@
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
-
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [User](./foundation-comms.user.md) > [set](./foundation-comms.user.set.md)
|
4
|
-
|
5
|
-
## User.set() method
|
6
|
-
|
7
|
-
**Signature:**
|
8
|
-
|
9
|
-
```typescript
|
10
|
-
set(options: UserOptions): void;
|
11
|
-
```
|
12
|
-
|
13
|
-
## Parameters
|
14
|
-
|
15
|
-
| Parameter | Type | Description |
|
16
|
-
| --- | --- | --- |
|
17
|
-
| options | UserOptions | |
|
18
|
-
|
19
|
-
**Returns:**
|
20
|
-
|
21
|
-
void
|
22
|
-
|
@@ -1,15 +0,0 @@
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
-
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [User](./foundation-comms.user.md) > [unset](./foundation-comms.user.unset.md)
|
4
|
-
|
5
|
-
## User.unset() method
|
6
|
-
|
7
|
-
**Signature:**
|
8
|
-
|
9
|
-
```typescript
|
10
|
-
unset(): void;
|
11
|
-
```
|
12
|
-
**Returns:**
|
13
|
-
|
14
|
-
void
|
15
|
-
|