@aws-amplify/notifications 2.0.1-api-v6-models.9351bcf.0 → 2.0.1-api-v6-models.58f2536.0

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 (287) hide show
  1. package/in-app-messaging/package.json +4 -4
  2. package/lib/eventListeners/eventListeners.js +19 -37
  3. package/lib/eventListeners/index.js +4 -3
  4. package/lib/eventListeners/types.d.ts +2 -2
  5. package/lib/inAppMessaging/errors/InAppMessagingError.js +8 -11
  6. package/lib/inAppMessaging/errors/assertServiceError.js +3 -2
  7. package/lib/inAppMessaging/errors/assertValidationError.js +5 -4
  8. package/lib/inAppMessaging/errors/index.js +6 -5
  9. package/lib/inAppMessaging/errors/validation.js +7 -7
  10. package/lib/inAppMessaging/index.d.ts +2 -1
  11. package/lib/inAppMessaging/index.js +12 -10
  12. package/lib/inAppMessaging/providers/pinpoint/apis/clearMessages.d.ts +13 -0
  13. package/lib/inAppMessaging/providers/pinpoint/apis/clearMessages.js +26 -0
  14. package/lib/inAppMessaging/providers/pinpoint/apis/dispatchEvent.js +26 -38
  15. package/lib/inAppMessaging/providers/pinpoint/apis/identifyUser.d.ts +2 -1
  16. package/lib/inAppMessaging/providers/pinpoint/apis/identifyUser.js +24 -35
  17. package/lib/inAppMessaging/providers/pinpoint/apis/index.d.ts +1 -0
  18. package/lib/inAppMessaging/providers/pinpoint/apis/index.js +13 -10
  19. package/lib/inAppMessaging/providers/pinpoint/apis/initializeInAppMessaging.js +21 -21
  20. package/lib/inAppMessaging/providers/pinpoint/apis/notifyMessageInteraction.js +6 -6
  21. package/lib/inAppMessaging/providers/pinpoint/apis/onMessageActionTaken.js +5 -4
  22. package/lib/inAppMessaging/providers/pinpoint/apis/onMessageDismissed.js +5 -4
  23. package/lib/inAppMessaging/providers/pinpoint/apis/onMessageDisplayed.js +5 -4
  24. package/lib/inAppMessaging/providers/pinpoint/apis/onMessageReceived.js +5 -4
  25. package/lib/inAppMessaging/providers/pinpoint/apis/setConflictHandler.js +6 -6
  26. package/lib/inAppMessaging/providers/pinpoint/apis/syncMessages.js +46 -76
  27. package/lib/inAppMessaging/providers/pinpoint/index.d.ts +1 -1
  28. package/lib/inAppMessaging/providers/pinpoint/index.js +12 -10
  29. package/lib/inAppMessaging/providers/pinpoint/types/index.js +2 -1
  30. package/lib/inAppMessaging/providers/pinpoint/types/inputs.d.ts +8 -8
  31. package/lib/inAppMessaging/providers/pinpoint/types/options.d.ts +1 -1
  32. package/lib/inAppMessaging/providers/pinpoint/types/outputs.d.ts +4 -4
  33. package/lib/inAppMessaging/providers/pinpoint/types/types.d.ts +6 -6
  34. package/lib/inAppMessaging/providers/pinpoint/types/types.js +1 -0
  35. package/lib/inAppMessaging/providers/pinpoint/utils/constants.js +1 -0
  36. package/lib/inAppMessaging/providers/pinpoint/utils/helpers.d.ts +3 -3
  37. package/lib/inAppMessaging/providers/pinpoint/utils/helpers.js +114 -110
  38. package/lib/inAppMessaging/providers/pinpoint/utils/index.js +11 -10
  39. package/lib/inAppMessaging/providers/pinpoint/utils/messageProcessingHelpers.js +116 -191
  40. package/lib/inAppMessaging/providers/pinpoint/utils/resolveConfig.js +9 -8
  41. package/lib/inAppMessaging/providers/pinpoint/utils/resolveCredentials.d.ts +1 -1
  42. package/lib/inAppMessaging/providers/pinpoint/utils/resolveCredentials.js +9 -15
  43. package/lib/inAppMessaging/providers/pinpoint/utils/userAgent.js +6 -5
  44. package/lib/inAppMessaging/types/event.d.ts +2 -2
  45. package/lib/inAppMessaging/types/inputs.d.ts +1 -1
  46. package/lib/inAppMessaging/types/message.d.ts +3 -3
  47. package/lib/inAppMessaging/types/options.d.ts +1 -1
  48. package/lib/inAppMessaging/utils/index.js +4 -3
  49. package/lib/inAppMessaging/utils/statusHelpers.js +8 -5
  50. package/lib/index.js +1 -0
  51. package/lib/pushNotifications/errors/PushNotificationError.js +8 -11
  52. package/lib/pushNotifications/errors/errorHelpers.js +14 -13
  53. package/lib/pushNotifications/errors/index.js +4 -3
  54. package/lib/pushNotifications/index.d.ts +1 -1
  55. package/lib/pushNotifications/index.js +13 -12
  56. package/lib/pushNotifications/providers/pinpoint/apis/getBadgeCount.js +4 -2
  57. package/lib/pushNotifications/providers/pinpoint/apis/getBadgeCount.native.js +9 -10
  58. package/lib/pushNotifications/providers/pinpoint/apis/getLaunchNotification.js +4 -2
  59. package/lib/pushNotifications/providers/pinpoint/apis/getLaunchNotification.native.js +7 -5
  60. package/lib/pushNotifications/providers/pinpoint/apis/getPermissionStatus.js +4 -2
  61. package/lib/pushNotifications/providers/pinpoint/apis/getPermissionStatus.native.js +7 -5
  62. package/lib/pushNotifications/providers/pinpoint/apis/identifyUser.js +4 -2
  63. package/lib/pushNotifications/providers/pinpoint/apis/identifyUser.native.js +25 -36
  64. package/lib/pushNotifications/providers/pinpoint/apis/index.js +12 -11
  65. package/lib/pushNotifications/providers/pinpoint/apis/initializePushNotifications.js +4 -2
  66. package/lib/pushNotifications/providers/pinpoint/apis/initializePushNotifications.native.d.ts +1 -1
  67. package/lib/pushNotifications/providers/pinpoint/apis/initializePushNotifications.native.js +90 -115
  68. package/lib/pushNotifications/providers/pinpoint/apis/onNotificationOpened.js +4 -2
  69. package/lib/pushNotifications/providers/pinpoint/apis/onNotificationOpened.native.js +7 -5
  70. package/lib/pushNotifications/providers/pinpoint/apis/onNotificationReceivedInBackground.js +4 -2
  71. package/lib/pushNotifications/providers/pinpoint/apis/onNotificationReceivedInBackground.native.js +7 -5
  72. package/lib/pushNotifications/providers/pinpoint/apis/onNotificationReceivedInForeground.js +4 -2
  73. package/lib/pushNotifications/providers/pinpoint/apis/onNotificationReceivedInForeground.native.js +7 -5
  74. package/lib/pushNotifications/providers/pinpoint/apis/onTokenReceived.js +4 -2
  75. package/lib/pushNotifications/providers/pinpoint/apis/onTokenReceived.native.js +7 -5
  76. package/lib/pushNotifications/providers/pinpoint/apis/requestPermissions.js +4 -2
  77. package/lib/pushNotifications/providers/pinpoint/apis/requestPermissions.native.js +7 -5
  78. package/lib/pushNotifications/providers/pinpoint/apis/setBadgeCount.js +4 -2
  79. package/lib/pushNotifications/providers/pinpoint/apis/setBadgeCount.native.js +7 -5
  80. package/lib/pushNotifications/providers/pinpoint/index.d.ts +1 -1
  81. package/lib/pushNotifications/providers/pinpoint/index.js +12 -11
  82. package/lib/pushNotifications/providers/pinpoint/types/analytics.d.ts +3 -3
  83. package/lib/pushNotifications/providers/pinpoint/types/apis.d.ts +11 -11
  84. package/lib/pushNotifications/providers/pinpoint/types/inputs.d.ts +7 -7
  85. package/lib/pushNotifications/providers/pinpoint/types/options.d.ts +1 -1
  86. package/lib/pushNotifications/providers/pinpoint/types/outputs.d.ts +8 -8
  87. package/lib/pushNotifications/providers/pinpoint/types/pushNotifications.d.ts +1 -1
  88. package/lib/pushNotifications/providers/pinpoint/utils/createMessageEventRecorder.d.ts +3 -2
  89. package/lib/pushNotifications/providers/pinpoint/utils/createMessageEventRecorder.js +33 -49
  90. package/lib/pushNotifications/providers/pinpoint/utils/getAnalyticsEvent.d.ts +3 -2
  91. package/lib/pushNotifications/providers/pinpoint/utils/getAnalyticsEvent.js +17 -13
  92. package/lib/pushNotifications/providers/pinpoint/utils/getChannelType.d.ts +2 -1
  93. package/lib/pushNotifications/providers/pinpoint/utils/getChannelType.js +9 -7
  94. package/lib/pushNotifications/providers/pinpoint/utils/index.d.ts +2 -1
  95. package/lib/pushNotifications/providers/pinpoint/utils/index.js +7 -4
  96. package/lib/pushNotifications/providers/pinpoint/utils/resolveConfig.js +17 -0
  97. package/lib/pushNotifications/types/errors.js +1 -0
  98. package/lib/pushNotifications/types/index.d.ts +1 -0
  99. package/lib/pushNotifications/types/index.js +20 -2
  100. package/lib/pushNotifications/types/inputs.d.ts +9 -8
  101. package/lib/pushNotifications/types/module.d.ts +31 -0
  102. package/lib/pushNotifications/types/options.d.ts +1 -1
  103. package/lib/pushNotifications/types/outputs.d.ts +8 -8
  104. package/lib/pushNotifications/types/pushNotifications.d.ts +4 -5
  105. package/lib/pushNotifications/utils/getPushNotificationUserAgentString.js +11 -0
  106. package/lib/pushNotifications/utils/index.d.ts +1 -1
  107. package/lib/pushNotifications/utils/index.js +8 -7
  108. package/lib/pushNotifications/utils/initializationManager.js +8 -9
  109. package/lib/pushNotifications/utils/resolveCredentials.d.ts +1 -1
  110. package/lib/pushNotifications/utils/resolveCredentials.js +9 -15
  111. package/lib/pushNotifications/utils/tokenManager.js +6 -3
  112. package/lib/tsconfig.tsbuildinfo +1 -0
  113. package/lib-esm/eventListeners/eventListeners.js +15 -37
  114. package/lib-esm/eventListeners/types.d.ts +2 -2
  115. package/lib-esm/eventListeners/types.js +1 -0
  116. package/lib-esm/inAppMessaging/errors/InAppMessagingError.js +6 -11
  117. package/lib-esm/inAppMessaging/errors/assertValidationError.js +2 -2
  118. package/lib-esm/inAppMessaging/errors/validation.js +6 -7
  119. package/lib-esm/inAppMessaging/index.d.ts +2 -1
  120. package/lib-esm/inAppMessaging/index.js +1 -1
  121. package/lib-esm/inAppMessaging/providers/pinpoint/apis/clearMessages.d.ts +13 -0
  122. package/lib-esm/inAppMessaging/providers/pinpoint/apis/clearMessages.js +22 -0
  123. package/lib-esm/inAppMessaging/providers/pinpoint/apis/dispatchEvent.js +15 -31
  124. package/lib-esm/inAppMessaging/providers/pinpoint/apis/identifyUser.d.ts +2 -1
  125. package/lib-esm/inAppMessaging/providers/pinpoint/apis/identifyUser.js +18 -31
  126. package/lib-esm/inAppMessaging/providers/pinpoint/apis/index.d.ts +1 -0
  127. package/lib-esm/inAppMessaging/providers/pinpoint/apis/index.js +1 -0
  128. package/lib-esm/inAppMessaging/providers/pinpoint/apis/initializeInAppMessaging.js +5 -6
  129. package/lib-esm/inAppMessaging/providers/pinpoint/apis/notifyMessageInteraction.js +1 -2
  130. package/lib-esm/inAppMessaging/providers/pinpoint/apis/setConflictHandler.js +4 -5
  131. package/lib-esm/inAppMessaging/providers/pinpoint/apis/syncMessages.js +38 -69
  132. package/lib-esm/inAppMessaging/providers/pinpoint/index.d.ts +1 -1
  133. package/lib-esm/inAppMessaging/providers/pinpoint/index.js +1 -1
  134. package/lib-esm/inAppMessaging/providers/pinpoint/types/inputs.d.ts +8 -8
  135. package/lib-esm/inAppMessaging/providers/pinpoint/types/inputs.js +1 -0
  136. package/lib-esm/inAppMessaging/providers/pinpoint/types/options.d.ts +1 -1
  137. package/lib-esm/inAppMessaging/providers/pinpoint/types/options.js +1 -0
  138. package/lib-esm/inAppMessaging/providers/pinpoint/types/outputs.d.ts +4 -4
  139. package/lib-esm/inAppMessaging/providers/pinpoint/types/outputs.js +1 -0
  140. package/lib-esm/inAppMessaging/providers/pinpoint/types/types.d.ts +6 -6
  141. package/lib-esm/inAppMessaging/providers/pinpoint/utils/constants.js +4 -4
  142. package/lib-esm/inAppMessaging/providers/pinpoint/utils/helpers.d.ts +3 -3
  143. package/lib-esm/inAppMessaging/providers/pinpoint/utils/helpers.js +85 -97
  144. package/lib-esm/inAppMessaging/providers/pinpoint/utils/messageProcessingHelpers.js +111 -187
  145. package/lib-esm/inAppMessaging/providers/pinpoint/utils/resolveConfig.js +3 -4
  146. package/lib-esm/inAppMessaging/providers/pinpoint/utils/resolveCredentials.d.ts +1 -1
  147. package/lib-esm/inAppMessaging/providers/pinpoint/utils/resolveCredentials.js +5 -13
  148. package/lib-esm/inAppMessaging/providers/pinpoint/utils/userAgent.js +2 -2
  149. package/lib-esm/inAppMessaging/types/event.d.ts +2 -2
  150. package/lib-esm/inAppMessaging/types/event.js +1 -0
  151. package/lib-esm/inAppMessaging/types/index.js +1 -0
  152. package/lib-esm/inAppMessaging/types/inputs.d.ts +1 -1
  153. package/lib-esm/inAppMessaging/types/inputs.js +1 -0
  154. package/lib-esm/inAppMessaging/types/message.d.ts +3 -3
  155. package/lib-esm/inAppMessaging/types/message.js +1 -0
  156. package/lib-esm/inAppMessaging/types/options.d.ts +1 -1
  157. package/lib-esm/inAppMessaging/types/options.js +1 -0
  158. package/lib-esm/inAppMessaging/utils/statusHelpers.js +3 -3
  159. package/lib-esm/index.js +1 -0
  160. package/lib-esm/pushNotifications/errors/PushNotificationError.js +6 -11
  161. package/lib-esm/pushNotifications/errors/errorHelpers.js +8 -9
  162. package/lib-esm/pushNotifications/index.d.ts +1 -1
  163. package/lib-esm/pushNotifications/providers/pinpoint/apis/getBadgeCount.js +1 -1
  164. package/lib-esm/pushNotifications/providers/pinpoint/apis/getBadgeCount.native.js +5 -8
  165. package/lib-esm/pushNotifications/providers/pinpoint/apis/getLaunchNotification.js +1 -1
  166. package/lib-esm/pushNotifications/providers/pinpoint/apis/getLaunchNotification.native.js +2 -2
  167. package/lib-esm/pushNotifications/providers/pinpoint/apis/getPermissionStatus.js +1 -1
  168. package/lib-esm/pushNotifications/providers/pinpoint/apis/getPermissionStatus.native.js +2 -2
  169. package/lib-esm/pushNotifications/providers/pinpoint/apis/identifyUser.js +1 -1
  170. package/lib-esm/pushNotifications/providers/pinpoint/apis/identifyUser.native.js +20 -33
  171. package/lib-esm/pushNotifications/providers/pinpoint/apis/initializePushNotifications.js +1 -1
  172. package/lib-esm/pushNotifications/providers/pinpoint/apis/initializePushNotifications.native.d.ts +1 -1
  173. package/lib-esm/pushNotifications/providers/pinpoint/apis/initializePushNotifications.native.js +76 -103
  174. package/lib-esm/pushNotifications/providers/pinpoint/apis/onNotificationOpened.js +1 -1
  175. package/lib-esm/pushNotifications/providers/pinpoint/apis/onNotificationOpened.native.js +1 -1
  176. package/lib-esm/pushNotifications/providers/pinpoint/apis/onNotificationReceivedInBackground.js +1 -1
  177. package/lib-esm/pushNotifications/providers/pinpoint/apis/onNotificationReceivedInBackground.native.js +1 -1
  178. package/lib-esm/pushNotifications/providers/pinpoint/apis/onNotificationReceivedInForeground.js +1 -1
  179. package/lib-esm/pushNotifications/providers/pinpoint/apis/onNotificationReceivedInForeground.native.js +1 -1
  180. package/lib-esm/pushNotifications/providers/pinpoint/apis/onTokenReceived.js +1 -1
  181. package/lib-esm/pushNotifications/providers/pinpoint/apis/onTokenReceived.native.js +1 -1
  182. package/lib-esm/pushNotifications/providers/pinpoint/apis/requestPermissions.js +1 -1
  183. package/lib-esm/pushNotifications/providers/pinpoint/apis/requestPermissions.native.js +2 -2
  184. package/lib-esm/pushNotifications/providers/pinpoint/apis/setBadgeCount.js +1 -1
  185. package/lib-esm/pushNotifications/providers/pinpoint/apis/setBadgeCount.native.js +2 -2
  186. package/lib-esm/pushNotifications/providers/pinpoint/index.d.ts +1 -1
  187. package/lib-esm/pushNotifications/providers/pinpoint/types/analytics.d.ts +3 -3
  188. package/lib-esm/pushNotifications/providers/pinpoint/types/analytics.js +1 -0
  189. package/lib-esm/pushNotifications/providers/pinpoint/types/apis.d.ts +11 -11
  190. package/lib-esm/pushNotifications/providers/pinpoint/types/apis.js +1 -0
  191. package/lib-esm/pushNotifications/providers/pinpoint/types/index.js +1 -0
  192. package/lib-esm/pushNotifications/providers/pinpoint/types/inputs.d.ts +7 -7
  193. package/lib-esm/pushNotifications/providers/pinpoint/types/inputs.js +1 -0
  194. package/lib-esm/pushNotifications/providers/pinpoint/types/options.d.ts +1 -1
  195. package/lib-esm/pushNotifications/providers/pinpoint/types/options.js +1 -0
  196. package/lib-esm/pushNotifications/providers/pinpoint/types/outputs.d.ts +8 -8
  197. package/lib-esm/pushNotifications/providers/pinpoint/types/outputs.js +1 -0
  198. package/lib-esm/pushNotifications/providers/pinpoint/types/pushNotifications.d.ts +1 -1
  199. package/lib-esm/pushNotifications/providers/pinpoint/types/pushNotifications.js +1 -0
  200. package/lib-esm/pushNotifications/providers/pinpoint/utils/createMessageEventRecorder.d.ts +3 -2
  201. package/lib-esm/pushNotifications/providers/pinpoint/utils/createMessageEventRecorder.js +27 -45
  202. package/lib-esm/pushNotifications/providers/pinpoint/utils/getAnalyticsEvent.d.ts +3 -2
  203. package/lib-esm/pushNotifications/providers/pinpoint/utils/getAnalyticsEvent.js +15 -13
  204. package/lib-esm/pushNotifications/providers/pinpoint/utils/getChannelType.d.ts +2 -1
  205. package/lib-esm/pushNotifications/providers/pinpoint/utils/getChannelType.js +5 -5
  206. package/lib-esm/pushNotifications/providers/pinpoint/utils/index.d.ts +2 -1
  207. package/lib-esm/pushNotifications/providers/pinpoint/utils/index.js +2 -1
  208. package/lib-esm/pushNotifications/{utils → providers/pinpoint/utils}/resolveConfig.js +4 -5
  209. package/lib-esm/pushNotifications/types/index.d.ts +1 -0
  210. package/lib-esm/pushNotifications/types/index.js +5 -0
  211. package/lib-esm/pushNotifications/types/inputs.d.ts +9 -8
  212. package/lib-esm/pushNotifications/types/inputs.js +1 -0
  213. package/lib-esm/pushNotifications/types/module.d.ts +31 -0
  214. package/lib-esm/pushNotifications/{Platform/types.js → types/module.js} +1 -0
  215. package/lib-esm/pushNotifications/types/options.d.ts +1 -1
  216. package/lib-esm/pushNotifications/types/options.js +1 -0
  217. package/lib-esm/pushNotifications/types/outputs.d.ts +8 -8
  218. package/lib-esm/pushNotifications/types/outputs.js +1 -0
  219. package/lib-esm/pushNotifications/types/pushNotifications.d.ts +4 -5
  220. package/lib-esm/pushNotifications/types/pushNotifications.js +1 -0
  221. package/lib-esm/pushNotifications/{providers/pinpoint/utils → utils}/getPushNotificationUserAgentString.js +4 -6
  222. package/lib-esm/pushNotifications/utils/index.d.ts +1 -1
  223. package/lib-esm/pushNotifications/utils/index.js +1 -1
  224. package/lib-esm/pushNotifications/utils/initializationManager.js +5 -9
  225. package/lib-esm/pushNotifications/utils/resolveCredentials.d.ts +1 -1
  226. package/lib-esm/pushNotifications/utils/resolveCredentials.js +5 -13
  227. package/lib-esm/pushNotifications/utils/tokenManager.js +3 -3
  228. package/lib-esm/tsconfig.tsbuildinfo +1 -0
  229. package/package.json +63 -30
  230. package/src/inAppMessaging/index.ts +12 -0
  231. package/src/inAppMessaging/providers/pinpoint/apis/clearMessages.ts +26 -0
  232. package/src/inAppMessaging/providers/pinpoint/apis/index.ts +1 -0
  233. package/src/inAppMessaging/providers/pinpoint/index.ts +1 -0
  234. package/src/inAppMessaging/providers/pinpoint/utils/helpers.ts +38 -28
  235. package/src/inAppMessaging/providers/pinpoint/utils/messageProcessingHelpers.ts +25 -9
  236. package/src/inAppMessaging/providers/pinpoint/utils/resolveConfig.ts +1 -1
  237. package/src/pushNotifications/index.ts +1 -0
  238. package/src/pushNotifications/providers/pinpoint/apis/getBadgeCount.ts +1 -1
  239. package/src/pushNotifications/providers/pinpoint/apis/getLaunchNotification.native.ts +1 -1
  240. package/src/pushNotifications/providers/pinpoint/apis/getLaunchNotification.ts +1 -1
  241. package/src/pushNotifications/providers/pinpoint/apis/getPermissionStatus.native.ts +1 -1
  242. package/src/pushNotifications/providers/pinpoint/apis/getPermissionStatus.ts +1 -1
  243. package/src/pushNotifications/providers/pinpoint/apis/identifyUser.native.ts +5 -2
  244. package/src/pushNotifications/providers/pinpoint/apis/identifyUser.ts +1 -1
  245. package/src/pushNotifications/providers/pinpoint/apis/initializePushNotifications.native.ts +51 -41
  246. package/src/pushNotifications/providers/pinpoint/apis/requestPermissions.native.ts +1 -1
  247. package/src/pushNotifications/providers/pinpoint/apis/requestPermissions.ts +1 -1
  248. package/src/pushNotifications/providers/pinpoint/index.ts +1 -0
  249. package/src/pushNotifications/providers/pinpoint/utils/createMessageEventRecorder.ts +5 -4
  250. package/src/pushNotifications/providers/pinpoint/utils/getAnalyticsEvent.ts +7 -4
  251. package/src/pushNotifications/providers/pinpoint/utils/getChannelType.ts +1 -1
  252. package/src/pushNotifications/providers/pinpoint/utils/index.ts +2 -1
  253. package/src/pushNotifications/{utils → providers/pinpoint/utils}/resolveConfig.ts +2 -2
  254. package/src/pushNotifications/types/index.ts +1 -0
  255. package/src/pushNotifications/types/inputs.ts +1 -1
  256. package/src/pushNotifications/types/module.ts +42 -0
  257. package/src/pushNotifications/types/outputs.ts +1 -1
  258. package/src/pushNotifications/types/pushNotifications.ts +2 -7
  259. package/src/pushNotifications/utils/index.ts +1 -1
  260. package/lib/inAppMessaging/providers/index.d.ts +0 -2
  261. package/lib/inAppMessaging/providers/index.js +0 -15
  262. package/lib/pushNotifications/Platform/index.d.ts +0 -2
  263. package/lib/pushNotifications/Platform/index.js +0 -25
  264. package/lib/pushNotifications/Platform/index.native.d.ts +0 -2
  265. package/lib/pushNotifications/Platform/index.native.js +0 -7
  266. package/lib/pushNotifications/Platform/types.d.ts +0 -5
  267. package/lib/pushNotifications/providers/pinpoint/utils/getPushNotificationUserAgentString.js +0 -11
  268. package/lib/pushNotifications/utils/resolveConfig.js +0 -16
  269. package/lib/tsconfig.build.tsbuildinfo +0 -8667
  270. package/lib-esm/inAppMessaging/providers/index.d.ts +0 -2
  271. package/lib-esm/inAppMessaging/providers/index.js +0 -3
  272. package/lib-esm/pushNotifications/Platform/index.d.ts +0 -2
  273. package/lib-esm/pushNotifications/Platform/index.js +0 -23
  274. package/lib-esm/pushNotifications/Platform/index.native.d.ts +0 -2
  275. package/lib-esm/pushNotifications/Platform/index.native.js +0 -5
  276. package/lib-esm/pushNotifications/Platform/types.d.ts +0 -5
  277. package/lib-esm/tsconfig.build.tsbuildinfo +0 -7115
  278. package/src/inAppMessaging/providers/index.ts +0 -38
  279. package/src/pushNotifications/Platform/index.native.ts +0 -9
  280. package/src/pushNotifications/Platform/index.ts +0 -22
  281. package/src/pushNotifications/Platform/types.ts +0 -15
  282. /package/lib/pushNotifications/{utils → providers/pinpoint/utils}/resolveConfig.d.ts +0 -0
  283. /package/lib/pushNotifications/{Platform/types.js → types/module.js} +0 -0
  284. /package/lib/pushNotifications/{providers/pinpoint/utils → utils}/getPushNotificationUserAgentString.d.ts +0 -0
  285. /package/lib-esm/pushNotifications/{utils → providers/pinpoint/utils}/resolveConfig.d.ts +0 -0
  286. /package/lib-esm/pushNotifications/{providers/pinpoint/utils → utils}/getPushNotificationUserAgentString.d.ts +0 -0
  287. /package/src/pushNotifications/{providers/pinpoint/utils → utils}/getPushNotificationUserAgentString.ts +0 -0
