@adonoustech/bacon-core 1.4.0 → 1.5.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/package.json +2 -2
- package/src/base/BaconBaseActor.ts +5 -1
- package/src/concrete/BaconAccessLoggerEvent.ts +5 -0
- package/src/concrete/index.ts +1 -0
- package/src/enums/bacon-actor-init-statuses.ts +4 -0
- package/src/enums/index.ts +1 -0
- package/src/interfaces/i-actor-init-status.ts +7 -0
- package/src/interfaces/i-actor-status.ts +1 -1
- package/src/interfaces/index.ts +2 -1
- package/src/static/BaconAccessLoggerEvtFactory.ts +12 -0
- package/src/static/index.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adonoustech/bacon-core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
6
6
|
"build:es": "tsc -p tsconfig.es.json",
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"bugs": {
|
|
37
37
|
"url": "https://github.com/AdonousTech/bacon-core/issues"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "379c8f89a2747e4185e9614146609d7edc192247"
|
|
40
40
|
}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
+
import { IBaconActorStatus } from "..";
|
|
2
|
+
import { BaconActorStatuses } from "../enums";
|
|
1
3
|
import { IOIDCProfile } from "../interfaces/i-oidc-profile";
|
|
2
4
|
|
|
3
|
-
export abstract class BaconBaseActor implements IOIDCProfile {
|
|
5
|
+
export abstract class BaconBaseActor implements IOIDCProfile, IBaconActorStatus {
|
|
4
6
|
|
|
5
7
|
sub: string;
|
|
6
8
|
name: string;
|
|
7
9
|
email: string;
|
|
8
10
|
phone_number: string;
|
|
11
|
+
|
|
12
|
+
actorStatus: BaconActorStatuses;
|
|
9
13
|
|
|
10
14
|
constructor(profile: IOIDCProfile) {
|
|
11
15
|
|
package/src/concrete/index.ts
CHANGED
package/src/enums/index.ts
CHANGED
package/src/interfaces/index.ts
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaconBaseLoggerEvent } from "../base/BaconBaseLoggerEvt";
|
|
2
|
+
import { BaconBaseLoggerEventFactory } from "../base/BaconBaseLoggerEvtFact";
|
|
3
|
+
import { BaconAccessLoggerEvent } from "../concrete/BaconAccessLoggerEvent";
|
|
4
|
+
|
|
5
|
+
export class BaconAccessLoggerEventFactory extends BaconBaseLoggerEventFactory {
|
|
6
|
+
|
|
7
|
+
static createLoggerEvent(): BaconBaseLoggerEvent {
|
|
8
|
+
const loggerEvent: BaconBaseLoggerEvent = new BaconAccessLoggerEvent();
|
|
9
|
+
return loggerEvent;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
}
|