models -> commons-typescript

This commit is contained in:
insanity 2018-05-02 16:23:35 +09:00
parent 10bc516416
commit f538060cef
80 changed files with 22 additions and 762 deletions

2
package-lock.json generated
View File

@ -259,7 +259,7 @@
"@overflow/commons-typescript": {
"version": "0.0.1",
"resolved": "https://nexus.loafle.net/repository/npm-all/@overflow/commons-typescript/-/commons-typescript-0.0.1.tgz",
"integrity": "sha512-7O6lMv1lg6J9j/+Wr7sT1bIHFJ9O1DT0y4W6wJbHxRt+USJF6doHUQs7E+iDX4p1jBhop1Iq+DfGlz83S5qgbg==",
"integrity": "sha512-Y9PdJ06koyJgR7GlGnQPSVaWNLlnDIUCyWgXCZcAbTUpOrreSUpTHG/T5dyYzaEaNJUoDowTWKq2oEzrpSD8TQ==",
"dev": true
},
"@schematics/angular": {

View File

@ -7,7 +7,7 @@ import {
Zone,
DiscoverPort,
DiscoverService
} from '../../model';
} from '@overflow/commons-typescript/model/discovery';
import * as CIDR from 'ip-cidr';
import * as DiscoveredStore from '../../store/setting';
// import * as DiscoverStore from '../../store/discover';
@ -16,11 +16,11 @@ import { SettingSelector, DiscoverSelector } from '../../store';
import * as DiscoverStore from '../../store/discover';
import * as RegistStore from '../../store/regist';
import { Host } from 'packages/discovery/model/Host';
import { Port } from 'packages/discovery/model/Port';
import { Service } from 'packages/discovery/model/Service';
import { Host } from '@overflow/commons-typescript/model/discovery';
import { Port } from '@overflow/commons-typescript/model/discovery';
import { Service } from '@overflow/commons-typescript/model/discovery';
import * as ProbeDetailStore from 'packages/probe/store';
import { Probe } from 'packages/probe/model';
import { Probe } from '@overflow/commons-typescript/model/probe';
import { DetailSelector as ProbeDetailSelector } from 'packages/probe/store';
import { TreeNode } from 'primeng/primeng';
@ -32,7 +32,6 @@ import { TreeNode } from 'primeng/primeng';
@Component({
selector: 'of-discovery-setting',
templateUrl: './setting.component.html',
styleUrls: ['./setting.component.scss']
})
export class SettingComponent implements OnInit, AfterContentInit {

View File

@ -1,15 +0,0 @@
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;
}

View File

@ -1,11 +0,0 @@
import { DiscoverService } from './DiscoverService';
export interface DiscoverPort {
firstScanRange: number;
lastScanRange: number;
excludePorts: number[];
includeTCP: boolean;
includeUDP: boolean;
discoverService?: DiscoverService;
}

View File

@ -1,3 +0,0 @@
export interface DiscoverService {
includeServices: string[];
}

View File

@ -1,7 +0,0 @@
import { DiscoverHost } from './DiscoverHost';
export interface DiscoverZone {
excludePatterns?: string[];
discoverHost?: DiscoverHost;
}

View File

@ -1,11 +0,0 @@
export interface DiscoveryStartInfo {
startIp: string;
endIP: string;
excludeIp?: string;
startPort?: string;
endPort?: string;
services?: Array<string>;
}
// export default DiscoveryStartInfo;

View File

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

View File

@ -1,15 +0,0 @@
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;
}

View File

@ -1,8 +0,0 @@
// enum PortType {
// TCP = 1,
// UDP = 2,
// TLS = 3,
// }
export type PortType = 'TCP' | 'UDP' | 'TLS';

View File

@ -1,10 +0,0 @@
import { Port } from './Port';
export interface Service {
id: number;
cryptoType: string;
serviceName: string;
discoveredDate?: Date;
port: Port;
target?: boolean;
}

View File

@ -1,13 +0,0 @@
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;
}

View File

@ -1,11 +0,0 @@
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';

View File

