feat: update connector page

This commit is contained in:
Maël Gangloff
2024-07-30 00:55:36 +02:00
parent 3a9f22318f
commit 469537d275
11 changed files with 205 additions and 32 deletions

View File

@@ -1,6 +1,6 @@
import {request} from "./index";
enum ConnectorProvider {
export enum ConnectorProvider {
OVH = 'ovh'
}

View File

@@ -14,7 +14,11 @@ export async function getWatchlist(token: string) {
return response.data
}
export async function postWatchlist(domains: string[], triggers: { action: string, event: EventAction }[]) {
export async function postWatchlist(domains: string[], triggers: {
action: string,
event: EventAction,
connector?: string
}[]) {
const response = await request<{ token: string }>({
method: 'POST',
url: 'watchlists',