@aws-amplify/notifications 2.0.14 → 2.0.15-node-20-action.f356afc.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 (151) hide show
  1. package/dist/cjs/eventListeners/eventListeners.js.map +1 -1
  2. package/dist/cjs/eventListeners/index.js.map +1 -1
  3. package/dist/cjs/eventListeners/types.js.map +1 -1
  4. package/dist/cjs/inAppMessaging/errors/InAppMessagingError.js.map +1 -1
  5. package/dist/cjs/inAppMessaging/errors/assertServiceError.js.map +1 -1
  6. package/dist/cjs/inAppMessaging/errors/assertValidationError.js.map +1 -1
  7. package/dist/cjs/inAppMessaging/errors/index.js.map +1 -1
  8. package/dist/cjs/inAppMessaging/errors/validation.js.map +1 -1
  9. package/dist/cjs/inAppMessaging/index.js.map +1 -1
  10. package/dist/cjs/inAppMessaging/providers/pinpoint/apis/clearMessages.js.map +1 -1
  11. package/dist/cjs/inAppMessaging/providers/pinpoint/apis/dispatchEvent.js.map +1 -1
  12. package/dist/cjs/inAppMessaging/providers/pinpoint/apis/identifyUser.js.map +1 -1
  13. package/dist/cjs/inAppMessaging/providers/pinpoint/apis/index.js.map +1 -1
  14. package/dist/cjs/inAppMessaging/providers/pinpoint/apis/initializeInAppMessaging.js.map +1 -1
  15. package/dist/cjs/inAppMessaging/providers/pinpoint/apis/notifyMessageInteraction.js.map +1 -1
  16. package/dist/cjs/inAppMessaging/providers/pinpoint/apis/onMessageActionTaken.js.map +1 -1
  17. package/dist/cjs/inAppMessaging/providers/pinpoint/apis/onMessageDismissed.js.map +1 -1
  18. package/dist/cjs/inAppMessaging/providers/pinpoint/apis/onMessageDisplayed.js.map +1 -1
  19. package/dist/cjs/inAppMessaging/providers/pinpoint/apis/onMessageReceived.js.map +1 -1
  20. package/dist/cjs/inAppMessaging/providers/pinpoint/apis/setConflictHandler.js.map +1 -1
  21. package/dist/cjs/inAppMessaging/providers/pinpoint/apis/syncMessages.js.map +1 -1
  22. package/dist/cjs/inAppMessaging/providers/pinpoint/index.js.map +1 -1
  23. package/dist/cjs/inAppMessaging/providers/pinpoint/types/index.js.map +1 -1
  24. package/dist/cjs/inAppMessaging/providers/pinpoint/types/inputs.js.map +1 -1
  25. package/dist/cjs/inAppMessaging/providers/pinpoint/types/options.js.map +1 -1
  26. package/dist/cjs/inAppMessaging/providers/pinpoint/types/outputs.js.map +1 -1
  27. package/dist/cjs/inAppMessaging/providers/pinpoint/types/types.js.map +1 -1
  28. package/dist/cjs/inAppMessaging/providers/pinpoint/utils/constants.js.map +1 -1
  29. package/dist/cjs/inAppMessaging/providers/pinpoint/utils/helpers.js.map +1 -1
  30. package/dist/cjs/inAppMessaging/providers/pinpoint/utils/index.js.map +1 -1
  31. package/dist/cjs/inAppMessaging/providers/pinpoint/utils/messageProcessingHelpers.js.map +1 -1
  32. package/dist/cjs/inAppMessaging/providers/pinpoint/utils/resolveConfig.js.map +1 -1
  33. package/dist/cjs/inAppMessaging/providers/pinpoint/utils/resolveCredentials.js.map +1 -1
  34. package/dist/cjs/inAppMessaging/providers/pinpoint/utils/userAgent.js.map +1 -1
  35. package/dist/cjs/inAppMessaging/types/event.js.map +1 -1
  36. package/dist/cjs/inAppMessaging/types/index.js.map +1 -1
  37. package/dist/cjs/inAppMessaging/types/inputs.js.map +1 -1
  38. package/dist/cjs/inAppMessaging/types/message.js.map +1 -1
  39. package/dist/cjs/inAppMessaging/types/options.js.map +1 -1
  40. package/dist/cjs/inAppMessaging/utils/index.js.map +1 -1
  41. package/dist/cjs/inAppMessaging/utils/statusHelpers.js.map +1 -1
  42. package/dist/cjs/pushNotifications/errors/PushNotificationError.js.map +1 -1
  43. package/dist/cjs/pushNotifications/errors/errorHelpers.js.map +1 -1
  44. package/dist/cjs/pushNotifications/errors/index.js.map +1 -1
  45. package/dist/cjs/pushNotifications/index.js.map +1 -1
  46. package/dist/cjs/pushNotifications/providers/pinpoint/apis/getBadgeCount.js.map +1 -1
  47. package/dist/cjs/pushNotifications/providers/pinpoint/apis/getBadgeCount.native.js.map +1 -1
  48. package/dist/cjs/pushNotifications/providers/pinpoint/apis/getLaunchNotification.js.map +1 -1
  49. package/dist/cjs/pushNotifications/providers/pinpoint/apis/getLaunchNotification.native.js.map +1 -1
  50. package/dist/cjs/pushNotifications/providers/pinpoint/apis/getPermissionStatus.js.map +1 -1
  51. package/dist/cjs/pushNotifications/providers/pinpoint/apis/getPermissionStatus.native.js.map +1 -1
  52. package/dist/cjs/pushNotifications/providers/pinpoint/apis/identifyUser.js.map +1 -1
  53. package/dist/cjs/pushNotifications/providers/pinpoint/apis/identifyUser.native.js.map +1 -1
  54. package/dist/cjs/pushNotifications/providers/pinpoint/apis/index.js.map +1 -1
  55. package/dist/cjs/pushNotifications/providers/pinpoint/apis/initializePushNotifications.js.map +1 -1
  56. package/dist/cjs/pushNotifications/providers/pinpoint/apis/initializePushNotifications.native.js.map +1 -1
  57. package/dist/cjs/pushNotifications/providers/pinpoint/apis/onNotificationOpened.js.map +1 -1
  58. package/dist/cjs/pushNotifications/providers/pinpoint/apis/onNotificationOpened.native.js.map +1 -1
  59. package/dist/cjs/pushNotifications/providers/pinpoint/apis/onNotificationReceivedInBackground.js.map +1 -1
  60. package/dist/cjs/pushNotifications/providers/pinpoint/apis/onNotificationReceivedInBackground.native.js.map +1 -1
  61. package/dist/cjs/pushNotifications/providers/pinpoint/apis/onNotificationReceivedInForeground.js.map +1 -1
  62. package/dist/cjs/pushNotifications/providers/pinpoint/apis/onNotificationReceivedInForeground.native.js.map +1 -1
  63. package/dist/cjs/pushNotifications/providers/pinpoint/apis/onTokenReceived.js.map +1 -1
  64. package/dist/cjs/pushNotifications/providers/pinpoint/apis/onTokenReceived.native.js.map +1 -1
  65. package/dist/cjs/pushNotifications/providers/pinpoint/apis/requestPermissions.js.map +1 -1
  66. package/dist/cjs/pushNotifications/providers/pinpoint/apis/requestPermissions.native.js.map +1 -1
  67. package/dist/cjs/pushNotifications/providers/pinpoint/apis/setBadgeCount.js.map +1 -1
  68. package/dist/cjs/pushNotifications/providers/pinpoint/apis/setBadgeCount.native.js.map +1 -1
  69. package/dist/cjs/pushNotifications/providers/pinpoint/index.js.map +1 -1
  70. package/dist/cjs/pushNotifications/providers/pinpoint/types/analytics.js.map +1 -1
  71. package/dist/cjs/pushNotifications/providers/pinpoint/types/apis.js.map +1 -1
  72. package/dist/cjs/pushNotifications/providers/pinpoint/types/index.js.map +1 -1
  73. package/dist/cjs/pushNotifications/providers/pinpoint/types/inputs.js.map +1 -1
  74. package/dist/cjs/pushNotifications/providers/pinpoint/types/options.js.map +1 -1
  75. package/dist/cjs/pushNotifications/providers/pinpoint/types/outputs.js.map +1 -1
  76. package/dist/cjs/pushNotifications/providers/pinpoint/types/pushNotifications.js.map +1 -1
  77. package/dist/cjs/pushNotifications/providers/pinpoint/utils/createMessageEventRecorder.js.map +1 -1
  78. package/dist/cjs/pushNotifications/providers/pinpoint/utils/getAnalyticsEvent.js.map +1 -1
  79. package/dist/cjs/pushNotifications/providers/pinpoint/utils/getChannelType.js.map +1 -1
  80. package/dist/cjs/pushNotifications/providers/pinpoint/utils/index.js.map +1 -1
  81. package/dist/cjs/pushNotifications/providers/pinpoint/utils/resolveConfig.js.map +1 -1
  82. package/dist/cjs/pushNotifications/types/errors.js.map +1 -1
  83. package/dist/cjs/pushNotifications/types/index.js.map +1 -1
  84. package/dist/cjs/pushNotifications/types/inputs.js.map +1 -1
  85. package/dist/cjs/pushNotifications/types/module.js.map +1 -1
  86. package/dist/cjs/pushNotifications/types/options.js.map +1 -1
  87. package/dist/cjs/pushNotifications/types/outputs.js.map +1 -1
  88. package/dist/cjs/pushNotifications/types/pushNotifications.js.map +1 -1
  89. package/dist/cjs/pushNotifications/utils/getPushNotificationUserAgentString.js.map +1 -1
  90. package/dist/cjs/pushNotifications/utils/index.js.map +1 -1
  91. package/dist/cjs/pushNotifications/utils/initializationManager.js.map +1 -1
  92. package/dist/cjs/pushNotifications/utils/resolveCredentials.js.map +1 -1
  93. package/dist/cjs/pushNotifications/utils/tokenManager.js.map +1 -1
  94. package/dist/esm/eventListeners/eventListeners.mjs.map +1 -1
  95. package/dist/esm/inAppMessaging/errors/InAppMessagingError.mjs.map +1 -1
  96. package/dist/esm/inAppMessaging/errors/assertServiceError.mjs.map +1 -1
  97. package/dist/esm/inAppMessaging/errors/assertValidationError.mjs.map +1 -1
  98. package/dist/esm/inAppMessaging/errors/validation.mjs.map +1 -1
  99. package/dist/esm/inAppMessaging/providers/pinpoint/apis/clearMessages.mjs.map +1 -1
  100. package/dist/esm/inAppMessaging/providers/pinpoint/apis/dispatchEvent.mjs.map +1 -1
  101. package/dist/esm/inAppMessaging/providers/pinpoint/apis/identifyUser.mjs.map +1 -1
  102. package/dist/esm/inAppMessaging/providers/pinpoint/apis/initializeInAppMessaging.mjs.map +1 -1
  103. package/dist/esm/inAppMessaging/providers/pinpoint/apis/notifyMessageInteraction.mjs.map +1 -1
  104. package/dist/esm/inAppMessaging/providers/pinpoint/apis/onMessageActionTaken.mjs.map +1 -1
  105. package/dist/esm/inAppMessaging/providers/pinpoint/apis/onMessageDismissed.mjs.map +1 -1
  106. package/dist/esm/inAppMessaging/providers/pinpoint/apis/onMessageDisplayed.mjs.map +1 -1
  107. package/dist/esm/inAppMessaging/providers/pinpoint/apis/onMessageReceived.mjs.map +1 -1
  108. package/dist/esm/inAppMessaging/providers/pinpoint/apis/setConflictHandler.mjs.map +1 -1
  109. package/dist/esm/inAppMessaging/providers/pinpoint/apis/syncMessages.mjs.map +1 -1
  110. package/dist/esm/inAppMessaging/providers/pinpoint/types/types.mjs.map +1 -1
  111. package/dist/esm/inAppMessaging/providers/pinpoint/utils/constants.mjs.map +1 -1
  112. package/dist/esm/inAppMessaging/providers/pinpoint/utils/helpers.mjs.map +1 -1
  113. package/dist/esm/inAppMessaging/providers/pinpoint/utils/messageProcessingHelpers.mjs.map +1 -1
  114. package/dist/esm/inAppMessaging/providers/pinpoint/utils/resolveConfig.mjs.map +1 -1
  115. package/dist/esm/inAppMessaging/providers/pinpoint/utils/resolveCredentials.mjs.map +1 -1
  116. package/dist/esm/inAppMessaging/providers/pinpoint/utils/userAgent.mjs.map +1 -1
  117. package/dist/esm/inAppMessaging/utils/statusHelpers.mjs.map +1 -1
  118. package/dist/esm/pushNotifications/errors/PushNotificationError.mjs.map +1 -1
  119. package/dist/esm/pushNotifications/errors/errorHelpers.mjs.map +1 -1
  120. package/dist/esm/pushNotifications/providers/pinpoint/apis/getBadgeCount.mjs.map +1 -1
  121. package/dist/esm/pushNotifications/providers/pinpoint/apis/getBadgeCount.native.mjs.map +1 -1
  122. package/dist/esm/pushNotifications/providers/pinpoint/apis/getLaunchNotification.mjs.map +1 -1
  123. package/dist/esm/pushNotifications/providers/pinpoint/apis/getLaunchNotification.native.mjs.map +1 -1
  124. package/dist/esm/pushNotifications/providers/pinpoint/apis/getPermissionStatus.mjs.map +1 -1
  125. package/dist/esm/pushNotifications/providers/pinpoint/apis/getPermissionStatus.native.mjs.map +1 -1
  126. package/dist/esm/pushNotifications/providers/pinpoint/apis/identifyUser.mjs.map +1 -1
  127. package/dist/esm/pushNotifications/providers/pinpoint/apis/identifyUser.native.mjs.map +1 -1
  128. package/dist/esm/pushNotifications/providers/pinpoint/apis/initializePushNotifications.mjs.map +1 -1
  129. package/dist/esm/pushNotifications/providers/pinpoint/apis/initializePushNotifications.native.mjs.map +1 -1
  130. package/dist/esm/pushNotifications/providers/pinpoint/apis/onNotificationOpened.mjs.map +1 -1
  131. package/dist/esm/pushNotifications/providers/pinpoint/apis/onNotificationOpened.native.mjs.map +1 -1
  132. package/dist/esm/pushNotifications/providers/pinpoint/apis/onNotificationReceivedInBackground.mjs.map +1 -1
  133. package/dist/esm/pushNotifications/providers/pinpoint/apis/onNotificationReceivedInBackground.native.mjs.map +1 -1
  134. package/dist/esm/pushNotifications/providers/pinpoint/apis/onNotificationReceivedInForeground.mjs.map +1 -1
  135. package/dist/esm/pushNotifications/providers/pinpoint/apis/onNotificationReceivedInForeground.native.mjs.map +1 -1
  136. package/dist/esm/pushNotifications/providers/pinpoint/apis/onTokenReceived.mjs.map +1 -1
  137. package/dist/esm/pushNotifications/providers/pinpoint/apis/onTokenReceived.native.mjs.map +1 -1
  138. package/dist/esm/pushNotifications/providers/pinpoint/apis/requestPermissions.mjs.map +1 -1
  139. package/dist/esm/pushNotifications/providers/pinpoint/apis/requestPermissions.native.mjs.map +1 -1
  140. package/dist/esm/pushNotifications/providers/pinpoint/apis/setBadgeCount.mjs.map +1 -1
  141. package/dist/esm/pushNotifications/providers/pinpoint/apis/setBadgeCount.native.mjs.map +1 -1
  142. package/dist/esm/pushNotifications/providers/pinpoint/utils/createMessageEventRecorder.mjs.map +1 -1
  143. package/dist/esm/pushNotifications/providers/pinpoint/utils/getAnalyticsEvent.mjs.map +1 -1
  144. package/dist/esm/pushNotifications/providers/pinpoint/utils/getChannelType.mjs.map +1 -1
  145. package/dist/esm/pushNotifications/providers/pinpoint/utils/resolveConfig.mjs.map +1 -1
  146. package/dist/esm/pushNotifications/types/errors.mjs.map +1 -1
  147. package/dist/esm/pushNotifications/utils/getPushNotificationUserAgentString.mjs.map +1 -1
  148. package/dist/esm/pushNotifications/utils/initializationManager.mjs.map +1 -1
  149. package/dist/esm/pushNotifications/utils/resolveCredentials.mjs.map +1 -1
  150. package/dist/esm/pushNotifications/utils/tokenManager.mjs.map +1 -1
  151. package/package.json +103 -102
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../../src/inAppMessaging/providers/pinpoint/utils/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;AACA;;;AAEA,IAAgD,eAAA,GAAA,OAAA,CAAA,iBAAA,CAAA,CAAA;AAAvC,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,eAAA,EAAA,EAAA,UAAA,EAAA,IAAA,EAAA,GAAA,EAAA,YAAA,EAAA,OAAA,eAAA,CAAA,aAAa,CAAA,EAAA,EAAA,CAAA,CAAA;AACtB,IAA0D,oBAAA,GAAA,OAAA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A,sBAAA,EAAA,EAAA,UAAA,EAAA,IAAA,EAAA,GAAA,EAAA,YAAA,EAAA,OAAA,0BAAA,CAAA,oBAAoB,CAAA,EAAA,EAAA,CAAA,CAAA;AACpB,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,2BAAA,EAAA,EAAA,UAAA,EAAA,IAAA,EAAA,GAAA,EAAA,YAAA,EAAA,OAAA,0BAAA,CAAA,yBAAyB,CAAA,EAAA,EAAA,CAAA,CAAA;AACzB,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,wBAAA,EAAA,EAAA,UAAA,EAAA,IAAA,EAAA,GAAA,EAAA,YAAA,EAAA,OAAA,0BAAA,CAAA,sBAAsB,CAAA,EAAA,EAAA,CAAA;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../../../src/inAppMessaging/providers/pinpoint/utils/index.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.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;\nvar resolveConfig_1 = require(\"./resolveConfig\");\nObject.defineProperty(exports, \"resolveConfig\", { enumerable: true, get: function () { return resolveConfig_1.resolveConfig; } });\nvar resolveCredentials_1 = require(\"./resolveCredentials\");\nObject.defineProperty(exports, \"resolveCredentials\", { enumerable: true, get: function () { return resolveCredentials_1.resolveCredentials; } });\nvar userAgent_1 = require(\"./userAgent\");\nObject.defineProperty(exports, \"getInAppMessagingUserAgentString\", { enumerable: true, get: function () { return userAgent_1.getInAppMessagingUserAgentString; } });\nvar constants_1 = require(\"./constants\");\nObject.defineProperty(exports, \"PINPOINT_KEY_PREFIX\", { enumerable: true, get: function () { return constants_1.PINPOINT_KEY_PREFIX; } });\nObject.defineProperty(exports, \"CATEGORY\", { enumerable: true, get: function () { return constants_1.CATEGORY; } });\nObject.defineProperty(exports, \"CHANNEL_TYPE\", { enumerable: true, get: function () { return constants_1.CHANNEL_TYPE; } });\nObject.defineProperty(exports, \"STORAGE_KEY_SUFFIX\", { enumerable: true, get: function () { return constants_1.STORAGE_KEY_SUFFIX; } });\nvar messageProcessingHelpers_1 = require(\"./messageProcessingHelpers\");\nObject.defineProperty(exports, \"processInAppMessages\", { enumerable: true, get: function () { return messageProcessingHelpers_1.processInAppMessages; } });\nObject.defineProperty(exports, \"sessionStateChangeHandler\", { enumerable: true, get: function () { return messageProcessingHelpers_1.sessionStateChangeHandler; } });\nObject.defineProperty(exports, \"incrementMessageCounts\", { enumerable: true, get: function () { return messageProcessingHelpers_1.incrementMessageCounts; } });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,sBAAsB,GAAG,OAAO,CAAC,yBAAyB,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,kBAAkB,GAAG,OAAO,CAAC,YAAY,GAAG,OAAO,CAAC,QAAQ,GAAG,OAAO,CAAC,mBAAmB,GAAG,OAAO,CAAC,gCAAgC,GAAG,OAAO,CAAC,kBAAkB,GAAG,OAAO,CAAC,aAAa,GAAG,KAAK,CAAC,CAAC;AAChT,IAAI,eAAe,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AACjD,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,eAAe,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,eAAe,CAAC,aAAa,CAAC,EAAE,EAAE,CAAC,CAAC;AAClI,IAAI,oBAAoB,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;AAC3D,MAAM,CAAC,c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AE,GAAG,EAAE,YAAY,EAAE,OAAO,0BAA0B,CAAC,oBAAoB,CAAC,EAAE,EAAE,CAAC,CAAC;AAC3J,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,2BAA2B,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,0BAA0B,CAAC,yBAAyB,CAAC,EAAE,EAAE,CAAC,CAAC;AACrK,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,wBAAwB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,0BAA0B,CAAC,sBAAsB,CAAC,EAAE,EAAE,CAAC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"messageProcessingHelpers.js","sources":["../../../../../../../src/inAppMessaging/providers/pinpoint/utils/messageProcessingHelpers.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;AACA;;;AAQA,MAQmB,SAAA,GAAA,OAAA,CAAA,WAAA,CAAA,CAAA;AAEnB,MAAkE,MAAA,GAAA,OAAA,CAAA,mBAAA,CAAA,CAAA;AAGlE,MAAM,uBAAuB,GAAG,2CAA2C,CAAC;AAC5E,MAAM,uBAAuB,GAAG,2CAA2C,CAAC;AAC5E,MAAM,MAAM,GAAG,IAAI,oBAAa,CAAC,qCAAqC,CAAC,CAAC;AAExE,IAAI,sBAAsB,GAAyB,EAAE,CAAC;AAE/C,eAAe,oBAAoB,CACzC,QAAgC,EAChC,KAA0B,EAAA;AAE1B,IAAA,IAAI,mBAAuC,CAAC;IAC5C,IAAI,GAAG,GAA2B,EAAE,CAAC;AACrC,IAAA,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE;AACrD,QAAA,MAAM,OAAO,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;QAChC,MAAM,gBAAgB,GACrB,IAAA,SAAA,CAAA,gBAAgB,EAAC,OAAO,EAA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AAM,QAAQ,GAAG,MAAM,gBAAgB,EAAE,CAAC;;AAE1C,IAAA,OAAO,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;AACjC,CAAC;AAED,MAAM,aAAa,GAAG,MAAa;AAClC,IAAA,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAC;IACvB,GAAG,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AACzB,IAAA,OAAO,GAAG,CAAC,WAAW,EAAE,CAAC;AAC1B,CAAC;;"}
1
+ {"version":3,"file":"messageProcessingHelpers.js","sources":["../../../../../../src/inAppMessaging/providers/pinpoint/utils/messageProcessingHelpers.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.incrementMessageCounts = exports.sessionStateChangeHandler = exports.processInAppMessages = void 0;\nconst helpers_1 = require(\"./helpers\");\nconst core_1 = require(\"@aws-amplify/core\");\nconst MESSAGE_DAILY_COUNT_KEY = 'pinpointProvider_inAppMessages_dailyCount';\nconst MESSAGE_TOTAL_COUNT_KEY = 'pinpointProvider_inAppMessages_totalCount';\nconst logger = new core_1.ConsoleLogger('InAppMessaging.processInAppMessages');\nlet sessionMessageCountMap = {};\nasync function processInAppMessages(messages, event) {\n let highestPrioritySeen;\n let acc = [];\n for (let index = 0; index < messages.length; index++) {\n const message = messages[index];\n const messageQualifies = (0, helpers_1.matchesEventType)(message, event) &&\n (0, helpers_1.matchesAttributes)(message, event) &&\n (0, helpers_1.matchesMetrics)(message, event) &&\n (0, helpers_1.isBeforeEndDate)(message) &&\n (await isBelowCap(message));\n // filter all qualifying messages returning only those that are of (relative) highest priority\n if (messageQualifies) {\n // have not yet encountered message with priority\n if (!highestPrioritySeen) {\n // this message has priority, so reset the accumulator with this message only\n if (message.Priority) {\n highestPrioritySeen = message.Priority;\n acc = [message];\n }\n else {\n // this message also has no priority, so just add this message to accumulator\n acc.push(message);\n }\n // have previously encountered message with priority, so only messages with priority matter now\n }\n else if (message.Priority) {\n // this message has higher priority (lower number), so reset the accumulator with this message only\n if (message.Priority < highestPrioritySeen) {\n highestPrioritySeen = message.Priority;\n acc = [message];\n // this message has the same priority, so just add this message to accumulator\n }\n else if (message.Priority === highestPrioritySeen) {\n acc.push(message);\n }\n }\n }\n }\n return normalizeMessages(acc);\n}\nexports.processInAppMessages = processInAppMessages;\nfunction sessionStateChangeHandler(state) {\n if (state === 'started') {\n // reset all session counts\n sessionMessageCountMap = {};\n }\n}\nexports.sessionStateChangeHandler = sessionStateChangeHandler;\nasync function incrementMessageCounts(messageId) {\n const { sessionCount, dailyCount, totalCount } = await getMessageCounts(messageId);\n setSessionCount(messageId, sessionCount + 1);\n setDailyCount(dailyCount + 1);\n await setTotalCount(messageId, totalCount + 1);\n}\nexports.incrementMessageCounts = incrementMessageCounts;\nfunction normalizeMessages(messages) {\n return messages.map(message => {\n const { CampaignId, InAppMessage } = message;\n return {\n // Default to empty string in rare cases we don't have a campaignId\n id: CampaignId ?? '',\n content: (0, helpers_1.extractContent)(message),\n // Default to TOP_BANNER layout in rare cases we don't have a Layout\n layout: InAppMessage?.Layout\n ? (0, helpers_1.interpretLayout)(InAppMessage.Layout)\n : 'TOP_BANNER',\n metadata: (0, helpers_1.extractMetadata)(message),\n };\n });\n}\nasync function isBelowCap({ CampaignId, SessionCap, DailyCap, TotalCap, }) {\n const { sessionCount, dailyCount, totalCount } = await getMessageCounts(CampaignId);\n return ((!SessionCap || sessionCount < SessionCap) &&\n (!DailyCap || dailyCount < DailyCap) &&\n (!TotalCap || totalCount < TotalCap));\n}\nasync function getMessageCounts(messageId) {\n let messageCounts = {\n sessionCount: 0,\n dailyCount: 0,\n totalCount: 0,\n };\n try {\n // only return true counts if there is a messageId else default to 0\n if (messageId)\n messageCounts = {\n sessionCount: getSessionCount(messageId),\n dailyCount: await getDailyCount(),\n totalCount: await getTotalCount(messageId),\n };\n return messageCounts;\n }\n catch (err) {\n logger.error('Failed to get message counts from storage', err);\n // If there are no cached counts or there is an error,\n // we default to 0 allowing all the messages to be eligible\n return messageCounts;\n }\n}\nfunction getSessionCount(messageId) {\n return sessionMessageCountMap[messageId] ?? 0;\n}\nfunction setSessionCount(messageId, count) {\n sessionMessageCountMap[messageId] = count;\n}\nfunction setDailyCount(count) {\n const dailyCount = {\n count,\n lastCountTimestamp: getStartOfDay(),\n };\n try {\n core_1.defaultStorage.setItem(MESSAGE_DAILY_COUNT_KEY, JSON.stringify(dailyCount));\n }\n catch (err) {\n logger.error('Failed to save daily message count to storage', err);\n }\n}\nfunction setTotalCountMap(countMap) {\n try {\n core_1.defaultStorage.setItem(MESSAGE_TOTAL_COUNT_KEY, JSON.stringify(countMap));\n }\n catch (err) {\n logger.error('Failed to save total count to storage', err);\n }\n}\nasync function setTotalCount(messageId, count) {\n const totalCountMap = await getTotalCountMap();\n const updatedMap = {\n ...totalCountMap,\n [messageId]: count,\n };\n setTotalCountMap(updatedMap);\n}\nasync function getDailyCount() {\n const today = getStartOfDay();\n const item = await core_1.defaultStorage.getItem(MESSAGE_DAILY_COUNT_KEY);\n // Parse stored count or initialize as empty count\n const counter = item\n ? JSON.parse(item)\n : { count: 0, lastCountTimestamp: today };\n // If the stored counter timestamp is today, use it as the count, otherwise reset to 0\n return counter.lastCountTimestamp === today ? counter.count : 0;\n}\nasync function getTotalCountMap() {\n const item = await core_1.defaultStorage.getItem(MESSAGE_TOTAL_COUNT_KEY);\n // Parse stored count map or initialize as empty\n return item ? JSON.parse(item) : {};\n}\nasync function getTotalCount(messageId) {\n const countMap = await getTotalCountMap();\n // Return stored count or initialize as empty count\n return countMap[messageId] || 0;\n}\nconst getStartOfDay = () => {\n const now = new Date();\n now.setHours(0, 0, 0, 0);\n return now.toISOString();\n};\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY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C;AACD,MAAM,aAAa,GAAG,MAAM;AAC5B,IAAI,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAC;AAC3B,IAAI,GAAG,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AAC7B,IAAI,OAAO,GAAG,CAAC,WAAW,EAAE,CAAC;AAC7B,CAAC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"resolveConfig.js","sources":["../../../../../../../src/inAppMessaging/providers/pinpoint/utils/resolveConfig.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;AACA;;;AAEA,MAA4C,MAAA,GAAA,OAAA,CAAA,mBAAA,CAAA,CAAA;AAC5C,MAGyB,QAAA,GAAA,OAAA,CAAA,iBAAA,CAAA,CAAA;AAEzB;;AAEG;AACI,MAAM,aAAa,GAAG,MAAK;AACjC,IAAA,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GACtB,cAAO,CAAC,SAAS,EAAE,CAAC,aAAa,EAAE,cAAc,EAAE,QAAQ,IAAI,EAAE,CAAC;IACnE,IAAA,QAAA,CAAA,qBAAqB,EAAC,CAAC,CAAC,KAAK,EAAE,QAAiC,CAAA,iCAAA,CAAC,OAAO,CAAC,CAAC;IAC1E,IAAA,QAAA,CAAA,qBAAqB,EAAC,CAAC,CAAC,MAAM,EAAE,QAAiC,CAAA,iCAAA,CAAC,QAAQ,CAAC,CAAC;AAC5E,IAAA,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;AAC1B,CAAC,CAAC;AANW,OAAA,CAAA,aAAa,GAMxB,aAAA;;"}
1
+ {"version":3,"file":"resolveConfig.js","sources":["../../../../../../src/inAppMessaging/providers/pinpoint/utils/resolveConfig.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.resolveConfig = void 0;\nconst core_1 = require(\"@aws-amplify/core\");\nconst errors_1 = require(\"../../../errors\");\n/**\n * @internal\n */\nconst resolveConfig = () => {\n const { appId, region } = core_1.Amplify.getConfig().Notifications?.InAppMessaging?.Pinpoint ?? {};\n (0, errors_1.assertValidationError)(!!appId, errors_1.InAppMessagingValidationErrorCode.NoAppId);\n (0, errors_1.assertValidationError)(!!region, errors_1.InAppMessagingValidationErrorCode.NoRegion);\n return { appId, region };\n};\nexports.resolveConfig = resolveConfig;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,aAAa,GAAG,KAAK,CAAC,CAAC;AAC/B,MAAM,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAC5C;AACA;AACA;AACA,MAAM,aAAa,GAAG,MAAM;AAC5B,IAAI,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC,OAAO,CAAC,SAAS,EAAE,CAAC,aAAa,EAAE,cAAc,EAAE,QAAQ,IAAI,EAAE,CAAC;AACvG,IAAI,IAAI,QAAQ,CAAC,qBAAqB,EAAE,CAAC,CAAC,KAAK,EAAE,QAAQ,CAAC,iCAAiC,CAAC,OAAO,CAAC,CAAC;AACrG,IAAI,IAAI,QAAQ,CAAC,qBAAqB,EAAE,CAAC,CAAC,MAAM,EAAE,QAAQ,CAAC,iCAAiC,CAAC,QAAQ,CAAC,CAAC;AACvG,IAAI,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;AAC7B,CAAC,CAAC;AACF,OAAO,CAAC,aAAa,GAAG,aAAa;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"resolveCredentials.js","sources":["../../../../../../../src/inAppMessaging/providers/pinpoint/utils/resolveCredentials.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;AACA;;;AAEA,MAAqD,MAAA,GAAA,OAAA,CAAA,mBAAA,CAAA,CAAA;AACrD,MAGyB,QAAA,GAAA,OAAA,CAAA,iBAAA,CAAA,CAAA;AAEzB;;AAEG;AACI,MAAM,kBAAkB,GAAG,YAAW;IAC5C,MAAM,EAAE,WAAW,EAAE,UAAU,EAAE,GAAG,MAAM,IAAA,MAAgB,CAAA,gBAAA,GAAE,CAAC;IAC7D,IAAA,QAAA,CAAA,qBAAqB,EACpB,CAAC,CAAC,WAAW,EACb,QAAiC,CAAA,iCAAA,CAAC,aAAa,CAC/C,CAAC;AACF,IAAA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,CAAC;AACpC,CAAC,CAAC;AAPW,OAAA,CAAA,kBAAkB,GAO7B,kBAAA;;"}
1
+ {"version":3,"file":"resolveCredentials.js","sources":["../../../../../../src/inAppMessaging/providers/pinpoint/utils/resolveCredentials.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.resolveCredentials = void 0;\nconst core_1 = require(\"@aws-amplify/core\");\nconst errors_1 = require(\"../../../errors\");\n/**\n * @internal\n */\nconst resolveCredentials = async () => {\n const { credentials, identityId } = await (0, core_1.fetchAuthSession)();\n (0, errors_1.assertValidationError)(!!credentials, errors_1.InAppMessagingValidationErrorCode.NoCredentials);\n return { credentials, identityId };\n};\nexports.resolveCredentials = resolveCredentials;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,kBAAkB,GAAG,KAAK,CAAC,CAAC;AACpC,MAAM,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAC5C;AACA;AACA;AACA,MAAM,kBAAkB,GAAG,YAAY;AACvC,IAAI,MAAM,EAAE,WAAW,EAAE,UAAU,EAAE,GAAG,MAAM,IAAI,MAAM,CAAC,gBAAgB,GAAG,CAAC;AAC7E,IAAI,IAAI,QAAQ,CAAC,qBAAqB,EAAE,CAAC,CAAC,WAAW,EAAE,QAAQ,CAAC,iCAAiC,CAAC,aAAa,CAAC,CAAC;AACjH,IAAI,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,CAAC;AACvC,CAAC,CAAC;AACF,OAAO,CAAC,kBAAkB,GAAG,kBAAkB;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"userAgent.js","sources":["../../../../../../../src/inAppMessaging/providers/pinpoint/utils/userAgent.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAAA;AACA;AACA,MAK2C,OAAA,GAAA,OAAA,CAAA,mCAAA,CAAA,CAAA;AAG3C,SAAgB,0BAA0B,CACzC,MAA4B,EAAA;IAE5B,OAAO,IAAA,iCAAyB,EAAC;QAChC,QAAQ,EAAE,OAAQ,CAAA,QAAA,CAAC,cAAc;QACjC,MAAM;AACN,KAAA,CAAC,CAAC;AACJ,CAAC;AAPD,OAOC,CAAA,0BAAA,GAAA,0BAAA,CAAA;AAED,SAAgB,gCAAgC,CAAC,MAA4B,EAAA;IAC5E,OAAO,IAAA,2BAAmB,EAAC;QAC1B,QAAQ,EAAE,OAAQ,CAAA,QAAA,CAAC,cAAc;QACjC,MAAM;AACN,KAAA,CAAC,CAAC;AACJ,CAAC;AALD,OAKC,CAAA,gCAAA,GAAA,gCAAA;;"}
1
+ {"version":3,"file":"userAgent.js","sources":["../../../../../../src/inAppMessaging/providers/pinpoint/utils/userAgent.ts"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getInAppMessagingUserAgentString = exports.getInAppMessagingUserAgent = void 0;\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nconst utils_1 = require(\"@aws-amplify/core/internals/utils\");\nfunction getInAppMessagingUserAgent(action) {\n return (0, utils_1.getAmplifyUserAgentObject)({\n category: utils_1.Category.InAppMessaging,\n action,\n });\n}\nexports.getInAppMessagingUserAgent = getInAppMessagingUserAgent;\nfunction getInAppMessagingUserAgentString(action) {\n return (0, utils_1.getAmplifyUserAgent)({\n category: utils_1.Category.InAppMessaging,\n action,\n });\n}\nexports.getInAppMessagingUserAgentString = getInAppMessagingUserAgentString;\n"],"names":[],"mappings":";;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,gCAAgC,GAAG,OAAO,CAAC,0BAA0B,GAAG,KAAK,CAAC,CAAC;AACvF;AACA;AACA,MAAM,OAAO,GAAG,OAAO,CAAC,mCAAmC,CAAC,CAAC;AAC7D,SAAS,0BAA0B,CAAC,MAAM,EAAE;AAC5C,IAAI,OAAO,IAAI,OAAO,CAAC,yBAAyB,EAAE;AAClD,QAAQ,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,cAAc;AACjD,QAAQ,MAAM;AACd,KAAK,CAAC,CAAC;AACP,CAAC;AACD,OAAO,CAAC,0BAA0B,GAAG,0BAA0B,CAAC;AAChE,SAAS,gCAAgC,CAAC,MAAM,EAAE;AAClD,IAAI,OAAO,IAAI,OAAO,CAAC,mBAAmB,EAAE;AAC5C,QAAQ,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,cAAc;AACjD,QAAQ,MAAM;AACd,KAAK,CAAC,CAAC;AACP,CAAC;AACD,OAAO,CAAC,gCAAgC,GAAG,gCAAgC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"event.js","sources":["../../../../../src/inAppMessaging/types/event.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;AACA;;;"}
1
+ {"version":3,"file":"event.js","sources":["../../../../src/inAppMessaging/types/event.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../src/inAppMessaging/types/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;AACA;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/inAppMessaging/types/index.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"inputs.js","sources":["../../../../../src/inAppMessaging/types/inputs.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;AACA;;;"}
1
+ {"version":3,"file":"inputs.js","sources":["../../../../src/inAppMessaging/types/inputs.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"message.js","sources":["../../../../../src/inAppMessaging/types/message.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;AACA;;;"}
1
+ {"version":3,"file":"message.js","sources":["../../../../src/inAppMessaging/types/message.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"options.js","sources":["../../../../../src/inAppMessaging/types/options.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;AACA;;;"}
1
+ {"version":3,"file":"options.js","sources":["../../../../src/inAppMessaging/types/options.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../src/inAppMessaging/utils/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;AACA;;;AAEA,IAIyB,eAAA,GAAA,OAAA,CAAA,iBAAA,CAAA,CAAA;AAHxB,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,eAAA,EAAA,EAAA,UAAA,EAAA,IAAA,EAAA,GAAA,EAAA,YAAA,EAAA,OAAA,eAAA,CAAA,aAAa,CAAA,EAAA,EAAA,CAAA,CAAA;AACb,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,qBAAA,EAAA,EAAA,UAAA,EAAA,IAAA,EAAA,GAAA,EAAA,YAAA,EAAA,OAAA,eAAA,CAAA,mBAAmB,CAAA,EAAA,EAAA,CAAA,CAAA;AACnB,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,YAAA,EAAA,EAAA,UAAA,EAAA,IAAA,EAAA,GAAA,EAAA,YAAA,EAAA,OAAA,eAAA,CAAA,UAAU,CAAA,EAAA,EAAA,CAAA;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/inAppMessaging/utils/index.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.initialize = exports.assertIsInitialized = exports.isInitialized = void 0;\nvar statusHelpers_1 = require(\"./statusHelpers\");\nObject.defineProperty(exports, \"isInitialized\", { enumerable: true, get: function () { return statusHelpers_1.isInitialized; } });\nObject.defineProperty(exports, \"assertIsInitialized\", { enumerable: true, get: function () { return statusHelpers_1.assertIsInitialized; } });\nObject.defineProperty(exports, \"initialize\", { enumerable: true, get: function () { return statusHelpers_1.initialize; } });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,UAAU,GAAG,OAAO,CAAC,mBAAmB,GAAG,OAAO,CAAC,aAAa,GAAG,KAAK,CAAC,CAAC;AAClF,IAAI,eAAe,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AACjD,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,eAAe,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,eAAe,CAAC,aAAa,CAAC,EAAE,EAAE,CAAC,CAAC;AAClI,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,qBAAqB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,eAAe,CAAC,mBAAmB,CAAC,EAAE,EAAE,CAAC,CAAC;AAC9I,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,eAAe,CAAC,UAAU,CAAC,EAAE,EAAE,CAAC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"statusHelpers.js","sources":["../../../../../src/inAppMessaging/utils/statusHelpers.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;AACA;;;AAEA,MAGmB,QAAA,GAAA,OAAA,CAAA,WAAA,CAAA,CAAA;AAEnB,IAAI,WAAW,GAAG,KAAK,CAAC;AAExB;;;;AAIG;AACI,MAAM,UAAU,GAAG,MAAK;IAC9B,WAAW,GAAG,IAAI,CAAC;AACpB,CAAC,CAAC;AAFW,OAAA,CAAA,UAAU,GAErB,UAAA,CAAA;AAEF;;;;AAIG;AACI,MAAM,aAAa,GAAG,MAAM,WAAW,CAAC;AAAlC,OAAA,CAAA,aAAa,GAAqB,aAAA,CAAA;AAE/C,SAAgB,mBAAmB,GAAA;IAClC,IAAA,QAAA,CAAA,qBAAqB,EACpB,IAAA,OAAa,CAAA,aAAA,GAAE,EACf,QAAiC,CAAA,iCAAA,CAAC,cAAc,CAChD,CAAC;AACH,CAAC;AALD,OAKC,CAAA,mBAAA,GAAA,mBAAA;;"}
1
+ {"version":3,"file":"statusHelpers.js","sources":["../../../../src/inAppMessaging/utils/statusHelpers.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.assertIsInitialized = exports.isInitialized = exports.initialize = void 0;\nconst errors_1 = require(\"../errors\");\nlet initialized = false;\n/**\n * Sets initialization status to true.\n *\n * @internal\n */\nconst initialize = () => {\n initialized = true;\n};\nexports.initialize = initialize;\n/**\n * Returns the initialization status of In-App Messaging.\n *\n * @internal\n */\nconst isInitialized = () => initialized;\nexports.isInitialized = isInitialized;\nfunction assertIsInitialized() {\n (0, errors_1.assertValidationError)((0, exports.isInitialized)(), errors_1.InAppMessagingValidationErrorCode.NotInitialized);\n}\nexports.assertIsInitialized = assertIsInitialized;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,mBAAmB,GAAG,OAAO,CAAC,aAAa,GAAG,OAAO,CAAC,UAAU,GAAG,KAAK,CAAC,CAAC;AAClF,MAAM,QAAQ,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;AACtC,IAAI,WAAW,GAAG,KAAK,CAAC;AACxB;AACA;AACA;AACA;AACA;AACA,MAAM,UAAU,GAAG,MAAM;AACzB,IAAI,WAAW,GAAG,IAAI,CAAC;AACvB,CAAC,CAAC;AACF,OAAO,CAAC,UAAU,GAAG,UAAU,CAAC;AAChC;AACA;AACA;AACA;AACA;AACA,MAAM,aAAa,GAAG,MAAM,WAAW,CAAC;AACxC,OAAO,CAAC,aAAa,GAAG,aAAa,CAAC;AACtC,SAAS,mBAAmB,GAAG;AAC/B,IAAI,IAAI,QAAQ,CAAC,qBAAqB,EAAE,IAAI,OAAO,CAAC,aAAa,GAAG,EAAE,QAAQ,CAAC,iCAAiC,CAAC,cAAc,CAAC,CAAC;AACjI,CAAC;AACD,OAAO,CAAC,mBAAmB,GAAG,mBAAmB;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"PushNotificationError.js","sources":["../../../../../src/pushNotifications/errors/PushNotificationError.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;AACA;;;AAEA,MAG2C,OAAA,GAAA,OAAA,CAAA,mCAAA,CAAA,CAAA;AAE3C,MAAa,qBAAsB,SAAQ,OAAY,CAAA,YAAA,CAAA;AACtD,IAAA,WAAA,CAAY,MAA0B,EAAA;QACrC,KAAK,CAAC,MAAM,CAAC,CAAC;;;AAId,QAAA,IAAI,CAAC,WAAW,GAAG,qBAAqB,CAAC;QACzC,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,qBAAqB,CAAC,SAAS,CAAC,CAAC;KAC7D;AACD,CAAA;AATD,OASC,CAAA,qBAAA,GAAA,qBAAA;;"}
1
+ {"version":3,"file":"PushNotificationError.js","sources":["../../../../src/pushNotifications/errors/PushNotificationError.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.PushNotificationError = void 0;\nconst utils_1 = require(\"@aws-amplify/core/internals/utils\");\nclass PushNotificationError extends utils_1.AmplifyError {\n constructor(params) {\n super(params);\n // Hack for making the custom error class work when transpiled to es5\n // TODO: Delete the following 2 lines after we change the build target to >= es2015\n this.constructor = PushNotificationError;\n Object.setPrototypeOf(this, PushNotificationError.prototype);\n }\n}\nexports.PushNotificationError = PushNotificationError;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,qBAAqB,GAAG,KAAK,CAAC,CAAC;AACvC,MAAM,OAAO,GAAG,OAAO,CAAC,mCAAmC,CAAC,CAAC;AAC7D,MAAM,qBAAqB,SAAS,OAAO,CAAC,YAAY,CAAC;AACzD,IAAI,WAAW,CAAC,MAAM,EAAE;AACxB,QAAQ,KAAK,CAAC,MAAM,CAAC,CAAC;AACtB;AACA;AACA,QAAQ,IAAI,CAAC,WAAW,GAAG,qBAAqB,CAAC;AACjD,QAAQ,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,qBAAqB,CAAC,SAAS,CAAC,CAAC;AACrE,KAAK;AACL,CAAC;AACD,OAAO,CAAC,qBAAqB,GAAG,qBAAqB;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"errorHelpers.js","sources":["../../../../../src/pushNotifications/errors/errorHelpers.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;AACA;;;AAEA,MAI2C,OAAA,GAAA,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C;AAFW,OAAA,CAAA,mBAAmB,GAE9B,mBAAA;;"}
1
+ {"version":3,"file":"errorHelpers.js","sources":["../../../../src/pushNotifications/errors/errorHelpers.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.assertIsInitialized = exports.assert = exports.PushNotificationValidationErrorCode = void 0;\nconst utils_1 = require(\"@aws-amplify/core/internals/utils\");\nconst initializationManager_1 = require(\"../utils/initializationManager\");\nconst PushNotificationError_1 = require(\"./PushNotificationError\");\nvar PushNotificationValidationErrorCode;\n(function (PushNotificationValidationErrorCode) {\n PushNotificationValidationErrorCode[\"NoAppId\"] = \"NoAppId\";\n PushNotificationValidationErrorCode[\"NoCredentials\"] = \"NoCredentials\";\n PushNotificationValidationErrorCode[\"NoRegion\"] = \"NoRegion\";\n PushNotificationValidationErrorCode[\"NotInitialized\"] = \"NotInitialized\";\n})(PushNotificationValidationErrorCode = exports.PushNotificationValidationErrorCode || (exports.PushNotificationValidationErrorCode = {}));\nconst pushNotificationValidationErrorMap = {\n [PushNotificationValidationErrorCode.NoAppId]: {\n message: 'Missing application id.',\n },\n [PushNotificationValidationErrorCode.NoCredentials]: {\n message: 'Credentials should not be empty.',\n },\n [PushNotificationValidationErrorCode.NoRegion]: {\n message: 'Missing region.',\n },\n [PushNotificationValidationErrorCode.NotInitialized]: {\n message: 'Push notification has not been initialized.',\n recoverySuggestion: 'Please make sure to first call `initializePushNotifications`.',\n },\n};\nexports.assert = (0, utils_1.createAssertionFunction)(pushNotificationValidationErrorMap, PushNotificationError_1.PushNotificationError);\nconst assertIsInitialized = () => {\n (0, exports.assert)((0, initializationManager_1.isInitialized)(), PushNotificationValidationErrorCode.NotInitialized);\n};\nexports.assertIsInitialized = assertIsInitialized;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,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AAE,kCAAkC,EAAE,uBAAuB,CAAC,qBAAqB,CAAC,CAAC;AACzI,MAAM,mBAAmB,GAAG,MAAM;AAClC,IAAI,IAAI,OAAO,CAAC,MAAM,EAAE,IAAI,uBAAuB,CAAC,aAAa,GAAG,EAAE,mCAAmC,CAAC,cAAc,CAAC,CAAC;AAC1H,CAAC,CAAC;AACF,OAAO,CAAC,mBAAmB,GAAG,mBAAmB;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../src/pushNotifications/errors/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;AACA;;;AAEA,IAAgE,uBAAA,GAAA,OAAA,CAAA,yBAAA,CAAA,CAAA;AAAvD,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,uBAAA,EAAA,EAAA,UAAA,EAAA,IAAA,EAAA,GAAA,EAAA,YAAA,EAAA,OAAA,uBAAA,CAAA,qBAAqB,CAAA,EAAA,EAAA,CAAA,CAAA;AAC9B,IAA6E,cAAA,GAAA,OAAA,CAAA,gBAAA,CAAA,CAAA;AAApE,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,QAAA,EAAA,EAAA,UAAA,EAAA,IAAA,EAAA,GAAA,EAAA,YAAA,EAAA,OAAA,cAAA,CAAA,MAAM,CAAA,EAAA,EAAA,CAAA,CAAA;AAAE,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,qCAAA,EAAA,EAAA,UAAA,EAAA,IAAA,EAAA,GAAA,EAAA,YAAA,EAAA,OAAA,cAAA,CAAA,mCAAmC,CAAA,EAAA,EAAA,CAAA;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/pushNotifications/errors/index.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.PushNotificationValidationErrorCode = exports.assert = exports.PushNotificationError = void 0;\nvar PushNotificationError_1 = require(\"./PushNotificationError\");\nObject.defineProperty(exports, \"PushNotificationError\", { enumerable: true, get: function () { return PushNotificationError_1.PushNotificationError; } });\nvar errorHelpers_1 = require(\"./errorHelpers\");\nObject.defineProperty(exports, \"assert\", { enumerable: true, get: function () { return errorHelpers_1.assert; } });\nObject.defineProperty(exports, \"PushNotificationValidationErrorCode\", { enumerable: true, get: function () { return errorHelpers_1.PushNotificationValidationErrorCode; } });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,mCAAmC,GAAG,OAAO,CAAC,MAAM,GAAG,OAAO,CAAC,qBAAqB,GAAG,KAAK,CAAC,CAAC;AACtG,IAAI,uBAAuB,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAC;AACjE,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,uBAAuB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,uBAAuB,CAAC,qBAAqB,CAAC,EAAE,EAAE,CAAC,CAAC;AAC1J,IAAI,cAAc,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;AAC/C,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,cAAc,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC,CAAC;AACnH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,qCAAqC,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,cAAc,CAAC,mCAAmC,CAAC,EAAE,EAAE,CAAC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/pushNotifications/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;AACA;;;AAEA,IA0B8B,UAAA,GAAA,OAA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,oCAAA,EAAA,EAAA,UAAA,EAAA,IAAA,EAAA,GAAA,EAAA,YAAA,EAAA,OAAA,UAAA,CAAA,kCAAkC,CAAA,EAAA,EAAA,CAAA,CAAA;AAGlC,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,iBAAA,EAAA,EAAA,UAAA,EAAA,IAAA,EAAA,GAAA,EAAA,YAAA,EAAA,OAAA,UAAA,CAAA,eAAe,CAAA,EAAA,EAAA,CAAA,CAAA;AAGf,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,oBAAA,EAAA,EAAA,UAAA,EAAA,IAAA,EAAA,GAAA,EAAA,YAAA,EAAA,OAAA,UAAA,CAAA,kBAAkB,CAAA,EAAA,EAAA,CAAA,CAAA;AAElB,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,eAAA,EAAA,EAAA,UAAA,EAAA,IAAA,EAAA,GAAA,EAAA,YAAA,EAAA,OAAA,UAAA,CAAA,aAAa,CAAA,EAAA,EAAA,CAAA,CAAA;AAId,IAAiD,QAAA,GAAA,OAAA,CAAA,UAAA,CAAA,CAAA;AAAxC,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,uBAAA,EAAA,EAAA,UAAA,EAAA,IAAA,EAAA,GAAA,EAAA,YAAA,EAAA,OAAA,QAAA,CAAA,qBAAqB,CAAA,EAAA,EAAA,CAAA;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/pushNotifications/index.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.PushNotificationError = exports.setBadgeCount = exports.requestPermissions = exports.onTokenReceived = exports.onNotificationReceivedInForeground = exports.onNotificationReceivedInBackground = exports.onNotificationOpened = exports.initializePushNotifications = exports.identifyUser = exports.getPermissionStatus = exports.getLaunchNotification = exports.getBadgeCount = void 0;\nvar pinpoint_1 = require(\"./providers/pinpoint\");\nObject.defineProperty(exports, \"getBadgeCount\", { enumerable: true, get: function () { return pinpoint_1.getBadgeCount; } });\nObject.defineProperty(exports, \"getLaunchNotification\", { enumerable: true, get: function () { return pinpoint_1.getLaunchNotification; } });\nObject.defineProperty(exports, \"getPermissionStatus\", { enumerable: true, get: function () { return pinpoint_1.getPermissionStatus; } });\nObject.defineProperty(exports, \"identifyUser\", { enumerable: true, get: function () { return pinpoint_1.identifyUser; } });\nObject.defineProperty(exports, \"initializePushNotifications\", { enumerable: true, get: function () { return pinpoint_1.initializePushNotifications; } });\nObject.defineProperty(exports, \"onNotificationOpened\", { enumerable: true, get: function () { return pinpoint_1.onNotificationOpened; } });\nObject.defineProperty(exports, \"onNotificationReceivedInBackground\", { enumerable: true, get: function () { return pinpoint_1.onNotificationReceivedInBackground; } });\nObject.defineProperty(exports, \"onNotificationReceivedInForeground\", { enumerable: true, get: function () { return pinpoint_1.onNotificationReceivedInForeground; } });\nObject.defineProperty(exports, \"onTokenReceived\", { enumerable: true, get: function () { return pinpoint_1.onTokenReceived; } });\nObject.defineProperty(exports, \"requestPermissions\", { enumerable: true, get: function () { return pinpoint_1.requestPermissions; } });\nObject.defineProperty(exports, \"setBadgeCount\", { enumerable: true, get: function () { return pinpoint_1.setBadgeCount; } });\nvar errors_1 = require(\"./errors\");\nObject.defineProperty(exports, \"PushNotificationError\", { enumerable: true, get: function () { return errors_1.PushNotificationError; } });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,qBAAqB,GAAG,OAAO,CAAC,aAAa,GAAG,OAAO,CAAC,kBAAkB,GAAG,OAAO,CAAC,eAAe,GAAG,OAAO,CAAC,kCAAkC,GAAG,OAAO,CAAC,kCAAkC,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,2BAA2B,GAAG,OAAO,CAAC,YAAY,GAAG,OAAO,C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AAG,EAAE,YAAY,EAAE,OAAO,UAAU,CAAC,kCAAkC,CAAC,EAAE,EAAE,CAAC,CAAC;AACvK,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,oCAAoC,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,UAAU,CAAC,kCAAkC,CAAC,EAAE,EAAE,CAAC,CAAC;AACvK,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,iBAAiB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,UAAU,CAAC,eAAe,CAAC,EAAE,EAAE,CAAC,CAAC;AACjI,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,oBAAoB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,UAAU,CAAC,kBAAkB,CAAC,EAAE,EAAE,CAAC,CAAC;AACvI,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,eAAe,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,UAAU,CAAC,aAAa,CAAC,EAAE,EAAE,CAAC,CAAC;AAC7H,IAAI,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AACnC,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,uBAAuB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,QAAQ,CAAC,qBAAqB,CAAC,EAAE,EAAE,CAAC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"getBadgeCount.js","sources":["../../../../../../../src/pushNotifications/providers/pinpoint/apis/getBadgeCount.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;AACA;;;AAEA,MAA8E,OAAA,GAAA,OAAA,CAAA,mCAAA,CAAA,CAAA;AAG9E;;;;;;;;;;;AAWG;AACI,MAAM,aAAa,GAAkB,YAAW;IACtD,MAAM,IAAI,OAAyB,CAAA,yBAAA,EAAE,CAAC;AACvC,CAAC,CAAC;AAFW,OAAA,CAAA,aAAa,GAExB,aAAA;;"}
1
+ {"version":3,"file":"getBadgeCount.js","sources":["../../../../../../src/pushNotifications/providers/pinpoint/apis/getBadgeCount.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getBadgeCount = void 0;\nconst utils_1 = require(\"@aws-amplify/core/internals/utils\");\n/**\n * Returns the current badge count (the number next to your app's icon). This function is safe to call (but will be\n * ignored) even when your React Native app is running on platforms where badges are not supported.\n *\n * @throws platform: {@link PlatformNotSupportedError} - Thrown if called against an unsupported platform. Currently,\n * only React Native is supported by this API.\n * @returns A promise that resolves to a number representing the current count displayed on the app badge.\n * @example\n * ```ts\n * const badgeCount = await getBadgeCount();\n * ```\n */\nconst getBadgeCount = async () => {\n throw new utils_1.PlatformNotSupportedError();\n};\nexports.getBadgeCount = getBadgeCount;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,aAAa,GAAG,KAAK,CAAC,CAAC;AAC/B,MAAM,OAAO,GAAG,OAAO,CAAC,mCAAmC,CAAC,CAAC;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,aAAa,GAAG,YAAY;AAClC,IAAI,MAAM,IAAI,OAAO,CAAC,yBAAyB,EAAE,CAAC;AAClD,CAAC,CAAC;AACF,OAAO,CAAC,aAAa,GAAG,aAAa;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"getBadgeCount.native.js","sources":["../../../../../../../src/pushNotifications/providers/pinpoint/apis/getBadgeCount.native.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;AACA;;;AAEA,MAAwE,cAAA,GAAA,OAAA,CAAA,2BAAA,CAAA,CAAA;AACxE,MAAmE,cAAA,GAAA,OAAA,CAAA,8BAAA,CAAA,CAAA;AAGnE,MAAM,EAAE,aAAa,EAAE,mBAAmB,EAAE,GAAG,IAAA,cAA2B,CAAA,2BAAA,GAAE,CAAC;AAEtE,MAAM,aAAa,GAAkB,YAAW;IACtD,IAAA,cAAA,CAAA,mBAAmB,GAAE,CAAC;IACtB,OAAO,mBAAmB,EAAE,CAAC;AAC9B,CAAC,CAAC;AAHW,OAAA,CAAA,aAAa,GAGxB,aAAA;;"}
1
+ {"version":3,"file":"getBadgeCount.native.js","sources":["../../../../../../src/pushNotifications/providers/pinpoint/apis/getBadgeCount.native.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getBadgeCount = void 0;\nconst react_native_1 = require(\"@aws-amplify/react-native\");\nconst errorHelpers_1 = require(\"../../../errors/errorHelpers\");\nconst { getBadgeCount: getBadgeCountNative } = (0, react_native_1.loadAmplifyPushNotification)();\nconst getBadgeCount = async () => {\n (0, errorHelpers_1.assertIsInitialized)();\n return getBadgeCountNative();\n};\nexports.getBadgeCount = getBadgeCount;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,aAAa,GAAG,KAAK,CAAC,CAAC;AAC/B,MAAM,cAAc,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAC;AAC5D,MAAM,cAAc,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAAC;AAC/D,MAAM,EAAE,aAAa,EAAE,mBAAmB,EAAE,GAAG,IAAI,cAAc,CAAC,2BAA2B,GAAG,CAAC;AACjG,MAAM,aAAa,GAAG,YAAY;AAClC,IAAI,IAAI,cAAc,CAAC,mBAAmB,GAAG,CAAC;AAC9C,IAAI,OAAO,mBAAmB,EAAE,CAAC;AACjC,CAAC,CAAC;AACF,OAAO,CAAC,aAAa,GAAG,aAAa;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"getLaunchNotification.js","sources":["../../../../../../../src/pushNotifications/providers/pinpoint/apis/getLaunchNotification.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;AACA;;;AAEA,MAA8E,OAAA,GAAA,OAAA,CAAA,mCAAA,CAAA,CAAA;AAI9E;;;;;;;;;;;;;;;AAeG;AACI,MAAM,qBAAqB,GAA0B,YAAW;IACtE,MAAM,IAAI,OAAyB,CAAA,yBAAA,EAAE,CAAC;AACvC,CAAC,CAAC;AAFW,OAAA,CAAA,qBAAqB,GAEhC,qBAAA;;"}
1
+ {"version":3,"file":"getLaunchNotification.js","sources":["../../../../../../src/pushNotifications/providers/pinpoint/apis/getLaunchNotification.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getLaunchNotification = void 0;\nconst utils_1 = require(\"@aws-amplify/core/internals/utils\");\n/**\n * Returns the notification which launched your app from a terminated state. The launch notification is consumed by\n * calls to this function and will yield a null result if:\n * 1. It is more than once (i.e. subsequent calls will be null)\n * 2. Another notification was opened while your app was running (either in foreground or background)\n * 3. Your app was brought back to the foreground by some other means (e.g. user tapped the app icon)\n *\n * @throws platform: {@link PlatformNotSupportedError} - Thrown if called against an unsupported platform. Currently,\n * only React Native is supported by this API.\n * @returns {Promise<GetLaunchNotificationOutput>} - a promise resolving to {@link PushNotificationMessage} if there is\n * a launch notification and `null` otherwise.\n * @example\n * ```ts\n * const launchNotification = await getLaunchNotification();\n * ```\n */\nconst getLaunchNotification = async () => {\n throw new utils_1.PlatformNotSupportedError();\n};\nexports.getLaunchNotification = getLaunchNotification;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,qBAAqB,GAAG,KAAK,CAAC,CAAC;AACvC,MAAM,OAAO,GAAG,OAAO,CAAC,mCAAmC,CAAC,CAAC;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,qBAAqB,GAAG,YAAY;AAC1C,IAAI,MAAM,IAAI,OAAO,CAAC,yBAAyB,EAAE,CAAC;AAClD,CAAC,CAAC;AACF,OAAO,CAAC,qBAAqB,GAAG,qBAAqB;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"getLaunchNotification.native.js","sources":["../../../../../../../src/pushNotifications/providers/pinpoint/apis/getLaunchNotification.native.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;AACA;;;AAEA,MAAwE,cAAA,GAAA,OAAA,CAAA,2BAAA,CAAA,CAAA;AACxE,MAAmE,cAAA,GAAA,OAAA,CAAA,8BAAA,CAAA,CAAA;AAGnE,MAAM,EAAE,qBAAqB,EAAE,2BAA2B,EAAE,GAC3D,IAAA,cAA2B,CAAA,2BAAA,GAAE,CAAC;AAExB,MAAM,qBAAqB,GAA0B,YAAW;IACtE,IAAA,cAAA,CAAA,mBAAmB,GAAE,CAAC;IACtB,OAAO,2BAA2B,EAAE,CAAC;AACtC,CAAC,CAAC;AAHW,OAAA,CAAA,qBAAqB,GAGhC,qBAAA;;"}
1
+ {"version":3,"file":"getLaunchNotification.native.js","sources":["../../../../../../src/pushNotifications/providers/pinpoint/apis/getLaunchNotification.native.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getLaunchNotification = void 0;\nconst react_native_1 = require(\"@aws-amplify/react-native\");\nconst errorHelpers_1 = require(\"../../../errors/errorHelpers\");\nconst { getLaunchNotification: getLaunchNotificationNative } = (0, react_native_1.loadAmplifyPushNotification)();\nconst getLaunchNotification = async () => {\n (0, errorHelpers_1.assertIsInitialized)();\n return getLaunchNotificationNative();\n};\nexports.getLaunchNotification = getLaunchNotification;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,qBAAqB,GAAG,KAAK,CAAC,CAAC;AACvC,MAAM,cAAc,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAC;AAC5D,MAAM,cAAc,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAAC;AAC/D,MAAM,EAAE,qBAAqB,EAAE,2BAA2B,EAAE,GAAG,IAAI,cAAc,CAAC,2BAA2B,GAAG,CAAC;AACjH,MAAM,qBAAqB,GAAG,YAAY;AAC1C,IAAI,IAAI,cAAc,CAAC,mBAAmB,GAAG,CAAC;AAC9C,IAAI,OAAO,2BAA2B,EAAE,CAAC;AACzC,CAAC,CAAC;AACF,OAAO,CAAC,qBAAqB,GAAG,qBAAqB;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"getPermissionStatus.js","sources":["../../../../../../../src/pushNotifications/providers/pinpoint/apis/getPermissionStatus.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;AACA;;;AAEA,MAA8E,OAAA,GAAA,OAAA,CAAA,mCAAA,CAAA,CAAA;AAG9E;;;;;;;;;;;;;;;;;;;;;;;;AAwBG;AACI,MAAM,mBAAmB,GAAwB,YAAW;IAClE,MAAM,IAAI,OAAyB,CAAA,yBAAA,EAAE,CAAC;AACvC,CAAC,CAAC;AAFW,OAAA,CAAA,mBAAmB,GAE9B,mBAAA;;"}
1
+ {"version":3,"file":"getPermissionStatus.js","sources":["../../../../../../src/pushNotifications/providers/pinpoint/apis/getPermissionStatus.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getPermissionStatus = void 0;\nconst utils_1 = require(\"@aws-amplify/core/internals/utils\");\n/**\n * Returns a string representing the current status of user permissions to display push notifications. The possible\n * statuses are as follows:\n *\n * * `'shouldRequest'` - No permissions have been requested yet. It is idiomatic at this time to simply request for\n * permissions from the user.\n *\n * * `'shouldExplainThenRequest'` - It is recommended at this time to provide some context or rationale to the user\n * explaining why you want to send them push notifications before requesting for permissions.\n *\n * * `'granted'` - Permissions have been granted by the user. No further actions are needed and their app is ready to\n * display notifications.\n *\n * * `'denied'` - Permissions have been denied by the user. Further attempts to request permissions will no longer\n * trigger a permission dialog. Your app should now either degrade gracefully or prompt your user to grant the\n * permissions needed in their device settings.\n *\n * @throws platform: {@link PlatformNotSupportedError} - Thrown if called against an unsupported platform. Currently,\n * only React Native is supported by this API.\n * @return {Promise<GetPermissionStatusOutput>} a promise resolving to a string representing the current status of user\n * selected notification permissions.\n * @example\n * ```ts\n * const permissionStatus = await getPermissionStatus();\n */\nconst getPermissionStatus = async () => {\n throw new utils_1.PlatformNotSupportedError();\n};\nexports.getPermissionStatus = getPermissionStatus;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,mBAAmB,GAAG,KAAK,CAAC,CAAC;AACrC,MAAM,OAAO,GAAG,OAAO,CAAC,mCAAmC,CAAC,CAAC;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,mBAAmB,GAAG,YAAY;AACxC,IAAI,MAAM,IAAI,OAAO,CAAC,yBAAyB,EAAE,CAAC;AAClD,CAAC,CAAC;AACF,OAAO,CAAC,mBAAmB,GAAG,mBAAmB;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"getPermissionStatus.native.js","sources":["../../../../../../../src/pushNotifications/providers/pinpoint/apis/getPermissionStatus.native.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;AACA;;;AAEA,MAAwE,cAAA,GAAA,OAAA,CAAA,2BAAA,CAAA,CAAA;AACxE,MAAmE,cAAA,GAAA,OAAA,CAAA,8BAAA,CAAA,CAAA;AAGnE,MAAM,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,GACvD,IAAA,cAA2B,CAAA,2BAAA,GAAE,CAAC;AAExB,MAAM,mBAAmB,GAAwB,YAAW;IAClE,IAAA,cAAA,CAAA,mBAAmB,GAAE,CAAC;IACtB,OAAO,yBAAyB,EAAE,CAAC;AACpC,CAAC,CAAC;AAHW,OAAA,CAAA,mBAAmB,GAG9B,mBAAA;;"}
1
+ {"version":3,"file":"getPermissionStatus.native.js","sources":["../../../../../../src/pushNotifications/providers/pinpoint/apis/getPermissionStatus.native.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getPermissionStatus = void 0;\nconst react_native_1 = require(\"@aws-amplify/react-native\");\nconst errorHelpers_1 = require(\"../../../errors/errorHelpers\");\nconst { getPermissionStatus: getPermissionStatusNative } = (0, react_native_1.loadAmplifyPushNotification)();\nconst getPermissionStatus = async () => {\n (0, errorHelpers_1.assertIsInitialized)();\n return getPermissionStatusNative();\n};\nexports.getPermissionStatus = getPermissionStatus;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,mBAAmB,GAAG,KAAK,CAAC,CAAC;AACrC,MAAM,cAAc,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAC;AAC5D,MAAM,cAAc,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAAC;AAC/D,MAAM,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,GAAG,IAAI,cAAc,CAAC,2BAA2B,GAAG,CAAC;AAC7G,MAAM,mBAAmB,GAAG,YAAY;AACxC,IAAI,IAAI,cAAc,CAAC,mBAAmB,GAAG,CAAC;AAC9C,IAAI,OAAO,yBAAyB,EAAE,CAAC;AACvC,CAAC,CAAC;AACF,OAAO,CAAC,mBAAmB,GAAG,mBAAmB;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"identifyUser.js","sources":["../../../../../../../src/pushNotifications/providers/pinpoint/apis/identifyUser.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;AACA;;;AAGA,MAA8E,OAAA,GAAA,OAAA,CAAA,mCAAA,CAAA,CAAA;AAI9E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkDG;AACI,MAAM,YAAY,GAAiB,YAAW;IACpD,MAAM,IAAI,OAAyB,CAAA,yBAAA,EAAE,CAAC;AACvC,CAAC,CAAC;AAFW,OAAA,CAAA,YAAY,GAEvB,YAAA;;"}
1
+ {"version":3,"file":"identifyUser.js","sources":["../../../../../../src/pushNotifications/providers/pinpoint/apis/identifyUser.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.identifyUser = void 0;\nconst utils_1 = require(\"@aws-amplify/core/internals/utils\");\n/**\n * Sends information about a user to Pinpoint. Sending user information allows you to associate a user to their user\n * profile and activities or actions in your application. Activity can be tracked across devices & platforms by using\n * the same `userId`.\n *\n * @param {IdentifyUserInput} input The input object used to construct requests sent to Pinpoint's UpdateEndpoint\n * API.\n * @throws service: {@link UpdateEndpointException} - Thrown when the underlying Pinpoint service returns an error.\n * @throws validation: {@link PushNotificationValidationErrorCode} - Thrown when the provided parameters or library\n * configuration is incorrect.\n * @throws platform: {@link PlatformNotSupportedError} - Thrown if called against an unsupported platform. Currently,\n * only React Native is supported by this API.\n * @returns A promise that will resolve when the operation is complete.\n * @example\n * ```ts\n * // Identify a user with Pinpoint\n * await identifyUser({\n * userId,\n * userProfile: {\n * email: 'userEmail@example.com'\n * customProperties: {\n * phoneNumber: ['555-555-5555'],\n * },\n * }\n * });\n * ```\n *\n * @example\n * ```ts\n * // Identify a user with Pinpoint specific options\n * await identifyUser({\n * userId,\n * userProfile: {\n * email: 'userEmail@example.com'\n * customProperties: {\n * phoneNumber: ['555-555-5555'],\n * },\n * demographic: {\n * platform: 'ios',\n * timezone: 'America/Los_Angeles'\n * }\n * },\n * options: {\n * address: 'device-address',\n * optOut: 'NONE',\n * userAttributes: {\n * interests: ['food']\n * },\n * },\n * });\n */\nconst identifyUser = async () => {\n throw new utils_1.PlatformNotSupportedError();\n};\nexports.identifyUser = identifyUser;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,YAAY,GAAG,KAAK,CAAC,CAAC;AAC9B,MAAM,OAAO,GAAG,OAAO,CAAC,mCAAmC,CAAC,CAAC;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,YAAY,GAAG,YAAY;AACjC,IAAI,MAAM,IAAI,OAAO,CAAC,yBAAyB,EAAE,CAAC;AAClD,CAAC,CAAC;AACF,OAAO,CAAC,YAAY,GAAG,YAAY;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"identifyUser.native.js","sources":["../../../../../../../src/pushNotifications/providers/pinpoint/apis/identifyUser.native.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;AACA;;;AAEA,MAA2E,OAAA,GAAA,OAAA,CAAA,mCAAA,CAAA,CAAA;AAC3E,MAAgF,UAAA,GAAA,OAAA,CAAA,gDAAA,CAAA,CAAA;AAChF,MAAmE,cAAA,GAAA,OAAA,CAAA,8BAAA,CAAA,CAAA;AACnE,MAGwB,OAAA,GAAA,OAAA,CAAA,gBAAA,CAAA,CAAA;AACxB,MAAyD,OAAA,GAAA,OAAA,CAAA,UAAA,CAAA,CAAA;AAGlD,MAAM,YAAY,GAAiB,OAAO,EAChD,MAAM,EACN,WAAW,EACX,OAAO,GACP,KAAI;IACJ,IAAA,cAAA,CAAA,mBAAmB,GAAE,CAAC;IACtB,MAAM,EAAE,WAAW,EAAE,UAAU,EAAE,GAAG,MAAM,IAAA,OAAkB,CAAA,kBAAA,GAAE,CAAC;IAC/D,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,IAAA,OAAa,CAAA,aAAA,GAAE,CAAC;IAC1C,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,GAAG,OAAO,IAAI,EAAE,CAAC;AAC1D,IAAA,IAAA,yBAAc,EAAC;QACd,OAAO;QACP,WAAW,EAAE,IAAA,OAAA,CAAA,cAAc,GAAE;QAC7B,MAAM;QACN,KAAK;AACL,QAAA,QAAQ,EAAE,kBAAkB;QAC5B,WAAW;QACX,UAAU;QACV,MAAM;QACN,cAAc;QACd,MAAM;QACN,WAAW;AACX,QAAA,cAAc,EAAE,IAAA,OAAA,CAAA,kCAAkC,EACjD,OAAsB,CAAA,sBAAA,CAAC,YAAY,CACnC;AACD,KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAzBW,OAAA,CAAA,YAAY,GAyBvB,YAAA;;"}
1
+ {"version":3,"file":"identifyUser.native.js","sources":["../../../../../../src/pushNotifications/providers/pinpoint/apis/identifyUser.native.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.identifyUser = void 0;\nconst utils_1 = require(\"@aws-amplify/core/internals/utils\");\nconst pinpoint_1 = require(\"@aws-amplify/core/internals/providers/pinpoint\");\nconst errorHelpers_1 = require(\"../../../errors/errorHelpers\");\nconst utils_2 = require(\"../../../utils\");\nconst utils_3 = require(\"../utils\");\nconst identifyUser = async ({ userId, userProfile, options, }) => {\n (0, errorHelpers_1.assertIsInitialized)();\n const { credentials, identityId } = await (0, utils_2.resolveCredentials)();\n const { appId, region } = (0, utils_3.resolveConfig)();\n const { address, optOut, userAttributes } = options ?? {};\n (0, pinpoint_1.updateEndpoint)({\n address,\n channelType: (0, utils_3.getChannelType)(),\n optOut,\n appId,\n category: 'PushNotification',\n credentials,\n identityId,\n region,\n userAttributes,\n userId,\n userProfile,\n userAgentValue: (0, utils_2.getPushNotificationUserAgentString)(utils_1.PushNotificationAction.IdentifyUser),\n });\n};\nexports.identifyUser = identifyUser;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,YAAY,GAAG,KAAK,CAAC,CAAC;AAC9B,MAAM,OAAO,GAAG,OAAO,CAAC,mCAAmC,CAAC,CAAC;AAC7D,MAAM,UAAU,GAAG,OAAO,CAAC,gDAAgD,CAAC,CAAC;AAC7E,MAAM,cAAc,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAAC;AAC/D,MAAM,OAAO,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;AAC1C,MAAM,OAAO,GAAG,OAAO,CAAC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OAAA,EAAA,oCAAA,EAAA,EAAA,UAAA,EAAA,IAAA,EAAA,GAAA,EAAA,YAAA,EAAA,OAAA,oCAAA,CAAA,kCAAkC,CAAA,EAAA,EAAA,CAAA,CAAA;AAC3C,IAA0F,oCAAA,GAAA,OAAA,CAAA,sCAAA,CAAA,CAAA;AAAjF,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,oCAAA,EAAA,EAAA,UAAA,EAAA,IAAA,EAAA,GAAA,EAAA,YAAA,EAAA,OAAA,oCAAA,CAAA,kCAAkC,CAAA,EAAA,EAAA,CAAA,CAAA;AAC3C,IAAoD,iBAAA,GAAA,OAAA,CAAA,mBAAA,CAAA,CAAA;AAA3C,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,iBAAA,EAAA,EAAA,UAAA,EAAA,IAAA,EAAA,GAAA,EAAA,YAAA,EAAA,OAAA,iBAAA,CAAA,eAAe,CAAA,EAAA,EAAA,CAAA,CAAA;AACxB,IAA0D,oBAAA,GAAA,OAAA,CAAA,sBAAA,CAAA,CAAA;AAAjD,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,oBAAA,EAAA,EAAA,UAAA,EAAA,IAAA,EAAA,GAAA,EAAA,YAAA,EAAA,OAAA,oBAAA,CAAA,kBAAkB,CAAA,EAAA,EAAA,CAAA,CAAA;AAC3B,IAAgD,eAAA,GAAA,OAAA,CAAA,iBAAA,CAAA,CAAA;AAAvC,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,eAAA,EAAA,EAAA,UAAA,EAAA,IAAA,EAAA,GAAA,EAAA,YAAA,EAAA,OAAA,eAAA,CAAA,aAAa,CAAA,EAAA,EAAA,CAAA;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../../../src/pushNotifications/providers/pinpoint/apis/index.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.setBadgeCount = exports.requestPermissions = exports.onTokenReceived = exports.onNotificationReceivedInForeground = exports.onNotificationReceivedInBackground = exports.onNotificationOpened = exports.initializePushNotifications = exports.identifyUser = exports.getPermissionStatus = exports.getLaunchNotification = exports.getBadgeCount = void 0;\nvar getBadgeCount_1 = require(\"./getBadgeCount\");\nObject.defineProperty(exports, \"getBadgeCount\", { enumerable: true, get: function () { return getBadgeCount_1.getBadgeCount; } });\nvar getLaunchNotification_1 = require(\"./getLaunchNotification\");\nObject.defineProperty(exports, \"getLaunchNotification\", { enumerable: true, get: function () { return getLaunchNotification_1.getLaunchNotification; } });\nvar getPermissionStatus_1 = require(\"./getPermissionStatus\");\nObject.defineProperty(exports, \"getPermissionStatus\", { enumerable: true, get: function () { return getPermissionStatus_1.getPermissionStatus; } });\nvar identifyUser_1 = require(\"./identifyUser\");\nObject.defineProperty(exports, \"identifyUser\", { enumerable: true, get: function () { return identifyUser_1.identifyUser; } });\nvar initializePushNotifications_1 = require(\"./initializePushNotifications\");\nObject.defineProperty(exports, \"initializePushNotifications\", { enumerable: true, get: function () { return initializePushNotifications_1.initializePushNotifications; } });\nvar onNotificationOpened_1 = require(\"./onNotificationOpened\");\nObject.defineProperty(exports, \"onNotificationOpened\", { enumerable: true, get: function () { return onNotificationOpened_1.onNotificationOpened; } });\nvar onNotificationReceivedInBackground_1 = require(\"./onNotificationReceivedInBackground\");\nObject.defineProperty(exports, \"onNotificationReceivedInBackground\", { enumerable: true, get: function () { return onNotificationReceivedInBackground_1.onNotificationReceivedInBackground; } });\nvar onNotificationReceivedInForeground_1 = require(\"./onNotificationReceivedInForeground\");\nObject.defineProperty(exports, \"onNotificationReceivedInForeground\", { enumerable: true, get: function () { return onNotificationReceivedInForeground_1.onNotificationReceivedInForeground; } });\nvar onTokenReceived_1 = require(\"./onTokenReceived\");\nObject.defineProperty(exports, \"onTokenReceived\", { enumerable: true, get: function () { return onTokenReceived_1.onTokenReceived; } });\nvar requestPermissions_1 = require(\"./requestPermissions\");\nObject.defineProperty(exports, \"requestPermissions\", { enumerable: true, get: function () { return requestPermissions_1.requestPermissions; } });\nvar setBadgeCount_1 = require(\"./setBadgeCount\");\nObject.defineProperty(exports, \"setBadgeCount\", { enumerable: true, get: function () { return setBadgeCount_1.setBadgeCount; } });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,aAAa,GAAG,OAAO,CAAC,kBAAkB,GAAG,OAAO,CAAC,eAAe,GAAG,OAAO,CAAC,kCAAkC,GAAG,OAAO,CAAC,kCAAkC,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,2BAA2B,GAAG,OAAO,CAAC,YAAY,GAAG,OAAO,CAAC,mBAAmB,GAAG,OAAO,CAAC,qBAAqB,GAAG,OAAO,CAAC,aAAa,GAAG,KAAK,CAAC,CAAC;AAClW,IAAI,eAAe,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AACjD,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,eAAe,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,eAAe,CAAC,aAAa,CAAC,EAAE,EAAE,CAAC,CAAC;AAClI,IAAI,uBAAuB,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAC;AACjE,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,uBAAuB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,uBAAuB,CAAC,qBAAqB,CAAC,EAAE,EAAE,CAAC,CAAC;AAC1J,IAAI,qBAAqB,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC;AAC7D,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,qBAAqB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,qBAAqB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AmB,CAAC,CAAC;AACrD,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,iBAAiB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,iBAAiB,CAAC,eAAe,CAAC,EAAE,EAAE,CAAC,CAAC;AACxI,IAAI,oBAAoB,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;AAC3D,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,oBAAoB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,oBAAoB,CAAC,kBAAkB,CAAC,EAAE,EAAE,CAAC,CAAC;AACjJ,IAAI,eAAe,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AACjD,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,eAAe,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,eAAe,CAAC,aAAa,CAAC,EAAE,EAAE,CAAC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"initializePushNotifications.js","sources":["../../../../../../../src/pushNotifications/providers/pinpoint/apis/initializePushNotifications.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;AACA;;;AAEA,MAA8E,OAAA,GAAA,OAAA,CAAA,mCAAA,CAAA,CAAA;AAG9E;;;;;;;;;;;;;;AAcG;AACI,MAAM,2BAA2B,GAAgC,MAAK;IAC5E,MAAM,IAAI,OAAyB,CAAA,yBAAA,EAAE,CAAC;AACvC,CAAC,CAAC;AAFW,OAAA,CAAA,2BAA2B,GAEtC,2BAAA;;"}
1
+ {"version":3,"file":"initializePushNotifications.js","sources":["../../../../../../src/pushNotifications/providers/pinpoint/apis/initializePushNotifications.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.initializePushNotifications = void 0;\nconst utils_1 = require(\"@aws-amplify/core/internals/utils\");\n/**\n * Initialize and set up the push notification category. The category must be first initialized before all other\n * functionalities become available.\n *\n * @throws platform: {@link PlatformNotSupportedError} - Thrown if called against an unsupported platform. Currently,\n * only React Native is supported by this API.\n * @remarks\n * It is recommended that this be called as early in your app as possible at the root of your application to allow\n * background processing of notifications.\n * @example\n * ```ts\n * Amplify.configure(config);\n * initializePushNotifications();\n * ```\n */\nconst initializePushNotifications = () => {\n throw new utils_1.PlatformNotSupportedError();\n};\nexports.initializePushNotifications = initializePushNotifications;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,2BAA2B,GAAG,KAAK,CAAC,CAAC;AAC7C,MAAM,OAAO,GAAG,OAAO,CAAC,mCAAmC,CAAC,CAAC;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,2BAA2B,GAAG,MAAM;AAC1C,IAAI,MAAM,IAAI,OAAO,CAAC,yBAAyB,EAAE,CAAC;AAClD,CAAC,CAAC;AACF,OAAO,CAAC,2BAA2B,GAAG,2BAA2B;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"initializePushNotifications.native.js","sources":["../../../../../../../src/pushNotifications/providers/pinpoint/apis/initializePushNotifications.native.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;AACA;;;AAEA,MAAkD,MAAA,GAAA,OAAA,CAAA,mBAAA,CAAA,CAAA;AAClD,MAA2E,OAAA,GAAA,OAAA,CAAA,mCAAA,CAAA,CAAA;AAC3E,MAAgF,UAAA,GAAA,OAAA,CAAA,gDAAA,CAAA,CAAA;AAChF,MAAwE,cAAA,GAAA,OAAA,CAAA,2BAAA,CAAA,CAAA;AACxE,MAKoC,gBAAA,GAAA,OAAA,CAAA,4BAAA,CAAA,CAAA;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GAAG,IAAA,OAAa,CAAA,aAAA,GAAE,CAAC;IAC1C,MAAM,IAAA,yBAAc,EAAC;QACpB,OAAO;QACP,KAAK;AACL,QAAA,QAAQ,EAAE,kBAAkB;QAC5B,WAAW;QACX,MAAM;QACN,WAAW,EAAE,IAAA,OAAA,CAAA,cAAc,GAAE;QAC7B,UAAU;AACV,QAAA,cAAc,EAAE,IAAA,OAAA,CAAA,kCAAkC,EACjD,OAAsB,CAAA,sBAAA,CAAC,2BAA2B,CAClD;AACD,KAAA,CAAC,CAAC;AACJ,CAAC;;"}
1
+ {"version":3,"file":"initializePushNotifications.native.js","sources":["../../../../../../src/pushNotifications/providers/pinpoint/apis/initializePushNotifications.native.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.initializePushNotifications = void 0;\nconst core_1 = require(\"@aws-amplify/core\");\nconst utils_1 = require(\"@aws-amplify/core/internals/utils\");\nconst pinpoint_1 = require(\"@aws-amplify/core/internals/providers/pinpoint\");\nconst react_native_1 = require(\"@aws-amplify/react-native\");\nconst eventListeners_1 = require(\"../../../../eventListeners\");\nconst utils_2 = require(\"../../../utils\");\nconst utils_3 = require(\"../utils\");\nconst { addMessageEventListener, addTokenEventListener, completeNotification, getConstants, registerHeadlessTask, } = (0, react_native_1.loadAmplifyPushNotification)();\nconst logger = new core_1.ConsoleLogger('Notifications.PushNotification');\nconst BACKGROUND_TASK_TIMEOUT = 25; // seconds\nconst initializePushNotifications = () => {\n if ((0, utils_2.isInitialized)()) {\n logger.info('Push notifications have already been enabled');\n return;\n }\n addNativeListeners();\n addAnalyticsListeners();\n (0, utils_2.initialize)();\n};\nexports.initializePushNotifications = initializePushNotifications;\nconst addNativeListeners = () => {\n let launchNotificationOpenedListener;\n const { NativeEvent, NativeHeadlessTaskKey } = getConstants();\n const { BACKGROUND_MESSAGE_RECEIVED, FOREGROUND_MESSAGE_RECEIVED, LAUNCH_NOTIFICATION_OPENED, NOTIFICATION_OPENED, TOKEN_RECEIVED, } = NativeEvent;\n // on platforms that can handle headless tasks, register one to broadcast background message received to\n // library listeners\n if (NativeHeadlessTaskKey) {\n registerHeadlessTask(async (message) => {\n // keep headless task running until handlers have completed their work\n await (0, eventListeners_1.notifyEventListenersAndAwaitHandlers)('backgroundMessageReceived', message);\n });\n }\n else if (BACKGROUND_MESSAGE_RECEIVED) {\n // on platforms that can't handle headless tasks, listen for native background message received event and\n // broadcast to library listeners\n addMessageEventListener(BACKGROUND_MESSAGE_RECEIVED, async (message, completionHandlerId) => {\n // keep background task running until handlers have completed their work\n try {\n await Promise.race([\n (0, eventListeners_1.notifyEventListenersAndAwaitHandlers)('backgroundMessageReceived', message),\n // background tasks will get suspended and all future tasks be deprioritized by the OS if they run for\n // more than 30 seconds so we reject with a error in a shorter amount of time to prevent this from\n // happening\n new Promise((_, reject) => {\n setTimeout(() => reject(`onNotificationReceivedInBackground handlers should complete their work within ${BACKGROUND_TASK_TIMEOUT} seconds, but they did not.`), BACKGROUND_TASK_TIMEOUT * 1000);\n }),\n ]);\n }\n catch (err) {\n logger.error(err);\n }\n finally {\n // notify native module that handlers have completed their work (or timed out)\n if (completionHandlerId) {\n completeNotification(completionHandlerId);\n }\n }\n });\n }\n addMessageEventListener(\n // listen for native foreground message received event and broadcast to library listeners\n FOREGROUND_MESSAGE_RECEIVED, message => {\n (0, eventListeners_1.notifyEventListeners)('foregroundMessageReceived', message);\n });\n launchNotificationOpenedListener = LAUNCH_NOTIFICATION_OPENED\n ? addMessageEventListener(\n // listen for native notification opened app (user tapped on notification, opening the app from quit -\n // not background - state) event. This is broadcasted to an internal listener only as it is not intended\n // for use otherwise as it produces inconsistent results when used within React Native app context\n LAUNCH_NOTIFICATION_OPENED, message => {\n (0, eventListeners_1.notifyEventListeners)('launchNotificationOpened', message);\n // once we are done with it we can remove the listener\n launchNotificationOpenedListener?.remove();\n })\n : null;\n addMessageEventListener(\n // listen for native notification opened (user tapped on notification, opening the app from background -\n // not quit - state) event and broadcast to library listeners\n NOTIFICATION_OPENED, message => {\n (0, eventListeners_1.notifyEventListeners)('notificationOpened', message);\n // if we are in this state, we no longer need the listener as the app was launched via some other means\n launchNotificationOpenedListener?.remove();\n });\n addTokenEventListener(\n // listen for native new token event, automatically re-register device with provider using new token and\n // broadcast to library listeners\n TOKEN_RECEIVED, async (token) => {\n // avoid a race condition where two endpoints are created with the same token on a fresh install\n if ((0, utils_2.getToken)() === token) {\n return;\n }\n (0, utils_2.setToken)(token);\n (0, eventListeners_1.notifyEventListeners)('tokenReceived', token);\n try {\n await registerDevice(token);\n }\n catch (err) {\n logger.error('Failed to register device for push notifications', err);\n throw err;\n }\n });\n};\nconst addAnalyticsListeners = () => {\n let launchNotificationOpenedListenerRemover;\n // wire up default Pinpoint message event handling\n (0, eventListeners_1.addEventListener)('backgroundMessageReceived', (0, utils_3.createMessageEventRecorder)('received_background'));\n (0, eventListeners_1.addEventListener)('foregroundMessageReceived', (0, utils_3.createMessageEventRecorder)('received_foreground'));\n launchNotificationOpenedListenerRemover = (0, eventListeners_1.addEventListener)('launchNotificationOpened', (0, utils_3.createMessageEventRecorder)('opened_notification', \n // once we are done with it we can remove the listener\n launchNotificationOpenedListenerRemover?.remove));\n (0, eventListeners_1.addEventListener)('notificationOpened', (0, utils_3.createMessageEventRecorder)('opened_notification', \n // if we are in this state, we no longer need the listener as the app was launched via some other means\n launchNotificationOpenedListenerRemover?.remove));\n};\nconst registerDevice = async (address) => {\n const { credentials, identityId } = await (0, utils_2.resolveCredentials)();\n const { appId, region } = (0, utils_3.resolveConfig)();\n await (0, pinpoint_1.updateEndpoint)({\n address,\n appId,\n category: 'PushNotification',\n credentials,\n region,\n channelType: (0, utils_3.getChannelType)(),\n identityId,\n userAgentValue: (0, utils_2.getPushNotificationUserAgentString)(utils_1.PushNotificationAction.InitializePushNotifications),\n });\n};\n"],"names":[],"mappings":";;AACA;AACA;AAC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C;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"onNotificationOpened.js","sources":["../../../../../../../src/pushNotifications/providers/pinpoint/apis/onNotificationOpened.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;AACA;;;AAEA,MAA8E,OAAA,GAAA,OAAA,CAAA,mCAAA,CAAA,CAAA;AAQ9E;;;;;;;;;;;;;;;;;;;;;;;;AAwBG;AACI,MAAM,oBAAoB,GAAyB,MAAK;IAC9D,MAAM,IAAI,OAAyB,CAAA,yBAAA,EAAE,CAAC;AACvC,CAAC,CAAC;AAFW,OAAA,CAAA,oBAAoB,GAE/B,oBAAA;;"}
1
+ {"version":3,"file":"onNotificationOpened.js","sources":["../../../../../../src/pushNotifications/providers/pinpoint/apis/onNotificationOpened.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.onNotificationOpened = void 0;\nconst utils_1 = require(\"@aws-amplify/core/internals/utils\");\n/**\n * Registers a listener that will be triggered when a notification is opened by user.\n *\n * @param {OnNotificationOpenedInput} input - A callback handler to be invoked with the opened\n * {@link PushNotificationMessage}.\n * @returns {OnNotificationOpenedOutput} - An object with a remove function to remove the listener.\n * @example\n * ```ts\n * // Register a listener\n * onNotificationOpened(message => {\n * doSomething(message);\n * });\n * ```\n * @example\n * ```ts\n * // Register multiple listeners\n * onNotificationOpened(message => {\n * doSomething(message);\n * });\n *\n * onNotificationOpened(message => {\n * doSomethingElse(message);\n * });\n * ```\n */\nconst onNotificationOpened = () => {\n throw new utils_1.PlatformNotSupportedError();\n};\nexports.onNotificationOpened = onNotificationOpened;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,oBAAoB,GAAG,KAAK,CAAC,CAAC;AACtC,MAAM,OAAO,GAAG,OAAO,CAAC,mCAAmC,CAAC,CAAC;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,oBAAoB,GAAG,MAAM;AACnC,IAAI,MAAM,IAAI,OAAO,CAAC,yBAAyB,EAAE,CAAC;AAClD,CAAC,CAAC;AACF,OAAO,CAAC,oBAAoB,GAAG,oBAAoB;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"onNotificationOpened.native.js","sources":["../../../../../../../src/pushNotifications/providers/pinpoint/apis/onNotificationOpened.native.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;AACA;;;AAEA,MAA8D,gBAAA,GAAA,OAAA,CAAA,4BAAA,CAAA,CAAA;AAC9D,MAAmE,cAAA,GAAA,OAAA,CAAA,8BAAA,CAAA,CAAA;AAG5D,MAAM,oBAAoB,GAAyB,KAAK,IAAG;IACjE,IAAA,cAAA,CAAA,mBAAmB,GAAE,CAAC;AACtB,IAAA,OAAO,IAAA,gBAAgB,CAAA,gBAAA,EAAC,oBAAoB,EAAE,KAAK,CAAC,CAAC;AACtD,CAAC,CAAC;AAHW,OAAA,CAAA,oBAAoB,GAG/B,oBAAA;;"}
1
+ {"version":3,"file":"onNotificationOpened.native.js","sources":["../../../../../../src/pushNotifications/providers/pinpoint/apis/onNotificationOpened.native.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.onNotificationOpened = void 0;\nconst eventListeners_1 = require(\"../../../../eventListeners\");\nconst errorHelpers_1 = require(\"../../../errors/errorHelpers\");\nconst onNotificationOpened = input => {\n (0, errorHelpers_1.assertIsInitialized)();\n return (0, eventListeners_1.addEventListener)('notificationOpened', input);\n};\nexports.onNotificationOpened = onNotificationOpened;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,oBAAoB,GAAG,KAAK,CAAC,CAAC;AACtC,MAAM,gBAAgB,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC;AAC/D,MAAM,cAAc,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAAC;AAC/D,MAAM,oBAAoB,GAAG,KAAK,IAAI;AACtC,IAAI,IAAI,cAAc,CAAC,mBAAmB,GAAG,CAAC;AAC9C,IAAI,OAAO,IAAI,gBAAgB,CAAC,gBAAgB,EAAE,oBAAoB,EAAE,KAAK,CAAC,CAAC;AAC/E,CAAC,CAAC;AACF,OAAO,CAAC,oBAAoB,GAAG,oBAAoB;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"onNotificationReceivedInBackground.js","sources":["../../../../../../../src/pushNotifications/providers/pinpoint/apis/onNotificationReceivedInBackground.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;AACA;;;AAEA,MAA8E,OAAA,GAAA,OAAA,CAAA,mCAAA,CAAA,CAAA;AAQ9E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCG;AACI,MAAM,kCAAkC,GAC9C,MAAK;IACJ,MAAM,IAAI,OAAyB,CAAA,yBAAA,EAAE,CAAC;AACvC,CAAC,CAAC;AAHU,OAAA,CAAA,kCAAkC,GAG5C,kCAAA;;"}
1
+ {"version":3,"file":"onNotificationReceivedInBackground.js","sources":["../../../../../../src/pushNotifications/providers/pinpoint/apis/onNotificationReceivedInBackground.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.onNotificationReceivedInBackground = void 0;\nconst utils_1 = require(\"@aws-amplify/core/internals/utils\");\n/**\n * Registers a listener that will be triggered when a notification is received while app is in a background state.\n *\n * @throws platform: {@link PlatformNotSupportedError} - Thrown if called against an unsupported platform. Currently,\n * only React Native is supported by this API.\n * @param {OnNotificationReceivedInBackgroundInput} input - A callback handler to be invoked with the received\n * {@link PushNotificationMessage}.\n * @returns {OnNotificationReceivedInBackgroundOutput} - An object with a remove function to remove the listener.\n * @remarks Notifications received while app is in a quit state will start the app (as a headless JS instance running\n * on a background service on Android) in the background. Handlers registered via this function should return promises\n * if it needs to be asynchronous (e.g. to perform some network requests). The app should run in the background as long\n * as there are handlers still running (however, if they run for more than 30 seconds on iOS, subsequent tasks could\n * get deprioritized!). If it is necessary for a handler to execute while the app is in quit state, it should be\n * registered in the application entry point (e.g. index.js) since the application will not fully mount in that case.\n * @example\n * ```ts\n * // Register a listener\n * onNotificationReceivedInBackground(message => {\n * doSomething(message);\n * });\n * ```\n * @example\n * ```ts\n * // Register multiple listeners\n * onNotificationReceivedInBackground(message => {\n * doSomething(message);\n * });\n *\n * onNotificationReceivedInBackground(message => {\n * doSomethingElse(message);\n * });\n * ```\n * @example\n * ```ts\n * // Register async listener\n * onNotificationReceivedInBackground(async message => {\n * await doSomething(message);\n * console.log(`did something with ${message}`);\n * });\n * ```\n */\nconst onNotificationReceivedInBackground = () => {\n throw new utils_1.PlatformNotSupportedError();\n};\nexports.onNotificationReceivedInBackground = onNotificationReceivedInBackground;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,kCAAkC,GAAG,KAAK,CAAC,CAAC;AACpD,MAAM,OAAO,GAAG,OAAO,CAAC,mCAAmC,CAAC,CAAC;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,kCAAkC,GAAG,MAAM;AACjD,IAAI,MAAM,IAAI,OAAO,CAAC,yBAAyB,EAAE,CAAC;AAClD,CAAC,CAAC;AACF,OAAO,CAAC,kCAAkC,GAAG,kCAAkC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"onNotificationReceivedInBackground.native.js","sources":["../../../../../../../src/pushNotifications/providers/pinpoint/apis/onNotificationReceivedInBackground.native.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;AACA;;;AAEA,MAA8D,gBAAA,GAAA,OAAA,CAAA,4BAAA,CAAA,CAAA;AAC9D,MAAmE,cAAA,GAAA,OAAA,CAAA,8BAAA,CAAA,CAAA;AAG5D,MAAM,kCAAkC,GAC9C,KAAK,IAAG;IACP,IAAA,cAAA,CAAA,mBAAmB,GAAE,CAAC;AACtB,IAAA,OAAO,IAAA,gBAAgB,CAAA,gBAAA,EAAC,2BAA2B,EAAE,KAAK,CAAC,CAAC;AAC7D,CAAC,CAAC;AAJU,OAAA,CAAA,kCAAkC,GAI5C,kCAAA;;"}
1
+ {"version":3,"file":"onNotificationReceivedInBackground.native.js","sources":["../../../../../../src/pushNotifications/providers/pinpoint/apis/onNotificationReceivedInBackground.native.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.onNotificationReceivedInBackground = void 0;\nconst eventListeners_1 = require(\"../../../../eventListeners\");\nconst errorHelpers_1 = require(\"../../../errors/errorHelpers\");\nconst onNotificationReceivedInBackground = input => {\n (0, errorHelpers_1.assertIsInitialized)();\n return (0, eventListeners_1.addEventListener)('backgroundMessageReceived', input);\n};\nexports.onNotificationReceivedInBackground = onNotificationReceivedInBackground;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,kCAAkC,GAAG,KAAK,CAAC,CAAC;AACpD,MAAM,gBAAgB,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC;AAC/D,MAAM,cAAc,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAAC;AAC/D,MAAM,kCAAkC,GAAG,KAAK,IAAI;AACpD,IAAI,IAAI,cAAc,CAAC,mBAAmB,GAAG,CAAC;AAC9C,IAAI,OAAO,IAAI,gBAAgB,CAAC,gBAAgB,EAAE,2BAA2B,EAAE,KAAK,CAAC,CAAC;AACtF,CAAC,CAAC;AACF,OAAO,CAAC,kCAAkC,GAAG,kCAAkC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"onNotificationReceivedInForeground.js","sources":["../../../../../../../src/pushNotifications/providers/pinpoint/apis/onNotificationReceivedInForeground.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;AACA;;;AAEA,MAA8E,OAAA,GAAA,OAAA,CAAA,mCAAA,CAAA,CAAA;AAQ9E;;;;;;;;;;;;;;;;;;;;;;;;AAwBG;AACI,MAAM,kCAAkC,GAC9C,MAAK;IACJ,MAAM,IAAI,OAAyB,CAAA,yBAAA,EAAE,CAAC;AACvC,CAAC,CAAC;AAHU,OAAA,CAAA,kCAAkC,GAG5C,kCAAA;;"}
1
+ {"version":3,"file":"onNotificationReceivedInForeground.js","sources":["../../../../../../src/pushNotifications/providers/pinpoint/apis/onNotificationReceivedInForeground.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.onNotificationReceivedInForeground = void 0;\nconst utils_1 = require(\"@aws-amplify/core/internals/utils\");\n/**\n * Registers a listener that will be triggered when a notification is received while app is in a foreground state.\n *\n * @param {OnNotificationReceivedInForegroundInput} input - A callback handler to be invoked with the received\n * {@link PushNotificationMessage}.\n * @returns {OnNotificationReceivedInForegroundOutput} - An object with a remove function to remove the listener.\n * @example\n * ```ts\n * // Register a listener\n * onNotificationReceivedInForeground(message => {\n * doSomething(message);\n * });\n * ```\n * @example\n * ```ts\n * // Register multiple listeners\n * onNotificationReceivedInForeground(message => {\n * doSomething(message);\n * });\n *\n * onNotificationReceivedInForeground(message => {\n * doSomethingElse(message);\n * });\n * ```\n */\nconst onNotificationReceivedInForeground = () => {\n throw new utils_1.PlatformNotSupportedError();\n};\nexports.onNotificationReceivedInForeground = onNotificationReceivedInForeground;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,kCAAkC,GAAG,KAAK,CAAC,CAAC;AACpD,MAAM,OAAO,GAAG,OAAO,CAAC,mCAAmC,CAAC,CAAC;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,kCAAkC,GAAG,MAAM;AACjD,IAAI,MAAM,IAAI,OAAO,CAAC,yBAAyB,EAAE,CAAC;AAClD,CAAC,CAAC;AACF,OAAO,CAAC,kCAAkC,GAAG,kCAAkC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"onNotificationReceivedInForeground.native.js","sources":["../../../../../../../src/pushNotifications/providers/pinpoint/apis/onNotificationReceivedInForeground.native.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;AACA;;;AAEA,MAA8D,gBAAA,GAAA,OAAA,CAAA,4BAAA,CAAA,CAAA;AAC9D,MAAmE,cAAA,GAAA,OAAA,CAAA,8BAAA,CAAA,CAAA;AAG5D,MAAM,kCAAkC,GAC9C,KAAK,IAAG;IACP,IAAA,cAAA,CAAA,mBAAmB,GAAE,CAAC;AACtB,IAAA,OAAO,IAAA,gBAAgB,CAAA,gBAAA,EAAC,2BAA2B,EAAE,KAAK,CAAC,CAAC;AAC7D,CAAC,CAAC;AAJU,OAAA,CAAA,kCAAkC,GAI5C,kCAAA;;"}
1
+ {"version":3,"file":"onNotificationReceivedInForeground.native.js","sources":["../../../../../../src/pushNotifications/providers/pinpoint/apis/onNotificationReceivedInForeground.native.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.onNotificationReceivedInForeground = void 0;\nconst eventListeners_1 = require(\"../../../../eventListeners\");\nconst errorHelpers_1 = require(\"../../../errors/errorHelpers\");\nconst onNotificationReceivedInForeground = input => {\n (0, errorHelpers_1.assertIsInitialized)();\n return (0, eventListeners_1.addEventListener)('foregroundMessageReceived', input);\n};\nexports.onNotificationReceivedInForeground = onNotificationReceivedInForeground;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,kCAAkC,GAAG,KAAK,CAAC,CAAC;AACpD,MAAM,gBAAgB,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC;AAC/D,MAAM,cAAc,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAAC;AAC/D,MAAM,kCAAkC,GAAG,KAAK,IAAI;AACpD,IAAI,IAAI,cAAc,CAAC,mBAAmB,GAAG,CAAC;AAC9C,IAAI,OAAO,IAAI,gBAAgB,CAAC,gBAAgB,EAAE,2BAA2B,EAAE,KAAK,CAAC,CAAC;AACtF,CAAC,CAAC;AACF,OAAO,CAAC,kCAAkC,GAAG,kCAAkC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"onTokenReceived.js","sources":["../../../../../../../src/pushNotifications/providers/pinpoint/apis/onTokenReceived.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;AACA;;;AAEA,MAA8E,OAAA,GAAA,OAAA,CAAA,mCAAA,CAAA,CAAA;AAO9E;;;;;;;;;;;;;;;;;;;;;;;;;AAyBG;AACI,MAAM,eAAe,GAAoB,MAAK;IACpD,MAAM,IAAI,OAAyB,CAAA,yBAAA,EAAE,CAAC;AACvC,CAAC,CAAC;AAFW,OAAA,CAAA,eAAe,GAE1B,eAAA;;"}
1
+ {"version":3,"file":"onTokenReceived.js","sources":["../../../../../../src/pushNotifications/providers/pinpoint/apis/onTokenReceived.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.onTokenReceived = void 0;\nconst utils_1 = require(\"@aws-amplify/core/internals/utils\");\n/**\n * Registers a listener that will be triggered when a token is received. A token will be received:\n * 1. On every app launch, including the first install\n * 2. When a token changes (this may happen if the service invalidates the token for any reason)\n *\n * @param {OnTokenReceivedInput} input - A callback handler to be invoked with the token.\n * @returns {OnTokenReceivedOutput} - An object with a remove function to remove the listener.\n * @example\n * ```ts\n * // Register a listener\n * onTokenReceived(message => {\n * doSomething(message);\n * });\n * ```\n * @example\n * ```ts\n * // Register multiple listeners\n * onTokenReceived(message => {\n * doSomething(message);\n * });\n *\n * onTokenReceived(message => {\n * doSomethingElse(message);\n * });\n * ```\n */\nconst onTokenReceived = () => {\n throw new utils_1.PlatformNotSupportedError();\n};\nexports.onTokenReceived = onTokenReceived;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,eAAe,GAAG,KAAK,CAAC,CAAC;AACjC,MAAM,OAAO,GAAG,OAAO,CAAC,mCAAmC,CAAC,CAAC;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,eAAe,GAAG,MAAM;AAC9B,IAAI,MAAM,IAAI,OAAO,CAAC,yBAAyB,EAAE,CAAC;AAClD,CAAC,CAAC;AACF,OAAO,CAAC,eAAe,GAAG,eAAe;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"onTokenReceived.native.js","sources":["../../../../../../../src/pushNotifications/providers/pinpoint/apis/onTokenReceived.native.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;AACA;;;AAEA,MAA8D,gBAAA,GAAA,OAAA,CAAA,4BAAA,CAAA,CAAA;AAC9D,MAAmE,cAAA,GAAA,OAAA,CAAA,8BAAA,CAAA,CAAA;AAG5D,MAAM,eAAe,GAAoB,KAAK,IAAG;IACvD,IAAA,cAAA,CAAA,mBAAmB,GAAE,CAAC;AACtB,IAAA,OAAO,IAAA,gBAAgB,CAAA,gBAAA,EAAC,eAAe,EAAE,KAAK,CAAC,CAAC;AACjD,CAAC,CAAC;AAHW,OAAA,CAAA,eAAe,GAG1B,eAAA;;"}
1
+ {"version":3,"file":"onTokenReceived.native.js","sources":["../../../../../../src/pushNotifications/providers/pinpoint/apis/onTokenReceived.native.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.onTokenReceived = void 0;\nconst eventListeners_1 = require(\"../../../../eventListeners\");\nconst errorHelpers_1 = require(\"../../../errors/errorHelpers\");\nconst onTokenReceived = input => {\n (0, errorHelpers_1.assertIsInitialized)();\n return (0, eventListeners_1.addEventListener)('tokenReceived', input);\n};\nexports.onTokenReceived = onTokenReceived;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,eAAe,GAAG,KAAK,CAAC,CAAC;AACjC,MAAM,gBAAgB,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC;AAC/D,MAAM,cAAc,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAAC;AAC/D,MAAM,eAAe,GAAG,KAAK,IAAI;AACjC,IAAI,IAAI,cAAc,CAAC,mBAAmB,GAAG,CAAC;AAC9C,IAAI,OAAO,IAAI,gBAAgB,CAAC,gBAAgB,EAAE,eAAe,EAAE,KAAK,CAAC,CAAC;AAC1E,CAAC,CAAC;AACF,OAAO,CAAC,eAAe,GAAG,eAAe;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"requestPermissions.js","sources":["../../../../../../../src/pushNotifications/providers/pinpoint/apis/requestPermissions.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;AACA;;;AAEA,MAA8E,OAAA,GAAA,OAAA,CAAA,mCAAA,CAAA,CAAA;AAG9E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BG;AACI,MAAM,kBAAkB,GAAuB,YAAW;IAChE,MAAM,IAAI,OAAyB,CAAA,yBAAA,EAAE,CAAC;AACvC,CAAC,CAAC;AAFW,OAAA,CAAA,kBAAkB,GAE7B,kBAAA;;"}
1
+ {"version":3,"file":"requestPermissions.js","sources":["../../../../../../src/pushNotifications/providers/pinpoint/apis/requestPermissions.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.requestPermissions = void 0;\nconst utils_1 = require(\"@aws-amplify/core/internals/utils\");\n/**\n * Requests notification permissions from your user. By default, Amplify requests all supported permissions but you can\n * choose not to request specific permissions. The resulting promise will resolve to true if requested permissions are\n * granted (or have previously been granted) or false otherwise. Not all specific permissions are supported by platforms\n * your React Native app can run on but will be safely ignored even on those platforms. Currently supported permissions:\n *\n * * `alert`: When set to true, requests the ability to display notifications to the user.\n *\n * * `sound`: When set to true, requests the ability to play a sound in response to notifications.\n *\n * * `badge`: When set to true, requests the ability to update the app's badge.\n *\n * @throws platform: {@link PlatformNotSupportedError} - Thrown if called against an unsupported platform. Currently,\n * only React Native is supported by this API.\n * @returns A promise that resolves to true if requested permissions are granted or have already previously been\n * granted or false otherwise.\n * @example\n * ```ts\n * // Request all permissions by default\n * const arePermissionsGranted = await requestPermissions();\n *\n * @example\n * ```ts\n * // Prevent requesting specific permissions\n * const arePermissionsGranted = await requestPermissions({\n * sound: false,\n * badge: false\n * });\n * ```\n */\nconst requestPermissions = async () => {\n throw new utils_1.PlatformNotSupportedError();\n};\nexports.requestPermissions = requestPermissions;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,kBAAkB,GAAG,KAAK,CAAC,CAAC;AACpC,MAAM,OAAO,GAAG,OAAO,CAAC,mCAAmC,CAAC,CAAC;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,kBAAkB,GAAG,YAAY;AACvC,IAAI,MAAM,IAAI,OAAO,CAAC,yBAAyB,EAAE,CAAC;AAClD,CAAC,CAAC;AACF,OAAO,CAAC,kBAAkB,GAAG,kBAAkB;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"requestPermissions.native.js","sources":["../../../../../../../src/pushNotifications/providers/pinpoint/apis/requestPermissions.native.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;AACA;;;AAEA,MAAwE,cAAA,GAAA,OAAA,CAAA,2BAAA,CAAA,CAAA;AACxE,MAAmE,cAAA,GAAA,OAAA,CAAA,8BAAA,CAAA,CAAA;AAGnE,MAAM,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,GACrD,IAAA,cAA2B,CAAA,2BAAA,GAAE,CAAC;AAExB,MAAM,kBAAkB,GAAuB,OAAM,KAAK,KAAG;IACnE,IAAA,cAAA,CAAA,mBAAmB,GAAE,CAAC;AACtB,IAAA,OAAO,wBAAwB,CAAC,KAAK,CAAC,CAAC;AACxC,CAAC,CAAC;AAHW,OAAA,CAAA,kBAAkB,GAG7B,kBAAA;;"}
1
+ {"version":3,"file":"requestPermissions.native.js","sources":["../../../../../../src/pushNotifications/providers/pinpoint/apis/requestPermissions.native.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.requestPermissions = void 0;\nconst react_native_1 = require(\"@aws-amplify/react-native\");\nconst errorHelpers_1 = require(\"../../../errors/errorHelpers\");\nconst { requestPermissions: requestPermissionsNative } = (0, react_native_1.loadAmplifyPushNotification)();\nconst requestPermissions = async (input) => {\n (0, errorHelpers_1.assertIsInitialized)();\n return requestPermissionsNative(input);\n};\nexports.requestPermissions = requestPermissions;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,kBAAkB,GAAG,KAAK,CAAC,CAAC;AACpC,MAAM,cAAc,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAC;AAC5D,MAAM,cAAc,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAAC;AAC/D,MAAM,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,GAAG,IAAI,cAAc,CAAC,2BAA2B,GAAG,CAAC;AAC3G,MAAM,kBAAkB,GAAG,OAAO,KAAK,KAAK;AAC5C,IAAI,IAAI,cAAc,CAAC,mBAAmB,GAAG,CAAC;AAC9C,IAAI,OAAO,wBAAwB,CAAC,KAAK,CAAC,CAAC;AAC3C,CAAC,CAAC;AACF,OAAO,CAAC,kBAAkB,GAAG,kBAAkB;;"}