Circle V2 API Docs
    Preparing search index...

    Class ProgramResolver

    Resolves which program was active at a given timestamp. End dates are derived from the next program's start date. The last program is treated as open-ended.

    Uses resolveISODate (rather than new Date(...)) so date-only strings like "2024-02-01" are interpreted consistently in the default facility timezone rather than the server's local TZ — without this, program-interval boundaries drift up to a day depending on where the server runs.

    Index

    Constructors

    • Parameters

      • programs: {
            logged_at: string | null;
            logged_by: string | null;
            program: string | null;
            start_date: string | null;
        }[]

      Returns ProgramResolver

    Methods

    • Parameters

      • timestamp: Date

      Returns ResolvedProgram | undefined