UNPKG

emma-react-native-sdk

Version:

React Native EMMA SDK libs and examples

96 lines (95 loc) 2.24 kB
export declare enum SHOW_ON { BROWSER = "browser", IN_APP = "inapp" } export declare enum IN_APP_TYPE { NATIVE_AD = "nativeAd", ADBALL = "adball", BANNER = "banner", STARTVIEW = "startview", STRIP = "strip" } export declare enum PERMISSION_STATUS { GRANTED = 0, DENIED = 1, SHOULD_PERMISSION_RATIONALE = 2, UNSUPPORTED = 3 } export interface StartSessionParams { sessionKey: string; apiUrl?: string; queueTime?: number; isDebug?: boolean; customPowlinkDomains?: string[]; customShortPowlinkDomains?: string[]; trackScreenEvents?: boolean; skanAttribution?: boolean; skanCustomManagementAttribution?: boolean; } export interface StartPushParams { classToOpen: string; iconResource: string; color?: string; channelId?: string; channelName?: string; } export interface TrackEventParams { eventToken: string; eventAttributes?: Record<string, string | number>; } export interface TrackUserExtraInfoParams { userTags: Record<string, string>; } export interface LoginRegisterUserParams { userId: string; email?: string; } export interface StartOrderParams { orderId: string; totalPrice: number; customerId: string; currencyCode?: string; coupon?: string; extras?: Record<string, string>; } export interface AddProductParams { productId: string; productName: string; quantity: number; price: number; extras?: Record<string, string>; } export interface CancelOrderParams { orderId: string; } export interface InAppMessageParams { type: IN_APP_TYPE; templateId?: string; batch?: boolean; } export interface SetCustomerIdParams { customerId: string; } export interface SendInAppParams { type: IN_APP_TYPE; campaignId: number; } export interface NativeAd { id: number; templateId: string; times: number; tag: string; params: Record<string, string>; showOn: SHOW_ON; fields: Record<string, string>; } export interface OpenNativeAdParams { campaignId: number; showOn: SHOW_ON; cta: string; } export interface UpdateConversionValueSkad4 { conversionValue: number; coarseValue: string; lockWindow?: boolean; }