model has changed

This commit is contained in:
insanity 2018-06-12 14:12:29 +09:00
parent 8e6127273a
commit 8c94421672
84 changed files with 302 additions and 560 deletions

View File

@ -1,2 +1 @@
export * from './model';
export * from './type';

View File

@ -1,6 +1,6 @@
export interface PageParams {
pageNo: number;
countPerPage: number;
sortCol: string;
sortDirection: string;
pageNo?: number;
countPerPage?: number;
sortCol?: string;
sortDirection?: string;
}

View File

@ -1 +0,0 @@
export type CryptoType = "TLS";

View File

@ -1 +0,0 @@
export type PortType = 'TCP' | 'UDP' | 'TLS';

View File

@ -1,2 +0,0 @@
export * from './CryptoType';
export * from './PortType';

View File

@ -1,4 +0,0 @@
export interface Alert {
created: string;
msg: string;
}

View File

@ -1,5 +0,0 @@
import { Alert } from './Alert';
export interface AlertMetric extends Alert {
status: string;
}

View File

@ -1,5 +0,0 @@
import { Alert } from './Alert';
export interface AlertSystem extends Alert {
status?: string; // test
}

View File

@ -1,3 +0,0 @@
export * from './Alert';
export * from './AlertMetric';
export * from './AlertSystem';

View File

@ -1,10 +0,0 @@
import { Target } from '../target';
import { MetaCrawler } from '../meta';
export interface AuthCrawler {
id?: number;
metaCrawler?: MetaCrawler;
target?: Target;
authJson?: string;
createDate?: Date;
}

View File

@ -1 +0,0 @@
export * from './AuthCrawler';

View File

@ -2,15 +2,10 @@ import { Zone } from './Zone';
import { Port } from './Port';
export interface Host {
id?: number;
ipv4?: string;
ipv6?: string;
metaIPTypeKey?: string;
address?: string;
mac?: string;
os?: string;
discoveredDate?: Date;
zone?: Zone;
target?: boolean;
ports?: Map<number, Port> | null;
portList?: Port[] | null;
portList?: Port[];
}

View File

@ -1,15 +1,10 @@
import { Host } from './Host';
import { Service } from './Service';
import { PortType } from '../../core/type';
export interface Port {
id?: number;
portType?: PortType;
metaPortTypeKey?: string;
portNumber?: number;
discoveredDate?: Date;
host?: Host;
target?: boolean;
services?: Map<string, Service> | null;
serviceList?: Service[] | null;
serviceList?: Service[];
}

View File

@ -1,11 +1,8 @@
import { Port } from './Port';
import { CryptoType } from '../../core/type';
export interface Service {
id?: number;
cryptoType?: CryptoType;
serviceName?: string;
metaCryptoTypeKey?: string;
name?: string;
discoveredDate?: Date;
port?: Port;
target?: boolean;
}

View File

@ -1,13 +1,10 @@
import { Host } from './Host';
export interface Zone {
id?: number;
network?: string;
ipv4?: string;
ipv6?: string;
iface?: string;
metaIPTypeKey?: string;
address?: string;
mac?: string;
discoveredDate?: Date;
hosts: Map<string, Host> | null;
}

View File

@ -1,9 +1,14 @@
import { Member } from '../member';
import { MetaHistoryType } from '../meta';
import { Probe } from '../probe';
import { Domain } from '../domain';
export interface EmailAuth {
id?: number;
emailAuthKey?: string;
createDate?: Date;
authConfirmDate?: Date;
metaHistoryType?: MetaHistoryType;
message?: string;
probe?: Probe;
member?: Member;
domain?: Domain;
}

View File

@ -1,11 +1,9 @@
import { MetaInfraType } from '../meta';
import { Probe } from '../probe';
import { Target } from '../target';
export interface Infra {
id?: number;
metaInfraType?: MetaInfraType;
createDate?: Date;
probe?: Probe;
target?: Target;
createDate?: Date;
}

View File

