RocketChat/Rocket.Chat

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

Summary

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

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

export interface ILivechatTriggerModel extends IBaseModel<ILivechatTrigger> {
    findEnabled(): FindCursor<ILivechatTrigger>;
    updateById(_id: string, data: Omit<ILivechatTrigger, '_id' | '_updatedAt'>): Promise<UpdateResult>;
}