mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-19 11:52:20 -06:00
refactor: integration folders
This commit is contained in:
@@ -2,7 +2,7 @@ import { Constructor } from '@api/integrations/integration.dto';
|
||||
|
||||
export class EventDto {
|
||||
webhook?: {
|
||||
enabled: boolean;
|
||||
enabled?: boolean;
|
||||
events?: string[];
|
||||
url?: string;
|
||||
byEvents?: boolean;
|
||||
@@ -10,17 +10,17 @@ export class EventDto {
|
||||
};
|
||||
|
||||
websocket?: {
|
||||
enabled: boolean;
|
||||
enabled?: boolean;
|
||||
events?: string[];
|
||||
};
|
||||
|
||||
sqs?: {
|
||||
enabled: boolean;
|
||||
enabled?: boolean;
|
||||
events?: string[];
|
||||
};
|
||||
|
||||
rabbitmq?: {
|
||||
enabled: boolean;
|
||||
enabled?: boolean;
|
||||
events?: string[];
|
||||
};
|
||||
}
|
||||
@@ -28,7 +28,7 @@ export class EventDto {
|
||||
export function EventInstanceMixin<TBase extends Constructor>(Base: TBase) {
|
||||
return class extends Base {
|
||||
webhook?: {
|
||||
enabled: boolean;
|
||||
enabled?: boolean;
|
||||
events?: string[];
|
||||
url?: string;
|
||||
byEvents?: boolean;
|
||||
@@ -36,17 +36,17 @@ export function EventInstanceMixin<TBase extends Constructor>(Base: TBase) {
|
||||
};
|
||||
|
||||
websocket?: {
|
||||
enabled: boolean;
|
||||
enabled?: boolean;
|
||||
events?: string[];
|
||||
};
|
||||
|
||||
sqs?: {
|
||||
enabled: boolean;
|
||||
enabled?: boolean;
|
||||
events?: string[];
|
||||
};
|
||||
|
||||
rabbitmq?: {
|
||||
enabled: boolean;
|
||||
enabled?: boolean;
|
||||
events?: string[];
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user