@ -1,9 +1,20 @@
import { InfraOS } from './InfraOS';
import { Infra } from './Infra';
import { InfraZone } from './InfraZone';
import { MetaTargetHostType } from '../meta/MetaTargetHostType';
import { InfraHostMachine } from './InfraHostMachine';
import { InfraHostOS } from './InfraHostOS';
import { InfraHostPort } from './InfraHostPort';
import { InfraHostApplication } from './InfraHostApplication';
import { InfraHostDaemon } from './InfraHostDaemon';
import { InfraHostIP } from './InfraHostIP';
export interface InfraHost extends Infra {
infraOS?: InfraOS;
ipv4?: string;
ipv6?: string;
mac?: string;
infraZone?: InfraZone;
metaTargetHostType?: MetaTargetHostType;
infraHostMachine?: InfraHostMachine;
infraHostOS?: InfraHostOS;
infraHostIPs?: InfraHostIP[];
infraHostPorts?: InfraHostPort[];
infraHostApplications?: InfraHostApplication[];
infraHostDaemons?: InfraHostDaemon[];
}

View File

@ -0,0 +1,9 @@
import { Infra } from './Infra';
import { InfraHost } from './InfraHost';
export interface InfraHostApplication extends Infra {
id?: number;
infraHost?: InfraHost;
name?: string;
createDate?: Date;
}

View File

@ -0,0 +1,9 @@
import { Infra } from './Infra';
import { InfraHost } from './InfraHost';
export interface InfraHostDaemon extends Infra {
id?: number;
infraHost?: InfraHost;
name?: string;
createDate?: Date;
}

View File

@ -0,0 +1,12 @@
import { Infra } from './Infra';
import { InfraHost } from './InfraHost';
import { MetaIPType } from '../meta/MetaIPType';
export interface InfraHostIP extends Infra {
id?: number;
infraHost?: InfraHost;
metaIPType?: MetaIPType;
address?: string;
mac?: string;
createDate?: Date;
}

View File

@ -0,0 +1,9 @@
import { Infra } from './Infra';
import { InfraHost } from './InfraHost';
export interface InfraHostMachine extends Infra {
id?: number;
infraHost?: InfraHost;
meta?: string;
createDate?: Date;
}

View File

@ -0,0 +1,16 @@
import { Infra } from './Infra';
import { InfraHost } from './InfraHost';
export interface InfraHostOS extends Infra {
id?: number;
infraHost?: InfraHost;
name?: string;
os?: string;
platform?: string;
platformFamily?: string;
platformVersion?: string;
kernelVersion?: string;
hostID?: string;
meta?: string;
createDate?: Date;
}

View File

@ -0,0 +1,11 @@
import { Infra } from './Infra';
import { InfraHost } from './InfraHost';
import { MetaPortType } from '../meta/MetaPortType';
export interface InfraHostPort extends Infra {
id?: number;
infraHost?: InfraHost;
metaPortType?: MetaPortType;
port?: number;
createDate?: Date;
}

View File

@ -1,5 +0,0 @@
import { Infra } from './Infra';
export interface InfraMachine extends Infra {
meta?: string;
}

View File

@ -1,9 +0,0 @@
import { InfraMachine } from './InfraMachine';
import { Infra } from './Infra';
import { MetaInfraVendor } from '../meta';
export interface InfraOS extends Infra {
infraMachine?: InfraMachine;
meta?: string;
metaInfraVendor?: MetaInfraVendor;
}

View File

@ -1,7 +0,0 @@
import { InfraOS } from './InfraOS';
import { Infra } from './Infra';
export interface InfraOSApplication extends Infra {
infraOS?: InfraOS;
name?: string;
}

View File

@ -1,7 +0,0 @@
import { InfraOS } from './InfraOS';
import { Infra } from './Infra';
export interface InfraOSDaemon extends Infra {
infraOS?: InfraOS;
name?: string;
}

View File

@ -1,11 +0,0 @@
import { InfraOS } from './InfraOS';
import { Infra } from './Infra';
import { MetaInfraVendor } from '../meta';
export interface InfraOSPort extends Infra {
infraOS?: InfraOS;
port?: number;
portType?: string;
metaInfraVendor?: MetaInfraVendor;
tlsType?: boolean;
}

View File

@ -1,11 +1,12 @@
import { InfraHost } from './InfraHost';
import { Infra } from './Infra';
import { MetaInfraVendor } from '../meta';
import { MetaTargetServiceType } from '../meta/MetaTargetServiceType';
import { InfraHostIP } from './InfraHostIP';
import { InfraHostPort } from './InfraHostPort';
import { MetaCryptoType } from '../meta/MetaCryptoType';
export interface InfraService extends Infra {
infraHost?: InfraHost;
portType?: string;
port?: number;
metaInfraVendor?: MetaInfraVendor;
tlsType?: boolean;
metaTargetServiceType?: MetaTargetServiceType;
infraHostIP?: InfraHostIP;
infraHostPort?: InfraHostPort;
metaCryptoType?: MetaCryptoType;
}

