* add migration guide and dto * add factory * add notifier * add repo * add services * coderabbit review --1 * coderabbit review --2 * coderabbit review --3 * further improvement * -- * fix * bookingWebhookFactory consideration and type fixes * cleanup * fix types * DI part1 * DI --part 2 * remove migrationGuide as we're WIP * using evyweb for DI -- 1 * DI --final * separate func instead of private class * adds a todo migration file * adjust structure * address feedback * remove todo_migrate * --1 * fix type * address feedback * add TODO comment * address requested changes --1 * address feedback --2 * restructure as per feedback * rename camelcase
9 lines
292 B
TypeScript
9 lines
292 B
TypeScript
import type { WebhookEventDTO } from "../dto/types";
|
|
|
|
export interface IWebhookNotifier {
|
|
emitWebhook(dto: WebhookEventDTO, isDryRun?: boolean): Promise<void>;
|
|
}
|
|
export interface IWebhookNotificationHandler {
|
|
handleNotification(dto: WebhookEventDTO, isDryRun?: boolean): Promise<void>;
|
|
}
|