UNPKG

prodap-chatbot-domain

Version:

Classes utilizadas na resposta de todas as Intents do Assistente Virtual

72 lines (71 loc) 1.84 kB
import { Icon } from '../text'; import FormAbstract, { FormAbstractProps } from './FormAbstract'; export type FinalMessage = { message: string; buttonText: string; icon?: Icon; complementaryMessage?: string; }; export type DescriptionReason = { title: string; description?: string; buttonText: string; }; export declare enum FeedbackOptionsType { SIMPLE = "SIMPLE", SELECT = "SELECT" } export type FeedbackSelect = { title: string; options: string[]; descriptionReasonIndex?: number; }; export type FeedbackOption = { text: string; value: number; backgroundColor: string; icon: Icon; finalMessage: FinalMessage; type: FeedbackOptionsType; feedbackSelect?: FeedbackSelect; borderRadius?: number; colorText?: string; descriptionReason?: DescriptionReason; shadowOpacity?: number; elevation?: number; fontWeight?: string; shadowColor?: number; borderColor?: string; borderWidth?: number; height?: number; width?: number | string; }; export type FeedbackProps = FormAbstractProps & { title: string; options: FeedbackOption[]; category: string; period?: number; textVotingDetails?: string; origin?: string; isClosable?: boolean; borderRadius?: number; shadowColor?: string; colorTitle?: string; keyStorageFeedbackId?: string; descricaoJustificativa?: string; }; export default class Feedback extends FormAbstract { title: string; options: FeedbackOption[]; category: string; period?: number; textVotingDetails?: string; origin?: string; isClosable?: boolean; borderRadius?: number; shadowColor?: string; colorTitle?: string; keyStorageFeedbackId?: string; descricaoJustificativa?: string; constructor(props: FeedbackProps); }