UNPKG

@aws-amplify/analytics

Version:

Analytics category of aws-amplify

55 lines (52 loc) 3.08 kB
import { record as record$1 } from './providers/pinpoint/apis/record.mjs'; import { identifyUser as identifyUser$1 } from './providers/pinpoint/apis/identifyUser.mjs'; import { configureAutoTrack as configureAutoTrack$1 } from './providers/pinpoint/apis/configureAutoTrack.mjs'; import { flushEvents as flushEvents$1 } from './providers/pinpoint/apis/flushEvents.mjs'; import '@aws-amplify/core'; export { AnalyticsError } from './errors/AnalyticsError.mjs'; import './errors/validation.mjs'; import './utils/eventBuffer/EventBuffer.mjs'; import '@aws-amplify/core/internals/utils'; import './trackers/EventTracker.mjs'; import './trackers/PageViewTracker.mjs'; import './trackers/SessionTracker.mjs'; import { deprecatePinpoint } from './utils/deprecatePinpoint.mjs'; export { enable } from './apis/enable.mjs'; export { disable } from './apis/disable.mjs'; // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 // This entry point intentionally re-exports the deprecated Pinpoint provider // APIs as the default Analytics surface. Removing them would be a breaking // change; instead each is wrapped to emit a one-time runtime deprecation // warning. The deprecated imports below are therefore expected. /* eslint-disable import/no-deprecated */ /** * @deprecated The default (Amazon Pinpoint) Analytics APIs are deprecated. AWS will end support for * Amazon Pinpoint on October 30, 2026. Migrate to a supported provider by importing from its sub-path * export instead — for example `aws-amplify/analytics/kinesis`, `aws-amplify/analytics/kinesis-firehose`, * or `aws-amplify/analytics/personalize`. */ const record = deprecatePinpoint(record$1); /** * @deprecated The default (Amazon Pinpoint) Analytics APIs are deprecated. AWS will end support for * Amazon Pinpoint on October 30, 2026. Migrate to a supported provider by importing from its sub-path * export instead — for example `aws-amplify/analytics/kinesis`, `aws-amplify/analytics/kinesis-firehose`, * or `aws-amplify/analytics/personalize`. */ const identifyUser = deprecatePinpoint(identifyUser$1); /** * @deprecated The default (Amazon Pinpoint) Analytics APIs are deprecated. AWS will end support for * Amazon Pinpoint on October 30, 2026. Migrate to a supported provider by importing from its sub-path * export instead — for example `aws-amplify/analytics/kinesis`, `aws-amplify/analytics/kinesis-firehose`, * or `aws-amplify/analytics/personalize`. */ const configureAutoTrack = deprecatePinpoint(configureAutoTrack$1); /** * @deprecated The default (Amazon Pinpoint) Analytics APIs are deprecated. AWS will end support for * Amazon Pinpoint on October 30, 2026. Migrate to a supported provider by importing from its sub-path * export instead — for example `aws-amplify/analytics/kinesis`, `aws-amplify/analytics/kinesis-firehose`, * or `aws-amplify/analytics/personalize`. */ const flushEvents = deprecatePinpoint(flushEvents$1); export { configureAutoTrack, flushEvents, identifyUser, record }; //# sourceMappingURL=index.mjs.map