feat: connector on watchlist

This commit is contained in:
Maël Gangloff
2024-07-30 22:03:04 +02:00
parent 6f89317edc
commit 5bb1174635
5 changed files with 35 additions and 46 deletions

View File

@@ -16,6 +16,8 @@ export type EventAction =
| 'enum validation expiration'
| string
export type TriggerAction = 'email' | string
export interface Event {
action: EventAction
date: string
@@ -62,9 +64,10 @@ export interface User {
roles: string[]
}
export interface Watchlist {
domains: string[]
triggers: Event[]
export interface Watchlist {
domains: string[],
triggers: { event: EventAction, action: TriggerAction }[],
connector?: string
}
export async function request<T = any, R = AxiosResponse<T>, D = any>(config: AxiosRequestConfig): Promise<R> {