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 { export interface Infra {
id?: number; id?: number;
infraType: MetaInfraType; infraType?: MetaInfraType;
childId: number; childId?: number;
createDate: Date; createDate?: Date;
probe: Probe; probe?: Probe;
target: Target; target?: Target;
} }
export default Infra; export default Infra;

View File

@ -1,11 +1,11 @@
import InfraOS from './InfraOS'; import InfraOS from './InfraOS';
interface InfraHost { interface InfraHost {
id: number; id?: number;
os: InfraOS; os?: InfraOS;
ip: number; ip?: number;
mac: number; mac?: number;
createDate: Date; createDate?: Date;
} }
export default InfraHost; export default InfraHost;

View File

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

View File

@ -4,10 +4,10 @@ import MetaInfraVendor from '@overflow/meta/api/model/MetaInfraVendor';
interface InfraOS { interface InfraOS {
id?: number; id?: number;
machine: InfraMachine; machine?: InfraMachine;
meta: string; meta?: string;
createDate: Date; createDate?: Date;
vendor: MetaInfraVendor; vendor?: MetaInfraVendor;
} }
export default InfraOS; export default InfraOS;

View File

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

View File

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

View File

@ -3,12 +3,12 @@ import MetaInfraVendor from '@overflow/meta/api/model/MetaInfraVendor';
interface InfraOSPort { interface InfraOSPort {
id?: number; id?: number;
os: InfraOS; os?: InfraOS;
createDate: Date; createDate?: Date;
port: number; port?: number;
portType: string; portType?: string;
vendor: MetaInfraVendor; vendor?: MetaInfraVendor;
tlsType: boolean; tlsType?: boolean;
} }
export default InfraOSPort; export default InfraOSPort;

View File

@ -3,12 +3,12 @@ import MetaInfraVendor from '@overflow/meta/api/model/MetaInfraVendor';
interface InfraService { interface InfraService {
id?: number; id?: number;
host: InfraHost; host?: InfraHost;
portType: string; portType?: string;
port: number; port?: number;
vendor: MetaInfraVendor; vendor?: MetaInfraVendor;
createDate: Date; createDate?: Date;
tlsType: boolean; tlsType?: boolean;
} }
export default InfraService; export default InfraService;

View File

@ -4,10 +4,10 @@ import MetaMemberStatus from '@overflow/meta/api/model/MetaMemberStatus';
interface Member { interface Member {
id?: number; id?: number;
email: string; email?: string;
name: string; name?: string;
phone: string; phone?: string;
companyName: string; companyName?: string;
createDate?: Date; createDate?: Date;
status?: MetaMemberStatus; status?: MetaMemberStatus;
} }

View File

@ -5,14 +5,14 @@ import Domain from '@overflow/domain/api/model/Domain';
interface NoAuthProbe { interface NoAuthProbe {
id?: number; id?: number;
hostName?: string; hostName?: string;
macAddress: number; macAddress?: number;
ipAddress: number; ipAddress?: number;
status: MetaNoAuthProbeStatus; status?: MetaNoAuthProbeStatus;
tempProbeKey: string; tempProbeKey?: string;
createDate?: Date; createDate?: Date;
apiKey: string; apiKey?: string;
domain?: Domain; domain?: Domain;
probe: Probe; probe?: Probe;
} }
export default NoAuthProbe; export default NoAuthProbe;

View File

@ -5,11 +5,11 @@ import MetaCrawler from '@overflow/meta/api/model/MetaCrawler';
interface Sensor { interface Sensor {
id?: number; id?: number;
createDate?: Date; createDate?: Date;
description: string; description?: string;
status: MetaSensorStatus; status?: MetaSensorStatus;
target: Target; target?: Target;
crawler: MetaCrawler; crawler?: MetaCrawler;
crawlerInputItems: string; crawlerInputItems?: string;
} }
export default Sensor; export default Sensor;

View File

@ -3,8 +3,8 @@ import MetaSensorItem from '@overflow/meta/api/model/MetaSensorItem';
interface SensorItem { interface SensorItem {
id?: number; id?: number;
sensor: Sensor; sensor?: Sensor;
item: MetaSensorItem; item?: MetaSensorItem;
createDate?: Date; createDate?: Date;
} }

View File

@ -4,8 +4,8 @@ import Infra from '@overflow/infra/api/model/Infra';
interface Target { interface Target {
id?: number; id?: number;
createDate?: Date; createDate?: Date;
displayName: string; displayName?: string;
description: string; description?: string;
} }
export default Target; export default Target;