24 lines
510 B
TypeScript
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,
|
|
};
|
|
};
|