Files
firegex-traffic-viewer/frontend/src/js/models.ts

59 lines
1006 B
TypeScript

export type ServerResponse = {
status:string
}
export type ServerResponseToken = {
status:string,
access_token?:string
}
export type LoginResponse = {
status?:string,
access_token:string,
token_type:string
}
export type ServerStatusResponse = {
status:string,
loggined:boolean
}
export type PasswordSend = {
password:string,
}
export type ChangePassword = {
password:string,
expire:boolean
}
export type IpInterface = {
name:string,
addr:string
}
export type RegexFilter = {
id:number,
service_id:string,
regex:string
is_case_sensitive:boolean,
mode:string //C S B => C->S S->C BOTH
n_packets:number,
active:boolean
}
export type RegexAddForm = {
service_id:string,
regex:string,
is_case_sensitive:boolean,
mode:string, // C->S S->C BOTH,
active: boolean
}
export type PyFilter = {
name:string,
service_id:string,
blocked_packets:number,
edited_packets:number,
active:boolean
}