import { ReferralProfile } from '../entities/referral-profile.entity'; export const REFERRAL_PROFILE_REPOSITORY = 'REFERRAL_PROFILE_REPOSITORY'; export interface IReferralProfileRepository { findByUserId(userId: string): Promise; findByCode(code: string): Promise; existsByCode(code: string): Promise; existsByUserId(userId: string): Promise; findDirectReferrals(referrerId: string, offset: number, limit: number): Promise<[ReferralProfile[], number]>; save(profile: ReferralProfile): Promise; }