UNPKG

@kiwicom/smart-faq

Version:

Smart FAQ

53 lines (47 loc) 1.06 kB
// @flow export type CuckooAction = | 'clickOnArticle' | 'closeArticle' | 'openFlightCard' | 'bookingLoaded' | 'selectAnotherBooking' | 'goToMMB' | 'clickOnEticket' | 'addInsurance' | 'clickOnMoreInfoBoarding' | 'showTooltip' | 'downloadBoardingPass' | 'addMoreBags' | 'clickOnBaggageButton' | 'clickOnBoardingPassButton' | 'clickOnCategory' | 'clickOnIntroButton' | 'articleClicked' | 'search' | 'goToOldHelp' | 'signOut' | 'chatEnabled' | 'chatOpened' | 'upVote' | 'downVote' | 'submitFeedback' | 'commentLimitReached'; export type Subcategory = | 'Booking overview' | 'Boarding passes' | 'Baggage' | 'FAQs' | 'Contact Form' | 'Login' | 'Guarantee Chat'; export type CuckooEvent = {| category: 'smartFAQ', subcategory: Subcategory, action: CuckooAction, |}; export type CuckooProps = { [string]: mixed }; export type CuckooLogger = {| track: (CuckooEvent, ?CuckooProps) => void, warning: (CuckooEvent, ?CuckooProps) => void, error: (CuckooEvent, ?CuckooProps) => void, |};