UNPKG

@zencemarketing/web-sdk

Version:

ZenceMarketing Web SDK for push notifications, popups, and custom event tracking.

42 lines (41 loc) 969 B
export interface InitData { clientID: string; clientSecret: string; programCode: string; websiteUrl: string; } export interface SDKData { programcode: string; website_url: string; instance_type: string; redpanda_broker_ip: string; redpanda_incoming: string; redpanda_outgoing: string; redpanda_clicks_queue: string; show_web_pop: string; show_web_push: string; show_custom_event: string; isactive: boolean; configuration: object; opt_in_prompt: object; public_vapid_key: string; pushSubscribed: boolean; popSubscribed: boolean; userID: string; sub: object; token: string | null; } export interface SDKResponse { success: boolean; results: SDKData; error?: string; token: string; } export interface NotificationData { [key: string]: any; } export interface PopupData { show_pop_anywhere?: boolean; specific_urls?: string[]; [key: string]: any; }