View File

@ -0,0 +1,13 @@
import { Infra } from './Infra';
import { MetaTargetZoneType } from '../meta/MetaTargetZoneType';
import { MetaIPType } from '../meta/MetaIPType';
export interface InfraZone extends Infra {
metaTargetZoneType?: MetaTargetZoneType;
network?: string;
iface?: string;
metaIPType?: MetaIPType;
address?: string;
mac?: string;
gateway?: string;
}

View File

@ -1,8 +1,10 @@
export * from './Infra';
export * from './InfraHost';
export * from './InfraMachine';
export * from './InfraOS';
export * from './InfraOSApplication';
export * from './InfraOSDaemon';
export * from './InfraOSPort';
export * from './InfraHostApplication';
export * from './InfraHostDaemon';
export * from './InfraHostIP';
export * from './InfraHostMachine';
export * from './InfraHostOS';
export * from './InfraHostPort';
export * from './InfraService';
export * from './InfraZone';

View File

@ -1,33 +1,7 @@
export interface MetaCrawler {
id?: number;
createDate?: Date;
key?: string;
name?: string;
description?: string;
}
export enum MetaCrawlerEnum {
ACTIVEDIRECTORY_CRAWLER = 1,
CASSANDRA_CRAWLER = 2,
DHCP_CRAWLER = 3,
DNS_CRAWLER = 4,
FTP_CRAWLER = 5,
HTTP_CRAWLER = 6,
IMAP_CRAWLER = 7,
LDAP_CRAWLER = 8,
MONGODB_CRAWLER = 9,
MSSQL_CRAWLER = 10,
MYSQL_CRAWLER = 11,
NETBIOS_CRAWLER = 12,
ORACLE_CRAWLER = 13,
POP_CRAWLER = 14,
POSTGRESQL_CRAWLER = 15,
REDIS_CRAWLER = 16,
RMI_CRAWLER = 17,
SMB_CRAWLER = 18,
SMTP_CRAWLER = 19,
SNMP_CRAWLER = 20,
SSH_CRAWLER = 21,
TELNET_CRAWLER = 22,
WMI_CRAWLER = 23,
UNKNOWN_CRAWLER = 24,
createDate?: Date;
default?: boolean;
}

View File

@ -3,14 +3,13 @@ import { MetaCrawler } from './MetaCrawler';
export interface MetaCrawlerInputItem {
id?: number;
name?: string;
metaInputType?: MetaInputType;
metaCrawler?: MetaCrawler;
description?: string;
name?: string;
createDate?: Date;
required?: boolean;
defaultValue?: string;
pattern?: string;
keyName?: string;
keyValue?: string;
createDate?: Date;
}

View File

@ -0,0 +1,9 @@
import { MetaCrawler } from './MetaCrawler';
import { MetaTargetType } from './MetaTargetType';
export interface MetaCrawlerMapping {
id?: number;
metaTargetType?: MetaTargetType;
metaCrawler?: MetaCrawler;
createDate?: Date;
}

View File

@ -0,0 +1,6 @@
export interface MetaCryptoType {
id?: number;
name?: string;
key?: string;
createDate?: Date;
}

View File

@ -0,0 +1,6 @@
export interface MetaEmailType {
id?: number;
name?: string;
key?: string;
createDate?: Date;
}

View File

@ -1,14 +1,7 @@
export interface MetaHistoryType {
id?: number;
key?: string;
name?: string;
createDate?: Date;
}
export enum MetaHistoryTypeEnum {
Member = 1,
Probe = 2,
Discovery = 3,
Target = 4,
Crawler = 5,
Sensor = 6,
}

View File

@ -0,0 +1,7 @@
export interface MetaIPType {
id?: number;
key?: string;
name?: string;
createDate?: Date;
}

View File

