app/@overflow/model/meta/MetaNoAuthProbeStatus.ts
crusader aaf3e23966 ing
2018-08-27 00:15:10 +09:00

24 lines
510 B
TypeScript

export interface MetaNoAuthProbeStatus {
id?: number;
key?: string;
name?: string;
createDate?: Date;
}
export enum MetaNoAuthProbeStatusEnum {
ACCEPTED = 'ACCEPTED',
DENIED = 'DENIED',
PROCESSING = 'PROCESSING',
}
export const toMetaNoAuthProbeStatusEnum = (v: MetaNoAuthProbeStatus): MetaNoAuthProbeStatusEnum => {
return MetaNoAuthProbeStatusEnum[v.key];
};
export const toMetaNoAuthProbeStatus = (v: MetaNoAuthProbeStatusEnum): MetaNoAuthProbeStatus => {
return {
key: v,
};
};