@bugbug-io/sdk
    Preparing search index...

    Class ProjectsModule

    Projects module — lists the projects the current token can access.

    Index

    Constructors

    Methods

    Constructors

    • Parameters

      • client: BugBugApiClient

      Returns ProjectsModule

    Methods

    • List projects accessible with the current token, one page at a time.

      Parameters

      • options: { cursor?: string; pageSize?: number; query?: string } & RequestOptions = {}
        • Optionalcursor?: string

          Opaque cursor returned as nextToken by the previous page.

        • OptionalpageSize?: number

          Items per page.

        • Optionalquery?: string

          Case-insensitive name filter.

      Returns Promise<ProjectsListResponse>

      Paginated ProjectsListResponse.

    • Fetch every project across all pages.

      Internally follows nextToken until the API signals exhaustion.

      Parameters

      Returns Promise<
          {
              id: string;
              name: string
              | null;
              homepageUrl: string | null;
              organizationId: string | null;
              organizationName: string;
          }[],
      >

    • Find a project by its id across all pages.

      Parameters

      Returns Promise<
          | {
              id: string;
              name: string
              | null;
              homepageUrl: string | null;
              organizationId: string | null;
              organizationName: string;
          }
          | null,
      >

      The matching project, or null when no project has that id.