ing
This commit is contained in:
0
src/index.ts
Normal file
0
src/index.ts
Normal file
4
src/model/alert/Alert.ts
Normal file
4
src/model/alert/Alert.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export interface Alert {
|
||||
created: string;
|
||||
msg: string;
|
||||
}
|
||||
5
src/model/alert/AlertMetric.ts
Normal file
5
src/model/alert/AlertMetric.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import {Alert} from './Alert';
|
||||
|
||||
export interface AlertMetric extends Alert {
|
||||
status: string;
|
||||
}
|
||||
5
src/model/alert/AlertSystem.ts
Normal file
5
src/model/alert/AlertSystem.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import {Alert} from './Alert';
|
||||
|
||||
export interface AlertSystem extends Alert {
|
||||
status?: string; // test
|
||||
}
|
||||
3
src/model/alert/index.ts
Normal file
3
src/model/alert/index.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export * from './Alert';
|
||||
export * from './AlertMetric';
|
||||
export * from './AlertSystem';
|
||||
8
src/model/apikey/ApiKey.ts
Normal file
8
src/model/apikey/ApiKey.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import {Domain} from '../domain';
|
||||
|
||||
export interface ApiKey {
|
||||
id?: number;
|
||||
apiKey?: string;
|
||||
createDate?: Date;
|
||||
domain?: Domain;
|
||||
}
|
||||
10
src/model/auth/AuthCrawler.ts
Normal file
10
src/model/auth/AuthCrawler.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import {Target} from '../target';
|
||||
import {MetaCrawler} from '../meta';
|
||||
|
||||
export interface AuthCrawler {
|
||||
id?: number;
|
||||
crawler?: MetaCrawler;
|
||||
target?: Target;
|
||||
authJson?: string;
|
||||
createDate?: Date;
|
||||
}
|
||||
6
src/model/commons/PageParams.ts
Normal file
6
src/model/commons/PageParams.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export interface PageParams {
|
||||
pageNo: number;
|
||||
countPerPage: number;
|
||||
sortCol: string;
|
||||
sortDirection: string;
|
||||
}
|
||||
1
src/model/discovery/CryptoType.ts
Normal file
1
src/model/discovery/CryptoType.ts
Normal file
@@ -0,0 +1 @@
|
||||
export type CryptoType = "TLS";
|
||||
14
src/model/discovery/DiscoverHost.ts
Normal file
14
src/model/discovery/DiscoverHost.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { DiscoverPort } from "./DiscoverPort";
|
||||
|
||||
|
||||
export interface DiscoverHost {
|
||||
firstScanRangev4?: string;
|
||||
lastScanRangev4?: string;
|
||||
excludeHostsv4?: string[];
|
||||
includeHostsv4?: string[];
|
||||
firstScanRangev6?: string;
|
||||
lastScanRangev6?: string;
|
||||
excludeHostsv6?: string[];
|
||||
includeHostsv6?: string[];
|
||||
discoverPort?: DiscoverPort;
|
||||
}
|
||||
10
src/model/discovery/DiscoverPort.ts
Normal file
10
src/model/discovery/DiscoverPort.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { DiscoverService } from './DiscoverService';
|
||||
|
||||
export interface DiscoverPort {
|
||||
firstScanRange?: number;
|
||||
lastScanRange?: number;
|
||||
excludePorts?: number[];
|
||||
includeTCP?: boolean;
|
||||
includeUDP?: boolean;
|
||||
discoverService?: DiscoverService;
|
||||
}
|
||||
3
src/model/discovery/DiscoverService.ts
Normal file
3
src/model/discovery/DiscoverService.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export interface DiscoverService {
|
||||
includeServices?: string[];
|
||||
}
|
||||
6
src/model/discovery/DiscoverZone.ts
Normal file
6
src/model/discovery/DiscoverZone.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { DiscoverHost } from "./DiscoverHost";
|
||||
|
||||
export interface DiscoverZone {
|
||||
excludePatterns?: string[];
|
||||
discoverHost?: DiscoverHost;
|
||||
}
|
||||
11
src/model/discovery/DiscoveryStartInfo.ts
Normal file
11
src/model/discovery/DiscoveryStartInfo.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
export interface DiscoveryStartInfo {
|
||||
startIpv4?: string;
|
||||
endIPv4?: string;
|
||||
excludeIpv4?: string;
|
||||
startIpv6?: string;
|
||||
endIPv6?: string;
|
||||
excludeIpv6?: string;
|
||||
startPort?: string;
|
||||
endPort?: string;
|
||||
services?: string[];
|
||||
}
|
||||
16
src/model/discovery/Host.ts
Normal file
16
src/model/discovery/Host.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { Zone } from './Zone';
|
||||
import { Port } from './Port';
|
||||
|
||||
export interface Host {
|
||||
id?: number;
|
||||
ipv4?: string;
|
||||
ipv6?: string;
|
||||
mac?: string;
|
||||
os?: string;
|
||||
discoveredDate?: Date;
|
||||
zone?: Zone;
|
||||
target?: boolean;
|
||||
|
||||
ports?: Map<number, Port> | null;
|
||||
portList?: Port[] | null;
|
||||
}
|
||||
15
src/model/discovery/Port.ts
Normal file
15
src/model/discovery/Port.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { Host } from './Host';
|
||||
import { PortType } from './PortType';
|
||||
import { Service } from './Service';
|
||||
|
||||
export interface Port {
|
||||
id?: number;
|
||||
portType?: PortType;
|
||||
portNumber?: number;
|
||||
discoveredDate?: Date;
|
||||
host?: Host;
|
||||
target?: boolean;
|
||||
|
||||
services?: Map<string, Service> | null;
|
||||
serviceList?: Service[] | null;
|
||||
}
|
||||
1
src/model/discovery/PortType.ts
Normal file
1
src/model/discovery/PortType.ts
Normal file
@@ -0,0 +1 @@
|
||||
export type PortType = 'TCP' | 'UDP' | 'TLS';
|
||||
11
src/model/discovery/Service.ts
Normal file
11
src/model/discovery/Service.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { Port } from './Port';
|
||||
import { CryptoType } from './CryptoType';
|
||||
|
||||
export interface Service {
|
||||
id?: number;
|
||||
cryptoType?: CryptoType;
|
||||
serviceName?: string;
|
||||
discoveredDate?: Date;
|
||||
port?: Port;
|
||||
target?: boolean;
|
||||
}
|
||||
13
src/model/discovery/Zone.ts
Normal file
13
src/model/discovery/Zone.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { Host } from './Host';
|
||||
|
||||
export interface Zone {
|
||||
id?: number;
|
||||
network?: string;
|
||||
ipv4?: string;
|
||||
ipv6?: string;
|
||||
iface?: string;
|
||||
mac?: string;
|
||||
discoveredDate?: Date;
|
||||
|
||||
hosts: Map<string, Host> | null;
|
||||
}
|
||||
11
src/model/discovery/index.ts
Normal file
11
src/model/discovery/index.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
export * from './DiscoverHost';
|
||||
export * from './DiscoverPort';
|
||||
export * from './DiscoverService';
|
||||
export * from './DiscoverZone';
|
||||
export * from './DiscoveryStartInfo';
|
||||
export * from './Host';
|
||||
export * from './Port';
|
||||
export * from './PortType';
|
||||
export * from './Service';
|
||||
export * from './Zone';
|
||||
|
||||
6
src/model/domain/Domain.ts
Normal file
6
src/model/domain/Domain.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
export interface Domain {
|
||||
id?: number;
|
||||
name?: string;
|
||||
createDate?: Date;
|
||||
}
|
||||
9
src/model/domain/DomainMember.ts
Normal file
9
src/model/domain/DomainMember.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { Domain } from './Domain';
|
||||
import {Member} from '../member';
|
||||
|
||||
export interface DomainMember {
|
||||
id?: number;
|
||||
createDate?: Date;
|
||||
member?: Member;
|
||||
domain?: Domain;
|
||||
}
|
||||
2
src/model/domain/index.ts
Normal file
2
src/model/domain/index.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
export * from './Domain';
|
||||
export * from './DomainMember';
|
||||
9
src/model/email/EmailAuth.ts
Normal file
9
src/model/email/EmailAuth.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import {Member} from '../member';
|
||||
|
||||
export interface EmailAuth {
|
||||
id?: number;
|
||||
emailAuthKey?: string;
|
||||
createDate?: Date;
|
||||
authConfirmDate?: Date;
|
||||
member?: Member;
|
||||
}
|
||||
14
src/model/history/History.ts
Normal file
14
src/model/history/History.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { MetaHistoryType } from '../meta';
|
||||
import {Probe} from '../probe';
|
||||
import {Member} from '../member';
|
||||
import {Domain} from '../domain';
|
||||
|
||||
export interface History {
|
||||
id?: number;
|
||||
createDate?: Date;
|
||||
type?: MetaHistoryType;
|
||||
message?: string;
|
||||
probe?: Probe;
|
||||
member?: Member;
|
||||
domain?: Domain;
|
||||
}
|
||||
11
src/model/infra/Infra.ts
Normal file
11
src/model/infra/Infra.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import {MetaInfraType} from '../meta';
|
||||
import {Probe} from '../probe';
|
||||
import {Target} from '../target';
|
||||
|
||||
export interface Infra {
|
||||
id?: number;
|
||||
infraType?: MetaInfraType;
|
||||
createDate?: Date;
|
||||
probe?: Probe;
|
||||
target?: Target;
|
||||
}
|
||||
9
src/model/infra/InfraHost.ts
Normal file
9
src/model/infra/InfraHost.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { InfraOS } from './InfraOS';
|
||||
import { Infra } from './Infra';
|
||||
|
||||
export interface InfraHost extends Infra {
|
||||
os?: InfraOS;
|
||||
ipv4?: string;
|
||||
ipv6?: string;
|
||||
mac?: string;
|
||||
}
|
||||
6
src/model/infra/InfraMachine.ts
Normal file
6
src/model/infra/InfraMachine.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { Infra } from './Infra';
|
||||
|
||||
|
||||
export interface InfraMachine extends Infra {
|
||||
meta?: string;
|
||||
}
|
||||
9
src/model/infra/InfraOS.ts
Normal file
9
src/model/infra/InfraOS.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { InfraMachine } from './InfraMachine';
|
||||
import { Infra } from './Infra';
|
||||
import {MetaInfraVendor} from '../meta';
|
||||
|
||||
export interface InfraOS extends Infra {
|
||||
machine?: InfraMachine;
|
||||
meta?: string;
|
||||
vendor?: MetaInfraVendor;
|
||||
}
|
||||
7
src/model/infra/InfraOSApplication.ts
Normal file
7
src/model/infra/InfraOSApplication.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { InfraOS } from './InfraOS';
|
||||
import { Infra } from './Infra';
|
||||
|
||||
export interface InfraOSApplication extends Infra {
|
||||
os?: InfraOS;
|
||||
name?: string;
|
||||
}
|
||||
7
src/model/infra/InfraOSDaemon.ts
Normal file
7
src/model/infra/InfraOSDaemon.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { InfraOS } from './InfraOS';
|
||||
import { Infra } from './Infra';
|
||||
|
||||
export interface InfraOSDaemon extends Infra {
|
||||
os?: InfraOS;
|
||||
name?: string;
|
||||
}
|
||||
11
src/model/infra/InfraOSPort.ts
Normal file
11
src/model/infra/InfraOSPort.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { InfraOS } from './InfraOS';
|
||||
import { Infra } from './Infra';
|
||||
import {MetaInfraVendor} from '../meta';
|
||||
|
||||
export interface InfraOSPort extends Infra {
|
||||
os?: InfraOS;
|
||||
port?: number;
|
||||
portType?: string;
|
||||
vendor?: MetaInfraVendor;
|
||||
tlsType?: boolean;
|
||||
}
|
||||
11
src/model/infra/InfraService.ts
Normal file
11
src/model/infra/InfraService.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { InfraHost } from './InfraHost';
|
||||
import { Infra } from './Infra';
|
||||
import {MetaInfraVendor} from '../meta';
|
||||
|
||||
export interface InfraService extends Infra {
|
||||
host?: InfraHost;
|
||||
portType?: string;
|
||||
port?: number;
|
||||
vendor?: MetaInfraVendor;
|
||||
tlsType?: boolean;
|
||||
}
|
||||
8
src/model/infra/index.ts
Normal file
8
src/model/infra/index.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
export * from './InfraHost';
|
||||
export * from './InfraMachine';
|
||||
export * from './InfraOSApplication';
|
||||
export * from './InfraOSDaemon';
|
||||
export * from './InfraOSPort';
|
||||
export * from './InfraOS';
|
||||
export * from './InfraService';
|
||||
export * from './Infra';
|
||||
14
src/model/member/Member.ts
Normal file
14
src/model/member/Member.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import {MetaMemberStatus} from '../meta';
|
||||
|
||||
export interface Member {
|
||||
id?: number;
|
||||
email?: string;
|
||||
pw?: string;
|
||||
name?: string;
|
||||
phone?: string;
|
||||
companyName?: string;
|
||||
createDate?: Date;
|
||||
status?: MetaMemberStatus;
|
||||
signinFailCount?: number;
|
||||
totpType?: boolean;
|
||||
}
|
||||
6
src/model/member/MemberStatus.ts
Normal file
6
src/model/member/MemberStatus.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export enum MemberStatus {
|
||||
NOAUTH = 1,
|
||||
NORMAL = 2,
|
||||
DORMANCY = 3,
|
||||
WITHDRAWAL = 4,
|
||||
}
|
||||
10
src/model/member/MemberTotp.ts
Normal file
10
src/model/member/MemberTotp.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import {Member} from './Member';
|
||||
|
||||
export interface MemberTotp {
|
||||
id?: number;
|
||||
member?: Member;
|
||||
secretCode?: string;
|
||||
createDate?: Date;
|
||||
updateDate?: Date;
|
||||
otpAuth?: string;
|
||||
}
|
||||
2
src/model/member/index.ts
Normal file
2
src/model/member/index.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
export * from './Member';
|
||||
export * from './MemberTotp';
|
||||
33
src/model/meta/MetaCrawler.ts
Normal file
33
src/model/meta/MetaCrawler.ts
Normal file
@@ -0,0 +1,33 @@
|
||||
export interface MetaCrawler {
|
||||
id?: number;
|
||||
createDate?: Date;
|
||||
name?: string;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
export enum MetaCrawler_ID {
|
||||
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,
|
||||
}
|
||||
16
src/model/meta/MetaCrawlerInputItem.ts
Normal file
16
src/model/meta/MetaCrawlerInputItem.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import {MetaInputType} from './MetaInputType';
|
||||
import {MetaCrawler} from './MetaCrawler';
|
||||
|
||||
export interface MetaCrawlerInputItem {
|
||||
id?: number;
|
||||
inputType?: MetaInputType;
|
||||
crawler?: MetaCrawler;
|
||||
description?: string;
|
||||
name?: string;
|
||||
createDate?: Date;
|
||||
required?: boolean;
|
||||
defaultValue?: string;
|
||||
pattern?: string;
|
||||
keyName?: string;
|
||||
keyValue?: string;
|
||||
}
|
||||
14
src/model/meta/MetaHistoryType.ts
Normal file
14
src/model/meta/MetaHistoryType.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
export interface MetaHistoryType {
|
||||
id?: number;
|
||||
name?: string;
|
||||
createDate?: Date;
|
||||
}
|
||||
|
||||
export enum MetaHistoryType_ID {
|
||||
Member = 1,
|
||||
Probe = 2,
|
||||
Discovery = 3,
|
||||
Target = 4,
|
||||
Crawler = 5,
|
||||
Sensor = 6,
|
||||
}
|
||||
16
src/model/meta/MetaInfraType.ts
Normal file
16
src/model/meta/MetaInfraType.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
export interface MetaInfraType {
|
||||
id?: number;
|
||||
name?: string;
|
||||
createDate?: Date;
|
||||
}
|
||||
|
||||
|
||||
export enum MetaInfraType_ID {
|
||||
MACHINE = 1,
|
||||
HOST = 2,
|
||||
OS = 3,
|
||||
OS_APPLICATION = 4,
|
||||
OS_DAEMON = 5,
|
||||
OS_PORT = 6,
|
||||
OS_SERVICE = 7,
|
||||
}
|
||||
65
src/model/meta/MetaInfraVendor.ts
Normal file
65
src/model/meta/MetaInfraVendor.ts
Normal file
@@ -0,0 +1,65 @@
|
||||
import {MetaInfraType} from './MetaInfraType';
|
||||
|
||||
export interface MetaInfraVendor {
|
||||
id?: number;
|
||||
name?: string;
|
||||
createDate?: Date;
|
||||
infraType?: 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,
|
||||
}
|
||||
15
src/model/meta/MetaInputType.ts
Normal file
15
src/model/meta/MetaInputType.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
|
||||
export interface MetaInputType {
|
||||
id?: number;
|
||||
name?: string;
|
||||
description?: string;
|
||||
createDate?: Date;
|
||||
}
|
||||
|
||||
export enum MetaInputType_ID {
|
||||
TEXT_TYPE = 1,
|
||||
PASSWORD_TYPE = 2,
|
||||
NUMBER_TYPE = 3,
|
||||
BOOLEAN_TYPE = 4,
|
||||
SELECT_TYPE = 5,
|
||||
}
|
||||
12
src/model/meta/MetaMemberStatus.ts
Normal file
12
src/model/meta/MetaMemberStatus.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
|
||||
export interface MetaMemberStatus {
|
||||
id?: number;
|
||||
name?: string;
|
||||
}
|
||||
|
||||
export enum MetaMemberStatus_ID {
|
||||
NOAUTH = 1,
|
||||
NORMAL = 2,
|
||||
DIAPAUSE = 3,
|
||||
WITHDRAWAL = 4,
|
||||
}
|
||||
11
src/model/meta/MetaNoAuthProbeStatus.ts
Normal file
11
src/model/meta/MetaNoAuthProbeStatus.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
|
||||
export interface MetaNoAuthProbeStatus {
|
||||
id?: number;
|
||||
name?: string;
|
||||
}
|
||||
|
||||
export enum MetaNoAuthProbeStatus_ID {
|
||||
ACCEPT = 1,
|
||||
DENY = 2,
|
||||
PROCESS = 3,
|
||||
}
|
||||
7
src/model/meta/MetaNotification.ts
Normal file
7
src/model/meta/MetaNotification.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
|
||||
export interface MetaNotification {
|
||||
id?: number;
|
||||
createDate?: Date;
|
||||
name?: string;
|
||||
description?: string;
|
||||
}
|
||||
11
src/model/meta/MetaProbeArchitecture.ts
Normal file
11
src/model/meta/MetaProbeArchitecture.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
|
||||
export interface MetaProbeArchitecture {
|
||||
id?: number;
|
||||
architecture?: string;
|
||||
createDate?: Date;
|
||||
}
|
||||
|
||||
export enum MetaProbeArchitecture_ID {
|
||||
x86_64bit = 1,
|
||||
}
|
||||
|
||||
13
src/model/meta/MetaProbeOs.ts
Normal file
13
src/model/meta/MetaProbeOs.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
export interface MetaProbeOs {
|
||||
id?: number;
|
||||
name?: string;
|
||||
createDate?: Date;
|
||||
}
|
||||
|
||||
export enum MetaProbeOs_ID {
|
||||
Windows = 1,
|
||||
Debian = 2,
|
||||
Ubuntu = 3,
|
||||
Fedora = 4,
|
||||
}
|
||||
11
src/model/meta/MetaProbePackage.ts
Normal file
11
src/model/meta/MetaProbePackage.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import {MetaProbeVersion} from './MetaProbeVersion';
|
||||
import {MetaProbeOs} from './MetaProbeOs';
|
||||
import {MetaProbeArchitecture} from './MetaProbeArchitecture';
|
||||
|
||||
export interface MetaProbePackage {
|
||||
id?: number;
|
||||
version?: MetaProbeVersion;
|
||||
os?: MetaProbeOs;
|
||||
architecture?: MetaProbeArchitecture;
|
||||
createDate?: Date;
|
||||
}
|
||||
11
src/model/meta/MetaProbeStatus.ts
Normal file
11
src/model/meta/MetaProbeStatus.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
|
||||
export interface MetaProbeStatus {
|
||||
id?: number;
|
||||
name?: string;
|
||||
}
|
||||
|
||||
|
||||
export enum MetaProbeStatus_ID {
|
||||
INITIAL = 1,
|
||||
NORMAL = 2,
|
||||
}
|
||||
7
src/model/meta/MetaProbeTaskType.ts
Normal file
7
src/model/meta/MetaProbeTaskType.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
|
||||
export interface MetaProbeTaskType {
|
||||
id?: number;
|
||||
name?: string;
|
||||
description?: string;
|
||||
createDate?: Date;
|
||||
}
|
||||
6
src/model/meta/MetaProbeVersion.ts
Normal file
6
src/model/meta/MetaProbeVersion.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
export interface MetaProbeVersion {
|
||||
id?: number;
|
||||
version?: string;
|
||||
createDate?: Date;
|
||||
}
|
||||
16
src/model/meta/MetaSensorDisplayItem.ts
Normal file
16
src/model/meta/MetaSensorDisplayItem.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import {MetaCrawler} from './MetaCrawler';
|
||||
import {MetaSensorItemUnit} from './MetaSensorItemUnit';
|
||||
import {MetaSensorItemType} from './MetaSensorItemType';
|
||||
|
||||
|
||||
export interface MetaSensorDisplayItem {
|
||||
id?: number;
|
||||
key?: string;
|
||||
displayName?: string;
|
||||
description?: string;
|
||||
crawler?: MetaCrawler;
|
||||
unit?: MetaSensorItemUnit;
|
||||
createDate?: Date;
|
||||
itemType?: MetaSensorItemType;
|
||||
default?: boolean;
|
||||
}
|
||||
8
src/model/meta/MetaSensorDisplayMapping.ts
Normal file
8
src/model/meta/MetaSensorDisplayMapping.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import {MetaSensorDisplayItem} from './MetaSensorDisplayItem';
|
||||
import {MetaSensorItemKey} from './MetaSensorItemKey';
|
||||
|
||||
export interface MetaSensorDisplayMapping {
|
||||
id?: number;
|
||||
displayItem?: MetaSensorDisplayItem;
|
||||
itemKey?: MetaSensorItemKey;
|
||||
}
|
||||
7
src/model/meta/MetaSensorItem.ts
Normal file
7
src/model/meta/MetaSensorItem.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
|
||||
export interface MetaSensorItem {
|
||||
id?: number;
|
||||
key?: string;
|
||||
name?: string;
|
||||
createDate?: Date;
|
||||
}
|
||||
14
src/model/meta/MetaSensorItemKey.ts
Normal file
14
src/model/meta/MetaSensorItemKey.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import {MetaSensorItem} from './MetaSensorItem';
|
||||
import {MetaCrawler} from './MetaCrawler';
|
||||
import {MetaSensorItemUnit} from './MetaSensorItemUnit';
|
||||
|
||||
export interface MetaSensorItemKey {
|
||||
id?: number;
|
||||
item?: MetaSensorItem;
|
||||
key?: string;
|
||||
froms?: string;
|
||||
option?: string;
|
||||
crawler?: MetaCrawler;
|
||||
createDate?: Date;
|
||||
unit?: MetaSensorItemUnit;
|
||||
}
|
||||
7
src/model/meta/MetaSensorItemType.ts
Normal file
7
src/model/meta/MetaSensorItemType.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
|
||||
export interface MetaSensorItemType {
|
||||
id?: number;
|
||||
name?: string;
|
||||
description?: string;
|
||||
createDate?: Date;
|
||||
}
|
||||
7
src/model/meta/MetaSensorItemUnit.ts
Normal file
7
src/model/meta/MetaSensorItemUnit.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
|
||||
export interface MetaSensorItemUnit {
|
||||
id?: number;
|
||||
unit?: string;
|
||||
createDate?: Date;
|
||||
mark?: string;
|
||||
}
|
||||
10
src/model/meta/MetaSensorStatus.ts
Normal file
10
src/model/meta/MetaSensorStatus.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
export interface MetaSensorStatus {
|
||||
id?: number;
|
||||
name?: string;
|
||||
}
|
||||
|
||||
export enum MetaSensorStatus_ID {
|
||||
RUNNING = 1,
|
||||
STOPPED = 2,
|
||||
}
|
||||
9
src/model/meta/MetaVendorCrawler.ts
Normal file
9
src/model/meta/MetaVendorCrawler.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import {MetaCrawler} from './MetaCrawler';
|
||||
import {MetaInfraVendor} from './MetaInfraVendor';
|
||||
|
||||
export interface MetaVendorCrawler {
|
||||
id?: number;
|
||||
crawler: MetaCrawler;
|
||||
infraVendor: MetaInfraVendor;
|
||||
createDate: Date;
|
||||
}
|
||||
12
src/model/meta/MetaVendorCrawlerSensorItem.ts
Normal file
12
src/model/meta/MetaVendorCrawlerSensorItem.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import {MetaSensorItem} from './MetaSensorItem';
|
||||
import {MetaInfraVendor} from './MetaInfraVendor';
|
||||
|
||||
export interface MetaVendorCrawlerSensorItem {
|
||||
id?: number;
|
||||
interval: string;
|
||||
warnCondition: string;
|
||||
createDate: Date;
|
||||
sensorItem: MetaSensorItem;
|
||||
vendor: MetaInfraVendor;
|
||||
crawlerId: number;
|
||||
}
|
||||
25
src/model/meta/index.ts
Normal file
25
src/model/meta/index.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
export * from './MetaCrawler';
|
||||
export * from './MetaCrawlerInputItem';
|
||||
export * from './MetaHistoryType';
|
||||
export * from './MetaInfraType';
|
||||
export * from './MetaInfraVendor';
|
||||
export * from './MetaInputType';
|
||||
export * from './MetaMemberStatus';
|
||||
export * from './MetaNoAuthProbeStatus';
|
||||
export * from './MetaNotification';
|
||||
export * from './MetaProbeArchitecture';
|
||||
export * from './MetaProbeOs';
|
||||
export * from './MetaProbePackage';
|
||||
export * from './MetaProbeStatus';
|
||||
export * from './MetaProbeTaskType';
|
||||
export * from './MetaProbeVersion';
|
||||
export * from './MetaSensorDisplayItem';
|
||||
export * from './MetaSensorDisplayMapping';
|
||||
export * from './MetaSensorItem';
|
||||
export * from './MetaSensorItemKey';
|
||||
export * from './MetaSensorItemType';
|
||||
export * from './MetaSensorItemUnit';
|
||||
export * from './MetaSensorStatus';
|
||||
export * from './MetaVendorCrawler';
|
||||
export * from './MetaVendorCrawlerSensorItem';
|
||||
|
||||
16
src/model/noauth/NoAuthProbe.ts
Normal file
16
src/model/noauth/NoAuthProbe.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import {MetaNoAuthProbeStatus} from '../meta';
|
||||
import {Domain} from '../domain';
|
||||
import {Probe} from '../probe';
|
||||
|
||||
export interface NoAuthProbe {
|
||||
id?: number;
|
||||
description?: string;
|
||||
status?: MetaNoAuthProbeStatus;
|
||||
tempProbeKey?: string;
|
||||
createDate?: Date;
|
||||
apiKey?: string;
|
||||
domain?: Domain;
|
||||
probe?: Probe;
|
||||
connectAddress?: string;
|
||||
connectDate: Date;
|
||||
}
|
||||
1
src/model/noauth/index.ts
Normal file
1
src/model/noauth/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from './NoAuthProbe';
|
||||
11
src/model/notification/Notification.ts
Normal file
11
src/model/notification/Notification.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import {Member} from '../member';
|
||||
|
||||
export interface Notification {
|
||||
id?: number;
|
||||
createDate?: Date;
|
||||
title?: string;
|
||||
message?: string;
|
||||
member?: Member;
|
||||
confirmDate?: Date;
|
||||
url?: string;
|
||||
}
|
||||
1
src/model/notification/index.ts
Normal file
1
src/model/notification/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from './Notification';
|
||||
20
src/model/probe/Probe.ts
Normal file
20
src/model/probe/Probe.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import {MetaProbeStatus} from '../meta';
|
||||
import {Domain} from '../domain';
|
||||
import {Member} from '../member';
|
||||
|
||||
export interface Probe {
|
||||
id?: number;
|
||||
status?: MetaProbeStatus;
|
||||
description?: string;
|
||||
createDate?: Date;
|
||||
domain?: Domain;
|
||||
probeKey?: string;
|
||||
encryptionKey?: string;
|
||||
displayName?: string;
|
||||
cidr?: string;
|
||||
authorizeDate?: Date;
|
||||
authorizeMember?: Member;
|
||||
targetCount: number;
|
||||
connectDate: Date;
|
||||
connectAddress: string;
|
||||
}
|
||||
8
src/model/probe/ProbeHost.ts
Normal file
8
src/model/probe/ProbeHost.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { Probe } from './Probe';
|
||||
import {InfraHost} from '../infra';
|
||||
|
||||
export interface ProbeHost {
|
||||
id?: number;
|
||||
probe?: Probe;
|
||||
host?: InfraHost;
|
||||
}
|
||||
14
src/model/probe/ProbeTask.ts
Normal file
14
src/model/probe/ProbeTask.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { Probe } from './Probe';
|
||||
import {MetaProbeTaskType} from '../meta';
|
||||
|
||||
export interface ProbeTask {
|
||||
id?: number;
|
||||
taskType?: MetaProbeTaskType;
|
||||
probe?: Probe;
|
||||
data?: string;
|
||||
createDate?: Date;
|
||||
sendDate?: Date;
|
||||
startDate?: Date;
|
||||
endDate?: Date;
|
||||
succeed?: boolean;
|
||||
}
|
||||
3
src/model/probe/index.ts
Normal file
3
src/model/probe/index.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export * from './Probe';
|
||||
export * from './ProbeHost';
|
||||
export * from './ProbeTask';
|
||||
9
src/model/sensor-item/SensorItem.ts
Normal file
9
src/model/sensor-item/SensorItem.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import {Sensor} from '../sensor';
|
||||
import {MetaSensorDisplayItem} from '../meta';
|
||||
|
||||
export interface SensorItem {
|
||||
id?: number;
|
||||
sensor?: Sensor;
|
||||
item?: MetaSensorDisplayItem;
|
||||
createDate?: Date;
|
||||
}
|
||||
7
src/model/sensor-item/SensorItemDependency.ts
Normal file
7
src/model/sensor-item/SensorItemDependency.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import {MetaSensorDisplayItem, MetaSensorItemKey} from '../meta';
|
||||
|
||||
export interface SensorItemDependency {
|
||||
id?: number;
|
||||
displayItem?: MetaSensorDisplayItem;
|
||||
sensorItem?: MetaSensorItemKey;
|
||||
}
|
||||
2
src/model/sensor-item/index.ts
Normal file
2
src/model/sensor-item/index.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
export * from './SensorItem';
|
||||
export * from './SensorItemDependency';
|
||||
13
src/model/sensor/Sensor.ts
Normal file
13
src/model/sensor/Sensor.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import {MetaCrawler, MetaSensorStatus} from '../meta';
|
||||
import {Target} from '../target';
|
||||
|
||||
export interface Sensor {
|
||||
id?: number;
|
||||
createDate?: Date;
|
||||
description?: string;
|
||||
status?: MetaSensorStatus;
|
||||
target?: Target;
|
||||
crawler?: MetaCrawler;
|
||||
crawlerInputItems?: string;
|
||||
itemCount?: number;
|
||||
}
|
||||
12
src/model/sensor/SensorRegistInfo.ts
Normal file
12
src/model/sensor/SensorRegistInfo.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import {MetaCrawler, MetaSensorDisplayItem} from '../meta';
|
||||
import {Infra} from '../infra';
|
||||
|
||||
export interface SensorRegistInfo {
|
||||
sensorItemMap: Map<number, Array<MetaSensorDisplayItem>>;
|
||||
crawler: MetaCrawler;
|
||||
// targetId: number;
|
||||
interval: number;
|
||||
// type: string;
|
||||
infra: Infra;
|
||||
crawlerAuth: string;
|
||||
}
|
||||
2
src/model/sensor/index.ts
Normal file
2
src/model/sensor/index.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
export * from './Sensor';
|
||||
export * from './SensorRegistInfo';
|
||||
9
src/model/target/Target.ts
Normal file
9
src/model/target/Target.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import {Sensor} from '../sensor';
|
||||
|
||||
export interface Target {
|
||||
id?: number;
|
||||
createDate?: Date;
|
||||
displayName?: string;
|
||||
description?: string;
|
||||
sensors?: Sensor[];
|
||||
}
|
||||
1
src/model/target/index.ts
Normal file
1
src/model/target/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from './Target';
|
||||
Reference in New Issue
Block a user