@kiwicom/smart-faq
Version:
Smart FAQ
73 lines (65 loc) • 1.56 kB
JavaScript
// @flow
export type CuckooAction =
| 'faqsOpened'
| 'faqsClosed'
| '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 =
| 'BookingOverview'
| 'BoardingPasses'
| 'Baggage'
| 'FAQs'
| 'ContactForm'
| 'Login'
| 'GuaranteeChat'
| 'SmartFAQ';
export type CuckooError =
| 'GraphQLNetworkError'
| 'GraphQLResponseError'
| 'PhoneNumberNotReturned';
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,
|};