From 1b775ec9011d8192871ea5ec63b01b8fec240d04 Mon Sep 17 00:00:00 2001 From: Mohamed Marrouchi Date: Wed, 27 Nov 2024 10:12:13 +0100 Subject: [PATCH] fix: remove unecessary channel handler methods --- api/src/channel/lib/Handler.ts | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/api/src/channel/lib/Handler.ts b/api/src/channel/lib/Handler.ts index 2c8d2e0..08eb6d3 100644 --- a/api/src/channel/lib/Handler.ts +++ b/api/src/channel/lib/Handler.ts @@ -11,7 +11,6 @@ import path from 'path'; import { Injectable, OnModuleInit } from '@nestjs/common'; import { NextFunction, Request, Response } from 'express'; -import { Attachment } from '@/attachment/schemas/attachment.schema'; import { SubscriberCreateDto } from '@/chat/dto/subscriber.dto'; import { StdOutgoingEnvelope, @@ -135,15 +134,6 @@ export default abstract class ChannelHandler< */ abstract _attachmentFormat(message: StdOutgoingMessage, options?: any): any; - /** - * Format a collection of items to be sent to the channel in carousel/list format - * - * @param data - A list of data items to be sent to the end user - * @param options - Might contain additional settings - * @returns {Object[]} - An array of element objects - */ - abstract _formatElements(data: any[], options: any, ...args: any): any[]; - /** * Format a list of elements * @@ -196,16 +186,6 @@ export default abstract class ChannelHandler< event: EventWrapper, ): Promise; - /** - * @param _attachment - The attachment that needs to be uploaded to the channel - * @returns {Promise} - * Uploads an attachment to the channel as some require file to be uploaded so - * that they could be used in messaging (dimelo, twitter, ...) - */ - async uploadAttachment(_attachment: Attachment): Promise { - return _attachment; - } - /** * Custom channel middleware * @param req