Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
ulixee
GitHub Repository: ulixee/secret-agent
Path: blob/main/plugin-utils/lib/HumanEmulator.ts
1028 views
1
import { IBoundLog } from '@secret-agent/interfaces/ILog';
2
import { PluginTypes } from '@secret-agent/interfaces/IPluginTypes';
3
import {
4
HumanEmulatorClassDecorator,
5
IHumanEmulator,
6
IHumanEmulatorClass,
7
} from '@secret-agent/interfaces/ICorePlugin';
8
import ICorePluginCreateOptions from '@secret-agent/interfaces/ICorePluginCreateOptions';
9
10
@HumanEmulatorClassDecorator
11
export default class HumanEmulator implements IHumanEmulator {
12
public static readonly id: string;
13
public static readonly type = PluginTypes.HumanEmulator;
14
15
public readonly id: string;
16
17
private readonly logger: IBoundLog;
18
19
constructor({ logger }: ICorePluginCreateOptions) {
20
this.id = (this.constructor as IHumanEmulatorClass).id;
21
this.logger = logger;
22
}
23
}
24
25