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

78 lines
1.4 KiB
TypeScript
Raw Normal View History

2022-06-11 21:57:50 +02:00
export type GeneralStats = {
services:number,
closed:number,
2022-06-12 19:03:56 +02:00
regexes:number
2022-06-11 21:57:50 +02:00
}
export type Service = {
name:string,
2022-07-10 15:05:56 +02:00
service_id:string,
2022-06-11 21:57:50 +02:00
status:string,
2022-07-07 21:08:02 +02:00
port:number,
2022-07-10 15:05:56 +02:00
ipv6:boolean,
proto: string,
ip_int: string,
2022-06-11 21:57:50 +02:00
n_packets:number,
n_regex:number,
}
2022-06-12 12:09:50 +02:00
export type ServiceAddForm = {
name:string,
2022-06-30 17:48:04 +02:00
port:number,
proto:string,
ip_int:string,
2022-06-12 12:09:50 +02:00
}
2022-07-10 15:05:56 +02:00
export type ServiceAddResponse = {
status: string,
service_id?: string,
}
2022-06-12 12:09:50 +02:00
export type ServerResponse = {
status:string
}
2022-06-30 17:48:04 +02:00
2022-06-28 21:49:03 +02:00
export type ServerResponseToken = {
status:string,
access_token?:string
}
export type LoginResponse = {
status?:string,
access_token:string,
token_type:string
}
2022-06-13 16:12:52 +02:00
export type ServerStatusResponse = {
status:string,
loggined:boolean
}
export type PasswordSend = {
2022-06-28 21:49:03 +02:00
password:string,
2022-06-13 16:12:52 +02:00
}
export type ChangePassword = {
password:string,
expire:boolean
}
2022-06-12 12:09:50 +02:00
export type RegexFilter = {
id:number,
2022-07-10 15:05:56 +02:00
service_id:string,
2022-06-12 12:09:50 +02:00
regex:string
is_blacklist:boolean,
2022-06-17 20:48:27 +02:00
is_case_sensitive:boolean,
2022-06-12 14:40:48 +02:00
mode:string //C S B => C->S S->C BOTH
2022-06-30 15:58:03 +02:00
n_packets:number,
active:boolean
2022-06-12 16:44:54 +02:00
}
export type RegexAddForm = {
2022-07-10 15:05:56 +02:00
service_id:string,
2022-06-13 10:59:05 +02:00
regex:string,
2022-06-17 20:48:27 +02:00
is_case_sensitive:boolean,
2022-06-13 10:59:05 +02:00
is_blacklist:boolean,
2022-07-01 02:29:28 +02:00
mode:string, // C->S S->C BOTH,
active: boolean
2022-06-12 12:09:50 +02:00
}