hoffmation-base 3.2.1-alpha.1 → 3.2.1-alpha.2
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.
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { CommandSource, CommandType } from '../enums';
|
|
2
2
|
import { iBaseCommand } from './iBaseCommand';
|
|
3
|
-
|
|
3
|
+
import { iJsonOmitKeys } from '../interfaces';
|
|
4
|
+
export declare abstract class BaseCommand implements iBaseCommand, iJsonOmitKeys {
|
|
4
5
|
readonly source: CommandSource | iBaseCommand;
|
|
5
6
|
readonly reason: string;
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
jsonOmitKeys: string[];
|
|
6
11
|
/**
|
|
7
12
|
* The timestamp of the command being created
|
|
8
13
|
*/
|
|
@@ -15,6 +15,10 @@ class BaseCommand {
|
|
|
15
15
|
constructor(source = enums_1.CommandSource.Unknown, reason = '') {
|
|
16
16
|
this.source = source;
|
|
17
17
|
this.reason = reason;
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
this.jsonOmitKeys = ['source'];
|
|
18
22
|
this.timestamp = new Date();
|
|
19
23
|
}
|
|
20
24
|
get isAutomaticAction() {
|