@paydock/client-sdk 1.104.9-beta → 1.105.56-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (253) hide show
  1. package/README.md +1984 -396
  2. package/bundles/index.cjs +33513 -8908
  3. package/bundles/index.cjs.d.ts +867 -52
  4. package/bundles/index.mjs +33507 -8908
  5. package/bundles/index.mjs.d.ts +867 -52
  6. package/bundles/types/api/api-base.d.ts +19 -6
  7. package/bundles/types/api/api-base.d.ts.map +1 -1
  8. package/bundles/types/api/api-charge-internal.d.ts +1 -0
  9. package/bundles/types/api/api-charge-internal.d.ts.map +1 -1
  10. package/bundles/types/api/api-checkout-internal.d.ts +57 -0
  11. package/bundles/types/api/api-checkout-internal.d.ts.map +1 -0
  12. package/bundles/types/api/api-gateway-internal.d.ts +12 -0
  13. package/bundles/types/api/api-gateway-internal.d.ts.map +1 -0
  14. package/bundles/types/api/api-internal.d.ts +4 -0
  15. package/bundles/types/api/api-internal.d.ts.map +1 -1
  16. package/bundles/types/canvas-3ds/services/gpayments-service.d.ts +3 -3
  17. package/bundles/types/canvas-3ds/services/gpayments-service.d.ts.map +1 -1
  18. package/bundles/types/checkout/checkout.d.ts +86 -0
  19. package/bundles/types/checkout/checkout.d.ts.map +1 -0
  20. package/bundles/types/checkout/helpers/instruction-handler.d.ts +23 -0
  21. package/bundles/types/checkout/helpers/instruction-handler.d.ts.map +1 -0
  22. package/bundles/types/checkout/helpers/instruction-module.d.ts +6 -0
  23. package/bundles/types/checkout/helpers/instruction-module.d.ts.map +1 -0
  24. package/bundles/types/checkout/helpers/instruction-module.decorator.d.ts +6 -0
  25. package/bundles/types/checkout/helpers/instruction-module.decorator.d.ts.map +1 -0
  26. package/bundles/types/checkout/helpers/instruction.decorator.d.ts +5 -0
  27. package/bundles/types/checkout/helpers/instruction.decorator.d.ts.map +1 -0
  28. package/bundles/types/checkout/helpers/resource-helper.d.ts +5 -0
  29. package/bundles/types/checkout/helpers/resource-helper.d.ts.map +1 -0
  30. package/bundles/types/checkout/helpers/session-helper.d.ts +5 -0
  31. package/bundles/types/checkout/helpers/session-helper.d.ts.map +1 -0
  32. package/bundles/types/checkout/index.d.ts +2 -0
  33. package/bundles/types/checkout/index.d.ts.map +1 -0
  34. package/bundles/types/checkout/instructions/index.d.ts +3 -0
  35. package/bundles/types/checkout/instructions/index.d.ts.map +1 -0
  36. package/bundles/types/checkout/instructions/v1/index.d.ts +4 -0
  37. package/bundles/types/checkout/instructions/v1/index.d.ts.map +1 -0
  38. package/bundles/types/checkout/instructions/v1/instruction.afterpay_checkout_form.show.d.ts +20 -0
  39. package/bundles/types/checkout/instructions/v1/instruction.afterpay_checkout_form.show.d.ts.map +1 -0
  40. package/bundles/types/checkout/instructions/v1/instruction.afterpay_wallet_form.show.d.ts +14 -0
  41. package/bundles/types/checkout/instructions/v1/instruction.afterpay_wallet_form.show.d.ts.map +1 -0
  42. package/bundles/types/checkout/instructions/v1/instruction.apple_pay_form.show.d.ts +18 -0
  43. package/bundles/types/checkout/instructions/v1/instruction.apple_pay_form.show.d.ts.map +1 -0
  44. package/bundles/types/checkout/instructions/v1/instruction.bank_account_form.show.d.ts +15 -0
  45. package/bundles/types/checkout/instructions/v1/instruction.bank_account_form.show.d.ts.map +1 -0
  46. package/bundles/types/checkout/instructions/v1/instruction.canvas_3ds.show.d.ts +11 -0
  47. package/bundles/types/checkout/instructions/v1/instruction.canvas_3ds.show.d.ts.map +1 -0
  48. package/bundles/types/checkout/instructions/v1/instruction.card_form.show.d.ts +19 -0
  49. package/bundles/types/checkout/instructions/v1/instruction.card_form.show.d.ts.map +1 -0
  50. package/bundles/types/checkout/instructions/v1/instruction.disable_payment_method_event.emit.d.ts +19 -0
  51. package/bundles/types/checkout/instructions/v1/instruction.disable_payment_method_event.emit.d.ts.map +1 -0
  52. package/bundles/types/checkout/instructions/v1/instruction.generic.show_message.d.ts +26 -0
  53. package/bundles/types/checkout/instructions/v1/instruction.generic.show_message.d.ts.map +1 -0
  54. package/bundles/types/checkout/instructions/v1/instruction.google_pay_form.show.d.ts +18 -0
  55. package/bundles/types/checkout/instructions/v1/instruction.google_pay_form.show.d.ts.map +1 -0
  56. package/bundles/types/checkout/instructions/v1/instruction.merchant_event.emit.d.ts +18 -0
  57. package/bundles/types/checkout/instructions/v1/instruction.merchant_event.emit.d.ts.map +1 -0
  58. package/bundles/types/checkout/instructions/v1/instruction.payment_methods.show.d.ts +18 -0
  59. package/bundles/types/checkout/instructions/v1/instruction.payment_methods.show.d.ts.map +1 -0
  60. package/bundles/types/checkout/instructions/v1/instruction.paypal_form.show.d.ts +21 -0
  61. package/bundles/types/checkout/instructions/v1/instruction.paypal_form.show.d.ts.map +1 -0
  62. package/bundles/types/checkout/instructions/v1/instruction.zip_checkout_form.show.d.ts +19 -0
  63. package/bundles/types/checkout/instructions/v1/instruction.zip_checkout_form.show.d.ts.map +1 -0
  64. package/bundles/types/checkout/layout-widgets/additionals.d.ts +3 -0
  65. package/bundles/types/checkout/layout-widgets/additionals.d.ts.map +1 -0
  66. package/bundles/types/checkout/layout-widgets/default-variables.enum.d.ts +9 -0
  67. package/bundles/types/checkout/layout-widgets/default-variables.enum.d.ts.map +1 -0
  68. package/bundles/types/checkout/layout-widgets/message.d.ts +34 -0
  69. package/bundles/types/checkout/layout-widgets/message.d.ts.map +1 -0
  70. package/bundles/types/checkout/layout-widgets/payment-methods-template.d.ts +13 -0
  71. package/bundles/types/checkout/layout-widgets/payment-methods-template.d.ts.map +1 -0
  72. package/bundles/types/checkout/layout-widgets/payment-methods.d.ts +52 -0
  73. package/bundles/types/checkout/layout-widgets/payment-methods.d.ts.map +1 -0
  74. package/bundles/types/checkout/layout-widgets/payment-template.d.ts +3 -0
  75. package/bundles/types/checkout/layout-widgets/payment-template.d.ts.map +1 -0
  76. package/bundles/types/checkout-button/afterpay/afterpay.runner.d.ts +2 -0
  77. package/bundles/types/checkout-button/afterpay/afterpay.runner.d.ts.map +1 -1
  78. package/bundles/types/checkout-button/checkout-contextual-handler.d.ts +4 -0
  79. package/bundles/types/checkout-button/checkout-contextual-handler.d.ts.map +1 -1
  80. package/bundles/types/checkout-button/runner/contextual.runner.d.ts +2 -1
  81. package/bundles/types/checkout-button/runner/contextual.runner.d.ts.map +1 -1
  82. package/bundles/types/checkout-button/runner/popup.runner.d.ts +3 -3
  83. package/bundles/types/checkout-button/runner/popup.runner.d.ts.map +1 -1
  84. package/bundles/types/components/http-core.d.ts.map +1 -1
  85. package/bundles/types/components/iframe-event.d.ts +2 -0
  86. package/bundles/types/components/iframe-event.d.ts.map +1 -1
  87. package/bundles/types/components/iframe.d.ts +2 -0
  88. package/bundles/types/components/iframe.d.ts.map +1 -1
  89. package/bundles/types/components/link.d.ts +1 -0
  90. package/bundles/types/components/link.d.ts.map +1 -1
  91. package/bundles/types/components/param.d.ts +6 -0
  92. package/bundles/types/components/param.d.ts.map +1 -1
  93. package/bundles/types/configs/env/environment.cba.d.ts +1 -1
  94. package/bundles/types/configs/env/environment.cba.d.ts.map +1 -1
  95. package/bundles/types/configs/env/environment.paydock.d.ts +1 -1
  96. package/bundles/types/configs/env/environment.paydock.d.ts.map +1 -1
  97. package/bundles/types/helper/access-token.d.ts +1 -0
  98. package/bundles/types/helper/access-token.d.ts.map +1 -1
  99. package/bundles/types/helper/event-emitter.d.ts +1 -0
  100. package/bundles/types/helper/event-emitter.d.ts.map +1 -1
  101. package/bundles/types/helper/spiner.util.d.ts +6 -0
  102. package/bundles/types/helper/spiner.util.d.ts.map +1 -0
  103. package/bundles/types/helper/widget-logger.d.ts +9 -0
  104. package/bundles/types/helper/widget-logger.d.ts.map +1 -0
  105. package/bundles/types/index-cba.d.ts +4 -0
  106. package/bundles/types/index-cba.d.ts.map +1 -1
  107. package/bundles/types/index.d.ts +4 -0
  108. package/bundles/types/index.d.ts.map +1 -1
  109. package/bundles/types/paypal-data-collector/index.d.ts +23 -0
  110. package/bundles/types/paypal-data-collector/index.d.ts.map +1 -0
  111. package/bundles/types/paypal-data-collector/paypal-data-collector.d.ts +59 -0
  112. package/bundles/types/paypal-data-collector/paypal-data-collector.d.ts.map +1 -0
  113. package/bundles/types/paypal-data-collector/paypal-data-collector.interfaces.d.ts +21 -0
  114. package/bundles/types/paypal-data-collector/paypal-data-collector.interfaces.d.ts.map +1 -0
  115. package/bundles/types/paypal-data-collector/paypal-data-collector.service.d.ts +18 -0
  116. package/bundles/types/paypal-data-collector/paypal-data-collector.service.d.ts.map +1 -0
  117. package/bundles/types/paypal-save-payment-source/index.d.ts +61 -0
  118. package/bundles/types/paypal-save-payment-source/index.d.ts.map +1 -0
  119. package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.d.ts +86 -0
  120. package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.d.ts.map +1 -0
  121. package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.interfaces.d.ts +84 -0
  122. package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.interfaces.d.ts.map +1 -0
  123. package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.service.d.ts +37 -0
  124. package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.service.d.ts.map +1 -0
  125. package/bundles/types/secure-remote-commerce/index.d.ts +2 -1
  126. package/bundles/types/secure-remote-commerce/index.d.ts.map +1 -1
  127. package/bundles/types/secure-remote-commerce/interfaces.d.ts +12 -2
  128. package/bundles/types/secure-remote-commerce/interfaces.d.ts.map +1 -1
  129. package/bundles/types/secure-remote-commerce/providers/mastercard-src/mastercard-src.d.ts.map +1 -1
  130. package/bundles/types/shared/http/http-request.d.ts +14 -0
  131. package/bundles/types/shared/http/http-request.d.ts.map +1 -0
  132. package/bundles/types/shared/http/index.d.ts +2 -0
  133. package/bundles/types/shared/http/index.d.ts.map +1 -0
  134. package/bundles/types/shared/services/instrumentation/instrumentation.agent.d.ts +15 -0
  135. package/bundles/types/shared/services/instrumentation/instrumentation.agent.d.ts.map +1 -0
  136. package/bundles/types/shared/services/instrumentation/instrumentation.config.d.ts +66 -0
  137. package/bundles/types/shared/services/instrumentation/instrumentation.config.d.ts.map +1 -0
  138. package/bundles/types/shared/services/instrumentation/instrumentation.types.d.ts +14 -0
  139. package/bundles/types/shared/services/instrumentation/instrumentation.types.d.ts.map +1 -0
  140. package/bundles/types/shared/services/instrumentation/repositories/action.repository.d.ts +15 -0
  141. package/bundles/types/shared/services/instrumentation/repositories/action.repository.d.ts.map +1 -0
  142. package/bundles/types/shared/services/instrumentation/repositories/error.repository.d.ts +23 -0
  143. package/bundles/types/shared/services/instrumentation/repositories/error.repository.d.ts.map +1 -0
  144. package/bundles/types/shared/services/instrumentation/repositories/event.repository.d.ts +15 -0
  145. package/bundles/types/shared/services/instrumentation/repositories/event.repository.d.ts.map +1 -0
  146. package/bundles/types/shared/services/instrumentation/repositories/index.d.ts +4 -0
  147. package/bundles/types/shared/services/instrumentation/repositories/index.d.ts.map +1 -0
  148. package/bundles/types/wallet-buttons/index.d.ts +4 -0
  149. package/bundles/types/wallet-buttons/index.d.ts.map +1 -1
  150. package/bundles/types/wallet-buttons/wallet-buttons.d.ts +4 -4
  151. package/bundles/types/wallet-buttons/wallet-buttons.d.ts.map +1 -1
  152. package/bundles/types/wallet-buttons/wallet-cba-buttons.d.ts +4 -4
  153. package/bundles/types/wallet-buttons/wallet-cba-buttons.d.ts.map +1 -1
  154. package/bundles/types/wallet-buttons/{afterpay.wallet-service.d.ts → wallet-services/afterpay.wallet-service.d.ts} +1 -1
  155. package/bundles/types/wallet-buttons/wallet-services/afterpay.wallet-service.d.ts.map +1 -0
  156. package/bundles/types/wallet-buttons/{apple.wallet-service.d.ts → wallet-services/apple.wallet-service.d.ts} +3 -3
  157. package/bundles/types/wallet-buttons/wallet-services/apple.wallet-service.d.ts.map +1 -0
  158. package/bundles/types/wallet-buttons/{flypay-v2.wallet-service.d.ts → wallet-services/flypay-v2.wallet-service.d.ts} +3 -3
  159. package/bundles/types/wallet-buttons/wallet-services/flypay-v2.wallet-service.d.ts.map +1 -0
  160. package/bundles/types/wallet-buttons/{flypay.wallet-service.d.ts → wallet-services/flypay.wallet-service.d.ts} +6 -6
  161. package/bundles/types/wallet-buttons/wallet-services/flypay.wallet-service.d.ts.map +1 -0
  162. package/bundles/types/wallet-buttons/{google.wallet-service.d.ts → wallet-services/google.wallet-service.d.ts} +4 -4
  163. package/bundles/types/wallet-buttons/wallet-services/google.wallet-service.d.ts.map +1 -0
  164. package/bundles/types/wallet-buttons/wallet-services/mastercard.wallet-service.d.ts.map +1 -0
  165. package/bundles/types/wallet-buttons/{paypal.wallet-service.d.ts → wallet-services/paypal.wallet-service.d.ts} +1 -1
  166. package/bundles/types/wallet-buttons/wallet-services/paypal.wallet-service.d.ts.map +1 -0
  167. package/bundles/types/wallet-buttons/{stripe.wallet-service.d.ts → wallet-services/stripe.wallet-service.d.ts} +1 -1
  168. package/bundles/types/wallet-buttons/wallet-services/stripe.wallet-service.d.ts.map +1 -0
  169. package/bundles/types/wallet-buttons/{wallet-service.d.ts → wallet-services/wallet-service.d.ts} +4 -4
  170. package/bundles/types/wallet-buttons/wallet-services/wallet-service.d.ts.map +1 -0
  171. package/bundles/types/wallet-buttons-express/base.wallet-button-express.d.ts +195 -0
  172. package/bundles/types/wallet-buttons-express/base.wallet-button-express.d.ts.map +1 -0
  173. package/bundles/types/wallet-buttons-express/enum/event.enum.d.ts +10 -0
  174. package/bundles/types/wallet-buttons-express/enum/event.enum.d.ts.map +1 -0
  175. package/bundles/types/wallet-buttons-express/index.d.ts +131 -0
  176. package/bundles/types/wallet-buttons-express/index.d.ts.map +1 -0
  177. package/bundles/types/wallet-buttons-express/interfaces/base-event-data.interface.d.ts +6 -0
  178. package/bundles/types/wallet-buttons-express/interfaces/base-event-data.interface.d.ts.map +1 -0
  179. package/bundles/types/wallet-buttons-express/interfaces/base-gateway-config.interface.d.ts +6 -0
  180. package/bundles/types/wallet-buttons-express/interfaces/base-gateway-config.interface.d.ts.map +1 -0
  181. package/bundles/types/wallet-buttons-express/interfaces/base-wallet-meta.interface.d.ts +5 -0
  182. package/bundles/types/wallet-buttons-express/interfaces/base-wallet-meta.interface.d.ts.map +1 -0
  183. package/bundles/types/wallet-buttons-express/interfaces/charge-wallet-token-meta.interface.d.ts +14 -0
  184. package/bundles/types/wallet-buttons-express/interfaces/charge-wallet-token-meta.interface.d.ts.map +1 -0
  185. package/bundles/types/wallet-buttons-express/interfaces/on-click-event-data.interface.d.ts +6 -0
  186. package/bundles/types/wallet-buttons-express/interfaces/on-click-event-data.interface.d.ts.map +1 -0
  187. package/bundles/types/wallet-buttons-express/interfaces/on-close-event-data.interface.d.ts +6 -0
  188. package/bundles/types/wallet-buttons-express/interfaces/on-close-event-data.interface.d.ts.map +1 -0
  189. package/bundles/types/wallet-buttons-express/interfaces/on-error-event-data.interface.d.ts +6 -0
  190. package/bundles/types/wallet-buttons-express/interfaces/on-error-event-data.interface.d.ts.map +1 -0
  191. package/bundles/types/wallet-buttons-express/interfaces/on-payment-error-event-data.interface.d.ts +9 -0
  192. package/bundles/types/wallet-buttons-express/interfaces/on-payment-error-event-data.interface.d.ts.map +1 -0
  193. package/bundles/types/wallet-buttons-express/interfaces/on-payment-in-review-event-data.interface.d.ts +6 -0
  194. package/bundles/types/wallet-buttons-express/interfaces/on-payment-in-review-event-data.interface.d.ts.map +1 -0
  195. package/bundles/types/wallet-buttons-express/interfaces/on-payment-successful-event-data.interface.d.ts +11 -0
  196. package/bundles/types/wallet-buttons-express/interfaces/on-payment-successful-event-data.interface.d.ts.map +1 -0
  197. package/bundles/types/wallet-buttons-express/interfaces/on-unavailable-event-data.interface.d.ts +6 -0
  198. package/bundles/types/wallet-buttons-express/interfaces/on-unavailable-event-data.interface.d.ts.map +1 -0
  199. package/bundles/types/wallet-buttons-express/interfaces/wallet-capture-request.interface.d.ts +22 -0
  200. package/bundles/types/wallet-buttons-express/interfaces/wallet-capture-request.interface.d.ts.map +1 -0
  201. package/bundles/types/wallet-buttons-express/services/apple-pay/apple-pay.wallet-button-express.d.ts +50 -0
  202. package/bundles/types/wallet-buttons-express/services/apple-pay/apple-pay.wallet-button-express.d.ts.map +1 -0
  203. package/bundles/types/wallet-buttons-express/services/apple-pay/constants/apple-pay-button-style.constant.d.ts +3 -0
  204. package/bundles/types/wallet-buttons-express/services/apple-pay/constants/apple-pay-button-style.constant.d.ts.map +1 -0
  205. package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-gateway-config.interface.d.ts +6 -0
  206. package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-gateway-config.interface.d.ts.map +1 -0
  207. package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-wallet-meta.interface.d.ts +17 -0
  208. package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-wallet-meta.interface.d.ts.map +1 -0
  209. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-button-style.type.d.ts +2 -0
  210. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-button-style.type.d.ts.map +1 -0
  211. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-button-type.type.d.ts +2 -0
  212. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-button-type.type.d.ts.map +1 -0
  213. package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-gateway-config.interface.d.ts +4 -0
  214. package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-gateway-config.interface.d.ts.map +1 -0
  215. package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-wallet-meta.interface.d.ts +31 -0
  216. package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-wallet-meta.interface.d.ts.map +1 -0
  217. package/bundles/types/wallet-buttons-express/services/paypal/paypal.wallet-button-express.d.ts +47 -0
  218. package/bundles/types/wallet-buttons-express/services/paypal/paypal.wallet-button-express.d.ts.map +1 -0
  219. package/bundles/types/widget/configuration.d.ts.map +1 -1
  220. package/bundles/types/widget/html-multi-widget.d.ts +4 -3
  221. package/bundles/types/widget/html-multi-widget.d.ts.map +1 -1
  222. package/bundles/widget.umd.js +33513 -8908
  223. package/bundles/widget.umd.js.d.ts +867 -52
  224. package/bundles/widget.umd.js.min.d.ts +867 -52
  225. package/bundles/widget.umd.min.js +61 -2
  226. package/docs/click-to-pay-examples.md +36 -0
  227. package/docs/click-to-pay.md +4 -1
  228. package/docs/html/layout.html +1 -0
  229. package/docs/paypal-data-collector-examples.md +58 -0
  230. package/docs/paypal-data-collector.md +149 -0
  231. package/docs/paypal-save-payment-source-examples.md +63 -0
  232. package/docs/paypal-save-payment-source.md +256 -0
  233. package/docs/wallet-buttons-examples.md +29 -2
  234. package/docs/wallet-buttons-express-examples.md +201 -0
  235. package/docs/wallet-buttons-express.md +786 -0
  236. package/docs/wallet-buttons.md +3 -0
  237. package/examples/multi-html-widget/simple.html +2 -1
  238. package/package.json +98 -92
  239. package/slate.md +65 -2
  240. package/bundles/index.cjs.map +0 -1
  241. package/bundles/index.mjs.map +0 -1
  242. package/bundles/types/wallet-buttons/afterpay.wallet-service.d.ts.map +0 -1
  243. package/bundles/types/wallet-buttons/apple.wallet-service.d.ts.map +0 -1
  244. package/bundles/types/wallet-buttons/flypay-v2.wallet-service.d.ts.map +0 -1
  245. package/bundles/types/wallet-buttons/flypay.wallet-service.d.ts.map +0 -1
  246. package/bundles/types/wallet-buttons/google.wallet-service.d.ts.map +0 -1
  247. package/bundles/types/wallet-buttons/mastercard.wallet-service.d.ts.map +0 -1
  248. package/bundles/types/wallet-buttons/paypal.wallet-service.d.ts.map +0 -1
  249. package/bundles/types/wallet-buttons/stripe.wallet-service.d.ts.map +0 -1
  250. package/bundles/types/wallet-buttons/wallet-service.d.ts.map +0 -1
  251. package/bundles/widget.umd.js.map +0 -1
  252. package/bundles/widget.umd.min.js.map +0 -1
  253. /package/bundles/types/wallet-buttons/{mastercard.wallet-service.d.ts → wallet-services/mastercard.wallet-service.d.ts} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"index-cba.d.ts","sourceRoot":"","sources":["../src/index-cba.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AAEzB,OAAO,EACH,OAAO,EACP,UAAU,EACV,KAAK,EACL,oBAAoB,EACpB,IAAI,EACJ,mBAAmB,EACnB,KAAK,WAAW,EAChB,KAAK,OAAO,EACZ,KAAK,MAAM,EACX,KAAK,iBAAiB,GACzB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index-cba.d.ts","sourceRoot":"","sources":["../src/index-cba.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAE7C,OAAO,EACH,OAAO,EACP,UAAU,EACV,KAAK,EACL,oBAAoB,EACpB,IAAI,EACJ,mBAAmB,EACnB,KAAK,WAAW,EAChB,KAAK,OAAO,EACZ,KAAK,MAAM,EACX,KAAK,iBAAiB,GACzB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC"}
@@ -8,6 +8,10 @@ export * from './secure-remote-commerce';
8
8
  export * from './vault-display-widget';
9
9
  export * from './wallet-buttons';
10
10
  export * from './widget';
11
+ export * from './checkout/index';
12
+ export * from './wallet-buttons-express';
13
+ export * from './paypal-data-collector';
14
+ export * from './paypal-save-payment-source';
11
15
  export { ELEMENT, FORM_FIELD, STYLE, SUPPORTED_CARD_TYPES, TEXT, VAULT_DISPLAY_STYLE, type IPayPalMeta, type IStyles, type ITexts, type VaultDisplayStyle, } from './components/param';
12
16
  export { EVENT } from './components/iframe-event';
13
17
  export { TRIGGER } from './components/trigger';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AAEzB,OAAO,EACH,OAAO,EACP,UAAU,EACV,KAAK,EACL,oBAAoB,EACpB,IAAI,EACJ,mBAAmB,EACnB,KAAK,WAAW,EAChB,KAAK,OAAO,EACZ,KAAK,MAAM,EACX,KAAK,iBAAiB,GACzB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAE7C,OAAO,EACH,OAAO,EACP,UAAU,EACV,KAAK,EACL,oBAAoB,EACpB,IAAI,EACJ,mBAAmB,EACnB,KAAK,WAAW,EAChB,KAAK,OAAO,EACZ,KAAK,MAAM,EACX,KAAK,iBAAiB,GACzB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC"}
@@ -0,0 +1,23 @@
1
+ export { PayPalDataCollector } from './paypal-data-collector';
2
+ /**
3
+ * Interface of data used for PayPal configuration. For further information refer to [the documentation](https://developer.paypal.com/sdk/js/reference/#style).
4
+ * @interface PayPalDataCollectorConfig
5
+ *
6
+ * @type {object}
7
+ * @param {boolean} [mouse_movement] Used for indicating if is enabled mouse movement collection.
8
+ */
9
+ /**
10
+ * Data object with the corresponding `correlation_id`.
11
+ * @interface CollectedDeviceData
12
+ *
13
+ * @type {object}
14
+ * @param {string} [correlation_id] The correlation ID that was used on the subsecuent requests.
15
+ */
16
+ /**
17
+ * Interface for IOnErrorEventData
18
+ * @interface IOnErrorEventData
19
+ *
20
+ * @type {object}
21
+ * @param {string} error_code Error code. One of 'promise_not_enabled' or 'script_error'.
22
+ **/
23
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/paypal-data-collector/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9D;;;;;;GAMG;AAEH;;;;;;GAMG;AAEH;;;;;;IAMI"}
@@ -0,0 +1,59 @@
1
+ import { EventEmitter } from "../helper/event-emitter";
2
+ import { type CollectedDeviceData, type IOnErrorEventData, type IPayPalDataCollector, type PayPalDataCollectorConfig } from "./paypal-data-collector.interfaces";
3
+ /**
4
+ * PayPal Data Collector Widget constructor
5
+ *
6
+ * @param {string} flowId - This string identifies the source website of the FraudNet request.
7
+ * @param {PayPalDataCollectorConfig} config - Extra configuration for the widget.
8
+ *
9
+ * @example
10
+ * var payPalDataCollector = new PayPalDataCollector('FLOW_ID', {});
11
+ */
12
+ declare class PayPalDataCollector {
13
+ protected service: IPayPalDataCollector;
14
+ protected eventEmitter: EventEmitter;
15
+ private widgetActionLogger;
16
+ /** @constructs */ constructor(flowId?: string, config?: PayPalDataCollectorConfig);
17
+ /**
18
+ * After configuring the PayPalDataCollector Widget, starts the process and returns
19
+ * the correlation id used among the requests.
20
+ *
21
+ * @returns {Promise<CollectedDeviceData>} Promise when resolved, returnsa an object
22
+ * that contains the `correlation_id` key.
23
+ *
24
+ * @example
25
+ * const collectedDeviceData = await payPalDataCollectorWidget.collectDeviceData();
26
+ * console.log(collectedDeviceData.correlation_id)
27
+ */
28
+ collectDeviceData(): Promise<CollectedDeviceData>;
29
+ /**
30
+ * Callback for onError method.
31
+ *
32
+ * @callback OnErrorCallback
33
+ * @param {IOnErrorEventData|null} data
34
+ */
35
+ /**
36
+ * If the process fails, the function passed as parameter will be called.
37
+ * Important: Do not perform thread blocking operations in callback such as window.alert() calls.
38
+ *
39
+ * @example
40
+ * PayPalDataCollector.onError((eventData) => console.log('Some error occur'));
41
+ *
42
+ * @param {OnErrorCallback} [callback] - Function to be called when there is an error in the flow.
43
+ */
44
+ onError(callback?: (data?: IOnErrorEventData) => void): () => void;
45
+ /**
46
+ * Current method can change environment. By default environment = test.
47
+ * This method does not affect Paydock's API calls or environments, is only for PayPal Data Collector
48
+ * script, in order to know if the script is injected on a live server or is a testing
49
+ * environment. The available values are `test` and `live`. This should match with the used
50
+ * `gateway.mode` in Paydock to process the transaction.
51
+ *
52
+ * @example
53
+ * PayPalDataCollector.setEnv('live');
54
+ * @param {string} env - test, live
55
+ */
56
+ setEnv(env: string): void;
57
+ }
58
+ export { PayPalDataCollector };
59
+ //# sourceMappingURL=paypal-data-collector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paypal-data-collector.d.ts","sourceRoot":"","sources":["../../src/paypal-data-collector/paypal-data-collector.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EAEzB,KAAK,yBAAyB,EAC/B,MAAM,oCAAoC,CAAC;AAK5C;;;;;;;;GAQG;AACH,cAAM,mBAAmB;IACvB,SAAS,CAAC,OAAO,EAAE,oBAAoB,CAAC;IACxC,SAAS,CAAC,YAAY,EAAE,YAAY,CAAC;IACrC,OAAO,CAAC,kBAAkB,CAAqB;IAE/C,kBAAkB,aAEhB,MAAM,CAAC,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,yBAAyB;IAYpC;;;;;;;;;;OAUG;IACI,iBAAiB,IAAI,OAAO,CAAC,mBAAmB,CAAC;IAWxD;;;;;OAKG;IACH;;;;;;;;OAQG;IACI,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,iBAAiB,KAAK,IAAI;IAI5D;;;;;;;;;;OAUG;IACI,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;CAGjC;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
@@ -0,0 +1,21 @@
1
+ export declare enum PAYPAL_DATA_COLLECTOR_EVENTS {
2
+ ON_ERROR = "ON_ERROR"
3
+ }
4
+ export declare enum ErrorCodes {
5
+ PROMISE_NOT_ENABLED = "promise_not_enabled",
6
+ SCRIPT_ERROR = "script_error"
7
+ }
8
+ export interface PayPalDataCollectorConfig {
9
+ mouse_movement?: boolean;
10
+ }
11
+ export interface IPayPalDataCollector {
12
+ collectDeviceData(): Promise<CollectedDeviceData>;
13
+ setEnv(env: string): void;
14
+ }
15
+ export interface CollectedDeviceData {
16
+ correlation_id: string;
17
+ }
18
+ export interface IOnErrorEventData {
19
+ error_code: ErrorCodes;
20
+ }
21
+ //# sourceMappingURL=paypal-data-collector.interfaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paypal-data-collector.interfaces.d.ts","sourceRoot":"","sources":["../../src/paypal-data-collector/paypal-data-collector.interfaces.ts"],"names":[],"mappings":"AAAA,oBAAY,4BAA4B;IACtC,QAAQ,aAAa;CACtB;AAED,oBAAY,UAAU;IACpB,mBAAmB,wBAAwB;IAC3C,YAAY,iBAAiB;CAC9B;AAED,MAAM,WAAW,yBAAyB;IACxC,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,MAAM,WAAW,oBAAoB;IACnC,iBAAiB,IAAI,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAClD,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAED,MAAM,WAAW,mBAAmB;IAClC,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,UAAU,CAAC;CACxB"}
@@ -0,0 +1,18 @@
1
+ import type { EventEmitter } from "../helper/event-emitter";
2
+ import { type CollectedDeviceData, type IPayPalDataCollector, type PayPalDataCollectorConfig } from "./paypal-data-collector.interfaces";
3
+ export declare class PayPalDataCollectorService implements IPayPalDataCollector {
4
+ protected eventEmitter: EventEmitter;
5
+ protected flowId?: string;
6
+ protected config?: PayPalDataCollectorConfig;
7
+ protected correlationId: string;
8
+ protected isSandbox: boolean;
9
+ private widgetActionLogger;
10
+ constructor(eventEmitter: EventEmitter, flowId?: string, config?: PayPalDataCollectorConfig);
11
+ static fromConfig(eventEmitter: EventEmitter, flowId?: string, config?: PayPalDataCollectorConfig): PayPalDataCollectorService;
12
+ collectDeviceData(): Promise<CollectedDeviceData>;
13
+ private appendPaypalSavePaymentSourceComponent;
14
+ private setupCallbacks;
15
+ onError(): void;
16
+ setEnv(env: string): void;
17
+ }
18
+ //# sourceMappingURL=paypal-data-collector.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paypal-data-collector.service.d.ts","sourceRoot":"","sources":["../../src/paypal-data-collector/paypal-data-collector.service.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EACL,KAAK,mBAAmB,EAExB,KAAK,oBAAoB,EAEzB,KAAK,yBAAyB,EAC/B,MAAM,oCAAoC,CAAC;AAG5C,qBAAa,0BAA2B,YAAW,oBAAoB;IAMnE,SAAS,CAAC,YAAY,EAAE,YAAY;IACpC,SAAS,CAAC,MAAM,CAAC,EAAE,MAAM;IACzB,SAAS,CAAC,MAAM,CAAC,EAAE,yBAAyB;IAP9C,SAAS,CAAC,aAAa,EAAE,MAAM,CAAC;IAChC,SAAS,CAAC,SAAS,EAAE,OAAO,CAAC;IAC7B,OAAO,CAAC,kBAAkB,CAAqB;gBAGnC,YAAY,EAAE,YAAY,EAC1B,MAAM,CAAC,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,yBAAyB;IAK9C,MAAM,CAAC,UAAU,CACf,YAAY,EAAE,YAAY,EAC1B,MAAM,CAAC,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,yBAAyB;IAK7B,iBAAiB,IAAI,OAAO,CAAC,mBAAmB,CAAC;IAWxD,OAAO,CAAC,sCAAsC;IAiC9C,OAAO,CAAC,cAAc;IA0Bf,OAAO;IAOP,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;CAGjC"}
@@ -0,0 +1,61 @@
1
+ export { PayPalSavePaymentSourceWidget } from './paypal-save-payment-source';
2
+ /**
3
+ * Interface of data used for PayPal configuration. For further information refer to [the documentation](https://developer.paypal.com/sdk/js/reference/#style).
4
+ * @interface PayPalSavePaymentSourceWidgetConfig
5
+ *
6
+ * @type {object}
7
+ * @param {'vertical'|'horizontal'} [style.layout] Used for indicating the PayPal Button layout.
8
+ * @param {'blue'|'gold'|'silver'|'black'|'white'} [style.color] Used for indicating the main color of the PayPal Button.
9
+ * @param {'rect'|'sharp'|'pill'} [style.shape] Used for indicating the shape of the PayPal Button.
10
+ * @param {'paypal'|'checkout'|'buynow'|'pay'} [style.label] Used for indicating the label of the PayPal Button.
11
+ * @param {boolean} [style.disableMaxWidth] Used for indicating if the max width will be disabled.
12
+ * @param {boolean} [style.disableMaxHeight] Used for indicating the max height will be disabled.
13
+ * @param {number} [style.height] Used for indicating the height of the PayPal Button, if disableMaxHeight is true.
14
+ * @param {number} [style.borderRadius] Used for indicating the border radius of the PayPal Button.
15
+ * @param {boolean} [style.tagline] Used for indicating the tagline of the PayPal Button.
16
+ * @param {number} [message.amount] Used for indicating an amount before the payment.
17
+ * @param {'center'|'left'|'right'} [message.align] Used for indicating the align of the message.
18
+ * @param {'black'|'white'} [message.color] Used for indicating the color of the message.
19
+ * @param {'top'|'bottom'} [message.position] Used for indicating the position of the message.
20
+ */
21
+ /**
22
+ * Interface of possible error codes inside onError event data.
23
+ * @interface ErrorCodes
24
+ *
25
+ * @type {object}
26
+ * @param {string} [unavailable] Error code when an error occurs loading the widget.
27
+ * @param {string} [onPaypalVaultSetupTokenError] Error code when an error occrus on PayPal side.
28
+ * @param {string} [onGetIdTokenError] Error code when trying to get ID token from PayPal.
29
+ * @param {string} [onGetWalletConfigError] Error code when trying to get wallet config from Paydock.
30
+ * @param {string} [onGetSetupTokenError] Error code when trying to get the setup token from PayPal.
31
+ * @param {string} [onOneTimeTokenError] Error code when trying to get the one time token from Paydock.
32
+ */
33
+ /**
34
+ * Interface for IOnSuccessEventData
35
+ * @interface IOnSuccessEventData
36
+ *
37
+ * @type {object}
38
+ * @param {EVENTS} event - Event Name is 'ON_SUCCESS'
39
+ * @param {object} data Data object
40
+ * @param {string} data.token One Time Token to be exchanged for a Paydock Customer.
41
+ * @param {string} [data.email] Paypal account customer email if retrieved from Paypal servers.
42
+ **/
43
+ /**
44
+ * Interface for IOnErrorEventData
45
+ * @interface IOnErrorEventData
46
+ *
47
+ * @type {object}
48
+ * @param {EVENTS} event - Event Name is 'ON_ERROR'
49
+ * @param {object} data Error data object
50
+ * @param {ErrorCodes} data.error_code Error code. One of ErrorCodes.
51
+ * @param {string} [data.details] Error details.
52
+ * @param {string} [data.message] Error message.
53
+ **/
54
+ /**
55
+ * Interface for IOnCancelEventData
56
+ * @interface IOnCancelEventData
57
+ *
58
+ * @type {object}
59
+ * @param {EVENTS} event - Event Name is 'ON_CANCEL'
60
+ **/
61
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/paypal-save-payment-source/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,8BAA8B,CAAC;AAE7E;;;;;;;;;;;;;;;;;;GAkBG;AAEH;;;;;;;;;;;GAWG;AAEH;;;;;;;;;IASI;AAEJ;;;;;;;;;;IAUI;AAEJ;;;;;;IAMI"}
@@ -0,0 +1,86 @@
1
+ import { Container } from '../components/container';
2
+ import { EventEmitter } from '../helper/event-emitter';
3
+ import { type IOnCancelEventData, type IOnErrorEventData, type IOnSuccessEventData, type IPayPalSavePaymentSourceWidget, type PayPalSavePaymentSourceWidgetConfig } from './paypal-save-payment-source.interfaces';
4
+ /**
5
+ * PayPal Save Payment Source Widget constructor
6
+ *
7
+ * @param {string} selector - Selector of html element. Container for PayPal Save Payment Source Widget.
8
+ * @param {string} publicKey - PayDock users public key.
9
+ * @param {string} gatewayId - PayDock's PayPal gatewayId.
10
+ * @param {PayPalSavePaymentSourceWidgetConfig} config - Extra configuration for the widget, like styles.
11
+ *
12
+ * @example
13
+ * var payPalSavePaymentSourceWidget = new PayPalSavePaymentSourceWidget('#paypalButton', 'public_key', 'gateway_id');
14
+ */
15
+ declare class PayPalSavePaymentSourceWidget {
16
+ protected container: Container;
17
+ protected service: IPayPalSavePaymentSourceWidget;
18
+ protected eventEmitter: EventEmitter;
19
+ private widgetActionLogger;
20
+ /** @constructs */ constructor(selector: string, publicKey: string, gatewayId: string, config?: PayPalSavePaymentSourceWidgetConfig);
21
+ /**
22
+ * The final method after configuring the PayPalSavePaymentSource Widget to
23
+ * start the load process.
24
+ */
25
+ load(): void;
26
+ /**
27
+ * Current method can change environment. By default environment = sandbox.
28
+ * Also we can change domain alias for this environment. By default domain_alias = paydock.com
29
+ *
30
+ * @example
31
+ * payPalSavePaymentSourceWidget.setEnv('production');
32
+ * @param {string} env - sandbox, production
33
+ * @param {string} [alias] - Own domain alias
34
+ */
35
+ setEnv(env: string, alias?: string): void;
36
+ /**
37
+ * Callback for onSuccess method.
38
+ *
39
+ * @callback OnSuccessCallback
40
+ * @param {IOnSuccessEventData} data
41
+ */
42
+ /**
43
+ * If the setup token was successfully approved and a OTT was generated, the function passed as parameter will be called.
44
+ * Important: Do not perform thread blocking operations in callback such as window.alert() calls.
45
+ *
46
+ * @example
47
+ * payPalSavePaymentSourceWidget.onSuccess((eventData) => console.log('One time token and email obtained successfully'));
48
+ *
49
+ * @param {OnSuccessCallback} [callback] - Function to be called when the result is successful.
50
+ */
51
+ onSuccess(callback?: (data: IOnSuccessEventData) => void): () => void;
52
+ /**
53
+ * Callback for onError method.
54
+ *
55
+ * @callback OnErrorCallback
56
+ * @param {IOnErrorEventData} data
57
+ */
58
+ /**
59
+ * If in the process for obtaining the setup token fails, the function passed as parameter will be called.
60
+ * Important: Do not perform thread blocking operations in callback such as window.alert() calls.
61
+ *
62
+ * @example
63
+ * payPalSavePaymentSourceWidget.onError((eventData) => console.log('Some error occurred'));
64
+ *
65
+ * @param {OnErrorCallback} [callback] - Function to be called when there is an error in the flow.
66
+ */
67
+ onError(callback?: (data: IOnErrorEventData) => void): () => void;
68
+ /**
69
+ * Callback for onCancel method.
70
+ *
71
+ * @callback OnCancelCallback
72
+ * @param {IOnCancelEventData} data
73
+ */
74
+ /**
75
+ * If in the process for obtaining the setup token was cancelled, the function passed as parameter will be called.
76
+ * Important: Do not perform thread blocking operations in callback such as window.alert() calls.
77
+ *
78
+ * @example
79
+ * payPalSavePaymentSourceWidget.onCancel(() => console.log('Operation cancelled'));
80
+ *
81
+ * @param {OnCancelCallback} [callback] - Function to be called when the operation is cancelled.
82
+ */
83
+ onCancel(callback?: (data?: IOnCancelEventData) => void): () => void;
84
+ }
85
+ export { PayPalSavePaymentSourceWidget };
86
+ //# sourceMappingURL=paypal-save-payment-source.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paypal-save-payment-source.d.ts","sourceRoot":"","sources":["../../src/paypal-save-payment-source/paypal-save-payment-source.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,8BAA8B,EACnC,KAAK,mCAAmC,EACzC,MAAM,yCAAyC,CAAC;AAIjD;;;;;;;;;;GAUG;AACH,cAAM,6BAA6B;IACjC,SAAS,CAAC,SAAS,EAAE,SAAS,CAAC;IAC/B,SAAS,CAAC,OAAO,EAAE,8BAA8B,CAAC;IAClD,SAAS,CAAC,YAAY,EAAE,YAAY,CAAC;IACrC,OAAO,CAAC,kBAAkB,CAAqB;IAE/C,kBAAkB,aAEhB,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,MAAM,CAAC,EAAE,mCAAmC;IAe9C;;;OAGG;IACI,IAAI;IAWX;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM;IAIzC;;;;;OAKG;IACH;;;;;;;;OAQG;IACI,SAAS,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,mBAAmB,KAAK,IAAI;IAI/D;;;;;OAKG;IACH;;;;;;;;OAQG;IACI,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,iBAAiB,KAAK,IAAI;IAI3D;;;;;OAKG;IACH;;;;;;;;OAQG;IACI,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,kBAAkB,KAAK,IAAI;CAG/D;AAED,OAAO,EAAE,6BAA6B,EAAE,CAAC"}
@@ -0,0 +1,84 @@
1
+ import type { Container } from '../components/container';
2
+ export interface PaypalOathTokenResponse {
3
+ id_token: string;
4
+ access_token: string;
5
+ }
6
+ export interface PaypalOAuthTokenBody {
7
+ gateway_id: string;
8
+ }
9
+ export interface PaypalSetupTokenBody {
10
+ gateway_id: string;
11
+ token: string;
12
+ }
13
+ export interface PaypalSetupTokenResponse {
14
+ setup_token: string;
15
+ }
16
+ export interface PaypalOttBody {
17
+ gateway_id: string;
18
+ }
19
+ export interface PaypalOttResponse {
20
+ token: string;
21
+ email: string;
22
+ }
23
+ export interface PayPalStyleConfig {
24
+ layout?: 'vertical' | 'horizontal';
25
+ color?: 'blue' | 'gold' | 'silver' | 'black' | 'white';
26
+ shape?: 'rect' | 'sharp' | 'pill';
27
+ label?: 'paypal' | 'checkout' | 'buynow' | 'pay';
28
+ disableMaxWidth?: boolean;
29
+ disableMaxHeight?: boolean;
30
+ height?: number;
31
+ borderRadius?: number;
32
+ tagline?: boolean;
33
+ }
34
+ export interface PayPalMessageConfig {
35
+ amount?: number;
36
+ align?: 'center' | 'left' | 'right';
37
+ color?: 'black' | 'white';
38
+ position?: 'top' | 'bottom';
39
+ }
40
+ export interface PayPalSavePaymentSourceWidgetConfig {
41
+ style?: PayPalStyleConfig;
42
+ message?: PayPalMessageConfig;
43
+ }
44
+ export declare const PAYPAL_SAVE_PAYMENT_EVENTS: {
45
+ ON_SUCCESS: string;
46
+ ON_ERROR: string;
47
+ ON_CANCEL: string;
48
+ };
49
+ export interface IPayPalSavePaymentSourceWidget {
50
+ load(container: Container): void;
51
+ setEnv(env: string, alias?: string): void;
52
+ }
53
+ export declare enum ErrorCodes {
54
+ UNAVAILABLE = "unavailable",
55
+ ON_PAYPAL_VAULT_SETUP_TOKEN_ERROR = "onPaypalVaultSetupTokenError",
56
+ ON_GET_ID_TOKEN_ERROR = "onGetIdTokenError",
57
+ ON_GET_WALLET_CONFIG_ERROR = "onGetWalletConfigError",
58
+ ON_GET_SETUP_TOKEN_ERROR = "onGetSetupTokenError",
59
+ ON_ONE_TIME_TOKEN_ERROR = "onOneTimeTokenError"
60
+ }
61
+ export declare enum EVENTS {
62
+ ON_SUCCESS = "ON_SUCCESS",
63
+ ON_ERROR = "ON_ERROR",
64
+ ON_CANCEL = "ON_CANCEL"
65
+ }
66
+ export interface IOnSuccessEventData {
67
+ event: EVENTS.ON_SUCCESS;
68
+ data: {
69
+ token: string;
70
+ email: string;
71
+ };
72
+ }
73
+ export interface IOnErrorEventData {
74
+ event: EVENTS.ON_ERROR;
75
+ data: {
76
+ error_code: ErrorCodes;
77
+ details?: string;
78
+ message?: string;
79
+ };
80
+ }
81
+ export interface IOnCancelEventData {
82
+ event: EVENTS.ON_CANCEL;
83
+ }
84
+ //# sourceMappingURL=paypal-save-payment-source.interfaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paypal-save-payment-source.interfaces.d.ts","sourceRoot":"","sources":["../../src/paypal-save-payment-source/paypal-save-payment-source.interfaces.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEzD,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;CACtB;AACD,MAAM,WAAW,oBAAoB;IACnC,UAAU,EAAE,MAAM,CAAC;CACpB;AACD,MAAM,WAAW,oBAAoB;IACnC,UAAU,EAAE,MAAM,CAAC;IACnB,K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K,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3C;AAED,oBAAY,UAAU;IACpB,WAAW,gBAAgB;IAC3B,iCAAiC,iCAAiC;IAClE,qBAAqB,sBAAsB;IAC3C,0BAA0B,2BAA2B;IACrD,wBAAwB,yBAAyB;IACjD,uBAAuB,wBAAwB;CAChD;AAED,oBAAY,MAAM;IAChB,UAAU,eAAe;IACzB,QAAQ,aAAa;IACrB,SAAS,cAAc;CACxB;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC,UAAU,CAAC;IACzB,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;CACH;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC;IACvB,IAAI,EAAE;QACJ,UAAU,EAAE,UAAU,CAAC;QACvB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;CACH;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC,SAAS,CAAC;CACzB"}
@@ -0,0 +1,37 @@
1
+ import type { GetWalletConfigResponse } from '../api/api-gateway-internal';
2
+ import { ApiInternal } from '../api/api-internal';
3
+ import type { Container } from '../components/container';
4
+ import type { EventEmitter } from '../helper/event-emitter';
5
+ import { type IPayPalSavePaymentSourceWidget, type PayPalSavePaymentSourceWidgetConfig } from './paypal-save-payment-source.interfaces';
6
+ declare global {
7
+ interface Window {
8
+ paypal: any;
9
+ }
10
+ }
11
+ export declare class PayPalSavePaymentSourceService implements IPayPalSavePaymentSourceWidget {
12
+ protected publicKey: string;
13
+ protected gatewayId: string;
14
+ protected eventEmitter: EventEmitter;
15
+ protected config?: PayPalSavePaymentSourceWidgetConfig;
16
+ protected paypal: any;
17
+ protected api: ApiInternal;
18
+ protected walletConfig: GetWalletConfigResponse;
19
+ protected idToken: string;
20
+ protected accessToken: string;
21
+ private widgetActionLogger;
22
+ constructor(publicKey: string, gatewayId: string, eventEmitter: EventEmitter, config?: PayPalSavePaymentSourceWidgetConfig);
23
+ static fromConfig(publicKey: string, gatewayId: string, eventEmitter: EventEmitter, config?: PayPalSavePaymentSourceWidgetConfig): PayPalSavePaymentSourceService;
24
+ private getApiAuthType;
25
+ setEnv(env: string, alias?: string): void;
26
+ load(container: Container): void;
27
+ private renderPaypalSavePaymentSourceComponent;
28
+ private getClientAuthFromWalletConfig;
29
+ private getSetupToken;
30
+ protected onObtainedVaultSetupToken(vaultSetupToken: string): Promise<void>;
31
+ protected onErrorVaultSetupToken(error: any): void;
32
+ protected onCancelVaultSetupToken(): void;
33
+ private getIdToken;
34
+ private getWalletConfig;
35
+ private extractErrorDetails;
36
+ }
37
+ //# sourceMappingURL=paypal-save-payment-source.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paypal-save-payment-source.service.d.ts","sourceRoot":"","sources":["../../src/paypal-save-payment-source/paypal-save-payment-source.service.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAC3E,OAAO,EAAiB,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAEL,KAAK,8BAA8B,EAEnC,KAAK,mCAAmC,EAOzC,MAAM,yCAAyC,CAAC;AAGjD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,MAAM,EAAE,GAAG,CAAC;KACb;CACF;AAWD,qBAAa,8BAA+B,YAAW,8BAA8B;IASjF,SAAS,CAAC,SAAS,EAAE,MAAM;IAC3B,SAAS,CAAC,SAAS,EAAE,MAAM;IAC3B,SAAS,CAAC,YAAY,EAAE,YAAY;IACpC,SAAS,CAAC,MAAM,CAAC,EAAE,mCAAmC;IAXxD,SAAS,CAAC,MAAM,EAAE,GAAG,CAAC;IACtB,SAAS,CAAC,GAAG,EAAE,WAAW,CAAC;IAC3B,SAAS,CAAC,YAAY,EAAE,uBAAuB,CAAC;IAChD,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC;IAC1B,SAAS,CAAC,WAAW,EAAE,MAAM,CAAC;IAC9B,OAAO,CAAC,kBAAkB,CAAqB;gBAGnC,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,YAAY,EAC1B,MAAM,CAAC,EAAE,mCAAmC;IAQxD,MAAM,CAAC,UAAU,CACf,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,YAAY,EAC1B,MAAM,CAAC,EAAE,mCAAmC;IAU9C,OAAO,CAAC,cAAc;IAOf,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI;IAIzC,IAAI,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI;IAsBvC,OAAO,CAAC,sCAAsC;IAgD9C,OAAO,CAAC,6BAA6B;IAIrC,OAAO,CAAC,aAAa;IAyBrB,SAAS,CAAC,yBAAyB,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IA0B3E,SAAS,CAAC,sBAAsB,CAAC,KAAK,KAAA,GAAG,IAAI;IAQ7C,SAAS,CAAC,uBAAuB,IAAI,IAAI;IAKzC,OAAO,CAAC,UAAU;IAqBlB,OAAO,CAAC,eAAe;IAmBvB,OAAO,CAAC,mBAAmB;CAQ5B"}
@@ -46,9 +46,10 @@ export { ClickToPay } from './click-to-pay-secure-remote-commerce';
46
46
  * @param {string} [customer.first_name] Customer first name.
47
47
  * @param {string} [customer.last_name] Customer last name.
48
48
  * @param {object} [customer.phone] Object where the customer phone is stored.
49
- * @param {string} [customer.phone.country_code] Customer phone country code (example "1" for US). // TODO: Confirm if it can be removed!
49
+ * @param {string} [customer.phone.country_code] Customer phone country code (example "1" for US).
50
50
  * @param {string} [customer.phone.phone] Customer phone number.
51
51
  * @param {string} [unaccepted_card_type] Used to block a specific card type. Options are 'CREDIT', 'DEBIT'.
52
+ * @param {string} [recognition_token] Used for Click to Pay to load user information and preferences.
52
53
  */
53
54
  /**
54
55
  * Interface for data returned in callbacks
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/secure-remote-commerce/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AAEnE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AAEH;;;;;;;GAOG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH;;;;;;;;;;;GAWG"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/secure-remote-commerce/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AAEnE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AAEH;;;;;;;GAOG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH;;;;;;;;;;;GAWG"}
@@ -9,6 +9,8 @@
9
9
  * @param {string} CHECKOUT_POPUP_CLOSE=checkoutPopupClose Event sent when Click To Pay checkout flow is closed, regardless of embedded or windowed mode.
10
10
  * @param {string} CHECKOUT_COMPLETED=checkoutCompleted Event sent on successful checkout by customer. Check [data](#EventDataCheckoutCompletedData) for more information.
11
11
  * @param {string} CHECKOUT_ERROR=checkoutError Event sent on error checkout by customer. Check [data](#EventData) for more information.
12
+ * @param {string} RECOGNITION_TOKEN_REQUESTED=recognitionTokenRequested Event sent when a recognition token was found on the mastercard SDK response.
13
+ * @param {string} RECOGNITION_TOKEN_DROPPED=recognitionTokenDropped Event sent when a recognition token needs to be dropped for user be no longer remembered.
12
14
  */
13
15
  export declare enum EVENT {
14
16
  IFRAME_LOADED = "iframeLoaded",
@@ -16,11 +18,13 @@ export declare enum EVENT {
16
18
  CHECKOUT_COMPLETED = "checkoutCompleted",
17
19
  CHECKOUT_ERROR = "checkoutError",
18
20
  CHECKOUT_POPUP_OPEN = "checkoutPopupOpen",
19
- CHECKOUT_POPUP_CLOSE = "checkoutPopupClose"
21
+ CHECKOUT_POPUP_CLOSE = "checkoutPopupClose",
22
+ RECOGNITION_TOKEN_REQUESTED = "recognitionTokenRequested",
23
+ RECOGNITION_TOKEN_DROPPED = "recognitionTokenDropped"
20
24
  }
21
25
  export interface EventData {
22
26
  type: EVENT_DATA_TYPE;
23
- data?: string | EventDataCheckoutCompletedData;
27
+ data?: string | EventDataCheckoutCompletedData | EventDataRecognitionTokenRequested;
24
28
  }
25
29
  /**
26
30
  * List of available event data types
@@ -36,6 +40,11 @@ export declare enum EVENT_DATA_TYPE {
36
40
  USER_ERROR = "UserError",
37
41
  SUCCESS = "Success"
38
42
  }
43
+ interface EventDataRecognitionTokenRequested {
44
+ data: {
45
+ recognitionToken: string;
46
+ };
47
+ }
39
48
  interface EventDataCheckoutCompletedData {
40
49
  type: 'src' | 'manual';
41
50
  token: string;
@@ -123,6 +132,7 @@ export interface IClickToPayMeta extends IBaseSRCMeta {
123
132
  };
124
133
  customer?: Customer;
125
134
  unaccepted_card_type?: 'CREDIT' | 'DEBIT';
135
+ recognition_token?: string;
126
136
  }
127
137
  export type MASTERCARD_DPA_SHIPPING_BILLING_PREFERENCE = 'FULL' | 'POSTAL_COUNTRY' | 'NONE';
128
138
  export type DPA_DYNAMIC_DATA_TYPE = 'TAVV' | 'DTVV';
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/secure-remote-commerce/interfaces.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,oBAAY,KAAK;IACb,aAAa,iBAAiB;IAC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ChC,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,eAAO,MAAM,KAAK;;;;;;;CAOjB,CAAC"}
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/secure-remote-commerce/interfaces.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,oBAAY,KAAK;IACb,aAAa,iBAAiB;IAC9B,cAAc,kBAAkB;IAChC,kBAAkB,sBAAsB;IACxC,cAAc,kBAAkB;IAChC,mBAAmB,sBAAsB;IACzC,oBAAoB,uBAAuB;IAC3C,2BAA2B,8BAA8B;IACzD,yBAAyB,4BAA4B;CACxD;AAED,MAAM,WAAW,SAAS;IACtB,IAAI,EAAE,eAAe,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,GAAG,8BAA8B,GAAG,kCAAkC,CAAC;CACvF;AAED;;;;;;;;GAQG;AACH,oBAAY,eAAe;IACvB,cAAc,kBAAkB;IAChC,UAAU,cAAc;IACxB,OAAO,YAAY;CACtB;AAED,UAAU,kCAAkC;IACxC,IAAI,EAAE;QACF,gBAAgB,EAAE,MAAM,CAAC;KAC5B,CAAC;CACL;AAED,UAAU,8BAA8B;IACpC,IAAI,EAAE,KAAK,GAAG,QAAQ,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE;QACX,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;QAC3B,WAAW,CAAC,EAAE,MAAM,GAAG,YAAY,GAAG,MAAM,GAAG,QAAQ,GAAG,UAAU,CAAC;QACrE,SAAS,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;QAC9D,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,aA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,EAAE,QAAQ,CAAC;IACpB,oBAAoB,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAC1C,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,MAAM,0CAA0C,GAAG,MAAM,GAAG,gBAAgB,GAAG,MAAM,CAAC;AAE5F,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG,MAAM,CAAC;AAEpD,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG,UAAU,CAAC;AAE/C,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,cAAc,GAAG,gBAAgB,CAAC;AAE9E,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,GAAG,gBAAgB,CAAC;AAExE,MAAM,WAAW,OAAO;IACpB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,eAAO,MAAM,KAAK;;;;;;;CAOjB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"mastercard-src.d.ts","sourceRoot":"","sources":["../../../../src/secure-remote-commerce/providers/mastercard-src/mastercard-src.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAkB,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAc,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAS,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAG1D,qBA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,SAAS,CAAC,YAAY,EAAE,YAAY;IAAE,SAAS,CAAC,UAAU;IALxK,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC;IACrB,SAAS,CAAC,eAAe,EAAE,SAAS,CAAC;IACrC,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,WAAW,EAAE,WAAW,CAAC;gBAEvB,eAAe,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAY,IAAI,EAAE,eAAe,EAAY,YAAY,EAAE,YAAY,EAAY,UAAU,KAAA,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM;IAsBrM,OAAO,CAAC,iBAAiB;IAqClB,IAAI,IAAI,IAAI;IAUZ,MAAM,IAAI,MAAM;IAIhB,YAAY,CAAC,QAAQ,EAAE,OAAO;IAK9B,YAAY;IAKZ,MAAM;IAKN,aAAa,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI;CAkB9C"}
@@ -0,0 +1,14 @@
1
+ export type HttpRequestMethod = 'DELETE' | 'GET' | 'OPTIONS' | 'POST' | 'PUT';
2
+ export type HttpRequestUrl = string | URL;
3
+ export declare class HttpRequest {
4
+ private request;
5
+ private constructor();
6
+ static create(method: HttpRequestMethod, url: string | HttpRequestUrl): HttpRequest;
7
+ inner(): XMLHttpRequest;
8
+ setHeader(name: string, value: string): this;
9
+ setAccessToken(value: string): this;
10
+ setPublicKey(value: string): this;
11
+ setContentTypeJson(): this;
12
+ setSdkVersion(): this;
13
+ }
14
+ //# sourceMappingURL=http-request.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http-request.d.ts","sourceRoot":"","sources":["../../../src/shared/http/http-request.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,GAAG,MAAM,GAAG,KAAK,CAAA;AAC7E,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,GAAG,CAAA;AAEzC,qBAAa,WAAW;IACtB,OAAO,CAAC,OAAO,CAAgB;IAE/B,OAAO;WAIO,MAAM,CAAC,MAAM,EAAE,iBAAiB,EAAE,GAAG,EAAE,MAAM,GAAG,cAAc;IAQrE,KAAK;IAIL,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;IAMrC,cAAc,CAAC,KAAK,EAAE,MAAM;IAI5B,YAAY,CAAC,KAAK,EAAE,MAAM;IAI1B,kBAAkB;IAIlB,aAAa;CAQrB"}
@@ -0,0 +1,2 @@
1
+ export * from "./http-request";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shared/http/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA"}
@@ -0,0 +1,15 @@
1
+ import { MicroAgent } from '@newrelic/browser-agent/loaders/micro-agent';
2
+ type AgentPrototype = Pick<(typeof MicroAgent)['prototype'], 'addPageAction' | 'noticeError'>;
3
+ type AgentMethodNames = keyof AgentPrototype;
4
+ type AgentMethodParameters<T extends AgentMethodNames> = Parameters<AgentPrototype[T]>;
5
+ declare class InstrumentationAgent extends MicroAgent {
6
+ private static agent;
7
+ private static available;
8
+ private static initialized;
9
+ private constructor();
10
+ static get instance(): InstrumentationAgent;
11
+ isAvailable(): boolean;
12
+ call: <T extends "addPageAction" | "noticeError">(method: T, ...args: AgentMethodParameters<T>) => void;
13
+ }
14
+ export { InstrumentationAgent };
15
+ //# sourceMappingURL=instrumentation.agent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instrumentation.agent.d.ts","sourceRoot":"","sources":["../../../../src/shared/services/instrumentation/instrumentation.agent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,6CAA6C,CAAC;AAMzE,KAAK,cAAc,GAAG,IAAI,CAAC,CAAC,OAAO,UAAU,CAAC,CAAC,WAAW,CAAC,EAAE,eAAe,GAAG,aAAa,CAAC,CAAC;AAC9F,KAAK,gBAAgB,GAAG,MAAM,cAAc,CAAC;AAC7C,KAAK,qBAAqB,CAAC,CAAC,SAAS,gBAAgB,IAAI,UAAU,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;AAEvF,cAAM,oBAAqB,SAAQ,UAAU;IACzC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAuB;IAC3C,OAAO,CAAC,MAAM,CAAC,SAAS,CAAU;IAClC,OAAO,CAAC,MAAM,CAAC,WAAW,CAAU;IAEpC,OAAO;IAIP,WAAkB,QAAQ,yBAmBzB;IAEM,WAAW;IAIX,IAAI,sDAAwC,CAAC,WAAW,sBAAsB,CAAC,CAAC,UAIrF;CACL;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAC"}