@playlive/tiltify-graphql
    Preparing search index...

    Interface TiltifyMilestone

    Single milestone entry as returned by the DefaultTemplateFactMilestones fragment on the get_default_template_fact GraphQL operation. Milestones are ordered by fundraising amount (ascending) upstream; active flags the current "next unhit" milestone so overlays can render a "Next goal" card without recomputing the threshold themselves.

    Fundraising events, campaigns, and causes all expose milestones through the same fact-scoped operation — pass whichever fact id you need (typically the FE fact id resolved via TiltifyGraphQL.getFactByVanityAndSlug).

    Distinct from @playlive/tiltify-core's REST TiltifyMilestone (which mirrors GET /api/public/campaigns/:id/milestones and carries additional fields: reached, updated_at, etc.). If you import both, alias one:

    import type { TiltifyMilestone as TiltifyGqlMilestone } from "@playlive/tiltify-graphql";
    import type { TiltifyMilestone as TiltifyRestMilestone } from "@playlive/tiltify-core";
    interface TiltifyMilestone {
        active: boolean;
        amount: TiltifyAmount;
        id: string;
        name: string;
    }
    Index
    active: boolean
    id: string
    name: string