@ -11,7 +11,7 @@ import {
Host,
Port,
Service,
} from '../model';
} from '@overflow/commons-typescript/model/discovery';
@Injectable()
export class DiscoveryService {

View File

@ -11,8 +11,8 @@ import {
Host,
Port,
Service,
} from '../model';
import { Probe } from 'packages/probe/model';
} from '@overflow/commons-typescript/model/discovery';
import { Probe } from '@overflow/commons-typescript/model/probe';
@Injectable()
export class TargetDiscoveryService {

View File

@ -9,7 +9,7 @@ import {
DiscoverHost as MDDiscoverHost,
DiscoverPort as MDDiscoverPort,
DiscoverService as MDiscoverService,
} from '../../model';
} from '@overflow/commons-typescript/model/discovery';
export enum ActionType {
DiscoverZone = '[discovery.discovery] discoverZone',

View File

@ -13,7 +13,7 @@ import {
Host,
Port,
Service,
} from '../../model';
} from '@overflow/commons-typescript/model/discovery';
// import * as _ 'lodash';

View File

@ -1,6 +1,6 @@
import { RPCClientError } from '@loafer/ng-rpc/protocol';
import { Zone } from '../../model';
import { Zone } from '@overflow/commons-typescript/model/discovery';
export interface State {
error: RPCClientError | null;

View File

@ -11,8 +11,8 @@ import {
DiscoverHost as MDDiscoverHost,
DiscoverPort as MDDiscoverPort,
DiscoverService as MDiscoverService,
} from '../../model';
import { Probe } from 'packages/probe/model';
} from '@overflow/commons-typescript/model/discovery';
import { Probe } from '@overflow/commons-typescript/model/probe';
export enum ActionType {
SaveAllTarget = '[@@REGIST] TargetDiscoveryService.saveAllTarget',

View File

@ -16,7 +16,7 @@ import 'rxjs/add/operator/take';
import { RPCClientError } from '@loafer/ng-rpc/protocol';
import { DiscoveryStartInfo } from '../../model';
import { DiscoveryStartInfo } from '@overflow/commons-typescript/model/discovery';
import { TargetDiscoveryService } from '../../service/target-discovery.service';
import {

View File

@ -8,7 +8,7 @@ import {
initialState,
} from './regist.state';
import { DiscoveryStartInfo } from '../../model';
import { DiscoveryStartInfo } from '@overflow/commons-typescript/model/discovery';
export function reducer(state = initialState, action: Actions): State {
switch (action.type) {

View File

@ -11,7 +11,7 @@ import {
Host,
Port,
Service,
} from '../model';
} from '@overflow/commons-typescript/model/discovery';
@Injectable()
export class DiscoverySubscriber {

View File

@ -1,5 +0,0 @@
export interface Domain {
id?: number;
name?: string;
createDate?: Date;
}

View File

@ -1,9 +0,0 @@
import { Member } from 'packages/member/model';
import { Domain } from './Domain';
export interface DomainMember {
id: number;
createDate: Date;
member: Member;
domain: Domain;
}

View File

@ -1,2 +0,0 @@
export * from './Domain';
export * from './DomainMember';

View File

@ -1,5 +1,5 @@
import { Component, OnInit, AfterContentInit, Input, OnChanges } from '@angular/core';
import { InfraHost } from '../../model';
import { InfraHost } from '@overflow/commons-typescript/model/infra';
@Component({

View File

@ -12,15 +12,15 @@ import * as ListStore from '../../store/list';
import { ListSelector } from '../../store';
import { Page, PageParams } from 'app/commons/model';
import { RPCClientError } from '@loafer/ng-rpc/protocol';
import { Target } from 'packages/target/model';
import { Infra, InfraHost, InfraOSApplication, InfraService } from '../../model';
import { Domain } from 'packages/domain/model';
import { Target } from '@overflow/commons-typescript/src/model/target';
import { Infra, InfraHost, InfraOSApplication, InfraService } from '@overflow/commons-typescript/src/model/infra';
import { Domain } from '@overflow/commons-typescript/src/model/domain';
import { AuthSelector } from 'packages/member/store';
import { sensorListSelector } from 'packages/sensor/store';
import * as SensorListStore from 'packages/sensor/store/list';
import { Sensor } from 'packages/sensor/model';
import { Sensor } from '@overflow/commons-typescript/src/model/sensor';
import * as _ from 'lodash';

View File

@ -1,13 +0,0 @@
import { Probe } from 'packages/probe/model';
import { Target } from 'packages/target/model';
import { MetaInfraType } from '../../meta/infra-type/model/MetaInfraType';
export interface Infra {
id?: number;
infraType?: MetaInfraType;
childId?: number;
createDate?: Date;
probe?: Probe;
target?: Target;
}

View File

@ -1,11 +0,0 @@
import { InfraOS } from './InfraOS';
import { Infra } from './Infra';
export interface InfraHost extends Infra {
// id?: number;
os?: InfraOS;
ipv4?: number;
ipv6?: number;
mac?: number;
createDate?: Date;
}

View File

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

View File

@ -1,11 +0,0 @@
import { InfraMachine } from './InfraMachine';
import { Infra } from './Infra';
import { MetaInfraVendor } from '../../meta/infra-vendor/model/MetaInfraVendor';
export interface InfraOS extends Infra {
// id?: number;
machine?: InfraMachine;
meta?: string;
createDate?: Date;
vendor?: MetaInfraVendor;
}

View File

@ -1,10 +0,0 @@
import { InfraOS } from './InfraOS';
import { Infra } from './Infra';
export interface InfraOSApplication extends Infra {
// id?: number;
os?: InfraOS;
name?: string;
createDate?: Date;
}

View File

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

View File

@ -1,13 +0,0 @@
import { InfraOS } from './InfraOS';
import { Infra } from './Infra';
import { MetaInfraVendor } from 'packages/meta/infra-vendor/model/MetaInfraVendor';
export interface InfraOSPort extends Infra {
// id?: number;
os?: InfraOS;
createDate?: Date;
port?: number;
portType?: string;
vendor?: MetaInfraVendor;
tlsType?: boolean;
}

View File

@ -1,13 +0,0 @@
import { InfraHost } from './InfraHost';
import { Infra } from './Infra';
import { MetaInfraVendor } from 'packages/meta/infra-vendor/model/MetaInfraVendor';
export interface InfraService extends Infra {
// id?: number;
host?: InfraHost;
portType?: string;
port?: number;
vendor?: MetaInfraVendor;
createDate?: Date;
tlsType?: boolean;
}

View File

@ -1,8 +0,0 @@
export * from './InfraHost';
export * from './InfraMachine';
export * from './InfraOSApplication';
export * from './InfraOSDaemon';
export * from './InfraOSPort';
export * from './InfraOS';
export * from './InfraService';
export * from './Infra';

View File

@ -1,13 +0,0 @@
import { MetaMemberStatus } from 'packages/meta/member-status/model/MetaMemberStatus';
export interface Member {
id?: number;
email?: string;
password?: string;
name?: string;
phone?: string;
companyName?: string;
createDate?: Date;
totpType?: boolean;
status?: MetaMemberStatus;
}

View File

@ -1,6 +0,0 @@
export enum MemberStatus {
NOAUTH = 1,
NORMAL = 2,
DORMANCY = 3,
WITHDRAWAL = 4,
}

View File

@ -1,10 +0,0 @@
import { Member } from 'packages/member/model';
export interface MemberTotp {
id?: number;
member: Member;
secretCode?: string;
createDate?: Date;
updateDate?: Date;
otpAuthUrl?: string;
}

View File

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

View File

@ -1,17 +0,0 @@
import { MetaInputType } from 'packages/meta/input-type/model/MetaInputType';
import { MetaCrawler } from 'packages/meta/crawler/model/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;
}

View File

@ -1,34 +0,0 @@
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,
}

View File

@ -1,14 +0,0 @@
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,
}

View File

@ -1,16 +0,0 @@
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,
}

View File

@ -1,65 +0,0 @@
import { MetaInfraType } from 'packages/meta/infra-type/model/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,
}

View File

@ -1,15 +0,0 @@
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,
}

