@playlive/fundraiser-data
    Preparing search index...

    Function fetchTiltifyUserAndTeamCampaigns

    • Fetch the union of every personal campaign and every team campaign a Tiltify user participates in (by user ID).

      Backs the "pick which of your campaigns to overlay against" flow in the landing app — which needs both personal and team rows in the same dropdown. Thin wrapper around import("@playlive/tiltify-core").Tiltify.GetUserAndTeamCampaigns. Same nullish-guard + error-swallow semantics as fetchTiltifyUserCampaigns.

      Parameters

      • params: { userId: string | null | undefined }

        { userId } — the user's Tiltify UUID (not the slug).

      Returns Promise<(TiltifyTeamCampaign | TiltifyPersonalCampaign)[]>

      Personal + team campaigns interleaved; [] on missing input or on network failure.

      const campaigns = await fetchTiltifyUserAndTeamCampaigns({ userId: "abc-123" });
      // Discriminate at the call site if you need to split them again:
      const personal = campaigns.filter((c) => c.type !== "team");