@@ -1,141 +1,141 @@
1
1
  "use strict";
2
2
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
3
  // SPDX-License-Identifier: Apache-2.0
4
+ var __importDefault = (this && this.__importDefault) || function (mod) {
5
+ return (mod && mod.__esModule) ? mod : { "default": mod };
6
+ };
4
7
  Object.defineProperty(exports, "__esModule", { value: true });
5
- var tslib_1 = require("tslib");
6
- var core_1 = require("@aws-amplify/core");
7
- var utils_1 = require("@aws-amplify/core/internals/utils");
8
- var isEmpty_1 = tslib_1.__importDefault(require("lodash/isEmpty"));
9
- var pinpoint_1 = require("@aws-amplify/core/internals/providers/pinpoint");
10
- var resolveConfig_1 = require("./resolveConfig");
11
- var resolveCredentials_1 = require("./resolveCredentials");
12
- var constants_1 = require("./constants");
13
- var userAgent_1 = require("./userAgent");
14
- var DELIVERY_TYPE = 'IN_APP_MESSAGE';
15
- var eventNameMemo = {};
16
- var eventAttributesMemo = {};
17
- var eventMetricsMemo = {};
8
+ exports.extractMetadata = exports.extractContent = exports.interpretLayout = exports.clearMemo = exports.isQuietTime = exports.isBeforeEndDate = exports.getComparator = exports.matchesMetrics = exports.matchesAttributes = exports.matchesEventType = exports.getStartOfDay = exports.recordAnalyticsEvent = exports.logger = void 0;
9
+ const core_1 = require("@aws-amplify/core");
10
+ const utils_1 = require("@aws-amplify/core/internals/utils");
11
+ const isEmpty_1 = __importDefault(require("lodash/isEmpty"));
12
+ const pinpoint_1 = require("@aws-amplify/core/internals/providers/pinpoint");
13
+ const resolveConfig_1 = require("./resolveConfig");
14
+ const resolveCredentials_1 = require("./resolveCredentials");
15
+ const constants_1 = require("./constants");
16
+ const userAgent_1 = require("./userAgent");
17
+ const DELIVERY_TYPE = 'IN_APP_MESSAGE';
18
+ let eventNameMemo = {};
19
+ let eventAttributesMemo = {};
20
+ let eventMetricsMemo = {};
18
21
  exports.logger = new core_1.ConsoleLogger('InAppMessaging.Pinpoint.Utils');
