import type * as Whop from "../../../../index.js"; /** * @example * {} */ export interface ReferredUsersPartnersRequest { /** The selected referring partner's user_ ID. Requires user_id=global; cannot be combined with earning_partner_username. */ earning_partner_id?: string; /** The selected referring partner's exact username. Requires user_id=global; cannot be combined with earning_partner_id. */ earning_partner_username?: string; /** List the users this business's team members referred, past members included, instead of the caller's own. Requires company:basic:read on that business, which every team member holds, and cannot be combined with user_id. The owner role reads every team member's referrals; anyone else reads only their own and those of the people under them in the org chart. earning_partner_id or earning_partner_username then narrows to one team member. */ referring_account_id?: string; /** Search referred users by name or username. In global mode, matches the beginning of usernames only. */ query?: string; /** When true, only referred users who brought at least one business onto Whop. */ has_businesses?: boolean; /** When true, only referred users with at least one business that has generated earnings. */ has_earning_businesses?: boolean; /** The field to sort by. created_at uses the user's signup date; earnings_usd uses the current primary referrer's cached total affiliate earnings from that user. */ order?: Whop.ReferredUsersPartnersRequestOrder; /** The direction to sort results. */ direction?: Whop.ReferredUsersPartnersRequestDirection; /** Number of results to return from the start of the range. */ first?: number; /** Return results after this cursor. Use `page_info.end_cursor` from the previous response to fetch the next page. */ after?: string; /** Number of results to return from the end of the range. */ last?: number; /** Return results before this cursor. Use `page_info.start_cursor` from the previous response to fetch the previous page. */ before?: string; }