From d07cbc1b5dfaa3cbde17e7d9dfba69d669ff929f Mon Sep 17 00:00:00 2001 From: insanity Date: Tue, 12 Jun 2018 14:23:07 +0900 Subject: [PATCH] enums --- src/model/meta/MetaEmailType.ts | 5 +++++ src/model/meta/MetaIPType.ts | 4 ++++ src/model/meta/MetaInfraType.ts | 5 +++++ src/model/meta/MetaMemberStatus.ts | 12 ++++++------ src/model/meta/MetaNoAuthProbeStatus.ts | 10 +++++----- src/model/meta/MetaProbeStatus.ts | 8 ++++---- src/model/meta/MetaTargetHostType.ts | 3 +++ src/model/meta/MetaTargetServiceType.ts | 3 +++ src/model/meta/MetaTargetStatus.ts | 6 ++++++ src/model/meta/MetaTargetZoneType.ts | 4 ++++ 10 files changed, 45 insertions(+), 15 deletions(-) diff --git a/src/model/meta/MetaEmailType.ts b/src/model/meta/MetaEmailType.ts index 6dedecd..d241345 100644 --- a/src/model/meta/MetaEmailType.ts +++ b/src/model/meta/MetaEmailType.ts @@ -4,3 +4,8 @@ export interface MetaEmailType { key?: string; createDate?: Date; } + +export enum MetaEmailTypeEnum { + SIGNUP = 1, + RESET_PASSWORD = 2, +} \ No newline at end of file diff --git a/src/model/meta/MetaIPType.ts b/src/model/meta/MetaIPType.ts index da572c7..8e057d9 100644 --- a/src/model/meta/MetaIPType.ts +++ b/src/model/meta/MetaIPType.ts @@ -5,3 +5,7 @@ export interface MetaIPType { createDate?: Date; } +export enum MetaIPTypeEnum { + V4 = 1, + V6 = 2, +} \ No newline at end of file diff --git a/src/model/meta/MetaInfraType.ts b/src/model/meta/MetaInfraType.ts index 7d8429a..89de410 100644 --- a/src/model/meta/MetaInfraType.ts +++ b/src/model/meta/MetaInfraType.ts @@ -5,3 +5,8 @@ export interface MetaInfraType { createDate?: Date; } +export enum MetaInfraTypeEnum { + ZONE = 1, + HOST = 2, + SERVICE = 3, +} \ No newline at end of file diff --git a/src/model/meta/MetaMemberStatus.ts b/src/model/meta/MetaMemberStatus.ts index 3bbee0d..7ecc422 100644 --- a/src/model/meta/MetaMemberStatus.ts +++ b/src/model/meta/MetaMemberStatus.ts @@ -6,9 +6,9 @@ export interface MetaMemberStatus { createDate?: Date; } -// export enum MetaMemberStatusEnum { -// NOAUTH = 1, -// NORMAL = 2, -// DIAPAUSE = 3, -// WITHDRAWAL = 4, -// } +export enum MetaMemberStatusEnum { + NOAUTH = 1, + NORMAL = 2, + DORMANCY = 3, + WITHDRAWAL = 4, +} diff --git a/src/model/meta/MetaNoAuthProbeStatus.ts b/src/model/meta/MetaNoAuthProbeStatus.ts index 5d44dcc..bf299e8 100644 --- a/src/model/meta/MetaNoAuthProbeStatus.ts +++ b/src/model/meta/MetaNoAuthProbeStatus.ts @@ -6,8 +6,8 @@ export interface MetaNoAuthProbeStatus { createDate?: Date; } -// export enum MetaNoAuthProbeStatusEnum { -// ACCEPT = 1, -// DENY = 2, -// PROCESS = 3, -// } +export enum MetaNoAuthProbeStatusEnum { + ACCEPTED = 1, + DENIED = 2, + PROCESSING = 3, +} diff --git a/src/model/meta/MetaProbeStatus.ts b/src/model/meta/MetaProbeStatus.ts index 582b39e..26e03e5 100644 --- a/src/model/meta/MetaProbeStatus.ts +++ b/src/model/meta/MetaProbeStatus.ts @@ -6,7 +6,7 @@ export interface MetaProbeStatus { createDate?: Date; } -// export enum MetaProbeStatusEnum { -// INITIAL = 1, -// NORMAL = 2, -// } +export enum MetaProbeStatusEnum { + INITIAL = 1, + NORMAL = 2, +} diff --git a/src/model/meta/MetaTargetHostType.ts b/src/model/meta/MetaTargetHostType.ts index 083c841..899a582 100644 --- a/src/model/meta/MetaTargetHostType.ts +++ b/src/model/meta/MetaTargetHostType.ts @@ -3,3 +3,6 @@ import { MetaTargetType } from "./MetaTargetType"; export interface MetaTargetHostType extends MetaTargetType { } +export enum MetaTargetTypeEnum { + UNKNOWN = 100, +} diff --git a/src/model/meta/MetaTargetServiceType.ts b/src/model/meta/MetaTargetServiceType.ts index cfece4a..831d0bc 100644 --- a/src/model/meta/MetaTargetServiceType.ts +++ b/src/model/meta/MetaTargetServiceType.ts @@ -3,3 +3,6 @@ import { MetaTargetType } from "./MetaTargetType"; export interface MetaTargetServiceType extends MetaTargetType { } +export enum MetaServiceTypeEnum { + UNKNOWN = 1000, +} diff --git a/src/model/meta/MetaTargetStatus.ts b/src/model/meta/MetaTargetStatus.ts index 7efbfcb..0b8c9cf 100644 --- a/src/model/meta/MetaTargetStatus.ts +++ b/src/model/meta/MetaTargetStatus.ts @@ -5,3 +5,9 @@ export interface MetaTargetStatus { createDate?: Date; } +export enum MetaTargetStatusEnum { + UP = 1, + DOWN = 2, + WARN = 3, + ERROR = 4, +} diff --git a/src/model/meta/MetaTargetZoneType.ts b/src/model/meta/MetaTargetZoneType.ts index 89ffac2..c86f10f 100644 --- a/src/model/meta/MetaTargetZoneType.ts +++ b/src/model/meta/MetaTargetZoneType.ts @@ -3,3 +3,7 @@ import { MetaTargetType } from "./MetaTargetType"; export interface MetaTargetZoneType extends MetaTargetType { } +export enum MetaTargetZoneTypeEnum { + UNKNOWN = 1, + ZONE = 2, +}