models' optional propery mark has addded

This commit is contained in:
insanity 2017-08-01 11:35:38 +09:00
parent b7aea7ff82
commit 6a9cc22a06
13 changed files with 54 additions and 54 deletions

View File

@ -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;

View File

@ -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;

View File

@ -1,8 +1,8 @@
interface InfraMachine {
id: number;
meta: string;
createDate: Date;
id?: number;
meta?: string;
createDate?: Date;
}
export default InfraMachine;

View File

@ -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;

View File

@ -3,9 +3,9 @@ import InfraOS from './InfraOS';
interface InfraOSApplication {
id?: number;
os: InfraOS;
name: string;
createDate: Date;
os?: InfraOS;
name?: string;
createDate?: Date;
}

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;
}

View File

@ -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;

View File

@ -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;

View File

@ -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;
}

View File

@ -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;