RocketChat/Rocket.Chat

View on GitHub
packages/model-typings/src/models/IMatrixBridgeRoomModel.ts

Summary

Maintainability
A
0 mins
Test Coverage
import type { IMatrixBridgedRoom } from '@rocket.chat/core-typings';

import type { IBaseModel } from './IBaseModel';

export interface IMatrixBridgedRoomModel extends IBaseModel<IMatrixBridgedRoom> {
    getExternalRoomId(localRoomId: string): Promise<string | null>;
    getLocalRoomId(externalRoomId: string): Promise<string | null>;
    removeByLocalRoomId(localRoomId: string): Promise<void>;
    createOrUpdateByLocalRoomId(localRoomId: string, externalRoomId: string, fromServer: string): Promise<void>;
    getExternalServerConnectedExcluding(exclude: string): Promise<string[]>;
}