@ -1,16 +1,7 @@
export interface MetaInfraType {
id?: number;
key?: string;
name?: string;
createDate?: Date;
}
export enum MetaInfraTypeEnum {
MACHINE = 1,
HOST = 2,
OS = 3,
OS_APPLICATION = 4,
OS_DAEMON = 5,
OS_PORT = 6,
OS_SERVICE = 7,
}

View File

@ -1,65 +0,0 @@
import { MetaInfraType } from './MetaInfraType';
export interface MetaInfraVendor {
id?: number;
name?: string;
createDate?: Date;
metaInfraType?: MetaInfraType;
}
export enum MetaInfraVendor_Machine_ID {
APPLE = 1,
MICROSOFT = 2,
ASUS = 3,
HP = 4,
DELL = 5,
LENOVO = 6,
ACER = 7,
SAMSUNG = 8,
LG = 9,
CISCO = 10,
}
export enum MetaInfraVendor_HOST_ID {
Windows = 11,
Linux = 12,
MacOS = 13,
Ubuntu = 14,
CentOS = 15,
Fedora = 16,
RedHat = 17,
Debian = 18,
SUSE = 19,
CoreOS = 20,
AmazonLinux = 21,
Kubernetes = 22,
Docker = 23,
iOS = 24,
Android = 25,
}
export enum MetaInfraVendor_OS_ID {
Windows = 26,
MacOS = 27,
Ubuntu = 28,
CentOS = 29,
Fedora = 30,
RedHat = 31,
Debian = 32,
SUSE = 33,
CoreOS = 34,
AmazonLinux = 35,
Kubernetes = 36,
Docker = 37,
iOS = 38,
Android = 39,
}
export enum MetaInfraVendor_SERVICE_ID {
MySql = 40,
PostgreSQL = 41,
WMI = 42,
SNMP_V2 = 43,
UNKNOWN = 44,
}

View File

@ -5,11 +5,3 @@ export interface MetaInputType {
description?: string;
createDate?: Date;
}
export enum MetaInputType_ID {
TEXT_TYPE = 1,
PASSWORD_TYPE = 2,
NUMBER_TYPE = 3,
BOOLEAN_TYPE = 4,
SELECT_TYPE = 5,
}

View File

@ -1,12 +1,14 @@
export interface MetaMemberStatus {
id?: number;
key?: string;
name?: string;
createDate?: Date;
}
export enum MetaMemberStatusEnum {
NOAUTH = 1,
NORMAL = 2,
DIAPAUSE = 3,
WITHDRAWAL = 4,
}
// export enum MetaMemberStatusEnum {
// NOAUTH = 1,
// NORMAL = 2,
// DIAPAUSE = 3,
// WITHDRAWAL = 4,
// }

View File

@ -1,11 +1,13 @@
export interface MetaNoAuthProbeStatus {
id?: number;
key?: string;
name?: string;
createDate?: Date;
}
export enum MetaNoAuthProbeStatusEnum {
ACCEPT = 1,
DENY = 2,
PROCESS = 3,
}
// export enum MetaNoAuthProbeStatusEnum {
// ACCEPT = 1,
// DENY = 2,
// PROCESS = 3,
// }

View File

@ -1,7 +0,0 @@
export interface MetaNotification {
id?: number;
createDate?: Date;
name?: string;
description?: string;
}

View File

@ -0,0 +1,8 @@
export interface MetaPortType {
id?: number;
key?: string;
name?: string;
createDate?: Date;
}

View File

@ -1,10 +0,0 @@
export interface MetaProbeArchitecture {
id?: number;
architecture?: string;
createDate?: Date;
}
export enum MetaProbeArchitectureEnum {
x86_64bit = 1,
}

View File

@ -1,13 +0,0 @@
export interface MetaProbeOs {
id?: number;
name?: string;
createDate?: Date;
}
export enum MetaProbeOsEnum {
Windows = 1,
Debian = 2,
Ubuntu = 3,
Fedora = 4,
}

View File

@ -1,11 +0,0 @@
import { MetaProbeVersion } from './MetaProbeVersion';
import { MetaProbeOs } from './MetaProbeOs';
import { MetaProbeArchitecture } from './MetaProbeArchitecture';
export interface MetaProbePackage {
id?: number;
metaProbeVersion?: MetaProbeVersion;
metaProbeOs?: MetaProbeOs;
metaProbeArchitecture?: MetaProbeArchitecture;
createDate?: Date;
}

View File

