Skip to content

Commit

Permalink
refactor: add lastMessageFromVisitor on IRoom definition
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardogarim committed Jul 9, 2024
1 parent 7f60119 commit aaefe0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/definition/livechat/ILivechatRoom.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { RoomType } from '../rooms';
import type { IRoom } from '../rooms/IRoom';
import type { IUser } from '../users';
import type { IMessage } from '../messages';
import type { IDepartment } from './IDepartment';
import type { IVisitor } from './IVisitor';

Expand Down Expand Up @@ -36,6 +37,7 @@ export interface IVisitorChannelInfo {
export interface ILivechatRoom extends IRoom {
visitor: IVisitor;
visitorChannelInfo?: IVisitorChannelInfo;
lastMessageFromVisitor?: IMessage;
department?: IDepartment;
servedBy?: IUser;
responseBy?: IUser;
Expand Down
2 changes: 2 additions & 0 deletions src/definition/rooms/IRoom.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { IUser } from '../users';
import type { IMessage } from '../messages';
import type { RoomType } from './RoomType';

export interface IRoom {
Expand All @@ -23,4 +24,5 @@ export interface IRoom {
customFields?: { [key: string]: any };
parentRoom?: IRoom;
livechatData?: { [key: string]: any };
lastMessageFromVisitor?: IMessage;
}

0 comments on commit aaefe0a

Please sign in to comment.