import type { IExtraRoomParams } from '@rocket.chat/apps-engine/definition/accessors/ILivechatCreator'; import type { IDepartment, IVisitorExternalIdentifier, ILivechatMessage, ILivechatRoom, ILivechatTransferData, IVisitor, ResolveVisitorContactData, } from '@rocket.chat/apps-engine/definition/livechat'; import type { IMessage } from '@rocket.chat/apps-engine/definition/messages'; import type { IUser } from '@rocket.chat/apps-engine/definition/users'; import { LivechatBridge } from '../../../src/server/bridges/LivechatBridge'; export class TestLivechatBridge extends LivechatBridge { public findDepartmentsEnabledWithAgents(appId: string): Promise> { throw new Error('Method not implemented.'); } public isOnline(departmentId?: string): boolean { throw new Error('Method not implemented'); } public isOnlineAsync(departmentId?: string): Promise { throw new Error('Method not implemented'); } public createMessage(message: ILivechatMessage, appId: string): Promise { throw new Error('Method not implemented'); } public getMessageById(messageId: string, appId: string): Promise { throw new Error('Method not implemented'); } public updateMessage(message: ILivechatMessage, appId: string): Promise { throw new Error('Method not implemented'); } public createVisitor(visitor: IVisitor, appId: string): Promise { throw new Error('Method not implemented'); } public createAndReturnVisitor(visitor: IVisitor, appId: string): Promise { throw new Error('Method not implemented'); } public transferVisitor(visitor: IVisitor, transferData: ILivechatTransferData, appId: string): Promise { throw new Error('Method not implemented'); } public findVisitors(query: object, appId: string): Promise> { console.warn('The method AppLivechatBridge.findVisitors is deprecated. Please consider using its alternatives'); throw new Error('Method not implemented'); } public findVisitorById(id: string, appId: string): Promise { throw new Error('Method not implemented'); } public findVisitorByEmail(email: string, appId: string): Promise { throw new Error('Method not implemented'); } public findVisitorByToken(token: string, appId: string): Promise { throw new Error('Method not implemented'); } public findVisitorByPhoneNumber(phoneNumber: string, appId: string): Promise { throw new Error('Method not implemented'); } public resolveVisitor( externalId: IVisitorExternalIdentifier, contactData: ResolveVisitorContactData | undefined, appId: string, ): Promise { throw new Error('Method not implemented'); } public updateVisitorExternalId( visitorId: string, externalId: Omit, appId: string, ): Promise { throw new Error('Method not implemented'); } public createRoom(visitor: IVisitor, agent: IUser, appId: string, extraParams?: IExtraRoomParams): Promise { throw new Error('Method not implemented'); } public closeRoom(room: ILivechatRoom, comment: string, closer: IUser | undefined, appId: string): Promise { throw new Error('Method not implemented'); } public findRooms(visitor: IVisitor, departmentId: string | null, appId: string): Promise> { throw new Error('Method not implemented'); } public findOpenRoomsByAgentId(agentId: string, appId: string): Promise { throw new Error('Method not implemented'); } public countOpenRoomsByAgentId(agentId: string, appId: string): Promise { throw new Error('Method not implemented'); } public findDepartmentByIdOrName(value: string, appId: string): Promise { throw new Error('Method not implemented'); } public _fetchLivechatRoomMessages(appId: string, roomId: string): Promise> { throw new Error('Method not implemented'); } public setCustomFields( data: { token: IVisitor['token']; key: string; value: string; overwrite: boolean }, appId: string, ): Promise { throw new Error('Method not implemented'); } }