@ -1,10 +1,12 @@
export interface MetaProbeStatus {
id?: number;
key?: string;
name?: string;
createDate?: Date;
}
export enum MetaProbeStatusEnum {
INITIAL = 1,
NORMAL = 2,
}
// export enum MetaProbeStatusEnum {
// INITIAL = 1,
// NORMAL = 2,
// }

View File

@ -1,7 +0,0 @@
export interface MetaProbeTaskType {
id?: number;
name?: string;
description?: string;
createDate?: Date;
}

View File

@ -1,6 +0,0 @@
export interface MetaProbeVersion {
id?: number;
version?: string;
createDate?: Date;
}

View File

@ -6,11 +6,10 @@ import { MetaSensorItemType } from './MetaSensorItemType';
export interface MetaSensorDisplayItem {
id?: number;
key?: string;
displayName?: string;
description?: string;
name?: string;
metaCrawler?: MetaCrawler;
metaSensorItemUnit?: MetaSensorItemUnit;
createDate?: Date;
metaSensorItemType?: MetaSensorItemType;
createDate?: Date;
default?: boolean;
}

View File

@ -5,4 +5,5 @@ export interface MetaSensorDisplayMapping {
id?: number;
metaSensorDisplayItem?: MetaSensorDisplayItem;
metaSensorItemKey?: MetaSensorItemKey;
createDate?: Date;
}

View File

@ -4,11 +4,12 @@ import { MetaSensorItemUnit } from './MetaSensorItemUnit';
export interface MetaSensorItemKey {
id?: number;
metaSensorItem?: MetaSensorItem;
key?: string;
name?: string;
froms?: string;
option?: string;
metaSensorItem?: MetaSensorItem;
metaCrawler?: MetaCrawler;
createDate?: Date;
metaSensorItemUnit?: MetaSensorItemUnit;
createDate?: Date;
}

View File

@ -1,7 +1,7 @@
export interface MetaSensorItemType {
id?: number;
key?: string;
name?: string;
description?: string;
createDate?: Date;
}

View File

@ -1,7 +1,8 @@
export interface MetaSensorItemUnit {
id?: number;
key?: string;
unit?: string;
createDate?: Date;
mark?: string;
createDate?: Date;
}

View File

@ -1,10 +1,8 @@
export interface MetaSensorStatus {
id?: number;
key?: string;
name?: string;
createDate?: Date;
}
export enum MetaSensorStatusEnum {
RUNNING = 1,
STOPPED = 2,
}

View File

@ -0,0 +1,10 @@
import { MetaInfraType } from "./MetaInfraType";
export interface MetaTargetCategory {
id?: number;
metaInfraType?: MetaInfraType;
key?: string;
name?: string;
createDate?: Date;
}

View File

@ -0,0 +1,5 @@
import { MetaTargetType } from "./MetaTargetType";
export interface MetaTargetHostType extends MetaTargetType {
}

View File

@ -0,0 +1,5 @@
import { MetaTargetType } from "./MetaTargetType";
export interface MetaTargetServiceType extends MetaTargetType {
}

View File

@ -0,0 +1,7 @@
export interface MetaTargetStatus {
id?: number;
key?: string;
name?: string;
createDate?: Date;
}

View File

@ -0,0 +1,11 @@
import { MetaInfraType } from "./MetaInfraType";
export interface MetaTargetType {
id?: number;
metaInfraType?: MetaInfraType;
key?: string;
name?: string;
createDate?: Date;
supported?: boolean;
}

View File

@ -0,0 +1,9 @@
import { MetaInfraType } from "./MetaInfraType";
export interface MetaTargetTypeCategory {
id?: number;
metaInfraType?: MetaInfraType;
key?: string;
name?: string;
createDate?: Date;
}

View File

@ -0,0 +1,9 @@
import { MetaTargetType } from "./MetaTargetType";
import { MetaTargetTypeCategory } from "./MetaTargetTypeCategory";
export interface MetaTargetTypeCategoryMapping {
id?: number;
metaTargetTypeCategory?: MetaTargetTypeCategory;
metaTargetType?: MetaTargetType;
createDate?: Date;
}

View File

@ -0,0 +1,5 @@
import { MetaTargetType } from "./MetaTargetType";
export interface MetaTargetZoneType extends MetaTargetType {
}

View File

