The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/client/lib/lists/CannedResponseList.ts

23 lines
684 B

import { ILivechatDepartment } from '../../../definition/ILivechatDepartment';
import { IOmnichannelCannedResponse } from '../../../definition/IOmnichannelCannedResponse';
import { RecordList } from './RecordList';
export type CannedResponseOptions = {
filter: string;
type: string;
};
export class CannedResponseList extends RecordList<IOmnichannelCannedResponse & { departmentName: ILivechatDepartment['name'] }> {
public constructor(private _options: CannedResponseOptions) {
super();
}
public get options(): CannedResponseOptions {
return this._options;
}
public updateFilters(options: CannedResponseOptions): void {
this._options = options;
this.clear();
}
}