105 lines
4.0 KiB
TypeScript
105 lines
4.0 KiB
TypeScript
export const AnalyticsEventNameConstants = {
|
|
HI_SI_PILLS_CLICK: "hi_si_pills_click",
|
|
HI_RN_QUOTE_PAGE_INIT: "hi_rn_quote_page_init",
|
|
HI_RN_QUOTE_PAGE_ERROR_VIEW: "hi_rn_quote_page_error_view",
|
|
HI_RN_BENEFIT_COMPARE_PAGE_INIT: "hi_rn_benefit_compare_page_init",
|
|
HI_RN_BENEFIT_COMPARE_PAGE_ERROR_VIEW:
|
|
"hi_rn_benefit_compare_page_error_view",
|
|
HI_RN_COMPARE_PLAN_PAGE_INIT: "hi_rn_compare_plan_page_init",
|
|
HI_RN_COMPARE_PLAN_PAGE_ERROR_VIEW: "hi_rn_compare_plan_page_error_view",
|
|
HI_RN_WAITING_PERIOD_PAGE_INIT: "hi_rn_waiting_period_page_init",
|
|
HI_RN_WAITING_PERIOD_PAGE_ERROR_VIEW: "hi_rn_waiting_period_page_error_view",
|
|
PATCH_QUOTE_V2: "patch_quote_v2",
|
|
HI_RN_BENEFIT_INIT: "hi_rn_benefit_init",
|
|
HI_RN_BENEFIT_ERROR_VIEW: "hi_rn_benefit_error_view",
|
|
HI_RN_BENEFIT_LOADED_VIEW: "hi_rn_benefit_loaded_view",
|
|
HI_RN_BACKGROUND_API_FAILED: "hi_rn_background_api_failed",
|
|
HI_RN_CACHE_ERROR: "hi_rn_cache_error",
|
|
HI_RN_CACHE_FETCH_SUCCESS: "hi_rn_cache_fetch_success",
|
|
HI_RN_CACHE_SAVE_SUCCESS: "hi_rn_cache_save_success",
|
|
|
|
// Sentry Events
|
|
HI_INVALID_SCREEN_CTA: "hi_invalid_screen_cta",
|
|
HI_RN_CODEPUSH_ERROR: "hi_rn_codepush_error",
|
|
HI_RN_NAVIGATION_ERROR: "hi_rn_navigation_error",
|
|
HI_RN_PAYLOAD_ERROR: "hi_rn_payload_error",
|
|
HI_RN_INVALID_DATA_ERROR: "hi_rn_invalid_data_error",
|
|
HI_RN_INVALID_JSON_ERROR: "hi_rn_invalid_json_error",
|
|
HI_RN_INVALID_ARITHMETIC_ERROR: "hi_rn_invalid_arithmetic_error",
|
|
HI_RN_FETCH_NATIVE_HEADER_ERROR: "hi_rn_fetch_native_header_error",
|
|
HI_RN_SENTRY_INIT_FAIL: "hi_rn_sentry_init_fail",
|
|
};
|
|
|
|
export const AnalyticsEventPropertyConstants = {
|
|
SUM_INSURED: "sum_insured",
|
|
TAG: "tag",
|
|
RECOMMENDED: "recommended",
|
|
NOT_RECOMMENDED: "not_recommended",
|
|
QUOTE_ID: "quoteId",
|
|
};
|
|
|
|
export const AnalyticsFlowNameConstant = {
|
|
GI_RN_QUOTE: "hi_rn_quote",
|
|
GI_RN_BENEFIT_COMPARE: "hi_rn_benefit_compare",
|
|
GI_WAITING_PERIOD: "hi_rn_waiting_period",
|
|
REACT_NATIVE: "react_native",
|
|
GI_RN_BENEFIT: "hi_rn_benefit",
|
|
GI_RN_COMPARE_PLAN: "hi_rn_compare_plan",
|
|
};
|
|
|
|
export const AnalyticsModuleNameConstant = {
|
|
GI: "gi",
|
|
};
|
|
|
|
export const AnalyticsMethodNameConstant = {
|
|
FETCH_INSURANCE_QUOTE_PAGE_FROM_BACKEND: "fetchInsuranceQuotePageFromBackend",
|
|
FETCH_QUOTE_V3: "fetchQuoteV3",
|
|
FETCH_QUOTE_V4: "fetchQuoteV4",
|
|
FINAL_PATCH_CALL: "finalPatchCall",
|
|
COMPARE_PLAN_LIST: "comparePlanList",
|
|
MARKET_BENEFIT_COMPARE_LIST: "gi_market_benefit_compare_list_error",
|
|
FETCH_BENEFIT_LIST: "gi_fetch_benefit_screen_error",
|
|
WAITING_PERIOD_SCREEN: "gi_waiting_period_screen_error",
|
|
HANDLE_CTA_CLICK: "handleCtaClick",
|
|
HANDLE_CTA_CLICK_BOTTOMSHEET: "handleCtaClickBottomSheet",
|
|
};
|
|
|
|
export const AnalyticsGlobalErrorTypeConstant = {
|
|
GLOBAL_INTERNAL_ERRORS: "global_internal_errors",
|
|
GLOBAL_GENERIC_ERRORS: "global_generic_errors",
|
|
};
|
|
|
|
export const EVENT_NAMES = {
|
|
CODEPUSH_FETCH_ERROR: "codepush_fetch_error",
|
|
SCREEN_LOAD_TIME: "react_screen_load_time",
|
|
INVALID_SCREEN_CTA: "invalid_screen_cta",
|
|
CTA_MISSING_ERROR: "cta_missing_error",
|
|
CTA_PARSING_ERROR: "cta_parsing_error",
|
|
CTA_NAVIGATION_ERROR: "cta_navigation_error",
|
|
CODEPUSH_IGNORED_ERROR: "codepush_ignored_error",
|
|
CODEPUSH_FAILED_ERROR: "codepush_failed_error",
|
|
BASE_ACTION_TYPE_INVALID_ERROR: "base_action_type_invalid_error",
|
|
ACTION_PAYLOAD_MISSING_ERROR: "action_payload_missing_error",
|
|
API_NO_RESPONSE_ERROR: "api_no_response_error",
|
|
KEY_PATH_INVALID_ERROR: "key_path_invalid_error",
|
|
ARITHMETIC_ERROR: "arithmetic_error",
|
|
SHARED_PREFERENCE_KEY_ERROR: "shared_preference_key_error",
|
|
JSON_PARSING_ERROR: "json_parsing_error",
|
|
INVALID_TARGET_TYPE_ERROR: "invalid_target_type_error",
|
|
INVALID_DATA_IN_CACHE: "invalid_data_in_cache",
|
|
INVALID_KEY_OR_DATA: "invalid_key_or_data",
|
|
ERROR_CHECKING_ASYNC_STORAGE: "error_checking_async_storage",
|
|
};
|
|
|
|
export const EVENT_PROPERTY_KEYS = {
|
|
STATUS: "status",
|
|
BUNDLE_VERSION: "bundleVersion",
|
|
SCREEN_NAME: "screenName",
|
|
LOAD_TIME: "loadTime",
|
|
SCREEN_STATE: "screenState",
|
|
};
|
|
|
|
export const EVENT_PROPERTY_VALUES = {
|
|
UNKNOWN_ERROR: "UNKNOWN_ERROR",
|
|
};
|