1 interface GetReferralsProps {
6 export const getReferrals = (params?: GetReferralsProps) => ({
8 url: 'core/v4/referrals',
13 * Get current user referral status
15 export const getReferralsStatus = () => ({
17 url: 'core/v4/referrals/status',
20 interface SendEmailInvationProps {
23 export const sendEmailInvitation = ({ emails }: SendEmailInvationProps) => ({
25 url: 'core/v4/referrals',
26 data: { Recipients: emails },
29 interface ResendInvitationURLParams {
32 export const resendEmailInvitation = ({ id }: ResendInvitationURLParams) => ({
34 url: `core/v4/referrals/${id}`,
37 interface DeleteInvitationURLParams {
40 /** delete an invitation or outdated referral */
41 export const deleteInvitation = ({ id }: DeleteInvitationURLParams) => ({
43 url: `core/v4/referrals/${id}`,
46 export const checkReferrer = (identifier: string) => ({
48 url: `core/v4/referrals/identifiers/${identifier}`,