import ProductInsightsSDK from "../core/base"; import { Events } from "../types"; class Member { constructor(private sdk: ProductInsightsSDK) {} // Backend will handle validation, no need to hold it here too :), backend has an enum of valid sources async trackAcquisition(source: string) { await this.sdk.sendEvent(Events.RECORD_MEMBER_ACQUISITION, { source }); } } export default Member;