@aws-amplify/analytics
Version:
Analytics category of aws-amplify
1 lines • 3.07 kB
Source Map (JSON)
{"version":3,"file":"index.mjs","sources":["../../src/index.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n// This entry point intentionally re-exports the deprecated Pinpoint provider\n// APIs as the default Analytics surface. Removing them would be a breaking\n// change; instead each is wrapped to emit a one-time runtime deprecation\n// warning. The deprecated imports below are therefore expected.\n/* eslint-disable import/no-deprecated */\nimport { configureAutoTrack as configureAutoTrackPinpoint, flushEvents as flushEventsPinpoint, identifyUser as identifyUserPinpoint, record as recordPinpoint, } from './providers/pinpoint';\nimport { deprecatePinpoint } from './utils';\n/**\n * @deprecated The default (Amazon Pinpoint) Analytics APIs are deprecated. AWS will end support for\n * Amazon Pinpoint on October 30, 2026. Migrate to a supported provider by importing from its sub-path\n * export instead — for example `aws-amplify/analytics/kinesis`, `aws-amplify/analytics/kinesis-firehose`,\n * or `aws-amplify/analytics/personalize`.\n */\nexport const record = deprecatePinpoint(recordPinpoint);\n/**\n * @deprecated The default (Amazon Pinpoint) Analytics APIs are deprecated. AWS will end support for\n * Amazon Pinpoint on October 30, 2026. Migrate to a supported provider by importing from its sub-path\n * export instead — for example `aws-amplify/analytics/kinesis`, `aws-amplify/analytics/kinesis-firehose`,\n * or `aws-amplify/analytics/personalize`.\n */\nexport const identifyUser = deprecatePinpoint(identifyUserPinpoint);\n/**\n * @deprecated The default (Amazon Pinpoint) Analytics APIs are deprecated. AWS will end support for\n * Amazon Pinpoint on October 30, 2026. Migrate to a supported provider by importing from its sub-path\n * export instead — for example `aws-amplify/analytics/kinesis`, `aws-amplify/analytics/kinesis-firehose`,\n * or `aws-amplify/analytics/personalize`.\n */\nexport const configureAutoTrack = deprecatePinpoint(configureAutoTrackPinpoint);\n/**\n * @deprecated The default (Amazon Pinpoint) Analytics APIs are deprecated. AWS will end support for\n * Amazon Pinpoint on October 30, 2026. Migrate to a supported provider by importing from its sub-path\n * export instead — for example `aws-amplify/analytics/kinesis`, `aws-amplify/analytics/kinesis-firehose`,\n * or `aws-amplify/analytics/personalize`.\n */\nexport const flushEvents = deprecatePinpoint(flushEventsPinpoint);\nexport { enable, disable } from './apis';\nexport { AnalyticsError } from './errors';\n"],"names":["recordPinpoint","identifyUserPinpoint","configureAutoTrackPinpoint","flushEventsPinpoint"],"mappings":";;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACY,MAAC,MAAM,GAAG,iBAAiB,CAACA,QAAc;AACtD;AACA;AACA;AACA;AACA;AACA;AACY,MAAC,YAAY,GAAG,iBAAiB,CAACC,cAAoB;AAClE;AACA;AACA;AACA;AACA;AACA;AACY,MAAC,kBAAkB,GAAG,iBAAiB,CAACC,oBAA0B;AAC9E;AACA;AACA;AACA;AACA;AACA;AACY,MAAC,WAAW,GAAG,iBAAiB,CAACC,aAAmB;;;;"}