@aws-amplify/notifications 2.0.1-unstable.cfbde4c.0 → 2.0.2-unstable.ff4e8d7.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.
- package/{lib → dist/cjs}/eventListeners/eventListeners.js +3 -1
- package/dist/cjs/eventListeners/eventListeners.js.map +1 -0
- package/{lib → dist/cjs}/eventListeners/index.js +3 -1
- package/dist/cjs/eventListeners/index.js.map +1 -0
- package/{lib → dist/cjs}/eventListeners/types.js +3 -1
- package/dist/cjs/eventListeners/types.js.map +1 -0
- package/{lib → dist/cjs}/inAppMessaging/errors/InAppMessagingError.js +3 -1
- package/dist/cjs/inAppMessaging/errors/InAppMessagingError.js.map +1 -0
- package/{lib → dist/cjs}/inAppMessaging/errors/assertServiceError.js +3 -1
- package/dist/cjs/inAppMessaging/errors/assertServiceError.js.map +1 -0
- package/{lib → dist/cjs}/inAppMessaging/errors/assertValidationError.js +3 -1
- package/dist/cjs/inAppMessaging/errors/assertValidationError.js.map +1 -0
- package/{lib → dist/cjs}/inAppMessaging/errors/index.js +3 -1
- package/dist/cjs/inAppMessaging/errors/index.js.map +1 -0
- package/{lib → dist/cjs}/inAppMessaging/errors/validation.js +3 -1
- package/dist/cjs/inAppMessaging/errors/validation.js.map +1 -0
- package/{lib → dist/cjs}/inAppMessaging/index.js +3 -1
- package/dist/cjs/inAppMessaging/index.js.map +1 -0
- package/{lib → dist/cjs}/inAppMessaging/providers/pinpoint/apis/clearMessages.js +3 -1
- package/dist/cjs/inAppMessaging/providers/pinpoint/apis/clearMessages.js.map +1 -0
- package/{lib → dist/cjs}/inAppMessaging/providers/pinpoint/apis/dispatchEvent.js +6 -6
- package/dist/cjs/inAppMessaging/providers/pinpoint/apis/dispatchEvent.js.map +1 -0
- package/{lib → dist/cjs}/inAppMessaging/providers/pinpoint/apis/identifyUser.js +3 -1
- package/dist/cjs/inAppMessaging/providers/pinpoint/apis/identifyUser.js.map +1 -0
- package/{lib → dist/cjs}/inAppMessaging/providers/pinpoint/apis/index.js +3 -1
- package/dist/cjs/inAppMessaging/providers/pinpoint/apis/index.js.map +1 -0
- package/{lib → dist/cjs}/inAppMessaging/providers/pinpoint/apis/initializeInAppMessaging.js +3 -3
- package/dist/cjs/inAppMessaging/providers/pinpoint/apis/initializeInAppMessaging.js.map +1 -0
- package/{lib → dist/cjs}/inAppMessaging/providers/pinpoint/apis/notifyMessageInteraction.js +3 -1
- package/dist/cjs/inAppMessaging/providers/pinpoint/apis/notifyMessageInteraction.js.map +1 -0
- package/{lib → dist/cjs}/inAppMessaging/providers/pinpoint/apis/onMessageActionTaken.js +3 -1
- package/dist/cjs/inAppMessaging/providers/pinpoint/apis/onMessageActionTaken.js.map +1 -0
- package/{lib → dist/cjs}/inAppMessaging/providers/pinpoint/apis/onMessageDismissed.js +3 -1
- package/dist/cjs/inAppMessaging/providers/pinpoint/apis/onMessageDismissed.js.map +1 -0
- package/{lib → dist/cjs}/inAppMessaging/providers/pinpoint/apis/onMessageDisplayed.js +3 -1
- package/dist/cjs/inAppMessaging/providers/pinpoint/apis/onMessageDisplayed.js.map +1 -0
- package/{lib → dist/cjs}/inAppMessaging/providers/pinpoint/apis/onMessageReceived.js +3 -1
- package/dist/cjs/inAppMessaging/providers/pinpoint/apis/onMessageReceived.js.map +1 -0
- package/{lib → dist/cjs}/inAppMessaging/providers/pinpoint/apis/setConflictHandler.js +3 -1
- package/dist/cjs/inAppMessaging/providers/pinpoint/apis/setConflictHandler.js.map +1 -0
- package/{lib → dist/cjs}/inAppMessaging/providers/pinpoint/apis/syncMessages.js +3 -1
- package/dist/cjs/inAppMessaging/providers/pinpoint/apis/syncMessages.js.map +1 -0
- package/{lib → dist/cjs}/inAppMessaging/providers/pinpoint/index.js +3 -1
- package/dist/cjs/inAppMessaging/providers/pinpoint/index.js.map +1 -0
- package/{lib → dist/cjs}/inAppMessaging/providers/pinpoint/types/index.js +3 -1
- package/dist/cjs/inAppMessaging/providers/pinpoint/types/index.js.map +1 -0
- package/{lib/inAppMessaging → dist/cjs/inAppMessaging/providers/pinpoint}/types/inputs.js +3 -1
- package/dist/cjs/inAppMessaging/providers/pinpoint/types/inputs.js.map +1 -0
- package/{lib/inAppMessaging → dist/cjs/inAppMessaging/providers/pinpoint}/types/options.js +3 -1
- package/dist/cjs/inAppMessaging/providers/pinpoint/types/options.js.map +1 -0
- package/{lib/pushNotifications → dist/cjs/inAppMessaging}/providers/pinpoint/types/outputs.js +3 -1
- package/dist/cjs/inAppMessaging/providers/pinpoint/types/outputs.js.map +1 -0
- package/{lib → dist/cjs}/inAppMessaging/providers/pinpoint/types/types.js +4 -3
- package/dist/cjs/inAppMessaging/providers/pinpoint/types/types.js.map +1 -0
- package/{lib → dist/cjs}/inAppMessaging/providers/pinpoint/utils/constants.js +3 -1
- package/dist/cjs/inAppMessaging/providers/pinpoint/utils/constants.js.map +1 -0
- package/{lib → dist/cjs}/inAppMessaging/providers/pinpoint/utils/helpers.js +9 -9
- package/dist/cjs/inAppMessaging/providers/pinpoint/utils/helpers.js.map +1 -0
- package/{lib → dist/cjs}/inAppMessaging/providers/pinpoint/utils/index.js +3 -1
- package/dist/cjs/inAppMessaging/providers/pinpoint/utils/index.js.map +1 -0
- package/{lib → dist/cjs}/inAppMessaging/providers/pinpoint/utils/messageProcessingHelpers.js +3 -1
- package/dist/cjs/inAppMessaging/providers/pinpoint/utils/messageProcessingHelpers.js.map +1 -0
- package/{lib → dist/cjs}/inAppMessaging/providers/pinpoint/utils/resolveConfig.js +3 -1
- package/dist/cjs/inAppMessaging/providers/pinpoint/utils/resolveConfig.js.map +1 -0
- package/{lib → dist/cjs}/inAppMessaging/providers/pinpoint/utils/resolveCredentials.js +3 -1
- package/dist/cjs/inAppMessaging/providers/pinpoint/utils/resolveCredentials.js.map +1 -0
- package/{lib → dist/cjs}/inAppMessaging/providers/pinpoint/utils/userAgent.js +3 -1
- package/dist/cjs/inAppMessaging/providers/pinpoint/utils/userAgent.js.map +1 -0
- package/{lib → dist/cjs}/inAppMessaging/types/event.js +3 -1
- package/dist/cjs/inAppMessaging/types/event.js.map +1 -0
- package/{lib → dist/cjs}/inAppMessaging/types/index.js +3 -1
- package/dist/cjs/inAppMessaging/types/index.js.map +1 -0
- package/{lib/inAppMessaging/providers/pinpoint → dist/cjs/inAppMessaging}/types/inputs.js +3 -1
- package/dist/cjs/inAppMessaging/types/inputs.js.map +1 -0
- package/{lib → dist/cjs}/inAppMessaging/types/message.js +3 -1
- package/dist/cjs/inAppMessaging/types/message.js.map +1 -0
- package/{lib/pushNotifications/providers/pinpoint → dist/cjs/inAppMessaging}/types/options.js +3 -1
- package/dist/cjs/inAppMessaging/types/options.js.map +1 -0
- package/{lib → dist/cjs}/inAppMessaging/utils/index.js +3 -1
- package/dist/cjs/inAppMessaging/utils/index.js.map +1 -0
- package/{lib → dist/cjs}/inAppMessaging/utils/statusHelpers.js +3 -1
- package/dist/cjs/inAppMessaging/utils/statusHelpers.js.map +1 -0
- package/dist/cjs/index.js +3 -0
- package/dist/cjs/index.js.map +1 -0
- package/{lib → dist/cjs}/pushNotifications/errors/PushNotificationError.js +3 -1
- package/dist/cjs/pushNotifications/errors/PushNotificationError.js.map +1 -0
- package/{lib → dist/cjs}/pushNotifications/errors/errorHelpers.js +5 -3
- package/dist/cjs/pushNotifications/errors/errorHelpers.js.map +1 -0
- package/{lib → dist/cjs}/pushNotifications/errors/index.js +3 -1
- package/dist/cjs/pushNotifications/errors/index.js.map +1 -0
- package/{lib → dist/cjs}/pushNotifications/index.js +3 -1
- package/dist/cjs/pushNotifications/index.js.map +1 -0
- package/{lib → dist/cjs}/pushNotifications/providers/pinpoint/apis/getBadgeCount.js +3 -1
- package/dist/cjs/pushNotifications/providers/pinpoint/apis/getBadgeCount.js.map +1 -0
- package/{lib → dist/cjs}/pushNotifications/providers/pinpoint/apis/getBadgeCount.native.js +3 -1
- package/dist/cjs/pushNotifications/providers/pinpoint/apis/getBadgeCount.native.js.map +1 -0
- package/{lib → dist/cjs}/pushNotifications/providers/pinpoint/apis/getLaunchNotification.js +3 -1
- package/dist/cjs/pushNotifications/providers/pinpoint/apis/getLaunchNotification.js.map +1 -0
- package/{lib → dist/cjs}/pushNotifications/providers/pinpoint/apis/getLaunchNotification.native.js +3 -1
- package/dist/cjs/pushNotifications/providers/pinpoint/apis/getLaunchNotification.native.js.map +1 -0
- package/{lib → dist/cjs}/pushNotifications/providers/pinpoint/apis/getPermissionStatus.js +3 -1
- package/dist/cjs/pushNotifications/providers/pinpoint/apis/getPermissionStatus.js.map +1 -0
- package/{lib → dist/cjs}/pushNotifications/providers/pinpoint/apis/getPermissionStatus.native.js +3 -1
- package/dist/cjs/pushNotifications/providers/pinpoint/apis/getPermissionStatus.native.js.map +1 -0
- package/{lib → dist/cjs}/pushNotifications/providers/pinpoint/apis/identifyUser.js +3 -1
- package/dist/cjs/pushNotifications/providers/pinpoint/apis/identifyUser.js.map +1 -0
- package/{lib → dist/cjs}/pushNotifications/providers/pinpoint/apis/identifyUser.native.js +3 -1
- package/dist/cjs/pushNotifications/providers/pinpoint/apis/identifyUser.native.js.map +1 -0
- package/{lib → dist/cjs}/pushNotifications/providers/pinpoint/apis/index.js +3 -1
- package/dist/cjs/pushNotifications/providers/pinpoint/apis/index.js.map +1 -0
- package/{lib → dist/cjs}/pushNotifications/providers/pinpoint/apis/initializePushNotifications.js +3 -1
- package/dist/cjs/pushNotifications/providers/pinpoint/apis/initializePushNotifications.js.map +1 -0
- package/{lib → dist/cjs}/pushNotifications/providers/pinpoint/apis/initializePushNotifications.native.js +3 -1
- package/dist/cjs/pushNotifications/providers/pinpoint/apis/initializePushNotifications.native.js.map +1 -0
- package/{lib → dist/cjs}/pushNotifications/providers/pinpoint/apis/onNotificationOpened.js +3 -1
- package/dist/cjs/pushNotifications/providers/pinpoint/apis/onNotificationOpened.js.map +1 -0
- package/{lib → dist/cjs}/pushNotifications/providers/pinpoint/apis/onNotificationOpened.native.js +3 -1
- package/dist/cjs/pushNotifications/providers/pinpoint/apis/onNotificationOpened.native.js.map +1 -0
- package/{lib → dist/cjs}/pushNotifications/providers/pinpoint/apis/onNotificationReceivedInBackground.js +3 -1
- package/dist/cjs/pushNotifications/providers/pinpoint/apis/onNotificationReceivedInBackground.js.map +1 -0
- package/{lib → dist/cjs}/pushNotifications/providers/pinpoint/apis/onNotificationReceivedInBackground.native.js +3 -1
- package/dist/cjs/pushNotifications/providers/pinpoint/apis/onNotificationReceivedInBackground.native.js.map +1 -0
- package/{lib → dist/cjs}/pushNotifications/providers/pinpoint/apis/onNotificationReceivedInForeground.js +3 -1
- package/dist/cjs/pushNotifications/providers/pinpoint/apis/onNotificationReceivedInForeground.js.map +1 -0
- package/{lib → dist/cjs}/pushNotifications/providers/pinpoint/apis/onNotificationReceivedInForeground.native.js +3 -1
- package/dist/cjs/pushNotifications/providers/pinpoint/apis/onNotificationReceivedInForeground.native.js.map +1 -0
- package/{lib → dist/cjs}/pushNotifications/providers/pinpoint/apis/onTokenReceived.js +3 -1
- package/dist/cjs/pushNotifications/providers/pinpoint/apis/onTokenReceived.js.map +1 -0
- package/{lib → dist/cjs}/pushNotifications/providers/pinpoint/apis/onTokenReceived.native.js +3 -1
- package/dist/cjs/pushNotifications/providers/pinpoint/apis/onTokenReceived.native.js.map +1 -0
- package/{lib → dist/cjs}/pushNotifications/providers/pinpoint/apis/requestPermissions.js +3 -1
- package/dist/cjs/pushNotifications/providers/pinpoint/apis/requestPermissions.js.map +1 -0
- package/{lib → dist/cjs}/pushNotifications/providers/pinpoint/apis/requestPermissions.native.js +3 -1
- package/dist/cjs/pushNotifications/providers/pinpoint/apis/requestPermissions.native.js.map +1 -0
- package/{lib → dist/cjs}/pushNotifications/providers/pinpoint/apis/setBadgeCount.js +3 -1
- package/dist/cjs/pushNotifications/providers/pinpoint/apis/setBadgeCount.js.map +1 -0
- package/{lib → dist/cjs}/pushNotifications/providers/pinpoint/apis/setBadgeCount.native.js +3 -1
- package/dist/cjs/pushNotifications/providers/pinpoint/apis/setBadgeCount.native.js.map +1 -0
- package/{lib → dist/cjs}/pushNotifications/providers/pinpoint/index.js +3 -1
- package/dist/cjs/pushNotifications/providers/pinpoint/index.js.map +1 -0
- package/{lib → dist/cjs}/pushNotifications/providers/pinpoint/types/analytics.js +3 -1
- package/dist/cjs/pushNotifications/providers/pinpoint/types/analytics.js.map +1 -0
- package/{lib → dist/cjs}/pushNotifications/providers/pinpoint/types/apis.js +3 -1
- package/dist/cjs/pushNotifications/providers/pinpoint/types/apis.js.map +1 -0
- package/{lib → dist/cjs}/pushNotifications/providers/pinpoint/types/index.js +3 -1
- package/dist/cjs/pushNotifications/providers/pinpoint/types/index.js.map +1 -0
- package/{lib → dist/cjs}/pushNotifications/providers/pinpoint/types/inputs.js +3 -1
- package/dist/cjs/pushNotifications/providers/pinpoint/types/inputs.js.map +1 -0
- package/{lib/inAppMessaging → dist/cjs/pushNotifications}/providers/pinpoint/types/options.js +3 -1
- package/dist/cjs/pushNotifications/providers/pinpoint/types/options.js.map +1 -0
- package/{lib/pushNotifications → dist/cjs/pushNotifications/providers/pinpoint}/types/outputs.js +3 -1
- package/dist/cjs/pushNotifications/providers/pinpoint/types/outputs.js.map +1 -0
- package/{lib → dist/cjs}/pushNotifications/providers/pinpoint/types/pushNotifications.js +3 -1
- package/dist/cjs/pushNotifications/providers/pinpoint/types/pushNotifications.js.map +1 -0
- package/{lib → dist/cjs}/pushNotifications/providers/pinpoint/utils/createMessageEventRecorder.js +3 -1
- package/dist/cjs/pushNotifications/providers/pinpoint/utils/createMessageEventRecorder.js.map +1 -0
- package/{lib → dist/cjs}/pushNotifications/providers/pinpoint/utils/getAnalyticsEvent.js +3 -1
- package/dist/cjs/pushNotifications/providers/pinpoint/utils/getAnalyticsEvent.js.map +1 -0
- package/{lib → dist/cjs}/pushNotifications/providers/pinpoint/utils/getChannelType.js +3 -1
- package/dist/cjs/pushNotifications/providers/pinpoint/utils/getChannelType.js.map +1 -0
- package/{lib → dist/cjs}/pushNotifications/providers/pinpoint/utils/index.js +3 -1
- package/dist/cjs/pushNotifications/providers/pinpoint/utils/index.js.map +1 -0
- package/{lib → dist/cjs}/pushNotifications/providers/pinpoint/utils/resolveConfig.js +3 -1
- package/dist/cjs/pushNotifications/providers/pinpoint/utils/resolveConfig.js.map +1 -0
- package/{lib → dist/cjs}/pushNotifications/types/errors.js +4 -3
- package/dist/cjs/pushNotifications/types/errors.js.map +1 -0
- package/dist/cjs/pushNotifications/types/index.js +13 -0
- package/dist/cjs/pushNotifications/types/index.js.map +1 -0
- package/{lib → dist/cjs}/pushNotifications/types/inputs.js +3 -1
- package/dist/cjs/pushNotifications/types/inputs.js.map +1 -0
- package/{lib → dist/cjs}/pushNotifications/types/module.js +3 -1
- package/dist/cjs/pushNotifications/types/module.js.map +1 -0
- package/{lib → dist/cjs}/pushNotifications/types/options.js +3 -1
- package/dist/cjs/pushNotifications/types/options.js.map +1 -0
- package/{lib/inAppMessaging/providers/pinpoint → dist/cjs/pushNotifications}/types/outputs.js +3 -1
- package/dist/cjs/pushNotifications/types/outputs.js.map +1 -0
- package/{lib → dist/cjs}/pushNotifications/types/pushNotifications.js +3 -1
- package/dist/cjs/pushNotifications/types/pushNotifications.js.map +1 -0
- package/{lib → dist/cjs}/pushNotifications/utils/getPushNotificationUserAgentString.js +3 -1
- package/dist/cjs/pushNotifications/utils/getPushNotificationUserAgentString.js.map +1 -0
- package/{lib → dist/cjs}/pushNotifications/utils/index.js +3 -1
- package/dist/cjs/pushNotifications/utils/index.js.map +1 -0
- package/{lib → dist/cjs}/pushNotifications/utils/initializationManager.js +3 -1
- package/dist/cjs/pushNotifications/utils/initializationManager.js.map +1 -0
- package/{lib → dist/cjs}/pushNotifications/utils/resolveCredentials.js +5 -3
- package/dist/cjs/pushNotifications/utils/resolveCredentials.js.map +1 -0
- package/{lib → dist/cjs}/pushNotifications/utils/tokenManager.js +3 -1
- package/dist/cjs/pushNotifications/utils/tokenManager.js.map +1 -0
- package/{lib-esm/eventListeners/eventListeners.js → dist/esm/eventListeners/eventListeners.mjs} +6 -3
- package/dist/esm/eventListeners/eventListeners.mjs.map +1 -0
- package/dist/esm/eventListeners/index.mjs +2 -0
- package/dist/esm/eventListeners/index.mjs.map +1 -0
- package/dist/esm/eventListeners/types.mjs +2 -0
- package/dist/esm/eventListeners/types.mjs.map +1 -0
- package/{lib-esm/inAppMessaging/errors/InAppMessagingError.js → dist/esm/inAppMessaging/errors/InAppMessagingError.mjs} +6 -2
- package/dist/esm/inAppMessaging/errors/InAppMessagingError.mjs.map +1 -0
- package/{lib-esm/inAppMessaging/errors/assertServiceError.js → dist/esm/inAppMessaging/errors/assertServiceError.mjs} +7 -3
- package/dist/esm/inAppMessaging/errors/assertServiceError.mjs.map +1 -0
- package/{lib-esm/inAppMessaging/errors/assertValidationError.js → dist/esm/inAppMessaging/errors/assertValidationError.mjs} +7 -3
- package/dist/esm/inAppMessaging/errors/assertValidationError.mjs.map +1 -0
- package/dist/esm/inAppMessaging/errors/index.mjs +5 -0
- package/dist/esm/inAppMessaging/errors/index.mjs.map +1 -0
- package/{lib-esm/inAppMessaging/errors/validation.js → dist/esm/inAppMessaging/errors/validation.mjs} +5 -2
- package/dist/esm/inAppMessaging/errors/validation.mjs.map +1 -0
- package/dist/esm/inAppMessaging/index.mjs +12 -0
- package/dist/esm/inAppMessaging/index.mjs.map +1 -0
- package/{lib-esm/inAppMessaging/providers/pinpoint/apis/clearMessages.js → dist/esm/inAppMessaging/providers/pinpoint/apis/clearMessages.mjs} +11 -4
- package/dist/esm/inAppMessaging/providers/pinpoint/apis/clearMessages.mjs.map +1 -0
- package/{lib-esm/inAppMessaging/providers/pinpoint/apis/dispatchEvent.js → dist/esm/inAppMessaging/providers/pinpoint/apis/dispatchEvent.mjs} +15 -8
- package/dist/esm/inAppMessaging/providers/pinpoint/apis/dispatchEvent.mjs.map +1 -0
- package/{lib-esm/inAppMessaging/providers/pinpoint/apis/identifyUser.js → dist/esm/inAppMessaging/providers/pinpoint/apis/identifyUser.mjs} +13 -5
- package/dist/esm/inAppMessaging/providers/pinpoint/apis/identifyUser.mjs.map +1 -0
- package/dist/esm/inAppMessaging/providers/pinpoint/apis/index.mjs +12 -0
- package/dist/esm/inAppMessaging/providers/pinpoint/apis/index.mjs.map +1 -0
- package/{lib-esm/inAppMessaging/providers/pinpoint/apis/initializeInAppMessaging.js → dist/esm/inAppMessaging/providers/pinpoint/apis/initializeInAppMessaging.mjs} +14 -11
- package/dist/esm/inAppMessaging/providers/pinpoint/apis/initializeInAppMessaging.mjs.map +1 -0
- package/{lib-esm/inAppMessaging/providers/pinpoint/apis/notifyMessageInteraction.js → dist/esm/inAppMessaging/providers/pinpoint/apis/notifyMessageInteraction.mjs} +7 -3
- package/dist/esm/inAppMessaging/providers/pinpoint/apis/notifyMessageInteraction.mjs.map +1 -0
- package/{lib-esm/inAppMessaging/providers/pinpoint/apis/onMessageActionTaken.js → dist/esm/inAppMessaging/providers/pinpoint/apis/onMessageActionTaken.mjs} +7 -3
- package/dist/esm/inAppMessaging/providers/pinpoint/apis/onMessageActionTaken.mjs.map +1 -0
- package/{lib-esm/inAppMessaging/providers/pinpoint/apis/onMessageDismissed.js → dist/esm/inAppMessaging/providers/pinpoint/apis/onMessageDismissed.mjs} +7 -3
- package/dist/esm/inAppMessaging/providers/pinpoint/apis/onMessageDismissed.mjs.map +1 -0
- package/{lib-esm/inAppMessaging/providers/pinpoint/apis/onMessageDisplayed.js → dist/esm/inAppMessaging/providers/pinpoint/apis/onMessageDisplayed.mjs} +7 -3
- package/dist/esm/inAppMessaging/providers/pinpoint/apis/onMessageDisplayed.mjs.map +1 -0
- package/{lib-esm/inAppMessaging/providers/pinpoint/apis/onMessageReceived.js → dist/esm/inAppMessaging/providers/pinpoint/apis/onMessageReceived.mjs} +7 -3
- package/dist/esm/inAppMessaging/providers/pinpoint/apis/onMessageReceived.mjs.map +1 -0
- package/{lib-esm/inAppMessaging/providers/pinpoint/apis/setConflictHandler.js → dist/esm/inAppMessaging/providers/pinpoint/apis/setConflictHandler.mjs} +7 -3
- package/dist/esm/inAppMessaging/providers/pinpoint/apis/setConflictHandler.mjs.map +1 -0
- package/{lib-esm/inAppMessaging/providers/pinpoint/apis/syncMessages.js → dist/esm/inAppMessaging/providers/pinpoint/apis/syncMessages.mjs} +16 -7
- package/dist/esm/inAppMessaging/providers/pinpoint/apis/syncMessages.mjs.map +1 -0
- package/dist/esm/inAppMessaging/providers/pinpoint/index.mjs +12 -0
- package/dist/esm/inAppMessaging/providers/pinpoint/index.mjs.map +1 -0
- package/dist/esm/inAppMessaging/providers/pinpoint/types/index.mjs +2 -0
- package/dist/esm/inAppMessaging/providers/pinpoint/types/index.mjs.map +1 -0
- package/dist/esm/inAppMessaging/providers/pinpoint/types/inputs.mjs +2 -0
- package/dist/esm/inAppMessaging/providers/pinpoint/types/inputs.mjs.map +1 -0
- package/dist/esm/inAppMessaging/providers/pinpoint/types/options.mjs +2 -0
- package/dist/esm/inAppMessaging/providers/pinpoint/types/options.mjs.map +1 -0
- package/dist/esm/inAppMessaging/providers/pinpoint/types/outputs.mjs +2 -0
- package/dist/esm/inAppMessaging/providers/pinpoint/types/outputs.mjs.map +1 -0
- package/{lib-esm/inAppMessaging/providers/pinpoint/types/types.js → dist/esm/inAppMessaging/providers/pinpoint/types/types.mjs} +4 -1
- package/dist/esm/inAppMessaging/providers/pinpoint/types/types.mjs.map +1 -0
- package/dist/esm/inAppMessaging/providers/pinpoint/utils/constants.mjs +9 -0
- package/dist/esm/inAppMessaging/providers/pinpoint/utils/constants.mjs.map +1 -0
- package/{lib-esm/inAppMessaging/providers/pinpoint/utils/helpers.js → dist/esm/inAppMessaging/providers/pinpoint/utils/helpers.mjs} +26 -22
- package/dist/esm/inAppMessaging/providers/pinpoint/utils/helpers.mjs.map +1 -0
- package/dist/esm/inAppMessaging/providers/pinpoint/utils/index.mjs +6 -0
- package/dist/esm/inAppMessaging/providers/pinpoint/utils/index.mjs.map +1 -0
- package/{lib-esm/inAppMessaging/providers/pinpoint/utils/messageProcessingHelpers.js → dist/esm/inAppMessaging/providers/pinpoint/utils/messageProcessingHelpers.mjs} +9 -5
- package/dist/esm/inAppMessaging/providers/pinpoint/utils/messageProcessingHelpers.mjs.map +1 -0
- package/{lib-esm/inAppMessaging/providers/pinpoint/utils/resolveConfig.js → dist/esm/inAppMessaging/providers/pinpoint/utils/resolveConfig.mjs} +9 -3
- package/dist/esm/inAppMessaging/providers/pinpoint/utils/resolveConfig.mjs.map +1 -0
- package/{lib-esm/pushNotifications → dist/esm/inAppMessaging/providers/pinpoint}/utils/resolveCredentials.d.ts +1 -1
- package/{lib-esm/inAppMessaging/providers/pinpoint/utils/resolveCredentials.js → dist/esm/inAppMessaging/providers/pinpoint/utils/resolveCredentials.mjs} +9 -3
- package/dist/esm/inAppMessaging/providers/pinpoint/utils/resolveCredentials.mjs.map +1 -0
- package/dist/esm/inAppMessaging/providers/pinpoint/utils/userAgent.mjs +19 -0
- package/dist/esm/inAppMessaging/providers/pinpoint/utils/userAgent.mjs.map +1 -0
- package/dist/esm/inAppMessaging/types/event.mjs +2 -0
- package/dist/esm/inAppMessaging/types/event.mjs.map +1 -0
- package/dist/esm/inAppMessaging/types/index.mjs +2 -0
- package/dist/esm/inAppMessaging/types/index.mjs.map +1 -0
- package/dist/esm/inAppMessaging/types/inputs.mjs +2 -0
- package/dist/esm/inAppMessaging/types/inputs.mjs.map +1 -0
- package/dist/esm/inAppMessaging/types/message.mjs +2 -0
- package/dist/esm/inAppMessaging/types/message.mjs.map +1 -0
- package/dist/esm/inAppMessaging/types/options.mjs +2 -0
- package/dist/esm/inAppMessaging/types/options.mjs.map +1 -0
- package/dist/esm/inAppMessaging/utils/index.mjs +2 -0
- package/dist/esm/inAppMessaging/utils/index.mjs.map +1 -0
- package/dist/esm/inAppMessaging/utils/statusHelpers.mjs +27 -0
- package/dist/esm/inAppMessaging/utils/statusHelpers.mjs.map +1 -0
- package/dist/esm/index.mjs +2 -0
- package/dist/esm/index.mjs.map +1 -0
- package/{lib-esm/pushNotifications/errors/PushNotificationError.js → dist/esm/pushNotifications/errors/PushNotificationError.mjs} +6 -2
- package/dist/esm/pushNotifications/errors/PushNotificationError.mjs.map +1 -0
- package/{lib-esm/pushNotifications/errors/errorHelpers.js → dist/esm/pushNotifications/errors/errorHelpers.mjs} +10 -6
- package/dist/esm/pushNotifications/errors/errorHelpers.mjs.map +1 -0
- package/dist/esm/pushNotifications/errors/index.mjs +3 -0
- package/dist/esm/pushNotifications/errors/index.mjs.map +1 -0
- package/dist/esm/pushNotifications/index.mjs +14 -0
- package/dist/esm/pushNotifications/index.mjs.map +1 -0
- package/{lib-esm/pushNotifications/providers/pinpoint/apis/getBadgeCount.js → dist/esm/pushNotifications/providers/pinpoint/apis/getBadgeCount.mjs} +6 -2
- package/dist/esm/pushNotifications/providers/pinpoint/apis/getBadgeCount.mjs.map +1 -0
- package/{lib-esm/pushNotifications/providers/pinpoint/apis/getBadgeCount.native.js → dist/esm/pushNotifications/providers/pinpoint/apis/getBadgeCount.native.mjs} +7 -3
- package/dist/esm/pushNotifications/providers/pinpoint/apis/getBadgeCount.native.mjs.map +1 -0
- package/{lib-esm/pushNotifications/providers/pinpoint/apis/getLaunchNotification.js → dist/esm/pushNotifications/providers/pinpoint/apis/getLaunchNotification.mjs} +6 -2
- package/dist/esm/pushNotifications/providers/pinpoint/apis/getLaunchNotification.mjs.map +1 -0
- package/{lib-esm/pushNotifications/providers/pinpoint/apis/getLaunchNotification.native.js → dist/esm/pushNotifications/providers/pinpoint/apis/getLaunchNotification.native.mjs} +7 -3
- package/dist/esm/pushNotifications/providers/pinpoint/apis/getLaunchNotification.native.mjs.map +1 -0
- package/{lib-esm/pushNotifications/providers/pinpoint/apis/getPermissionStatus.js → dist/esm/pushNotifications/providers/pinpoint/apis/getPermissionStatus.mjs} +6 -2
- package/dist/esm/pushNotifications/providers/pinpoint/apis/getPermissionStatus.mjs.map +1 -0
- package/{lib-esm/pushNotifications/providers/pinpoint/apis/getPermissionStatus.native.js → dist/esm/pushNotifications/providers/pinpoint/apis/getPermissionStatus.native.mjs} +7 -3
- package/dist/esm/pushNotifications/providers/pinpoint/apis/getPermissionStatus.native.mjs.map +1 -0
- package/{lib-esm/pushNotifications/providers/pinpoint/apis/identifyUser.js → dist/esm/pushNotifications/providers/pinpoint/apis/identifyUser.mjs} +6 -2
- package/dist/esm/pushNotifications/providers/pinpoint/apis/identifyUser.mjs.map +1 -0
- package/{lib-esm/pushNotifications/providers/pinpoint/apis/identifyUser.native.js → dist/esm/pushNotifications/providers/pinpoint/apis/identifyUser.native.mjs} +13 -6
- package/dist/esm/pushNotifications/providers/pinpoint/apis/identifyUser.native.mjs.map +1 -0
- package/dist/esm/pushNotifications/providers/pinpoint/apis/index.mjs +12 -0
- package/dist/esm/pushNotifications/providers/pinpoint/apis/index.mjs.map +1 -0
- package/{lib-esm/pushNotifications/providers/pinpoint/apis/initializePushNotifications.js → dist/esm/pushNotifications/providers/pinpoint/apis/initializePushNotifications.mjs} +6 -2
- package/dist/esm/pushNotifications/providers/pinpoint/apis/initializePushNotifications.mjs.map +1 -0
- package/{lib-esm/pushNotifications/providers/pinpoint/apis/initializePushNotifications.native.js → dist/esm/pushNotifications/providers/pinpoint/apis/initializePushNotifications.native.mjs} +15 -6
- package/dist/esm/pushNotifications/providers/pinpoint/apis/initializePushNotifications.native.mjs.map +1 -0
- package/{lib-esm/pushNotifications/providers/pinpoint/apis/onNotificationOpened.js → dist/esm/pushNotifications/providers/pinpoint/apis/onNotificationOpened.mjs} +6 -2
- package/dist/esm/pushNotifications/providers/pinpoint/apis/onNotificationOpened.mjs.map +1 -0
- package/{lib-esm/pushNotifications/providers/pinpoint/apis/onNotificationOpened.native.js → dist/esm/pushNotifications/providers/pinpoint/apis/onNotificationOpened.native.mjs} +7 -3
- package/dist/esm/pushNotifications/providers/pinpoint/apis/onNotificationOpened.native.mjs.map +1 -0
- package/{lib-esm/pushNotifications/providers/pinpoint/apis/onNotificationReceivedInBackground.js → dist/esm/pushNotifications/providers/pinpoint/apis/onNotificationReceivedInBackground.mjs} +6 -2
- package/dist/esm/pushNotifications/providers/pinpoint/apis/onNotificationReceivedInBackground.mjs.map +1 -0
- package/{lib-esm/pushNotifications/providers/pinpoint/apis/onNotificationReceivedInBackground.native.js → dist/esm/pushNotifications/providers/pinpoint/apis/onNotificationReceivedInBackground.native.mjs} +7 -3
- package/dist/esm/pushNotifications/providers/pinpoint/apis/onNotificationReceivedInBackground.native.mjs.map +1 -0
- package/{lib-esm/pushNotifications/providers/pinpoint/apis/onNotificationReceivedInForeground.js → dist/esm/pushNotifications/providers/pinpoint/apis/onNotificationReceivedInForeground.mjs} +6 -2
- package/dist/esm/pushNotifications/providers/pinpoint/apis/onNotificationReceivedInForeground.mjs.map +1 -0
- package/{lib-esm/pushNotifications/providers/pinpoint/apis/onNotificationReceivedInForeground.native.js → dist/esm/pushNotifications/providers/pinpoint/apis/onNotificationReceivedInForeground.native.mjs} +7 -3
- package/dist/esm/pushNotifications/providers/pinpoint/apis/onNotificationReceivedInForeground.native.mjs.map +1 -0
- package/{lib-esm/pushNotifications/providers/pinpoint/apis/onTokenReceived.js → dist/esm/pushNotifications/providers/pinpoint/apis/onTokenReceived.mjs} +6 -2
- package/dist/esm/pushNotifications/providers/pinpoint/apis/onTokenReceived.mjs.map +1 -0
- package/{lib-esm/pushNotifications/providers/pinpoint/apis/onTokenReceived.native.js → dist/esm/pushNotifications/providers/pinpoint/apis/onTokenReceived.native.mjs} +7 -3
- package/dist/esm/pushNotifications/providers/pinpoint/apis/onTokenReceived.native.mjs.map +1 -0
- package/{lib-esm/pushNotifications/providers/pinpoint/apis/requestPermissions.js → dist/esm/pushNotifications/providers/pinpoint/apis/requestPermissions.mjs} +6 -2
- package/dist/esm/pushNotifications/providers/pinpoint/apis/requestPermissions.mjs.map +1 -0
- package/{lib-esm/pushNotifications/providers/pinpoint/apis/requestPermissions.native.js → dist/esm/pushNotifications/providers/pinpoint/apis/requestPermissions.native.mjs} +7 -3
- package/dist/esm/pushNotifications/providers/pinpoint/apis/requestPermissions.native.mjs.map +1 -0
- package/{lib-esm/pushNotifications/providers/pinpoint/apis/setBadgeCount.js → dist/esm/pushNotifications/providers/pinpoint/apis/setBadgeCount.mjs} +6 -2
- package/dist/esm/pushNotifications/providers/pinpoint/apis/setBadgeCount.mjs.map +1 -0
- package/{lib-esm/pushNotifications/providers/pinpoint/apis/setBadgeCount.native.js → dist/esm/pushNotifications/providers/pinpoint/apis/setBadgeCount.native.mjs} +7 -3
- package/dist/esm/pushNotifications/providers/pinpoint/apis/setBadgeCount.native.mjs.map +1 -0
- package/dist/esm/pushNotifications/providers/pinpoint/index.mjs +12 -0
- package/dist/esm/pushNotifications/providers/pinpoint/index.mjs.map +1 -0
- package/dist/esm/pushNotifications/providers/pinpoint/types/analytics.mjs +2 -0
- package/dist/esm/pushNotifications/providers/pinpoint/types/analytics.mjs.map +1 -0
- package/dist/esm/pushNotifications/providers/pinpoint/types/apis.mjs +2 -0
- package/dist/esm/pushNotifications/providers/pinpoint/types/apis.mjs.map +1 -0
- package/dist/esm/pushNotifications/providers/pinpoint/types/index.mjs +2 -0
- package/dist/esm/pushNotifications/providers/pinpoint/types/index.mjs.map +1 -0
- package/dist/esm/pushNotifications/providers/pinpoint/types/inputs.mjs +2 -0
- package/dist/esm/pushNotifications/providers/pinpoint/types/inputs.mjs.map +1 -0
- package/dist/esm/pushNotifications/providers/pinpoint/types/options.mjs +2 -0
- package/dist/esm/pushNotifications/providers/pinpoint/types/options.mjs.map +1 -0
- package/dist/esm/pushNotifications/providers/pinpoint/types/outputs.mjs +2 -0
- package/dist/esm/pushNotifications/providers/pinpoint/types/outputs.mjs.map +1 -0
- package/dist/esm/pushNotifications/providers/pinpoint/types/pushNotifications.mjs +2 -0
- package/dist/esm/pushNotifications/providers/pinpoint/types/pushNotifications.mjs.map +1 -0
- package/{lib-esm/pushNotifications/providers/pinpoint/utils/createMessageEventRecorder.js → dist/esm/pushNotifications/providers/pinpoint/utils/createMessageEventRecorder.mjs} +12 -7
- package/dist/esm/pushNotifications/providers/pinpoint/utils/createMessageEventRecorder.mjs.map +1 -0
- package/{lib-esm/pushNotifications/providers/pinpoint/utils/getAnalyticsEvent.js → dist/esm/pushNotifications/providers/pinpoint/utils/getAnalyticsEvent.mjs} +4 -1
- package/dist/esm/pushNotifications/providers/pinpoint/utils/getAnalyticsEvent.mjs.map +1 -0
- package/{lib-esm/pushNotifications/providers/pinpoint/utils/getChannelType.js → dist/esm/pushNotifications/providers/pinpoint/utils/getChannelType.mjs} +7 -3
- package/dist/esm/pushNotifications/providers/pinpoint/utils/getChannelType.mjs.map +1 -0
- package/dist/esm/pushNotifications/providers/pinpoint/utils/index.mjs +5 -0
- package/dist/esm/pushNotifications/providers/pinpoint/utils/index.mjs.map +1 -0
- package/{lib-esm/pushNotifications/providers/pinpoint/utils/resolveConfig.js → dist/esm/pushNotifications/providers/pinpoint/utils/resolveConfig.mjs} +8 -3
- package/dist/esm/pushNotifications/providers/pinpoint/utils/resolveConfig.mjs.map +1 -0
- package/{lib-esm/pushNotifications/types/errors.js → dist/esm/pushNotifications/types/errors.mjs} +4 -1
- package/dist/esm/pushNotifications/types/errors.mjs.map +1 -0
- package/dist/esm/pushNotifications/types/index.mjs +2 -0
- package/dist/esm/pushNotifications/types/index.mjs.map +1 -0
- package/dist/esm/pushNotifications/types/inputs.mjs +2 -0
- package/dist/esm/pushNotifications/types/inputs.mjs.map +1 -0
- package/dist/esm/pushNotifications/types/module.mjs +2 -0
- package/dist/esm/pushNotifications/types/module.mjs.map +1 -0
- package/dist/esm/pushNotifications/types/options.mjs +2 -0
- package/dist/esm/pushNotifications/types/options.mjs.map +1 -0
- package/dist/esm/pushNotifications/types/outputs.mjs +2 -0
- package/dist/esm/pushNotifications/types/outputs.mjs.map +1 -0
- package/dist/esm/pushNotifications/types/pushNotifications.mjs +2 -0
- package/dist/esm/pushNotifications/types/pushNotifications.mjs.map +1 -0
- package/dist/esm/pushNotifications/utils/getPushNotificationUserAgentString.mjs +11 -0
- package/dist/esm/pushNotifications/utils/getPushNotificationUserAgentString.mjs.map +1 -0
- package/dist/esm/pushNotifications/utils/index.mjs +5 -0
- package/dist/esm/pushNotifications/utils/index.mjs.map +1 -0
- package/{lib-esm/pushNotifications/utils/initializationManager.js → dist/esm/pushNotifications/utils/initializationManager.mjs} +5 -2
- package/dist/esm/pushNotifications/utils/initializationManager.mjs.map +1 -0
- package/{lib/inAppMessaging/providers/pinpoint → dist/esm/pushNotifications}/utils/resolveCredentials.d.ts +1 -1
- package/{lib-esm/pushNotifications/utils/resolveCredentials.js → dist/esm/pushNotifications/utils/resolveCredentials.mjs} +7 -3
- package/dist/esm/pushNotifications/utils/resolveCredentials.mjs.map +1 -0
- package/{lib-esm/pushNotifications/utils/tokenManager.js → dist/esm/pushNotifications/utils/tokenManager.mjs} +5 -2
- package/dist/esm/pushNotifications/utils/tokenManager.mjs.map +1 -0
- package/in-app-messaging/package.json +5 -4
- package/in-app-messaging/pinpoint/package.json +5 -4
- package/package.json +44 -40
- package/push-notifications/package.json +5 -4
- package/push-notifications/pinpoint/package.json +5 -4
- package/src/inAppMessaging/providers/pinpoint/apis/dispatchEvent.ts +1 -1
- package/src/inAppMessaging/providers/pinpoint/utils/helpers.ts +1 -1
- package/src/pushNotifications/errors/errorHelpers.ts +1 -1
- package/src/pushNotifications/utils/resolveCredentials.ts +4 -1
- package/lib/eventListeners/eventListeners.d.ts +0 -4
- package/lib/eventListeners/index.d.ts +0 -2
- package/lib/eventListeners/types.d.ts +0 -10
- package/lib/inAppMessaging/errors/InAppMessagingError.d.ts +0 -7
- package/lib/inAppMessaging/errors/assertServiceError.d.ts +0 -2
- package/lib/inAppMessaging/errors/assertValidationError.d.ts +0 -5
- package/lib/inAppMessaging/errors/index.d.ts +0 -4
- package/lib/inAppMessaging/errors/validation.d.ts +0 -8
- package/lib/inAppMessaging/index.d.ts +0 -2
- package/lib/inAppMessaging/providers/pinpoint/apis/clearMessages.d.ts +0 -13
- package/lib/inAppMessaging/providers/pinpoint/apis/dispatchEvent.d.ts +0 -26
- package/lib/inAppMessaging/providers/pinpoint/apis/identifyUser.d.ts +0 -51
- package/lib/inAppMessaging/providers/pinpoint/apis/index.d.ts +0 -11
- package/lib/inAppMessaging/providers/pinpoint/apis/initializeInAppMessaging.d.ts +0 -12
- package/lib/inAppMessaging/providers/pinpoint/apis/notifyMessageInteraction.d.ts +0 -16
- package/lib/inAppMessaging/providers/pinpoint/apis/onMessageActionTaken.d.ts +0 -18
- package/lib/inAppMessaging/providers/pinpoint/apis/onMessageDismissed.d.ts +0 -18
- package/lib/inAppMessaging/providers/pinpoint/apis/onMessageDisplayed.d.ts +0 -18
- package/lib/inAppMessaging/providers/pinpoint/apis/onMessageReceived.d.ts +0 -18
- package/lib/inAppMessaging/providers/pinpoint/apis/setConflictHandler.d.ts +0 -32
- package/lib/inAppMessaging/providers/pinpoint/apis/syncMessages.d.ts +0 -16
- package/lib/inAppMessaging/providers/pinpoint/index.d.ts +0 -2
- package/lib/inAppMessaging/providers/pinpoint/types/index.d.ts +0 -4
- package/lib/inAppMessaging/providers/pinpoint/types/inputs.d.ts +0 -37
- package/lib/inAppMessaging/providers/pinpoint/types/options.d.ts +0 -5
- package/lib/inAppMessaging/providers/pinpoint/types/outputs.d.ts +0 -17
- package/lib/inAppMessaging/providers/pinpoint/types/types.d.ts +0 -19
- package/lib/inAppMessaging/providers/pinpoint/utils/constants.d.ts +0 -4
- package/lib/inAppMessaging/providers/pinpoint/utils/helpers.d.ts +0 -17
- package/lib/inAppMessaging/providers/pinpoint/utils/index.d.ts +0 -5
- package/lib/inAppMessaging/providers/pinpoint/utils/messageProcessingHelpers.d.ts +0 -6
- package/lib/inAppMessaging/providers/pinpoint/utils/resolveConfig.d.ts +0 -7
- package/lib/inAppMessaging/providers/pinpoint/utils/userAgent.d.ts +0 -4
- package/lib/inAppMessaging/types/event.d.ts +0 -6
- package/lib/inAppMessaging/types/index.d.ts +0 -4
- package/lib/inAppMessaging/types/inputs.d.ts +0 -19
- package/lib/inAppMessaging/types/message.d.ts +0 -44
- package/lib/inAppMessaging/types/options.d.ts +0 -4
- package/lib/inAppMessaging/utils/index.d.ts +0 -1
- package/lib/inAppMessaging/utils/statusHelpers.d.ts +0 -13
- package/lib/index.d.ts +0 -0
- package/lib/index.js +0 -3
- package/lib/pushNotifications/errors/PushNotificationError.d.ts +0 -4
- package/lib/pushNotifications/errors/errorHelpers.d.ts +0 -9
- package/lib/pushNotifications/errors/index.d.ts +0 -2
- package/lib/pushNotifications/index.d.ts +0 -3
- package/lib/pushNotifications/providers/pinpoint/apis/getBadgeCount.d.ts +0 -14
- package/lib/pushNotifications/providers/pinpoint/apis/getBadgeCount.native.d.ts +0 -2
- package/lib/pushNotifications/providers/pinpoint/apis/getLaunchNotification.d.ts +0 -18
- package/lib/pushNotifications/providers/pinpoint/apis/getLaunchNotification.native.d.ts +0 -2
- package/lib/pushNotifications/providers/pinpoint/apis/getPermissionStatus.d.ts +0 -27
- package/lib/pushNotifications/providers/pinpoint/apis/getPermissionStatus.native.d.ts +0 -2
- package/lib/pushNotifications/providers/pinpoint/apis/identifyUser.d.ts +0 -53
- package/lib/pushNotifications/providers/pinpoint/apis/identifyUser.native.d.ts +0 -2
- package/lib/pushNotifications/providers/pinpoint/apis/index.d.ts +0 -11
- package/lib/pushNotifications/providers/pinpoint/apis/initializePushNotifications.d.ts +0 -17
- package/lib/pushNotifications/providers/pinpoint/apis/initializePushNotifications.native.d.ts +0 -1
- package/lib/pushNotifications/providers/pinpoint/apis/onNotificationOpened.d.ts +0 -27
- package/lib/pushNotifications/providers/pinpoint/apis/onNotificationOpened.native.d.ts +0 -2
- package/lib/pushNotifications/providers/pinpoint/apis/onNotificationReceivedInBackground.d.ts +0 -43
- package/lib/pushNotifications/providers/pinpoint/apis/onNotificationReceivedInBackground.native.d.ts +0 -2
- package/lib/pushNotifications/providers/pinpoint/apis/onNotificationReceivedInForeground.d.ts +0 -27
- package/lib/pushNotifications/providers/pinpoint/apis/onNotificationReceivedInForeground.native.d.ts +0 -2
- package/lib/pushNotifications/providers/pinpoint/apis/onTokenReceived.d.ts +0 -28
- package/lib/pushNotifications/providers/pinpoint/apis/onTokenReceived.native.d.ts +0 -2
- package/lib/pushNotifications/providers/pinpoint/apis/requestPermissions.d.ts +0 -32
- package/lib/pushNotifications/providers/pinpoint/apis/requestPermissions.native.d.ts +0 -2
- package/lib/pushNotifications/providers/pinpoint/apis/setBadgeCount.d.ts +0 -14
- package/lib/pushNotifications/providers/pinpoint/apis/setBadgeCount.native.d.ts +0 -2
- package/lib/pushNotifications/providers/pinpoint/index.d.ts +0 -3
- package/lib/pushNotifications/providers/pinpoint/types/analytics.d.ts +0 -6
- package/lib/pushNotifications/providers/pinpoint/types/apis.d.ts +0 -13
- package/lib/pushNotifications/providers/pinpoint/types/index.d.ts +0 -6
- package/lib/pushNotifications/providers/pinpoint/types/inputs.d.ts +0 -9
- package/lib/pushNotifications/providers/pinpoint/types/options.d.ts +0 -5
- package/lib/pushNotifications/providers/pinpoint/types/outputs.d.ts +0 -9
- package/lib/pushNotifications/providers/pinpoint/types/pushNotifications.d.ts +0 -2
- package/lib/pushNotifications/providers/pinpoint/utils/createMessageEventRecorder.d.ts +0 -6
- package/lib/pushNotifications/providers/pinpoint/utils/getAnalyticsEvent.d.ts +0 -7
- package/lib/pushNotifications/providers/pinpoint/utils/getChannelType.d.ts +0 -5
- package/lib/pushNotifications/providers/pinpoint/utils/index.d.ts +0 -4
- package/lib/pushNotifications/providers/pinpoint/utils/resolveConfig.d.ts +0 -7
- package/lib/pushNotifications/types/errors.d.ts +0 -3
- package/lib/pushNotifications/types/index.d.ts +0 -6
- package/lib/pushNotifications/types/index.js +0 -24
- package/lib/pushNotifications/types/inputs.d.ts +0 -24
- package/lib/pushNotifications/types/module.d.ts +0 -31
- package/lib/pushNotifications/types/options.d.ts +0 -4
- package/lib/pushNotifications/types/outputs.d.ts +0 -10
- package/lib/pushNotifications/types/pushNotifications.d.ts +0 -4
- package/lib/pushNotifications/utils/getPushNotificationUserAgentString.d.ts +0 -2
- package/lib/pushNotifications/utils/index.d.ts +0 -4
- package/lib/pushNotifications/utils/initializationManager.d.ts +0 -12
- package/lib/pushNotifications/utils/resolveCredentials.d.ts +0 -7
- package/lib/pushNotifications/utils/tokenManager.d.ts +0 -12
- package/lib/tsconfig.tsbuildinfo +0 -1
- package/lib-esm/eventListeners/index.js +0 -3
- package/lib-esm/eventListeners/types.js +0 -3
- package/lib-esm/inAppMessaging/errors/index.js +0 -6
- package/lib-esm/inAppMessaging/index.js +0 -3
- package/lib-esm/inAppMessaging/providers/pinpoint/apis/index.js +0 -13
- package/lib-esm/inAppMessaging/providers/pinpoint/index.js +0 -3
- package/lib-esm/inAppMessaging/providers/pinpoint/types/index.js +0 -3
- package/lib-esm/inAppMessaging/providers/pinpoint/types/inputs.js +0 -3
- package/lib-esm/inAppMessaging/providers/pinpoint/types/options.js +0 -3
- package/lib-esm/inAppMessaging/providers/pinpoint/types/outputs.js +0 -3
- package/lib-esm/inAppMessaging/providers/pinpoint/utils/constants.js +0 -6
- package/lib-esm/inAppMessaging/providers/pinpoint/utils/index.js +0 -7
- package/lib-esm/inAppMessaging/providers/pinpoint/utils/resolveCredentials.d.ts +0 -7
- package/lib-esm/inAppMessaging/providers/pinpoint/utils/userAgent.js +0 -15
- package/lib-esm/inAppMessaging/types/event.js +0 -3
- package/lib-esm/inAppMessaging/types/index.js +0 -3
- package/lib-esm/inAppMessaging/types/inputs.js +0 -3
- package/lib-esm/inAppMessaging/types/message.js +0 -3
- package/lib-esm/inAppMessaging/types/options.js +0 -3
- package/lib-esm/inAppMessaging/utils/index.js +0 -3
- package/lib-esm/inAppMessaging/utils/statusHelpers.js +0 -21
- package/lib-esm/index.d.ts +0 -0
- package/lib-esm/index.js +0 -3
- package/lib-esm/pushNotifications/errors/index.js +0 -4
- package/lib-esm/pushNotifications/index.js +0 -4
- package/lib-esm/pushNotifications/providers/pinpoint/apis/index.js +0 -13
- package/lib-esm/pushNotifications/providers/pinpoint/index.js +0 -3
- package/lib-esm/pushNotifications/providers/pinpoint/types/analytics.js +0 -3
- package/lib-esm/pushNotifications/providers/pinpoint/types/apis.js +0 -3
- package/lib-esm/pushNotifications/providers/pinpoint/types/index.js +0 -3
- package/lib-esm/pushNotifications/providers/pinpoint/types/inputs.js +0 -3
- package/lib-esm/pushNotifications/providers/pinpoint/types/options.js +0 -3
- package/lib-esm/pushNotifications/providers/pinpoint/types/outputs.js +0 -3
- package/lib-esm/pushNotifications/providers/pinpoint/types/pushNotifications.js +0 -3
- package/lib-esm/pushNotifications/providers/pinpoint/utils/index.js +0 -6
- package/lib-esm/pushNotifications/types/index.js +0 -8
- package/lib-esm/pushNotifications/types/inputs.js +0 -3
- package/lib-esm/pushNotifications/types/module.js +0 -3
- package/lib-esm/pushNotifications/types/options.js +0 -3
- package/lib-esm/pushNotifications/types/outputs.js +0 -3
- package/lib-esm/pushNotifications/types/pushNotifications.js +0 -3
- package/lib-esm/pushNotifications/utils/getPushNotificationUserAgentString.js +0 -7
- package/lib-esm/pushNotifications/utils/index.js +0 -6
- package/lib-esm/tsconfig.tsbuildinfo +0 -1
- /package/{lib-esm → dist/esm}/eventListeners/eventListeners.d.ts +0 -0
- /package/{lib-esm → dist/esm}/eventListeners/index.d.ts +0 -0
- /package/{lib-esm → dist/esm}/eventListeners/types.d.ts +0 -0
- /package/{lib-esm → dist/esm}/inAppMessaging/errors/InAppMessagingError.d.ts +0 -0
- /package/{lib-esm → dist/esm}/inAppMessaging/errors/assertServiceError.d.ts +0 -0
- /package/{lib-esm → dist/esm}/inAppMessaging/errors/assertValidationError.d.ts +0 -0
- /package/{lib-esm → dist/esm}/inAppMessaging/errors/index.d.ts +0 -0
- /package/{lib-esm → dist/esm}/inAppMessaging/errors/validation.d.ts +0 -0
- /package/{lib-esm → dist/esm}/inAppMessaging/index.d.ts +0 -0
- /package/{lib-esm → dist/esm}/inAppMessaging/providers/pinpoint/apis/clearMessages.d.ts +0 -0
- /package/{lib-esm → dist/esm}/inAppMessaging/providers/pinpoint/apis/dispatchEvent.d.ts +0 -0
- /package/{lib-esm → dist/esm}/inAppMessaging/providers/pinpoint/apis/identifyUser.d.ts +0 -0
- /package/{lib-esm → dist/esm}/inAppMessaging/providers/pinpoint/apis/index.d.ts +0 -0
- /package/{lib-esm → dist/esm}/inAppMessaging/providers/pinpoint/apis/initializeInAppMessaging.d.ts +0 -0
- /package/{lib-esm → dist/esm}/inAppMessaging/providers/pinpoint/apis/notifyMessageInteraction.d.ts +0 -0
- /package/{lib-esm → dist/esm}/inAppMessaging/providers/pinpoint/apis/onMessageActionTaken.d.ts +0 -0
- /package/{lib-esm → dist/esm}/inAppMessaging/providers/pinpoint/apis/onMessageDismissed.d.ts +0 -0
- /package/{lib-esm → dist/esm}/inAppMessaging/providers/pinpoint/apis/onMessageDisplayed.d.ts +0 -0
- /package/{lib-esm → dist/esm}/inAppMessaging/providers/pinpoint/apis/onMessageReceived.d.ts +0 -0
- /package/{lib-esm → dist/esm}/inAppMessaging/providers/pinpoint/apis/setConflictHandler.d.ts +0 -0
- /package/{lib-esm → dist/esm}/inAppMessaging/providers/pinpoint/apis/syncMessages.d.ts +0 -0
- /package/{lib-esm → dist/esm}/inAppMessaging/providers/pinpoint/index.d.ts +0 -0
- /package/{lib-esm → dist/esm}/inAppMessaging/providers/pinpoint/types/index.d.ts +0 -0
- /package/{lib-esm → dist/esm}/inAppMessaging/providers/pinpoint/types/inputs.d.ts +0 -0
- /package/{lib-esm → dist/esm}/inAppMessaging/providers/pinpoint/types/options.d.ts +0 -0
- /package/{lib-esm → dist/esm}/inAppMessaging/providers/pinpoint/types/outputs.d.ts +0 -0
- /package/{lib-esm → dist/esm}/inAppMessaging/providers/pinpoint/types/types.d.ts +0 -0
- /package/{lib-esm → dist/esm}/inAppMessaging/providers/pinpoint/utils/constants.d.ts +0 -0
- /package/{lib-esm → dist/esm}/inAppMessaging/providers/pinpoint/utils/helpers.d.ts +0 -0
- /package/{lib-esm → dist/esm}/inAppMessaging/providers/pinpoint/utils/index.d.ts +0 -0
- /package/{lib-esm → dist/esm}/inAppMessaging/providers/pinpoint/utils/messageProcessingHelpers.d.ts +0 -0
- /package/{lib-esm → dist/esm}/inAppMessaging/providers/pinpoint/utils/resolveConfig.d.ts +0 -0
- /package/{lib-esm → dist/esm}/inAppMessaging/providers/pinpoint/utils/userAgent.d.ts +0 -0
- /package/{lib-esm → dist/esm}/inAppMessaging/types/event.d.ts +0 -0
- /package/{lib-esm → dist/esm}/inAppMessaging/types/index.d.ts +0 -0
- /package/{lib-esm → dist/esm}/inAppMessaging/types/inputs.d.ts +0 -0
- /package/{lib-esm → dist/esm}/inAppMessaging/types/message.d.ts +0 -0
- /package/{lib-esm → dist/esm}/inAppMessaging/types/options.d.ts +0 -0
- /package/{lib-esm → dist/esm}/inAppMessaging/utils/index.d.ts +0 -0
- /package/{lib-esm → dist/esm}/inAppMessaging/utils/statusHelpers.d.ts +0 -0
- /package/{lib-esm → dist/esm}/pushNotifications/errors/PushNotificationError.d.ts +0 -0
- /package/{lib-esm → dist/esm}/pushNotifications/errors/errorHelpers.d.ts +0 -0
- /package/{lib-esm → dist/esm}/pushNotifications/errors/index.d.ts +0 -0
- /package/{lib-esm → dist/esm}/pushNotifications/index.d.ts +0 -0
- /package/{lib-esm → dist/esm}/pushNotifications/providers/pinpoint/apis/getBadgeCount.d.ts +0 -0
- /package/{lib-esm → dist/esm}/pushNotifications/providers/pinpoint/apis/getBadgeCount.native.d.ts +0 -0
- /package/{lib-esm → dist/esm}/pushNotifications/providers/pinpoint/apis/getLaunchNotification.d.ts +0 -0
- /package/{lib-esm → dist/esm}/pushNotifications/providers/pinpoint/apis/getLaunchNotification.native.d.ts +0 -0
- /package/{lib-esm → dist/esm}/pushNotifications/providers/pinpoint/apis/getPermissionStatus.d.ts +0 -0
- /package/{lib-esm → dist/esm}/pushNotifications/providers/pinpoint/apis/getPermissionStatus.native.d.ts +0 -0
- /package/{lib-esm → dist/esm}/pushNotifications/providers/pinpoint/apis/identifyUser.d.ts +0 -0
- /package/{lib-esm → dist/esm}/pushNotifications/providers/pinpoint/apis/identifyUser.native.d.ts +0 -0
- /package/{lib-esm → dist/esm}/pushNotifications/providers/pinpoint/apis/index.d.ts +0 -0
- /package/{lib-esm → dist/esm}/pushNotifications/providers/pinpoint/apis/initializePushNotifications.d.ts +0 -0
- /package/{lib-esm → dist/esm}/pushNotifications/providers/pinpoint/apis/initializePushNotifications.native.d.ts +0 -0
- /package/{lib-esm → dist/esm}/pushNotifications/providers/pinpoint/apis/onNotificationOpened.d.ts +0 -0
- /package/{lib-esm → dist/esm}/pushNotifications/providers/pinpoint/apis/onNotificationOpened.native.d.ts +0 -0
- /package/{lib-esm → dist/esm}/pushNotifications/providers/pinpoint/apis/onNotificationReceivedInBackground.d.ts +0 -0
- /package/{lib-esm → dist/esm}/pushNotifications/providers/pinpoint/apis/onNotificationReceivedInBackground.native.d.ts +0 -0
- /package/{lib-esm → dist/esm}/pushNotifications/providers/pinpoint/apis/onNotificationReceivedInForeground.d.ts +0 -0
- /package/{lib-esm → dist/esm}/pushNotifications/providers/pinpoint/apis/onNotificationReceivedInForeground.native.d.ts +0 -0
- /package/{lib-esm → dist/esm}/pushNotifications/providers/pinpoint/apis/onTokenReceived.d.ts +0 -0
- /package/{lib-esm → dist/esm}/pushNotifications/providers/pinpoint/apis/onTokenReceived.native.d.ts +0 -0
- /package/{lib-esm → dist/esm}/pushNotifications/providers/pinpoint/apis/requestPermissions.d.ts +0 -0
- /package/{lib-esm → dist/esm}/pushNotifications/providers/pinpoint/apis/requestPermissions.native.d.ts +0 -0
- /package/{lib-esm → dist/esm}/pushNotifications/providers/pinpoint/apis/setBadgeCount.d.ts +0 -0
- /package/{lib-esm → dist/esm}/pushNotifications/providers/pinpoint/apis/setBadgeCount.native.d.ts +0 -0
- /package/{lib-esm → dist/esm}/pushNotifications/providers/pinpoint/index.d.ts +0 -0
- /package/{lib-esm → dist/esm}/pushNotifications/providers/pinpoint/types/analytics.d.ts +0 -0
- /package/{lib-esm → dist/esm}/pushNotifications/providers/pinpoint/types/apis.d.ts +0 -0
- /package/{lib-esm → dist/esm}/pushNotifications/providers/pinpoint/types/index.d.ts +0 -0
- /package/{lib-esm → dist/esm}/pushNotifications/providers/pinpoint/types/inputs.d.ts +0 -0
- /package/{lib-esm → dist/esm}/pushNotifications/providers/pinpoint/types/options.d.ts +0 -0
- /package/{lib-esm → dist/esm}/pushNotifications/providers/pinpoint/types/outputs.d.ts +0 -0
- /package/{lib-esm → dist/esm}/pushNotifications/providers/pinpoint/types/pushNotifications.d.ts +0 -0
- /package/{lib-esm → dist/esm}/pushNotifications/providers/pinpoint/utils/createMessageEventRecorder.d.ts +0 -0
- /package/{lib-esm → dist/esm}/pushNotifications/providers/pinpoint/utils/getAnalyticsEvent.d.ts +0 -0
- /package/{lib-esm → dist/esm}/pushNotifications/providers/pinpoint/utils/getChannelType.d.ts +0 -0
- /package/{lib-esm → dist/esm}/pushNotifications/providers/pinpoint/utils/index.d.ts +0 -0
- /package/{lib-esm → dist/esm}/pushNotifications/providers/pinpoint/utils/resolveConfig.d.ts +0 -0
- /package/{lib-esm → dist/esm}/pushNotifications/types/errors.d.ts +0 -0
- /package/{lib-esm → dist/esm}/pushNotifications/types/index.d.ts +0 -0
- /package/{lib-esm → dist/esm}/pushNotifications/types/inputs.d.ts +0 -0
- /package/{lib-esm → dist/esm}/pushNotifications/types/module.d.ts +0 -0
- /package/{lib-esm → dist/esm}/pushNotifications/types/options.d.ts +0 -0
- /package/{lib-esm → dist/esm}/pushNotifications/types/outputs.d.ts +0 -0
- /package/{lib-esm → dist/esm}/pushNotifications/types/pushNotifications.d.ts +0 -0
- /package/{lib-esm → dist/esm}/pushNotifications/utils/getPushNotificationUserAgentString.d.ts +0 -0
- /package/{lib-esm → dist/esm}/pushNotifications/utils/index.d.ts +0 -0
- /package/{lib-esm → dist/esm}/pushNotifications/utils/initializationManager.d.ts +0 -0
- /package/{lib-esm → dist/esm}/pushNotifications/utils/tokenManager.d.ts +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
2
3
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -59,3 +60,4 @@ const identifyUser = async () => {
|
|
|
59
60
|
throw new utils_1.PlatformNotSupportedError();
|
|
60
61
|
};
|
|
61
62
|
exports.identifyUser = identifyUser;
|
|
63
|
+
//# sourceMappingURL=identifyUser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
2
3
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -29,3 +30,4 @@ const identifyUser = async ({ userId, userProfile, options, }) => {
|
|
|
29
30
|
});
|
|
30
31
|
};
|
|
31
32
|
exports.identifyUser = identifyUser;
|
|
33
|
+
//# sourceMappingURL=identifyUser.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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,UAAU,CAAC,CAAC;AACpC,MAAM,YAAY,GAAG,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,GAAG,KAAK;AAClE,IAAI,IAAI,cAAc,CAAC,mBAAmB,GAAG,CAAC;AAC9C,IAAI,MAAM,EAAE,WAAW,EAAE,UAAU,EAAE,GAAG,MAAM,IAAI,OAAO,CAAC,kBAAkB,GAAG,CAAC;AAChF,IAAI,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI,OAAO,CAAC,aAAa,GAAG,CAAC;AAC3D,IAAI,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,GAAG,OAAO,IAAI,EAAE,CAAC;AAC9D,IAAI,IAAI,UAAU,CAAC,cAAc,EAAE;AACnC,QAAQ,OAAO;AACf,QAAQ,WAAW,EAAE,IAAI,OAAO,CAAC,cAAc,GAAG;AAClD,QAAQ,MAAM;AACd,QAAQ,KAAK;AACb,QAAQ,QAAQ,EAAE,kBAAkB;AACpC,QAAQ,WAAW;AACnB,QAAQ,UAAU;AAClB,QAAQ,MAAM;AACd,QAAQ,cAAc;AACtB,QAAQ,MAAM;AACd,QAAQ,WAAW;AACnB,QAAQ,cAAc,EAAE,IAAI,OAAO,CAAC,kCAAkC,EAAE,OAAO,CAAC,sBAAsB,CAAC,YAAY,CAAC;AACpH,KAAK,CAAC,CAAC;AACP,CAAC,CAAC;AACF,OAAO,CAAC,YAAY,GAAG,YAAY;;"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
2
3
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -25,3 +26,4 @@ var requestPermissions_1 = require("./requestPermissions");
|
|
|
25
26
|
Object.defineProperty(exports, "requestPermissions", { enumerable: true, get: function () { return requestPermissions_1.requestPermissions; } });
|
|
26
27
|
var setBadgeCount_1 = require("./setBadgeCount");
|
|
27
28
|
Object.defineProperty(exports, "setBadgeCount", { enumerable: true, get: function () { return setBadgeCount_1.setBadgeCount; } });
|
|
29
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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":"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"}
|
package/{lib → dist/cjs}/pushNotifications/providers/pinpoint/apis/initializePushNotifications.js
RENAMED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
2
3
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -23,3 +24,4 @@ const initializePushNotifications = () => {
|
|
|
23
24
|
throw new utils_1.PlatformNotSupportedError();
|
|
24
25
|
};
|
|
25
26
|
exports.initializePushNotifications = initializePushNotifications;
|
|
27
|
+
//# sourceMappingURL=initializePushNotifications.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
2
3
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -131,3 +132,4 @@ const registerDevice = async (address) => {
|
|
|
131
132
|
userAgentValue: (0, utils_2.getPushNotificationUserAgentString)(utils_1.PushNotificationAction.InitializePushNotifications),
|
|
132
133
|
});
|
|
133
134
|
};
|
|
135
|
+
//# sourceMappingURL=initializePushNotifications.native.js.map
|
package/dist/cjs/pushNotifications/providers/pinpoint/apis/initializePushNotifications.native.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
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":"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"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
2
3
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -33,3 +34,4 @@ const onNotificationOpened = () => {
|
|
|
33
34
|
throw new utils_1.PlatformNotSupportedError();
|
|
34
35
|
};
|
|
35
36
|
exports.onNotificationOpened = onNotificationOpened;
|
|
37
|
+
//# sourceMappingURL=onNotificationOpened.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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;;"}
|
package/{lib → dist/cjs}/pushNotifications/providers/pinpoint/apis/onNotificationOpened.native.js
RENAMED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
2
3
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -10,3 +11,4 @@ const onNotificationOpened = input => {
|
|
|
10
11
|
return (0, eventListeners_1.addEventListener)('notificationOpened', input);
|
|
11
12
|
};
|
|
12
13
|
exports.onNotificationOpened = onNotificationOpened;
|
|
14
|
+
//# sourceMappingURL=onNotificationOpened.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
2
3
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -49,3 +50,4 @@ const onNotificationReceivedInBackground = () => {
|
|
|
49
50
|
throw new utils_1.PlatformNotSupportedError();
|
|
50
51
|
};
|
|
51
52
|
exports.onNotificationReceivedInBackground = onNotificationReceivedInBackground;
|
|
53
|
+
//# sourceMappingURL=onNotificationReceivedInBackground.js.map
|
package/dist/cjs/pushNotifications/providers/pinpoint/apis/onNotificationReceivedInBackground.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
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,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
2
3
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -10,3 +11,4 @@ const onNotificationReceivedInBackground = input => {
|
|
|
10
11
|
return (0, eventListeners_1.addEventListener)('backgroundMessageReceived', input);
|
|
11
12
|
};
|
|
12
13
|
exports.onNotificationReceivedInBackground = onNotificationReceivedInBackground;
|
|
14
|
+
//# sourceMappingURL=onNotificationReceivedInBackground.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
2
3
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -33,3 +34,4 @@ const onNotificationReceivedInForeground = () => {
|
|
|
33
34
|
throw new utils_1.PlatformNotSupportedError();
|
|
34
35
|
};
|
|
35
36
|
exports.onNotificationReceivedInForeground = onNotificationReceivedInForeground;
|
|
37
|
+
//# sourceMappingURL=onNotificationReceivedInForeground.js.map
|
package/dist/cjs/pushNotifications/providers/pinpoint/apis/onNotificationReceivedInForeground.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
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,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
2
3
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -10,3 +11,4 @@ const onNotificationReceivedInForeground = input => {
|
|
|
10
11
|
return (0, eventListeners_1.addEventListener)('foregroundMessageReceived', input);
|
|
11
12
|
};
|
|
12
13
|
exports.onNotificationReceivedInForeground = onNotificationReceivedInForeground;
|
|
14
|
+
//# sourceMappingURL=onNotificationReceivedInForeground.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
2
3
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -34,3 +35,4 @@ const onTokenReceived = () => {
|
|
|
34
35
|
throw new utils_1.PlatformNotSupportedError();
|
|
35
36
|
};
|
|
36
37
|
exports.onTokenReceived = onTokenReceived;
|
|
38
|
+
//# sourceMappingURL=onTokenReceived.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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;;"}
|
package/{lib → dist/cjs}/pushNotifications/providers/pinpoint/apis/onTokenReceived.native.js
RENAMED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
2
3
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -10,3 +11,4 @@ const onTokenReceived = input => {
|
|
|
10
11
|
return (0, eventListeners_1.addEventListener)('tokenReceived', input);
|
|
11
12
|
};
|
|
12
13
|
exports.onTokenReceived = onTokenReceived;
|
|
14
|
+
//# sourceMappingURL=onTokenReceived.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
2
3
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -38,3 +39,4 @@ const requestPermissions = async () => {
|
|
|
38
39
|
throw new utils_1.PlatformNotSupportedError();
|
|
39
40
|
};
|
|
40
41
|
exports.requestPermissions = requestPermissions;
|
|
42
|
+
//# sourceMappingURL=requestPermissions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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;;"}
|
package/{lib → dist/cjs}/pushNotifications/providers/pinpoint/apis/requestPermissions.native.js
RENAMED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
2
3
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -11,3 +12,4 @@ const requestPermissions = async (input) => {
|
|
|
11
12
|
return requestPermissionsNative(input);
|
|
12
13
|
};
|
|
13
14
|
exports.requestPermissions = requestPermissions;
|
|
15
|
+
//# sourceMappingURL=requestPermissions.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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;;"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
2
3
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -20,3 +21,4 @@ const setBadgeCount = () => {
|
|
|
20
21
|
throw new utils_1.PlatformNotSupportedError();
|
|
21
22
|
};
|
|
22
23
|
exports.setBadgeCount = setBadgeCount;
|
|
24
|
+
//# sourceMappingURL=setBadgeCount.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setBadgeCount.js","sources":["../../../../../../src/pushNotifications/providers/pinpoint/apis/setBadgeCount.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 = void 0;\nconst utils_1 = require(\"@aws-amplify/core/internals/utils\");\n/**\n * Sets the current badge count (the number on the top right corner of your app's icon). Setting the badge count\n * to 0 (zero) will remove the badge from your app's icon. This function is safe to call (but will be ignored) even\n * 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 * @example\n * ```ts\n * setBadgeCount(42);\n * ```\n */\nconst setBadgeCount = () => {\n throw new utils_1.PlatformNotSupportedError();\n};\nexports.setBadgeCount = 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,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,MAAM;AAC5B,IAAI,MAAM,IAAI,OAAO,CAAC,yBAAyB,EAAE,CAAC;AAClD,CAAC,CAAC;AACF,OAAO,CAAC,aAAa,GAAG,aAAa;;"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
2
3
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -11,3 +12,4 @@ const setBadgeCount = input => {
|
|
|
11
12
|
setBadgeCountNative(input);
|
|
12
13
|
};
|
|
13
14
|
exports.setBadgeCount = setBadgeCount;
|
|
15
|
+
//# sourceMappingURL=setBadgeCount.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setBadgeCount.native.js","sources":["../../../../../../src/pushNotifications/providers/pinpoint/apis/setBadgeCount.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.setBadgeCount = void 0;\nconst react_native_1 = require(\"@aws-amplify/react-native\");\nconst errorHelpers_1 = require(\"../../../errors/errorHelpers\");\nconst { setBadgeCount: setBadgeCountNative } = (0, react_native_1.loadAmplifyPushNotification)();\nconst setBadgeCount = input => {\n (0, errorHelpers_1.assertIsInitialized)();\n setBadgeCountNative(input);\n};\nexports.setBadgeCount = 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,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,KAAK,IAAI;AAC/B,IAAI,IAAI,cAAc,CAAC,mBAAmB,GAAG,CAAC;AAC9C,IAAI,mBAAmB,CAAC,KAAK,CAAC,CAAC;AAC/B,CAAC,CAAC;AACF,OAAO,CAAC,aAAa,GAAG,aAAa;;"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
2
3
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -15,3 +16,4 @@ Object.defineProperty(exports, "onNotificationReceivedInForeground", { enumerabl
|
|
|
15
16
|
Object.defineProperty(exports, "onTokenReceived", { enumerable: true, get: function () { return apis_1.onTokenReceived; } });
|
|
16
17
|
Object.defineProperty(exports, "requestPermissions", { enumerable: true, get: function () { return apis_1.requestPermissions; } });
|
|
17
18
|
Object.defineProperty(exports, "setBadgeCount", { enumerable: true, get: function () { return apis_1.setBadgeCount; } });
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../src/pushNotifications/providers/pinpoint/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 apis_1 = require(\"./apis\");\nObject.defineProperty(exports, \"getBadgeCount\", { enumerable: true, get: function () { return apis_1.getBadgeCount; } });\nObject.defineProperty(exports, \"getLaunchNotification\", { enumerable: true, get: function () { return apis_1.getLaunchNotification; } });\nObject.defineProperty(exports, \"getPermissionStatus\", { enumerable: true, get: function () { return apis_1.getPermissionStatus; } });\nObject.defineProperty(exports, \"identifyUser\", { enumerable: true, get: function () { return apis_1.identifyUser; } });\nObject.defineProperty(exports, \"initializePushNotifications\", { enumerable: true, get: function () { return apis_1.initializePushNotifications; } });\nObject.defineProperty(exports, \"onNotificationOpened\", { enumerable: true, get: function () { return apis_1.onNotificationOpened; } });\nObject.defineProperty(exports, \"onNotificationReceivedInBackground\", { enumerable: true, get: function () { return apis_1.onNotificationReceivedInBackground; } });\nObject.defineProperty(exports, \"onNotificationReceivedInForeground\", { enumerable: true, get: function () { return apis_1.onNotificationReceivedInForeground; } });\nObject.defineProperty(exports, \"onTokenReceived\", { enumerable: true, get: function () { return apis_1.onTokenReceived; } });\nObject.defineProperty(exports, \"requestPermissions\", { enumerable: true, get: function () { return apis_1.requestPermissions; } });\nObject.defineProperty(exports, \"setBadgeCount\", { enumerable: true, get: function () { return apis_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,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;AAC/B,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,eAAe,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,MAAM,CAAC,aAAa,CAAC,EAAE,EAAE,CAAC,CAAC;AACzH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,uBAAuB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,MAAM,CAAC,qBAAqB,CAAC,EAAE,EAAE,CAAC,CAAC;AACzI,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,qBAAqB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,MAAM,CAAC,mBAAmB,CAAC,EAAE,EAAE,CAAC,CAAC;AACrI,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,cAAc,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,MAAM,CAAC,YAAY,CAAC,EAAE,EAAE,CAAC,CAAC;AACvH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,6BAA6B,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,MAAM,CAAC,2BAA2B,CAAC,EAAE,EAAE,CAAC,CAAC;AACrJ,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,sBAAsB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,MAAM,CAAC,oBAAoB,CAAC,EAAE,EAAE,CAAC,CAAC;AACvI,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,oCAAoC,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,MAAM,CAAC,kCAAkC,CAAC,EAAE,EAAE,CAAC,CAAC;AACnK,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,oCAAoC,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,MAAM,CAAC,kCAAkC,CAAC,EAAE,EAAE,CAAC,CAAC;AACnK,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,iBAAiB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,MAAM,CAAC,eAAe,CAAC,EAAE,EAAE,CAAC,CAAC;AAC7H,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,oBAAoB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,MAAM,CAAC,kBAAkB,CAAC,EAAE,EAAE,CAAC,CAAC;AACnI,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,eAAe,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,MAAM,CAAC,aAAa,CAAC,EAAE,EAAE,CAAC;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"analytics.js","sources":["../../../../../../src/pushNotifications/providers/pinpoint/types/analytics.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;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apis.js","sources":["../../../../../../src/pushNotifications/providers/pinpoint/types/apis.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;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../src/pushNotifications/providers/pinpoint/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;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inputs.js","sources":["../../../../../../src/pushNotifications/providers/pinpoint/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;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.js","sources":["../../../../../../src/pushNotifications/providers/pinpoint/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;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"outputs.js","sources":["../../../../../../src/pushNotifications/providers/pinpoint/types/outputs.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;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pushNotifications.js","sources":["../../../../../../src/pushNotifications/providers/pinpoint/types/pushNotifications.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;;"}
|
package/{lib → dist/cjs}/pushNotifications/providers/pinpoint/utils/createMessageEventRecorder.js
RENAMED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
2
3
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -41,3 +42,4 @@ const recordMessageEvent = async ({ appId, credentials, event, message, region,
|
|
|
41
42
|
region,
|
|
42
43
|
});
|
|
43
44
|
};
|
|
45
|
+
//# sourceMappingURL=createMessageEventRecorder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createMessageEventRecorder.js","sources":["../../../../../../src/pushNotifications/providers/pinpoint/utils/createMessageEventRecorder.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.createMessageEventRecorder = void 0;\nconst pinpoint_1 = require(\"@aws-amplify/core/internals/providers/pinpoint\");\nconst core_1 = require(\"@aws-amplify/core\");\nconst utils_1 = require(\"../../../utils\");\nconst getAnalyticsEvent_1 = require(\"./getAnalyticsEvent\");\nconst getChannelType_1 = require(\"./getChannelType\");\nconst resolveConfig_1 = require(\"./resolveConfig\");\nconst logger = new core_1.ConsoleLogger('PushNotification.recordMessageEvent');\n/**\n * @internal\n */\nconst createMessageEventRecorder = (event, callback) => async (message) => {\n const { credentials } = await (0, utils_1.resolveCredentials)();\n const { appId, region } = (0, resolveConfig_1.resolveConfig)();\n await recordMessageEvent({\n appId,\n credentials,\n event,\n message,\n region,\n });\n callback?.();\n};\nexports.createMessageEventRecorder = createMessageEventRecorder;\nconst recordMessageEvent = async ({ appId, credentials, event, message, region, }) => {\n const analyticsEvent = (0, getAnalyticsEvent_1.getAnalyticsEvent)(message, event);\n if (!analyticsEvent) {\n logger.debug('A notification missing event information was not recorded');\n return;\n }\n return (0, pinpoint_1.record)({\n appId,\n category: 'PushNotification',\n channelType: (0, getChannelType_1.getChannelType)(),\n credentials,\n event: analyticsEvent,\n region,\n });\n};\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,0BAA0B,GAAG,KAAK,CAAC,CAAC;AAC5C,MAAM,UAAU,GAAG,OAAO,CAAC,gDAAgD,CAAC,CAAC;AAC7E,MAAM,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;AAC5C,MAAM,OAAO,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;AAC1C,MAAM,mBAAmB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;AAC3D,MAAM,gBAAgB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;AACrD,MAAM,eAAe,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AACnD,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC,aAAa,CAAC,qCAAqC,CAAC,CAAC;AAC/E;AACA;AACA;AACA,MAAM,0BAA0B,GAAG,CAAC,KAAK,EAAE,QAAQ,KAAK,OAAO,OAAO,KAAK;AAC3E,IAAI,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,IAAI,OAAO,CAAC,kBAAkB,GAAG,CAAC;AACpE,IAAI,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI,eAAe,CAAC,aAAa,GAAG,CAAC;AACnE,IAAI,MAAM,kBAAkB,CAAC;AAC7B,QAAQ,KAAK;AACb,QAAQ,WAAW;AACnB,QAAQ,KAAK;AACb,QAAQ,OAAO;AACf,QAAQ,MAAM;AACd,KAAK,CAAC,CAAC;AACP,IAAI,QAAQ,IAAI,CAAC;AACjB,CAAC,CAAC;AACF,OAAO,CAAC,0BAA0B,GAAG,0BAA0B,CAAC;AAChE,MAAM,kBAAkB,GAAG,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,GAAG,KAAK;AACtF,IAAI,MAAM,cAAc,GAAG,IAAI,mBAAmB,CAAC,iBAAiB,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;AACtF,IAAI,IAAI,CAAC,cAAc,EAAE;AACzB,QAAQ,MAAM,CAAC,KAAK,CAAC,2DAA2D,CAAC,CAAC;AAClF,QAAQ,OAAO;AACf,KAAK;AACL,IAAI,OAAO,IAAI,UAAU,CAAC,MAAM,EAAE;AAClC,QAAQ,KAAK;AACb,QAAQ,QAAQ,EAAE,kBAAkB;AACpC,QAAQ,WAAW,EAAE,IAAI,gBAAgB,CAAC,cAAc,GAAG;AAC3D,QAAQ,WAAW;AACnB,QAAQ,KAAK,EAAE,cAAc;AAC7B,QAAQ,MAAM;AACd,KAAK,CAAC,CAAC;AACP,CAAC;;"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
2
3
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -54,3 +55,4 @@ const getAnalyticsEventAttributes = (data) => {
|
|
|
54
55
|
};
|
|
55
56
|
}
|
|
56
57
|
};
|
|
58
|
+
//# sourceMappingURL=getAnalyticsEvent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAnalyticsEvent.js","sources":["../../../../../../src/pushNotifications/providers/pinpoint/utils/getAnalyticsEvent.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.getAnalyticsEvent = void 0;\nconst ANDROID_CAMPAIGN_ACTIVITY_ID_KEY = 'pinpoint.campaign.campaign_activity_id';\nconst ANDROID_CAMPAIGN_ID_KEY = 'pinpoint.campaign.campaign_id';\nconst ANDROID_CAMPAIGN_TREATMENT_ID_KEY = 'pinpoint.campaign.treatment_id';\n/**\n * @internal\n */\nconst getAnalyticsEvent = ({ data }, event) => {\n if (!data) {\n return null;\n }\n const eventAttributes = getAnalyticsEventAttributes(data);\n if (!eventAttributes) {\n return null;\n }\n const { source, attributes } = eventAttributes;\n return {\n attributes,\n name: `${source}.${event}`,\n };\n};\nexports.getAnalyticsEvent = getAnalyticsEvent;\nconst getAnalyticsEventAttributes = (data) => {\n if (!data) {\n return;\n }\n if (data.hasOwnProperty(ANDROID_CAMPAIGN_ID_KEY)) {\n return {\n source: '_campaign',\n attributes: {\n campaign_activity_id: data[ANDROID_CAMPAIGN_ACTIVITY_ID_KEY],\n campaign_id: data[ANDROID_CAMPAIGN_ID_KEY],\n treatment_id: data[ANDROID_CAMPAIGN_TREATMENT_ID_KEY],\n },\n };\n }\n const pinpoint = typeof data.pinpoint === 'string'\n ? JSON.parse(data.pinpoint)\n : data.pinpoint;\n if (pinpoint?.campaign) {\n return {\n source: '_campaign',\n attributes: pinpoint.campaign,\n };\n }\n if (pinpoint?.journey) {\n return {\n source: '_journey',\n attributes: pinpoint.journey,\n };\n }\n};\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,iBAAiB,GAAG,KAAK,CAAC,CAAC;AACnC,MAAM,gCAAgC,GAAG,wCAAwC,CAAC;AAClF,MAAM,uBAAuB,GAAG,+BAA+B,CAAC;AAChE,MAAM,iCAAiC,GAAG,gCAAgC,CAAC;AAC3E;AACA;AACA;AACA,MAAM,iBAAiB,GAAG,CAAC,EAAE,IAAI,EAAE,EAAE,KAAK,KAAK;AAC/C,IAAI,IAAI,CAAC,IAAI,EAAE;AACf,QAAQ,OAAO,IAAI,CAAC;AACpB,KAAK;AACL,IAAI,MAAM,eAAe,GAAG,2BAA2B,CAAC,IAAI,CAAC,CAAC;AAC9D,IAAI,IAAI,CAAC,eAAe,EAAE;AAC1B,QAAQ,OAAO,IAAI,CAAC;AACpB,KAAK;AACL,IAAI,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,eAAe,CAAC;AACnD,IAAI,OAAO;AACX,QAAQ,UAAU;AAClB,QAAQ,IAAI,EAAE,CAAC,EAAE,MAAM,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;AAClC,KAAK,CAAC;AACN,CAAC,CAAC;AACF,OAAO,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;AAC9C,MAAM,2BAA2B,GAAG,CAAC,IAAI,KAAK;AAC9C,IAAI,IAAI,CAAC,IAAI,EAAE;AACf,QAAQ,OAAO;AACf,KAAK;AACL,IAAI,IAAI,IAAI,CAAC,cAAc,CAAC,uBAAuB,CAAC,EAAE;AACtD,QAAQ,OAAO;AACf,YAAY,MAAM,EAAE,WAAW;AAC/B,YAAY,UAAU,EAAE;AACxB,gBAAgB,oBAAoB,EAAE,IAAI,CAAC,gCAAgC,CAAC;AAC5E,gBAAgB,WAAW,EAAE,IAAI,CAAC,uBAAuB,CAAC;AAC1D,gBAAgB,YAAY,EAAE,IAAI,CAAC,iCAAiC,CAAC;AACrE,aAAa;AACb,SAAS,CAAC;AACV,KAAK;AACL,IAAI,MAAM,QAAQ,GAAG,OAAO,IAAI,CAAC,QAAQ,KAAK,QAAQ;AACtD,UAAU,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC;AACnC,UAAU,IAAI,CAAC,QAAQ,CAAC;AACxB,IAAI,IAAI,QAAQ,EAAE,QAAQ,EAAE;AAC5B,QAAQ,OAAO;AACf,YAAY,MAAM,EAAE,WAAW;AAC/B,YAAY,UAAU,EAAE,QAAQ,CAAC,QAAQ;AACzC,SAAS,CAAC;AACV,KAAK;AACL,IAAI,IAAI,QAAQ,EAAE,OAAO,EAAE;AAC3B,QAAQ,OAAO;AACf,YAAY,MAAM,EAAE,UAAU;AAC9B,YAAY,UAAU,EAAE,QAAQ,CAAC,OAAO;AACxC,SAAS,CAAC;AACV,KAAK;AACL,CAAC;;"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
2
3
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -23,3 +24,4 @@ const getChannelType = () => {
|
|
|
23
24
|
throw new utils_1.PlatformNotSupportedError();
|
|
24
25
|
};
|
|
25
26
|
exports.getChannelType = getChannelType;
|
|
27
|
+
//# sourceMappingURL=getChannelType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getChannelType.js","sources":["../../../../../../src/pushNotifications/providers/pinpoint/utils/getChannelType.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.getChannelType = void 0;\nconst utils_1 = require(\"@aws-amplify/core/internals/utils\");\nconst react_native_1 = require(\"@aws-amplify/react-native\");\nconst operatingSystem = (0, react_native_1.getOperatingSystem)();\nconst isAndroid = operatingSystem === 'android';\nconst isIos = operatingSystem === 'ios';\n/**\n * @internal\n */\nconst getChannelType = () => {\n if (isAndroid) {\n // FCM was previously known as GCM and continues to be the channel type in Pinpoint\n return 'GCM';\n }\n if (isIos) {\n // If building in debug mode, use the APNs sandbox\n return __DEV__ ? 'APNS_SANDBOX' : 'APNS';\n }\n throw new utils_1.PlatformNotSupportedError();\n};\nexports.getChannelType = getChannelType;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,cAAc,GAAG,KAAK,CAAC,CAAC;AAChC,MAAM,OAAO,GAAG,OAAO,CAAC,mCAAmC,CAAC,CAAC;AAC7D,MAAM,cAAc,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAC;AAC5D,MAAM,eAAe,GAAG,IAAI,cAAc,CAAC,kBAAkB,GAAG,CAAC;AACjE,MAAM,SAAS,GAAG,eAAe,KAAK,SAAS,CAAC;AAChD,MAAM,KAAK,GAAG,eAAe,KAAK,KAAK,CAAC;AACxC;AACA;AACA;AACA,MAAM,cAAc,GAAG,MAAM;AAC7B,IAAI,IAAI,SAAS,EAAE;AACnB;AACA,QAAQ,OAAO,KAAK,CAAC;AACrB,KAAK;AACL,IAAI,IAAI,KAAK,EAAE;AACf;AACA,QAAQ,OAAO,OAAO,GAAG,cAAc,GAAG,MAAM,CAAC;AACjD,KAAK;AACL,IAAI,MAAM,IAAI,OAAO,CAAC,yBAAyB,EAAE,CAAC;AAClD,CAAC,CAAC;AACF,OAAO,CAAC,cAAc,GAAG,cAAc;;"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
2
3
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -11,3 +12,4 @@ var getChannelType_1 = require("./getChannelType");
|
|
|
11
12
|
Object.defineProperty(exports, "getChannelType", { enumerable: true, get: function () { return getChannelType_1.getChannelType; } });
|
|
12
13
|
var resolveConfig_1 = require("./resolveConfig");
|
|
13
14
|
Object.defineProperty(exports, "resolveConfig", { enumerable: true, get: function () { return resolveConfig_1.resolveConfig; } });
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../src/pushNotifications/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.resolveConfig = exports.getChannelType = exports.getAnalyticsEvent = exports.createMessageEventRecorder = void 0;\nvar createMessageEventRecorder_1 = require(\"./createMessageEventRecorder\");\nObject.defineProperty(exports, \"createMessageEventRecorder\", { enumerable: true, get: function () { return createMessageEventRecorder_1.createMessageEventRecorder; } });\nvar getAnalyticsEvent_1 = require(\"./getAnalyticsEvent\");\nObject.defineProperty(exports, \"getAnalyticsEvent\", { enumerable: true, get: function () { return getAnalyticsEvent_1.getAnalyticsEvent; } });\nvar getChannelType_1 = require(\"./getChannelType\");\nObject.defineProperty(exports, \"getChannelType\", { enumerable: true, get: function () { return getChannelType_1.getChannelType; } });\nvar resolveConfig_1 = require(\"./resolveConfig\");\nObject.defineProperty(exports, \"resolveConfig\", { enumerable: true, get: function () { return resolveConfig_1.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,OAAO,CAAC,cAAc,GAAG,OAAO,CAAC,iBAAiB,GAAG,OAAO,CAAC,0BAA0B,GAAG,KAAK,CAAC,CAAC;AACzH,IAAI,4BAA4B,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAAC;AAC3E,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,4BAA4B,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,4BAA4B,CAAC,0BAA0B,CAAC,EAAE,EAAE,CAAC,CAAC;AACzK,IAAI,mBAAmB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;AACzD,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,mBAAmB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,mBAAmB,CAAC,iBAAiB,CAAC,EAAE,EAAE,CAAC,CAAC;AAC9I,IAAI,gBAAgB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;AACnD,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,gBAAgB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,gBAAgB,CAAC,cAAc,CAAC,EAAE,EAAE,CAAC,CAAC;AACrI,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;;"}
|