@10x-media/analytics 1.0.0-beta.8 → 4.0.0-alpha.1
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/CHANGELOG.md +780 -0
- package/LICENSE +21 -21
- package/README.md +35 -36
- package/dist/access/adminUser.d.ts +15 -0
- package/dist/access/adminUser.js +13 -0
- package/dist/access/adminUser.js.map +1 -0
- package/dist/access/decideOnce.js +16 -0
- package/dist/access/decideOnce.js.map +1 -0
- package/dist/access/membership.d.ts +23 -0
- package/dist/access/membership.js +63 -0
- package/dist/access/membership.js.map +1 -0
- package/dist/access/principal.d.ts +37 -0
- package/dist/access/principal.js +29 -0
- package/dist/access/principal.js.map +1 -0
- package/dist/access/readGate.js +16 -0
- package/dist/access/readGate.js.map +1 -0
- package/dist/adapters/ga4/disableKey.js +19 -0
- package/dist/adapters/ga4/disableKey.js.map +1 -0
- package/dist/adapters/ga4/eventName.d.ts +9 -0
- package/dist/adapters/ga4/eventName.js +13 -0
- package/dist/adapters/ga4/eventName.js.map +1 -0
- package/dist/adapters/ga4/ga4.d.ts +29 -0
- package/dist/adapters/ga4/ga4.js +324 -112
- package/dist/adapters/ga4/ga4.js.map +1 -1
- package/dist/adapters/ga4/measurementId.js +14 -0
- package/dist/adapters/ga4/measurementId.js.map +1 -0
- package/dist/adapters/goalRead.js +112 -0
- package/dist/adapters/goalRead.js.map +1 -0
- package/dist/adapters/http/baseUrl.js +15 -0
- package/dist/adapters/http/baseUrl.js.map +1 -0
- package/dist/adapters/http/fetchJson.d.ts +19 -0
- package/dist/adapters/http/fetchJson.js +27 -8
- package/dist/adapters/http/fetchJson.js.map +1 -1
- package/dist/adapters/mapping.js +52 -0
- package/dist/adapters/mapping.js.map +1 -0
- package/dist/adapters/plausible/plausible.d.ts +30 -3
- package/dist/adapters/plausible/plausible.js +198 -110
- package/dist/adapters/plausible/plausible.js.map +1 -1
- package/dist/adapters/plausible/scriptId.js +19 -0
- package/dist/adapters/plausible/scriptId.js.map +1 -0
- package/dist/adapters/posthog/posthog.d.ts +33 -9
- package/dist/adapters/posthog/posthog.js +307 -127
- package/dist/adapters/posthog/posthog.js.map +1 -1
- package/dist/adapters/posthog/projectCheck.js +56 -0
- package/dist/adapters/posthog/projectCheck.js.map +1 -0
- package/dist/adapters/readTime.js +7 -0
- package/dist/adapters/readTime.js.map +1 -0
- package/dist/adapters/series.js +14 -8
- package/dist/adapters/series.js.map +1 -1
- package/dist/adapters/umami/umami.d.ts +21 -3
- package/dist/adapters/umami/umami.js +334 -95
- package/dist/adapters/umami/umami.js.map +1 -1
- package/dist/adapters/upstream.js +16 -0
- package/dist/adapters/upstream.js.map +1 -0
- package/dist/binding/report.d.ts +8 -0
- package/dist/binding/report.js +24 -0
- package/dist/binding/report.js.map +1 -0
- package/dist/binding/resolvePath.js +28 -25
- package/dist/binding/resolvePath.js.map +1 -1
- package/dist/binding/types.d.ts +14 -29
- package/dist/capture/captureRequest.js +28 -0
- package/dist/capture/captureRequest.js.map +1 -0
- package/dist/capture/exclusionEndpoint.js +98 -0
- package/dist/capture/exclusionEndpoint.js.map +1 -0
- package/dist/capture/exclusionPrelude.js +14 -0
- package/dist/capture/exclusionPrelude.js.map +1 -0
- package/dist/capture/exclusionToken.js +23 -0
- package/dist/capture/exclusionToken.js.map +1 -0
- package/dist/capture/jsLiteral.js +19 -0
- package/dist/capture/jsLiteral.js.map +1 -0
- package/dist/capture/mountPath.js +2 -3
- package/dist/capture/mountPath.js.map +1 -1
- package/dist/capture/proxyEndpoint.js +49 -92
- package/dist/capture/proxyEndpoint.js.map +1 -1
- package/dist/capture/proxyRoutes.js +58 -21
- package/dist/capture/proxyRoutes.js.map +1 -1
- package/dist/capture/relay.js +91 -0
- package/dist/capture/relay.js.map +1 -0
- package/dist/capture/requestBody.js +2 -6
- package/dist/capture/requestBody.js.map +1 -1
- package/dist/capture/requestTrust.js +45 -0
- package/dist/capture/requestTrust.js.map +1 -0
- package/dist/capture/sameSite.js +40 -0
- package/dist/capture/sameSite.js.map +1 -0
- package/dist/capture/slots.js +50 -25
- package/dist/capture/slots.js.map +1 -1
- package/dist/capture/trackerConfig.js +131 -36
- package/dist/capture/trackerConfig.js.map +1 -1
- package/dist/capture/trackerEndpoint.js +22 -21
- package/dist/capture/trackerEndpoint.js.map +1 -1
- package/dist/capture/withoutConsent.js +91 -0
- package/dist/capture/withoutConsent.js.map +1 -0
- package/dist/charts/BarList.d.ts +27 -13
- package/dist/charts/BarList.js +38 -77
- package/dist/charts/BarList.js.map +1 -1
- package/dist/charts/TrendChart.d.ts +40 -7
- package/dist/charts/TrendChart.js +243 -215
- package/dist/charts/TrendChart.js.map +1 -1
- package/dist/charts/bars.d.ts +17 -1
- package/dist/charts/bars.js +12 -11
- package/dist/charts/bars.js.map +1 -1
- package/dist/charts/bucket.js +106 -73
- package/dist/charts/bucket.js.map +1 -1
- package/dist/charts/inProgress.js +22 -0
- package/dist/charts/inProgress.js.map +1 -0
- package/dist/charts/series.d.ts +15 -0
- package/dist/charts/series.js +123 -0
- package/dist/charts/series.js.map +1 -0
- package/dist/charts/spline.js +91 -25
- package/dist/charts/spline.js.map +1 -1
- package/dist/charts/trendGeometry.js +91 -0
- package/dist/charts/trendGeometry.js.map +1 -0
- package/dist/core/adminOptions.d.ts +1 -0
- package/dist/core/adminOptions.js +198 -0
- package/dist/core/adminOptions.js.map +1 -0
- package/dist/core/budget.js +24 -0
- package/dist/core/budget.js.map +1 -0
- package/dist/core/cacheKey.d.ts +1 -0
- package/dist/core/cacheKey.js +51 -29
- package/dist/core/cacheKey.js.map +1 -1
- package/dist/core/cacheOptions.js +165 -0
- package/dist/core/cacheOptions.js.map +1 -0
- package/dist/core/capabilities.d.ts +24 -11
- package/dist/core/capabilities.js +101 -17
- package/dist/core/capabilities.js.map +1 -1
- package/dist/core/capture.d.ts +59 -26
- package/dist/core/captureOptions.d.ts +1 -0
- package/dist/core/captureOptions.js +347 -0
- package/dist/core/captureOptions.js.map +1 -0
- package/dist/core/clock.js +13 -0
- package/dist/core/clock.js.map +1 -0
- package/dist/core/collectionOption.d.ts +17 -0
- package/dist/core/collectionOption.js +105 -0
- package/dist/core/collectionOption.js.map +1 -0
- package/dist/core/collectionSlug.js +7 -0
- package/dist/core/collectionSlug.js.map +1 -0
- package/dist/core/contract.d.ts +340 -49
- package/dist/core/contract.js +7 -4
- package/dist/core/contract.js.map +1 -1
- package/dist/core/cron.js +57 -0
- package/dist/core/cron.js.map +1 -0
- package/dist/core/fetch.d.ts +17 -0
- package/dist/core/goalOptions.d.ts +1 -0
- package/dist/core/goalOptions.js +166 -0
- package/dist/core/goalOptions.js.map +1 -0
- package/dist/core/granularity.js +3 -2
- package/dist/core/granularity.js.map +1 -1
- package/dist/core/guards.js +17 -0
- package/dist/core/guards.js.map +1 -0
- package/dist/core/jobs.d.ts +40 -0
- package/dist/core/jobs.js +132 -0
- package/dist/core/jobs.js.map +1 -0
- package/dist/core/legacyOptions.js +145 -0
- package/dist/core/legacyOptions.js.map +1 -0
- package/dist/core/metricAliases.js +81 -0
- package/dist/core/metricAliases.js.map +1 -0
- package/dist/core/metricValues.js +57 -0
- package/dist/core/metricValues.js.map +1 -0
- package/dist/core/monotonic.js +10 -0
- package/dist/core/monotonic.js.map +1 -0
- package/dist/core/optionChecks.js +51 -0
- package/dist/core/optionChecks.js.map +1 -0
- package/dist/core/options.d.ts +535 -151
- package/dist/core/options.js +158 -214
- package/dist/core/options.js.map +1 -1
- package/dist/core/registry.js +45 -5
- package/dist/core/registry.js.map +1 -1
- package/dist/core/scopeList.js +7 -9
- package/dist/core/scopeList.js.map +1 -1
- package/dist/core/scopeOptions.d.ts +1 -0
- package/dist/core/scopeOptions.js +114 -0
- package/dist/core/scopeOptions.js.map +1 -0
- package/dist/core/scopedRead.js +349 -36
- package/dist/core/scopedRead.js.map +1 -1
- package/dist/core/sdks.d.ts +81 -0
- package/dist/core/sdks.js +23 -0
- package/dist/core/sdks.js.map +1 -0
- package/dist/core/serverEvent.d.ts +50 -14
- package/dist/core/serverEvent.js.map +1 -1
- package/dist/core/siteAddress.js +20 -0
- package/dist/core/siteAddress.js.map +1 -0
- package/dist/core/sourceErrors.js +109 -0
- package/dist/core/sourceErrors.js.map +1 -0
- package/dist/core/sourceLabel.d.ts +10 -0
- package/dist/core/sourceLabel.js +63 -0
- package/dist/core/sourceLabel.js.map +1 -0
- package/dist/core/sourceOptions.js +107 -0
- package/dist/core/sourceOptions.js.map +1 -0
- package/dist/core/sourcePolicy.d.ts +55 -0
- package/dist/core/sourcePolicy.js +51 -0
- package/dist/core/sourcePolicy.js.map +1 -0
- package/dist/core/throttle.js +18 -0
- package/dist/core/throttle.js.map +1 -0
- package/dist/core/values.js +61 -0
- package/dist/core/values.js.map +1 -0
- package/dist/core/widgetSlugs.d.ts +17 -0
- package/dist/core/widgetSlugs.js +29 -0
- package/dist/core/widgetSlugs.js.map +1 -0
- package/dist/db/detachedWrite.js +36 -0
- package/dist/db/detachedWrite.js.map +1 -0
- package/dist/db/errors.js +182 -0
- package/dist/db/errors.js.map +1 -0
- package/dist/db/kind.js +32 -0
- package/dist/db/kind.js.map +1 -0
- package/dist/db/openTransaction.js +51 -0
- package/dist/db/openTransaction.js.map +1 -0
- package/dist/exports/adapters/contract.d.ts +15 -0
- package/dist/exports/adapters/ga4.d.ts +17 -1
- package/dist/exports/adapters/ga4.js +2 -1
- package/dist/exports/adapters/native.d.ts +29 -2
- package/dist/exports/adapters/native.js +5 -1
- package/dist/exports/adapters/plausible.d.ts +16 -1
- package/dist/exports/adapters/posthog.d.ts +16 -1
- package/dist/exports/adapters/umami.d.ts +16 -1
- package/dist/exports/attributes.d.ts +42 -0
- package/dist/exports/attributes.js +83 -0
- package/dist/exports/attributes.js.map +1 -0
- package/dist/exports/client.d.ts +45 -11
- package/dist/exports/client.js +23 -6
- package/dist/exports/geo.d.ts +4 -2
- package/dist/exports/geo.js +1 -1
- package/dist/exports/i18n.d.ts +2 -2
- package/dist/exports/i18n.js +2 -2
- package/dist/exports/migrations.d.ts +2 -0
- package/dist/exports/migrations.js +2 -0
- package/dist/exports/react.d.ts +5 -3
- package/dist/exports/react.js +1 -2
- package/dist/exports/routes.d.ts +19 -0
- package/dist/exports/routes.js +3 -0
- package/dist/exports/rsc.d.ts +33 -14
- package/dist/exports/rsc.js +11 -6
- package/dist/exports/site.d.ts +5 -0
- package/dist/exports/site.js +3 -0
- package/dist/exports/testing.d.ts +18 -0
- package/dist/exports/testing.js +3 -0
- package/dist/exports/tracker.d.ts +6 -17
- package/dist/exports/tracker.js +3 -11
- package/dist/exports/types.d.ts +46 -14
- package/dist/exports/types.js +7 -1
- package/dist/fields/AnalyticsPanelClient.js +265 -154
- package/dist/fields/AnalyticsPanelClient.js.map +1 -1
- package/dist/fields/AnalyticsPanelField.d.ts +19 -7
- package/dist/fields/AnalyticsPanelField.js +123 -30
- package/dist/fields/AnalyticsPanelField.js.map +1 -1
- package/dist/fields/AnalyticsStatField.d.ts +17 -6
- package/dist/fields/AnalyticsStatField.js +98 -63
- package/dist/fields/AnalyticsStatField.js.map +1 -1
- package/dist/fields/FieldShimmer.js +15 -0
- package/dist/fields/FieldShimmer.js.map +1 -0
- package/dist/fields/PanelContent.js +222 -0
- package/dist/fields/PanelContent.js.map +1 -0
- package/dist/fields/PanelList.js +82 -0
- package/dist/fields/PanelList.js.map +1 -0
- package/dist/fields/PanelLiveCounter.js +63 -0
- package/dist/fields/PanelLiveCounter.js.map +1 -0
- package/dist/fields/PanelSkeleton.js +63 -0
- package/dist/fields/PanelSkeleton.js.map +1 -0
- package/dist/fields/componentPaths.js +8 -0
- package/dist/fields/componentPaths.js.map +1 -0
- package/dist/fields/config/FilterDimensionSelectField.d.ts +14 -0
- package/dist/fields/config/FilterDimensionSelectField.js +49 -0
- package/dist/fields/config/FilterDimensionSelectField.js.map +1 -0
- package/dist/fields/config/FilterKeySelect.js +66 -0
- package/dist/fields/config/FilterKeySelect.js.map +1 -0
- package/dist/fields/config/FilterOperatorSelectField.d.ts +19 -0
- package/dist/fields/config/FilterOperatorSelectField.js +59 -0
- package/dist/fields/config/FilterOperatorSelectField.js.map +1 -0
- package/dist/fields/config/FilterValueField.d.ts +17 -0
- package/dist/fields/config/FilterValueField.js +130 -0
- package/dist/fields/config/FilterValueField.js.map +1 -0
- package/dist/fields/config/MetricSelectField.d.ts +5 -12
- package/dist/fields/config/MetricSelectField.js +19 -31
- package/dist/fields/config/MetricSelectField.js.map +1 -1
- package/dist/fields/config/OptionSelect.js +52 -0
- package/dist/fields/config/OptionSelect.js.map +1 -0
- package/dist/fields/config/SourceSelectField.js +16 -31
- package/dist/fields/config/SourceSelectField.js.map +1 -1
- package/dist/fields/config/fetchSources.d.ts +3 -0
- package/dist/fields/config/fetchSources.js +17 -23
- package/dist/fields/config/fetchSources.js.map +1 -1
- package/dist/fields/config/filterValues.js +106 -0
- package/dist/fields/config/filterValues.js.map +1 -0
- package/dist/fields/config/narrow.js +8 -10
- package/dist/fields/config/narrow.js.map +1 -1
- package/dist/fields/config/retiredPickers.d.ts +45 -0
- package/dist/fields/config/retiredPickers.js +46 -0
- package/dist/fields/config/retiredPickers.js.map +1 -0
- package/dist/fields/config/scopedFields.d.ts +40 -0
- package/dist/fields/config/scopedFields.js +68 -0
- package/dist/fields/config/scopedFields.js.map +1 -0
- package/dist/fields/config/sourcesState.js +19 -3
- package/dist/fields/config/sourcesState.js.map +1 -1
- package/dist/fields/config/toSelectOption.js +13 -7
- package/dist/fields/config/toSelectOption.js.map +1 -1
- package/dist/fields/config/useAnalyticsSources.d.ts +10 -7
- package/dist/fields/config/useAnalyticsSources.js +23 -24
- package/dist/fields/config/useAnalyticsSources.js.map +1 -1
- package/dist/fields/config/useFilterCapabilities.d.ts +31 -0
- package/dist/fields/config/useFilterCapabilities.js +60 -0
- package/dist/fields/config/useFilterCapabilities.js.map +1 -0
- package/dist/fields/config/useFormString.js +12 -0
- package/dist/fields/config/useFormString.js.map +1 -0
- package/dist/fields/dateRange/field.js +7 -19
- package/dist/fields/dateRange/field.js.map +1 -1
- package/dist/fields/dateRange/types.d.ts +5 -1
- package/dist/fields/dateRange/ui.d.ts +3 -2
- package/dist/fields/dateRange/ui.js +57 -319
- package/dist/fields/dateRange/ui.js.map +1 -1
- package/dist/fields/documentScope.js +21 -0
- package/dist/fields/documentScope.js.map +1 -0
- package/dist/fields/emptyState.js +30 -26
- package/dist/fields/emptyState.js.map +1 -1
- package/dist/fields/factories.d.ts +35 -16
- package/dist/fields/factories.js +67 -38
- package/dist/fields/factories.js.map +1 -1
- package/dist/fields/format.d.ts +12 -3
- package/dist/fields/format.js +77 -13
- package/dist/fields/format.js.map +1 -1
- package/dist/fields/itemReport.js +45 -0
- package/dist/fields/itemReport.js.map +1 -0
- package/dist/fields/readForDocument.d.ts +79 -26
- package/dist/fields/readForDocument.js +451 -105
- package/dist/fields/readForDocument.js.map +1 -1
- package/dist/fields/stateKeys.js +20 -0
- package/dist/fields/stateKeys.js.map +1 -0
- package/dist/goals/GoalAmountField.d.ts +10 -0
- package/dist/goals/GoalAmountField.js +179 -0
- package/dist/goals/GoalAmountField.js.map +1 -0
- package/dist/goals/GoalSelectField.js +89 -40
- package/dist/goals/GoalSelectField.js.map +1 -1
- package/dist/goals/GoalSelectFieldServer.d.ts +13 -0
- package/dist/goals/GoalSelectFieldServer.js +21 -0
- package/dist/goals/GoalSelectFieldServer.js.map +1 -0
- package/dist/goals/amountField.d.ts +20 -0
- package/dist/goals/amountField.js +37 -0
- package/dist/goals/amountField.js.map +1 -0
- package/dist/goals/builtin.js +17 -0
- package/dist/goals/builtin.js.map +1 -0
- package/dist/goals/collection.d.ts +22 -0
- package/dist/goals/collection.js +143 -124
- package/dist/goals/collection.js.map +1 -1
- package/dist/goals/constants.d.ts +38 -0
- package/dist/goals/constants.js +49 -0
- package/dist/goals/constants.js.map +1 -0
- package/dist/goals/currency.d.ts +16 -0
- package/dist/goals/currency.js +46 -4
- package/dist/goals/currency.js.map +1 -1
- package/dist/goals/currencyOptions.js +70 -0
- package/dist/goals/currencyOptions.js.map +1 -0
- package/dist/goals/fetchGoals.d.ts +10 -0
- package/dist/goals/fetchGoals.js +12 -22
- package/dist/goals/fetchGoals.js.map +1 -1
- package/dist/goals/goalField.d.ts +4 -6
- package/dist/goals/goalField.js +9 -19
- package/dist/goals/goalField.js.map +1 -1
- package/dist/goals/goalsEndpoint.js +40 -38
- package/dist/goals/goalsEndpoint.js.map +1 -1
- package/dist/goals/items.js +35 -0
- package/dist/goals/items.js.map +1 -0
- package/dist/goals/latent.js +9 -0
- package/dist/goals/latent.js.map +1 -0
- package/dist/goals/linkFields.d.ts +35 -0
- package/dist/goals/linkFields.js +31 -0
- package/dist/goals/linkFields.js.map +1 -0
- package/dist/goals/match.d.ts +14 -0
- package/dist/goals/match.js +67 -46
- package/dist/goals/match.js.map +1 -1
- package/dist/goals/moneyFields.js +56 -0
- package/dist/goals/moneyFields.js.map +1 -0
- package/dist/goals/pathMatch.js +122 -0
- package/dist/goals/pathMatch.js.map +1 -0
- package/dist/goals/placeholder.js +12 -0
- package/dist/goals/placeholder.js.map +1 -0
- package/dist/goals/resolver.d.ts +3 -3
- package/dist/goals/resolver.js +155 -47
- package/dist/goals/resolver.js.map +1 -1
- package/dist/goals/serverRevenue.d.ts +60 -0
- package/dist/goals/serverRevenue.js +41 -0
- package/dist/goals/serverRevenue.js.map +1 -0
- package/dist/goals/trackGoalAction.d.ts +26 -25
- package/dist/goals/trackGoalAction.js +71 -66
- package/dist/goals/trackGoalAction.js.map +1 -1
- package/dist/goals/types.d.ts +13 -28
- package/dist/goals/types.js +1 -1
- package/dist/goals/types.js.map +1 -1
- package/dist/goals/useAnalyticsGoals.d.ts +6 -5
- package/dist/goals/useAnalyticsGoals.js +17 -18
- package/dist/goals/useAnalyticsGoals.js.map +1 -1
- package/dist/index.d.ts +69 -11
- package/dist/index.js +262 -192
- package/dist/index.js.map +1 -1
- package/dist/items/collectionIdType.js +20 -0
- package/dist/items/collectionIdType.js.map +1 -0
- package/dist/items/idType.js +31 -0
- package/dist/items/idType.js.map +1 -0
- package/dist/items/ref.js +73 -0
- package/dist/items/ref.js.map +1 -0
- package/dist/maintenance/apiTaskState.js +141 -0
- package/dist/maintenance/apiTaskState.js.map +1 -0
- package/dist/maintenance/heartbeat.js +51 -0
- package/dist/maintenance/heartbeat.js.map +1 -0
- package/dist/maintenance/lease.d.ts +1 -0
- package/dist/maintenance/lease.js +79 -0
- package/dist/maintenance/lease.js.map +1 -0
- package/dist/maintenance/taskSchedule.js +27 -0
- package/dist/maintenance/taskSchedule.js.map +1 -0
- package/dist/maintenance/underLease.js +35 -0
- package/dist/maintenance/underLease.js.map +1 -0
- package/dist/migrations/legacy.d.ts +54 -0
- package/dist/migrations/legacy.js +117 -0
- package/dist/migrations/legacy.js.map +1 -0
- package/dist/migrations/predefined/dropLegacyMongo.d.ts +11 -0
- package/dist/migrations/predefined/dropLegacyMongo.js +12 -0
- package/dist/migrations/predefined/dropLegacyMongo.js.map +1 -0
- package/dist/native/collections/aggregates.js +54 -0
- package/dist/native/collections/aggregates.js.map +1 -0
- package/dist/native/collections/hits.js +103 -0
- package/dist/native/collections/hits.js.map +1 -0
- package/dist/native/collections/slugs.d.ts +10 -0
- package/dist/native/collections/slugs.js +16 -0
- package/dist/native/collections/slugs.js.map +1 -0
- package/dist/native/collections/state.js +84 -0
- package/dist/native/collections/state.js.map +1 -0
- package/dist/native/collections/storeCollection.js +31 -0
- package/dist/native/collections/storeCollection.js.map +1 -0
- package/dist/native/engine/buckets.d.ts +1 -0
- package/dist/native/engine/buckets.js +53 -0
- package/dist/native/engine/buckets.js.map +1 -0
- package/dist/native/engine/capabilities.js +87 -0
- package/dist/native/engine/capabilities.js.map +1 -0
- package/dist/native/engine/cost.js +72 -0
- package/dist/native/engine/cost.js.map +1 -0
- package/dist/native/engine/days.d.ts +1 -0
- package/dist/native/engine/days.js +182 -0
- package/dist/native/engine/days.js.map +1 -0
- package/dist/native/engine/engine.d.ts +1 -0
- package/dist/native/engine/engine.js +1627 -0
- package/dist/native/engine/engine.js.map +1 -0
- package/dist/native/engine/instance.js +58 -0
- package/dist/native/engine/instance.js.map +1 -0
- package/dist/native/engine/maintenance.d.ts +1 -0
- package/dist/native/engine/maintenance.js +677 -0
- package/dist/native/engine/maintenance.js.map +1 -0
- package/dist/native/engine/merge.js +41 -0
- package/dist/native/engine/merge.js.map +1 -0
- package/dist/native/engine/nudge.js +26 -0
- package/dist/native/engine/nudge.js.map +1 -0
- package/dist/native/engine/planner.js +199 -0
- package/dist/native/engine/planner.js.map +1 -0
- package/dist/native/engine/rebuild.d.ts +22 -0
- package/dist/native/engine/rebuild.js +76 -0
- package/dist/native/engine/rebuild.js.map +1 -0
- package/dist/native/engine/recent.js +17 -0
- package/dist/native/engine/recent.js.map +1 -0
- package/dist/native/engine/salt.d.ts +1 -0
- package/dist/native/engine/salt.js +98 -0
- package/dist/native/engine/salt.js.map +1 -0
- package/dist/native/engine/siteHosts.d.ts +1 -0
- package/dist/native/engine/siteHosts.js +58 -0
- package/dist/native/engine/siteHosts.js.map +1 -0
- package/dist/native/engine/toHit.js +110 -0
- package/dist/native/engine/toHit.js.map +1 -0
- package/dist/native/engine/writeBuffer.d.ts +14 -0
- package/dist/native/engine/writeBuffer.js +317 -0
- package/dist/native/engine/writeBuffer.js.map +1 -0
- package/dist/native/geo/composeGeoResolvers.d.ts +1 -0
- package/dist/native/geo/composeGeoResolvers.js +5 -2
- package/dist/native/geo/composeGeoResolvers.js.map +1 -1
- package/dist/native/geo/geoResolver.d.ts +27 -2
- package/dist/native/geo/geoResolver.js +42 -6
- package/dist/native/geo/geoResolver.js.map +1 -1
- package/dist/native/geo/maxmindResolver.d.ts +8 -4
- package/dist/native/geo/maxmindResolver.js +20 -16
- package/dist/native/geo/maxmindResolver.js.map +1 -1
- package/dist/native/geo/resolveGeo.js +31 -0
- package/dist/native/geo/resolveGeo.js.map +1 -0
- package/dist/native/ingest/bots.d.ts +10 -0
- package/dist/native/ingest/bots.js +66 -0
- package/dist/native/ingest/bots.js.map +1 -0
- package/dist/native/ingest/browser.js +45 -0
- package/dist/native/ingest/browser.js.map +1 -0
- package/dist/native/ingest/clientIp.js +34 -8
- package/dist/native/ingest/clientIp.js.map +1 -1
- package/dist/native/ingest/device.js +4 -6
- package/dist/native/ingest/device.js.map +1 -1
- package/dist/native/ingest/endpoint.d.ts +1 -1
- package/dist/native/ingest/endpoint.js +185 -32
- package/dist/native/ingest/endpoint.js.map +1 -1
- package/dist/native/ingest/itemSignature.d.ts +26 -0
- package/dist/native/ingest/itemSignature.js +45 -0
- package/dist/native/ingest/itemSignature.js.map +1 -0
- package/dist/native/ingest/language.js +13 -0
- package/dist/native/ingest/language.js.map +1 -0
- package/dist/native/ingest/normalizeEvent.d.ts +73 -5
- package/dist/native/ingest/normalizeEvent.js +257 -51
- package/dist/native/ingest/normalizeEvent.js.map +1 -1
- package/dist/native/ingest/orderSignature.d.ts +13 -0
- package/dist/native/ingest/orderSignature.js +50 -0
- package/dist/native/ingest/orderSignature.js.map +1 -0
- package/dist/native/ingest/referrer.js +46 -0
- package/dist/native/ingest/referrer.js.map +1 -0
- package/dist/native/ingest/requestHost.js +44 -0
- package/dist/native/ingest/requestHost.js.map +1 -0
- package/dist/native/ingest/resolveHostname.d.ts +20 -0
- package/dist/native/ingest/resolveHostname.js +51 -0
- package/dist/native/ingest/resolveHostname.js.map +1 -0
- package/dist/native/ingest/revenue.d.ts +1 -0
- package/dist/native/ingest/revenue.js +121 -0
- package/dist/native/ingest/revenue.js.map +1 -0
- package/dist/native/ingest/route.d.ts +10 -0
- package/dist/native/ingest/route.js +85 -0
- package/dist/native/ingest/route.js.map +1 -0
- package/dist/native/ingest/serverTrack.d.ts +2 -10
- package/dist/native/ingest/serverTrack.js +188 -68
- package/dist/native/ingest/serverTrack.js.map +1 -1
- package/dist/native/ingest/signature.js +28 -0
- package/dist/native/ingest/signature.js.map +1 -0
- package/dist/native/ingest/source.d.ts +10 -0
- package/dist/native/ingest/source.js +245 -16
- package/dist/native/ingest/source.js.map +1 -1
- package/dist/native/ingest/utm.js +33 -0
- package/dist/native/ingest/utm.js.map +1 -0
- package/dist/native/ingest/validate.js +25 -13
- package/dist/native/ingest/validate.js.map +1 -1
- package/dist/native/ingest/visitorHash.js +6 -8
- package/dist/native/ingest/visitorHash.js.map +1 -1
- package/dist/native/nativeAdapter.d.ts +128 -9
- package/dist/native/nativeAdapter.js +395 -281
- package/dist/native/nativeAdapter.js.map +1 -1
- package/dist/native/rebuildDays.d.ts +12 -0
- package/dist/native/rebuildDays.js +16 -0
- package/dist/native/rebuildDays.js.map +1 -0
- package/dist/native/store/aggregate.js +450 -0
- package/dist/native/store/aggregate.js.map +1 -0
- package/dist/native/store/caps.d.ts +18 -0
- package/dist/native/store/caps.js +76 -0
- package/dist/native/store/caps.js.map +1 -0
- package/dist/native/store/chunks.js +34 -0
- package/dist/native/store/chunks.js.map +1 -0
- package/dist/native/store/columnValues.js +31 -0
- package/dist/native/store/columnValues.js.map +1 -0
- package/dist/native/store/dialect.js +106 -0
- package/dist/native/store/dialect.js.map +1 -0
- package/dist/native/store/eventStore.js +44 -0
- package/dist/native/store/eventStore.js.map +1 -0
- package/dist/native/store/hitRow.js +119 -0
- package/dist/native/store/hitRow.js.map +1 -0
- package/dist/native/store/hits.js +65 -0
- package/dist/native/store/hits.js.map +1 -0
- package/dist/native/store/ids.js +105 -0
- package/dist/native/store/ids.js.map +1 -0
- package/dist/native/store/mongo/aggregatePipelines.js +438 -0
- package/dist/native/store/mongo/aggregatePipelines.js.map +1 -0
- package/dist/native/store/mongo/mongoState.js +375 -0
- package/dist/native/store/mongo/mongoState.js.map +1 -0
- package/dist/native/store/mongo/mongoStore.js +618 -0
- package/dist/native/store/mongo/mongoStore.js.map +1 -0
- package/dist/native/store/mongo/pipelines.js +705 -0
- package/dist/native/store/mongo/pipelines.js.map +1 -0
- package/dist/native/store/mongo/results.js +20 -0
- package/dist/native/store/mongo/results.js.map +1 -0
- package/dist/native/store/parts.d.ts +1 -0
- package/dist/native/store/parts.js +101 -0
- package/dist/native/store/parts.js.map +1 -0
- package/dist/native/store/pattern.js +213 -0
- package/dist/native/store/pattern.js.map +1 -0
- package/dist/native/store/rawRead.d.ts +23 -0
- package/dist/native/store/rawRead.js +387 -0
- package/dist/native/store/rawRead.js.map +1 -0
- package/dist/native/store/reclassify.js +53 -0
- package/dist/native/store/reclassify.js.map +1 -0
- package/dist/native/store/sql/aggregateSql.js +349 -0
- package/dist/native/store/sql/aggregateSql.js.map +1 -0
- package/dist/native/store/sql/columns.js +49 -0
- package/dist/native/store/sql/columns.js.map +1 -0
- package/dist/native/store/sql/compile.js +668 -0
- package/dist/native/store/sql/compile.js.map +1 -0
- package/dist/native/store/sql/drivers.js +218 -0
- package/dist/native/store/sql/drivers.js.map +1 -0
- package/dist/native/store/sql/executor.js +132 -0
- package/dist/native/store/sql/executor.js.map +1 -0
- package/dist/native/store/sql/fragment.js +104 -0
- package/dist/native/store/sql/fragment.js.map +1 -0
- package/dist/native/store/sql/maintenanceSql.js +59 -0
- package/dist/native/store/sql/maintenanceSql.js.map +1 -0
- package/dist/native/store/sql/ownConnection.js +107 -0
- package/dist/native/store/sql/ownConnection.js.map +1 -0
- package/dist/native/store/sql/poolShare.js +101 -0
- package/dist/native/store/sql/poolShare.js.map +1 -0
- package/dist/native/store/sql/sqlState.js +325 -0
- package/dist/native/store/sql/sqlState.js.map +1 -0
- package/dist/native/store/sql/sqlStore.js +355 -0
- package/dist/native/store/sql/sqlStore.js.map +1 -0
- package/dist/native/store/sql/sqliteThread.d.ts +9 -0
- package/dist/native/store/sql/sqliteThread.js +314 -0
- package/dist/native/store/sql/sqliteThread.js.map +1 -0
- package/dist/native/store/sql/sqliteWorker.js +327 -0
- package/dist/native/store/sql/sqliteWorker.js.map +1 -0
- package/dist/native/store/sql/sqliteWorkerSource.js +347 -0
- package/dist/native/store/sql/sqliteWorkerSource.js.map +1 -0
- package/dist/native/store/state.js +151 -0
- package/dist/native/store/state.js.map +1 -0
- package/dist/native/store/stateStore.js +29 -0
- package/dist/native/store/stateStore.js.map +1 -0
- package/dist/native/store/types.d.ts +15 -0
- package/dist/native/store/types.js +10 -0
- package/dist/native/store/types.js.map +1 -0
- package/dist/native/tasks/maintainTask.d.ts +19 -0
- package/dist/native/tasks/maintainTask.js +57 -0
- package/dist/native/tasks/maintainTask.js.map +1 -0
- package/dist/net/guardedFetch.d.ts +32 -0
- package/dist/net/guardedFetch.js +220 -0
- package/dist/net/guardedFetch.js.map +1 -0
- package/dist/net/origin.js +40 -0
- package/dist/net/origin.js.map +1 -0
- package/dist/net/platform.d.ts +9 -0
- package/dist/net/platform.js +35 -0
- package/dist/net/platform.js.map +1 -0
- package/dist/plugin/adminDependencies.js +34 -0
- package/dist/plugin/adminDependencies.js.map +1 -0
- package/dist/plugin/apiPath.js +23 -0
- package/dist/plugin/apiPath.js.map +1 -0
- package/dist/plugin/boundDocument.js +58 -0
- package/dist/plugin/boundDocument.js.map +1 -0
- package/dist/plugin/buildPhase.js +10 -0
- package/dist/plugin/buildPhase.js.map +1 -0
- package/dist/plugin/collectionChecks.js +232 -0
- package/dist/plugin/collectionChecks.js.map +1 -0
- package/dist/plugin/collectionFields.d.ts +13 -0
- package/dist/plugin/collectionFields.js +22 -0
- package/dist/plugin/collectionFields.js.map +1 -0
- package/dist/plugin/createRuntime.js +346 -0
- package/dist/plugin/createRuntime.js.map +1 -0
- package/dist/plugin/destroy.js +58 -0
- package/dist/plugin/destroy.js.map +1 -0
- package/dist/plugin/documentEndpoint.js +106 -53
- package/dist/plugin/documentEndpoint.js.map +1 -1
- package/dist/plugin/documentScopes.js +37 -0
- package/dist/plugin/documentScopes.js.map +1 -0
- package/dist/plugin/encrypted.js +25 -0
- package/dist/plugin/encrypted.js.map +1 -0
- package/dist/plugin/errors.d.ts +24 -0
- package/dist/plugin/errors.js +86 -0
- package/dist/plugin/errors.js.map +1 -0
- package/dist/plugin/flagsEndpoint.js +41 -0
- package/dist/plugin/flagsEndpoint.js.map +1 -0
- package/dist/plugin/goalHint.d.ts +1 -0
- package/dist/plugin/goalHint.js +35 -0
- package/dist/plugin/goalHint.js.map +1 -0
- package/dist/plugin/itemLabels.js +114 -0
- package/dist/plugin/itemLabels.js.map +1 -0
- package/dist/plugin/keepAlive.js +48 -0
- package/dist/plugin/keepAlive.js.map +1 -0
- package/dist/plugin/peerImportError.js +3 -6
- package/dist/plugin/peerImportError.js.map +1 -1
- package/dist/plugin/peers.js +64 -0
- package/dist/plugin/peers.js.map +1 -0
- package/dist/plugin/pluginCollections.js +161 -0
- package/dist/plugin/pluginCollections.js.map +1 -0
- package/dist/plugin/queryEndpoint.js +88 -52
- package/dist/plugin/queryEndpoint.js.map +1 -1
- package/dist/plugin/queryParams.js +7 -0
- package/dist/plugin/queryParams.js.map +1 -0
- package/dist/plugin/readContextForRequest.d.ts +11 -0
- package/dist/plugin/readContextForRequest.js +79 -32
- package/dist/plugin/readContextForRequest.js.map +1 -1
- package/dist/plugin/readFailure.js +22 -0
- package/dist/plugin/readFailure.js.map +1 -0
- package/dist/plugin/readableProviders.js +67 -0
- package/dist/plugin/readableProviders.js.map +1 -0
- package/dist/plugin/realtimeEndpoint.js +91 -21
- package/dist/plugin/realtimeEndpoint.js.map +1 -1
- package/dist/plugin/refreshEndpoint.js +138 -0
- package/dist/plugin/refreshEndpoint.js.map +1 -0
- package/dist/plugin/relabelFields.js +36 -0
- package/dist/plugin/relabelFields.js.map +1 -0
- package/dist/plugin/requestMemo.js +35 -0
- package/dist/plugin/requestMemo.js.map +1 -0
- package/dist/plugin/routeChecks.js +39 -0
- package/dist/plugin/routeChecks.js.map +1 -0
- package/dist/plugin/routes.d.ts +53 -0
- package/dist/plugin/routes.js +92 -0
- package/dist/plugin/routes.js.map +1 -0
- package/dist/plugin/runtime.d.ts +1 -1
- package/dist/plugin/runtime.js +235 -29
- package/dist/plugin/runtime.js.map +1 -1
- package/dist/plugin/schemaOnly.js +61 -0
- package/dist/plugin/schemaOnly.js.map +1 -0
- package/dist/plugin/scopeChange.js +23 -0
- package/dist/plugin/scopeChange.js.map +1 -0
- package/dist/plugin/scopeFieldBoot.js +4 -4
- package/dist/plugin/scopeFieldBoot.js.map +1 -1
- package/dist/plugin/scopeToken.js +33 -0
- package/dist/plugin/scopeToken.js.map +1 -0
- package/dist/plugin/sourcesEndpoint.js +50 -16
- package/dist/plugin/sourcesEndpoint.js.map +1 -1
- package/dist/plugin/unbundledLanguages.js +25 -0
- package/dist/plugin/unbundledLanguages.js.map +1 -0
- package/dist/plugin/walkFields.js +24 -0
- package/dist/plugin/walkFields.js.map +1 -0
- package/dist/plugin/warmTask.js +0 -0
- package/dist/plugin/warmTask.js.map +1 -1
- package/dist/providers/ProvidersListNotice.d.ts +11 -0
- package/dist/providers/ProvidersListNotice.js +36 -0
- package/dist/providers/ProvidersListNotice.js.map +1 -0
- package/dist/providers/access.d.ts +1 -0
- package/dist/providers/access.js +35 -26
- package/dist/providers/access.js.map +1 -1
- package/dist/providers/adapterPool.js +121 -0
- package/dist/providers/adapterPool.js.map +1 -0
- package/dist/providers/collection.d.ts +63 -0
- package/dist/providers/collection.js +372 -143
- package/dist/providers/collection.js.map +1 -1
- package/dist/providers/factory.d.ts +84 -0
- package/dist/providers/factory.js +86 -25
- package/dist/providers/factory.js.map +1 -1
- package/dist/providers/hosts.d.ts +25 -0
- package/dist/providers/hosts.js +128 -0
- package/dist/providers/hosts.js.map +1 -0
- package/dist/providers/probe.d.ts +1 -0
- package/dist/providers/probe.js +105 -0
- package/dist/providers/probe.js.map +1 -0
- package/dist/providers/refresh.d.ts +18 -0
- package/dist/providers/refresh.js +49 -0
- package/dist/providers/refresh.js.map +1 -0
- package/dist/providers/registry.js +329 -0
- package/dist/providers/registry.js.map +1 -0
- package/dist/providers/resolver.js +26 -88
- package/dist/providers/resolver.js.map +1 -1
- package/dist/providers/retarget.js +45 -0
- package/dist/providers/retarget.js.map +1 -0
- package/dist/providers/scopeUnique.js +41 -0
- package/dist/providers/scopeUnique.js.map +1 -0
- package/dist/providers/secrets.d.ts +26 -0
- package/dist/providers/secrets.js +61 -4
- package/dist/providers/secrets.js.map +1 -1
- package/dist/providers/stampScope.js +9 -6
- package/dist/providers/stampScope.js.map +1 -1
- package/dist/query/dates.js +10 -12
- package/dist/query/dates.js.map +1 -1
- package/dist/query/errors.d.ts +6 -13
- package/dist/query/fetchQuery.d.ts +36 -23
- package/dist/query/fetchQuery.js +96 -89
- package/dist/query/fetchQuery.js.map +1 -1
- package/dist/query/limits.js +8 -0
- package/dist/query/limits.js.map +1 -0
- package/dist/query/parse.d.ts +8 -2
- package/dist/query/parse.js +155 -108
- package/dist/query/parse.js.map +1 -1
- package/dist/query/response.d.ts +27 -4
- package/dist/query/response.js +18 -0
- package/dist/query/response.js.map +1 -0
- package/dist/react/AnalyticsProvider.d.ts +42 -20
- package/dist/react/AnalyticsProvider.js +24 -22
- package/dist/react/AnalyticsProvider.js.map +1 -1
- package/dist/react/TrackerBoot.js +15 -9
- package/dist/react/TrackerBoot.js.map +1 -1
- package/dist/react/useAnalytics.d.ts +2 -8
- package/dist/react/useAnalytics.js +31 -13
- package/dist/react/useAnalytics.js.map +1 -1
- package/dist/routes/captureRoute.d.ts +28 -0
- package/dist/routes/captureRoute.js +67 -0
- package/dist/routes/captureRoute.js.map +1 -0
- package/dist/routes/ingestRoute.d.ts +17 -0
- package/dist/routes/ingestRoute.js +17 -0
- package/dist/routes/ingestRoute.js.map +1 -0
- package/dist/site/AnalyticsScripts.d.ts +35 -0
- package/dist/site/AnalyticsScripts.js +44 -0
- package/dist/site/AnalyticsScripts.js.map +1 -0
- package/dist/site/getTrackerConfig.d.ts +15 -0
- package/dist/site/getTrackerConfig.js +43 -0
- package/dist/site/getTrackerConfig.js.map +1 -0
- package/dist/surfacing/afterRead.d.ts +37 -0
- package/dist/surfacing/bounded.js +38 -0
- package/dist/surfacing/bounded.js.map +1 -0
- package/dist/surfacing/breaker.js +107 -0
- package/dist/surfacing/breaker.js.map +1 -0
- package/dist/surfacing/cacheCollection.d.ts +8 -0
- package/dist/surfacing/cacheCollection.js +71 -0
- package/dist/surfacing/cacheCollection.js.map +1 -0
- package/dist/surfacing/cacheStore.d.ts +71 -1
- package/dist/surfacing/cacheStore.js +16 -37
- package/dist/surfacing/cacheStore.js.map +1 -1
- package/dist/surfacing/cacheSweep.d.ts +1 -0
- package/dist/surfacing/cacheSweep.js +59 -0
- package/dist/surfacing/cacheSweep.js.map +1 -0
- package/dist/surfacing/classifyError.js +282 -0
- package/dist/surfacing/classifyError.js.map +1 -0
- package/dist/surfacing/coalesce.js +2 -1
- package/dist/surfacing/coalesce.js.map +1 -1
- package/dist/surfacing/coldBudget.js +60 -0
- package/dist/surfacing/coldBudget.js.map +1 -0
- package/dist/surfacing/collectionCacheStore.js +183 -0
- package/dist/surfacing/collectionCacheStore.js.map +1 -0
- package/dist/surfacing/engine.d.ts +1 -1
- package/dist/surfacing/engine.js +514 -71
- package/dist/surfacing/engine.js.map +1 -1
- package/dist/surfacing/epoch.d.ts +1 -0
- package/dist/surfacing/epoch.js +116 -0
- package/dist/surfacing/epoch.js.map +1 -0
- package/dist/surfacing/lanes.d.ts +1 -0
- package/dist/surfacing/lanes.js +297 -0
- package/dist/surfacing/lanes.js.map +1 -0
- package/dist/surfacing/memo.js +40 -0
- package/dist/surfacing/memo.js.map +1 -0
- package/dist/surfacing/rateLimiter.d.ts +1 -0
- package/dist/surfacing/rateLimiter.js +69 -94
- package/dist/surfacing/rateLimiter.js.map +1 -1
- package/dist/surfacing/rebucket.js +178 -0
- package/dist/surfacing/rebucket.js.map +1 -0
- package/dist/surfacing/recipe.js +28 -0
- package/dist/surfacing/recipe.js.map +1 -0
- package/dist/surfacing/shape.js +22 -0
- package/dist/surfacing/shape.js.map +1 -0
- package/dist/surfacing/todaySplit.js +119 -0
- package/dist/surfacing/todaySplit.js.map +1 -0
- package/dist/sync/collection.d.ts +8 -0
- package/dist/sync/collection.js +30 -18
- package/dist/sync/collection.js.map +1 -1
- package/dist/sync/rekeyDurations.js +70 -0
- package/dist/sync/rekeyDurations.js.map +1 -0
- package/dist/sync/syncTask.js +222 -109
- package/dist/sync/syncTask.js.map +1 -1
- package/dist/testing/memoryAdapter.d.ts +6 -3
- package/dist/testing/memoryAdapter.js +12 -11
- package/dist/testing/memoryAdapter.js.map +1 -1
- package/dist/testing/settle.d.ts +11 -0
- package/dist/testing/settle.js +19 -0
- package/dist/testing/settle.js.map +1 -0
- package/dist/timeframe/calendar.js +65 -0
- package/dist/timeframe/calendar.js.map +1 -0
- package/dist/timeframe/comparison.js +46 -0
- package/dist/timeframe/comparison.js.map +1 -0
- package/dist/timeframe/presets.d.ts +1 -1
- package/dist/timeframe/presets.js +5 -5
- package/dist/timeframe/presets.js.map +1 -1
- package/dist/timeframe/reportingTimezone.d.ts +1 -0
- package/dist/timeframe/reportingTimezone.js +64 -0
- package/dist/timeframe/reportingTimezone.js.map +1 -0
- package/dist/timeframe/tz.js +55 -39
- package/dist/timeframe/tz.js.map +1 -1
- package/dist/tracker/autoCapture.js +125 -38
- package/dist/tracker/autoCapture.js.map +1 -1
- package/dist/tracker/campaign.js +52 -0
- package/dist/tracker/campaign.js.map +1 -0
- package/dist/tracker/config.d.ts +174 -0
- package/dist/tracker/config.js +25 -0
- package/dist/tracker/config.js.map +1 -0
- package/dist/tracker/createTracker.d.ts +5 -10
- package/dist/tracker/createTracker.js +437 -82
- package/dist/tracker/createTracker.js.map +1 -1
- package/dist/tracker/digest.js +28 -0
- package/dist/tracker/digest.js.map +1 -0
- package/dist/tracker/engagement.js +100 -0
- package/dist/tracker/engagement.js.map +1 -0
- package/dist/tracker/events.js +37 -0
- package/dist/tracker/events.js.map +1 -0
- package/dist/tracker/exclusion.d.ts +8 -0
- package/dist/tracker/exclusion.js +82 -0
- package/dist/tracker/exclusion.js.map +1 -0
- package/dist/tracker/gate.d.ts +8 -0
- package/dist/tracker/gate.js +244 -0
- package/dist/tracker/gate.js.map +1 -0
- package/dist/tracker/initTracker.d.ts +5 -8
- package/dist/tracker/initTracker.js +42 -14
- package/dist/tracker/initTracker.js.map +1 -1
- package/dist/tracker/itemCapture.js +224 -0
- package/dist/tracker/itemCapture.js.map +1 -0
- package/dist/tracker/loadScript.js +23 -15
- package/dist/tracker/loadScript.js.map +1 -1
- package/dist/tracker/pageTracking.js +6 -6
- package/dist/tracker/pageTracking.js.map +1 -1
- package/dist/tracker/registry.js +129 -30
- package/dist/tracker/registry.js.map +1 -1
- package/dist/tracker/sinks/createSink.js +60 -0
- package/dist/tracker/sinks/createSink.js.map +1 -0
- package/dist/tracker/sinks/ga4.js +106 -0
- package/dist/tracker/sinks/ga4.js.map +1 -0
- package/dist/tracker/sinks/native.js +21 -42
- package/dist/tracker/sinks/native.js.map +1 -1
- package/dist/tracker/sinks/plausible.js +36 -18
- package/dist/tracker/sinks/plausible.js.map +1 -1
- package/dist/tracker/sinks/posthog.js +145 -9
- package/dist/tracker/sinks/posthog.js.map +1 -1
- package/dist/tracker/sinks/umami.js +18 -10
- package/dist/tracker/sinks/umami.js.map +1 -1
- package/dist/tracker/sinks/vendor.js +54 -22
- package/dist/tracker/sinks/vendor.js.map +1 -1
- package/dist/tracker/skip.js +81 -0
- package/dist/tracker/skip.js.map +1 -0
- package/dist/tracker/storage.js +23 -0
- package/dist/tracker/storage.js.map +1 -0
- package/dist/tracker/transport.js +2 -5
- package/dist/tracker/transport.js.map +1 -1
- package/dist/tracker/types.d.ts +99 -44
- package/dist/tracker/window.js +7 -0
- package/dist/tracker/window.js.map +1 -0
- package/dist/translations/ar.js +266 -56
- package/dist/translations/ar.js.map +1 -1
- package/dist/translations/de.js +256 -55
- package/dist/translations/de.js.map +1 -1
- package/dist/translations/en.js +253 -56
- package/dist/translations/en.js.map +1 -1
- package/dist/translations/es.js +261 -57
- package/dist/translations/es.js.map +1 -1
- package/dist/translations/fr.js +265 -61
- package/dist/translations/fr.js.map +1 -1
- package/dist/translations/id.js +256 -56
- package/dist/translations/id.js.map +1 -1
- package/dist/translations/index.d.ts +1 -1
- package/dist/translations/index.js +5 -7
- package/dist/translations/index.js.map +1 -1
- package/dist/translations/intl.js +71 -0
- package/dist/translations/intl.js.map +1 -0
- package/dist/translations/keys.d.ts +240 -14
- package/dist/translations/keys.js +245 -14
- package/dist/translations/keys.js.map +1 -1
- package/dist/translations/ko.js +258 -58
- package/dist/translations/ko.js.map +1 -1
- package/dist/translations/labelMap.d.ts +10 -0
- package/dist/translations/labelMap.js +22 -0
- package/dist/translations/labelMap.js.map +1 -0
- package/dist/translations/metricKeys.js +16 -2
- package/dist/translations/metricKeys.js.map +1 -1
- package/dist/translations/parts.js +20 -0
- package/dist/translations/parts.js.map +1 -0
- package/dist/translations/plural.js +61 -0
- package/dist/translations/plural.js.map +1 -0
- package/dist/translations/pt.js +270 -66
- package/dist/translations/pt.js.map +1 -1
- package/dist/translations/ru.js +261 -55
- package/dist/translations/ru.js.map +1 -1
- package/dist/translations/server.d.ts +1 -0
- package/dist/translations/server.js +2 -3
- package/dist/translations/server.js.map +1 -1
- package/dist/translations/staticLabel.js +69 -0
- package/dist/translations/staticLabel.js.map +1 -0
- package/dist/translations/uk.js +261 -55
- package/dist/translations/uk.js.map +1 -1
- package/dist/translations/zh.js +256 -56
- package/dist/translations/zh.js.map +1 -1
- package/dist/ui/RangePicker.js +110 -0
- package/dist/ui/RangePicker.js.map +1 -0
- package/dist/ui/analytics.css +1667 -0
- package/dist/ui/calendarDays.js +27 -0
- package/dist/ui/calendarDays.js.map +1 -0
- package/dist/ui/classNames.js +7 -0
- package/dist/ui/classNames.js.map +1 -0
- package/dist/ui/components/Card.d.ts +28 -0
- package/dist/ui/components/Card.js +21 -0
- package/dist/ui/components/Card.js.map +1 -0
- package/dist/ui/components/ChartDataTable.d.ts +41 -0
- package/dist/ui/components/ChartDataTable.js +48 -0
- package/dist/ui/components/ChartDataTable.js.map +1 -0
- package/dist/ui/components/ChoiceMenu.js +48 -0
- package/dist/ui/components/ChoiceMenu.js.map +1 -0
- package/dist/ui/components/DataTable.d.ts +82 -0
- package/dist/ui/components/DataTable.js +214 -0
- package/dist/ui/components/DataTable.js.map +1 -0
- package/dist/ui/components/LabeledSelect.js +62 -0
- package/dist/ui/components/LabeledSelect.js.map +1 -0
- package/dist/ui/components/LiveAnnouncement.js +21 -0
- package/dist/ui/components/LiveAnnouncement.js.map +1 -0
- package/dist/ui/components/MetricCard.d.ts +38 -0
- package/dist/ui/components/MetricCard.js +39 -0
- package/dist/ui/components/MetricCard.js.map +1 -0
- package/dist/ui/components/NoValue.js +22 -0
- package/dist/ui/components/NoValue.js.map +1 -0
- package/dist/ui/components/ReadState.js +27 -0
- package/dist/ui/components/ReadState.js.map +1 -0
- package/dist/ui/components/RefreshButton.js +25 -0
- package/dist/ui/components/RefreshButton.js.map +1 -0
- package/dist/ui/components/SourcesNoticeBanner.js +20 -0
- package/dist/ui/components/SourcesNoticeBanner.js.map +1 -0
- package/dist/ui/cssVars.js +7 -0
- package/dist/ui/cssVars.js.map +1 -0
- package/dist/ui/data/WithScopeToken.d.ts +20 -0
- package/dist/ui/data/WithScopeToken.js +20 -0
- package/dist/ui/data/WithScopeToken.js.map +1 -0
- package/dist/ui/data/clientFieldProps.js +16 -0
- package/dist/ui/data/clientFieldProps.js.map +1 -0
- package/dist/ui/data/request.d.ts +46 -0
- package/dist/ui/data/request.js +119 -0
- package/dist/ui/data/request.js.map +1 -0
- package/dist/ui/data/scopeTokenContext.js +18 -0
- package/dist/ui/data/scopeTokenContext.js.map +1 -0
- package/dist/ui/data/sharedCache.js +48 -0
- package/dist/ui/data/sharedCache.js.map +1 -0
- package/dist/ui/data/useRequest.d.ts +19 -0
- package/dist/ui/data/useRequest.js +123 -0
- package/dist/ui/data/useRequest.js.map +1 -0
- package/dist/ui/data/useRequestScope.js +25 -0
- package/dist/ui/data/useRequestScope.js.map +1 -0
- package/dist/ui/hooks/useDirection.js +47 -0
- package/dist/ui/hooks/useDirection.js.map +1 -0
- package/dist/ui/hooks/useDismissOnEscape.js +25 -0
- package/dist/ui/hooks/useDismissOnEscape.js.map +1 -0
- package/dist/ui/hooks/useLiveAnnouncement.js +57 -0
- package/dist/ui/hooks/useLiveAnnouncement.js.map +1 -0
- package/dist/ui/hooks/useRealtimePoll.js +112 -0
- package/dist/ui/hooks/useRealtimePoll.js.map +1 -0
- package/dist/ui/readState.js +19 -0
- package/dist/ui/readState.js.map +1 -0
- package/dist/ui/rows/toDisplayRows.js +49 -0
- package/dist/ui/rows/toDisplayRows.js.map +1 -0
- package/dist/ui/viewerClock.js +7 -0
- package/dist/ui/viewerClock.js.map +1 -0
- package/dist/view/AnalyticsNavLink.d.ts +5 -3
- package/dist/view/AnalyticsNavLink.js +12 -8
- package/dist/view/AnalyticsNavLink.js.map +1 -1
- package/dist/view/AnalyticsView.d.ts +9 -10
- package/dist/view/AnalyticsView.js +47 -19
- package/dist/view/AnalyticsView.js.map +1 -1
- package/dist/view/AnalyticsViewClient.d.ts +4 -7
- package/dist/view/AnalyticsViewClient.js +15 -174
- package/dist/view/AnalyticsViewClient.js.map +1 -1
- package/dist/view/CountryFlag.d.ts +27 -0
- package/dist/view/CountryFlag.js +44 -0
- package/dist/view/CountryFlag.js.map +1 -0
- package/dist/view/DocumentTitle.js +27 -0
- package/dist/view/DocumentTitle.js.map +1 -0
- package/dist/view/ViewRoot.d.ts +21 -0
- package/dist/view/ViewRoot.js +155 -0
- package/dist/view/ViewRoot.js.map +1 -0
- package/dist/view/ViewSections.d.ts +38 -0
- package/dist/view/ViewSections.js +190 -0
- package/dist/view/ViewSections.js.map +1 -0
- package/dist/view/authRedirect.js +2 -4
- package/dist/view/authRedirect.js.map +1 -1
- package/dist/view/consentShare.js +15 -0
- package/dist/view/consentShare.js.map +1 -0
- package/dist/view/conversionRate.js +9 -7
- package/dist/view/conversionRate.js.map +1 -1
- package/dist/view/dayRange.js +6 -10
- package/dist/view/dayRange.js.map +1 -1
- package/dist/view/exclusionLink.d.ts +27 -0
- package/dist/view/exclusionLink.js +46 -0
- package/dist/view/exclusionLink.js.map +1 -0
- package/dist/view/flagSrc.js +14 -0
- package/dist/view/flagSrc.js.map +1 -0
- package/dist/view/gating.d.ts +15 -1
- package/dist/view/gating.js +92 -20
- package/dist/view/gating.js.map +1 -1
- package/dist/view/hostCountryFlag.js +41 -0
- package/dist/view/hostCountryFlag.js.map +1 -0
- package/dist/view/labels.js +120 -3
- package/dist/view/labels.js.map +1 -1
- package/dist/view/metricAliases.js +10 -0
- package/dist/view/metricAliases.js.map +1 -0
- package/dist/view/navLabel.js +15 -0
- package/dist/view/navLabel.js.map +1 -0
- package/dist/view/registerView.js +13 -11
- package/dist/view/registerView.js.map +1 -1
- package/dist/view/scopeLabel.js +21 -0
- package/dist/view/scopeLabel.js.map +1 -0
- package/dist/view/sections/Breakdowns.js +221 -118
- package/dist/view/sections/Breakdowns.js.map +1 -1
- package/dist/view/sections/EmptyStates.js +120 -32
- package/dist/view/sections/EmptyStates.js.map +1 -1
- package/dist/view/sections/ExcludeBrowser.js +188 -0
- package/dist/view/sections/ExcludeBrowser.js.map +1 -0
- package/dist/view/sections/FilterChips.js +130 -25
- package/dist/view/sections/FilterChips.js.map +1 -1
- package/dist/view/sections/GoalsPanel.js +68 -59
- package/dist/view/sections/GoalsPanel.js.map +1 -1
- package/dist/view/sections/OverviewCards.js +42 -36
- package/dist/view/sections/OverviewCards.js.map +1 -1
- package/dist/view/sections/RealtimeStrip.js +70 -56
- package/dist/view/sections/RealtimeStrip.js.map +1 -1
- package/dist/view/sections/SectionBoundary.js +34 -0
- package/dist/view/sections/SectionBoundary.js.map +1 -0
- package/dist/view/sections/Toolbar.d.ts +11 -0
- package/dist/view/sections/Toolbar.js +182 -116
- package/dist/view/sections/Toolbar.js.map +1 -1
- package/dist/view/sections/Trend.js +179 -73
- package/dist/view/sections/Trend.js.map +1 -1
- package/dist/view/state.d.ts +42 -0
- package/dist/view/state.js +97 -53
- package/dist/view/state.js.map +1 -1
- package/dist/view/useViewClock.js +31 -0
- package/dist/view/useViewClock.js.map +1 -0
- package/dist/view/useViewQueries.d.ts +21 -0
- package/dist/view/useViewQueries.js +50 -79
- package/dist/view/useViewQueries.js.map +1 -1
- package/dist/view/useViewState.js +42 -0
- package/dist/view/useViewState.js.map +1 -0
- package/dist/view/useViewUrl.js +52 -0
- package/dist/view/useViewUrl.js.map +1 -0
- package/dist/view/viewBody.js +30 -0
- package/dist/view/viewBody.js.map +1 -0
- package/dist/view/viewContext.d.ts +81 -0
- package/dist/view/viewContext.js +49 -0
- package/dist/view/viewContext.js.map +1 -0
- package/dist/view/viewProps.d.ts +65 -8
- package/dist/view/viewProps.js +123 -36
- package/dist/view/viewProps.js.map +1 -1
- package/dist/widgets/AnalyticsBreakdownWidget.d.ts +7 -3
- package/dist/widgets/AnalyticsBreakdownWidget.js +153 -78
- package/dist/widgets/AnalyticsBreakdownWidget.js.map +1 -1
- package/dist/widgets/AnalyticsGoalsWidget.d.ts +6 -7
- package/dist/widgets/AnalyticsGoalsWidget.js +126 -159
- package/dist/widgets/AnalyticsGoalsWidget.js.map +1 -1
- package/dist/widgets/AnalyticsMetricWidget.d.ts +7 -3
- package/dist/widgets/AnalyticsMetricWidget.js +85 -83
- package/dist/widgets/AnalyticsMetricWidget.js.map +1 -1
- package/dist/widgets/AnalyticsRealtimeWidget.d.ts +7 -3
- package/dist/widgets/AnalyticsRealtimeWidget.js +81 -61
- package/dist/widgets/AnalyticsRealtimeWidget.js.map +1 -1
- package/dist/widgets/AnalyticsTrendWidget.d.ts +7 -3
- package/dist/widgets/AnalyticsTrendWidget.js +134 -100
- package/dist/widgets/AnalyticsTrendWidget.js.map +1 -1
- package/dist/widgets/ComparisonDelta.js +33 -42
- package/dist/widgets/ComparisonDelta.js.map +1 -1
- package/dist/widgets/RealtimeCounter.d.ts +27 -3
- package/dist/widgets/RealtimeCounter.js +90 -62
- package/dist/widgets/RealtimeCounter.js.map +1 -1
- package/dist/widgets/WidgetCard.d.ts +80 -0
- package/dist/widgets/WidgetCard.js +99 -0
- package/dist/widgets/WidgetCard.js.map +1 -0
- package/dist/widgets/WidgetFrame.js +42 -0
- package/dist/widgets/WidgetFrame.js.map +1 -0
- package/dist/widgets/WidgetShimmer.d.ts +55 -0
- package/dist/widgets/WidgetShimmer.js +86 -0
- package/dist/widgets/WidgetShimmer.js.map +1 -0
- package/dist/widgets/breakdownTypes.js +18 -2
- package/dist/widgets/breakdownTypes.js.map +1 -1
- package/dist/widgets/customWidget.d.ts +5 -1
- package/dist/widgets/customWidget.js +6 -7
- package/dist/widgets/customWidget.js.map +1 -1
- package/dist/widgets/defaultLayout.d.ts +26 -0
- package/dist/widgets/defaultLayout.js +51 -0
- package/dist/widgets/defaultLayout.js.map +1 -0
- package/dist/widgets/defaults.d.ts +4 -3
- package/dist/widgets/defaults.js +76 -24
- package/dist/widgets/defaults.js.map +1 -1
- package/dist/widgets/fieldRows.js +14 -0
- package/dist/widgets/fieldRows.js.map +1 -0
- package/dist/widgets/filterCaption.js +26 -0
- package/dist/widgets/filterCaption.js.map +1 -0
- package/dist/widgets/filterField.d.ts +15 -0
- package/dist/widgets/filterField.js +86 -0
- package/dist/widgets/filterField.js.map +1 -0
- package/dist/widgets/filterValueLabel.d.ts +1 -0
- package/dist/widgets/filterValueLabel.js +45 -0
- package/dist/widgets/filterValueLabel.js.map +1 -0
- package/dist/widgets/notices.js +79 -0
- package/dist/widgets/notices.js.map +1 -0
- package/dist/widgets/prepareWidgetRead.d.ts +24 -0
- package/dist/widgets/prepareWidgetRead.js +110 -0
- package/dist/widgets/prepareWidgetRead.js.map +1 -0
- package/dist/widgets/range.js +26 -21
- package/dist/widgets/range.js.map +1 -1
- package/dist/widgets/readForWidget.d.ts +32 -13
- package/dist/widgets/readForWidget.js +52 -63
- package/dist/widgets/readForWidget.js.map +1 -1
- package/dist/widgets/readForWidgetBreakdown.d.ts +45 -18
- package/dist/widgets/readForWidgetBreakdown.js +71 -58
- package/dist/widgets/readForWidgetBreakdown.js.map +1 -1
- package/dist/widgets/readForWidgetGoals.d.ts +21 -17
- package/dist/widgets/readForWidgetGoals.js +72 -52
- package/dist/widgets/readForWidgetGoals.js.map +1 -1
- package/dist/widgets/readForWidgetRealtime.d.ts +24 -11
- package/dist/widgets/readForWidgetRealtime.js +69 -41
- package/dist/widgets/readForWidgetRealtime.js.map +1 -1
- package/dist/widgets/readForWidgetSeries.d.ts +29 -24
- package/dist/widgets/readForWidgetSeries.js +66 -114
- package/dist/widgets/readForWidgetSeries.js.map +1 -1
- package/dist/widgets/readMeta.d.ts +48 -0
- package/dist/widgets/readMeta.js +66 -0
- package/dist/widgets/readMeta.js.map +1 -0
- package/dist/widgets/realtimePoll.d.ts +1 -0
- package/dist/widgets/realtimePoll.js +56 -16
- package/dist/widgets/realtimePoll.js.map +1 -1
- package/dist/widgets/registerWidgets.js +207 -124
- package/dist/widgets/registerWidgets.js.map +1 -1
- package/dist/widgets/stateKeys.js +30 -0
- package/dist/widgets/stateKeys.js.map +1 -0
- package/dist/widgets/titleForecast.js +89 -0
- package/dist/widgets/titleForecast.js.map +1 -0
- package/dist/widgets/types.d.ts +16 -0
- package/dist/widgets/types.js +2 -0
- package/dist/widgets/types.js.map +1 -1
- package/dist/widgets/viewLink.d.ts +24 -6
- package/dist/widgets/viewLink.js +36 -26
- package/dist/widgets/viewLink.js.map +1 -1
- package/dist/widgets/widgetData.js +34 -0
- package/dist/widgets/widgetData.js.map +1 -0
- package/dist/widgets/widgetWindow.d.ts +1 -0
- package/dist/widgets/widgetWindow.js +51 -0
- package/dist/widgets/widgetWindow.js.map +1 -0
- package/package.json +61 -42
- package/dist/capture/getTrackerConfig.d.ts +0 -20
- package/dist/capture/getTrackerConfig.js +0 -31
- package/dist/capture/getTrackerConfig.js.map +0 -1
- package/dist/capture/slots.d.ts +0 -8
- package/dist/capture/trackerConfig.d.ts +0 -33
- package/dist/charts/styles.js +0 -59
- package/dist/charts/styles.js.map +0 -1
- package/dist/exports/next.d.ts +0 -3
- package/dist/exports/next.js +0 -3
- package/dist/fields/config/SourceSelectField.d.ts +0 -14
- package/dist/fields/dateRange/styles.js +0 -23
- package/dist/fields/dateRange/styles.js.map +0 -1
- package/dist/goals/GoalSelectField.d.ts +0 -7
- package/dist/native/collections/events.js +0 -121
- package/dist/native/collections/events.js.map +0 -1
- package/dist/native/collections/rollups.js +0 -151
- package/dist/native/collections/rollups.js.map +0 -1
- package/dist/native/collections/seen.js +0 -47
- package/dist/native/collections/seen.js.map +0 -1
- package/dist/native/ingest/flushBatch.js +0 -60
- package/dist/native/ingest/flushBatch.js.map +0 -1
- package/dist/native/ingest/salt.js +0 -14
- package/dist/native/ingest/salt.js.map +0 -1
- package/dist/native/ingest/writeBuffer.js +0 -55
- package/dist/native/ingest/writeBuffer.js.map +0 -1
- package/dist/native/ingest/writeEvent.js +0 -14
- package/dist/native/ingest/writeEvent.js.map +0 -1
- package/dist/native/query/eventAgg.js +0 -161
- package/dist/native/query/eventAgg.js.map +0 -1
- package/dist/native/realtime/buildRealtime.js +0 -53
- package/dist/native/realtime/buildRealtime.js.map +0 -1
- package/dist/native/retention/pruneTask.js +0 -29
- package/dist/native/retention/pruneTask.js.map +0 -1
- package/dist/native/rollupAcc.js +0 -64
- package/dist/native/rollupAcc.js.map +0 -1
- package/dist/native/rollups/applyDistinctDeltas.js +0 -9
- package/dist/native/rollups/applyDistinctDeltas.js.map +0 -1
- package/dist/native/rollups/bumpRollup.js +0 -73
- package/dist/native/rollups/bumpRollup.js.map +0 -1
- package/dist/native/rollups/deltas.js +0 -90
- package/dist/native/rollups/deltas.js.map +0 -1
- package/dist/native/rollups/insertIfNew.js +0 -53
- package/dist/native/rollups/insertIfNew.js.map +0 -1
- package/dist/next/captureRewrites.d.ts +0 -41
- package/dist/next/captureRewrites.js +0 -56
- package/dist/next/captureRewrites.js.map +0 -1
- package/dist/next/posthogProxyRewrites.d.ts +0 -41
- package/dist/next/posthogProxyRewrites.js +0 -45
- package/dist/next/posthogProxyRewrites.js.map +0 -1
- package/dist/plugin/paths.js +0 -27
- package/dist/plugin/paths.js.map +0 -1
- package/dist/query/errors.js +0 -10
- package/dist/query/errors.js.map +0 -1
- package/dist/react/TrackerBoot.d.ts +0 -22
- package/dist/rsc/AnalyticsScripts.d.ts +0 -30
- package/dist/rsc/AnalyticsScripts.js +0 -41
- package/dist/rsc/AnalyticsScripts.js.map +0 -1
- package/dist/surfacing/queue.js +0 -60
- package/dist/surfacing/queue.js.map +0 -1
- package/dist/surfacing/retryPolicy.js +0 -15
- package/dist/surfacing/retryPolicy.js.map +0 -1
- package/dist/tracker/autoCapture.d.ts +0 -48
- package/dist/tracker/consent.d.ts +0 -24
- package/dist/tracker/consent.js +0 -48
- package/dist/tracker/consent.js.map +0 -1
- package/dist/tracker/loadScript.d.ts +0 -14
- package/dist/tracker/pageTracking.d.ts +0 -17
- package/dist/tracker/registry.d.ts +0 -27
- package/dist/tracker/sinks/native.d.ts +0 -22
- package/dist/tracker/sinks/plausible.d.ts +0 -14
- package/dist/tracker/sinks/posthog.d.ts +0 -14
- package/dist/tracker/sinks/umami.d.ts +0 -13
- package/dist/tracker/sinks/vendor.d.ts +0 -14
- package/dist/view/sections/styles.js +0 -74
- package/dist/view/sections/styles.js.map +0 -1
- package/dist/widgets/WidgetViewLink.js +0 -17
- package/dist/widgets/WidgetViewLink.js.map +0 -1
- package/dist/widgets/cardChrome.d.ts +0 -8
- package/dist/widgets/cardChrome.js +0 -46
- package/dist/widgets/cardChrome.js.map +0 -1
- package/dist/widgets/comparison.js +0 -43
- package/dist/widgets/comparison.js.map +0 -1
package/dist/core/options.d.ts
CHANGED
|
@@ -1,78 +1,211 @@
|
|
|
1
|
+
import { CurrencyConverter } from "../goals/currency.js";
|
|
2
|
+
import { CaptureClientKind, CaptureSlot, ConsentPhase, WithoutConsentLevel } from "../tracker/config.js";
|
|
1
3
|
import { Goal } from "../goals/types.js";
|
|
4
|
+
import { BrowserAmounts, OrderSignatureMode } from "../goals/match.js";
|
|
5
|
+
import { TrustedPlatform } from "../net/platform.js";
|
|
6
|
+
import { RouteBase } from "../plugin/routes.js";
|
|
7
|
+
import { FetchLike } from "./fetch.js";
|
|
8
|
+
import { AnalyticsCollectionOptions, CollectionOverrides } from "./collectionOption.js";
|
|
9
|
+
import { AnalyticsJobsOptions, AnalyticsTaskOptions } from "./jobs.js";
|
|
10
|
+
import { AnalyticsSdks } from "./sdks.js";
|
|
2
11
|
import { AnalyticsAdapter, MetricKey } from "./contract.js";
|
|
12
|
+
import { AnalyticsSourceOptions, DefaultSourceFunction, DefaultSourceRule, OwnSource, SourcePolicy, SourcePolicyFunction, SourceRef } from "./sourcePolicy.js";
|
|
3
13
|
import { AnalyticsBinding } from "../binding/types.js";
|
|
4
|
-
import { CaptureSlot } from "../capture/slots.js";
|
|
5
|
-
import { TimeframePreset } from "../timeframe/presets.js";
|
|
6
14
|
import { TranslationsOption } from "../translations/index.js";
|
|
15
|
+
import { GoalCollectionFieldOverrides } from "../goals/collection.js";
|
|
16
|
+
import { ProviderHostPolicy } from "../providers/hosts.js";
|
|
17
|
+
import { ProviderId } from "../providers/factory.js";
|
|
18
|
+
import { ConnectionAccess, ProviderCollectionFieldOverrides } from "../providers/collection.js";
|
|
19
|
+
import { AfterReadHook } from "../surfacing/afterRead.js";
|
|
20
|
+
import { TimeframePreset } from "../timeframe/presets.js";
|
|
21
|
+
import { CacheStore } from "../surfacing/cacheStore.js";
|
|
7
22
|
import { CustomWidgetDef } from "../widgets/customWidget.js";
|
|
8
|
-
import {
|
|
23
|
+
import { BuiltInWidgetSlug } from "./widgetSlugs.js";
|
|
24
|
+
import { Access, CollectionConfig, CollectionSlug, Field, Payload, PayloadRequest, RawPayloadComponent, Widget } from "payload";
|
|
9
25
|
import { KeysConfig } from "@10x-media/fields/encrypted";
|
|
10
26
|
|
|
11
27
|
//#region src/core/options.d.ts
|
|
12
28
|
/**
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
|
|
29
|
+
* Who asks for a request's scope: `capture` files a visitor's hit and carries no user or cookies,
|
|
30
|
+
* so it resolves from the host; `admin` is every signed-in read or edit.
|
|
31
|
+
*/
|
|
32
|
+
type ScopeCallSite = 'capture' | 'admin';
|
|
33
|
+
/**
|
|
34
|
+
* Maps a request to the scope it selected (tenant id, site key), null for the whole install;
|
|
35
|
+
* whether its user may act there is `scope.member`. `'*'` is refused.
|
|
16
36
|
*/
|
|
17
37
|
type ScopeResolver = (args: {
|
|
18
38
|
req: PayloadRequest;
|
|
39
|
+
callSite: ScopeCallSite;
|
|
19
40
|
}) => string | null | Promise<string | null>;
|
|
20
41
|
/**
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
|
|
24
|
-
|
|
42
|
+
* Lists the tenant scopes the sync task runs over, in addition to the install-wide scope it always
|
|
43
|
+
* covers. Warming needs no list: it repeats the reads each scope's readers made.
|
|
44
|
+
*/
|
|
45
|
+
type ScopeListResolver = (args: {
|
|
46
|
+
payload: Payload;
|
|
47
|
+
}) => string[] | Promise<string[]>;
|
|
48
|
+
/**
|
|
49
|
+
* Names a scope on screen, so a tenant admin reads a name rather than an id in the view's caption.
|
|
50
|
+
* Undefined keeps the id.
|
|
51
|
+
*/
|
|
52
|
+
type ScopeLabelResolver = (args: {
|
|
53
|
+
req: PayloadRequest;
|
|
54
|
+
scope: string;
|
|
55
|
+
}) => string | undefined | Promise<string | undefined>;
|
|
56
|
+
/** Whether the request's user belongs to `scope`, as opposed to having merely selected it. */
|
|
57
|
+
type ScopeMemberAccess = (args: {
|
|
58
|
+
req: PayloadRequest;
|
|
59
|
+
scope: string;
|
|
60
|
+
}) => boolean | Promise<boolean>;
|
|
61
|
+
/** How the install divides its analytics into tenants. Unset, the install is one scope. */
|
|
62
|
+
type AnalyticsScopeOptions = {
|
|
63
|
+
resolve: ScopeResolver;
|
|
64
|
+
/**
|
|
65
|
+
* Whether the request's user belongs to the scope `resolve` selected, asked on every read and
|
|
66
|
+
* config write. `tenantMembership()` reads the multi-tenant plugin's tenants.
|
|
67
|
+
*/
|
|
68
|
+
member: ScopeMemberAccess;
|
|
69
|
+
list?: ScopeListResolver;
|
|
70
|
+
label?: ScopeLabelResolver;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* Resolves a scope's IANA reporting timezone, also asked at ingest without the user or cookies.
|
|
74
|
+
* Null means UTC.
|
|
25
75
|
*/
|
|
26
76
|
type TimezoneResolver = (args: {
|
|
27
77
|
req: PayloadRequest;
|
|
28
78
|
scope: string | null;
|
|
29
79
|
}) => string | null | Promise<string | null>;
|
|
30
80
|
/**
|
|
31
|
-
*
|
|
32
|
-
*
|
|
81
|
+
* Resolves a scope's ISO 4217 revenue currency, so each tenant can have its own. Undefined reports
|
|
82
|
+
* revenue as a plain number.
|
|
33
83
|
*/
|
|
34
|
-
type
|
|
35
|
-
|
|
36
|
-
|
|
84
|
+
type CurrencyResolver = (args: {
|
|
85
|
+
req: PayloadRequest;
|
|
86
|
+
scope: string | null;
|
|
87
|
+
}) => string | undefined | Promise<string | undefined>;
|
|
37
88
|
/**
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
* the static config adapters exactly like collection-resolved ones, but are not
|
|
41
|
-
* cached; memoize inside the function if lookups are expensive.
|
|
89
|
+
* How the install measures money once `revenue` turns it on. Off hides every money surface but
|
|
90
|
+
* keeps stored data, so turning it on later reports the history.
|
|
42
91
|
*/
|
|
43
|
-
type
|
|
92
|
+
type AnalyticsRevenueOptions = {
|
|
93
|
+
/**
|
|
94
|
+
* ISO 4217 currency revenue is reported in, or a resolver per tenant. Unset, amounts are summed
|
|
95
|
+
* as sent and a mix of currencies is flagged in `meta.mixedCurrencies`.
|
|
96
|
+
*/
|
|
97
|
+
currency?: string | CurrencyResolver;
|
|
98
|
+
/**
|
|
99
|
+
* FX hook native ingest calls when an event's currency differs from `currency`. Without it such
|
|
100
|
+
* an amount stays out of revenue, though the conversion still counts.
|
|
101
|
+
*/
|
|
102
|
+
convert?: CurrencyConverter;
|
|
103
|
+
/**
|
|
104
|
+
* The `currency` breakdown dimension, keyed by the currency each amount was sent in. Default: on
|
|
105
|
+
* while no `convert` hook is set.
|
|
106
|
+
*/
|
|
107
|
+
dimension?: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* How far native ingest trusts an amount a browser sends, which anyone can forge. `'fixed'`
|
|
110
|
+
* (default) prefers a goal's fixed value, `'none'` ignores it, `'trust'` prefers it.
|
|
111
|
+
*/
|
|
112
|
+
browserAmounts?: BrowserAmounts;
|
|
113
|
+
/**
|
|
114
|
+
* Whether native ingest takes an order id sent without the server's `signOrderId` signature.
|
|
115
|
+
* `'optional'` (default) takes it; `'required'` answers an unsigned one with `400`.
|
|
116
|
+
*/
|
|
117
|
+
orderSignature?: OrderSignatureMode;
|
|
118
|
+
};
|
|
119
|
+
/** What `providers.resolve` is handed for one scope. */
|
|
120
|
+
interface ProvidersResolveArgs {
|
|
44
121
|
payload: Payload;
|
|
45
122
|
req?: PayloadRequest;
|
|
46
123
|
scope: string | null;
|
|
47
|
-
|
|
124
|
+
/**
|
|
125
|
+
* The runtime's guarded fetch: every address a vendor's host resolves to has to be public, on
|
|
126
|
+
* every connection and every redirect. Hand it to `adapterFromProviderDoc`.
|
|
127
|
+
*/
|
|
128
|
+
fetch: FetchLike;
|
|
129
|
+
/**
|
|
130
|
+
* The hosts a document may name: each vendor's own cloud, plus `providers.hosts`. Hand it to
|
|
131
|
+
* `adapterFromProviderDoc` with `fetch`, which reaches a private network only when it allows one.
|
|
132
|
+
*/
|
|
133
|
+
hosts: ProviderHostPolicy;
|
|
134
|
+
/** The plugin's `sdks`, which a GA4 document's adapter reads through. */
|
|
135
|
+
sdks: AnalyticsSdks;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Replaces the providers collection lookup with a scope's adapters, uncached. Build each with
|
|
139
|
+
* `adapterFromProviderDoc(row, { fetch, hosts, sdks })` so a stored key reaches allowed hosts only.
|
|
140
|
+
*/
|
|
141
|
+
type ProvidersResolve = (args: ProvidersResolveArgs) => AnalyticsAdapter[] | Promise<AnalyticsAdapter[]>;
|
|
142
|
+
/**
|
|
143
|
+
* Where provider documents may point. Each vendor's own cloud is always allowed: Plausible, Umami
|
|
144
|
+
* Cloud, and PostHog's US and EU regions.
|
|
145
|
+
*/
|
|
146
|
+
type ProviderHostsOptions = {
|
|
147
|
+
/**
|
|
148
|
+
* Origins a document's host may name besides its vendor's cloud, such as `https://*.example.com`;
|
|
149
|
+
* no paths. A host outside them reads as `source_misconfigured`.
|
|
150
|
+
*/
|
|
151
|
+
allow?: string[];
|
|
152
|
+
/**
|
|
153
|
+
* Lets document adapters reach any address over http or https, private networks included (Umami
|
|
154
|
+
* on the same Docker network). Default off.
|
|
155
|
+
*/
|
|
156
|
+
allowPrivateNetwork?: boolean;
|
|
157
|
+
};
|
|
48
158
|
type ProvidersCollectionOptions = {
|
|
49
159
|
slug?: string;
|
|
50
160
|
/**
|
|
51
|
-
* Field matched against the resolved scope when looking up a scope's providers.
|
|
52
|
-
*
|
|
53
|
-
* scoping for the collection.
|
|
161
|
+
* Field matched against the resolved scope when looking up a scope's providers. Default `scope`;
|
|
162
|
+
* name a tenant plugin's field (`tenant`) when that plugin scopes the collection.
|
|
54
163
|
*/
|
|
55
164
|
scopeField?: string;
|
|
56
|
-
|
|
165
|
+
/**
|
|
166
|
+
* Replaces one of the collection's own fields, each handed the plugin's default. Applied before
|
|
167
|
+
* `overrides`.
|
|
168
|
+
*/
|
|
169
|
+
fields?: ProviderCollectionFieldOverrides;
|
|
170
|
+
/**
|
|
171
|
+
* Reshapes the whole config last. It may not rename the collection (`slug` does) nor turn off
|
|
172
|
+
* its timestamps, which every instance notices a saved document by: the boot refuses both.
|
|
173
|
+
*/
|
|
174
|
+
overrides?: CollectionOverrides;
|
|
57
175
|
access?: Partial<CollectionConfig['access']>;
|
|
58
176
|
/**
|
|
59
|
-
* Dedicated key ring for
|
|
60
|
-
*
|
|
61
|
-
* ring derives from the Payload secret. Configure a dedicated key for
|
|
62
|
-
* anything beyond a dev install.
|
|
177
|
+
* Dedicated key ring for stored provider credentials. Unset, the fields plugin's `encrypted.keys`
|
|
178
|
+
* applies, else a ring derived from the Payload secret, fit for dev only.
|
|
63
179
|
*/
|
|
64
180
|
encryption?: {
|
|
65
181
|
keys?: KeysConfig;
|
|
66
182
|
};
|
|
183
|
+
/**
|
|
184
|
+
* Who may set or change where a document connects (provider, host, ids); a denied value is
|
|
185
|
+
* dropped. Default: the creator, then `access.crossScope.named` when scoped, else update access.
|
|
186
|
+
*/
|
|
187
|
+
connectionAccess?: ConnectionAccess;
|
|
188
|
+
/**
|
|
189
|
+
* Who may set or change a scoped install's "Default for this site" checkbox; a denied value is
|
|
190
|
+
* dropped. Default: `connectionAccess`, else its default (the creator, then `crossScope.named`).
|
|
191
|
+
*/
|
|
192
|
+
defaultAccess?: ConnectionAccess;
|
|
193
|
+
/**
|
|
194
|
+
* Which provider types documents may have, the first being the select's default; the select lists
|
|
195
|
+
* them in a fixed order. Default: every type, `native` only while `adapters` holds native().
|
|
196
|
+
*/
|
|
197
|
+
types?: ProviderId[];
|
|
198
|
+
/**
|
|
199
|
+
* Which provider documents a reader reads analytics through, as collection access ANDed with
|
|
200
|
+
* enabled and scope. Default: the collection's own read access.
|
|
201
|
+
*/
|
|
202
|
+
sourceAccess?: Access;
|
|
67
203
|
};
|
|
68
204
|
type ProvidersOptions = {
|
|
69
|
-
/** Opt-in admin collection storing runtime provider configurations. */collection?: boolean | ProvidersCollectionOptions;
|
|
70
|
-
resolve?: ProvidersResolve;
|
|
205
|
+
/** Opt-in admin collection storing runtime provider configurations. */collection?: boolean | ProvidersCollectionOptions; /** Replaces the collection: the two cannot both be set. */
|
|
206
|
+
resolve?: ProvidersResolve; /** Where the documents of either one may point. Needs `collection` or `resolve`. */
|
|
207
|
+
hosts?: ProviderHostsOptions;
|
|
71
208
|
};
|
|
72
|
-
/** Access checker for cross-scope (platform) analytics reads. */
|
|
73
|
-
type PlatformReadAccess = (args: {
|
|
74
|
-
req: PayloadRequest;
|
|
75
|
-
}) => boolean | Promise<boolean>;
|
|
76
209
|
/** Access checker for authenticated analytics reads. */
|
|
77
210
|
type AnalyticsReadAccess = (args: {
|
|
78
211
|
req: PayloadRequest;
|
|
@@ -81,101 +214,198 @@ type AnalyticsReadAccess = (args: {
|
|
|
81
214
|
type AnalyticsViewAccess = (args: {
|
|
82
215
|
req: PayloadRequest;
|
|
83
216
|
}) => boolean | Promise<boolean>;
|
|
217
|
+
/**
|
|
218
|
+
* Access checker for one of the cross-scope gates under `access.crossScope`, told what is asked
|
|
219
|
+
* where the read knows it: the scope (`'*'` or null for every scope) and, for `unscopedSource`, the adapter.
|
|
220
|
+
*/
|
|
221
|
+
type CrossScopeAccess = (args: {
|
|
222
|
+
req: PayloadRequest;
|
|
223
|
+
scope?: string | null;
|
|
224
|
+
adapterId?: string;
|
|
225
|
+
}) => boolean | Promise<boolean>;
|
|
226
|
+
/**
|
|
227
|
+
* The three ways a reader on a scoped install reaches past their own scope, each denied by default.
|
|
228
|
+
* Split so platform staff can aggregate without singling out one tenant.
|
|
229
|
+
*/
|
|
230
|
+
type AnalyticsCrossScopeOptions = {
|
|
231
|
+
/**
|
|
232
|
+
* Reading a scope the request does not resolve to, by naming it. Also decides who manages other
|
|
233
|
+
* tenants' provider, goal and sync documents.
|
|
234
|
+
*/
|
|
235
|
+
named?: CrossScopeAccess; /** Reading every scope at once: the `'*'` marker, and a scoped install's null scope. */
|
|
236
|
+
aggregate?: CrossScopeAccess;
|
|
237
|
+
/**
|
|
238
|
+
* Reading a tenant through a shared config adapter that cannot narrow its query to one scope.
|
|
239
|
+
* Also decides whether such an adapter is listed as a source at all.
|
|
240
|
+
*/
|
|
241
|
+
unscopedSource?: CrossScopeAccess;
|
|
242
|
+
};
|
|
84
243
|
type AnalyticsAccessOptions = {
|
|
85
244
|
/**
|
|
86
|
-
* Gates every
|
|
87
|
-
*
|
|
88
|
-
* analytics away from admins who should not see them. Scope gating is separate and
|
|
89
|
-
* always applies: granting `read` never widens which scope a user reads.
|
|
245
|
+
* Gates every read: endpoints, dashboard widgets and display fields. Default `isAdminUser` (the
|
|
246
|
+
* `admin.user` collection); scope gating applies on top and is never widened by it.
|
|
90
247
|
*/
|
|
91
248
|
read?: AnalyticsReadAccess;
|
|
92
249
|
/**
|
|
93
|
-
* Gates
|
|
94
|
-
*
|
|
95
|
-
* (`scopeResolver` configured) default to deny; configure it, for example a role
|
|
96
|
-
* check, so platform admins can read cross-scope and manage every tenant's
|
|
97
|
-
* providers. Unscoped installs default to any authenticated admin-panel user.
|
|
250
|
+
* Gates the analytics admin view. Default: `read`. A denied reader still sees the nav link and
|
|
251
|
+
* lands on the view's no-access message.
|
|
98
252
|
*/
|
|
99
|
-
|
|
253
|
+
view?: AnalyticsViewAccess;
|
|
100
254
|
/**
|
|
101
|
-
*
|
|
102
|
-
* the
|
|
103
|
-
* component with no access context) and lands on the view's no-access message.
|
|
255
|
+
* Reads past the request's own scope, scoped installs only: a function grants all three gates,
|
|
256
|
+
* the object form each one (unset denies). Unscoped, all three open to `isAdminUser`.
|
|
104
257
|
*/
|
|
105
|
-
|
|
258
|
+
crossScope?: CrossScopeAccess | AnalyticsCrossScopeOptions;
|
|
106
259
|
};
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
type ConsentResolver = (args: {
|
|
260
|
+
/** What `capture.gate` is asked about one capture slot. */
|
|
261
|
+
interface CaptureGateArgs {
|
|
110
262
|
slot: CaptureSlot;
|
|
263
|
+
/** The adapter filling the slot for this request. */
|
|
111
264
|
adapterId: string;
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
type CaptureSlotOption = string | false;
|
|
265
|
+
kind: CaptureClientKind;
|
|
266
|
+
}
|
|
115
267
|
/**
|
|
116
|
-
*
|
|
117
|
-
*
|
|
118
|
-
* form overrides the default, which is `none` for the cookieless native tracker and
|
|
119
|
-
* `required` for a vendor's.
|
|
268
|
+
* Which capture slots wait for the host's consent manager: `'all'`, `'off'`, a list of slots, or a
|
|
269
|
+
* function answering per slot (true waits).
|
|
120
270
|
*/
|
|
121
|
-
type
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
271
|
+
type CaptureGate = 'all' | 'off' | CaptureSlot[] | ((args: CaptureGateArgs) => boolean);
|
|
272
|
+
/** What `capture.withoutConsent` is asked about one held slot in one phase. */
|
|
273
|
+
interface WithoutConsentArgs extends CaptureGateArgs {
|
|
274
|
+
phase: ConsentPhase;
|
|
275
|
+
}
|
|
276
|
+
/** `capture.withoutConsent` as a function: a throw, or any other answer, means `'off'`. */
|
|
277
|
+
type WithoutConsentFunction = (args: WithoutConsentArgs) => WithoutConsentLevel;
|
|
278
|
+
/**
|
|
279
|
+
* What a slot `capture.gate` holds does before an answer (`pending`) and after a refusal
|
|
280
|
+
* (`refused`): one level for both, one per phase (an omitted phase is `'cookieless'`), or a
|
|
281
|
+
* function answering per slot and phase.
|
|
282
|
+
*/
|
|
283
|
+
type WithoutConsentOption = WithoutConsentLevel | {
|
|
284
|
+
pending?: WithoutConsentLevel;
|
|
285
|
+
refused?: WithoutConsentLevel;
|
|
286
|
+
} | WithoutConsentFunction;
|
|
287
|
+
/** An adapter id to fill a capture slot with, or `false` to leave it deliberately empty. */
|
|
288
|
+
type CaptureSlotOption = string | false;
|
|
289
|
+
/** What the tracker and ingest do with elements marked by `itemAttributes`. */
|
|
290
|
+
type ItemCaptureOptions = {
|
|
291
|
+
/** Count an item as seen once at least half of it stays on screen for a second. */impressions?: boolean; /** Send `item_click` for the first click on an item during a pageview. */
|
|
292
|
+
clicks?: boolean; /** Also count an item per page it appeared on, beside its own total. */
|
|
293
|
+
pages?: boolean;
|
|
129
294
|
};
|
|
130
295
|
type AutoCaptureOptions = {
|
|
131
296
|
scrollDepth?: boolean;
|
|
132
297
|
outboundLinks?: boolean;
|
|
133
298
|
fileDownloads?: boolean;
|
|
134
299
|
goalAttribute?: boolean;
|
|
300
|
+
/**
|
|
301
|
+
* Send each pageview's query string so ingest can extract its utm keys. The raw query is
|
|
302
|
+
* never stored, only the five campaign values; set false to stop sending it at all.
|
|
303
|
+
*/
|
|
304
|
+
query?: boolean;
|
|
305
|
+
/**
|
|
306
|
+
* Content items, on by default and inert until a page marks an element with `itemAttributes`.
|
|
307
|
+
* `false` turns them off, crediting goals to items included.
|
|
308
|
+
*/
|
|
309
|
+
items?: false | ItemCaptureOptions;
|
|
135
310
|
};
|
|
136
|
-
type ResolvedAutoCapture = Required<AutoCaptureOptions>;
|
|
137
311
|
type AnalyticsGoalsCollectionOptions = {
|
|
138
|
-
/** Set false to keep the object form's other settings while leaving the collection off. */enabled?: boolean;
|
|
139
312
|
slug?: string;
|
|
140
313
|
/**
|
|
141
314
|
* Field matched against the resolved scope when looking up a scope's goals. Point it at
|
|
142
315
|
* a tenant plugin's field (e.g. 'tenant') when that plugin manages scoping.
|
|
143
316
|
*/
|
|
144
317
|
scopeField?: string;
|
|
145
|
-
|
|
318
|
+
/**
|
|
319
|
+
* Replaces one of the collection's own fields, each handed the plugin's default; applied before
|
|
320
|
+
* `overrides`. A `slug` replacement must keep a field named `slug` or the boot fails.
|
|
321
|
+
*/
|
|
322
|
+
fields?: GoalCollectionFieldOverrides;
|
|
323
|
+
/**
|
|
324
|
+
* Reshapes the whole config last. It may not rename the collection (`slug` does) nor turn off
|
|
325
|
+
* its timestamps, which every instance notices a saved document by: the boot refuses both.
|
|
326
|
+
*/
|
|
327
|
+
overrides?: CollectionOverrides;
|
|
146
328
|
access?: Partial<CollectionConfig['access']>;
|
|
147
329
|
};
|
|
148
330
|
/** Goals as config, plus the opt-in collection editors manage their own goals through. */
|
|
149
331
|
type AnalyticsGoalsOptions = {
|
|
150
332
|
defaults?: Goal[]; /** Opt-in admin collection whose goals merge over `defaults`, by slug, per scope. */
|
|
151
333
|
collection?: boolean | AnalyticsGoalsCollectionOptions;
|
|
334
|
+
/**
|
|
335
|
+
* The built-in `purchase` goal sales book against, on unless a configured goal claims that slug.
|
|
336
|
+
* `false` removes it, for an install that never sells.
|
|
337
|
+
*/
|
|
338
|
+
purchase?: boolean;
|
|
339
|
+
};
|
|
340
|
+
/**
|
|
341
|
+
* The website addresses where the scope's tracker runs, one per site, each an `http(s)` origin with
|
|
342
|
+
* an optional path. May be async; scope is null on an unscoped install.
|
|
343
|
+
*/
|
|
344
|
+
type ExclusionSitesResolver = (args: {
|
|
345
|
+
req: PayloadRequest;
|
|
346
|
+
scope: string | null;
|
|
347
|
+
}) => string[] | Promise<string[]>;
|
|
348
|
+
/** The signed link staff open to leave their own browser out of the numbers. */
|
|
349
|
+
type AnalyticsExclusionOptions = {
|
|
350
|
+
/**
|
|
351
|
+
* The query parameter the tracker reads. Default `analytics_exclude`. Letters, digits, `.`,
|
|
352
|
+
* `_`, `~` and `-`, at most 64 of them.
|
|
353
|
+
*/
|
|
354
|
+
param?: string;
|
|
355
|
+
/**
|
|
356
|
+
* Website addresses where the tracker runs, one per site, for the view to link to: a list, or
|
|
357
|
+
* a per-scope function (async allowed). Unset, the view hands out only the query to append.
|
|
358
|
+
*/
|
|
359
|
+
sites?: string[] | ExclusionSitesResolver;
|
|
152
360
|
};
|
|
153
361
|
type AnalyticsCaptureOptions = {
|
|
154
362
|
/**
|
|
155
|
-
* Which
|
|
156
|
-
*
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
*
|
|
161
|
-
*
|
|
162
|
-
*
|
|
363
|
+
* Which capture slots wait for the host's consent manager. Required whenever a slot can fill:
|
|
364
|
+
* whether tracking needs consent is the operator's call, so there is no default.
|
|
365
|
+
*/
|
|
366
|
+
gate?: CaptureGate;
|
|
367
|
+
/**
|
|
368
|
+
* What a slot `gate` holds does before an answer and after a refusal. Default `'cookieless'`:
|
|
369
|
+
* count without storing anything on the device, at the level each adapter declares (GA4's is
|
|
370
|
+
* `'off'`). `'off'` sends nothing until consent and nothing after a refusal. An adapter's own
|
|
371
|
+
* `withoutConsent` beats this for its slot; a slot the gate does not hold runs in full.
|
|
372
|
+
*/
|
|
373
|
+
withoutConsent?: WithoutConsentOption;
|
|
374
|
+
/**
|
|
375
|
+
* Exact origins of other sites (`https://shop.example.com`, no path or wildcard) whose pages may
|
|
376
|
+
* send to ingest and the capture proxy. Unset, only the site and its subdomains can.
|
|
377
|
+
*/
|
|
378
|
+
allowedOrigins?: string[];
|
|
379
|
+
/**
|
|
380
|
+
* The signed link staff open to leave their browser out of the numbers. Off by default; `true`
|
|
381
|
+
* turns it on as `analytics_exclude`, an object renames it through `param`.
|
|
382
|
+
*/
|
|
383
|
+
exclusion?: boolean | AnalyticsExclusionOptions;
|
|
384
|
+
/**
|
|
385
|
+
* Which adapter fills each slot (`global`: `platformAdapter` or the only adapter; `tenant`: the
|
|
386
|
+
* scope's default). `false` leaves a slot empty: no proxy mount, no tracker entry.
|
|
163
387
|
*/
|
|
164
388
|
slots?: {
|
|
165
389
|
global?: CaptureSlotOption;
|
|
166
390
|
tenant?: CaptureSlotOption;
|
|
167
391
|
};
|
|
168
392
|
/**
|
|
169
|
-
* Mount each slot's snippet points at.
|
|
170
|
-
*
|
|
171
|
-
* rewrites instead, passing the same path `captureRewrites` was mounted at.
|
|
393
|
+
* Mount each slot's snippet points at. Default: the runtime proxy endpoint; set it to a
|
|
394
|
+
* `captureRoute` handler's path, without the Next `basePath`, which the tracker config adds.
|
|
172
395
|
*/
|
|
173
396
|
paths?: {
|
|
174
397
|
global?: string;
|
|
175
398
|
tenant?: string;
|
|
176
|
-
}; /**
|
|
177
|
-
|
|
178
|
-
|
|
399
|
+
}; /** Browser auto-capture listeners, all on by default except `scrollDepth`. */
|
|
400
|
+
autoCapture?: AutoCaptureOptions;
|
|
401
|
+
/**
|
|
402
|
+
* Pages the tracker leaves uncounted, each on unless false: `automation` (`navigator.webdriver`;
|
|
403
|
+
* turn it off for e2e suites asserting on hits) and `previews` (draft mode, live preview).
|
|
404
|
+
*/
|
|
405
|
+
skip?: {
|
|
406
|
+
automation?: boolean;
|
|
407
|
+
previews?: boolean;
|
|
408
|
+
}; /** Limits for the public runtime capture proxy, separate from the read-path `cache`. */
|
|
179
409
|
proxy?: {
|
|
180
410
|
/**
|
|
181
411
|
* Deadline for the upstream response headers, in ms. Default 10000. The body
|
|
@@ -198,52 +428,208 @@ type AnalyticsViewOptions = {
|
|
|
198
428
|
* falls back to `en`. Unset, the plugin's own translated label applies.
|
|
199
429
|
*/
|
|
200
430
|
navLabel?: string | Record<string, string>;
|
|
431
|
+
/**
|
|
432
|
+
* Whether the view adds its link to the admin sidebar. Default true; false mounts the view
|
|
433
|
+
* without one, for a host that links it from its own navigation.
|
|
434
|
+
*/
|
|
435
|
+
navLink?: boolean;
|
|
436
|
+
/**
|
|
437
|
+
* A client component replacing the view's body under the same server shell, given
|
|
438
|
+
* `AnalyticsViewClientProps`; compose it from the sections `@10x-media/analytics/client` exports.
|
|
439
|
+
*
|
|
440
|
+
* @beta
|
|
441
|
+
*/
|
|
442
|
+
Component?: AnalyticsComponent;
|
|
443
|
+
};
|
|
444
|
+
/**
|
|
445
|
+
* A component a host puts in one of the plugin's places, as Payload takes one: an import-map path
|
|
446
|
+
* such as `'/components/Flag#Flag'`, or the object form with its export and props.
|
|
447
|
+
*
|
|
448
|
+
* @beta
|
|
449
|
+
*/
|
|
450
|
+
type AnalyticsComponent = string | RawPayloadComponent;
|
|
451
|
+
/**
|
|
452
|
+
* How a host changes one built-in dashboard widget.
|
|
453
|
+
*
|
|
454
|
+
* @beta
|
|
455
|
+
*/
|
|
456
|
+
interface AnalyticsWidgetOverride {
|
|
457
|
+
/**
|
|
458
|
+
* Rendered in place of the plugin's own component. A server component receives the full widget
|
|
459
|
+
* props, a client component its `clientProps` alone.
|
|
460
|
+
*/
|
|
461
|
+
Component?: AnalyticsComponent;
|
|
462
|
+
/** The widget's name in the dashboard's widget list. */
|
|
463
|
+
label?: Widget['label'];
|
|
464
|
+
/**
|
|
465
|
+
* The widget's settings, given the plugin's own fields as `defaultFields`, the shape Payload's
|
|
466
|
+
* form builder and search plugins take; what it returns is the form.
|
|
467
|
+
*/
|
|
468
|
+
fields?: (args: {
|
|
469
|
+
defaultFields: Field[];
|
|
470
|
+
}) => Field[];
|
|
471
|
+
}
|
|
472
|
+
/** @beta */
|
|
473
|
+
type AnalyticsWidgetOverrides = Partial<Record<BuiltInWidgetSlug, AnalyticsWidgetOverride>>;
|
|
474
|
+
/** @beta */
|
|
475
|
+
interface AnalyticsWidgetsOptions {
|
|
476
|
+
disabled?: string[];
|
|
477
|
+
register?: CustomWidgetDef[];
|
|
478
|
+
/**
|
|
479
|
+
* Marks each widget's free-text Title field `localized`. Default off; takes effect only when the
|
|
480
|
+
* Payload config enables localization.
|
|
481
|
+
*/
|
|
482
|
+
localizeText?: boolean;
|
|
483
|
+
/**
|
|
484
|
+
* Period-over-period comparison on the metric and trend widgets. Default on, except for a source
|
|
485
|
+
* whose adapter sets `capabilities.comparison` false; `false` skips the second read.
|
|
486
|
+
*/
|
|
487
|
+
comparison?: boolean;
|
|
488
|
+
/** Built-in widgets changed by slug: their component, their name, their settings. */
|
|
489
|
+
overrides?: AnalyticsWidgetOverrides;
|
|
490
|
+
}
|
|
491
|
+
/**
|
|
492
|
+
* `countryFlags` with a flag of the host's own.
|
|
493
|
+
*
|
|
494
|
+
* @beta
|
|
495
|
+
*/
|
|
496
|
+
interface AnalyticsCountryFlags {
|
|
497
|
+
/**
|
|
498
|
+
* A client component drawing one flag from `{ code }`, an ISO 3166-1 alpha-2 code in capitals.
|
|
499
|
+
* Registered through `admin.dependencies`, so `payload generate:importmap` picks it up.
|
|
500
|
+
*/
|
|
501
|
+
Component: AnalyticsComponent;
|
|
502
|
+
}
|
|
503
|
+
/** The collection the sync job persists daily metrics into: `slug` defaults to `analytics-daily`. */
|
|
504
|
+
type AnalyticsSyncCollectionOptions = AnalyticsCollectionOptions & {
|
|
505
|
+
/** Keeps the collection out of the admin nav. Default true. */hidden?: boolean;
|
|
506
|
+
};
|
|
507
|
+
/** The read cache's collection: `slug` defaults to `analytics-cache`. */
|
|
508
|
+
type AnalyticsCacheCollectionOptions = AnalyticsCollectionOptions;
|
|
509
|
+
/** What `analytics-sync` copies; when it runs is `jobs.tasks.sync`. */
|
|
510
|
+
type AnalyticsSyncOptions = {
|
|
511
|
+
/** Days each run reads back, today counted. Default 3. */lookbackDays?: number;
|
|
512
|
+
/**
|
|
513
|
+
* The sources it copies: a config adapter's id, or a provider type for every source built from
|
|
514
|
+
* provider documents of that type. Default every vendor source.
|
|
515
|
+
*/
|
|
516
|
+
adapters?: string[];
|
|
517
|
+
collection?: AnalyticsSyncCollectionOptions;
|
|
518
|
+
};
|
|
519
|
+
/** How much reads may ask of their sources at once (`cache.concurrency`). */
|
|
520
|
+
type AnalyticsConcurrencyOptions = {
|
|
521
|
+
/** Requests in flight across every vendor source of one instance. Default 16. */global?: number; /** Requests in flight per vendor source that declares no `rateLimit.maxConcurrent`. Default 4. */
|
|
522
|
+
perSource?: number; /** Reads with nothing cached one scope may have waiting on its sources. Default 8. */
|
|
523
|
+
perScope?: number;
|
|
524
|
+
};
|
|
525
|
+
/** How reads are cached, how long they wait for their sources, and which are kept warm. */
|
|
526
|
+
type AnalyticsCacheOptions = {
|
|
527
|
+
/**
|
|
528
|
+
* Seconds an answer stays fresh; unset, each adapter's `recommendedTtl` applies. A native read
|
|
529
|
+
* whose window reaches into today stays fresh 10 seconds at most whatever this says.
|
|
530
|
+
*/
|
|
531
|
+
ttl?: {
|
|
532
|
+
aggregate?: number;
|
|
533
|
+
realtime?: number;
|
|
534
|
+
};
|
|
535
|
+
/**
|
|
536
|
+
* Keeps recently asked reads warm: `analytics-warm` rereads each shortly before its cached answer
|
|
537
|
+
* expires. Default off; `true` uses the defaults. Scheduled by `jobs.tasks.warm`.
|
|
538
|
+
*/
|
|
539
|
+
warm?: boolean | AnalyticsWarmOptions;
|
|
540
|
+
/**
|
|
541
|
+
* How long a read waits for its source, in ms, retries included. Default 15000. Only a read with
|
|
542
|
+
* nothing cached (and sync) waits; others answer an expired entry at once.
|
|
543
|
+
*/
|
|
544
|
+
timeoutMs?: number;
|
|
545
|
+
/**
|
|
546
|
+
* How much reads may ask of their sources at once; past `perScope` the query endpoint answers
|
|
547
|
+
* 429. Native reads have a lane of their own outside these: 8, or on Postgres a third of
|
|
548
|
+
* `pool.max`, between 1 and 8.
|
|
549
|
+
*/
|
|
550
|
+
concurrency?: AnalyticsConcurrencyOptions;
|
|
551
|
+
/**
|
|
552
|
+
* Where reads are cached across requests and instances. Default: the `analytics-cache`
|
|
553
|
+
* collection; a self-expiring store (Redis) replaces it. Live counts stay in memory.
|
|
554
|
+
*/
|
|
555
|
+
store?: CacheStore; /** The `analytics-cache` collection of the default store; refused beside `store`. */
|
|
556
|
+
collection?: AnalyticsCacheCollectionOptions;
|
|
557
|
+
};
|
|
558
|
+
/** Hooks into what the plugin does. */
|
|
559
|
+
type AnalyticsHooksOptions = {
|
|
560
|
+
/**
|
|
561
|
+
* Runs once for every read answered to a reader, after it is cached, to observe it or answer
|
|
562
|
+
* that one read differently. See {@link AfterReadHook} for the contract.
|
|
563
|
+
*/
|
|
564
|
+
afterRead?: AfterReadHook;
|
|
565
|
+
};
|
|
566
|
+
/** Which reads `analytics-warm` keeps warm; when it runs is `jobs.tasks.warm`. */
|
|
567
|
+
type AnalyticsWarmOptions = {
|
|
568
|
+
/** Reads asked for in this many hours count as recent. Default 24. */windowHours?: number; /** The most reads one run refreshes, most recently read first. Default 200. */
|
|
569
|
+
maxReads?: number;
|
|
570
|
+
};
|
|
571
|
+
/** Where the plugin's endpoints answer. */
|
|
572
|
+
type AnalyticsRoutesOptions = {
|
|
573
|
+
/**
|
|
574
|
+
* The path every plugin endpoint hangs off, under `routes.api`. Default `/_x`; the boot fails
|
|
575
|
+
* when a collection slug is its first segment, which would swallow those requests.
|
|
576
|
+
*/
|
|
577
|
+
base?: RouteBase;
|
|
201
578
|
};
|
|
202
579
|
type AnalyticsPluginOptions = {
|
|
580
|
+
/**
|
|
581
|
+
* Switches the plugin off but keeps its schema (collections, fields, indexes, task slugs), so
|
|
582
|
+
* nothing is dropped. No endpoint, view, widget or task work runs; options are still checked.
|
|
583
|
+
*/
|
|
203
584
|
disabled?: boolean;
|
|
204
585
|
/**
|
|
205
|
-
* Per-locale overrides for
|
|
206
|
-
*
|
|
207
|
-
* the built-in locales key-by-key; locales the plugin does not ship are added
|
|
208
|
-
* whole. App-level `i18n.translations` still wins over both.
|
|
586
|
+
* Per-locale overrides for the plugin's UI strings, keyed by `@10x-media/analytics/i18n` keys.
|
|
587
|
+
* They win per key over built-ins; app `i18n.translations` wins over both.
|
|
209
588
|
*/
|
|
210
589
|
translations?: TranslationsOption;
|
|
211
|
-
adapters
|
|
590
|
+
adapters: AnalyticsAdapter[];
|
|
212
591
|
defaultAdapter?: string;
|
|
213
|
-
scopeResolver?: ScopeResolver;
|
|
214
592
|
/**
|
|
215
|
-
*
|
|
216
|
-
*
|
|
217
|
-
|
|
593
|
+
* Id of one config adapter shared by every scope (the platform's own analytics). Reading a tenant
|
|
594
|
+
* through it needs `access.crossScope.unscopedSource` unless it supports scoped queries.
|
|
595
|
+
*/
|
|
596
|
+
platformAdapter?: string; /** Tenancy: how a request maps to its scope. Unset, the whole install is one scope. */
|
|
597
|
+
scope?: AnalyticsScopeOptions;
|
|
598
|
+
/**
|
|
599
|
+
* Per shared config adapter, keyed by its id: which tenant users besides platform staff
|
|
600
|
+
* (`access.crossScope.unscopedSource`) read their own tenant through it. Scoped installs only.
|
|
601
|
+
*/
|
|
602
|
+
sources?: Record<string, AnalyticsSourceOptions>;
|
|
603
|
+
/**
|
|
604
|
+
* A tenant scope's default source when none of its provider documents is flagged the default.
|
|
605
|
+
* Unset keeps the registry's own order. Scoped installs only.
|
|
218
606
|
*/
|
|
219
|
-
|
|
607
|
+
defaultSource?: DefaultSourceRule;
|
|
220
608
|
/**
|
|
221
|
-
* IANA
|
|
222
|
-
* native
|
|
223
|
-
* (the single-tenant / no-multi-tenancy case); a resolver derives it per request
|
|
224
|
-
* from the scope, user, or a selector. Native rollups bucket at ingest in the
|
|
225
|
-
* resolved timezone, so changing it does not re-bucket existing history.
|
|
609
|
+
* IANA timezone days are cut in. Default UTC; a resolver answers per scope. After a change,
|
|
610
|
+
* native recounts in the new zone only days whose raw hits it still keeps.
|
|
226
611
|
*/
|
|
227
612
|
reportingTimezone?: string | TimezoneResolver;
|
|
228
|
-
providers?: ProvidersOptions;
|
|
229
613
|
/**
|
|
230
|
-
*
|
|
231
|
-
*
|
|
232
|
-
* registry like any config adapter; reads through it are scope-filtered only
|
|
233
|
-
* when the adapter supports scoped queries, otherwise they are cross-scope and
|
|
234
|
-
* require `access.platformRead`.
|
|
614
|
+
* Money as a capability. `false` or unset measures none; `true` measures it with the
|
|
615
|
+
* defaults; an object turns it on and says in which currency, and how.
|
|
235
616
|
*/
|
|
236
|
-
|
|
237
|
-
access?: AnalyticsAccessOptions;
|
|
617
|
+
revenue?: boolean | AnalyticsRevenueOptions;
|
|
238
618
|
/**
|
|
239
|
-
*
|
|
240
|
-
*
|
|
619
|
+
* How many proxies to trust, counted from the right of `x-forwarded-for`, when reading a client
|
|
620
|
+
* address. Unset keeps the leftmost entry, which the client controls. Not with `trustedPlatform`.
|
|
241
621
|
*/
|
|
242
|
-
|
|
622
|
+
trustedProxyHops?: number;
|
|
623
|
+
/**
|
|
624
|
+
* Platform (`'vercel'` or `'cloudflare'`) whose edge headers carry the visitor's address and
|
|
625
|
+
* location. Set it only when every request passes through it, or the headers can be forged.
|
|
626
|
+
*/
|
|
627
|
+
trustedPlatform?: TrustedPlatform;
|
|
628
|
+
access?: AnalyticsAccessOptions;
|
|
243
629
|
capture?: AnalyticsCaptureOptions;
|
|
244
630
|
/**
|
|
245
|
-
* Conversion goals the tracker and
|
|
246
|
-
*
|
|
631
|
+
* Conversion goals the tracker and native ingest match events against: a list, or `{ defaults,
|
|
632
|
+
* collection, purchase }`. A goal's name never reaches the browser.
|
|
247
633
|
*/
|
|
248
634
|
goals?: Goal[] | AnalyticsGoalsOptions;
|
|
249
635
|
/**
|
|
@@ -251,46 +637,44 @@ type AnalyticsPluginOptions = {
|
|
|
251
637
|
* augmented, each slug's resolvers receive that collection's typed document.
|
|
252
638
|
*/
|
|
253
639
|
collections?: { [TSlug in CollectionSlug]?: AnalyticsBinding<TSlug> };
|
|
254
|
-
|
|
255
|
-
ttl?: {
|
|
256
|
-
aggregate?: number;
|
|
257
|
-
realtime?: number;
|
|
258
|
-
};
|
|
259
|
-
warm?: boolean | {
|
|
260
|
-
cron?: string;
|
|
261
|
-
}; /** Per-read provider timeout in ms, spanning retries and limiter waits. Default 15000. */
|
|
262
|
-
timeoutMs?: number;
|
|
263
|
-
};
|
|
264
|
-
widgets?: boolean | {
|
|
265
|
-
disabled?: string[];
|
|
266
|
-
register?: CustomWidgetDef[];
|
|
267
|
-
/**
|
|
268
|
-
* Marks the free-text widget config fields (each widget's Title) as
|
|
269
|
-
* `localized`. Off by default; takes effect only when the Payload config
|
|
270
|
-
* enables localization (Payload strips the flag otherwise).
|
|
271
|
-
*/
|
|
272
|
-
localizeText?: boolean;
|
|
273
|
-
/**
|
|
274
|
-
* Period-over-period comparison on the metric and trend widgets. On by
|
|
275
|
-
* default for adapters that declare `capabilities.comparison`; set false
|
|
276
|
-
* to skip the second (previous-window) read entirely.
|
|
277
|
-
*/
|
|
278
|
-
comparison?: boolean;
|
|
279
|
-
};
|
|
640
|
+
providers?: ProvidersOptions;
|
|
280
641
|
/**
|
|
281
|
-
*
|
|
282
|
-
*
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
642
|
+
* The analytics admin view and its nav link, on by default. `false` registers neither;
|
|
643
|
+
* the read endpoints stay mounted either way, so a custom surface keeps working.
|
|
644
|
+
*/
|
|
645
|
+
view?: false | AnalyticsViewOptions;
|
|
646
|
+
/**
|
|
647
|
+
* Dashboard widgets, on by default. Payload's dashboard is experimental, so this option is too.
|
|
648
|
+
*
|
|
649
|
+
* @beta
|
|
650
|
+
*/
|
|
651
|
+
widgets?: boolean | AnalyticsWidgetsOptions;
|
|
652
|
+
/**
|
|
653
|
+
* Flag beside country names in the view, widgets and document panel. Default on, served by the
|
|
654
|
+
* plugin's cached route; `false` shows none, `{ Component }` draws the host's own.
|
|
655
|
+
*
|
|
656
|
+
* @beta
|
|
657
|
+
*/
|
|
658
|
+
countryFlags?: boolean | AnalyticsCountryFlags;
|
|
659
|
+
cache?: AnalyticsCacheOptions;
|
|
660
|
+
/**
|
|
661
|
+
* Opt-in sync tier: `analytics-sync` copies each vendor source's daily metrics into a queryable
|
|
662
|
+
* collection, every six hours unless `jobs.tasks.sync` says otherwise.
|
|
663
|
+
*/
|
|
664
|
+
sync?: boolean | AnalyticsSyncOptions;
|
|
665
|
+
routes?: AnalyticsRoutesOptions;
|
|
666
|
+
/**
|
|
667
|
+
* The plugin's tasks (maintain, sync, warm) on `jobs.queue`, scheduled by `jobs.tasks`. `false`
|
|
668
|
+
* registers none: reads and ingest then do native upkeep, and sync or warming is refused.
|
|
669
|
+
*/
|
|
670
|
+
jobs?: false | AnalyticsJobsOptions;
|
|
671
|
+
/**
|
|
672
|
+
* Optional packages handed in, which a standalone or serverless build then ships: GA4's
|
|
673
|
+
* `{ BetaAnalyticsDataClient }` and MaxMind's `{ open }`. A production boot warns about one missing.
|
|
674
|
+
*/
|
|
675
|
+
sdks?: AnalyticsSdks;
|
|
676
|
+
hooks?: AnalyticsHooksOptions;
|
|
293
677
|
};
|
|
294
678
|
//#endregion
|
|
295
|
-
export { AnalyticsAccessOptions, AnalyticsCaptureOptions, AnalyticsGoalsCollectionOptions, AnalyticsGoalsOptions, AnalyticsPluginOptions, AnalyticsReadAccess, AnalyticsViewAccess, AnalyticsViewOptions, AutoCaptureOptions,
|
|
679
|
+
export { AnalyticsAccessOptions, AnalyticsCacheCollectionOptions, AnalyticsCacheOptions, AnalyticsCaptureOptions, AnalyticsComponent, AnalyticsConcurrencyOptions, AnalyticsCountryFlags, AnalyticsCrossScopeOptions, AnalyticsExclusionOptions, AnalyticsGoalsCollectionOptions, AnalyticsGoalsOptions, AnalyticsHooksOptions, AnalyticsPluginOptions, AnalyticsReadAccess, AnalyticsRevenueOptions, AnalyticsRoutesOptions, AnalyticsScopeOptions, AnalyticsSyncCollectionOptions, AnalyticsSyncOptions, AnalyticsViewAccess, AnalyticsViewOptions, AnalyticsWarmOptions, AnalyticsWidgetOverride, AnalyticsWidgetOverrides, AnalyticsWidgetsOptions, AutoCaptureOptions, CaptureGate, CaptureGateArgs, CaptureSlotOption, CrossScopeAccess, CurrencyResolver, ExclusionSitesResolver, ItemCaptureOptions, ProviderHostsOptions, ProvidersCollectionOptions, ProvidersOptions, ProvidersResolve, ProvidersResolveArgs, ScopeCallSite, ScopeLabelResolver, ScopeListResolver, ScopeMemberAccess, ScopeResolver, TimezoneResolver, WithoutConsentArgs, WithoutConsentFunction, WithoutConsentOption };
|
|
296
680
|
//# sourceMappingURL=options.d.ts.map
|