Seed type-only AnalyticsProviders for Env dependency

This commit is contained in:
2026-04-14 22:02:56 +03:00
parent 9acccffe8c
commit 8a8075972d
+27
View File
@@ -0,0 +1,27 @@
// Ownership: src/observability/analytics/ is owned by Phase 1 sub-plan 1G-analytics.
// This type-only seed exists because Phase 1A-1's Env depends on AnalyticsProviders.
// Sub-plan 1G-analytics extends this file with the facade and adapter implementations.
export interface AnalyticsProviders {
metrica: boolean;
ctm: boolean;
variocube: boolean;
dynatrace: boolean;
}
export interface AnalyticsProps {
[key: string]: unknown;
}
export interface AnalyticsEvent {
kind: "track" | "page";
name: string;
props: AnalyticsProps;
provider: "metrica" | "ctm" | "variocube" | "dynatrace";
ts: string;
}
export interface Analytics {
track(event: string, props?: AnalyticsProps): void;
page(url: string, props?: AnalyticsProps): void;
}