@shware/analytics 13.1.0 → 14.0.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/README.md +12 -0
- package/dist/_virtual/_rolldown/runtime.cjs +1 -2
- package/dist/_virtual/_rolldown/runtime.mjs +1 -2
- package/dist/ads/google.cjs +1 -2
- package/dist/ads/google.d.cts +0 -2
- package/dist/ads/google.d.cts.map +1 -1
- package/dist/ads/google.d.mts +0 -2
- package/dist/ads/google.d.mts.map +1 -1
- package/dist/ads/google.mjs +1 -2
- package/dist/ads/meta.cjs +1 -2
- package/dist/ads/meta.d.cts +0 -2
- package/dist/ads/meta.d.cts.map +1 -1
- package/dist/ads/meta.d.mts +0 -2
- package/dist/ads/meta.d.mts.map +1 -1
- package/dist/ads/meta.mjs +1 -2
- package/dist/ads/time.cjs +1 -2
- package/dist/ads/time.d.cts +0 -2
- package/dist/ads/time.d.cts.map +1 -1
- package/dist/ads/time.d.mts +0 -2
- package/dist/ads/time.d.mts.map +1 -1
- package/dist/ads/time.mjs +1 -2
- package/dist/ads/types.d.cts +0 -2
- package/dist/ads/types.d.cts.map +1 -1
- package/dist/ads/types.d.mts +0 -2
- package/dist/ads/types.d.mts.map +1 -1
- package/dist/attribution/classify.cjs +1 -2
- package/dist/attribution/classify.d.cts +0 -2
- package/dist/attribution/classify.d.cts.map +1 -1
- package/dist/attribution/classify.d.mts +0 -2
- package/dist/attribution/classify.d.mts.map +1 -1
- package/dist/attribution/classify.mjs +1 -2
- package/dist/attribution/vocabulary.cjs +1 -2
- package/dist/attribution/vocabulary.d.cts +0 -2
- package/dist/attribution/vocabulary.d.cts.map +1 -1
- package/dist/attribution/vocabulary.d.mts +0 -2
- package/dist/attribution/vocabulary.d.mts.map +1 -1
- package/dist/attribution/vocabulary.mjs +1 -2
- package/dist/bot/generic.cjs +1 -2
- package/dist/bot/generic.d.cts +0 -2
- package/dist/bot/generic.d.cts.map +1 -1
- package/dist/bot/generic.d.mts +0 -2
- package/dist/bot/generic.d.mts.map +1 -1
- package/dist/bot/generic.mjs +1 -2
- package/dist/bot/index.cjs +1 -2
- package/dist/bot/index.d.cts +0 -2
- package/dist/bot/index.d.cts.map +1 -1
- package/dist/bot/index.d.mts +0 -2
- package/dist/bot/index.d.mts.map +1 -1
- package/dist/bot/index.mjs +1 -2
- package/dist/click-id/index.cjs +1 -2
- package/dist/click-id/index.d.cts +0 -2
- package/dist/click-id/index.d.cts.map +1 -1
- package/dist/click-id/index.d.mts +0 -2
- package/dist/click-id/index.d.mts.map +1 -1
- package/dist/click-id/index.mjs +1 -2
- package/dist/constants/storage.cjs +1 -2
- package/dist/constants/storage.d.cts +0 -2
- package/dist/constants/storage.d.cts.map +1 -1
- package/dist/constants/storage.d.mts +0 -2
- package/dist/constants/storage.d.mts.map +1 -1
- package/dist/constants/storage.mjs +1 -2
- package/dist/feedback/index.cjs +7 -2
- package/dist/feedback/index.cjs.map +1 -1
- package/dist/feedback/index.d.cts +6 -2
- package/dist/feedback/index.d.cts.map +1 -1
- package/dist/feedback/index.d.mts +6 -2
- package/dist/feedback/index.d.mts.map +1 -1
- package/dist/feedback/index.mjs +7 -2
- package/dist/feedback/index.mjs.map +1 -1
- package/dist/hooks/use-app-analytics.cjs +1 -2
- package/dist/hooks/use-app-analytics.d.cts +0 -2
- package/dist/hooks/use-app-analytics.d.cts.map +1 -1
- package/dist/hooks/use-app-analytics.d.mts +0 -2
- package/dist/hooks/use-app-analytics.d.mts.map +1 -1
- package/dist/hooks/use-app-analytics.mjs +1 -2
- package/dist/hooks/use-outbound-click-analytics.cjs +1 -2
- package/dist/hooks/use-outbound-click-analytics.d.cts +0 -2
- package/dist/hooks/use-outbound-click-analytics.d.cts.map +1 -1
- package/dist/hooks/use-outbound-click-analytics.d.mts +0 -2
- package/dist/hooks/use-outbound-click-analytics.d.mts.map +1 -1
- package/dist/hooks/use-outbound-click-analytics.mjs +1 -2
- package/dist/hooks/use-report-web-vitals.cjs +1 -2
- package/dist/hooks/use-report-web-vitals.d.cts +0 -2
- package/dist/hooks/use-report-web-vitals.d.cts.map +1 -1
- package/dist/hooks/use-report-web-vitals.d.mts +0 -2
- package/dist/hooks/use-report-web-vitals.d.mts.map +1 -1
- package/dist/hooks/use-report-web-vitals.mjs +1 -2
- package/dist/hooks/use-track-impression.cjs +1 -2
- package/dist/hooks/use-track-impression.d.cts +0 -2
- package/dist/hooks/use-track-impression.d.cts.map +1 -1
- package/dist/hooks/use-track-impression.d.mts +0 -2
- package/dist/hooks/use-track-impression.d.mts.map +1 -1
- package/dist/hooks/use-track-impression.mjs +1 -2
- package/dist/hooks/use-uet-id-sync.cjs +1 -2
- package/dist/hooks/use-uet-id-sync.d.cts +0 -2
- package/dist/hooks/use-uet-id-sync.d.cts.map +1 -1
- package/dist/hooks/use-uet-id-sync.d.mts +0 -2
- package/dist/hooks/use-uet-id-sync.d.mts.map +1 -1
- package/dist/hooks/use-uet-id-sync.mjs +1 -2
- package/dist/hooks/use-web-analytics.cjs +1 -2
- package/dist/hooks/use-web-analytics.d.cts +0 -2
- package/dist/hooks/use-web-analytics.d.cts.map +1 -1
- package/dist/hooks/use-web-analytics.d.mts +0 -2
- package/dist/hooks/use-web-analytics.d.mts.map +1 -1
- package/dist/hooks/use-web-analytics.mjs +1 -2
- package/dist/link/index.cjs +1 -2
- package/dist/link/index.d.cts +0 -2
- package/dist/link/index.d.cts.map +1 -1
- package/dist/link/index.d.mts +0 -2
- package/dist/link/index.d.mts.map +1 -1
- package/dist/link/index.mjs +1 -2
- package/dist/native/deep-link.cjs +1 -2
- package/dist/native/deep-link.d.cts +0 -2
- package/dist/native/deep-link.d.cts.map +1 -1
- package/dist/native/deep-link.d.mts +0 -2
- package/dist/native/deep-link.d.mts.map +1 -1
- package/dist/native/deep-link.mjs +1 -2
- package/dist/native/fbsdk.cjs +1 -2
- package/dist/native/fbsdk.d.cts +0 -2
- package/dist/native/fbsdk.d.cts.map +1 -1
- package/dist/native/fbsdk.d.mts +0 -2
- package/dist/native/fbsdk.d.mts.map +1 -1
- package/dist/native/fbsdk.mjs +1 -2
- package/dist/native/fingerprint.cjs +1 -2
- package/dist/native/fingerprint.d.cts +0 -2
- package/dist/native/fingerprint.d.cts.map +1 -1
- package/dist/native/fingerprint.d.mts +0 -2
- package/dist/native/fingerprint.d.mts.map +1 -1
- package/dist/native/fingerprint.mjs +1 -2
- package/dist/native/firebase.cjs +1 -2
- package/dist/native/firebase.d.cts +0 -2
- package/dist/native/firebase.d.cts.map +1 -1
- package/dist/native/firebase.d.mts +0 -2
- package/dist/native/firebase.d.mts.map +1 -1
- package/dist/native/firebase.mjs +1 -2
- package/dist/native/index.cjs +1 -1
- package/dist/native/index.mjs +1 -1
- package/dist/native/posthog.cjs +1 -2
- package/dist/native/posthog.d.cts +0 -2
- package/dist/native/posthog.d.cts.map +1 -1
- package/dist/native/posthog.d.mts +0 -2
- package/dist/native/posthog.d.mts.map +1 -1
- package/dist/native/posthog.mjs +1 -2
- package/dist/native/setup.cjs +1 -2
- package/dist/native/setup.d.cts +0 -2
- package/dist/native/setup.d.cts.map +1 -1
- package/dist/native/setup.d.mts +0 -2
- package/dist/native/setup.d.mts.map +1 -1
- package/dist/native/setup.mjs +1 -2
- package/dist/next/index.cjs +1 -2
- package/dist/next/index.d.cts +0 -2
- package/dist/next/index.d.cts.map +1 -1
- package/dist/next/index.d.mts +0 -2
- package/dist/next/index.d.mts.map +1 -1
- package/dist/next/index.mjs +1 -2
- package/dist/node_modules/.pnpm/bowser@2.14.1/node_modules/bowser/es5.cjs +1 -2
- package/dist/node_modules/.pnpm/bowser@2.14.1/node_modules/bowser/es5.mjs +1 -2
- package/dist/react-router/index.cjs +2 -3
- package/dist/react-router/index.d.cts +0 -2
- package/dist/react-router/index.d.cts.map +1 -1
- package/dist/react-router/index.d.mts +0 -2
- package/dist/react-router/index.d.mts.map +1 -1
- package/dist/react-router/index.mjs +2 -3
- package/dist/schema/index.cjs +9 -3
- package/dist/schema/index.cjs.map +1 -1
- package/dist/schema/index.d.cts +1 -2
- package/dist/schema/index.d.cts.map +1 -1
- package/dist/schema/index.d.mts +1 -2
- package/dist/schema/index.d.mts.map +1 -1
- package/dist/schema/index.mjs +9 -3
- package/dist/schema/index.mjs.map +1 -1
- package/dist/server/action-source.cjs +1 -2
- package/dist/server/action-source.d.cts +0 -2
- package/dist/server/action-source.d.cts.map +1 -1
- package/dist/server/action-source.d.mts +0 -2
- package/dist/server/action-source.d.mts.map +1 -1
- package/dist/server/action-source.mjs +1 -2
- package/dist/server/click-ids.cjs +1 -2
- package/dist/server/click-ids.d.cts +0 -2
- package/dist/server/click-ids.d.cts.map +1 -1
- package/dist/server/click-ids.d.mts +0 -2
- package/dist/server/click-ids.d.mts.map +1 -1
- package/dist/server/click-ids.mjs +1 -2
- package/dist/server/google-data-manager.cjs +1 -2
- package/dist/server/google-data-manager.d.cts +0 -2
- package/dist/server/google-data-manager.d.cts.map +1 -1
- package/dist/server/google-data-manager.d.mts +0 -2
- package/dist/server/google-data-manager.d.mts.map +1 -1
- package/dist/server/google-data-manager.mjs +1 -2
- package/dist/server/linkedin-conversions-api.cjs +1 -2
- package/dist/server/linkedin-conversions-api.d.cts +0 -2
- package/dist/server/linkedin-conversions-api.d.cts.map +1 -1
- package/dist/server/linkedin-conversions-api.d.mts +0 -2
- package/dist/server/linkedin-conversions-api.d.mts.map +1 -1
- package/dist/server/linkedin-conversions-api.mjs +1 -2
- package/dist/server/meta-capi.cjs +1 -2
- package/dist/server/meta-capi.d.cts +0 -2
- package/dist/server/meta-capi.d.cts.map +1 -1
- package/dist/server/meta-capi.d.mts +0 -2
- package/dist/server/meta-capi.d.mts.map +1 -1
- package/dist/server/meta-capi.mjs +1 -2
- package/dist/server/meta-conversions-api.cjs +1 -2
- package/dist/server/meta-conversions-api.d.cts +0 -2
- package/dist/server/meta-conversions-api.d.cts.map +1 -1
- package/dist/server/meta-conversions-api.d.mts +0 -2
- package/dist/server/meta-conversions-api.d.mts.map +1 -1
- package/dist/server/meta-conversions-api.mjs +1 -2
- package/dist/server/microsoft-conversions-api.cjs +1 -2
- package/dist/server/microsoft-conversions-api.d.cts +0 -2
- package/dist/server/microsoft-conversions-api.d.cts.map +1 -1
- package/dist/server/microsoft-conversions-api.d.mts +0 -2
- package/dist/server/microsoft-conversions-api.d.mts.map +1 -1
- package/dist/server/microsoft-conversions-api.mjs +1 -2
- package/dist/server/openai-conversions-api.cjs +1 -2
- package/dist/server/openai-conversions-api.d.cts +0 -2
- package/dist/server/openai-conversions-api.d.cts.map +1 -1
- package/dist/server/openai-conversions-api.d.mts +0 -2
- package/dist/server/openai-conversions-api.d.mts.map +1 -1
- package/dist/server/openai-conversions-api.mjs +1 -2
- package/dist/server/page-location.cjs +1 -2
- package/dist/server/page-location.d.cts +0 -2
- package/dist/server/page-location.d.cts.map +1 -1
- package/dist/server/page-location.d.mts +0 -2
- package/dist/server/page-location.d.mts.map +1 -1
- package/dist/server/page-location.mjs +1 -2
- package/dist/server/reddit-conversions-api.cjs +1 -2
- package/dist/server/reddit-conversions-api.d.cts +0 -2
- package/dist/server/reddit-conversions-api.d.cts.map +1 -1
- package/dist/server/reddit-conversions-api.d.mts +0 -2
- package/dist/server/reddit-conversions-api.d.mts.map +1 -1
- package/dist/server/reddit-conversions-api.mjs +1 -2
- package/dist/setup/index.cjs +1 -2
- package/dist/setup/index.d.cts +0 -2
- package/dist/setup/index.d.cts.map +1 -1
- package/dist/setup/index.d.mts +0 -2
- package/dist/setup/index.d.mts.map +1 -1
- package/dist/setup/index.mjs +1 -2
- package/dist/setup/session.cjs +1 -2
- package/dist/setup/session.d.cts +0 -2
- package/dist/setup/session.d.cts.map +1 -1
- package/dist/setup/session.d.mts +0 -2
- package/dist/setup/session.d.mts.map +1 -1
- package/dist/setup/session.mjs +1 -2
- package/dist/tanstack/analytics.cjs +2 -3
- package/dist/tanstack/analytics.d.cts +0 -2
- package/dist/tanstack/analytics.d.cts.map +1 -1
- package/dist/tanstack/analytics.d.mts +0 -2
- package/dist/tanstack/analytics.d.mts.map +1 -1
- package/dist/tanstack/analytics.mjs +2 -3
- package/dist/tanstack/middleware.cjs +1 -2
- package/dist/tanstack/middleware.d.cts +0 -2
- package/dist/tanstack/middleware.d.cts.map +1 -1
- package/dist/tanstack/middleware.d.mts +0 -2
- package/dist/tanstack/middleware.d.mts.map +1 -1
- package/dist/tanstack/middleware.mjs +1 -2
- package/dist/test/native-modules.d.cts +0 -2
- package/dist/test/native-modules.d.mts +0 -2
- package/dist/test/setup.cjs +1 -2
- package/dist/test/setup.d.cts +0 -2
- package/dist/test/setup.d.cts.map +1 -1
- package/dist/test/setup.d.mts +0 -2
- package/dist/test/setup.d.mts.map +1 -1
- package/dist/test/setup.mjs +1 -2
- package/dist/third-parties/google-analytics.cjs +1 -2
- package/dist/third-parties/google-analytics.d.cts +0 -2
- package/dist/third-parties/google-analytics.d.cts.map +1 -1
- package/dist/third-parties/google-analytics.d.mts +0 -2
- package/dist/third-parties/google-analytics.d.mts.map +1 -1
- package/dist/third-parties/google-analytics.mjs +1 -2
- package/dist/third-parties/ignored-events.cjs +1 -2
- package/dist/third-parties/ignored-events.d.cts +0 -2
- package/dist/third-parties/ignored-events.d.cts.map +1 -1
- package/dist/third-parties/ignored-events.d.mts +0 -2
- package/dist/third-parties/ignored-events.d.mts.map +1 -1
- package/dist/third-parties/ignored-events.mjs +1 -2
- package/dist/third-parties/linkedin-insight-tag.cjs +1 -2
- package/dist/third-parties/linkedin-insight-tag.d.cts +0 -2
- package/dist/third-parties/linkedin-insight-tag.d.cts.map +1 -1
- package/dist/third-parties/linkedin-insight-tag.d.mts +0 -2
- package/dist/third-parties/linkedin-insight-tag.d.mts.map +1 -1
- package/dist/third-parties/linkedin-insight-tag.mjs +1 -2
- package/dist/third-parties/meta-pixel.cjs +2 -3
- package/dist/third-parties/meta-pixel.d.cts +0 -2
- package/dist/third-parties/meta-pixel.d.cts.map +1 -1
- package/dist/third-parties/meta-pixel.d.mts +0 -2
- package/dist/third-parties/meta-pixel.d.mts.map +1 -1
- package/dist/third-parties/meta-pixel.mjs +2 -3
- package/dist/third-parties/microsoft-uet.cjs +1 -2
- package/dist/third-parties/microsoft-uet.d.cts +0 -2
- package/dist/third-parties/microsoft-uet.d.cts.map +1 -1
- package/dist/third-parties/microsoft-uet.d.mts +0 -2
- package/dist/third-parties/microsoft-uet.d.mts.map +1 -1
- package/dist/third-parties/microsoft-uet.mjs +1 -2
- package/dist/third-parties/openai-pixel.cjs +1 -2
- package/dist/third-parties/openai-pixel.d.cts +0 -2
- package/dist/third-parties/openai-pixel.d.cts.map +1 -1
- package/dist/third-parties/openai-pixel.d.mts +0 -2
- package/dist/third-parties/openai-pixel.d.mts.map +1 -1
- package/dist/third-parties/openai-pixel.mjs +1 -2
- package/dist/third-parties/posthog.cjs +1 -2
- package/dist/third-parties/posthog.d.cts +0 -2
- package/dist/third-parties/posthog.d.cts.map +1 -1
- package/dist/third-parties/posthog.d.mts +0 -2
- package/dist/third-parties/posthog.d.mts.map +1 -1
- package/dist/third-parties/posthog.mjs +1 -2
- package/dist/third-parties/reddit-pixel.cjs +1 -2
- package/dist/third-parties/reddit-pixel.d.cts +0 -2
- package/dist/third-parties/reddit-pixel.d.cts.map +1 -1
- package/dist/third-parties/reddit-pixel.d.mts +0 -2
- package/dist/third-parties/reddit-pixel.d.mts.map +1 -1
- package/dist/third-parties/reddit-pixel.mjs +1 -2
- package/dist/track/fbq.cjs +1 -2
- package/dist/track/fbq.d.cts +0 -2
- package/dist/track/fbq.d.cts.map +1 -1
- package/dist/track/fbq.d.mts +0 -2
- package/dist/track/fbq.d.mts.map +1 -1
- package/dist/track/fbq.mjs +1 -2
- package/dist/track/gtag.cjs +1 -2
- package/dist/track/gtag.d.cts +0 -2
- package/dist/track/gtag.d.cts.map +1 -1
- package/dist/track/gtag.d.mts +0 -2
- package/dist/track/gtag.d.mts.map +1 -1
- package/dist/track/gtag.mjs +1 -2
- package/dist/track/index.cjs +1 -2
- package/dist/track/index.d.cts +0 -2
- package/dist/track/index.d.cts.map +1 -1
- package/dist/track/index.d.mts +0 -2
- package/dist/track/index.d.mts.map +1 -1
- package/dist/track/index.mjs +1 -2
- package/dist/track/lintrk.d.cts +0 -2
- package/dist/track/lintrk.d.cts.map +1 -1
- package/dist/track/lintrk.d.mts +0 -2
- package/dist/track/lintrk.d.mts.map +1 -1
- package/dist/track/oaiq.cjs +1 -2
- package/dist/track/oaiq.d.cts +0 -2
- package/dist/track/oaiq.d.cts.map +1 -1
- package/dist/track/oaiq.d.mts +0 -2
- package/dist/track/oaiq.d.mts.map +1 -1
- package/dist/track/oaiq.mjs +1 -2
- package/dist/track/once.cjs +1 -2
- package/dist/track/once.d.cts +0 -2
- package/dist/track/once.d.cts.map +1 -1
- package/dist/track/once.d.mts +0 -2
- package/dist/track/once.d.mts.map +1 -1
- package/dist/track/once.mjs +1 -2
- package/dist/track/rdt.cjs +1 -2
- package/dist/track/rdt.d.cts +0 -2
- package/dist/track/rdt.d.cts.map +1 -1
- package/dist/track/rdt.d.mts +0 -2
- package/dist/track/rdt.d.mts.map +1 -1
- package/dist/track/rdt.mjs +1 -2
- package/dist/track/types.d.cts +0 -2
- package/dist/track/types.d.cts.map +1 -1
- package/dist/track/types.d.mts +0 -2
- package/dist/track/types.d.mts.map +1 -1
- package/dist/track/uetq.cjs +1 -2
- package/dist/track/uetq.d.cts +0 -2
- package/dist/track/uetq.d.cts.map +1 -1
- package/dist/track/uetq.d.mts +0 -2
- package/dist/track/uetq.d.mts.map +1 -1
- package/dist/track/uetq.mjs +1 -2
- package/dist/utils/field.cjs +1 -2
- package/dist/utils/field.d.cts +0 -2
- package/dist/utils/field.d.cts.map +1 -1
- package/dist/utils/field.d.mts +0 -2
- package/dist/utils/field.d.mts.map +1 -1
- package/dist/utils/field.mjs +1 -2
- package/dist/utils/redact-url.cjs +1 -2
- package/dist/utils/redact-url.d.cts +0 -2
- package/dist/utils/redact-url.d.cts.map +1 -1
- package/dist/utils/redact-url.d.mts +0 -2
- package/dist/utils/redact-url.d.mts.map +1 -1
- package/dist/utils/redact-url.mjs +1 -2
- package/dist/utils/sha256.cjs +1 -2
- package/dist/utils/sha256.d.cts +0 -2
- package/dist/utils/sha256.d.cts.map +1 -1
- package/dist/utils/sha256.d.mts +0 -2
- package/dist/utils/sha256.d.mts.map +1 -1
- package/dist/utils/sha256.mjs +1 -2
- package/dist/visitor/id.cjs +1 -2
- package/dist/visitor/id.d.cts +0 -2
- package/dist/visitor/id.d.cts.map +1 -1
- package/dist/visitor/id.d.mts +0 -2
- package/dist/visitor/id.d.mts.map +1 -1
- package/dist/visitor/id.mjs +1 -2
- package/dist/visitor/index.cjs +1 -2
- package/dist/visitor/index.d.cts +0 -2
- package/dist/visitor/index.d.cts.map +1 -1
- package/dist/visitor/index.d.mts +0 -2
- package/dist/visitor/index.d.mts.map +1 -1
- package/dist/visitor/index.mjs +1 -2
- package/dist/visitor/types.d.cts +0 -2
- package/dist/visitor/types.d.cts.map +1 -1
- package/dist/visitor/types.d.mts +0 -2
- package/dist/visitor/types.d.mts.map +1 -1
- package/dist/web/index.cjs +2 -3
- package/dist/web/index.d.cts +0 -2
- package/dist/web/index.d.cts.map +1 -1
- package/dist/web/index.d.mts +0 -2
- package/dist/web/index.d.mts.map +1 -1
- package/dist/web/index.mjs +2 -3
- package/dist/web/page-key.cjs +1 -2
- package/dist/web/page-key.d.cts +0 -2
- package/dist/web/page-key.d.cts.map +1 -1
- package/dist/web/page-key.d.mts +0 -2
- package/dist/web/page-key.d.mts.map +1 -1
- package/dist/web/page-key.mjs +1 -2
- package/package.json +9 -9
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { TrackEvent, UserProvidedData } from "../track/types.cjs";
|
|
2
|
-
//#region src/server/linkedin-conversions-api.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* The identifier types LinkedIn matches on, as of version 202609. `ORACLE_MOAT_ID` used to be
|
|
5
4
|
* here and is no longer in the schema; the IP and Android ones are.
|
|
@@ -61,6 +60,5 @@ export interface CreateMultipleLinkedinEventsDTO {
|
|
|
61
60
|
}
|
|
62
61
|
export type LinkedinConversionConfig = Record<Lowercase<string>, number>;
|
|
63
62
|
export declare function sendEvents(accessToken: string, config: LinkedinConversionConfig, events: TrackEvent<any>[], data?: UserProvidedData): Promise<void>;
|
|
64
|
-
//#endregion
|
|
65
63
|
export {};
|
|
66
64
|
//# sourceMappingURL=linkedin-conversions-api.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"linkedin-conversions-api.d.cts","names":[],"sources":["../../src/server/linkedin-conversions-api.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"linkedin-conversions-api.d.cts","names":[],"sources":["../../src/server/linkedin-conversions-api.ts"],"mappings":";;;;;KAgBK;iBAQY;;;;;;;;;EASf;;;;;EAMA;;EAGA;EACA;IAAmB;IAAsB;;EACzC;IACE;MAAW,QAAQ;MAAY;;;;;;;;IAO/B;MACE;MACA;MACA;MACA;MACA;;;;;;IAOF;;;;;IAMA;;;iBAIa;EACf,UAAU;;YA4BA,2BAA2B,OAAO;wBAQxB,WACpB,qBACA,QAAQ,0BAER,QAAQ,mBACR,OAAM,mBAAqB"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { TrackEvent, UserProvidedData } from "../track/types.mjs";
|
|
2
|
-
//#region src/server/linkedin-conversions-api.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* The identifier types LinkedIn matches on, as of version 202609. `ORACLE_MOAT_ID` used to be
|
|
5
4
|
* here and is no longer in the schema; the IP and Android ones are.
|
|
@@ -61,6 +60,5 @@ export interface CreateMultipleLinkedinEventsDTO {
|
|
|
61
60
|
}
|
|
62
61
|
export type LinkedinConversionConfig = Record<Lowercase<string>, number>;
|
|
63
62
|
export declare function sendEvents(accessToken: string, config: LinkedinConversionConfig, events: TrackEvent<any>[], data?: UserProvidedData): Promise<void>;
|
|
64
|
-
//#endregion
|
|
65
63
|
export {};
|
|
66
64
|
//# sourceMappingURL=linkedin-conversions-api.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"linkedin-conversions-api.d.mts","names":[],"sources":["../../src/server/linkedin-conversions-api.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"linkedin-conversions-api.d.mts","names":[],"sources":["../../src/server/linkedin-conversions-api.ts"],"mappings":";;;;;KAgBK;iBAQY;;;;;;;;;EASf;;;;;EAMA;;EAGA;EACA;IAAmB;IAAsB;;EACzC;IACE;MAAW,QAAQ;MAAY;;;;;;;;IAO/B;MACE;MACA;MACA;MACA;MACA;;;;;;IAOF;;;;;IAMA;;;iBAIa;EACf,UAAU;;YA4BA,2BAA2B,OAAO;wBAQxB,WACpB,qBACA,QAAQ,0BAER,QAAQ,mBACR,OAAM,mBAAqB"}
|
|
@@ -4,7 +4,7 @@ import { linkedinFatId } from "./click-ids.mjs";
|
|
|
4
4
|
import { fetch } from "@shware/utils";
|
|
5
5
|
import { createHash } from "node:crypto";
|
|
6
6
|
import { isIPv4 } from "node:net";
|
|
7
|
-
|
|
7
|
+
// src/server/linkedin-conversions-api.ts
|
|
8
8
|
/**
|
|
9
9
|
* Conversions API Payload Builder: https://www.linkedin.com/developers/payload-builder
|
|
10
10
|
* https://learn.microsoft.com/en-us/linkedin/marketing/conversions/conversions-overview?view=li-lms-2026-09
|
|
@@ -106,7 +106,6 @@ async function sendEvents(accessToken, config, events, data = {}) {
|
|
|
106
106
|
console.error("Failed to send LinkedIn conversion, network error:", error);
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
|
-
//#endregion
|
|
110
109
|
export { sendEvents };
|
|
111
110
|
|
|
112
111
|
//# sourceMappingURL=linkedin-conversions-api.mjs.map
|
|
@@ -7,7 +7,7 @@ const require_server_page_location = require("./page-location.cjs");
|
|
|
7
7
|
let _shware_utils = require("@shware/utils");
|
|
8
8
|
let node_crypto = require("node:crypto");
|
|
9
9
|
let capi_param_builder_nodejs = require("capi-param-builder-nodejs");
|
|
10
|
-
|
|
10
|
+
// src/server/meta-capi.ts
|
|
11
11
|
/**
|
|
12
12
|
* Meta Conversions API sender built on `capi-param-builder-nodejs` and plain `fetch`, replacing
|
|
13
13
|
* the 31MB `facebook-nodejs-business-sdk` with ~0.5MB of parameter building. The SDK-based
|
|
@@ -279,7 +279,6 @@ async function sendEvents(accessToken, pixelId, events, data = {}, options = {})
|
|
|
279
279
|
return;
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
|
-
//#endregion
|
|
283
282
|
exports.getCapiEvent = getCapiEvent;
|
|
284
283
|
exports.metaExtinfoVersion = metaExtinfoVersion;
|
|
285
284
|
exports.sendEvents = sendEvents;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { TrackEvent, TrackTags, UserProvidedData } from "../track/types.cjs";
|
|
2
|
-
//#region src/server/meta-capi.d.ts
|
|
3
2
|
interface CapiUserData {
|
|
4
3
|
em?: string[];
|
|
5
4
|
ph?: string[];
|
|
@@ -74,6 +73,5 @@ export interface MetaConversionsResponse {
|
|
|
74
73
|
* travels in the JSON body, never in the URL, and is never logged.
|
|
75
74
|
*/
|
|
76
75
|
export declare function sendEvents(accessToken: string, pixelId: string, events: TrackEvent<any>[], data?: UserProvidedData, options?: MetaConversionsOptions): Promise<MetaConversionsResponse | undefined>;
|
|
77
|
-
//#endregion
|
|
78
76
|
export {};
|
|
79
77
|
//# sourceMappingURL=meta-capi.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta-capi.d.cts","names":[],"sources":["../../src/server/meta-capi.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"meta-capi.d.cts","names":[],"sources":["../../src/server/meta-capi.ts"],"mappings":";UAsGU;EACR;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;;;;;;;;;;;;wBAqKc,mBAAmB,MAAM;;iBAmCxB;EACf;EACA;EACA;EACA;EACA;EACA,WAAW;EACX,aAAa;EACb,WAAW;;;;;;;;wBASG,aAEd,OAAO,iBACP,MAAM,kBACN,0BACC;iBA+Bc;;EAEf;;EAEA;;EAEA;;iBAGe;EACf;EACA;EACA;;;;;;;wBAeoB,WACpB,qBACA,iBAEA,QAAQ,mBACR,OAAM,kBACN,UAAS,yBACR,QAAQ"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { TrackEvent, TrackTags, UserProvidedData } from "../track/types.mjs";
|
|
2
|
-
//#region src/server/meta-capi.d.ts
|
|
3
2
|
interface CapiUserData {
|
|
4
3
|
em?: string[];
|
|
5
4
|
ph?: string[];
|
|
@@ -74,6 +73,5 @@ export interface MetaConversionsResponse {
|
|
|
74
73
|
* travels in the JSON body, never in the URL, and is never logged.
|
|
75
74
|
*/
|
|
76
75
|
export declare function sendEvents(accessToken: string, pixelId: string, events: TrackEvent<any>[], data?: UserProvidedData, options?: MetaConversionsOptions): Promise<MetaConversionsResponse | undefined>;
|
|
77
|
-
//#endregion
|
|
78
76
|
export {};
|
|
79
77
|
//# sourceMappingURL=meta-capi.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta-capi.d.mts","names":[],"sources":["../../src/server/meta-capi.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"meta-capi.d.mts","names":[],"sources":["../../src/server/meta-capi.ts"],"mappings":";UAsGU;EACR;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;;;;;;;;;;;;wBAqKc,mBAAmB,MAAM;;iBAmCxB;EACf;EACA;EACA;EACA;EACA;EACA,WAAW;EACX,aAAa;EACb,WAAW;;;;;;;;wBASG,aAEd,OAAO,iBACP,MAAM,kBACN,0BACC;iBA+Bc;;EAEf;;EAEA;;EAEA;;iBAGe;EACf;EACA;EACA;;;;;;;wBAeoB,WACpB,qBACA,iBAEA,QAAQ,mBACR,OAAM,kBACN,UAAS,yBACR,QAAQ"}
|
|
@@ -6,7 +6,7 @@ import { pageLocation } from "./page-location.mjs";
|
|
|
6
6
|
import { fetch } from "@shware/utils";
|
|
7
7
|
import { createHash } from "node:crypto";
|
|
8
8
|
import { PII_DATA_TYPE, ParamBuilder } from "capi-param-builder-nodejs";
|
|
9
|
-
|
|
9
|
+
// src/server/meta-capi.ts
|
|
10
10
|
/**
|
|
11
11
|
* Meta Conversions API sender built on `capi-param-builder-nodejs` and plain `fetch`, replacing
|
|
12
12
|
* the 31MB `facebook-nodejs-business-sdk` with ~0.5MB of parameter building. The SDK-based
|
|
@@ -278,7 +278,6 @@ async function sendEvents(accessToken, pixelId, events, data = {}, options = {})
|
|
|
278
278
|
return;
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
|
-
//#endregion
|
|
282
281
|
export { getCapiEvent, metaExtinfoVersion, sendEvents };
|
|
283
282
|
|
|
284
283
|
//# sourceMappingURL=meta-capi.mjs.map
|
|
@@ -6,7 +6,7 @@ const require_server_click_ids = require("./click-ids.cjs");
|
|
|
6
6
|
const require_server_page_location = require("./page-location.cjs");
|
|
7
7
|
const require_server_meta_capi = require("./meta-capi.cjs");
|
|
8
8
|
let facebook_nodejs_business_sdk = require("facebook-nodejs-business-sdk");
|
|
9
|
-
|
|
9
|
+
// src/server/meta-conversions-api.ts
|
|
10
10
|
const USER_ASSIGNED_COUNTRIES = ["xk"];
|
|
11
11
|
function normalizeCountry(input) {
|
|
12
12
|
const country = input?.split(/[-_]/).at(0)?.toLowerCase();
|
|
@@ -197,7 +197,6 @@ async function sendTestEvent(accessToken, pixelId, testEventCode) {
|
|
|
197
197
|
request.setEvents([event]);
|
|
198
198
|
return request.execute();
|
|
199
199
|
}
|
|
200
|
-
//#endregion
|
|
201
200
|
exports.getServerEvent = getServerEvent;
|
|
202
201
|
exports.sendEvent = sendEvent;
|
|
203
202
|
exports.sendEvents = sendEvents;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { TrackEvent, UserProvidedData } from "../track/types.cjs";
|
|
2
2
|
import { EventActionSource } from "./action-source.cjs";
|
|
3
3
|
import { ServerEvent } from "facebook-nodejs-business-sdk";
|
|
4
|
-
//#region src/server/meta-conversions-api.d.ts
|
|
5
4
|
export declare function getServerEvent(event: TrackEvent<any>, data: UserProvidedData, appPackageName?: string, actionSource?: EventActionSource): ServerEvent;
|
|
6
5
|
export declare function sendEvent(accessToken: string, pixelId: string, event: TrackEvent<any>, data?: UserProvidedData, appPackageName?: string, actionSource?: EventActionSource): Promise<import("facebook-nodejs-business-sdk").EventResponse | undefined>;
|
|
7
6
|
export declare function sendEvents(accessToken: string, pixelId: string, events: TrackEvent<any>[], data?: UserProvidedData, appPackageName?: string, actionSource?: EventActionSource): Promise<import("facebook-nodejs-business-sdk").EventResponse | undefined>;
|
|
8
7
|
export declare function sendTestEvent(accessToken: string, pixelId: string, testEventCode: string): Promise<import("facebook-nodejs-business-sdk").EventResponse>;
|
|
9
|
-
//#endregion
|
|
10
8
|
//# sourceMappingURL=meta-conversions-api.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta-conversions-api.d.cts","names":[],"sources":["../../src/server/meta-conversions-api.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"meta-conversions-api.d.cts","names":[],"sources":["../../src/server/meta-conversions-api.ts"],"mappings":";;;wBAwNgB,eAEd,OAAO,iBACP,MAAM,kBACN,yBACA,eAAe,oBAAiB;wBAiEZ,UACpB,qBACA,iBAEA,OAAO,iBACP,OAAM,kBACN,yBACA,eAAe,oBAAiB,+CAAA;wBAiBZ,WACpB,qBACA,iBAEA,QAAQ,mBACR,OAAM,kBACN,yBACA,eAAe,oBAAiB,+CAAA;wBAuBZ,cAAc,qBAAqB,iBAAiB,wBAAqB,+CAAA"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { TrackEvent, UserProvidedData } from "../track/types.mjs";
|
|
2
2
|
import { EventActionSource } from "./action-source.mjs";
|
|
3
3
|
import { ServerEvent } from "facebook-nodejs-business-sdk";
|
|
4
|
-
//#region src/server/meta-conversions-api.d.ts
|
|
5
4
|
export declare function getServerEvent(event: TrackEvent<any>, data: UserProvidedData, appPackageName?: string, actionSource?: EventActionSource): ServerEvent;
|
|
6
5
|
export declare function sendEvent(accessToken: string, pixelId: string, event: TrackEvent<any>, data?: UserProvidedData, appPackageName?: string, actionSource?: EventActionSource): Promise<import("facebook-nodejs-business-sdk").EventResponse | undefined>;
|
|
7
6
|
export declare function sendEvents(accessToken: string, pixelId: string, events: TrackEvent<any>[], data?: UserProvidedData, appPackageName?: string, actionSource?: EventActionSource): Promise<import("facebook-nodejs-business-sdk").EventResponse | undefined>;
|
|
8
7
|
export declare function sendTestEvent(accessToken: string, pixelId: string, testEventCode: string): Promise<import("facebook-nodejs-business-sdk").EventResponse>;
|
|
9
|
-
//#endregion
|
|
10
8
|
//# sourceMappingURL=meta-conversions-api.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta-conversions-api.d.mts","names":[],"sources":["../../src/server/meta-conversions-api.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"meta-conversions-api.d.mts","names":[],"sources":["../../src/server/meta-conversions-api.ts"],"mappings":";;;wBAwNgB,eAEd,OAAO,iBACP,MAAM,kBACN,yBACA,eAAe,oBAAiB;wBAiEZ,UACpB,qBACA,iBAEA,OAAO,iBACP,OAAM,kBACN,yBACA,eAAe,oBAAiB,+CAAA;wBAiBZ,WACpB,qBACA,iBAEA,QAAQ,mBACR,OAAM,kBACN,yBACA,eAAe,oBAAiB,+CAAA;wBAuBZ,cAAc,qBAAqB,iBAAiB,wBAAqB,+CAAA"}
|
|
@@ -5,7 +5,7 @@ import { metaFbc, metaFbp } from "./click-ids.mjs";
|
|
|
5
5
|
import { pageLocation } from "./page-location.mjs";
|
|
6
6
|
import { metaExtinfoVersion } from "./meta-capi.mjs";
|
|
7
7
|
import { AppData, Content, CustomData, EventRequest, ExtendedDeviceInfo, ServerEvent, UserData } from "facebook-nodejs-business-sdk";
|
|
8
|
-
|
|
8
|
+
// src/server/meta-conversions-api.ts
|
|
9
9
|
const USER_ASSIGNED_COUNTRIES = ["xk"];
|
|
10
10
|
function normalizeCountry(input) {
|
|
11
11
|
const country = input?.split(/[-_]/).at(0)?.toLowerCase();
|
|
@@ -196,7 +196,6 @@ async function sendTestEvent(accessToken, pixelId, testEventCode) {
|
|
|
196
196
|
request.setEvents([event]);
|
|
197
197
|
return request.execute();
|
|
198
198
|
}
|
|
199
|
-
//#endregion
|
|
200
199
|
export { getServerEvent, sendEvent, sendEvents, sendTestEvent };
|
|
201
200
|
|
|
202
201
|
//# sourceMappingURL=meta-conversions-api.mjs.map
|
|
@@ -6,7 +6,7 @@ const require_server_click_ids = require("./click-ids.cjs");
|
|
|
6
6
|
const require_server_page_location = require("./page-location.cjs");
|
|
7
7
|
let _shware_utils = require("@shware/utils");
|
|
8
8
|
let node_crypto = require("node:crypto");
|
|
9
|
-
|
|
9
|
+
// src/server/microsoft-conversions-api.ts
|
|
10
10
|
/**
|
|
11
11
|
* Microsoft Advertising Conversions API (CAPI) sender — the server-side counterpart of the UET
|
|
12
12
|
* tag, in the same shape as the other senders here: a pure per-event builder, a never-throws
|
|
@@ -168,7 +168,6 @@ async function sendEvents(token, tagId, events, data = {}, options = {}) {
|
|
|
168
168
|
}
|
|
169
169
|
return responses;
|
|
170
170
|
}
|
|
171
|
-
//#endregion
|
|
172
171
|
exports.getServerEvent = getServerEvent;
|
|
173
172
|
exports.normalizeEmail = normalizeEmail;
|
|
174
173
|
exports.sendEvents = sendEvents;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { TrackEvent, UserProvidedData } from "../track/types.cjs";
|
|
2
|
-
//#region src/server/microsoft-conversions-api.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Microsoft's email normalization: trim, drop the dots and any `+alias` from the user part —
|
|
5
4
|
* for EVERY domain, unlike Google's gmail-only rule — lowercase, SHA-256. A value that is
|
|
@@ -119,5 +118,4 @@ options?: MicrosoftEventOptions | MicrosoftEventOptions['consent']): MicrosoftEv
|
|
|
119
118
|
* or network failure is logged (without the token) and yields no response for that request.
|
|
120
119
|
*/
|
|
121
120
|
export declare function sendEvents(token: string, tagId: string | number, events: TrackEvent<any>[], data?: UserProvidedData, options?: MicrosoftConversionsOptions): Promise<MicrosoftConversionsResponse[]>;
|
|
122
|
-
//#endregion
|
|
123
121
|
//# sourceMappingURL=microsoft-conversions-api.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"microsoft-conversions-api.d.cts","names":[],"sources":["../../src/server/microsoft-conversions-api.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"microsoft-conversions-api.d.cts","names":[],"sources":["../../src/server/microsoft-conversions-api.ts"],"mappings":";;;;;;;wBAyCgB,eAAe;iBA2Bd;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;EACA;EACA;EACA;EACA;;iBAGe;EACf;EACA;EACA;EACA;;iBAGe;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA,QAAQ;EACR;EACA;EACA;EACA;;;iBAIe;EACf;EACA;;EAEA;;EAEA;EACA;;EAEA;EACA;EACA;;EAEA;EACA,UAAU;EACV,aAAa;;iBAGE;;;;;EAKf;;;;;;;;;;;;EAYA;;EAEA;;;;;;EAMA;;iBAGe;EACf;EACA;EACA;EACA;EACA;EACA;;iBAGe;EACf;EACA;IAAU;IAAe;IAAkB,UAAU;;;;;;;;YA4D3C,wBAAwB,KAAK;wBAEzB,eAEd,OAAO,iBACP,OAAM;;AAEN,UAAS,wBAAwB,mCAChC;;;;;;wBAkCmB,WACpB,eACA,wBAEA,QAAQ,mBACR,OAAM,kBACN,UAAS,8BACR,QAAQ"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { TrackEvent, UserProvidedData } from "../track/types.mjs";
|
|
2
|
-
//#region src/server/microsoft-conversions-api.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Microsoft's email normalization: trim, drop the dots and any `+alias` from the user part —
|
|
5
4
|
* for EVERY domain, unlike Google's gmail-only rule — lowercase, SHA-256. A value that is
|
|
@@ -119,5 +118,4 @@ options?: MicrosoftEventOptions | MicrosoftEventOptions['consent']): MicrosoftEv
|
|
|
119
118
|
* or network failure is logged (without the token) and yields no response for that request.
|
|
120
119
|
*/
|
|
121
120
|
export declare function sendEvents(token: string, tagId: string | number, events: TrackEvent<any>[], data?: UserProvidedData, options?: MicrosoftConversionsOptions): Promise<MicrosoftConversionsResponse[]>;
|
|
122
|
-
//#endregion
|
|
123
121
|
//# sourceMappingURL=microsoft-conversions-api.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"microsoft-conversions-api.d.mts","names":[],"sources":["../../src/server/microsoft-conversions-api.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"microsoft-conversions-api.d.mts","names":[],"sources":["../../src/server/microsoft-conversions-api.ts"],"mappings":";;;;;;;wBAyCgB,eAAe;iBA2Bd;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;EACA;EACA;EACA;EACA;;iBAGe;EACf;EACA;EACA;EACA;;iBAGe;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA,QAAQ;EACR;EACA;EACA;EACA;;;iBAIe;EACf;EACA;;EAEA;;EAEA;EACA;;EAEA;EACA;EACA;;EAEA;EACA,UAAU;EACV,aAAa;;iBAGE;;;;;EAKf;;;;;;;;;;;;EAYA;;EAEA;;;;;;EAMA;;iBAGe;EACf;EACA;EACA;EACA;EACA;EACA;;iBAGe;EACf;EACA;IAAU;IAAe;IAAkB,UAAU;;;;;;;;YA4D3C,wBAAwB,KAAK;wBAEzB,eAEd,OAAO,iBACP,OAAM;;AAEN,UAAS,wBAAwB,mCAChC;;;;;;wBAkCmB,WACpB,eACA,wBAEA,QAAQ,mBACR,OAAM,kBACN,UAAS,8BACR,QAAQ"}
|
|
@@ -5,7 +5,7 @@ import { microsoftMsclkid } from "./click-ids.mjs";
|
|
|
5
5
|
import { pageLocation } from "./page-location.mjs";
|
|
6
6
|
import { chunk, fetch } from "@shware/utils";
|
|
7
7
|
import { createHash } from "node:crypto";
|
|
8
|
-
|
|
8
|
+
// src/server/microsoft-conversions-api.ts
|
|
9
9
|
/**
|
|
10
10
|
* Microsoft Advertising Conversions API (CAPI) sender — the server-side counterpart of the UET
|
|
11
11
|
* tag, in the same shape as the other senders here: a pure per-event builder, a never-throws
|
|
@@ -167,7 +167,6 @@ async function sendEvents(token, tagId, events, data = {}, options = {}) {
|
|
|
167
167
|
}
|
|
168
168
|
return responses;
|
|
169
169
|
}
|
|
170
|
-
//#endregion
|
|
171
170
|
export { getServerEvent, normalizeEmail, sendEvents };
|
|
172
171
|
|
|
173
172
|
//# sourceMappingURL=microsoft-conversions-api.mjs.map
|
|
@@ -6,7 +6,7 @@ const require_server_page_location = require("./page-location.cjs");
|
|
|
6
6
|
const require_track_oaiq = require("../track/oaiq.cjs");
|
|
7
7
|
let _shware_utils = require("@shware/utils");
|
|
8
8
|
let node_crypto = require("node:crypto");
|
|
9
|
-
|
|
9
|
+
// src/server/openai-conversions-api.ts
|
|
10
10
|
/**
|
|
11
11
|
* OpenAI Conversions API
|
|
12
12
|
* https://developers.openai.com/ads/conversions-api
|
|
@@ -100,7 +100,6 @@ async function sendEvents(apiKey, pixelId, events, data = {}, validateOnly = fal
|
|
|
100
100
|
console.error("Failed to send OpenAI conversion, network error:", error);
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
-
//#endregion
|
|
104
103
|
exports.getServerEvent = getServerEvent;
|
|
105
104
|
exports.sendEvents = sendEvents;
|
|
106
105
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { TrackEvent, UserProvidedData } from "../track/types.cjs";
|
|
2
2
|
import { EventActionSource } from "./action-source.cjs";
|
|
3
3
|
import { EventData } from "../track/oaiq.cjs";
|
|
4
|
-
//#region src/server/openai-conversions-api.d.ts
|
|
5
4
|
type ActionSource = 'web' | 'mobile_app' | 'offline' | 'physical_store' | 'phone_call' | 'email' | 'other';
|
|
6
5
|
/**
|
|
7
6
|
* Conversion-matching fields, all optional. Identifiers are normalized, then sent as lowercase
|
|
@@ -54,6 +53,5 @@ export interface CreateOpenAIEventsDTO {
|
|
|
54
53
|
}
|
|
55
54
|
export declare function getServerEvent(event: TrackEvent<any>, data: UserProvidedData, actionSource?: EventActionSource): OpenAIEvent;
|
|
56
55
|
export declare function sendEvents(apiKey: string, pixelId: string, events: TrackEvent<any>[], data?: UserProvidedData, validateOnly?: boolean, actionSource?: EventActionSource): Promise<void>;
|
|
57
|
-
//#endregion
|
|
58
56
|
export {};
|
|
59
57
|
//# sourceMappingURL=openai-conversions-api.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openai-conversions-api.d.cts","names":[],"sources":["../../src/server/openai-conversions-api.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"openai-conversions-api.d.cts","names":[],"sources":["../../src/server/openai-conversions-api.ts"],"mappings":";;;KAwBK;;;;;;;iBAeY;;EAEf;EACA;;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;;EAEA;;EAEA;EACA;EACA;;iBAGe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;EACA,gBAAgB;;EAEhB;;EAEA;EACA,OAAO;EACP,MAAM;;iBAGS;;EAEf;EACA,QAAQ;;wBA8DM,eAEd,OAAO,iBACP,MAAM,kBACN,eAAe,oBACd;wBA0BmB,WACpB,gBACA,iBAEA,QAAQ,mBACR,OAAM,kBACN,wBACA,eAAe,oBAAiB"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { TrackEvent, UserProvidedData } from "../track/types.mjs";
|
|
2
2
|
import { EventActionSource } from "./action-source.mjs";
|
|
3
3
|
import { EventData } from "../track/oaiq.mjs";
|
|
4
|
-
//#region src/server/openai-conversions-api.d.ts
|
|
5
4
|
type ActionSource = 'web' | 'mobile_app' | 'offline' | 'physical_store' | 'phone_call' | 'email' | 'other';
|
|
6
5
|
/**
|
|
7
6
|
* Conversion-matching fields, all optional. Identifiers are normalized, then sent as lowercase
|
|
@@ -54,6 +53,5 @@ export interface CreateOpenAIEventsDTO {
|
|
|
54
53
|
}
|
|
55
54
|
export declare function getServerEvent(event: TrackEvent<any>, data: UserProvidedData, actionSource?: EventActionSource): OpenAIEvent;
|
|
56
55
|
export declare function sendEvents(apiKey: string, pixelId: string, events: TrackEvent<any>[], data?: UserProvidedData, validateOnly?: boolean, actionSource?: EventActionSource): Promise<void>;
|
|
57
|
-
//#endregion
|
|
58
56
|
export {};
|
|
59
57
|
//# sourceMappingURL=openai-conversions-api.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openai-conversions-api.d.mts","names":[],"sources":["../../src/server/openai-conversions-api.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"openai-conversions-api.d.mts","names":[],"sources":["../../src/server/openai-conversions-api.ts"],"mappings":";;;KAwBK;;;;;;;iBAeY;;EAEf;EACA;;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;;EAEA;;EAEA;EACA;EACA;;iBAGe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;EACA,gBAAgB;;EAEhB;;EAEA;EACA,OAAO;EACP,MAAM;;iBAGS;;EAEf;EACA,QAAQ;;wBA8DM,eAEd,OAAO,iBACP,MAAM,kBACN,eAAe,oBACd;wBA0BmB,WACpB,gBACA,iBAEA,QAAQ,mBACR,OAAM,kBACN,wBACA,eAAe,oBAAiB"}
|
|
@@ -5,7 +5,7 @@ import { pageLocation } from "./page-location.mjs";
|
|
|
5
5
|
import { APP_EVENTS, NON_AD_EVENTS, mapOAIEvent, normalizeOAIName, normalizeOAIPhone, oaiCustomEventName } from "../track/oaiq.mjs";
|
|
6
6
|
import { fetch } from "@shware/utils";
|
|
7
7
|
import { createHash } from "node:crypto";
|
|
8
|
-
|
|
8
|
+
// src/server/openai-conversions-api.ts
|
|
9
9
|
/**
|
|
10
10
|
* OpenAI Conversions API
|
|
11
11
|
* https://developers.openai.com/ads/conversions-api
|
|
@@ -99,7 +99,6 @@ async function sendEvents(apiKey, pixelId, events, data = {}, validateOnly = fal
|
|
|
99
99
|
console.error("Failed to send OpenAI conversion, network error:", error);
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
-
//#endregion
|
|
103
102
|
export { getServerEvent, sendEvents };
|
|
104
103
|
|
|
105
104
|
//# sourceMappingURL=openai-conversions-api.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
|
|
2
|
+
// src/server/page-location.ts
|
|
3
3
|
/**
|
|
4
4
|
* The URL an event happened on, whichever name the client that sent it used.
|
|
5
5
|
*
|
|
@@ -16,7 +16,6 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
16
16
|
function pageLocation(tags) {
|
|
17
17
|
return tags.page_location ?? tags.source_url;
|
|
18
18
|
}
|
|
19
|
-
//#endregion
|
|
20
19
|
exports.pageLocation = pageLocation;
|
|
21
20
|
|
|
22
21
|
//# sourceMappingURL=page-location.cjs.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { TrackTags } from "../track/types.cjs";
|
|
2
|
-
//#region src/server/page-location.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* The URL an event happened on, whichever name the client that sent it used.
|
|
5
4
|
*
|
|
@@ -14,5 +13,4 @@ import { TrackTags } from "../track/types.cjs";
|
|
|
14
13
|
* a month of cache lifetime is the usual bound, and stored rows can be checked for it.
|
|
15
14
|
*/
|
|
16
15
|
export declare function pageLocation(tags: TrackTags): string | undefined;
|
|
17
|
-
//#endregion
|
|
18
16
|
//# sourceMappingURL=page-location.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-location.d.cts","names":[],"sources":["../../src/server/page-location.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"page-location.d.cts","names":[],"sources":["../../src/server/page-location.ts"],"mappings":";;;;;;;;;;;;;;wBAegB,aAAa,MAAM"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { TrackTags } from "../track/types.mjs";
|
|
2
|
-
//#region src/server/page-location.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* The URL an event happened on, whichever name the client that sent it used.
|
|
5
4
|
*
|
|
@@ -14,5 +13,4 @@ import { TrackTags } from "../track/types.mjs";
|
|
|
14
13
|
* a month of cache lifetime is the usual bound, and stored rows can be checked for it.
|
|
15
14
|
*/
|
|
16
15
|
export declare function pageLocation(tags: TrackTags): string | undefined;
|
|
17
|
-
//#endregion
|
|
18
16
|
//# sourceMappingURL=page-location.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-location.d.mts","names":[],"sources":["../../src/server/page-location.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"page-location.d.mts","names":[],"sources":["../../src/server/page-location.ts"],"mappings":";;;;;;;;;;;;;;wBAegB,aAAa,MAAM"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/server/page-location.ts
|
|
2
2
|
/**
|
|
3
3
|
* The URL an event happened on, whichever name the client that sent it used.
|
|
4
4
|
*
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
function pageLocation(tags) {
|
|
16
16
|
return tags.page_location ?? tags.source_url;
|
|
17
17
|
}
|
|
18
|
-
//#endregion
|
|
19
18
|
export { pageLocation };
|
|
20
19
|
|
|
21
20
|
//# sourceMappingURL=page-location.mjs.map
|
|
@@ -6,7 +6,7 @@ const require_server_click_ids = require("./click-ids.cjs");
|
|
|
6
6
|
const require_server_page_location = require("./page-location.cjs");
|
|
7
7
|
const require_track_rdt = require("../track/rdt.cjs");
|
|
8
8
|
let _shware_utils = require("@shware/utils");
|
|
9
|
-
|
|
9
|
+
// src/server/reddit-conversions-api.ts
|
|
10
10
|
function getServerEvent(event, data, actionSource) {
|
|
11
11
|
const { id, name, properties, tags, platform, created_at } = event;
|
|
12
12
|
const [type, params] = require_track_rdt.mapRDTEvent(name, properties, id);
|
|
@@ -70,7 +70,6 @@ async function sendEvents(accessToken, pixelId, events, data = {}, testId, actio
|
|
|
70
70
|
console.error("Failed to send Reddit conversion, network error:", error);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
//#endregion
|
|
74
73
|
exports.getServerEvent = getServerEvent;
|
|
75
74
|
exports.sendEvents = sendEvents;
|
|
76
75
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { TrackEvent, UserProvidedData } from "../track/types.cjs";
|
|
2
2
|
import { ServerStandardEvent } from "../track/rdt.cjs";
|
|
3
3
|
import { EventActionSource } from "./action-source.cjs";
|
|
4
|
-
//#region src/server/reddit-conversions-api.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* https://ads-api.reddit.com/docs/v3/operations/Post%20Conversion%20Events
|
|
7
6
|
* https://business.reddithelp.com/s/article/map-a-catalog-to-a-signal-source
|
|
@@ -80,5 +79,4 @@ export interface CreateRedditEventDTO {
|
|
|
80
79
|
}
|
|
81
80
|
export declare function getServerEvent(event: TrackEvent<any>, data: UserProvidedData, actionSource?: EventActionSource): RedditEvent;
|
|
82
81
|
export declare function sendEvents(accessToken: string, pixelId: string, events: TrackEvent<any>[], data?: UserProvidedData, testId?: string, actionSource?: EventActionSource): Promise<void>;
|
|
83
|
-
//#endregion
|
|
84
82
|
//# sourceMappingURL=reddit-conversions-api.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reddit-conversions-api.d.cts","names":[],"sources":["../../src/server/reddit-conversions-api.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"reddit-conversions-api.d.cts","names":[],"sources":["../../src/server/reddit-conversions-api.ts"],"mappings":";;;;;;;iBAaiB;;EAEf;;EAGA;;;;;EAMA;;;;;EAMA;EAEA;IACE,eAAe;IACf;;;;;;;EAQF;IACE;IACA;IACA;IACA;IACA;MAAa;MAAY;MAAe;;;EAG1C;IACE;IACA;IACA;IACA;IACA;;IAGA;;IAGA;;;;;;IAMA;IAEA;MAAsB;MAAe;;;;;;IAMrC;MACE;MACA;MACA;;;;iBAKW;EACf;IAAQ;IAAkB,QAAQ;;;wBAGpB,eAEd,OAAO,iBACP,MAAM,kBACN,eAAe,oBACd;wBAoDmB,WACpB,qBACA,iBAEA,QAAQ,mBACR,OAAM,kBACN,iBACA,eAAe,oBAAiB"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { TrackEvent, UserProvidedData } from "../track/types.mjs";
|
|
2
2
|
import { ServerStandardEvent } from "../track/rdt.mjs";
|
|
3
3
|
import { EventActionSource } from "./action-source.mjs";
|
|
4
|
-
//#region src/server/reddit-conversions-api.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* https://ads-api.reddit.com/docs/v3/operations/Post%20Conversion%20Events
|
|
7
6
|
* https://business.reddithelp.com/s/article/map-a-catalog-to-a-signal-source
|
|
@@ -80,5 +79,4 @@ export interface CreateRedditEventDTO {
|
|
|
80
79
|
}
|
|
81
80
|
export declare function getServerEvent(event: TrackEvent<any>, data: UserProvidedData, actionSource?: EventActionSource): RedditEvent;
|
|
82
81
|
export declare function sendEvents(accessToken: string, pixelId: string, events: TrackEvent<any>[], data?: UserProvidedData, testId?: string, actionSource?: EventActionSource): Promise<void>;
|
|
83
|
-
//#endregion
|
|
84
82
|
//# sourceMappingURL=reddit-conversions-api.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reddit-conversions-api.d.mts","names":[],"sources":["../../src/server/reddit-conversions-api.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"reddit-conversions-api.d.mts","names":[],"sources":["../../src/server/reddit-conversions-api.ts"],"mappings":";;;;;;;iBAaiB;;EAEf;;EAGA;;;;;EAMA;;;;;EAMA;EAEA;IACE,eAAe;IACf;;;;;;;EAQF;IACE;IACA;IACA;IACA;IACA;MAAa;MAAY;MAAe;;;EAG1C;IACE;IACA;IACA;IACA;IACA;;IAGA;;IAGA;;;;;;IAMA;IAEA;MAAsB;MAAe;;;;;;IAMrC;MACE;MACA;MACA;;;;iBAKW;EACf;IAAQ;IAAkB,QAAQ;;;wBAGpB,eAEd,OAAO,iBACP,MAAM,kBACN,eAAe,oBACd;wBAoDmB,WACpB,qBACA,iBAEA,QAAQ,mBACR,OAAM,kBACN,iBACA,eAAe,oBAAiB"}
|
|
@@ -5,7 +5,7 @@ import { redditClickId, redditUuid } from "./click-ids.mjs";
|
|
|
5
5
|
import { pageLocation } from "./page-location.mjs";
|
|
6
6
|
import { mapRDTEvent, mapServerStandardEvent } from "../track/rdt.mjs";
|
|
7
7
|
import { fetch } from "@shware/utils";
|
|
8
|
-
|
|
8
|
+
// src/server/reddit-conversions-api.ts
|
|
9
9
|
function getServerEvent(event, data, actionSource) {
|
|
10
10
|
const { id, name, properties, tags, platform, created_at } = event;
|
|
11
11
|
const [type, params] = mapRDTEvent(name, properties, id);
|
|
@@ -69,7 +69,6 @@ async function sendEvents(accessToken, pixelId, events, data = {}, testId, actio
|
|
|
69
69
|
console.error("Failed to send Reddit conversion, network error:", error);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
//#endregion
|
|
73
72
|
export { getServerEvent, sendEvents };
|
|
74
73
|
|
|
75
74
|
//# sourceMappingURL=reddit-conversions-api.mjs.map
|
package/dist/setup/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
|
|
2
|
+
// src/setup/index.ts
|
|
3
3
|
const cache = { tags: null };
|
|
4
4
|
const config = {
|
|
5
5
|
endpoint: "",
|
|
@@ -35,7 +35,6 @@ function setupAnalytics(init) {
|
|
|
35
35
|
console.error("analytics deepLink.listen failed", error);
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
//#endregion
|
|
39
38
|
exports.cache = cache;
|
|
40
39
|
exports.config = config;
|
|
41
40
|
exports.setupAnalytics = setupAnalytics;
|
package/dist/setup/index.d.cts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Environment, Platform, ThirdPartyTracker, TrackTags } from "../track/types.cjs";
|
|
2
2
|
import { ThirdPartyUserSetter } from "../visitor/types.cjs";
|
|
3
|
-
//#region src/setup/index.d.ts
|
|
4
3
|
export interface Storage {
|
|
5
4
|
getItem: (key: string) => string | null;
|
|
6
5
|
setItem: (key: string, value: string) => void;
|
|
@@ -49,6 +48,5 @@ interface Cache {
|
|
|
49
48
|
export declare const cache: Cache;
|
|
50
49
|
export declare const config: Config;
|
|
51
50
|
export declare function setupAnalytics(init: Options): void;
|
|
52
|
-
//#endregion
|
|
53
51
|
export {};
|
|
54
52
|
//# sourceMappingURL=index.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/setup/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/setup/index.ts"],"mappings":";;iBAGiB;EACf,UAAU;EACV,UAAU,aAAa;;;;;;;iBAQR;;EAEf;;EAEA,eAAe,YAAY,QAAQ;;iBAGpB;EACf;EACA,SAAS;EACT;EACA,UAAU;EACV,aAAa;EACb,eAAe,YAAY,QAAQ;EACnC,4BAA4B;EAC5B,mBAAmB,yBAAyB,QAAQ;EACpD,qBAAqB;EACrB,wBAAwB;;EAExB,WAAW;;UAGH;EACR;EACA;EACA,SAAS;EACT,UAAU;EACV,aAAa;EACb,eAAe,YAAY,QAAQ;EACnC,4BAA4B;EAC5B,kBAAkB,yBAAyB,QAAQ;EACnD,oBAAoB;EACpB,uBAAuB;EACvB,UAAU;;UAGF;EACR,MAAM;;qBAGK,OAAO;qBAKP,QAAQ;wBAeL,eAAe,MAAM"}
|
package/dist/setup/index.d.mts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Environment, Platform, ThirdPartyTracker, TrackTags } from "../track/types.mjs";
|
|
2
2
|
import { ThirdPartyUserSetter } from "../visitor/types.mjs";
|
|
3
|
-
//#region src/setup/index.d.ts
|
|
4
3
|
export interface Storage {
|
|
5
4
|
getItem: (key: string) => string | null;
|
|
6
5
|
setItem: (key: string, value: string) => void;
|
|
@@ -49,6 +48,5 @@ interface Cache {
|
|
|
49
48
|
export declare const cache: Cache;
|
|
50
49
|
export declare const config: Config;
|
|
51
50
|
export declare function setupAnalytics(init: Options): void;
|
|
52
|
-
//#endregion
|
|
53
51
|
export {};
|
|
54
52
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../../src/setup/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../../src/setup/index.ts"],"mappings":";;iBAGiB;EACf,UAAU;EACV,UAAU,aAAa;;;;;;;iBAQR;;EAEf;;EAEA,eAAe,YAAY,QAAQ;;iBAGpB;EACf;EACA,SAAS;EACT;EACA,UAAU;EACV,aAAa;EACb,eAAe,YAAY,QAAQ;EACnC,4BAA4B;EAC5B,mBAAmB,yBAAyB,QAAQ;EACpD,qBAAqB;EACrB,wBAAwB;;EAExB,WAAW;;UAGH;EACR;EACA;EACA,SAAS;EACT,UAAU;EACV,aAAa;EACb,eAAe,YAAY,QAAQ;EACnC,4BAA4B;EAC5B,kBAAkB,yBAAyB,QAAQ;EACnD,oBAAoB;EACpB,uBAAuB;EACvB,UAAU;;UAGF;EACR,MAAM;;qBAGK,OAAO;qBAKP,QAAQ;wBAeL,eAAe,MAAM"}
|
package/dist/setup/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/setup/index.ts
|
|
2
2
|
const cache = { tags: null };
|
|
3
3
|
const config = {
|
|
4
4
|
endpoint: "",
|
|
@@ -34,7 +34,6 @@ function setupAnalytics(init) {
|
|
|
34
34
|
console.error("analytics deepLink.listen failed", error);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
//#endregion
|
|
38
37
|
export { cache, config, setupAnalytics };
|
|
39
38
|
|
|
40
39
|
//# sourceMappingURL=index.mjs.map
|
package/dist/setup/session.cjs
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
const require_setup_index = require("./index.cjs");
|
|
3
3
|
const require_constants_storage = require("../constants/storage.cjs");
|
|
4
4
|
let uuid = require("uuid");
|
|
5
|
-
|
|
5
|
+
// src/setup/session.ts
|
|
6
6
|
const SESSION_TIMEOUT = 18e5;
|
|
7
7
|
/**
|
|
8
8
|
* `<version>.<id>.<lastEventTime>`, compact and cookie-safe rather than JSON: `{`, `"`
|
|
@@ -138,7 +138,6 @@ let session;
|
|
|
138
138
|
function getSession() {
|
|
139
139
|
return session ??= new Session();
|
|
140
140
|
}
|
|
141
|
-
//#endregion
|
|
142
141
|
exports.SESSION_TIMEOUT = SESSION_TIMEOUT;
|
|
143
142
|
exports.getSession = getSession;
|
|
144
143
|
|
package/dist/setup/session.d.cts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/setup/session.d.ts
|
|
2
1
|
export declare const SESSION_TIMEOUT: number;
|
|
3
2
|
/** The session an event belongs to, and whether that event is the one that started it. */
|
|
4
3
|
interface SessionForEvent {
|
|
@@ -70,6 +69,5 @@ declare class Session {
|
|
|
70
69
|
* visitor across every request the isolate serves. Import it there; do not track.
|
|
71
70
|
*/
|
|
72
71
|
export declare function getSession(): Session;
|
|
73
|
-
//#endregion
|
|
74
72
|
export {};
|
|
75
73
|
//# sourceMappingURL=session.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.d.cts","names":[],"sources":["../../src/setup/session.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"session.d.cts","names":[],"sources":["../../src/setup/session.ts"],"mappings":"A,qBAIa;;UAiBH;EACR;EACA;;cA8BI;;;;;;;;;UASI;UACA;UAEA;UACA;UACA;EAER;;;;;;;EAeA,QAAK,mBAAqB,2BAA8B;;;;;;;;EA6BxD;EAWA;EAEA,eAAY;EAIZ;EAWA;EAKA;EAKA;EAKA;EAKA,mBAAgB,OAAW;EAK3B;;;;;;;;;;;;;;;;;;;;;;;;;;wBAkCc,cAAU"}
|