@rocket.chat/apps-engine
Version:
The engine code for the Rocket.Chat Apps which manages, runs, translates, coordinates and all of that.
19 lines (18 loc) • 880 B
TypeScript
import type { IHttp, IModify, IPersistence, IRead } from '../accessors';
import { AppMethod } from '../metadata';
import type { ILivechatDepartmentEventContext } from './ILivechatEventContext';
/**
* Handler called after the removal of a livechat department.
*/
export interface IPostLivechatDepartmentRemoved {
/**
* Handler called *after* the removal of a livechat department.
*
* @param data the livechat context data which contains the department removed
* @param read An accessor to the environment
* @param http An accessor to the outside world
* @param persis An accessor to the App's persistence
* @param modify An accessor to the modifier
*/
[AppMethod.EXECUTE_POST_LIVECHAT_DEPARTMENT_REMOVED](context: ILivechatDepartmentEventContext, read: IRead, http: IHttp, persis: IPersistence, modify?: IModify): Promise<void>;
}