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

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    apiKey: string
    baseUrl: string
    endpoint: string

    Methods

    • Returns detailed information for a specified nomination.

      Parameters

      • congress: number

        The congress of the nomination

      • nominationNumber: string

        The nomination number

      • params: { format?: Format } = {}

        {BaseParams} - Accepts format parameter

      Returns Promise<
          {
              nomination: {
                  actions: { count: number; url: string };
                  citation: string;
                  committees: { count: number; url: string };
                  congress: number;
                  description: string;
                  isList?: boolean;
                  latestAction: { actionDate: string; text: string };
                  nominationType?: { isCivilian?: boolean; isMilitary?: boolean };
                  nominees: {
                      introText?: string;
                      nomineeCount: number;
                      ordinal: number;
                      organization: string;
                      positionTitle: string;
                      url: string;
                  }[];
                  number: number;
                  partNumber: string;
                  receivedDate: string;
                  updateDate: string;
              };
          } & { rateLimit: RateLimitInfo },
      >

      Detailed information for the specified nomination

    • Returns the list of actions on a specified nomination.

      Parameters

      • congress: number

        The congress of the nomination

      • nominationNumber: string

        The nomination number

      • params: { format?: Format; limit?: number; offset?: number } = {}

        {PaginationParams} - Accepts pagination and format parameters

      Returns Promise<
          {
              actions: {
                  actionCode: string;
                  actionDate: string;
                  committees?: { name: string; systemCode: string; url: string }[];
                  text: string;
                  type: string;
              }[];
          } & { rateLimit: RateLimitInfo },
      >

      The list of actions for the specified nomination

    • Returns the list of committees associated with a specified nomination.

      Parameters

      • congress: number

        The congress of the nomination

      • nominationNumber: string

        The nomination number

      • params: { format?: Format; limit?: number; offset?: number } = {}

        {PaginationParams} - Accepts pagination and format parameters

      Returns Promise<
          {
              committees: {
                  activities: { date: string; name: string }[];
                  chamber: "Senate";
                  name: string;
                  systemCode: string;
                  type: string;
                  url: string;
              }[];
          } & { rateLimit: RateLimitInfo },
      >

      The list of committees for the specified nomination

    • Returns the list of printed hearings associated with a specified nomination.

      Parameters

      • congress: number

        The congress of the nomination

      • nominationNumber: string

        The nomination number

      • params: { format?: Format; limit?: number; offset?: number } = {}

        {PaginationParams} - Accepts pagination and format parameters

      Returns Promise<
          {
              hearings: {
                  chamber: "Senate";
                  citation: string;
                  date: string;
                  jacketNumber: number;
                  number: number;
              }[];
          } & { rateLimit: RateLimitInfo },
      >

      The list of hearings for the specified nomination

    • Returns a list of nominations sorted by date received from the President.

      Parameters

      • params: { format?: Format; limit?: number; offset?: number } & DateFilterParams = {}

        {PaginationParams & DateFilterParams} - Pagination, date range filter and format parameters

      Returns Promise<
          {
              nominations: {
                  citation: string;
                  congress: number;
                  description: string;
                  latestAction: { actionDate: string; text: string };
                  nominationType?: { isCivilian?: boolean; isMilitary?: boolean };
                  number: number;
                  organization: string;
                  partNumber: string;
                  receivedDate: string;
                  updateDate: string;
                  url: string;
              }[];
          } & { rateLimit: RateLimitInfo },
      >

      A list of nominations

    • Returns a list of nominations filtered by the specified congress and sorted by date received from the President.

      Parameters

      • congress: number

        The congress to filter by

      • params: { format?: Format; limit?: number; offset?: number } & DateFilterParams = {}

        {PaginationParams & DateFilterParams} - Pagination, date range filter and format parameters

      Returns Promise<
          {
              nominations: {
                  actions: { count: number; url: string };
                  citation: string;
                  committees: { count: number; url: string };
                  congress: number;
                  description: string;
                  isList?: boolean;
                  latestAction: { actionDate: string; text: string };
                  nominationType?: { isCivilian?: boolean; isMilitary?: boolean };
                  nominees: {
                      introText?: string;
                      nomineeCount: number;
                      ordinal: number;
                      organization: string;
                      positionTitle: string;
                      url: string;
                  }[];
                  number: number;
                  partNumber: string;
                  receivedDate: string;
                  updateDate: string;
              }[];
          } & { rateLimit: RateLimitInfo },
      >

      A list of nominations for the specified congress

    • Returns the list nominees for a position within the nomination.

      Parameters

      • congress: number

        The congress of the nomination

      • nominationNumber: string

        The nomination number

      • ordinal: string

        The ordinal of the nominee

      • params: { format?: Format; limit?: number; offset?: number } = {}

        {PaginationParams} - Accepts pagination and format parameters

      Returns Promise<
          {
              nominees: {
                  firstName: string;
                  lastName: string;
                  middleName: string;
                  ordinal: number;
                  state: StateCode;
              }[];
          } & { rateLimit: RateLimitInfo },
      >

      The list of nominees for the specified position