@kiwicom/smart-faq
Version:
Smart FAQ
72 lines (64 loc) • 1.54 kB
JavaScript
// @flow
export type CuckooAction =
| 'clickOnHelp'
| 'articleOpened'
| 'articleClosed'
| 'openFlightCard'
| 'bookingLoaded'
| 'selectAnotherBooking'
| 'goToMMB'
| 'clickOnEticket'
| 'addInsurance'
| 'clickOnMoreInfoBoarding'
| 'showTooltip'
| 'downloadBoardingPass'
| 'addMoreBags'
| 'clickOnBaggageButton'
| 'clickOnBoardingPassButton'
| 'clickOnCategory'
| 'clickOnIntroButton'
| 'articleClicked'
| 'search'
| 'goToOldHelp'
| 'signOut'
| 'chatEnabled'
| 'chatOpened'
| 'chatDisplayed'
| 'upVote'
| 'downVote'
| 'submitFeedback'
| 'commentLimitReached'
| 'phonesDisplayed'
| 'phoneClicked'
| 'phonesPriorityDisplayed';
export type Subcategory =
| 'Booking overview'
| 'Boarding passes'
| 'Baggage'
| 'FAQs'
| 'Contact Form'
| 'Login'
| 'Guarantee Chat'
| 'Smart FAQ';
export type CuckooError =
| 'GraphQL network'
| 'GraphQL error'
| 'Phone number not returned';
export type CuckooEvent = {|
category: 'smartFAQ',
subcategory: Subcategory,
action: CuckooAction,
destinations: {| logmole: boolean, exponea: boolean, ga: boolean |},
|};
export type CuckooErrorEvent = {
category: 'smartFAQ',
subcategory: 'Error',
action: CuckooError,
destinations: {| logmole: boolean, exponea: boolean, ga: boolean |},
};
export type CuckooProps = { [string]: mixed };
export type CuckooLogger = {|
track: (CuckooEvent, ?CuckooProps) => void,
warning: (CuckooEvent, ?CuckooProps) => void,
error: (CuckooErrorEvent, ?CuckooProps) => void,
|};