feat: delete webhook functionality

This commit is contained in:
Catalin Pit
2024-02-09 16:28:18 +02:00
parent ddb9dd11d7
commit 0209127136
6 changed files with 56 additions and 16 deletions

View File

@@ -11,4 +11,10 @@ export const ZCreateWebhookFormSchema = z.object({
enabled: z.boolean(),
});
export const ZDeleteWebhookSchema = z.object({
id: z.number(),
});
export type TCreateWebhookFormSchema = z.infer<typeof ZCreateWebhookFormSchema>;
export type TDeleteWebhookSchema = z.infer<typeof ZDeleteWebhookSchema>;