UNPKG

prodap-chatbot-domain

Version:

Classes utilizadas na resposta de todas as Intents do Assistente Virtual

28 lines (27 loc) 836 B
import { StyleType, TextType, UrlTypes } from '../../common/types'; import Message from '../base/Message'; import TextTypes from './TextTypes'; export type TextAbstractProps = { key?: string | number; route?: string; style?: StyleType; textType: TextTypes; textMetric?: string; url?: string; previousUrl?: string; urlType?: UrlTypes; value?: string | number | TextType; intent?: string; }; export default class TextAbstract extends Message { key?: string | number; route?: string; style?: StyleType; textMetric?: string; textType: TextTypes; url?: string; previousUrl?: string; urlType?: UrlTypes; value?: string | number | TextType; constructor({ key, route, style, textMetric, textType, url, urlType, value, intent, previousUrl, }: TextAbstractProps); }