{"version":3,"file":"notifyMessageInteraction.mjs","sources":["../../../../../../src/inAppMessaging/providers/pinpoint/apis/notifyMessageInteraction.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { notifyEventListeners } from '../../../../eventListeners';\nimport { assertIsInitialized } from '../../../utils';\n/**\n * Notifies the respective listener of the specified type with the message given.\n *\n * @deprecated AWS will end support for Amazon Pinpoint on October 30, 2026.\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 */\nexport function notifyMessageInteraction({ type, message, }) {\n    assertIsInitialized();\n    notifyEventListeners(type, message);\n}\n"],"names":[],"mappings":";;;AAAA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,wBAAwB,CAAC,EAAE,IAAI,EAAE,OAAO,GAAG,EAAE;AAC7D,IAAI,mBAAmB,EAAE;AACzB,IAAI,oBAAoB,CAAC,IAAI,EAAE,OAAO,CAAC;AACvC;;;;"}