@ -1,9 +0,0 @@
import { MetaCrawler } from './MetaCrawler';
import { MetaInfraVendor } from './MetaInfraVendor';
export interface MetaVendorCrawler {
id?: number;
metaCrawler: MetaCrawler;
metaInfraVendor: MetaInfraVendor;
createDate: Date;
}

View File

@ -1,12 +0,0 @@
import { MetaSensorItem } from './MetaSensorItem';
import { MetaInfraVendor } from './MetaInfraVendor';
export interface MetaVendorCrawlerSensorItem {
id?: number;
interval: string;
warnCondition: string;
createDate: Date;
metaSensorItem: MetaSensorItem;
metaInfraVendor: MetaInfraVendor;
crawlerId: number;
}

View File

@ -1,18 +1,16 @@
export * from './MetaCrawler';
export * from './MetaCrawlerInputItem';
export * from './MetaCrawlerMapping';
export * from './MetaCryptoType';
export * from './MetaEmailType';
export * from './MetaHistoryType';
export * from './MetaInfraType';
export * from './MetaInfraVendor';
export * from './MetaInputType';
export * from './MetaIPType';
export * from './MetaMemberStatus';
export * from './MetaNoAuthProbeStatus';
export * from './MetaNotification';
export * from './MetaProbeArchitecture';
export * from './MetaProbeOs';
export * from './MetaProbePackage';
export * from './MetaPortType';
export * from './MetaProbeStatus';
export * from './MetaProbeTaskType';
export * from './MetaProbeVersion';
export * from './MetaSensorDisplayItem';
export * from './MetaSensorDisplayMapping';
export * from './MetaSensorItem';
@ -20,5 +18,11 @@ export * from './MetaSensorItemKey';
export * from './MetaSensorItemType';
export * from './MetaSensorItemUnit';
export * from './MetaSensorStatus';
export * from './MetaVendorCrawler';
export * from './MetaVendorCrawlerSensorItem';
export * from './MetaTargetCategory';
export * from './MetaTargetHostType';
export * from './MetaTargetServiceType';
export * from './MetaTargetStatus';
export * from './MetaTargetType';
export * from './MetaTargetTypeCategory';
export * from './MetaTargetTypeCategoryMapping';
export * from './MetaTargetZoneType';

View File

@ -1,18 +1,16 @@
import { MetaNoAuthProbeStatus } from '../meta';
import { Domain } from '../domain';
import { Probe } from '../probe';
import { NoAuthProbeDescription } from './NoAuthProbeDescription';
export interface NoAuthProbe {
id?: number;
description?: string;
descriptions?: NoAuthProbeDescription;
metaNoAuthProbeStatus?: MetaNoAuthProbeStatus;
tempProbeKey?: string;
createDate?: Date;
apiKey?: string;
domain?: Domain;
probe?: Probe;
connectAddress?: string;
metaNoAuthProbeStatus?: MetaNoAuthProbeStatus;
description?: string;
tempProbeKey?: string;
apiKey?: string;
connectDate?: Date;
connectAddress?: string;
createDate?: Date;
}

View File

@ -1,7 +1,6 @@
import { NoAuthProbeDescriptionHost } from './NoAuthProbeDescriptionHost';
import { NoAuthProbeDescriptionNetwork } from './NoAuthProbeDescriptionNetwork';
import { InfraHost, InfraZone } from "../infra";
export interface NoAuthProbeDescription {
host?: NoAuthProbeDescriptionHost;
network?: NoAuthProbeDescriptionNetwork
infraHost?: InfraHost;
infraZones?: InfraZone[];
}

View File

@ -1,9 +0,0 @@
export interface NoAuthProbeDescriptionHost {
name?: string;
os?: string;
platform?: string;
platformFamily?: string;
platformVersion?: string;
kernelVersion?: string;
hostID?: string;
}

View File

@ -1,6 +0,0 @@
export interface NoAuthProbeDescriptionNetwork {
name?: string;
address?: string;
gateway?: string;
macAddress?: string;
}

View File

@ -1,4 +1,2 @@
export * from './NoAuthProbe';
export * from './NoAuthProbeDescription';
export * from './NoAuthProbeDescriptionHost';
export * from './NoAuthProbeDescriptionNetwork';

View File

