UNPKG

zcatalyst-integ-cliq

Version:

Node.js SDK for integrating Zoho Catalyst with Zoho Cliq

40 lines (39 loc) 1.48 kB
import { BotDetails, MessageStyles, MESSAGE_VIEW_TYPE, BANNER_STATUS, Button } from '../common.js'; import Banner from './banner.js'; import ButtonObject from './button-object.js'; import CardDetails from './card-details.js'; import Context from './context.js'; import { FormError } from './form-input.js'; import Form from './form.js'; import { Message } from './message.js'; import PreviewURL from './preview-url-response.js'; import Slide from './slide.js'; import SuggestionList from './suggestion.js'; export default class HandlerResponse { text?: string; context?: Context; bot?: BotDetails; suggestions?: SuggestionList; slides?: Array<Slide>; buttons?: Array<ButtonObject>; card?: CardDetails; styles?: MessageStyles; references?: Record<number, Button>; view?: MESSAGE_VIEW_TYPE; newContext(): Context; newMessageStyles(highlight: boolean): MessageStyles; newBotDetails(name: string, image: string): BotDetails; newSuggestionList(): SuggestionList; newSlide(): Slide; addSlide(...slide: Array<Slide>): number; newButton(): ButtonObject; newButtonForReference(buttonObject: ButtonObject): Button; addButton(...button: Array<ButtonObject>): number; newCard(): CardDetails; newForm(): Form; newFormError(): FormError; newMessage(): Message; newPreviewURL(url: string): PreviewURL; newBanner(text: string, status?: BANNER_STATUS): Banner; setText(text: string): void; }