Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

Added project view interfaces

Blue Moused061b938d219
diff --git a/app/pages/Project/View/interfaces/traffic.tsx b/app/pages/Project/View/interfaces/traffic.tsx
index 7818cd5fa..6c2fcd0bd 100644
--- a/app/pages/Project/View/interfaces/traffic.tsx
+++ b/app/pages/Project/View/interfaces/traffic.tsx
@@ -4,6 +4,27 @@ export interface IFilter {
isExclusive: boolean
}
+export enum ProjectViewCustomEventMetaValueType {
+ STRING = 'string',
+ INTEGER = 'integer',
+ FLOAT = 'float',
+}
+
+export interface IProjectViewCustomEvent {
+ id: string
+ customEventName: string
+ metaKey: string
+ metaValue: string
+ metaValueType: ProjectViewCustomEventMetaValueType
+}
+
+export interface IProjectView {
+ id: string
+ name: string
+ filters?: IFilter[]
+ customEvents?: IProjectViewCustomEvent[]
+}
+
interface IParam {
name: string
count: number