@ -10,7 +10,7 @@ export interface Probe {
domain?: Domain;
probeKey?: string;
encryptionKey?: string;
displayName?: string;
name?: string;
cidr?: string;
authorizeDate?: Date;
authorizeMember?: Member;

View File

@ -1,14 +0,0 @@
import { Probe } from './Probe';
import { MetaProbeTaskType } from '../meta';
export interface ProbeTask {
id?: number;
metaProbeTaskType?: MetaProbeTaskType;
probe?: Probe;
data?: string;
createDate?: Date;
sendDate?: Date;
startDate?: Date;
endDate?: Date;
succeed?: boolean;
}

View File

@ -1,3 +1,2 @@
export * from './Probe';
export * from './ProbeHost';
export * from './ProbeTask';

View File

@ -1,2 +0,0 @@
export * from './SensorItem';
export * from './SensorItemDependency';

View File

@ -1,12 +0,0 @@
import { MetaCrawler, MetaSensorDisplayItem } from '../meta';
import { Infra } from '../infra';
export interface SensorRegistInfo {
sensorItemMap: Map<number, Array<MetaSensorDisplayItem>>;
metaCrawler: MetaCrawler;
// targetId: number;
interval: number;
// type: string;
infra: Infra;
crawlerAuth: string;
}

View File

@ -1,2 +1,3 @@
export * from './Sensor';
export * from './SensorRegistInfo';
export * from './SensorItem';
export * from './SensorItemDependency';

View File

@ -1,9 +1,14 @@
import { Sensor } from '../sensor';
import { Infra } from '../infra';
import { MetaTargetType } from '../meta';
export interface Target {
id?: number;
createDate?: Date;
displayName?: string;
description?: string;
sensors?: Sensor[];
id?: number;
infra?: Infra;
metaTargetType?: MetaTargetType;
name?: string;
description?: string;
sensorCount?: number;
createDate?: Date;
sensors?: Sensor[];
}

View File

@ -1,139 +0,0 @@
{
"rulesDirectory": [
"node_modules/codelyzer"
],
"rules": {
"arrow-return-shorthand": true,
"callable-types": true,
"class-name": true,
"comment-format": [
true,
"check-space"
],
"curly": true,
"eofline": true,
"forin": true,
"import-blacklist": [
true,
"rxjs"
],
"import-spacing": true,
"indent": [
true,
"spaces"
],
"interface-over-type-literal": true,
"label-position": true,
"max-line-length": [
true,
140
],
"member-access": false,
"member-ordering": [
true,
{
"order": [
"static-field",
"instance-field",
"static-method",
"instance-method"
]
}
],
"no-arg": true,
"no-bitwise": true,
"no-console": [
true,
"debug",
"info",
"time",
"timeEnd",
"trace"
],
"no-construct": true,
"no-debugger": true,
"no-duplicate-super": true,
"no-empty": false,
"no-empty-interface": true,
"no-eval": true,
"no-inferrable-types": [
true,
"ignore-params"
],
"no-misused-new": true,
"no-non-null-assertion": true,
"no-shadowed-variable": true,
"no-string-literal": false,
"no-string-throw": true,
"no-switch-case-fall-through": true,
"no-trailing-whitespace": true,
"no-unnecessary-initializer": true,
"no-unused-expression": true,
"no-use-before-define": ["error", { "functions": true, "classes": true }],
"no-var-keyword": true,
"object-literal-sort-keys": false,
"one-line": [
true,
"check-open-brace",
"check-catch",
"check-else",
"check-whitespace"
],
"prefer-const": true,
"quotemark": [
true,
"single"
],
"radix": true,
"semicolon": [
true,
"always"
],
"triple-equals": [
true,
"allow-null-check"
],
"typedef-whitespace": [
true,
{
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
}
],
"typeof-compare": true,
"unified-signatures": true,
"variable-name": false,
"whitespace": [
true,
"check-branch",
"check-decl",
"check-operator",
"check-separator",
"check-type"
],
"directive-selector": [
true,
"attribute",
"of",
"camelCase"
],
"component-selector": [
true,
"element",
"of",
"kebab-case"
],
"use-input-property-decorator": true,
"use-output-property-decorator": true,
"use-host-property-decorator": true,
"no-input-rename": true,
"no-output-rename": true,
"use-life-cycle-interface": true,
"use-pipe-transform-interface": true,
"component-class-suffix": true,
"directive-class-suffix": true
}
}