models' optional propery mark has addded
This commit is contained in:
parent
b7aea7ff82
commit
6a9cc22a06
|
@ -5,11 +5,11 @@ import Target from '@overflow/target/api/model/Target';
|
|||
|
||||
export interface Infra {
|
||||
id?: number;
|
||||
infraType: MetaInfraType;
|
||||
childId: number;
|
||||
createDate: Date;
|
||||
probe: Probe;
|
||||
target: Target;
|
||||
infraType?: MetaInfraType;
|
||||
childId?: number;
|
||||
createDate?: Date;
|
||||
probe?: Probe;
|
||||
target?: Target;
|
||||
}
|
||||
|
||||
export default Infra;
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
import InfraOS from './InfraOS';
|
||||
|
||||
interface InfraHost {
|
||||
id: number;
|
||||
os: InfraOS;
|
||||
ip: number;
|
||||
mac: number;
|
||||
createDate: Date;
|
||||
id?: number;
|
||||
os?: InfraOS;
|
||||
ip?: number;
|
||||
mac?: number;
|
||||
createDate?: Date;
|
||||
}
|
||||
|
||||
export default InfraHost;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
|
||||
interface InfraMachine {
|
||||
id: number;
|
||||
meta: string;
|
||||
createDate: Date;
|
||||
id?: number;
|
||||
meta?: string;
|
||||
createDate?: Date;
|
||||
}
|
||||
|
||||
export default InfraMachine;
|
||||
|
|
|
@ -4,10 +4,10 @@ import MetaInfraVendor from '@overflow/meta/api/model/MetaInfraVendor';
|
|||
|
||||
interface InfraOS {
|
||||
id?: number;
|
||||
machine: InfraMachine;
|
||||
meta: string;
|
||||
createDate: Date;
|
||||
vendor: MetaInfraVendor;
|
||||
machine?: InfraMachine;
|
||||
meta?: string;
|
||||
createDate?: Date;
|
||||
vendor?: MetaInfraVendor;
|
||||
}
|
||||
|
||||
export default InfraOS;
|
||||
|
|
|
@ -3,9 +3,9 @@ import InfraOS from './InfraOS';
|
|||
|
||||
interface InfraOSApplication {
|
||||
id?: number;
|
||||
os: InfraOS;
|
||||
name: string;
|
||||
createDate: Date;
|
||||
os?: InfraOS;
|
||||
name?: string;
|
||||
createDate?: Date;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -2,9 +2,9 @@ import InfraOS from './InfraOS';
|
|||
|
||||
interface InfraOSDaemon {
|
||||
id?: number;
|
||||
os: InfraOS;
|
||||
name: string;
|
||||
createDate: Date;
|
||||
os?: InfraOS;
|
||||
name?: string;
|
||||
createDate?: Date;
|
||||
}
|
||||
|
||||
export default InfraOSDaemon;
|
||||
|
|
|
@ -3,12 +3,12 @@ import MetaInfraVendor from '@overflow/meta/api/model/MetaInfraVendor';
|
|||
|
||||
interface InfraOSPort {
|
||||
id?: number;
|
||||
os: InfraOS;
|
||||
createDate: Date;
|
||||
port: number;
|
||||
portType: string;
|
||||
vendor: MetaInfraVendor;
|
||||
tlsType: boolean;
|
||||
os?: InfraOS;
|
||||
createDate?: Date;
|
||||
port?: number;
|
||||
portType?: string;
|
||||
vendor?: MetaInfraVendor;
|
||||
tlsType?: boolean;
|
||||
}
|
||||
|
||||
export default InfraOSPort;
|
||||
|
|
|
@ -3,12 +3,12 @@ import MetaInfraVendor from '@overflow/meta/api/model/MetaInfraVendor';
|
|||
|
||||
interface InfraService {
|
||||
id?: number;
|
||||
host: InfraHost;
|
||||
portType: string;
|
||||
port: number;
|
||||
vendor: MetaInfraVendor;
|
||||
createDate: Date;
|
||||
tlsType: boolean;
|
||||
host?: InfraHost;
|
||||
portType?: string;
|
||||
port?: number;
|
||||
vendor?: MetaInfraVendor;
|
||||
createDate?: Date;
|
||||
tlsType?: boolean;
|
||||
}
|
||||
|
||||
export default InfraService;
|
||||
|
|
|
@ -4,10 +4,10 @@ import MetaMemberStatus from '@overflow/meta/api/model/MetaMemberStatus';
|
|||
|
||||
interface Member {
|
||||
id?: number;
|
||||
email: string;
|
||||
name: string;
|
||||
phone: string;
|
||||
companyName: string;
|
||||
email?: string;
|
||||
name?: string;
|
||||
phone?: string;
|
||||
companyName?: string;
|
||||
createDate?: Date;
|
||||
status?: MetaMemberStatus;
|
||||
}
|
||||
|
|
|
@ -5,14 +5,14 @@ import Domain from '@overflow/domain/api/model/Domain';
|
|||
interface NoAuthProbe {
|
||||
id?: number;
|
||||
hostName?: string;
|
||||
macAddress: number;
|
||||
ipAddress: number;
|
||||
status: MetaNoAuthProbeStatus;
|
||||
tempProbeKey: string;
|
||||
macAddress?: number;
|
||||
ipAddress?: number;
|
||||
status?: MetaNoAuthProbeStatus;
|
||||
tempProbeKey?: string;
|
||||
createDate?: Date;
|
||||
apiKey: string;
|
||||
apiKey?: string;
|
||||
domain?: Domain;
|
||||
probe: Probe;
|
||||
probe?: Probe;
|
||||
}
|
||||
|
||||
export default NoAuthProbe;
|
||||
|
|
|
@ -5,11 +5,11 @@ import MetaCrawler from '@overflow/meta/api/model/MetaCrawler';
|
|||
interface Sensor {
|
||||
id?: number;
|
||||
createDate?: Date;
|
||||
description: string;
|
||||
status: MetaSensorStatus;
|
||||
target: Target;
|
||||
crawler: MetaCrawler;
|
||||
crawlerInputItems: string;
|
||||
description?: string;
|
||||
status?: MetaSensorStatus;
|
||||
target?: Target;
|
||||
crawler?: MetaCrawler;
|
||||
crawlerInputItems?: string;
|
||||
}
|
||||
|
||||
export default Sensor;
|
||||
|
|
|
@ -3,8 +3,8 @@ import MetaSensorItem from '@overflow/meta/api/model/MetaSensorItem';
|
|||
|
||||
interface SensorItem {
|
||||
id?: number;
|
||||
sensor: Sensor;
|
||||
item: MetaSensorItem;
|
||||
sensor?: Sensor;
|
||||
item?: MetaSensorItem;
|
||||
createDate?: Date;
|
||||
}
|
||||
|
||||
|
|
|
@ -4,8 +4,8 @@ import Infra from '@overflow/infra/api/model/Infra';
|
|||
interface Target {
|
||||
id?: number;
|
||||
createDate?: Date;
|
||||
displayName: string;
|
||||
description: string;
|
||||
displayName?: string;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
export default Target;
|
||||
|
|
Loading…
Reference in New Issue
Block a user