@benshi.ai/js-sdk
Version:
Benshi SDK
34 lines (29 loc) • 821 B
text/typescript
import { injectEvent } from '../../core/injector'
import { ContentBlock } from '../Navigation/typings'
import { ProfileListProperties, ProfileProperties, SocialTypes } from './typings'
import SocialPropertiesTI from './typings-ti'
const moduleName = ContentBlock.Social
const logProfileEvent = (properties: ProfileProperties, sendNow = false) => {
injectEvent(
properties,
[SocialPropertiesTI],
SocialTypes.Profile,
moduleName,
'',
sendNow
)
}
const logProfileListEvent = (properties: ProfileListProperties, sendNow = false) => {
injectEvent(
properties,
[SocialPropertiesTI],
SocialTypes.ProfileList,
moduleName,
'',
sendNow
)
}
export default {
logProfileEvent,
logProfileListEvent
}