@aws-amplify/notifications 2.0.1-unstable.cfbde4c.0 → 2.0.2-unstable.51ed7b4.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 });
|
|
@@ -36,3 +37,4 @@ const addEventListener = (type, handler) => {
|
|
|
36
37
|
};
|
|
37
38
|
};
|
|
38
39
|
exports.addEventListener = addEventListener;
|
|
40
|
+
//# sourceMappingURL=eventListeners.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eventListeners.js","sources":["../../../src/eventListeners/eventListeners.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.addEventListener = exports.notifyEventListenersAndAwaitHandlers = exports.notifyEventListeners = void 0;\nconst eventListeners = {};\nconst notifyEventListeners = (type, ...args) => {\n eventListeners[type]?.forEach(listener => {\n listener.handleEvent(...args);\n });\n};\nexports.notifyEventListeners = notifyEventListeners;\nconst notifyEventListenersAndAwaitHandlers = (type, ...args) => Promise.all(Array.from(eventListeners[type] ?? []).map(async (listener) => {\n try {\n await listener.handleEvent(...args);\n }\n catch (err) {\n throw err;\n }\n}));\nexports.notifyEventListenersAndAwaitHandlers = notifyEventListenersAndAwaitHandlers;\nconst addEventListener = (type, handler) => {\n // If there is no listener set for the event type, just create it\n if (!eventListeners[type]) {\n eventListeners[type] = new Set();\n }\n const listener = {\n handleEvent: handler,\n remove: () => {\n eventListeners[type].delete(listener);\n },\n };\n eventListeners[type].add(listener);\n return {\n remove: () => listener.remove(),\n };\n};\nexports.addEventListener = addEventListener;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,gBAAgB,GAAG,OAAO,CAAC,oCAAoC,GAAG,OAAO,CAAC,oBAAoB,GAAG,KAAK,CAAC,CAAC;AAChH,MAAM,cAAc,GAAG,EAAE,CAAC;AAC1B,MAAM,oBAAoB,GAAG,CAAC,IAAI,EAAE,GAAG,IAAI,KAAK;AAChD,IAAI,cAAc,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,QAAQ,IAAI;AAC9C,QAAQ,QAAQ,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC;AACtC,KAAK,CAAC,CAAC;AACP,CAAC,CAAC;AACF,OAAO,CAAC,oBAAoB,GAAG,oBAAoB,CAAC;AACpD,MAAM,oCAAoC,GAAG,CAAC,IAAI,EAAE,GAAG,IAAI,KAAK,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,OAAO,QAAQ,KAAK;AAC3I,IAAI,IAAI;AACR,QAAQ,MAAM,QAAQ,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC;AAC5C,KAAK;AACL,IAAI,OAAO,GAAG,EAAE;AAChB,QAAQ,MAAM,GAAG,CAAC;AAClB,KAAK;AACL,CAAC,CAAC,CAAC,CAAC;AACJ,OAAO,CAAC,oCAAoC,GAAG,oCAAoC,CAAC;AACpF,MAAM,gBAAgB,GAAG,CAAC,IAAI,EAAE,OAAO,KAAK;AAC5C;AACA,IAAI,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE;AAC/B,QAAQ,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI,GAAG,EAAE,CAAC;AACzC,KAAK;AACL,IAAI,MAAM,QAAQ,GAAG;AACrB,QAAQ,WAAW,EAAE,OAAO;AAC5B,QAAQ,MAAM,EAAE,MAAM;AACtB,YAAY,cAAc,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;AAClD,SAAS;AACT,KAAK,CAAC;AACN,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACvC,IAAI,OAAO;AACX,QAAQ,MAAM,EAAE,MAAM,QAAQ,CAAC,MAAM,EAAE;AACvC,KAAK,CAAC;AACN,CAAC,CAAC;AACF,OAAO,CAAC,gBAAgB,GAAG,gBAAgB;;"}
|
|
@@ -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 });
|
|
@@ -7,3 +8,4 @@ var eventListeners_1 = require("./eventListeners");
|
|
|
7
8
|
Object.defineProperty(exports, "addEventListener", { enumerable: true, get: function () { return eventListeners_1.addEventListener; } });
|
|
8
9
|
Object.defineProperty(exports, "notifyEventListeners", { enumerable: true, get: function () { return eventListeners_1.notifyEventListeners; } });
|
|
9
10
|
Object.defineProperty(exports, "notifyEventListenersAndAwaitHandlers", { enumerable: true, get: function () { return eventListeners_1.notifyEventListenersAndAwaitHandlers; } });
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/eventListeners/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.notifyEventListenersAndAwaitHandlers = exports.notifyEventListeners = exports.addEventListener = void 0;\nvar eventListeners_1 = require(\"./eventListeners\");\nObject.defineProperty(exports, \"addEventListener\", { enumerable: true, get: function () { return eventListeners_1.addEventListener; } });\nObject.defineProperty(exports, \"notifyEventListeners\", { enumerable: true, get: function () { return eventListeners_1.notifyEventListeners; } });\nObject.defineProperty(exports, \"notifyEventListenersAndAwaitHandlers\", { enumerable: true, get: function () { return eventListeners_1.notifyEventListenersAndAwaitHandlers; } });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,oCAAoC,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,gBAAgB,GAAG,KAAK,CAAC,CAAC;AAChH,IAAI,gBAAgB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;AACnD,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,kBAAkB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,gBAAgB,CAAC,gBAAgB,CAAC,EAAE,EAAE,CAAC,CAAC;AACzI,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,sBAAsB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,gBAAgB,CAAC,oBAAoB,CAAC,EAAE,EAAE,CAAC,CAAC;AACjJ,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,sCAAsC,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,gBAAgB,CAAC,oCAAoC,CAAC,EAAE,EAAE,CAAC;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sources":["../../../src/eventListeners/types.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;"}
|
|
@@ -1,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 });
|
|
@@ -17,3 +18,4 @@ class InAppMessagingError extends utils_1.AmplifyError {
|
|
|
17
18
|
}
|
|
18
19
|
}
|
|
19
20
|
exports.InAppMessagingError = InAppMessagingError;
|
|
21
|
+
//# sourceMappingURL=InAppMessagingError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InAppMessagingError.js","sources":["../../../../src/inAppMessaging/errors/InAppMessagingError.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.InAppMessagingError = void 0;\nconst utils_1 = require(\"@aws-amplify/core/internals/utils\");\n/**\n * @internal\n */\nclass InAppMessagingError extends utils_1.AmplifyError {\n constructor(params) {\n super(params);\n // Hack for making the custom error class work when transpiled to es5\n // TODO: Delete the following 2 lines after we change the build target to >= es2015\n this.constructor = InAppMessagingError;\n Object.setPrototypeOf(this, InAppMessagingError.prototype);\n }\n}\nexports.InAppMessagingError = InAppMessagingError;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,mBAAmB,GAAG,KAAK,CAAC,CAAC;AACrC,MAAM,OAAO,GAAG,OAAO,CAAC,mCAAmC,CAAC,CAAC;AAC7D;AACA;AACA;AACA,MAAM,mBAAmB,SAAS,OAAO,CAAC,YAAY,CAAC;AACvD,IAAI,WAAW,CAAC,MAAM,EAAE;AACxB,QAAQ,KAAK,CAAC,MAAM,CAAC,CAAC;AACtB;AACA;AACA,QAAQ,IAAI,CAAC,WAAW,GAAG,mBAAmB,CAAC;AAC/C,QAAQ,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,mBAAmB,CAAC,SAAS,CAAC,CAAC;AACnE,KAAK;AACL,CAAC;AACD,OAAO,CAAC,mBAAmB,GAAG,mBAAmB;;"}
|
|
@@ -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 });
|
|
@@ -17,3 +18,4 @@ function assertServiceError(error) {
|
|
|
17
18
|
}
|
|
18
19
|
}
|
|
19
20
|
exports.assertServiceError = assertServiceError;
|
|
21
|
+
//# sourceMappingURL=assertServiceError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assertServiceError.js","sources":["../../../../src/inAppMessaging/errors/assertServiceError.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.assertServiceError = void 0;\nconst utils_1 = require(\"@aws-amplify/core/internals/utils\");\nconst InAppMessagingError_1 = require(\"./InAppMessagingError\");\nfunction assertServiceError(error) {\n if (!error ||\n error.name === 'Error' ||\n error instanceof TypeError) {\n throw new InAppMessagingError_1.InAppMessagingError({\n name: utils_1.AmplifyErrorCode.Unknown,\n message: 'An unknown error has ocurred.',\n underlyingError: error,\n });\n }\n}\nexports.assertServiceError = assertServiceError;\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,MAAM,qBAAqB,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC;AAC/D,SAAS,kBAAkB,CAAC,KAAK,EAAE;AACnC,IAAI,IAAI,CAAC,KAAK;AACd,QAAQ,KAAK,CAAC,IAAI,KAAK,OAAO;AAC9B,QAAQ,KAAK,YAAY,SAAS,EAAE;AACpC,QAAQ,MAAM,IAAI,qBAAqB,CAAC,mBAAmB,CAAC;AAC5D,YAAY,IAAI,EAAE,OAAO,CAAC,gBAAgB,CAAC,OAAO;AAClD,YAAY,OAAO,EAAE,+BAA+B;AACpD,YAAY,eAAe,EAAE,KAAK;AAClC,SAAS,CAAC,CAAC;AACX,KAAK;AACL,CAAC;AACD,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 });
|
|
@@ -15,3 +16,4 @@ function assertValidationError(assertion, name) {
|
|
|
15
16
|
}
|
|
16
17
|
}
|
|
17
18
|
exports.assertValidationError = assertValidationError;
|
|
19
|
+
//# sourceMappingURL=assertValidationError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assertValidationError.js","sources":["../../../../src/inAppMessaging/errors/assertValidationError.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.assertValidationError = void 0;\nconst InAppMessagingError_1 = require(\"./InAppMessagingError\");\nconst validation_1 = require(\"./validation\");\n/**\n * @internal\n */\nfunction assertValidationError(assertion, name) {\n const { message, recoverySuggestion } = validation_1.validationErrorMap[name];\n if (!assertion) {\n throw new InAppMessagingError_1.InAppMessagingError({ name, message, recoverySuggestion });\n }\n}\nexports.assertValidationError = assertValidationError;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,qBAAqB,GAAG,KAAK,CAAC,CAAC;AACvC,MAAM,qBAAqB,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC;AAC/D,MAAM,YAAY,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;AAC7C;AACA;AACA;AACA,SAAS,qBAAqB,CAAC,SAAS,EAAE,IAAI,EAAE;AAChD,IAAI,MAAM,EAAE,OAAO,EAAE,kBAAkB,EAAE,GAAG,YAAY,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;AAClF,IAAI,IAAI,CAAC,SAAS,EAAE;AACpB,QAAQ,MAAM,IAAI,qBAAqB,CAAC,mBAAmB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC,CAAC;AACnG,KAAK;AACL,CAAC;AACD,OAAO,CAAC,qBAAqB,GAAG,qBAAqB;;"}
|
|
@@ -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 });
|
|
@@ -12,3 +13,4 @@ Object.defineProperty(exports, "assertServiceError", { enumerable: true, get: fu
|
|
|
12
13
|
var validation_1 = require("./validation");
|
|
13
14
|
Object.defineProperty(exports, "InAppMessagingValidationErrorCode", { enumerable: true, get: function () { return validation_1.InAppMessagingValidationErrorCode; } });
|
|
14
15
|
Object.defineProperty(exports, "validationErrorMap", { enumerable: true, get: function () { return validation_1.validationErrorMap; } });
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/inAppMessaging/errors/index.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.validationErrorMap = exports.InAppMessagingValidationErrorCode = exports.assertServiceError = exports.assertValidationError = exports.InAppMessagingError = void 0;\nvar InAppMessagingError_1 = require(\"./InAppMessagingError\");\nObject.defineProperty(exports, \"InAppMessagingError\", { enumerable: true, get: function () { return InAppMessagingError_1.InAppMessagingError; } });\nvar assertValidationError_1 = require(\"./assertValidationError\");\nObject.defineProperty(exports, \"assertValidationError\", { enumerable: true, get: function () { return assertValidationError_1.assertValidationError; } });\nvar assertServiceError_1 = require(\"./assertServiceError\");\nObject.defineProperty(exports, \"assertServiceError\", { enumerable: true, get: function () { return assertServiceError_1.assertServiceError; } });\nvar validation_1 = require(\"./validation\");\nObject.defineProperty(exports, \"InAppMessagingValidationErrorCode\", { enumerable: true, get: function () { return validation_1.InAppMessagingValidationErrorCode; } });\nObject.defineProperty(exports, \"validationErrorMap\", { enumerable: true, get: function () { return validation_1.validationErrorMap; } });\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,OAAO,CAAC,iCAAiC,GAAG,OAAO,CAAC,kBAAkB,GAAG,OAAO,CAAC,qBAAqB,GAAG,OAAO,CAAC,mBAAmB,GAAG,KAAK,CAAC,CAAC;AAC3K,IAAI,qBAAqB,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC;AAC7D,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,qBAAqB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,qBAAqB,CAAC,mBAAmB,CAAC,EAAE,EAAE,CAAC,CAAC;AACpJ,IAAI,uBAAuB,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAC;AACjE,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,uBAAuB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,uBAAuB,CAAC,qBAAqB,CAAC,EAAE,EAAE,CAAC,CAAC;AAC1J,IAAI,oBAAoB,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;AAC3D,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,oBAAoB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,oBAAoB,CAAC,kBAAkB,CAAC,EAAE,EAAE,CAAC,CAAC;AACjJ,IAAI,YAAY,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;AAC3C,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,mCAAmC,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,YAAY,CAAC,iCAAiC,CAAC,EAAE,EAAE,CAAC,CAAC;AACvK,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,oBAAoB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,YAAY,CAAC,kBAAkB,CAAC,EAAE,EAAE,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 });
|
|
@@ -25,3 +26,4 @@ exports.validationErrorMap = {
|
|
|
25
26
|
recoverySuggestion: 'Please make sure to first call `initializePushNotifications`.',
|
|
26
27
|
},
|
|
27
28
|
};
|
|
29
|
+
//# sourceMappingURL=validation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validation.js","sources":["../../../../src/inAppMessaging/errors/validation.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.validationErrorMap = exports.InAppMessagingValidationErrorCode = void 0;\nvar InAppMessagingValidationErrorCode;\n(function (InAppMessagingValidationErrorCode) {\n InAppMessagingValidationErrorCode[\"NoAppId\"] = \"NoAppId\";\n InAppMessagingValidationErrorCode[\"NoCredentials\"] = \"NoCredentials\";\n InAppMessagingValidationErrorCode[\"NoRegion\"] = \"NoRegion\";\n InAppMessagingValidationErrorCode[\"NotInitialized\"] = \"NotInitialized\";\n})(InAppMessagingValidationErrorCode = exports.InAppMessagingValidationErrorCode || (exports.InAppMessagingValidationErrorCode = {}));\nexports.validationErrorMap = {\n [InAppMessagingValidationErrorCode.NoAppId]: {\n message: 'Missing application id.',\n },\n [InAppMessagingValidationErrorCode.NoCredentials]: {\n message: 'Credentials should not be empty.',\n },\n [InAppMessagingValidationErrorCode.NoRegion]: {\n message: 'Missing region.',\n },\n [InAppMessagingValidationErrorCode.NotInitialized]: {\n message: 'In-app messaging has not been initialized.',\n recoverySuggestion: 'Please make sure to first call `initializePushNotifications`.',\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,kBAAkB,GAAG,OAAO,CAAC,iCAAiC,GAAG,KAAK,CAAC,CAAC;AAChF,IAAI,iCAAiC,CAAC;AACtC,CAAC,UAAU,iCAAiC,EAAE;AAC9C,IAAI,iCAAiC,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC;AAC7D,IAAI,iCAAiC,CAAC,eAAe,CAAC,GAAG,eAAe,CAAC;AACzE,IAAI,iCAAiC,CAAC,UAAU,CAAC,GAAG,UAAU,CAAC;AAC/D,IAAI,iCAAiC,CAAC,gBAAgB,CAAC,GAAG,gBAAgB,CAAC;AAC3E,CAAC,EAAE,iCAAiC,GAAG,OAAO,CAAC,iCAAiC,KAAK,OAAO,CAAC,iCAAiC,GAAG,EAAE,CAAC,CAAC,CAAC;AACtI,OAAO,CAAC,kBAAkB,GAAG;AAC7B,IAAI,CAAC,iCAAiC,CAAC,OAAO,GAAG;AACjD,QAAQ,OAAO,EAAE,yBAAyB;AAC1C,KAAK;AACL,IAAI,CAAC,iCAAiC,CAAC,aAAa,GAAG;AACvD,QAAQ,OAAO,EAAE,kCAAkC;AACnD,KAAK;AACL,IAAI,CAAC,iCAAiC,CAAC,QAAQ,GAAG;AAClD,QAAQ,OAAO,EAAE,iBAAiB;AAClC,KAAK;AACL,IAAI,CAAC,iCAAiC,CAAC,cAAc,GAAG;AACxD,QAAQ,OAAO,EAAE,4CAA4C;AAC7D,QAAQ,kBAAkB,EAAE,+DAA+D;AAC3F,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 });
|
|
@@ -15,3 +16,4 @@ Object.defineProperty(exports, "onMessageDismissed", { enumerable: true, get: fu
|
|
|
15
16
|
Object.defineProperty(exports, "onMessageActionTaken", { enumerable: true, get: function () { return pinpoint_1.onMessageActionTaken; } });
|
|
16
17
|
Object.defineProperty(exports, "notifyMessageInteraction", { enumerable: true, get: function () { return pinpoint_1.notifyMessageInteraction; } });
|
|
17
18
|
Object.defineProperty(exports, "clearMessages", { enumerable: true, get: function () { return pinpoint_1.clearMessages; } });
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/inAppMessaging/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.clearMessages = exports.notifyMessageInteraction = exports.onMessageActionTaken = exports.onMessageDismissed = exports.onMessageDisplayed = exports.onMessageReceived = exports.initializeInAppMessaging = exports.setConflictHandler = exports.dispatchEvent = exports.syncMessages = exports.identifyUser = void 0;\nvar pinpoint_1 = require(\"./providers/pinpoint\");\nObject.defineProperty(exports, \"identifyUser\", { enumerable: true, get: function () { return pinpoint_1.identifyUser; } });\nObject.defineProperty(exports, \"syncMessages\", { enumerable: true, get: function () { return pinpoint_1.syncMessages; } });\nObject.defineProperty(exports, \"dispatchEvent\", { enumerable: true, get: function () { return pinpoint_1.dispatchEvent; } });\nObject.defineProperty(exports, \"setConflictHandler\", { enumerable: true, get: function () { return pinpoint_1.setConflictHandler; } });\nObject.defineProperty(exports, \"initializeInAppMessaging\", { enumerable: true, get: function () { return pinpoint_1.initializeInAppMessaging; } });\nObject.defineProperty(exports, \"onMessageReceived\", { enumerable: true, get: function () { return pinpoint_1.onMessageReceived; } });\nObject.defineProperty(exports, \"onMessageDisplayed\", { enumerable: true, get: function () { return pinpoint_1.onMessageDisplayed; } });\nObject.defineProperty(exports, \"onMessageDismissed\", { enumerable: true, get: function () { return pinpoint_1.onMessageDismissed; } });\nObject.defineProperty(exports, \"onMessageActionTaken\", { enumerable: true, get: function () { return pinpoint_1.onMessageActionTaken; } });\nObject.defineProperty(exports, \"notifyMessageInteraction\", { enumerable: true, get: function () { return pinpoint_1.notifyMessageInteraction; } });\nObject.defineProperty(exports, \"clearMessages\", { enumerable: true, get: function () { return pinpoint_1.clearMessages; } });\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,wBAAwB,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,kBAAkB,GAAG,OAAO,CAAC,kBAAkB,GAAG,OAAO,CAAC,iBAAiB,GAAG,OAAO,CAAC,wBAAwB,GAAG,OAAO,CAAC,kBAAkB,GAAG,OAAO,CAAC,aAAa,GAAG,OAAO,CAAC,YAAY,GAAG,OAAO,CAAC,YAAY,GAAG,KAAK,CAAC,CAAC;AAC7T,IAAI,UAAU,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;AACjD,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,cAAc,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,UAAU,CAAC,YAAY,CAAC,EAAE,EAAE,CAAC,CAAC;AAC3H,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,cAAc,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,UAAU,CAAC,YAAY,CAAC,EAAE,EAAE,CAAC,CAAC;AAC3H,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,eAAe,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,UAAU,CAAC,aAAa,CAAC,EAAE,EAAE,CAAC,CAAC;AAC7H,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,oBAAoB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,UAAU,CAAC,kBAAkB,CAAC,EAAE,EAAE,CAAC,CAAC;AACvI,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,0BAA0B,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,UAAU,CAAC,wBAAwB,CAAC,EAAE,EAAE,CAAC,CAAC;AACnJ,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,mBAAmB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,UAAU,CAAC,iBAAiB,CAAC,EAAE,EAAE,CAAC,CAAC;AACrI,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,oBAAoB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,UAAU,CAAC,kBAAkB,CAAC,EAAE,EAAE,CAAC,CAAC;AACvI,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,oBAAoB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,UAAU,CAAC,kBAAkB,CAAC,EAAE,EAAE,CAAC,CAAC;AACvI,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,sBAAsB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,UAAU,CAAC,oBAAoB,CAAC,EAAE,EAAE,CAAC,CAAC;AAC3I,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,0BAA0B,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,UAAU,CAAC,wBAAwB,CAAC,EAAE,EAAE,CAAC,CAAC;AACnJ,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,eAAe,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,UAAU,CAAC,aAAa,CAAC,EAAE,EAAE,CAAC;;"}
|
|
@@ -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 });
|
|
@@ -24,3 +25,4 @@ async function clearMessages() {
|
|
|
24
25
|
return await core_1.defaultStorage.removeItem(key);
|
|
25
26
|
}
|
|
26
27
|
exports.clearMessages = clearMessages;
|
|
28
|
+
//# sourceMappingURL=clearMessages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clearMessages.js","sources":["../../../../../../src/inAppMessaging/providers/pinpoint/apis/clearMessages.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.clearMessages = void 0;\nconst core_1 = require(\"@aws-amplify/core\");\nconst utils_1 = require(\"../utils\");\nconst utils_2 = require(\"../../../utils\");\n/**\n * Clear locally cached messages.\n *\n * @throws validation: {@link InAppMessagingValidationErrorCode} - Thrown if In App messaging hasn't been initialized.\n * @returns A promise that will resolve when the operation is complete.\n * @example\n * ```ts\n * // Clear locally cached messages.\n * await clearMessages();\n *\n * ```\n */\nasync function clearMessages() {\n (0, utils_2.assertIsInitialized)();\n const key = `${utils_1.PINPOINT_KEY_PREFIX}${utils_1.STORAGE_KEY_SUFFIX}`;\n return await core_1.defaultStorage.removeItem(key);\n}\nexports.clearMessages = clearMessages;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,aAAa,GAAG,KAAK,CAAC,CAAC;AAC/B,MAAM,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;AAC5C,MAAM,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AACpC,MAAM,OAAO,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,aAAa,GAAG;AAC/B,IAAI,IAAI,OAAO,CAAC,mBAAmB,GAAG,CAAC;AACvC,IAAI,MAAM,GAAG,GAAG,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC;AAC9E,IAAI,OAAO,MAAM,MAAM,CAAC,cAAc,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;AACvD,CAAC;AACD,OAAO,CAAC,aAAa,GAAG,aAAa;;"}
|
|
@@ -1,13 +1,12 @@
|
|
|
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
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
5
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
6
|
-
};
|
|
7
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
6
|
exports.dispatchEvent = void 0;
|
|
7
|
+
const tslib_1 = require("tslib");
|
|
9
8
|
const utils_1 = require("../utils");
|
|
10
|
-
const
|
|
9
|
+
const flatten_js_1 = tslib_1.__importDefault(require("lodash/flatten.js"));
|
|
11
10
|
const core_1 = require("@aws-amplify/core");
|
|
12
11
|
const eventListeners_1 = require("../../../../eventListeners");
|
|
13
12
|
const errors_1 = require("../../../errors");
|
|
@@ -43,7 +42,7 @@ async function dispatchEvent(input) {
|
|
|
43
42
|
const key = `${utils_1.PINPOINT_KEY_PREFIX}${utils_1.STORAGE_KEY_SUFFIX}`;
|
|
44
43
|
const cachedMessages = await core_1.defaultStorage.getItem(key);
|
|
45
44
|
const messages = await (0, utils_1.processInAppMessages)(cachedMessages ? JSON.parse(cachedMessages) : [], input);
|
|
46
|
-
const flattenedMessages = (0,
|
|
45
|
+
const flattenedMessages = (0, flatten_js_1.default)(messages);
|
|
47
46
|
if (flattenedMessages.length > 0) {
|
|
48
47
|
(0, eventListeners_1.notifyEventListeners)('messageReceived', (0, setConflictHandler_1.conflictHandler)(flattenedMessages));
|
|
49
48
|
}
|
|
@@ -54,3 +53,4 @@ async function dispatchEvent(input) {
|
|
|
54
53
|
}
|
|
55
54
|
}
|
|
56
55
|
exports.dispatchEvent = dispatchEvent;
|
|
56
|
+
//# sourceMappingURL=dispatchEvent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dispatchEvent.js","sources":["../../../../../../src/inAppMessaging/providers/pinpoint/apis/dispatchEvent.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.dispatchEvent = void 0;\nconst tslib_1 = require(\"tslib\");\nconst utils_1 = require(\"../utils\");\nconst flatten_js_1 = tslib_1.__importDefault(require(\"lodash/flatten.js\"));\nconst core_1 = require(\"@aws-amplify/core\");\nconst eventListeners_1 = require(\"../../../../eventListeners\");\nconst errors_1 = require(\"../../../errors\");\nconst setConflictHandler_1 = require(\"./setConflictHandler\");\nconst utils_2 = require(\"../../../utils\");\n/**\n * Triggers an In-App message to be displayed. Use this after your campaigns have been synced to the device using\n * {@link syncMessages}. Based on the messages synced and the event passed to this API, it triggers the display\n * of the In-App message that meets the criteria.\n *\n * @remark\n * If an event would trigger multiple messages, the message closest to expiry will be chosen by default.\n * To change this behavior, you can use the {@link setConflictHandler} API to provide\n * your own logic for resolving message conflicts.\n *\n * @param DispatchEventInput The input object that holds the event to be dispatched.\n * @throws validation: {@link InAppMessagingValidationErrorCode} - Thrown when the provided parameters or library\n * configuration is incorrect, or if In App messaging hasn't been initialized.\n * @throws service exceptions - Thrown when the underlying Pinpoint service returns an error.\n * @returns A promise that will resolve when the operation is complete.\n * @example\n * ```ts\n * // Sync message before disptaching an event\n * await syncMessages();\n *\n * // Dispatch an event\n * await dispatchEvent({ name: 'test_event' });\n * ```\n */\nasync function dispatchEvent(input) {\n (0, utils_2.assertIsInitialized)();\n try {\n const key = `${utils_1.PINPOINT_KEY_PREFIX}${utils_1.STORAGE_KEY_SUFFIX}`;\n const cachedMessages = await core_1.defaultStorage.getItem(key);\n const messages = await (0, utils_1.processInAppMessages)(cachedMessages ? JSON.parse(cachedMessages) : [], input);\n const flattenedMessages = (0, flatten_js_1.default)(messages);\n if (flattenedMessages.length > 0) {\n (0, eventListeners_1.notifyEventListeners)('messageReceived', (0, setConflictHandler_1.conflictHandler)(flattenedMessages));\n }\n }\n catch (error) {\n (0, errors_1.assertServiceError)(error);\n throw error;\n }\n}\nexports.dispatchEvent = dispatchEvent;\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,OAAO,CAAC,CAAC;AACjC,MAAM,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AACpC,MAAM,YAAY,GAAG,OAAO,CAAC,eAAe,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAAC;AAC3E,MAAM,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;AAC5C,MAAM,gBAAgB,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC;AAC/D,MAAM,QAAQ,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAC5C,MAAM,oBAAoB,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;AAC7D,MAAM,OAAO,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,aAAa,CAAC,KAAK,EAAE;AACpC,IAAI,IAAI,OAAO,CAAC,mBAAmB,GAAG,CAAC;AACvC,IAAI,IAAI;AACR,QAAQ,MAAM,GAAG,GAAG,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC;AAClF,QAAQ,MAAM,cAAc,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;AACxE,QAAQ,MAAM,QAAQ,GAAG,MAAM,CAAC,CAAC,EAAE,OAAO,CAAC,oBAAoB,EAAE,cAAc,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,GAAG,EAAE,EAAE,KAAK,CAAC,CAAC;AAC1H,QAAQ,MAAM,iBAAiB,GAAG,CAAC,CAAC,EAAE,YAAY,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;AACtE,QAAQ,IAAI,iBAAiB,CAAC,MAAM,GAAG,CAAC,EAAE;AAC1C,YAAY,CAAC,CAAC,EAAE,gBAAgB,CAAC,oBAAoB,EAAE,iBAAiB,EAAE,CAAC,CAAC,EAAE,oBAAoB,CAAC,eAAe,EAAE,iBAAiB,CAAC,CAAC,CAAC;AACxI,SAAS;AACT,KAAK;AACL,IAAI,OAAO,KAAK,EAAE;AAClB,QAAQ,IAAI,QAAQ,CAAC,kBAAkB,EAAE,KAAK,CAAC,CAAC;AAChD,QAAQ,MAAM,KAAK,CAAC;AACpB,KAAK;AACL,CAAC;AACD,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 });
|
|
@@ -77,3 +78,4 @@ const identifyUser = async ({ userId, userProfile, options, }) => {
|
|
|
77
78
|
});
|
|
78
79
|
};
|
|
79
80
|
exports.identifyUser = identifyUser;
|
|
81
|
+
//# sourceMappingURL=identifyUser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"identifyUser.js","sources":["../../../../../../src/inAppMessaging/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\");\nconst pinpoint_1 = require(\"@aws-amplify/core/internals/providers/pinpoint\");\nconst utils_2 = require(\"../utils\");\nconst utils_3 = require(\"../../../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 {IdentifyUserParameters} params 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 InAppMessagingValidationErrorCode} - Thrown when the provided parameters or library\n * configuration is incorrect, or if In App messaging hasn't been initialized.\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 ({ userId, userProfile, options, }) => {\n (0, utils_3.assertIsInitialized)();\n const { credentials, identityId } = await (0, utils_2.resolveCredentials)();\n const { appId, region } = (0, utils_2.resolveConfig)();\n const { address, optOut, userAttributes } = options ?? {};\n (0, pinpoint_1.updateEndpoint)({\n address,\n channelType: utils_2.CHANNEL_TYPE,\n optOut,\n appId,\n category: utils_2.CATEGORY,\n credentials,\n identityId,\n region,\n userAttributes,\n userId,\n userProfile,\n userAgentValue: (0, utils_2.getInAppMessagingUserAgentString)(utils_1.InAppMessagingAction.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,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AACpC,MAAM,OAAO,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;AAC1C;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,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,GAAG,KAAK;AAClE,IAAI,IAAI,OAAO,CAAC,mBAAmB,GAAG,CAAC;AACvC,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,OAAO,CAAC,YAAY;AACzC,QAAQ,MAAM;AACd,QAAQ,KAAK;AACb,QAAQ,QAAQ,EAAE,OAAO,CAAC,QAAQ;AAClC,QAAQ,WAAW;AACnB,QAAQ,UAAU;AAClB,QAAQ,MAAM;AACd,QAAQ,cAAc;AACtB,QAAQ,MAAM;AACd,QAAQ,WAAW;AACnB,QAAQ,cAAc,EAAE,IAAI,OAAO,CAAC,gCAAgC,EAAE,OAAO,CAAC,oBAAoB,CAAC,YAAY,CAAC;AAChH,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 notifyMessageInteraction_1 = require("./notifyMessageInteraction");
|
|
|
25
26
|
Object.defineProperty(exports, "notifyMessageInteraction", { enumerable: true, get: function () { return notifyMessageInteraction_1.notifyMessageInteraction; } });
|
|
26
27
|
var clearMessages_1 = require("./clearMessages");
|
|
27
28
|
Object.defineProperty(exports, "clearMessages", { enumerable: true, get: function () { return clearMessages_1.clearMessages; } });
|
|
29
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../src/inAppMessaging/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.clearMessages = exports.notifyMessageInteraction = exports.onMessageActionTaken = exports.onMessageDisplayed = exports.onMessageDismissed = exports.onMessageReceived = exports.initializeInAppMessaging = exports.setConflictHandler = exports.dispatchEvent = exports.syncMessages = exports.identifyUser = void 0;\nvar identifyUser_1 = require(\"./identifyUser\");\nObject.defineProperty(exports, \"identifyUser\", { enumerable: true, get: function () { return identifyUser_1.identifyUser; } });\nvar syncMessages_1 = require(\"./syncMessages\");\nObject.defineProperty(exports, \"syncMessages\", { enumerable: true, get: function () { return syncMessages_1.syncMessages; } });\nvar dispatchEvent_1 = require(\"./dispatchEvent\");\nObject.defineProperty(exports, \"dispatchEvent\", { enumerable: true, get: function () { return dispatchEvent_1.dispatchEvent; } });\nvar setConflictHandler_1 = require(\"./setConflictHandler\");\nObject.defineProperty(exports, \"setConflictHandler\", { enumerable: true, get: function () { return setConflictHandler_1.setConflictHandler; } });\nvar initializeInAppMessaging_1 = require(\"./initializeInAppMessaging\");\nObject.defineProperty(exports, \"initializeInAppMessaging\", { enumerable: true, get: function () { return initializeInAppMessaging_1.initializeInAppMessaging; } });\nvar onMessageReceived_1 = require(\"./onMessageReceived\");\nObject.defineProperty(exports, \"onMessageReceived\", { enumerable: true, get: function () { return onMessageReceived_1.onMessageReceived; } });\nvar onMessageDismissed_1 = require(\"./onMessageDismissed\");\nObject.defineProperty(exports, \"onMessageDismissed\", { enumerable: true, get: function () { return onMessageDismissed_1.onMessageDismissed; } });\nvar onMessageDisplayed_1 = require(\"./onMessageDisplayed\");\nObject.defineProperty(exports, \"onMessageDisplayed\", { enumerable: true, get: function () { return onMessageDisplayed_1.onMessageDisplayed; } });\nvar onMessageActionTaken_1 = require(\"./onMessageActionTaken\");\nObject.defineProperty(exports, \"onMessageActionTaken\", { enumerable: true, get: function () { return onMessageActionTaken_1.onMessageActionTaken; } });\nvar notifyMessageInteraction_1 = require(\"./notifyMessageInteraction\");\nObject.defineProperty(exports, \"notifyMessageInteraction\", { enumerable: true, get: function () { return notifyMessageInteraction_1.notifyMessageInteraction; } });\nvar clearMessages_1 = require(\"./clearMessages\");\nObject.defineProperty(exports, \"clearMessages\", { enumerable: true, get: function () { return clearMessages_1.clearMessages; } });\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,wBAAwB,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,kBAAkB,GAAG,OAAO,CAAC,kBAAkB,GAAG,OAAO,CAAC,iBAAiB,GAAG,OAAO,CAAC,wBAAwB,GAAG,OAAO,CAAC,kBAAkB,GAAG,OAAO,CAAC,aAAa,GAAG,OAAO,CAAC,YAAY,GAAG,OAAO,CAAC,YAAY,GAAG,KAAK,CAAC,CAAC;AAC7T,IAAI,cAAc,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;AAC/C,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,cAAc,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,cAAc,CAAC,YAAY,CAAC,EAAE,EAAE,CAAC,CAAC;AAC/H,IAAI,cAAc,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;AAC/C,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,cAAc,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,cAAc,CAAC,YAAY,CAAC,EAAE,EAAE,CAAC,CAAC;AAC/H,IAAI,eAAe,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AACjD,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,eAAe,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,eAAe,CAAC,aAAa,CAAC,EAAE,EAAE,CAAC,CAAC;AAClI,IAAI,oBAAoB,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;AAC3D,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,oBAAoB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,oBAAoB,CAAC,kBAAkB,CAAC,EAAE,EAAE,CAAC,CAAC;AACjJ,IAAI,0BAA0B,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC;AACvE,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,0BAA0B,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,0BAA0B,CAAC,wBAAwB,CAAC,EAAE,EAAE,CAAC,CAAC;AACnK,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,oBAAoB,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;AAC3D,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,oBAAoB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,oBAAoB,CAAC,kBAAkB,CAAC,EAAE,EAAE,CAAC,CAAC;AACjJ,IAAI,oBAAoB,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;AAC3D,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,oBAAoB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,oBAAoB,CAAC,kBAAkB,CAAC,EAAE,EAAE,CAAC,CAAC;AACjJ,IAAI,sBAAsB,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC;AAC/D,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,sBAAsB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,sBAAsB,CAAC,oBAAoB,CAAC,EAAE,EAAE,CAAC,CAAC;AACvJ,IAAI,0BAA0B,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC;AACvE,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,0BAA0B,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,0BAA0B,CAAC,wBAAwB,CAAC,EAAE,EAAE,CAAC,CAAC;AACnK,IAAI,eAAe,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AACjD,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,eAAe,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,eAAe,CAAC,aAAa,CAAC,EAAE,EAAE,CAAC;;"}
|
|
@@ -1,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 });
|
|
@@ -51,7 +52,6 @@ function analyticsListener({ payload, }) {
|
|
|
51
52
|
(0, dispatchEvent_1.dispatchEvent)(data);
|
|
52
53
|
break;
|
|
53
54
|
}
|
|
54
|
-
default:
|
|
55
|
-
break;
|
|
56
55
|
}
|
|
57
56
|
}
|
|
57
|
+
//# sourceMappingURL=initializeInAppMessaging.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"initializeInAppMessaging.js","sources":["../../../../../../src/inAppMessaging/providers/pinpoint/apis/initializeInAppMessaging.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.initializeInAppMessaging = void 0;\nconst utils_1 = require(\"@aws-amplify/core/internals/utils\");\nconst eventListeners_1 = require(\"../../../../eventListeners\");\nconst helpers_1 = require(\"../utils/helpers\");\nconst types_1 = require(\"../types\");\nconst core_1 = require(\"@aws-amplify/core\");\nconst dispatchEvent_1 = require(\"./dispatchEvent\");\nconst utils_2 = require(\"../utils\");\nconst utils_3 = require(\"../../../utils\");\n/**\n * Initialize and set up in-app messaging category. This API needs to be called to enable other InAppMessaging APIs.\n *\n * @remarks\n * Make sure to call this early in your app at the root entry point after configuring Amplify.\n * @example\n * ```ts\n * Amplify.configure(config);\n * initializeInAppMessaging();\n * ```\n */\nfunction initializeInAppMessaging() {\n if ((0, utils_3.isInitialized)()) {\n return;\n }\n // register with the session listener\n utils_1.sessionListener.addStateChangeListener(utils_2.sessionStateChangeHandler, true);\n // wire up default Pinpoint message event handling\n (0, eventListeners_1.addEventListener)('messageDisplayed', (message) => {\n (0, helpers_1.recordAnalyticsEvent)(types_1.PinpointMessageEvent.MESSAGE_DISPLAYED, message);\n (0, utils_2.incrementMessageCounts)(message.id);\n });\n (0, eventListeners_1.addEventListener)('messageDismissed', (message) => {\n (0, helpers_1.recordAnalyticsEvent)(types_1.PinpointMessageEvent.MESSAGE_DISMISSED, message);\n });\n (0, eventListeners_1.addEventListener)('messageActionTaken', (message) => {\n (0, helpers_1.recordAnalyticsEvent)(types_1.PinpointMessageEvent.MESSAGE_ACTION_TAKEN, message);\n });\n // listen to analytics hub events\n core_1.Hub.listen('analytics', analyticsListener);\n (0, utils_3.initialize)();\n}\nexports.initializeInAppMessaging = initializeInAppMessaging;\nfunction analyticsListener({ payload, }) {\n const { event, data } = payload;\n switch (event) {\n case 'record': {\n (0, dispatchEvent_1.dispatchEvent)(data);\n break;\n }\n default:\n break;\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,wBAAwB,GAAG,KAAK,CAAC,CAAC;AAC1C,MAAM,OAAO,GAAG,OAAO,CAAC,mCAAmC,CAAC,CAAC;AAC7D,MAAM,gBAAgB,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC;AAC/D,MAAM,SAAS,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;AAC9C,MAAM,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AACpC,MAAM,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;AAC5C,MAAM,eAAe,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AACnD,MAAM,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AACpC,MAAM,OAAO,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,wBAAwB,GAAG;AACpC,IAAI,IAAI,IAAI,OAAO,CAAC,aAAa,GAAG,EAAE;AACtC,QAAQ,OAAO;AACf,KAAK;AACL;AACA,IAAI,OAAO,CAAC,eAAe,CAAC,sBAAsB,CAAC,OAAO,CAAC,yBAAyB,EAAE,IAAI,CAAC,CAAC;AAC5F;AACA,IAAI,IAAI,gBAAgB,CAAC,gBAAgB,EAAE,kBAAkB,EAAE,CAAC,OAAO,KAAK;AAC5E,QAAQ,IAAI,SAAS,CAAC,oBAAoB,EAAE,OAAO,CAAC,oBAAoB,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;AACrG,QAAQ,IAAI,OAAO,CAAC,sBAAsB,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC;AACxD,KAAK,CAAC,CAAC;AACP,IAAI,IAAI,gBAAgB,CAAC,gBAAgB,EAAE,kBAAkB,EAAE,CAAC,OAAO,KAAK;AAC5E,QAAQ,IAAI,SAAS,CAAC,oBAAoB,EAAE,OAAO,CAAC,oBAAoB,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;AACrG,KAAK,CAAC,CAAC;AACP,IAAI,IAAI,gBAAgB,CAAC,gBAAgB,EAAE,oBAAoB,EAAE,CAAC,OAAO,KAAK;AAC9E,QAAQ,IAAI,SAAS,CAAC,oBAAoB,EAAE,OAAO,CAAC,oBAAoB,CAAC,oBAAoB,EAAE,OAAO,CAAC,CAAC;AACxG,KAAK,CAAC,CAAC;AACP;AACA,IAAI,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,WAAW,EAAE,iBAAiB,CAAC,CAAC;AACtD,IAAI,IAAI,OAAO,CAAC,UAAU,GAAG,CAAC;AAC9B,CAAC;AACD,OAAO,CAAC,wBAAwB,GAAG,wBAAwB,CAAC;AAC5D,SAAS,iBAAiB,CAAC,EAAE,OAAO,GAAG,EAAE;AACzC,IAAI,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC;AACpC,IAAI,QAAQ,KAAK;AACjB,QAAQ,KAAK,QAAQ,EAAE;AACvB,YAAY,IAAI,eAAe,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;AACrD,YAAY,MAAM;AAClB,SAAS;AAGT,KAAK;AACL;;"}
|
|
@@ -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 });
|
|
@@ -24,3 +25,4 @@ function notifyMessageInteraction({ type, message, }) {
|
|
|
24
25
|
(0, eventListeners_1.notifyEventListeners)(type, message);
|
|
25
26
|
}
|
|
26
27
|
exports.notifyMessageInteraction = notifyMessageInteraction;
|
|
28
|
+
//# sourceMappingURL=notifyMessageInteraction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notifyMessageInteraction.js","sources":["../../../../../../src/inAppMessaging/providers/pinpoint/apis/notifyMessageInteraction.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.notifyMessageInteraction = void 0;\nconst eventListeners_1 = require(\"../../../../eventListeners\");\nconst utils_1 = require(\"../../../utils\");\n/**\n * Notifies the respective listener of the specified type with the message given.\n *\n * @param {NotifyMessageInteractionInput} input - The input object that holds the type and message.\n * @throws validation: {@link InAppMessagingValidationErrorCode} - Thrown when the provided parameters or library\n * configuration is incorrect, or if In App messaging hasn't been initialized.\n * @example\n * ```ts\n * onMessageRecieved((message) => {\n * // Show end users the In-App message and notify event listeners\n * notifyMessageInteraction({ type: 'messageDisplayed', message });\n * });\n * ```\n */\nfunction notifyMessageInteraction({ type, message, }) {\n (0, utils_1.assertIsInitialized)();\n (0, eventListeners_1.notifyEventListeners)(type, message);\n}\nexports.notifyMessageInteraction = notifyMessageInteraction;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,wBAAwB,GAAG,KAAK,CAAC,CAAC;AAC1C,MAAM,gBAAgB,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC;AAC/D,MAAM,OAAO,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,wBAAwB,CAAC,EAAE,IAAI,EAAE,OAAO,GAAG,EAAE;AACtD,IAAI,IAAI,OAAO,CAAC,mBAAmB,GAAG,CAAC;AACvC,IAAI,IAAI,gBAAgB,CAAC,oBAAoB,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;AAC9D,CAAC;AACD,OAAO,CAAC,wBAAwB,GAAG,wBAAwB;;"}
|
|
@@ -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 @@ function onMessageActionTaken(input) {
|
|
|
25
26
|
return (0, eventListeners_1.addEventListener)('messageActionTaken', input);
|
|
26
27
|
}
|
|
27
28
|
exports.onMessageActionTaken = onMessageActionTaken;
|
|
29
|
+
//# sourceMappingURL=onMessageActionTaken.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onMessageActionTaken.js","sources":["../../../../../../src/inAppMessaging/providers/pinpoint/apis/onMessageActionTaken.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.onMessageActionTaken = void 0;\nconst eventListeners_1 = require(\"../../../../eventListeners\");\nconst utils_1 = require(\"../../../utils\");\n/**\n * Registers a callback that will be invoked on `messageActionTaken` events.\n *\n * @param {OnMessageActionTakenInput} input - The input object that holds the callback handler.\n * @throws validation: {@link InAppMessagingValidationErrorCode} - Thrown when the provided parameters or library\n * configuration is incorrect, or if In App messaging hasn't been initialized.\n * @returns {OnMessageActionTakenOutput} - An object that holds a remove method to stop listening to events.\n * @example\n * ```ts\n * onMessageActionTaken((message) => {\n * // use the message\n * console.log(message.id);\n * });\n * ```\n */\nfunction onMessageActionTaken(input) {\n (0, utils_1.assertIsInitialized)();\n return (0, eventListeners_1.addEventListener)('messageActionTaken', input);\n}\nexports.onMessageActionTaken = onMessageActionTaken;\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,OAAO,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,oBAAoB,CAAC,KAAK,EAAE;AACrC,IAAI,IAAI,OAAO,CAAC,mBAAmB,GAAG,CAAC;AACvC,IAAI,OAAO,IAAI,gBAAgB,CAAC,gBAAgB,EAAE,oBAAoB,EAAE,KAAK,CAAC,CAAC;AAC/E,CAAC;AACD,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 });
|
|
@@ -25,3 +26,4 @@ function onMessageDismissed(input) {
|
|
|
25
26
|
return (0, eventListeners_1.addEventListener)('messageDismissed', input);
|
|
26
27
|
}
|
|
27
28
|
exports.onMessageDismissed = onMessageDismissed;
|
|
29
|
+
//# sourceMappingURL=onMessageDismissed.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onMessageDismissed.js","sources":["../../../../../../src/inAppMessaging/providers/pinpoint/apis/onMessageDismissed.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.onMessageDismissed = void 0;\nconst eventListeners_1 = require(\"../../../../eventListeners\");\nconst utils_1 = require(\"../../../utils\");\n/**\n * Registers a callback that will be invoked on `messageDismissed` events.\n *\n * @param {OnMessageDismissedInput} input - The input object that holds the callback handler.\n * @throws validation: {@link InAppMessagingValidationErrorCode} - Thrown when the provided parameters or library\n * configuration is incorrect, or if In App messaging hasn't been initialized.\n * @returns {OnMessageDismissedOutput} - An object that holds a remove method to stop listening to events.\n * @example\n * ```ts\n * onMessageDismissed((message) => {\n * // use the message\n * console.log(message.id);\n * });\n * ```\n */\nfunction onMessageDismissed(input) {\n (0, utils_1.assertIsInitialized)();\n return (0, eventListeners_1.addEventListener)('messageDismissed', input);\n}\nexports.onMessageDismissed = onMessageDismissed;\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,gBAAgB,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC;AAC/D,MAAM,OAAO,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,kBAAkB,CAAC,KAAK,EAAE;AACnC,IAAI,IAAI,OAAO,CAAC,mBAAmB,GAAG,CAAC;AACvC,IAAI,OAAO,IAAI,gBAAgB,CAAC,gBAAgB,EAAE,kBAAkB,EAAE,KAAK,CAAC,CAAC;AAC7E,CAAC;AACD,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 });
|
|
@@ -25,3 +26,4 @@ function onMessageDisplayed(input) {
|
|
|
25
26
|
return (0, eventListeners_1.addEventListener)('messageDisplayed', input);
|
|
26
27
|
}
|
|
27
28
|
exports.onMessageDisplayed = onMessageDisplayed;
|
|
29
|
+
//# sourceMappingURL=onMessageDisplayed.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onMessageDisplayed.js","sources":["../../../../../../src/inAppMessaging/providers/pinpoint/apis/onMessageDisplayed.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.onMessageDisplayed = void 0;\nconst eventListeners_1 = require(\"../../../../eventListeners\");\nconst utils_1 = require(\"../../../utils\");\n/**\n * Registers a callback that will be invoked on `messageDisplayed` events.\n *\n * @param {OnMessageDisplayedInput} input - The input object that holds the callback handler.\n * @throws validation: {@link InAppMessagingValidationErrorCode} - Thrown when the provided parameters or library\n * configuration is incorrect, or if In App messaging hasn't been initialized.\n * @returns {OnMessageDismissedOutput} - An object that holds a remove method to stop listening to events.\n * @example\n * ```ts\n * onMessageDisplayed((message) => {\n * // use the message\n * \t console.log(message.id);\n * });\n * ```\n */\nfunction onMessageDisplayed(input) {\n (0, utils_1.assertIsInitialized)();\n return (0, eventListeners_1.addEventListener)('messageDisplayed', input);\n}\nexports.onMessageDisplayed = onMessageDisplayed;\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,gBAAgB,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC;AAC/D,MAAM,OAAO,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,kBAAkB,CAAC,KAAK,EAAE;AACnC,IAAI,IAAI,OAAO,CAAC,mBAAmB,GAAG,CAAC;AACvC,IAAI,OAAO,IAAI,gBAAgB,CAAC,gBAAgB,EAAE,kBAAkB,EAAE,KAAK,CAAC,CAAC;AAC7E,CAAC;AACD,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 });
|
|
@@ -25,3 +26,4 @@ function onMessageReceived(input) {
|
|
|
25
26
|
return (0, eventListeners_1.addEventListener)('messageReceived', input);
|
|
26
27
|
}
|
|
27
28
|
exports.onMessageReceived = onMessageReceived;
|
|
29
|
+
//# sourceMappingURL=onMessageReceived.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onMessageReceived.js","sources":["../../../../../../src/inAppMessaging/providers/pinpoint/apis/onMessageReceived.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.onMessageReceived = void 0;\nconst eventListeners_1 = require(\"../../../../eventListeners\");\nconst utils_1 = require(\"../../../utils\");\n/**\n * Registers a callback that will be invoked on `messageReceived` events.\n *\n * @param {OnMessageReceivedInput} input - The input object that holds the callback handler.\n * @throws validation: {@link InAppMessagingValidationErrorCode} - Thrown when the provided parameters or library\n * configuration is incorrect, or if In App messaging hasn't been initialized.\n * @returns {OnMessageReceivedOutput} - An object that holds a remove method to stop listening to events.\n * @example\n * ```ts\n * onMessageReceived((message) => {\n * // use the message\n * console.log(message.id);\n * });\n * ```\n */\nfunction onMessageReceived(input) {\n (0, utils_1.assertIsInitialized)();\n return (0, eventListeners_1.addEventListener)('messageReceived', input);\n}\nexports.onMessageReceived = onMessageReceived;\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,gBAAgB,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC;AAC/D,MAAM,OAAO,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,iBAAiB,CAAC,KAAK,EAAE;AAClC,IAAI,IAAI,OAAO,CAAC,mBAAmB,GAAG,CAAC;AACvC,IAAI,OAAO,IAAI,gBAAgB,CAAC,gBAAgB,EAAE,iBAAiB,EAAE,KAAK,CAAC,CAAC;AAC5E,CAAC;AACD,OAAO,CAAC,iBAAiB,GAAG,iBAAiB;;"}
|
|
@@ -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 });
|
|
@@ -63,3 +64,4 @@ function defaultConflictHandler(messages) {
|
|
|
63
64
|
// always return the top sorted
|
|
64
65
|
return sorted[0];
|
|
65
66
|
}
|
|
67
|
+
//# sourceMappingURL=setConflictHandler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setConflictHandler.js","sources":["../../../../../../src/inAppMessaging/providers/pinpoint/apis/setConflictHandler.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.setConflictHandler = exports.conflictHandler = void 0;\nconst utils_1 = require(\"../../../utils\");\nexports.conflictHandler = defaultConflictHandler;\n/**\n * Set a conflict handler that will be used to resolve conflicts that may emerge\n * when matching events with synced messages.\n *\n * @remark\n * The conflict handler is not persisted across app restarts and so must be set again before dispatching an event for\n * any custom handling to take effect.\n * @throws validation: {@link InAppMessagingValidationErrorCode} - Thrown when the provided parameters or library\n * configuration is incorrect, or if In App messaging hasn't been initialized.\n * @param SetConflictHandlerInput: The input object that holds the conflict handler to be used.\n * @example\n * ```ts\n * // Sync messages before dispatching an event\n * await syncMessages();\n *\n * // Example custom conflict handler\n * const myConflictHandler = (messages) => {\n * \t\t// Return a random message\n * \t\tconst randomIndex = Math.floor(Math.random() * messages.length);\n * \t\treturn messages[randomIndex];\n * };\n *\n * // Set the conflict handler\n * setConflictHandler(myConflictHandler);\n *\n * // Dispatch an event\n * await dispatchEvent({ name: 'test_event' });\n * ```\n */\nfunction setConflictHandler(input) {\n (0, utils_1.assertIsInitialized)();\n exports.conflictHandler = input;\n}\nexports.setConflictHandler = setConflictHandler;\nfunction defaultConflictHandler(messages) {\n // default behavior is to return the message closest to expiry\n // this function assumes that messages processed by providers already filters out expired messages\n const sorted = messages.sort((a, b) => {\n const endDateA = a.metadata?.endDate;\n const endDateB = b.metadata?.endDate;\n // if both message end dates are falsy or have the same date string, treat them as equal\n if (endDateA === endDateB) {\n return 0;\n }\n // if only message A has an end date, treat it as closer to expiry\n if (endDateA && !endDateB) {\n return -1;\n }\n // if only message B has an end date, treat it as closer to expiry\n if (!endDateA && endDateB) {\n return 1;\n }\n // otherwise, compare them\n return new Date(endDateA) < new Date(endDateB) ? -1 : 1;\n });\n // always return the top sorted\n return sorted[0];\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,kBAAkB,GAAG,OAAO,CAAC,eAAe,GAAG,KAAK,CAAC,CAAC;AAC9D,MAAM,OAAO,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;AAC1C,OAAO,CAAC,eAAe,GAAG,sBAAsB,CAAC;AACjD;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,SAAS,kBAAkB,CAAC,KAAK,EAAE;AACnC,IAAI,IAAI,OAAO,CAAC,mBAAmB,GAAG,CAAC;AACvC,IAAI,OAAO,CAAC,eAAe,GAAG,KAAK,CAAC;AACpC,CAAC;AACD,OAAO,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;AAChD,SAAS,sBAAsB,CAAC,QAAQ,EAAE;AAC1C;AACA;AACA,IAAI,MAAM,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK;AAC3C,QAAQ,MAAM,QAAQ,GAAG,CAAC,CAAC,QAAQ,EAAE,OAAO,CAAC;AAC7C,QAAQ,MAAM,QAAQ,GAAG,CAAC,CAAC,QAAQ,EAAE,OAAO,CAAC;AAC7C;AACA,QAAQ,IAAI,QAAQ,KAAK,QAAQ,EAAE;AACnC,YAAY,OAAO,CAAC,CAAC;AACrB,SAAS;AACT;AACA,QAAQ,IAAI,QAAQ,IAAI,CAAC,QAAQ,EAAE;AACnC,YAAY,OAAO,CAAC,CAAC,CAAC;AACtB,SAAS;AACT;AACA,QAAQ,IAAI,CAAC,QAAQ,IAAI,QAAQ,EAAE;AACnC,YAAY,OAAO,CAAC,CAAC;AACrB,SAAS;AACT;AACA,QAAQ,OAAO,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;AAChE,KAAK,CAAC,CAAC;AACP;AACA,IAAI,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC;AACrB;;"}
|
|
@@ -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 });
|
|
@@ -67,3 +68,4 @@ async function fetchInAppMessages() {
|
|
|
67
68
|
throw error;
|
|
68
69
|
}
|
|
69
70
|
}
|
|
71
|
+
//# sourceMappingURL=syncMessages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"syncMessages.js","sources":["../../../../../../src/inAppMessaging/providers/pinpoint/apis/syncMessages.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.syncMessages = void 0;\nconst utils_1 = require(\"@aws-amplify/core/internals/utils\");\nconst pinpoint_1 = require(\"@aws-amplify/core/internals/providers/pinpoint\");\nconst core_1 = require(\"@aws-amplify/core\");\nconst utils_2 = require(\"../utils\");\nconst pinpoint_2 = require(\"@aws-amplify/core/internals/aws-clients/pinpoint\");\nconst errors_1 = require(\"../../../errors\");\nconst utils_3 = require(\"../../../utils\");\n/**\n * Fetch and persist messages from Pinpoint campaigns.\n * Calling this API is necessary to trigger InApp messages on the device.\n *\n * @throws service exceptions - Thrown when the underlying Pinpoint service returns an error.\n * @throws validation: {@link InAppMessagingValidationErrorCode} - Thrown when the provided parameters or library\n * configuration is incorrect, or if In App messaging hasn't been initialized.\n * @returns A promise that will resolve when the operation is complete.\n * @example\n * ```ts\n * // Sync InApp messages with Pinpoint and device.\n * await syncMessages();\n *\n * ```\n */\nasync function syncMessages() {\n (0, utils_3.assertIsInitialized)();\n const messages = await fetchInAppMessages();\n if (!messages || messages.length === 0) {\n return;\n }\n try {\n const key = `${utils_2.PINPOINT_KEY_PREFIX}${utils_2.STORAGE_KEY_SUFFIX}`;\n await core_1.defaultStorage.setItem(key, JSON.stringify(messages));\n }\n catch (error) {\n (0, errors_1.assertServiceError)(error);\n throw error;\n }\n}\nexports.syncMessages = syncMessages;\nasync function fetchInAppMessages() {\n try {\n const { credentials, identityId } = await (0, utils_2.resolveCredentials)();\n const { appId, region } = (0, utils_2.resolveConfig)();\n const endpointId = await (0, pinpoint_1.resolveEndpointId)({\n appId,\n category: utils_2.CATEGORY,\n channelType: utils_2.CHANNEL_TYPE,\n credentials,\n identityId,\n region,\n userAgentValue: (0, utils_2.getInAppMessagingUserAgentString)(utils_1.InAppMessagingAction.SyncMessages),\n });\n const input = {\n ApplicationId: appId,\n EndpointId: endpointId,\n };\n const response = await (0, pinpoint_2.getInAppMessages)({ credentials, region }, input);\n const { InAppMessageCampaigns: messages } = response.InAppMessagesResponse ?? {};\n return messages;\n }\n catch (error) {\n (0, errors_1.assertServiceError)(error);\n throw error;\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,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,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;AAC5C,MAAM,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AACpC,MAAM,UAAU,GAAG,OAAO,CAAC,kDAAkD,CAAC,CAAC;AAC/E,MAAM,QAAQ,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAC5C,MAAM,OAAO,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,YAAY,GAAG;AAC9B,IAAI,IAAI,OAAO,CAAC,mBAAmB,GAAG,CAAC;AACvC,IAAI,MAAM,QAAQ,GAAG,MAAM,kBAAkB,EAAE,CAAC;AAChD,IAAI,IAAI,CAAC,QAAQ,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE;AAC5C,QAAQ,OAAO;AACf,KAAK;AACL,IAAI,IAAI;AACR,QAAQ,MAAM,GAAG,GAAG,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC;AAClF,QAAQ,MAAM,MAAM,CAAC,cAAc,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC;AAC3E,KAAK;AACL,IAAI,OAAO,KAAK,EAAE;AAClB,QAAQ,IAAI,QAAQ,CAAC,kBAAkB,EAAE,KAAK,CAAC,CAAC;AAChD,QAAQ,MAAM,KAAK,CAAC;AACpB,KAAK;AACL,CAAC;AACD,OAAO,CAAC,YAAY,GAAG,YAAY,CAAC;AACpC,eAAe,kBAAkB,GAAG;AACpC,IAAI,IAAI;AACR,QAAQ,MAAM,EAAE,WAAW,EAAE,UAAU,EAAE,GAAG,MAAM,CAAC,CAAC,EAAE,OAAO,CAAC,kBAAkB,GAAG,CAAC;AACpF,QAAQ,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC,EAAE,OAAO,CAAC,aAAa,GAAG,CAAC;AAC/D,QAAQ,MAAM,UAAU,GAAG,MAAM,CAAC,CAAC,EAAE,UAAU,CAAC,iBAAiB,EAAE;AACnE,YAAY,KAAK;AACjB,YAAY,QAAQ,EAAE,OAAO,CAAC,QAAQ;AACtC,YAAY,WAAW,EAAE,OAAO,CAAC,YAAY;AAC7C,YAAY,WAAW;AACvB,YAAY,UAAU;AACtB,YAAY,MAAM;AAClB,YAAY,cAAc,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,gCAAgC,EAAE,OAAO,CAAC,oBAAoB,CAAC,YAAY,CAAC;AACpH,SAAS,CAAC,CAAC;AACX,QAAQ,MAAM,KAAK,GAAG;AACtB,YAAY,aAAa,EAAE,KAAK;AAChC,YAAY,UAAU,EAAE,UAAU;AAClC,SAAS,CAAC;AACV,QAAQ,MAAM,QAAQ,GAAG,MAAM,CAAC,CAAC,EAAE,UAAU,CAAC,gBAAgB,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,EAAE,KAAK,CAAC,CAAC;AAChG,QAAQ,MAAM,EAAE,qBAAqB,EAAE,QAAQ,EAAE,GAAG,QAAQ,CAAC,qBAAqB,IAAI,EAAE,CAAC;AACzF,QAAQ,OAAO,QAAQ,CAAC;AACxB,KAAK;AACL,IAAI,OAAO,KAAK,EAAE;AAClB,QAAQ,IAAI,QAAQ,CAAC,kBAAkB,EAAE,KAAK,CAAC,CAAC;AAChD,QAAQ,MAAM,KAAK,CAAC;AACpB,KAAK;AACL;;"}
|
|
@@ -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, "onMessageDismissed", { enumerable: true, get: fu
|
|
|
15
16
|
Object.defineProperty(exports, "onMessageActionTaken", { enumerable: true, get: function () { return apis_1.onMessageActionTaken; } });
|
|
16
17
|
Object.defineProperty(exports, "notifyMessageInteraction", { enumerable: true, get: function () { return apis_1.notifyMessageInteraction; } });
|
|
17
18
|
Object.defineProperty(exports, "clearMessages", { enumerable: true, get: function () { return apis_1.clearMessages; } });
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../src/inAppMessaging/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.clearMessages = exports.notifyMessageInteraction = exports.onMessageActionTaken = exports.onMessageDismissed = exports.onMessageDisplayed = exports.onMessageReceived = exports.initializeInAppMessaging = exports.setConflictHandler = exports.dispatchEvent = exports.syncMessages = exports.identifyUser = void 0;\nvar apis_1 = require(\"./apis\");\nObject.defineProperty(exports, \"identifyUser\", { enumerable: true, get: function () { return apis_1.identifyUser; } });\nObject.defineProperty(exports, \"syncMessages\", { enumerable: true, get: function () { return apis_1.syncMessages; } });\nObject.defineProperty(exports, \"dispatchEvent\", { enumerable: true, get: function () { return apis_1.dispatchEvent; } });\nObject.defineProperty(exports, \"setConflictHandler\", { enumerable: true, get: function () { return apis_1.setConflictHandler; } });\nObject.defineProperty(exports, \"initializeInAppMessaging\", { enumerable: true, get: function () { return apis_1.initializeInAppMessaging; } });\nObject.defineProperty(exports, \"onMessageReceived\", { enumerable: true, get: function () { return apis_1.onMessageReceived; } });\nObject.defineProperty(exports, \"onMessageDisplayed\", { enumerable: true, get: function () { return apis_1.onMessageDisplayed; } });\nObject.defineProperty(exports, \"onMessageDismissed\", { enumerable: true, get: function () { return apis_1.onMessageDismissed; } });\nObject.defineProperty(exports, \"onMessageActionTaken\", { enumerable: true, get: function () { return apis_1.onMessageActionTaken; } });\nObject.defineProperty(exports, \"notifyMessageInteraction\", { enumerable: true, get: function () { return apis_1.notifyMessageInteraction; } });\nObject.defineProperty(exports, \"clearMessages\", { enumerable: true, get: function () { return apis_1.clearMessages; } });\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,wBAAwB,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,kBAAkB,GAAG,OAAO,CAAC,kBAAkB,GAAG,OAAO,CAAC,iBAAiB,GAAG,OAAO,CAAC,wBAAwB,GAAG,OAAO,CAAC,kBAAkB,GAAG,OAAO,CAAC,aAAa,GAAG,OAAO,CAAC,YAAY,GAAG,OAAO,CAAC,YAAY,GAAG,KAAK,CAAC,CAAC;AAC7T,IAAI,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;AAC/B,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,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,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,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,0BAA0B,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,MAAM,CAAC,wBAAwB,CAAC,EAAE,EAAE,CAAC,CAAC;AAC/I,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,mBAAmB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,MAAM,CAAC,iBAAiB,CAAC,EAAE,EAAE,CAAC,CAAC;AACjI,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,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,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,0BAA0B,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,MAAM,CAAC,wBAAwB,CAAC,EAAE,EAAE,CAAC,CAAC;AAC/I,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;;"}
|
|
@@ -1,7 +1,9 @@
|
|
|
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 });
|
|
5
6
|
exports.PinpointMessageEvent = void 0;
|
|
6
7
|
var types_1 = require("./types");
|
|
7
8
|
Object.defineProperty(exports, "PinpointMessageEvent", { enumerable: true, get: function () { return types_1.PinpointMessageEvent; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../src/inAppMessaging/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 });\nexports.PinpointMessageEvent = void 0;\nvar types_1 = require(\"./types\");\nObject.defineProperty(exports, \"PinpointMessageEvent\", { enumerable: true, get: function () { return types_1.PinpointMessageEvent; } });\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,IAAI,OAAO,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;AACjC,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,sBAAsB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,OAAO,CAAC,oBAAoB,CAAC,EAAE,EAAE,CAAC;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inputs.js","sources":["../../../../../../src/inAppMessaging/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/inAppMessaging/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/inAppMessaging/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;;"}
|
|
@@ -1,11 +1,12 @@
|
|
|
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 });
|
|
5
6
|
exports.PinpointMessageEvent = void 0;
|
|
6
|
-
var PinpointMessageEvent;
|
|
7
7
|
(function (PinpointMessageEvent) {
|
|
8
8
|
PinpointMessageEvent["MESSAGE_DISPLAYED"] = "_inapp.message_displayed";
|
|
9
9
|
PinpointMessageEvent["MESSAGE_DISMISSED"] = "_inapp.message_dismissed";
|
|
10
10
|
PinpointMessageEvent["MESSAGE_ACTION_TAKEN"] = "_inapp.message_clicked";
|
|
11
|
-
})(
|
|
11
|
+
})(exports.PinpointMessageEvent || (exports.PinpointMessageEvent = {}));
|
|
12
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sources":["../../../../../../src/inAppMessaging/providers/pinpoint/types/types.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.PinpointMessageEvent = void 0;\nvar PinpointMessageEvent;\n(function (PinpointMessageEvent) {\n PinpointMessageEvent[\"MESSAGE_DISPLAYED\"] = \"_inapp.message_displayed\";\n PinpointMessageEvent[\"MESSAGE_DISMISSED\"] = \"_inapp.message_dismissed\";\n PinpointMessageEvent[\"MESSAGE_ACTION_TAKEN\"] = \"_inapp.message_clicked\";\n})(PinpointMessageEvent = exports.PinpointMessageEvent || (exports.PinpointMessageEvent = {}));\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;AAEtC,CAAC,UAAU,oBAAoB,EAAE;AACjC,IAAI,oBAAoB,CAAC,mBAAmB,CAAC,GAAG,0BAA0B,CAAC;AAC3E,IAAI,oBAAoB,CAAC,mBAAmB,CAAC,GAAG,0BAA0B,CAAC;AAC3E,IAAI,oBAAoB,CAAC,sBAAsB,CAAC,GAAG,wBAAwB,CAAC;AAC5E,CAAC,EAAyB,OAAO,CAAC,oBAAoB,KAAK,OAAO,CAAC,oBAAoB,GAAG,EAAE,CAAC,CAAC;;"}
|