From 6a9cc22a06a6eb08f9b1ce7efc3cf0d7d061e4f7 Mon Sep 17 00:00:00 2001 From: insanity Date: Tue, 1 Aug 2017 11:35:38 +0900 Subject: [PATCH] models' optional propery mark has addded --- src/ts/@overflow/infra/api/model/Infra.ts | 10 +++++----- src/ts/@overflow/infra/api/model/InfraHost.ts | 10 +++++----- src/ts/@overflow/infra/api/model/InfraMachine.ts | 6 +++--- src/ts/@overflow/infra/api/model/InfraOS.ts | 8 ++++---- .../@overflow/infra/api/model/InfraOSApplication.ts | 6 +++--- src/ts/@overflow/infra/api/model/InfraOSDaemon.ts | 6 +++--- src/ts/@overflow/infra/api/model/InfraOSPort.ts | 12 ++++++------ src/ts/@overflow/infra/api/model/InfraService.ts | 12 ++++++------ src/ts/@overflow/member/api/model/Member.ts | 8 ++++---- .../@overflow/noauthprobe/api/model/NoAuthProbe.ts | 12 ++++++------ src/ts/@overflow/sensor/api/model/Sensor.ts | 10 +++++----- src/ts/@overflow/sensor/api/model/SensorItem.ts | 4 ++-- src/ts/@overflow/target/api/model/Target.ts | 4 ++-- 13 files changed, 54 insertions(+), 54 deletions(-) diff --git a/src/ts/@overflow/infra/api/model/Infra.ts b/src/ts/@overflow/infra/api/model/Infra.ts index 069bf99..9273cd6 100644 --- a/src/ts/@overflow/infra/api/model/Infra.ts +++ b/src/ts/@overflow/infra/api/model/Infra.ts @@ -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; diff --git a/src/ts/@overflow/infra/api/model/InfraHost.ts b/src/ts/@overflow/infra/api/model/InfraHost.ts index 5575767..f112202 100644 --- a/src/ts/@overflow/infra/api/model/InfraHost.ts +++ b/src/ts/@overflow/infra/api/model/InfraHost.ts @@ -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; diff --git a/src/ts/@overflow/infra/api/model/InfraMachine.ts b/src/ts/@overflow/infra/api/model/InfraMachine.ts index 1b9d570..c74330e 100644 --- a/src/ts/@overflow/infra/api/model/InfraMachine.ts +++ b/src/ts/@overflow/infra/api/model/InfraMachine.ts @@ -1,8 +1,8 @@ interface InfraMachine { - id: number; - meta: string; - createDate: Date; + id?: number; + meta?: string; + createDate?: Date; } export default InfraMachine; diff --git a/src/ts/@overflow/infra/api/model/InfraOS.ts b/src/ts/@overflow/infra/api/model/InfraOS.ts index e6e219e..3c75e7e 100644 --- a/src/ts/@overflow/infra/api/model/InfraOS.ts +++ b/src/ts/@overflow/infra/api/model/InfraOS.ts @@ -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; diff --git a/src/ts/@overflow/infra/api/model/InfraOSApplication.ts b/src/ts/@overflow/infra/api/model/InfraOSApplication.ts index b943d46..821acbf 100644 --- a/src/ts/@overflow/infra/api/model/InfraOSApplication.ts +++ b/src/ts/@overflow/infra/api/model/InfraOSApplication.ts @@ -3,9 +3,9 @@ import InfraOS from './InfraOS'; interface InfraOSApplication { id?: number; - os: InfraOS; - name: string; - createDate: Date; + os?: InfraOS; + name?: string; + createDate?: Date; } diff --git a/src/ts/@overflow/infra/api/model/InfraOSDaemon.ts b/src/ts/@overflow/infra/api/model/InfraOSDaemon.ts index 74e42b3..f42962d 100644 --- a/src/ts/@overflow/infra/api/model/InfraOSDaemon.ts +++ b/src/ts/@overflow/infra/api/model/InfraOSDaemon.ts @@ -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; diff --git a/src/ts/@overflow/infra/api/model/InfraOSPort.ts b/src/ts/@overflow/infra/api/model/InfraOSPort.ts index 1ce58af..bd9ce5a 100644 --- a/src/ts/@overflow/infra/api/model/InfraOSPort.ts +++ b/src/ts/@overflow/infra/api/model/InfraOSPort.ts @@ -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; diff --git a/src/ts/@overflow/infra/api/model/InfraService.ts b/src/ts/@overflow/infra/api/model/InfraService.ts index ec867b8..8ce91ab 100644 --- a/src/ts/@overflow/infra/api/model/InfraService.ts +++ b/src/ts/@overflow/infra/api/model/InfraService.ts @@ -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; diff --git a/src/ts/@overflow/member/api/model/Member.ts b/src/ts/@overflow/member/api/model/Member.ts index cb78d02..2e28822 100644 --- a/src/ts/@overflow/member/api/model/Member.ts +++ b/src/ts/@overflow/member/api/model/Member.ts @@ -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; } diff --git a/src/ts/@overflow/noauthprobe/api/model/NoAuthProbe.ts b/src/ts/@overflow/noauthprobe/api/model/NoAuthProbe.ts index 56fafc8..99da8f4 100644 --- a/src/ts/@overflow/noauthprobe/api/model/NoAuthProbe.ts +++ b/src/ts/@overflow/noauthprobe/api/model/NoAuthProbe.ts @@ -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; diff --git a/src/ts/@overflow/sensor/api/model/Sensor.ts b/src/ts/@overflow/sensor/api/model/Sensor.ts index 91d5fd9..04fe7f9 100644 --- a/src/ts/@overflow/sensor/api/model/Sensor.ts +++ b/src/ts/@overflow/sensor/api/model/Sensor.ts @@ -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; diff --git a/src/ts/@overflow/sensor/api/model/SensorItem.ts b/src/ts/@overflow/sensor/api/model/SensorItem.ts index 5ec8f12..f581c40 100644 --- a/src/ts/@overflow/sensor/api/model/SensorItem.ts +++ b/src/ts/@overflow/sensor/api/model/SensorItem.ts @@ -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; } diff --git a/src/ts/@overflow/target/api/model/Target.ts b/src/ts/@overflow/target/api/model/Target.ts index 0f00459..f48f388 100644 --- a/src/ts/@overflow/target/api/model/Target.ts +++ b/src/ts/@overflow/target/api/model/Target.ts @@ -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;