2022-02-14 16:20:29 +00:00
|
|
|
import { IRocketChatRecord } from './IRocketChatRecord';
|
|
|
|
|
|
|
|
export interface IVisitorPhone {
|
|
|
|
phoneNumber: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IVisitorLastChat {
|
|
|
|
_id: string;
|
|
|
|
ts: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface ILivechatVisitorConnectionData {
|
|
|
|
httpHeaders: {
|
|
|
|
[k: string]: string;
|
|
|
|
};
|
|
|
|
clientAddress: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IVisitorEmail {
|
|
|
|
address: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface ILivechatVisitor extends IRocketChatRecord {
|
|
|
|
username: string;
|
2022-05-11 18:20:59 +00:00
|
|
|
ts: Date | string;
|
2022-02-14 16:20:29 +00:00
|
|
|
token: string;
|
|
|
|
department?: string;
|
|
|
|
name?: string;
|
|
|
|
phone?: IVisitorPhone[] | null;
|
|
|
|
lastChat?: IVisitorLastChat;
|
|
|
|
userAgent?: string;
|
|
|
|
ip?: string;
|
|
|
|
host?: string;
|
|
|
|
visitorEmails?: IVisitorEmail[];
|
2022-03-03 21:46:53 +00:00
|
|
|
livechatData?: any;
|
|
|
|
utc?: number;
|
2022-02-14 16:20:29 +00:00
|
|
|
}
|
|
|
|
|
2023-09-26 14:33:53 +00:00
|
|
|
export interface ILivechatVisitorModified extends ILivechatVisitor {
|
|
|
|
os?: string;
|
|
|
|
browser?: string;
|
|
|
|
}
|
|
|
|
|
2022-02-14 16:20:29 +00:00
|
|
|
export interface ILivechatVisitorDTO {
|
|
|
|
id: string;
|
|
|
|
token: string;
|
|
|
|
name: string;
|
|
|
|
email: string;
|
|
|
|
department: string;
|
|
|
|
phone: string | { number: string };
|
|
|
|
username: string;
|
|
|
|
customFields: {
|
|
|
|
key: string;
|
|
|
|
value: string;
|
|
|
|
overwrite: boolean;
|
|
|
|
}[];
|
|
|
|
connectionData: {
|
|
|
|
httpHeaders: Record<string, string>;
|
|
|
|
};
|
|
|
|
}
|