RocketChat/Rocket.Chat

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

Summary

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

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

export interface IPbxEventsModel extends IBaseModel<IPbxEvent> {
    findByEvents(callUniqueId: string, events: string[]): FindCursor<IPbxEvent>;
    findOneByEvent(callUniqueId: string, event: string): Promise<IPbxEvent | null>;
    findOneByUniqueId(callUniqueId: string): Promise<IPbxEvent | null>;
}