2022-03-29 18:53:27 +00:00
|
|
|
import { TextInput } from 'react-native';
|
|
|
|
|
2022-04-28 18:44:40 +00:00
|
|
|
import { TSupportedThemes } from '../theme';
|
2022-03-29 18:53:27 +00:00
|
|
|
import { ILivechatVisitor } from './ILivechatVisitor';
|
|
|
|
import { ISubscription } from './ISubscription';
|
|
|
|
|
|
|
|
export interface ITitle {
|
|
|
|
title: string;
|
2022-04-28 18:44:40 +00:00
|
|
|
theme: TSupportedThemes;
|
2022-03-29 18:53:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface IInputs {
|
|
|
|
livechatData: {
|
|
|
|
[key: string]: any;
|
|
|
|
};
|
|
|
|
name: string;
|
|
|
|
email: string;
|
|
|
|
phone?: string;
|
|
|
|
topic: string;
|
|
|
|
tag: string[];
|
|
|
|
[key: string]: any;
|
|
|
|
}
|
|
|
|
|
|
|
|
export type TParams = ILivechatVisitor & IInputs;
|
|
|
|
|
|
|
|
export interface ILivechat extends ISubscription {
|
|
|
|
// Param dynamic depends on server
|
|
|
|
sms?: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IInputsRefs {
|
|
|
|
[index: string]: TextInput | null;
|
|
|
|
name: TextInput | null;
|
|
|
|
phone: TextInput | null;
|
|
|
|
topic: TextInput | null;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface ICustomFields {
|
|
|
|
visitor?: { [key: string]: string };
|
|
|
|
livechat?: { [key: string]: string };
|
|
|
|
}
|