chore: merge hoppscotch/staging into self-hosted/main
This commit is contained in:
12
packages/hoppscotch-common/src/platform/analytics.ts
Normal file
12
packages/hoppscotch-common/src/platform/analytics.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
export type HoppRequestEvent =
|
||||
| {
|
||||
platform: "rest" | "graphql-query" | "graphql-schema"
|
||||
strategy: "normal" | "proxy" | "extension"
|
||||
}
|
||||
| { platform: "wss" | "sse" | "socketio" | "mqtt" }
|
||||
|
||||
export type AnalyticsPlatformDef = {
|
||||
initAnalytics: () => void
|
||||
logHoppRequestRunToAnalytics: (ev: HoppRequestEvent) => void
|
||||
logPageView: (pagePath: string) => void
|
||||
}
|
||||
@@ -5,10 +5,12 @@ import { CollectionsPlatformDef } from "./collections"
|
||||
import { SettingsPlatformDef } from "./settings"
|
||||
import { HistoryPlatformDef } from "./history"
|
||||
import { TabStatePlatformDef } from "./tab"
|
||||
import { AnalyticsPlatformDef } from "./analytics"
|
||||
|
||||
export type PlatformDef = {
|
||||
ui?: UIPlatformDef
|
||||
auth: AuthPlatformDef
|
||||
analytics?: AnalyticsPlatformDef
|
||||
sync: {
|
||||
environments: EnvironmentsPlatformDef
|
||||
collections: CollectionsPlatformDef
|
||||
|
||||
Reference in New Issue
Block a user