UNPKG

prodap-chatbot-domain

Version:

Classes utilizadas na resposta de todas as Intents do Assistente Virtual

28 lines (27 loc) 794 B
import FormAbstract, { FormAbstractProps } from './FormAbstract'; import ActionAbstract from '../../action/ActionAbstract'; export type TypesPlace = 'address' | 'geocode' | '(cities)' | '(regions)'; export type InputPlacesQuery = { language: string; types: TypesPlace; }; export type InputPlacesList = { key?: string; name?: string; placeholder?: string; query: InputPlacesQuery; selected?: boolean; value?: string; }; export type InputPlacesProps = FormAbstractProps & { list: InputPlacesList[]; }; export type HighlightTextProps = { text: string; value: string; }; export default class InputPlaces extends FormAbstract { action?: ActionAbstract; list: InputPlacesList[]; constructor(props: InputPlacesProps, action?: ActionAbstract); }