chore: merge hoppscotch/staging into self-hosted/main

This commit is contained in:
Andrew Bastin
2023-04-04 02:17:29 +05:30
19 changed files with 383 additions and 186 deletions

View 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
}

View File

@@ -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