UNPKG

prodap-chatbot-domain

Version:

Classes utilizadas na resposta de todas as Intents do Assistente Virtual

53 lines (52 loc) 1.7 kB
import { IconType, StyleType, TextType } from '../../common/types'; import Message from '../base/Message'; import CardType from './CardTypes'; import ClickTypes from './ClickTypes'; export type LegendCardList = { icon: IconType; desc: string; }; export type CardAbstractProps = { key?: string | number; cardText?: string; filter?: string; filterId?: number; isClosable?: boolean; legend?: LegendCardList[]; style?: StyleType; subtitle?: string; title?: TextType; tooltip?: string; urlUpdate?: string; timeUpdate?: number; textMetric?: string; isWidgetDashboard?: boolean; closeButtonCustom?: IconType; keyStorageCardId?: string; intent?: string; clickType?: ClickTypes; }; export default class CardAbstract extends Message { key?: string | number; cardType: CardType; filter?: string; filterId?: number; isClosable?: boolean; legend?: LegendCardList[]; subtitle?: string; style?: StyleType; title?: TextType; tooltip?: string; urlUpdate?: string; timeUpdate?: number; textMetric?: string; isWidgetDashboard?: boolean; closeButtonCustom?: IconType; keyStorageCardId?: string; clickType?: ClickTypes; constructor({ key, cardText, filter, filterId, isClosable, legend, style, subtitle, title, tooltip, urlUpdate, timeUpdate, textMetric, isWidgetDashboard, closeButtonCustom, keyStorageCardId, intent, clickType, }: CardAbstractProps, cardType: CardType); setContent(prop: TextType): TextType; setValue(prop: TextType): string | number | TextType; setColor(prop: TextType): string; setTitleIcon(prop: TextType): IconType | undefined; }