we-insights-react
Version:
[we-insights] is a powerful utility library designed to streamline data collection processes for WeApp employees. It simplifies the process of gathering, storing, and managing data within WeApp projects, making it an invaluable tool for enhancing efficien
15 lines (12 loc) • 388 B
text/typescript
import { FeedbackMetadata, TrackEvent } from '../interfaces'
import weInsightsAPI from './WeInsightsAPI'
const sendFeedback = (feedback: FeedbackMetadata) => {
return weInsightsAPI.post('/user-feedback', feedback)
}
const sendTrackingEvent = (event: TrackEvent) => {
return weInsightsAPI.post('/event', event)
}
export default {
sendFeedback,
sendTrackingEvent,
}