congress-dot-gov - v0.4.3
    Preparing search index...

    Type Alias RelatedBill

    RelatedBill: {
        congress: number;
        latestAction: { actionDate: string; actionTime?: string; text: string };
        number: number;
        relationshipDetails: { identifiedBy: IdentifiedBy; type: string }[];
        title: string;
        type: BillType;
        url: string;
    }

    Zod schema for validating entities returned from the /bill/{congress}/{billType}/{billNumber}/relatedbills endpoint. Related bills to the bill or resolution, as assigned by CRS, the House, and the Senate. Read About Related Bills on Congress.gov.

    Type declaration

    • congress: number

      The congress during which a bill or resolution was introduced or submitted. View the field values list of Congresses on Congress.gov. Read more about Congresses on Congress.gov.

    • latestAction: { actionDate: string; actionTime?: string; text: string }

      Latest action taken on the bill or resolution.

      • actionDate: string

        The date of the latest action taken on the bill or resolution. (e.g. 2021-05-19)

      • OptionalactionTime?: string

        The time of the latest action taken on the bill or resolution. Certain actions taken by the House contain this element.

      • text: string

        The text of the latest action taken on the bill or resolution. (e.g. Read twice and referred to the Committee on Homeland Security and Governmental Affairs.)

    • number: number

      The assigned bill or resolution number for the related bill. (e.g. 1720)

    • relationshipDetails: { identifiedBy: IdentifiedBy; type: string }[]

      The details on the type of relationship added by the House, Senate, or CRS

    • title: string

      The display title for the related bill or resolution on Congress.gov. (e.g. Postal Service Reform Act of 2021)

    • type: BillType

      The type of related bill or resolution. Possible values are "HR", "S", "HJRES", "SJRES", "HCONRES", "SCONRES", "HRES", and "SRES".

    • url: string

      A referrer URL to the bill item in the API. (e.g. https://api.congress.gov/v3/bill/117/s/1720)