Skip to content

Commit

Permalink
feat: add button message instrumentation keys (#144)
Browse files Browse the repository at this point in the history
* add button message instrumentation keys

* add .*/node_modules/es-abstract to ignore

* add cpi and offer country

* add amount

* add currency
  • Loading branch information
paypal-rosman authored Apr 8, 2024
1 parent a992050 commit 4266d3c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
.*/node_modules/resolve
.*/node_modules/es-abstract
.*/dist/module
.*/node_modules/es-abstract
[include]
[libs]
flow-typed
Expand Down
14 changes: 14 additions & 0 deletions src/fpti.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit 4266d3c

Please sign in to comment.