{"version":3,"file":"getPermissionStatus.mjs","sources":["../../../../../../src/pushNotifications/providers/pinpoint/apis/getPermissionStatus.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { PlatformNotSupportedError } from '@aws-amplify/core/internals/utils';\n/**\n * Returns a string representing the current status of user permissions to display push notifications. The possible\n * statuses are as follows:\n *\n *   * `'shouldRequest'` - No permissions have been requested yet. It is idiomatic at this time to simply request for\n *   permissions from the user.\n *\n *   * `'shouldExplainThenRequest'` - It is recommended at this time to provide some context or rationale to the user\n *   explaining why you want to send them push notifications before requesting for permissions.\n *\n *   * `'granted'` - Permissions have been granted by the user. No further actions are needed and their app is ready to\n *   display notifications.\n *\n *   * `'denied'` - Permissions have been denied by the user. Further attempts to request permissions will no longer\n *   trigger a permission dialog. Your app should now either degrade gracefully or prompt your user to grant the\n *   permissions needed in their device settings.\n *\n * @deprecated AWS will end support for Amazon Pinpoint on October 30, 2026.\n *\n * @throws platform: {@link PlatformNotSupportedError} - Thrown if called against an unsupported platform. Currently,\n * only React Native is supported by this API.\n * @return {Promise<GetPermissionStatusOutput>} a promise resolving to a string representing the current status of user\n * selected notification permissions.\n * @example\n * ```ts\n * const permissionStatus = await getPermissionStatus();\n */\nexport const getPermissionStatus = async () => {\n    throw new PlatformNotSupportedError();\n};\n"],"names":[],"mappings":";;AAAA;AACA;AAEA;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;AACY,MAAC,mBAAmB,GAAG,YAAY;AAC/C,IAAI,MAAM,IAAI,yBAAyB,EAAE;AACzC;;;;"}