feat: introduce more events into the analytics pipeline (#3156)
This commit is contained in:
@@ -5,8 +5,50 @@ export type HoppRequestEvent =
|
||||
}
|
||||
| { platform: "wss" | "sse" | "socketio" | "mqtt" }
|
||||
|
||||
export type AnalyticsEvent =
|
||||
| ({ type: "HOPP_REQUEST_RUN" } & HoppRequestEvent)
|
||||
| {
|
||||
type: "HOPP_CREATE_ENVIRONMENT"
|
||||
workspaceType: "personal" | "team"
|
||||
}
|
||||
| {
|
||||
type: "HOPP_CREATE_COLLECTION"
|
||||
platform: "rest" | "gql"
|
||||
isRootCollection: boolean
|
||||
workspaceType: "personal" | "team"
|
||||
}
|
||||
| { type: "HOPP_CREATE_TEAM" }
|
||||
| {
|
||||
type: "HOPP_SAVE_REQUEST"
|
||||
createdNow: boolean
|
||||
workspaceType: "personal" | "team"
|
||||
platform: "rest" | "gql"
|
||||
}
|
||||
| { type: "HOPP_SHORTCODE_CREATED" }
|
||||
| { type: "HOPP_SHORTCODE_RESOLVED" }
|
||||
| { type: "HOPP_REST_NEW_TAB_OPENED" }
|
||||
| {
|
||||
type: "HOPP_IMPORT_COLLECTION"
|
||||
importer: string
|
||||
workspaceType: "personal" | "team"
|
||||
platform: "rest" | "gql"
|
||||
}
|
||||
| {
|
||||
type: "HOPP_IMPORT_ENVIRONMENT"
|
||||
workspaceType: "personal" | "team"
|
||||
platform: "rest" | "gql"
|
||||
}
|
||||
| {
|
||||
type: "HOPP_EXPORT_COLLECTION"
|
||||
exporter: string
|
||||
platform: "rest" | "gql"
|
||||
}
|
||||
| { type: "HOPP_EXPORT_ENVIRONMENT"; platform: "rest" | "gql" }
|
||||
| { type: "HOPP_REST_CODEGEN_OPENED" }
|
||||
| { type: "HOPP_REST_IMPORT_CURL" }
|
||||
|
||||
export type AnalyticsPlatformDef = {
|
||||
initAnalytics: () => void
|
||||
logHoppRequestRunToAnalytics: (ev: HoppRequestEvent) => void
|
||||
logEvent: (ev: AnalyticsEvent) => void
|
||||
logPageView: (pagePath: string) => void
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user