View File

@ -1,12 +0,0 @@
export interface MetaMemberStatus {
id: number;
name: string;
}
export enum MetaMemberStatus_ID {
NOAUTH = 1,
NORMAL = 2,
DIAPAUSE = 3,
WITHDRAWAL = 4,
}

View File

@ -1,10 +0,0 @@
import { MetaCrawler } from 'packages/meta/crawler/model/MetaCrawler';
import { MetaInfraVendor } from 'packages/meta/infra-vendor/model/MetaInfraVendor';
export interface MetaVendorCrawler {
id?: number;
crawler: MetaCrawler;
infraVendor: MetaInfraVendor;
createDate: Date;
}

View File

@ -1,13 +0,0 @@
import { MetaSensorItem } from 'packages/meta/sensor-item/model/MetaSensorItem';
import { MetaInfraVendor } from 'packages/meta/infra-vendor/model/MetaInfraVendor';
export interface MetaVendorCrawlerSensorItem {
id?: number;
interval: string;
warnCondition: string;
createDate: Date;
sensorItem: MetaSensorItem;
vendor: MetaInfraVendor;
crawlerId: number;
}

View File

@ -1,11 +0,0 @@
export interface MetaNoAuthProbeStatus {
id?: number;
name: string;
}
export enum MetaNoAuthProbeStatus_ID {
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

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

View File

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

View File

@ -1,11 +0,0 @@
import { MetaProbeVersion } from 'packages/meta/probe-version/model/MetaProbeVersion';
import { MetaProbeOs } from 'packages/meta/probe-os/model/MetaProbeOs';
import { MetaProbeArchitecture } from 'packages/meta/probe-architecture/model/MetaProbeArchitecture';
export interface MetaProbePackage {
id?: number;
version: MetaProbeVersion;
os: MetaProbeOs;
architecture: MetaProbeArchitecture;
createDate: Date;
}

View File

@ -1,10 +0,0 @@
export interface MetaProbeStatus {
id: number;
name: string;
}
export enum MetaProbeStatus_ID {
INITIAL = 1,
NORMAL = 2,
}

View File

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

View File

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

View File

@ -1,15 +0,0 @@
import { MetaCrawler } from 'packages/meta/crawler/model/MetaCrawler';
import { MetaSensorItemUnit } from 'packages/meta/sensor-item-unit/model/MetaSensorItemUnit';
import { MetaSensorItemType } from 'packages/meta/sensor-item-type/model/MetaSensorItemType';
export interface MetaSensorDisplayItem {
id?: number;
key?: string;
displayName?: string;
description?: string;
crawler?: MetaCrawler;
unit?: MetaSensorItemUnit;
createDate?: Date;
default?: boolean;
itemType?: MetaSensorItemType;
}

View File

@ -1,12 +0,0 @@
import { MetaSensorItem } from 'packages/meta/sensor-item/model/MetaSensorItem';
import { MetaCrawler } from 'packages/meta/crawler/model/MetaCrawler';
export interface MetaSensorItemKey {
id: number;
item: MetaSensorItem;
key: string;
froms: string;
option: string;
crawler: MetaCrawler;
createDate: Date;
}

View File

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

View File

@ -1,6 +0,0 @@
export interface MetaSensorItemUnit {
id: number;
unit: string;
createDate: Date;
mark: string;
}

View File

@ -1,10 +0,0 @@
import { MetaSensorItemType } from 'packages/meta/sensor-item-type/model/MetaSensorItemType';
export interface MetaSensorItem {
id?: number;
itemType?: MetaSensorItemType;
key?: string;
name?: string;
createDate?: Date;
}

View File

@ -1,10 +0,0 @@
export interface MetaSensorStatus {
id?: number;
name?: string;
}
export enum MetaSensorStatus_ID {
RUNNING = 1,
STOPPED = 2,
}

View File

@ -1,24 +0,0 @@
import { Probe } from 'packages/probe/model';
import { Domain } from 'packages/domain/model';
import { MetaNoAuthProbeStatus } from 'packages/meta/noauth-probe-status/model/MetaNoAuthProbeStatus';
export interface NoAuthProbe {
// id?: number;
// hostName?: string;
// macAddress?: number;
// ipAddress?: number;
// status?: MetaNoAuthProbeStatus;
// tempProbeKey?: string;
// createDate?: Date;
// apiKey?: string;
// domain?: Domain;
// probe?: Probe;
id?: number;
description?: string;
status?: MetaNoAuthProbeStatus;
tempProbeKey?: string;
createDate?: Date;
apiKey?: string;
domain?: Domain;
probe?: Probe;
}

View File

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

View File

@ -1,14 +0,0 @@
import { Member } from 'packages/member/model';
export interface Notification {
id?: number;
createDate?: Date;
title?: string;
message?: string;
member?: Member;
confirmDate?: Date;
url?: string;
}

View File

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

View File

@ -1,20 +0,0 @@
import { Domain } from 'packages/domain/model';
import { Member } from 'packages/member/model';
import { Infra } from 'packages/infra/model';
import { MetaProbeStatus } from 'packages/meta/probe-status/model/MetaProbeStatus';
export interface Probe {
id?: number;
status?: MetaProbeStatus; // INITIAL / NORMAL
description?: string;
createDate?: Date;
domain?: Domain;
probeKey?: string;
encryptionKey?: string;
displayName?: string;
cidr?: string;
authorizeDate?: Date;
authorizeMember?: Member;
// host?: InfraHost;
targets?: Infra[];
}

View File

@ -1,9 +0,0 @@
import { Probe } from './Probe';
import { InfraHost } from 'packages/infra/model';
export interface ProbeHost {
id?: number;
probe?: Probe;
host?: InfraHost;
}

View File

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

View File

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

View File

@ -1,9 +0,0 @@
import { MetaSensorDisplayItem } from 'packages/meta/sensor-display-item/model/MetaSensorDisplayItem';
import { Sensor } from 'packages/sensor/model';
export interface SensorItem {
id?: number;
sensor?: Sensor;
item?: MetaSensorDisplayItem;
createDate?: Date;
}

View File

@ -1,8 +0,0 @@
import { MetaSensorDisplayItem } from 'packages/meta/sensor-display-item/model/MetaSensorDisplayItem';
import { MetaSensorItemKey } from '../../meta/sensor-item-key/model/MetaSensorItemKey';
export interface SensorItemDependency {
id?: number;
item?: MetaSensorDisplayItem;
sensorItem?: MetaSensorItemKey;
}

View File

@ -1,15 +0,0 @@
import { Target } from 'packages/target/model';
import { MetaSensorStatus } from 'packages/meta/sensor-status/model/MetaSensorStatus';
import { MetaCrawler } from 'packages/meta/crawler/model/MetaCrawler';
export interface Sensor {
id?: number;
createDate?: Date;
description?: string;
status?: MetaSensorStatus;
target?: Target;
crawler?: MetaCrawler;
crawlerInputItems?: string;
itemCount?: number;
displayName?: string;
}

View File

@ -1,14 +0,0 @@
import { Infra } from 'packages/infra/model';
import { MetaCrawler } from 'packages/meta/crawler/model/MetaCrawler';
import { MetaSensorDisplayItem } from 'packages/meta/sensor-display-item/model/MetaSensorDisplayItem';
export interface SensorRegistInfo {
sensorItemMap: Map<number, Array<MetaSensorDisplayItem>>;
crawler: MetaCrawler;
// targetId: number;
interval: number;
// type: string;
infra: Infra;
crawlerAuth: string;
}

View File

@ -1,2 +0,0 @@
export * from './Sensor';
export * from './SensorRegistInfo';

View File

@ -1,12 +0,0 @@
import { Probe } from 'packages/probe/model';
import { Infra } from 'packages/infra/model';
import { Sensor } from 'packages/sensor/model';
export interface Target {
id?: number;
createDate?: Date;
displayName?: string;
description?: string;
sensorCount?: number;
sensors?: Sensor[];
}

View File

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