feat: adiciona headers no cadastro de webhook da instância

This commit is contained in:
Felipe Medeiros
2024-09-06 20:46:10 -03:00
parent a9e4860a77
commit 65c6ecff88
11 changed files with 21 additions and 2 deletions

View File

@@ -1,10 +1,12 @@
import { Constructor } from '@api/integrations/integration.dto';
import { JsonValue } from '@prisma/client/runtime/library';
export class EventDto {
webhook?: {
enabled?: boolean;
events?: string[];
url?: string;
headers?: JsonValue;
byEvents?: boolean;
base64?: boolean;
};
@@ -30,6 +32,7 @@ export function EventInstanceMixin<TBase extends Constructor>(Base: TBase) {
webhook?: {
enabled?: boolean;
events?: string[];
headers?: JsonValue;
url?: string;
byEvents?: boolean;
base64?: boolean;