RocketChat/Rocket.Chat

View on GitHub
packages/core-typings/src/IOmnichannelCannedResponse.ts

Summary

Maintainability
A
0 mins
Test Coverage
import type { ILivechatDepartment } from './ILivechatDepartment';
import type { IRocketChatRecord } from './IRocketChatRecord';
import type { IUser } from './IUser';

export interface IOmnichannelCannedResponse extends IRocketChatRecord {
    shortcut: string;
    text: string;
    scope: string;
    tags: string[];
    // userId is optional, its only required when scope === 'user'
    userId?: IUser['_id'];
    departmentId?: ILivechatDepartment['_id'];
    createdBy: {
        _id: IUser['_id'];
        username: string;
    };
    _createdAt: Date;
}