From 4266d3c25ea4d85aa596066b82f61b4fe284492c Mon Sep 17 00:00:00 2001 From: paypal-rosman <102186205+paypal-rosman@users.noreply.github.com> Date: Mon, 8 Apr 2024 15:44:54 -0400 Subject: [PATCH] feat: add button message instrumentation keys (#144) * add button message instrumentation keys * add .*/node_modules/es-abstract to ignore * add cpi and offer country * add amount * add currency --- .flowconfig | 1 + src/fpti.js | 14 ++++++++++++++ 2 files changed, 15 insertions(+) diff --git a/.flowconfig b/.flowconfig index a9477dda..6ef4137c 100644 --- a/.flowconfig +++ b/.flowconfig @@ -6,6 +6,7 @@ .*/node_modules/resolve .*/node_modules/es-abstract .*/dist/module +.*/node_modules/es-abstract [include] [libs] flow-typed diff --git a/src/fpti.js b/src/fpti.js index 261f0641..ed5bb54f 100644 --- a/src/fpti.js +++ b/src/fpti.js @@ -2,6 +2,20 @@ export const FPTI_KEY = { BUTTON_LAYOUT: ("button_layout": "button_layout"), + BUTTON_MESSAGE_AMOUNT: ("button_message_amount": "button_message_amount"), + BUTTON_MESSAGE_CREDIT_PRODUCT_IDENTIFIER: + ("button_message_credit_product_identifier": "button_message_credit_product_identifier"), + BUTTON_MESSAGE_COLOR: ("button_message_color": "button_message_color"), + BUTTON_MESSAGE_CURRENCY: + ("button_message_currency": "button_message_currency"), + BUTTON_MESSAGE_ALIGN: ("button_message_align": "button_message_align"), + BUTTON_MESSAGE_POSITION: + ("button_message_position": "button_message_position"), + BUTTON_MESSAGE_OFFER_COUNTRY: + ("button_message_offer_country": "button_message_offer_country"), + BUTTON_MESSAGE_OFFER_TYPE: + ("button_message_offer_type": "button_message_offer_type"), + BUTTON_MESSAGE_TYPE: ("button_message_type": "button_message_type"), BUTTON_SESSION_UID: ("button_session_id": "button_session_id"), BUTTON_SOURCE: ("button_source": "button_source"), BUTTON_TYPE: ("button_type": "button_type"),