19
- exports.recordAnalyticsEvent = function (event, message) {
20
- var _a = resolveConfig_1.resolveConfig(), appId = _a.appId, region = _a.region;
21
- var id = message.id, metadata = message.metadata;
22
- resolveCredentials_1.resolveCredentials()
23
- .then(function (_a) {
24
- var credentials = _a.credentials, identityId = _a.identityId;
25
- pinpoint_1.record({
26
- appId: appId,
22
+ const recordAnalyticsEvent = (event, message) => {
23
+ const { appId, region } = (0, resolveConfig_1.resolveConfig)();
24
+ const { id, metadata } = message;
25
+ (0, resolveCredentials_1.resolveCredentials)()
26
+ .then(({ credentials, identityId }) => {
27
+ (0, pinpoint_1.record)({
28
+ appId,
27
29
  category: constants_1.CATEGORY,
28
- credentials: credentials,
30
+ credentials,
29
31
  event: {
30
32
  name: event,
31
33
  attributes: {
32
- campaign_id: id,
34
+ // only include campaign_id field if we have one
35
+ ...(id && { campaign_id: id }),
33
36
  delivery_type: DELIVERY_TYPE,
34
- treatment_id: metadata === null || metadata === void 0 ? void 0 : metadata.treatmentId,
37
+ treatment_id: metadata?.treatmentId,
35
38
  },
36
39
  },
37
- identityId: identityId,
38
- region: region,
39
- userAgentValue: userAgent_1.getInAppMessagingUserAgentString(utils_1.InAppMessagingAction.DispatchEvent),
40
+ identityId,
41
+ region,
42
+ userAgentValue: (0, userAgent_1.getInAppMessagingUserAgentString)(utils_1.InAppMessagingAction.NotifyMessageInteraction),
40
43
  });
41
44
  })
42
- .catch(function (e) {
45
+ .catch(e => {
43
46
  // An error occured while fetching credentials or persisting the event to the buffer
44
47
  exports.logger.warn('Failed to record event.', e);
45
48
  });
46
49
  };
47
- exports.getStartOfDay = function () {
48
- var now = new Date();
50
+ exports.recordAnalyticsEvent = recordAnalyticsEvent;
51
+ const getStartOfDay = () => {
52
+ const now = new Date();
49
53
  now.setHours(0, 0, 0, 0);
50
54
  return now.toISOString();
51
55
  };
52
- exports.matchesEventType = function (_a, _b) {
53
- var CampaignId = _a.CampaignId, Schedule = _a.Schedule;
54
- var eventType = _b.name;
55
- var _c;
56
- var EventType = ((_c = Schedule === null || Schedule === void 0 ? void 0 : Schedule.EventFilter) === null || _c === void 0 ? void 0 : _c.Dimensions).EventType;
57
- var memoKey = CampaignId + ":" + eventType;
56
+ exports.getStartOfDay = getStartOfDay;
57
+ const matchesEventType = ({ CampaignId, Schedule }, { name: eventType }) => {
58
+ const { EventType } = Schedule?.EventFilter?.Dimensions ?? {};
59
+ const memoKey = `${CampaignId}:${eventType}`;
58
60
  if (!eventNameMemo.hasOwnProperty(memoKey)) {
59
- eventNameMemo[memoKey] = !!(EventType === null || EventType === void 0 ? void 0 : EventType.Values.includes(eventType));
61
+ eventNameMemo[memoKey] = !!EventType?.Values?.includes(eventType);
60
62
  }
61
63
  return eventNameMemo[memoKey];
62
64
  };
63
- exports.matchesAttributes = function (_a, _b) {
64
- var CampaignId = _a.CampaignId, Schedule = _a.Schedule;
65
- var attributes = _b.attributes;
66
- var _c;
67
- var Attributes = ((_c = Schedule === null || Schedule === void 0 ? void 0 : Schedule.EventFilter) === null || _c === void 0 ? void 0 : _c.Dimensions).Attributes;
68
- if (isEmpty_1.default(Attributes)) {
65
+ exports.matchesEventType = matchesEventType;
66
+ const matchesAttributes = ({ CampaignId, Schedule }, { attributes = {} }) => {
67
+ const { Attributes } = Schedule?.EventFilter?.Dimensions ?? {};
68
+ if ((0, isEmpty_1.default)(Attributes)) {
69
69
  // if message does not have attributes defined it does not matter what attributes are on the event
70
70
  return true;
71
71
  }
72
- if (isEmpty_1.default(attributes)) {
72
+ if ((0, isEmpty_1.default)(attributes)) {
73
73
  // if message does have attributes but the event does not then it always fails the check
74
74
  return false;
75
75
  }
76
- var memoKey = CampaignId + ":" + JSON.stringify(attributes);
76
+ const memoKey = `${CampaignId}:${JSON.stringify(attributes)}`;
77
77
  if (!eventAttributesMemo.hasOwnProperty(memoKey)) {
78
- eventAttributesMemo[memoKey] = Object.entries(Attributes).every(function (_a) {
79
- var _b = tslib_1.__read(_a, 2), key = _b[0], Values = _b[1].Values;
80
- return Values.includes(attributes[key]);
81
- });
78
+ eventAttributesMemo[memoKey] =
79
+ !Attributes ||
80
+ Object.entries(Attributes).every(([key, { Values }]) => Values?.includes(attributes[key]));
82
81
  }
83
82
  return eventAttributesMemo[memoKey];
84
83
  };
85
- exports.matchesMetrics = function (_a, _b) {
86
- var CampaignId = _a.CampaignId, Schedule = _a.Schedule;
87
- var metrics = _b.metrics;
88
- var _c;
89
- var Metrics = ((_c = Schedule === null || Schedule === void 0 ? void 0 : Schedule.EventFilter) === null || _c === void 0 ? void 0 : _c.Dimensions).Metrics;
90
- if (isEmpty_1.default(Metrics)) {
84
+ exports.matchesAttributes = matchesAttributes;
85
+ const matchesMetrics = ({ CampaignId, Schedule }, { metrics = {} }) => {
86
+ const { Metrics } = Schedule?.EventFilter?.Dimensions ?? {};
87
+ if ((0, isEmpty_1.default)(Metrics)) {
91
88
  // if message does not have metrics defined it does not matter what metrics are on the event
92
89
  return true;
93
90
  }
94
- if (isEmpty_1.default(metrics)) {
91
+ if ((0, isEmpty_1.default)(metrics)) {
95
92
  // if message does have metrics but the event does not then it always fails the check
96
93
  return false;
97
94
  }
98
- var memoKey = CampaignId + ":" + JSON.stringify(metrics);
95
+ const memoKey = `${CampaignId}:${JSON.stringify(metrics)}`;
99
96
  if (!eventMetricsMemo.hasOwnProperty(memoKey)) {
100
- eventMetricsMemo[memoKey] = Object.entries(Metrics).every(function (_a) {
101
- var _b = tslib_1.__read(_a, 2), key = _b[0], _c = _b[1], ComparisonOperator = _c.ComparisonOperator, Value = _c.Value;
102
- var compare = exports.getComparator(ComparisonOperator);
103
- // if there is some unknown comparison operator, treat as a comparison failure
104
- return compare ? compare(Value, metrics[key]) : false;
105
- });
97
+ eventMetricsMemo[memoKey] =
98
+ !Metrics ||
99
+ Object.entries(Metrics).every(([key, { ComparisonOperator, Value }]) => {
100
+ const compare = (0, exports.getComparator)(ComparisonOperator);
101
+ // if there is some unknown comparison operator, treat as a comparison failure
102
+ return compare && !!Value ? compare(Value, metrics[key]) : false;
103
+ });
106
104
  }
107
105
  return eventMetricsMemo[memoKey];
108
106
  };
109
- exports.getComparator = function (operator) {
107
+ exports.matchesMetrics = matchesMetrics;
108
+ const getComparator = (operator) => {
110
109
  switch (operator) {
111
110
  case 'EQUAL':
112
- return function (metricsVal, eventVal) { return metricsVal === eventVal; };
111
+ return (metricsVal, eventVal) => metricsVal === eventVal;
113
112
  case 'GREATER_THAN':
114
- return function (metricsVal, eventVal) { return metricsVal < eventVal; };
113
+ return (metricsVal, eventVal) => metricsVal < eventVal;
115
114
  case 'GREATER_THAN_OR_EQUAL':
116
- return function (metricsVal, eventVal) { return metricsVal <= eventVal; };
115
+ return (metricsVal, eventVal) => metricsVal <= eventVal;
117
116
  case 'LESS_THAN':
118
- return function (metricsVal, eventVal) { return metricsVal > eventVal; };
117
+ return (metricsVal, eventVal) => metricsVal > eventVal;
119
118
  case 'LESS_THAN_OR_EQUAL':
120
- return function (metricsVal, eventVal) { return metricsVal >= eventVal; };
119
+ return (metricsVal, eventVal) => metricsVal >= eventVal;
121
120
  default:
122
- return null;
121
+ return undefined;
123
122
  }
124
123
  };
125
- exports.isBeforeEndDate = function (_a) {
126
- var Schedule = _a.Schedule;
127
- if (!(Schedule === null || Schedule === void 0 ? void 0 : Schedule.EndDate)) {
124
+ exports.getComparator = getComparator;
125
+ const isBeforeEndDate = ({ Schedule, }) => {
126
+ if (!Schedule?.EndDate) {
128
127
  return true;
129
128
  }
130
129
  return new Date() < new Date(Schedule.EndDate);
131
130
  };
132
- exports.isQuietTime = function (message) {
133
- var Schedule = message.Schedule;
134
- if (!(Schedule === null || Schedule === void 0 ? void 0 : Schedule.QuietTime)) {
131
+ exports.isBeforeEndDate = isBeforeEndDate;
132
+ const isQuietTime = (message) => {
133
+ const { Schedule } = message;
134
+ if (!Schedule?.QuietTime) {
135
135
  return false;
136
136
  }
137
- var pattern = /^[0-2]\d:[0-5]\d$/; // basic sanity check, not a fully featured HH:MM validation
138
- var _a = Schedule.QuietTime, Start = _a.Start, End = _a.End;
137
+ const pattern = /^[0-2]\d:[0-5]\d$/; // basic sanity check, not a fully featured HH:MM validation
138
+ const { Start, End } = Schedule.QuietTime;
139
139
  if (!Start ||
140
140
  !End ||
141
141
  Start === End ||
@@ -143,28 +143,30 @@ exports.isQuietTime = function (message) {
143
143
  !pattern.test(End)) {
144
144
  return false;
145
145
  }
146
- var now = new Date();
147
- var start = new Date(now);
148
- var end = new Date(now);
149
- var _b = tslib_1.__read(Start.split(':'), 2), startHours = _b[0], startMinutes = _b[1];
150
- var _c = tslib_1.__read(End.split(':'), 2), endHours = _c[0], endMinutes = _c[1];
146
+ const now = new Date();
147
+ const start = new Date(now);
148
+ const end = new Date(now);
149
+ const [startHours, startMinutes] = Start.split(':');
150
+ const [endHours, endMinutes] = End.split(':');
151
151
  start.setHours(Number.parseInt(startHours, 10), Number.parseInt(startMinutes, 10), 0, 0);
152
152
  end.setHours(Number.parseInt(endHours, 10), Number.parseInt(endMinutes, 10), 0, 0);
153
153
  // if quiet time includes midnight, bump the end time to the next day
154
154
  if (start > end) {
155
155
  end.setDate(end.getDate() + 1);
156
156
  }
157
- var isQuietTime = now >= start && now <= end;
157
+ const isQuietTime = now >= start && now <= end;
158
158
  if (isQuietTime) {
159
159
  exports.logger.debug('message filtered due to quiet time', message);
160
160
  }
161
161
  return isQuietTime;
162
162
  };
163
- exports.clearMemo = function () {
163
+ exports.isQuietTime = isQuietTime;
164
+ const clearMemo = () => {
164
165
  eventNameMemo = {};
165
166
  eventAttributesMemo = {};
166
167
  eventMetricsMemo = {};
167
168
  };
169
+ exports.clearMemo = clearMemo;
168
170
  // in the pinpoint console when a message is created with a Modal or Full Screen layout,
169
171
  // it is assigned a layout value of MOBILE_FEED or OVERLAYS respectively in the message payload.
170
172
  // In the future, Pinpoint will be updating the layout values in the aforementioned scenario
@@ -174,7 +176,7 @@ exports.clearMemo = function () {
174
176
  // - 1. the usage of MOBILE_FEED and OVERLAYS as values for message layouts are not leaked
175
177
  // outside the Pinpoint provider
176
178
  // - 2. Amplify correctly handles the legacy layout values from Pinpoint after they are updated
177
- exports.interpretLayout = function (layout) {
179
+ const interpretLayout = (layout) => {
178
180
  if (layout === 'MOBILE_FEED') {
179
181
  return 'MODAL';
180
182
  }
@@ -184,14 +186,13 @@ exports.interpretLayout = function (layout) {
184
186
  // cast as PinpointInAppMessage['InAppMessage']['Layout'] allows `string` as a value
185
187
  return layout;
186
188
  };
187
- exports.extractContent = function (_a) {
188
- var message = _a.InAppMessage;
189
- var _b, _c;
190
- return ((_c = (_b = message === null || message === void 0 ? void 0 : message.Content) === null || _b === void 0 ? void 0 : _b.map(function (content) {
191
- var BackgroundColor = content.BackgroundColor, BodyConfig = content.BodyConfig, HeaderConfig = content.HeaderConfig, ImageUrl = content.ImageUrl, PrimaryBtn = content.PrimaryBtn, SecondaryBtn = content.SecondaryBtn;
192
- var defaultPrimaryButton = PrimaryBtn === null || PrimaryBtn === void 0 ? void 0 : PrimaryBtn.DefaultConfig;
193
- var defaultSecondaryButton = SecondaryBtn === null || SecondaryBtn === void 0 ? void 0 : SecondaryBtn.DefaultConfig;
194
- var extractedContent = {};
189
+ exports.interpretLayout = interpretLayout;
190
+ const extractContent = ({ InAppMessage: message, }) => {
191
+ return (message?.Content?.map(content => {
192
+ const { BackgroundColor, BodyConfig, HeaderConfig, ImageUrl, PrimaryBtn, SecondaryBtn, } = content;
193
+ const defaultPrimaryButton = PrimaryBtn?.DefaultConfig;
194
+ const defaultSecondaryButton = SecondaryBtn?.DefaultConfig;
195
+ const extractedContent = {};
195
196
  if (BackgroundColor) {
196
197
  extractedContent.container = {
197
198
  style: {
@@ -201,19 +202,21 @@ exports.extractContent = function (_a) {
201
202
  }
202
203
  if (HeaderConfig) {
203
204
  extractedContent.header = {
204
- content: HeaderConfig.Header,
205
+ // Default to empty string in rare cases we don't have a Header value
206
+ content: HeaderConfig.Header ?? '',
205
207
  style: {
206
208
  color: HeaderConfig.TextColor,
207
- textAlign: HeaderConfig.Alignment.toLowerCase(),
209
+ textAlign: HeaderConfig.Alignment?.toLowerCase(),
208
210
  },
209
211
  };
210
212
  }
211
213
  if (BodyConfig) {
212
214
  extractedContent.body = {
213
- content: BodyConfig.Body,
215
+ // Default to empty string in rare cases we don't have a Body value
216
+ content: BodyConfig.Body ?? '',
214
217
  style: {
215
218
  color: BodyConfig.TextColor,
216
- textAlign: BodyConfig.Alignment.toLowerCase(),
219
+ textAlign: BodyConfig.Alignment?.toLowerCase(),
217
220
  },
218
221
  };
219
222
  }
@@ -224,7 +227,8 @@ exports.extractContent = function (_a) {
224
227
  }
225
228
  if (defaultPrimaryButton) {
226
229
  extractedContent.primaryButton = {
227
- title: defaultPrimaryButton.Text,
230
+ // Default to empty string in rare cases we don't have a Text value
231
+ title: defaultPrimaryButton.Text ?? '',
228
232
  action: defaultPrimaryButton.ButtonAction,
229
233
  url: defaultPrimaryButton.Link,
230
234
  style: {
@@ -236,7 +240,8 @@ exports.extractContent = function (_a) {
236
240
  }
237
241
  if (defaultSecondaryButton) {
238
242
  extractedContent.secondaryButton = {
239
- title: defaultSecondaryButton.Text,
243
+ // Default to empty string in rare cases we don't have a Text value
244
+ title: defaultSecondaryButton.Text ?? '',
240
245
  action: defaultSecondaryButton.ButtonAction,
241
246
  url: defaultSecondaryButton.Link,
242
247
  style: {
@@ -247,14 +252,13 @@ exports.extractContent = function (_a) {
247
252
  };
248
253
  }
249
254
  return extractedContent;
250
- })) !== null && _c !== void 0 ? _c : []);
251
- };
252
- exports.extractMetadata = function (_a) {
253
- var InAppMessage = _a.InAppMessage, Priority = _a.Priority, Schedule = _a.Schedule, TreatmentId = _a.TreatmentId;
254
- return ({
255
- customData: InAppMessage === null || InAppMessage === void 0 ? void 0 : InAppMessage.CustomConfig,
256
- endDate: Schedule === null || Schedule === void 0 ? void 0 : Schedule.EndDate,
257
- priority: Priority,
258
- treatmentId: TreatmentId,
259
- });
255
+ }) ?? []);
260
256
  };
257
+ exports.extractContent = extractContent;
258
+ const extractMetadata = ({ InAppMessage, Priority, Schedule, TreatmentId, }) => ({
259
+ customData: InAppMessage?.CustomConfig,
260
+ endDate: Schedule?.EndDate,
261
+ priority: Priority,
262
+ treatmentId: TreatmentId,
263
+ });
264
+ exports.extractMetadata = extractMetadata;
@@ -2,18 +2,19 @@
2
2
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.incrementMessageCounts = exports.sessionStateChangeHandler = exports.processInAppMessages = exports.STORAGE_KEY_SUFFIX = exports.CHANNEL_TYPE = exports.CATEGORY = exports.PINPOINT_KEY_PREFIX = exports.getInAppMessagingUserAgentString = exports.resolveCredentials = exports.resolveConfig = void 0;
5
6
  var resolveConfig_1 = require("./resolveConfig");
6
- exports.resolveConfig = resolveConfig_1.resolveConfig;
7
+ Object.defineProperty(exports, "resolveConfig", { enumerable: true, get: function () { return resolveConfig_1.resolveConfig; } });
7
8
  var resolveCredentials_1 = require("./resolveCredentials");
8
- exports.resolveCredentials = resolveCredentials_1.resolveCredentials;
9
+ Object.defineProperty(exports, "resolveCredentials", { enumerable: true, get: function () { return resolveCredentials_1.resolveCredentials; } });
9
10
  var userAgent_1 = require("./userAgent");
10
- exports.getInAppMessagingUserAgentString = userAgent_1.getInAppMessagingUserAgentString;
11
+ Object.defineProperty(exports, "getInAppMessagingUserAgentString", { enumerable: true, get: function () { return userAgent_1.getInAppMessagingUserAgentString; } });
11
12
  var constants_1 = require("./constants");
12
- exports.PINPOINT_KEY_PREFIX = constants_1.PINPOINT_KEY_PREFIX;
13
- exports.CATEGORY = constants_1.CATEGORY;
14
- exports.CHANNEL_TYPE = constants_1.CHANNEL_TYPE;
15
- exports.STORAGE_KEY_SUFFIX = constants_1.STORAGE_KEY_SUFFIX;
13
+ Object.defineProperty(exports, "PINPOINT_KEY_PREFIX", { enumerable: true, get: function () { return constants_1.PINPOINT_KEY_PREFIX; } });
14
+ Object.defineProperty(exports, "CATEGORY", { enumerable: true, get: function () { return constants_1.CATEGORY; } });
15
+ Object.defineProperty(exports, "CHANNEL_TYPE", { enumerable: true, get: function () { return constants_1.CHANNEL_TYPE; } });
16
+ Object.defineProperty(exports, "STORAGE_KEY_SUFFIX", { enumerable: true, get: function () { return constants_1.STORAGE_KEY_SUFFIX; } });
16
17
  var messageProcessingHelpers_1 = require("./messageProcessingHelpers");
17
- exports.processInAppMessages = messageProcessingHelpers_1.processInAppMessages;
18
- exports.sessionStateChangeHandler = messageProcessingHelpers_1.sessionStateChangeHandler;
19
- exports.incrementMessageCounts = messageProcessingHelpers_1.incrementMessageCounts;
18
+ Object.defineProperty(exports, "processInAppMessages", { enumerable: true, get: function () { return messageProcessingHelpers_1.processInAppMessages; } });
19
+ Object.defineProperty(exports, "sessionStateChangeHandler", { enumerable: true, get: function () { return messageProcessingHelpers_1.sessionStateChangeHandler; } });
20
+ Object.defineProperty(exports, "incrementMessageCounts", { enumerable: true, get: function () { return messageProcessingHelpers_1.incrementMessageCounts; } });