mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 21:15:32 +09:00
feat(api): add libredesk webhook adapter (#3488)
This commit is contained in:
1 parent
105bd49c9e
commit
1f4f3318dc
16 files changed
+1695
-3
No files matched your search
@@ -26,6 +26,7 @@ import type {WebhookExecuteMessageData, WebhookService} from '@app/api/webhook/W
|
||||
import type {MessageResponse} from '@fluxer/schema/src/domains/message/MessageResponseSchemas';
|
||||
import type {GitHubWebhook} from '@fluxer/schema/src/domains/webhook/GitHubWebhookSchemas';
|
||||
import type {InstatusWebhook} from '@fluxer/schema/src/domains/webhook/InstatusWebhookSchemas';
|
||||
import type {LibredeskWebhook} from '@fluxer/schema/src/domains/webhook/LibredeskWebhookSchemas';
|
||||
import type {
|
||||
SlackWebhookRequest,
|
||||
WebhookCreateRequest,
|
||||
@@ -165,6 +166,14 @@ interface WebhookExecuteInstatusParams {
|
||||
requestCache: RequestCache;
|
||||
}
|
||||
|
||||
interface WebhookExecuteLibredeskParams {
|
||||
webhookId: WebhookID;
|
||||
token: WebhookToken;
|
||||
threadId?: string;
|
||||
data: LibredeskWebhook;
|
||||
requestCache: RequestCache;
|
||||
}
|
||||
|
||||
interface LiveKitWebhookParams {
|
||||
body: string;
|
||||
authHeader?: string;
|
||||
@@ -351,6 +360,10 @@ export class WebhookRequestService {
|
||||
await this.webhookService.executeInstatusWebhook(params);
|
||||
}
|
||||
|
||||
async executeLibredeskWebhook(params: WebhookExecuteLibredeskParams): Promise<void> {
|
||||
await this.webhookService.executeLibredeskWebhook(params);
|
||||
}
|
||||
|
||||
async executeSlackWebhook(params: WebhookExecuteSlackParams): Promise<void> {
|
||||
await this.webhookService.executeWebhook({
|
||||
webhookId: params.webhookId,
|
||||
|
||||
Reference in new issue
Block a user