UNPKG

@bzr/bazaar

Version:

The Bazaar SDK. Conveniently use Bazaar with your app in the browser.

39 lines (38 loc) 980 B
import type { API } from "./raw"; /** * The class that encapsulates the organizations API * @internal */ export declare class OrganizationsAPI { private api; constructor(api: API); /** * Opens the org modal */ openModal(withId?: ((teamId: string) => void) | null, onClose?: (() => void) | null): void; /** * Lists organizations * @returns a list of teams user is part of */ list(): Promise<import("..").Org[]>; /** * Gets the organization info for a given ID or handle. * @param query - The ID or handle of the organization, requires one of the two. */ get(query?: { orgId?: string; handle?: string; }): Promise<import("..").Org>; /** * Teams */ teams: { /** * Lists teams * @returns a list of teams user is part of */ list: (query?: { type?: "user" | "org"; }) => Promise<import("..").Team[]>; }; }