From 9a523e2fac08fce251af0a12c1b8a3ebe8479fbc Mon Sep 17 00:00:00 2001 From: snoop Date: Mon, 3 Jul 2017 16:27:12 +0900 Subject: [PATCH] option added --- src/ts/apikey/api/model/ApiKey.ts | 4 ++-- src/ts/discovery/api/model/Host.ts | 6 +++--- src/ts/discovery/api/model/Port.ts | 6 +++--- src/ts/meta/api/model/MetaCrawler.ts | 8 ++++---- src/ts/meta/api/model/MetaCrawlerInputItem.ts | 12 ++++++------ src/ts/meta/api/model/MetaInfraType.ts | 4 ++-- src/ts/meta/api/model/MetaInfraVendor.ts | 4 ++-- src/ts/meta/api/model/MetaInputType.ts | 6 +++--- src/ts/meta/api/model/MetaMemberStatus.ts | 2 +- src/ts/meta/api/model/MetaNoAuthProbeStatus.ts | 2 +- src/ts/meta/api/model/MetaNotification.ts | 6 +++--- src/ts/meta/api/model/MetaProbeArchitecture.ts | 4 ++-- src/ts/meta/api/model/MetaProbePackage.ts | 4 ++-- src/ts/meta/api/model/MetaVendorCrawlerSensorItem.ts | 4 ++-- 14 files changed, 36 insertions(+), 36 deletions(-) diff --git a/src/ts/apikey/api/model/ApiKey.ts b/src/ts/apikey/api/model/ApiKey.ts index 55a4017..c615daf 100644 --- a/src/ts/apikey/api/model/ApiKey.ts +++ b/src/ts/apikey/api/model/ApiKey.ts @@ -2,9 +2,9 @@ import Domain from 'domain/api/model/Domain'; export interface ApiKey { - id: number; + id?: number; apiKey: string; - createDate: Date; + createDate?: Date; domain: Domain; } diff --git a/src/ts/discovery/api/model/Host.ts b/src/ts/discovery/api/model/Host.ts index 019d55a..5396161 100644 --- a/src/ts/discovery/api/model/Host.ts +++ b/src/ts/discovery/api/model/Host.ts @@ -1,14 +1,14 @@ import Port from './Port'; interface Host { - id: number; + id?: number; ip: number; mac: number; - createDate: Date; + createDate?: Date; updateDate: Date; os: string; target: boolean; - ports: Port[]; + ports?: Port[]; } export default Host; \ No newline at end of file diff --git a/src/ts/discovery/api/model/Port.ts b/src/ts/discovery/api/model/Port.ts index 4268285..511311f 100644 --- a/src/ts/discovery/api/model/Port.ts +++ b/src/ts/discovery/api/model/Port.ts @@ -3,12 +3,12 @@ import Service from './Service'; import PortType from './PortType'; interface Port { - id: number; + id?: number; host: Host; portType: PortType; portNumber: number; - services: Service[]; - createDate: Date; + services?: Service[]; + createDate?: Date; updateDate: Date; } diff --git a/src/ts/meta/api/model/MetaCrawler.ts b/src/ts/meta/api/model/MetaCrawler.ts index 89ee451..5a2bca3 100644 --- a/src/ts/meta/api/model/MetaCrawler.ts +++ b/src/ts/meta/api/model/MetaCrawler.ts @@ -1,12 +1,12 @@ interface MetaCrawler { - id: number; - createDate: Date; + id?: number; + createDate?: Date; name: string; - description: string; + description?: string; } -enum MetaCrawler_ID { +export enum MetaCrawler_ID { ACTIVEDIRECTORY_CRAWLER = 1, CASSANDRA_CRAWLER = 2, DHCP_CRAWLER = 3, diff --git a/src/ts/meta/api/model/MetaCrawlerInputItem.ts b/src/ts/meta/api/model/MetaCrawlerInputItem.ts index d4eda22..51bfe6b 100644 --- a/src/ts/meta/api/model/MetaCrawlerInputItem.ts +++ b/src/ts/meta/api/model/MetaCrawlerInputItem.ts @@ -3,17 +3,17 @@ import MetaInputType from './MetaInputType'; import MetaCrawler from './MetaCrawler'; interface MetaCrawlerInputItem { - id: number; + id?: number; metaInputType: MetaInputType; metaCrawler: MetaCrawler; - description: string; + description?: string; name: string; - createDate: Date; + createDate?: Date; required: boolean; defaultValue: string; - pattern: string; - keyName: string; - keyValue: string; + pattern?: string; + keyName?: string; + keyValue?: string; } export default MetaCrawlerInputItem; \ No newline at end of file diff --git a/src/ts/meta/api/model/MetaInfraType.ts b/src/ts/meta/api/model/MetaInfraType.ts index b01f447..209ca13 100644 --- a/src/ts/meta/api/model/MetaInfraType.ts +++ b/src/ts/meta/api/model/MetaInfraType.ts @@ -1,8 +1,8 @@ interface MetaInfraType { - id: number; + id?: number; name: string; - createDate: Date; + createDate?: Date; } export enum MetaInfraType_ID { diff --git a/src/ts/meta/api/model/MetaInfraVendor.ts b/src/ts/meta/api/model/MetaInfraVendor.ts index e989625..f43aba8 100644 --- a/src/ts/meta/api/model/MetaInfraVendor.ts +++ b/src/ts/meta/api/model/MetaInfraVendor.ts @@ -2,9 +2,9 @@ import MetaInfraType from './MetaInfraType'; interface MetaInfraVendor { - id: number; + id?: number; name: string; - createDate: Date; + createDate?: Date; metaInfraType: MetaInfraType; } diff --git a/src/ts/meta/api/model/MetaInputType.ts b/src/ts/meta/api/model/MetaInputType.ts index 135d588..0a4ccd7 100644 --- a/src/ts/meta/api/model/MetaInputType.ts +++ b/src/ts/meta/api/model/MetaInputType.ts @@ -1,9 +1,9 @@ interface MetaInputType { - id: number; + id?: number; name: string; - description: string; - createDate: Date; + description?: string; + createDate?: Date; } export enum MetaInputType_ID { diff --git a/src/ts/meta/api/model/MetaMemberStatus.ts b/src/ts/meta/api/model/MetaMemberStatus.ts index 4fcc866..6b2734a 100644 --- a/src/ts/meta/api/model/MetaMemberStatus.ts +++ b/src/ts/meta/api/model/MetaMemberStatus.ts @@ -1,6 +1,6 @@ interface MetaMemberStatus { - id: number; + id?: number; name: string; } diff --git a/src/ts/meta/api/model/MetaNoAuthProbeStatus.ts b/src/ts/meta/api/model/MetaNoAuthProbeStatus.ts index 3490c39..841d827 100644 --- a/src/ts/meta/api/model/MetaNoAuthProbeStatus.ts +++ b/src/ts/meta/api/model/MetaNoAuthProbeStatus.ts @@ -1,6 +1,6 @@ interface MetaNoAuthProbeStatus { - id: number; + id?: number; name: string; } diff --git a/src/ts/meta/api/model/MetaNotification.ts b/src/ts/meta/api/model/MetaNotification.ts index bfb1f13..eb204ca 100644 --- a/src/ts/meta/api/model/MetaNotification.ts +++ b/src/ts/meta/api/model/MetaNotification.ts @@ -1,9 +1,9 @@ interface MetaNotification { - id: number; - createDate: Date; + id?: number; + createDate?: Date; name: string; - description: string; + description?: string; } export default MetaNotification; \ No newline at end of file diff --git a/src/ts/meta/api/model/MetaProbeArchitecture.ts b/src/ts/meta/api/model/MetaProbeArchitecture.ts index 2f3da75..4a19969 100644 --- a/src/ts/meta/api/model/MetaProbeArchitecture.ts +++ b/src/ts/meta/api/model/MetaProbeArchitecture.ts @@ -1,8 +1,8 @@ interface MetaProbeArchitecture { - id: number; + id?: number; architecture: string; - createDate: Date; + createDate?: Date; } export enum MetaProbeArchitecture_ID { diff --git a/src/ts/meta/api/model/MetaProbePackage.ts b/src/ts/meta/api/model/MetaProbePackage.ts index be24a88..11ae2a0 100644 --- a/src/ts/meta/api/model/MetaProbePackage.ts +++ b/src/ts/meta/api/model/MetaProbePackage.ts @@ -3,11 +3,11 @@ import MetaProbeOs from './MetaProbeOs'; import MetaProbeArchitecture from './MetaProbeArchitecture'; interface MetaProbePackage { - id: number; + id?: number; version: MetaProbeVersion; os: MetaProbeOs; architecture: MetaProbeArchitecture; - createDate: Date; + createDate?: Date; } export default MetaProbePackage; diff --git a/src/ts/meta/api/model/MetaVendorCrawlerSensorItem.ts b/src/ts/meta/api/model/MetaVendorCrawlerSensorItem.ts index f70cb67..72e27af 100644 --- a/src/ts/meta/api/model/MetaVendorCrawlerSensorItem.ts +++ b/src/ts/meta/api/model/MetaVendorCrawlerSensorItem.ts @@ -3,10 +3,10 @@ import MetaInfraVendor from './MetaInfraVendor'; import MetaSensorItem from './MetaSensorItem'; interface MetaVendorCrawlerSensorItem { - id: number; + id?: number; interval: string; warnCondition: string; - createDate: Date; + createDate?: Date; metaSensorItem: MetaSensorItem; metaInfraVendor: MetaInfraVendor; crawlerId: number;