27 lines
536 B
TypeScript
27 lines
536 B
TypeScript
export type H5ExperienceKind = 'content' | 'result'
|
|
|
|
export interface H5ExperienceFallbackPayload {
|
|
title: string
|
|
body: string
|
|
motionClass: string
|
|
contentKey: string
|
|
once: boolean
|
|
priority: number
|
|
autoPopup: boolean
|
|
}
|
|
|
|
export interface H5ExperienceRequest {
|
|
kind: H5ExperienceKind
|
|
title: string
|
|
url: string
|
|
bridgeVersion: string
|
|
context: Record<string, unknown>
|
|
fallback: H5ExperienceFallbackPayload
|
|
}
|
|
|
|
export interface H5BridgeMessage {
|
|
action?: string
|
|
type?: string
|
|
payload?: Record<string, unknown>
|
|
}
|