import type * as Whop from "../index.js"; /** * An entry represents a user's signup for a waitlisted plan. */ export interface Entry { /** The datetime the entry was created. */ created_at: string | null; /** The list of responses collected from the user when submitting their waitlist entry. */ custom_field_responses: Entry.CustomFieldResponses.Item[] | null; /** The unique identifier for the entry. */ id: string; /** The waitlisted plan that this entry is a signup for. */ plan: Entry.Plan | null; /** The product associated with this entry's waitlisted plan. Null if the plan is not tied to a product. */ product: Entry.Product | null; /** The current status of the waitlist entry (e.g., drafted, pending, approved, denied). */ status: Whop.EntryStatus; /** The user who submitted this waitlist entry. */ user: Entry.User; } export declare namespace Entry { type CustomFieldResponses = CustomFieldResponses.Item[]; namespace CustomFieldResponses { /** * The response from a custom field on checkout */ interface Item { /** The response a user gave to the specific question or field. */ answer: string; /** The unique identifier for the custom field response. */ id: string; /** The question asked by the custom field */ question: string; } } /** * The waitlisted plan that this entry is a signup for. */ interface Plan { /** The unique identifier for the plan. */ id: string; } /** * The product associated with this entry's waitlisted plan. Null if the plan is not tied to a product. */ interface Product { /** The unique identifier for the product. */ id: string; /** The display name of the product shown to customers on the product page and in search results. */ title: string; } /** * The user who submitted this waitlist entry. */ interface User { /** The user's email address. Requires the member:email:read permission to access. Null if not authorized. */ email: string | null; /** The unique identifier for the user. */ id: string; /** The user's display name shown on their public profile. */ name: string | null; /** The user's unique username shown on their public profile. */ username: string; } }