@benshi.ai/js-sdk
Version:
Benshi SDK
84 lines (73 loc) • 1.43 kB
text/typescript
export interface LogIdentifyProperties {
email: string;
phone?: string;
geo?: string;
date_of_birth?: number;
gender?: string;
profession?: string;
push_token?: string;
}
export interface LogPageProperties {
url: string;
path: string;
host: string;
hash: string;
title: string;
}
export interface LogScrollProperties {
url: string;
start_position: number;
end_position: number;
duration: number;
target: string;
}
export interface LogLevelProperties {
type: string;
name: string;
level: number | string;
unit: string;
description: string;
}
export interface LogPurchaseProperties {
id: string | number;
type: string;
subtype: string;
name: string;
price: number;
currency: string;
address: string;
}
export interface LogPushNotificationProperties {
id: string | number;
type: string;
title: string;
content: string;
language: string;
}
export interface LogVideoProperties {
action: string;
action_time: number;
meta: {
id: string | number;
length: number;
description: string;
title: string;
}
}
export interface LogAudioProperties {
action: string;
action_time: number;
meta: {
id: string | number;
length: number;
description: string;
title: string;
}
}
export interface LogClickProperties {
action_type: string;
element_name: string;
}
export interface LogTrackProperties {
[key: string]: any
}