@genesislcap/foundation-user 14.408.0 → 14.409.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.
- package/README.md +6 -44
- package/package.json +12 -12
- package/docs/api/foundation-user.defaultuser.actionhistory.md +0 -13
- package/docs/api/foundation-user.defaultuser.addauthenticationchangelistener.md +0 -52
- package/docs/api/foundation-user.defaultuser.clearactions.md +0 -17
- package/docs/api/foundation-user.defaultuser.clearpaths.md +0 -17
- package/docs/api/foundation-user.defaultuser.cleartrackinghistory.md +0 -16
- package/docs/api/foundation-user.defaultuser.details.md +0 -12
- package/docs/api/foundation-user.defaultuser.hasadminprofile.md +0 -15
- package/docs/api/foundation-user.defaultuser.haspermission.md +0 -52
- package/docs/api/foundation-user.defaultuser.hasprofile.md +0 -52
- package/docs/api/foundation-user.defaultuser.isadmin.md +0 -16
- package/docs/api/foundation-user.defaultuser.isanonymous.md +0 -12
- package/docs/api/foundation-user.defaultuser.isauthenticated.md +0 -12
- package/docs/api/foundation-user.defaultuser.isbanned.md +0 -16
- package/docs/api/foundation-user.defaultuser.lastaction.md +0 -17
- package/docs/api/foundation-user.defaultuser.lastpath.md +0 -19
- package/docs/api/foundation-user.defaultuser.md +0 -514
- package/docs/api/foundation-user.defaultuser.pathhistory.md +0 -13
- package/docs/api/foundation-user.defaultuser.permission.md +0 -12
- package/docs/api/foundation-user.defaultuser.permissions.md +0 -11
- package/docs/api/foundation-user.defaultuser.profile.md +0 -12
- package/docs/api/foundation-user.defaultuser.profiles.md +0 -11
- package/docs/api/foundation-user.defaultuser.rawproperties.md +0 -18
- package/docs/api/foundation-user.defaultuser.set.md +0 -52
- package/docs/api/foundation-user.defaultuser.sourceref.md +0 -12
- package/docs/api/foundation-user.defaultuser.trackaction.md +0 -52
- package/docs/api/foundation-user.defaultuser.trackpath.md +0 -17
- package/docs/api/foundation-user.defaultuser.unset.md +0 -16
- package/docs/api/foundation-user.defaultuser.userkvs.md +0 -14
- package/docs/api/foundation-user.defaultuser.username.md +0 -12
- package/docs/api/foundation-user.defaultuserconfig.md +0 -13
- package/docs/api/foundation-user.getuser.md +0 -30
- package/docs/api/foundation-user.getuserchannel.md +0 -39
- package/docs/api/foundation-user.legacyuserapi.hasadminprofile.md +0 -20
- package/docs/api/foundation-user.legacyuserapi.md +0 -122
- package/docs/api/foundation-user.legacyuserapi.permissions.md +0 -16
- package/docs/api/foundation-user.legacyuserapi.profiles.md +0 -16
- package/docs/api/foundation-user.legacyuserapi.username.md +0 -16
- package/docs/api/foundation-user.logger.md +0 -12
- package/docs/api/foundation-user.md +0 -304
- package/docs/api/foundation-user.setuserproperties.details.md +0 -11
- package/docs/api/foundation-user.setuserproperties.md +0 -154
- package/docs/api/foundation-user.setuserproperties.permission.md +0 -11
- package/docs/api/foundation-user.setuserproperties.profile.md +0 -11
- package/docs/api/foundation-user.setuserproperties.sourceref.md +0 -11
- package/docs/api/foundation-user.setuserproperties.userkvs.md +0 -11
- package/docs/api/foundation-user.setuserproperties.username.md +0 -11
- package/docs/api/foundation-user.user.addauthenticationchangelistener.md +0 -61
- package/docs/api/foundation-user.user.cleartrackinghistory.md +0 -15
- package/docs/api/foundation-user.user.details.md +0 -11
- package/docs/api/foundation-user.user.haspermission.md +0 -52
- package/docs/api/foundation-user.user.hasprofile.md +0 -52
- package/docs/api/foundation-user.user.isadmin.md +0 -15
- package/docs/api/foundation-user.user.isanonymous.md +0 -11
- package/docs/api/foundation-user.user.isauthenticated.md +0 -11
- package/docs/api/foundation-user.user.isbanned.md +0 -15
- package/docs/api/foundation-user.user.md +0 -313
- package/docs/api/foundation-user.user.permission.md +0 -11
- package/docs/api/foundation-user.user.profile.md +0 -11
- package/docs/api/foundation-user.user.rawproperties.md +0 -18
- package/docs/api/foundation-user.user.set.md +0 -52
- package/docs/api/foundation-user.user.sourceref.md +0 -11
- package/docs/api/foundation-user.user.unset.md +0 -15
- package/docs/api/foundation-user.user.userkvs.md +0 -13
- package/docs/api/foundation-user.user.username.md +0 -11
- package/docs/api/foundation-user.useractionhistory.actionhistory.md +0 -13
- package/docs/api/foundation-user.useractionhistory.clearactions.md +0 -17
- package/docs/api/foundation-user.useractionhistory.lastaction.md +0 -17
- package/docs/api/foundation-user.useractionhistory.md +0 -110
- package/docs/api/foundation-user.useractionhistory.trackaction.md +0 -52
- package/docs/api/foundation-user.userauthenticationchangeevent.md +0 -18
- package/docs/api/foundation-user.userauthenticationchangetype.md +0 -13
- package/docs/api/foundation-user.userchannel.md +0 -33
- package/docs/api/foundation-user.userchannelevents.md +0 -17
- package/docs/api/foundation-user.userchannelid.md +0 -13
- package/docs/api/foundation-user.userconfig.md +0 -118
- package/docs/api/foundation-user.userconfig.setuser.md +0 -70
- package/docs/api/foundation-user.userconfig.trackactionexclusions.md +0 -15
- package/docs/api/foundation-user.userconfig.trackpathexclusions.md +0 -15
- package/docs/api/foundation-user.userconfig.unsetuser.md +0 -52
- package/docs/api/foundation-user.userdetailsproductproperty.md +0 -76
- package/docs/api/foundation-user.userdetailsproductproperty.name.md +0 -11
- package/docs/api/foundation-user.userdetailsproductproperty.version.md +0 -11
- package/docs/api/foundation-user.userdetailsproperty.daystopasswordexpiry.md +0 -11
- package/docs/api/foundation-user.userdetailsproperty.failedloginattempts.md +0 -11
- package/docs/api/foundation-user.userdetailsproperty.heartbeatintervalsecs.md +0 -11
- package/docs/api/foundation-user.userdetailsproperty.lastlogindatetime.md +0 -11
- package/docs/api/foundation-user.userdetailsproperty.md +0 -171
- package/docs/api/foundation-user.userdetailsproperty.product.md +0 -11
- package/docs/api/foundation-user.userdetailsproperty.rejectedloginattempts.md +0 -11
- package/docs/api/foundation-user.userdetailsproperty.system.md +0 -11
- package/docs/api/foundation-user.userdetailssystemproperty.date.md +0 -11
- package/docs/api/foundation-user.userdetailssystemproperty.md +0 -57
- package/docs/api/foundation-user.userkvsproperty.md +0 -12
- package/docs/api/foundation-user.userpathhistory.clearpaths.md +0 -17
- package/docs/api/foundation-user.userpathhistory.lastpath.md +0 -19
- package/docs/api/foundation-user.userpathhistory.md +0 -112
- package/docs/api/foundation-user.userpathhistory.pathhistory.md +0 -13
- package/docs/api/foundation-user.userpathhistory.trackpath.md +0 -17
- package/docs/api/foundation-user.userqueueproperties.md +0 -114
- package/docs/api/foundation-user.userqueueproperties.updatequeue.md +0 -11
- package/docs/api/foundation-user.userqueueproperties.zeromqproxyinboundport.md +0 -11
- package/docs/api/foundation-user.userqueueproperties.zeromqproxymodeenabled.md +0 -11
- package/docs/api/foundation-user.userqueueproperties.zeromqproxyoutboundport.md +0 -11
- package/docs/api/index.md +0 -30
- package/docs/api-report.md.api.md +0 -316
package/README.md
CHANGED
|
@@ -1,63 +1,25 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @genesislcap/foundation-user
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
[](https://www.typescriptlang.org/)
|
|
3
|
+
Documentation for this package is published on the Genesis docs site:
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
anonymous or authenticated mode.
|
|
8
|
-
|
|
9
|
-
### Get User reference
|
|
10
|
-
User is a singleton. You can access it via the DI container.
|
|
11
|
-
```ts
|
|
12
|
-
import { User } from '@genesislcap/foundation-user';
|
|
13
|
-
...
|
|
14
|
-
@User private user: User
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
...or via a utility if your app is not using decorators or the DI container.
|
|
18
|
-
```ts
|
|
19
|
-
import { getUser } from '@genesislcap/foundation-user';
|
|
20
|
-
...
|
|
21
|
-
private user = getUser();
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
User properties are decorated with `@observable`, meaning in FAST terms it's reactive, and you can bind to properties
|
|
25
|
-
directly. For example, `this.user.isAuthenticated`. However, you can also monitor the user's authentication status using
|
|
26
|
-
an event listener.
|
|
27
|
-
|
|
28
|
-
```ts
|
|
29
|
-
import type { UserAuthenticationChangeEvent } from '@genesislcap/foundation-user';
|
|
30
|
-
...
|
|
31
|
-
const unsubscribeUser = this.user.addAuthenticationChangeListener((event: UserAuthenticationChangeEvent) => {
|
|
32
|
-
console.log('User authenticated?', event.detail); // < boolean === this.user.isAuthenticated
|
|
33
|
-
});
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
See the [User API Docs](./docs/api/foundation-user.user.md) for more information.
|
|
5
|
+
**Docs: [Login](https://docs.genesis.global/docs/develop/client-capabilities/login/)**
|
|
37
6
|
|
|
38
7
|
## Installation
|
|
39
8
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
1. Add `@genesislcap/foundation-user` as a dependency in your `package.json` file. Whenever you change the dependencies of your project, ensure you run the `$ npm run bootstrap` command again. You can find more information in the [package.json basics](https://learn.genesis.global/secure/web/basics/package-json-basics/) page.
|
|
9
|
+
Add the package to your `package.json` dependencies. After changing dependencies, run `npm run bootstrap` (or your project's equivalent). See [package.json basics](https://learn.genesis.global/secure/web/basics/package-json-basics/) for more information.
|
|
43
10
|
|
|
44
11
|
```json
|
|
45
12
|
{
|
|
46
|
-
...
|
|
47
13
|
"dependencies": {
|
|
48
|
-
...
|
|
49
14
|
"@genesislcap/foundation-user": "latest"
|
|
50
|
-
|
|
51
|
-
},
|
|
52
|
-
...
|
|
15
|
+
}
|
|
53
16
|
}
|
|
54
17
|
```
|
|
55
18
|
|
|
56
|
-
## [API Docs](./docs/api/index.md)
|
|
57
|
-
|
|
58
19
|
## License
|
|
59
20
|
|
|
60
21
|
Note: this project provides front-end dependencies and uses licensed components listed in the next section; thus, licenses for those components are required during development. Contact [Genesis Global](https://genesis.global/contact-us/) for more details.
|
|
61
22
|
|
|
62
23
|
### Licensed components
|
|
24
|
+
|
|
63
25
|
Genesis low-code platform
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-user",
|
|
3
3
|
"description": "Genesis User",
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.409.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -37,18 +37,18 @@
|
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@genesislcap/foundation-testing": "14.
|
|
41
|
-
"@genesislcap/genx": "14.
|
|
42
|
-
"@genesislcap/rollup-builder": "14.
|
|
43
|
-
"@genesislcap/ts-builder": "14.
|
|
44
|
-
"@genesislcap/uvu-playwright-builder": "14.
|
|
45
|
-
"@genesislcap/vite-builder": "14.
|
|
46
|
-
"@genesislcap/webpack-builder": "14.
|
|
40
|
+
"@genesislcap/foundation-testing": "14.409.0",
|
|
41
|
+
"@genesislcap/genx": "14.409.0",
|
|
42
|
+
"@genesislcap/rollup-builder": "14.409.0",
|
|
43
|
+
"@genesislcap/ts-builder": "14.409.0",
|
|
44
|
+
"@genesislcap/uvu-playwright-builder": "14.409.0",
|
|
45
|
+
"@genesislcap/vite-builder": "14.409.0",
|
|
46
|
+
"@genesislcap/webpack-builder": "14.409.0"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@genesislcap/foundation-broadcast-channel": "14.
|
|
50
|
-
"@genesislcap/foundation-logger": "14.
|
|
51
|
-
"@genesislcap/foundation-utils": "14.
|
|
49
|
+
"@genesislcap/foundation-broadcast-channel": "14.409.0",
|
|
50
|
+
"@genesislcap/foundation-logger": "14.409.0",
|
|
51
|
+
"@genesislcap/foundation-utils": "14.409.0",
|
|
52
52
|
"@microsoft/fast-element": "1.14.0",
|
|
53
53
|
"@microsoft/fast-foundation": "2.50.0"
|
|
54
54
|
},
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"publishConfig": {
|
|
61
61
|
"access": "public"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "cbe0459d170f27c35a7de18cec415947aedf4da5"
|
|
64
64
|
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-user](./foundation-user.md) > [DefaultUser](./foundation-user.defaultuser.md) > [actionHistory](./foundation-user.defaultuser.actionhistory.md)
|
|
4
|
-
|
|
5
|
-
## DefaultUser.actionHistory property
|
|
6
|
-
|
|
7
|
-
Array of actions that have been tracked.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
actionHistory: unknown[];
|
|
13
|
-
```
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-user](./foundation-user.md) > [DefaultUser](./foundation-user.defaultuser.md) > [addAuthenticationChangeListener](./foundation-user.defaultuser.addauthenticationchangelistener.md)
|
|
4
|
-
|
|
5
|
-
## DefaultUser.addAuthenticationChangeListener() method
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
addAuthenticationChangeListener(listener: Listener<UserAuthenticationChangeEvent>): () => 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
|
-
listener
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
</td><td>
|
|
37
|
-
|
|
38
|
-
Listener<[UserAuthenticationChangeEvent](./foundation-user.userauthenticationchangeevent.md)<!-- -->>
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
</td><td>
|
|
42
|
-
|
|
43
|
-
A listener function.
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
</td></tr>
|
|
47
|
-
</tbody></table>
|
|
48
|
-
|
|
49
|
-
**Returns:**
|
|
50
|
-
|
|
51
|
-
() => void
|
|
52
|
-
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-user](./foundation-user.md) > [DefaultUser](./foundation-user.defaultuser.md) > [clearActions](./foundation-user.defaultuser.clearactions.md)
|
|
4
|
-
|
|
5
|
-
## DefaultUser.clearActions() method
|
|
6
|
-
|
|
7
|
-
Clears action history.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
clearActions(): void;
|
|
13
|
-
```
|
|
14
|
-
**Returns:**
|
|
15
|
-
|
|
16
|
-
void
|
|
17
|
-
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-user](./foundation-user.md) > [DefaultUser](./foundation-user.defaultuser.md) > [clearPaths](./foundation-user.defaultuser.clearpaths.md)
|
|
4
|
-
|
|
5
|
-
## DefaultUser.clearPaths() method
|
|
6
|
-
|
|
7
|
-
Clears path history.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
clearPaths(): void;
|
|
13
|
-
```
|
|
14
|
-
**Returns:**
|
|
15
|
-
|
|
16
|
-
void
|
|
17
|
-
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-user](./foundation-user.md) > [DefaultUser](./foundation-user.defaultuser.md) > [clearTrackingHistory](./foundation-user.defaultuser.cleartrackinghistory.md)
|
|
4
|
-
|
|
5
|
-
## DefaultUser.clearTrackingHistory() method
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
**Signature:**
|
|
9
|
-
|
|
10
|
-
```typescript
|
|
11
|
-
clearTrackingHistory(): void;
|
|
12
|
-
```
|
|
13
|
-
**Returns:**
|
|
14
|
-
|
|
15
|
-
void
|
|
16
|
-
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-user](./foundation-user.md) > [DefaultUser](./foundation-user.defaultuser.md) > [details](./foundation-user.defaultuser.details.md)
|
|
4
|
-
|
|
5
|
-
## DefaultUser.details property
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
**Signature:**
|
|
9
|
-
|
|
10
|
-
```typescript
|
|
11
|
-
details: SetUserProperties['details'];
|
|
12
|
-
```
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-user](./foundation-user.md) > [DefaultUser](./foundation-user.defaultuser.md) > [hasAdminProfile](./foundation-user.defaultuser.hasadminprofile.md)
|
|
4
|
-
|
|
5
|
-
## DefaultUser.hasAdminProfile() method
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
hasAdminProfile(): boolean;
|
|
11
|
-
```
|
|
12
|
-
**Returns:**
|
|
13
|
-
|
|
14
|
-
boolean
|
|
15
|
-
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-user](./foundation-user.md) > [DefaultUser](./foundation-user.defaultuser.md) > [hasPermission](./foundation-user.defaultuser.haspermission.md)
|
|
4
|
-
|
|
5
|
-
## DefaultUser.hasPermission() method
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
hasPermission(permission: string | string[]): boolean;
|
|
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
|
-
permission
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
</td><td>
|
|
37
|
-
|
|
38
|
-
string \| string\[\]
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
</td><td>
|
|
42
|
-
|
|
43
|
-
A permission string or an array of permission strings to check.
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
</td></tr>
|
|
47
|
-
</tbody></table>
|
|
48
|
-
|
|
49
|
-
**Returns:**
|
|
50
|
-
|
|
51
|
-
boolean
|
|
52
|
-
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-user](./foundation-user.md) > [DefaultUser](./foundation-user.defaultuser.md) > [hasProfile](./foundation-user.defaultuser.hasprofile.md)
|
|
4
|
-
|
|
5
|
-
## DefaultUser.hasProfile() method
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
hasProfile(profile: string | string[]): boolean;
|
|
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
|
-
profile
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
</td><td>
|
|
37
|
-
|
|
38
|
-
string \| string\[\]
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
</td><td>
|
|
42
|
-
|
|
43
|
-
A profile string or an array of profile strings to check.
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
</td></tr>
|
|
47
|
-
</tbody></table>
|
|
48
|
-
|
|
49
|
-
**Returns:**
|
|
50
|
-
|
|
51
|
-
boolean
|
|
52
|
-
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-user](./foundation-user.md) > [DefaultUser](./foundation-user.defaultuser.md) > [isAdmin](./foundation-user.defaultuser.isadmin.md)
|
|
4
|
-
|
|
5
|
-
## DefaultUser.isAdmin() method
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
**Signature:**
|
|
9
|
-
|
|
10
|
-
```typescript
|
|
11
|
-
isAdmin(): boolean;
|
|
12
|
-
```
|
|
13
|
-
**Returns:**
|
|
14
|
-
|
|
15
|
-
boolean
|
|
16
|
-
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-user](./foundation-user.md) > [DefaultUser](./foundation-user.defaultuser.md) > [isAnonymous](./foundation-user.defaultuser.isanonymous.md)
|
|
4
|
-
|
|
5
|
-
## DefaultUser.isAnonymous property
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
**Signature:**
|
|
9
|
-
|
|
10
|
-
```typescript
|
|
11
|
-
get isAnonymous(): boolean;
|
|
12
|
-
```
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-user](./foundation-user.md) > [DefaultUser](./foundation-user.defaultuser.md) > [isAuthenticated](./foundation-user.defaultuser.isauthenticated.md)
|
|
4
|
-
|
|
5
|
-
## DefaultUser.isAuthenticated property
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
**Signature:**
|
|
9
|
-
|
|
10
|
-
```typescript
|
|
11
|
-
isAuthenticated: boolean;
|
|
12
|
-
```
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-user](./foundation-user.md) > [DefaultUser](./foundation-user.defaultuser.md) > [isBanned](./foundation-user.defaultuser.isbanned.md)
|
|
4
|
-
|
|
5
|
-
## DefaultUser.isBanned() method
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
**Signature:**
|
|
9
|
-
|
|
10
|
-
```typescript
|
|
11
|
-
isBanned(): boolean;
|
|
12
|
-
```
|
|
13
|
-
**Returns:**
|
|
14
|
-
|
|
15
|
-
boolean
|
|
16
|
-
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-user](./foundation-user.md) > [DefaultUser](./foundation-user.defaultuser.md) > [lastAction](./foundation-user.defaultuser.lastaction.md)
|
|
4
|
-
|
|
5
|
-
## DefaultUser.lastAction() method
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
lastAction(): unknown;
|
|
11
|
-
```
|
|
12
|
-
**Returns:**
|
|
13
|
-
|
|
14
|
-
unknown
|
|
15
|
-
|
|
16
|
-
The last stored action.
|
|
17
|
-
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-user](./foundation-user.md) > [DefaultUser](./foundation-user.defaultuser.md) > [lastPath](./foundation-user.defaultuser.lastpath.md)
|
|
4
|
-
|
|
5
|
-
## DefaultUser.lastPath() method
|
|
6
|
-
|
|
7
|
-
May be used to return to a target path after authentication.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
lastPath(): string;
|
|
13
|
-
```
|
|
14
|
-
**Returns:**
|
|
15
|
-
|
|
16
|
-
string
|
|
17
|
-
|
|
18
|
-
The last stored path.
|
|
19
|
-
|