UNPKG

@atlaskit/profilecard

Version:

A React component to display a card with user information.

29 lines (28 loc) 1.74 kB
import type { FireEventType } from '@atlaskit/teams-app-internal-analytics'; import { type AgentIdType, type ClientOverrides, type ProfileClient, type ProfileClientOptions, type TeamCentralReportingLinesData } from '../types'; import RovoAgentCardClient from './RovoAgentCardClient'; import TeamCentralCardClient from './TeamCentralCardClient'; import TeamProfileCardClient from './TeamProfileCardClient'; import UserProfileCardClient from './UserProfileCardClient'; export type TeamCentralScopes = { withOrgContext: true; withSiteContext: boolean; }; declare class ProfileCardClient implements ProfileClient { userClient: UserProfileCardClient; teamClient: TeamProfileCardClient; tcClient?: TeamCentralCardClient; rovoAgentClient: RovoAgentCardClient; constructor(config: ProfileClientOptions, clients?: ClientOverrides); flushCache(): void; getProfile(cloudId: string, userId: string, analytics?: FireEventType): Promise<any>; getTeamProfile(teamId: string, orgId?: string, analytics?: FireEventType): Promise<import("..").Team>; getReportingLines(userId: string): Promise<TeamCentralReportingLinesData>; getTeamCentralBaseUrl(teamCentralScopes?: TeamCentralScopes): Promise<string | undefined>; shouldShowGiveKudos(): Promise<boolean>; getRovoAgentProfile(id: AgentIdType, analytics?: FireEventType): Promise<import("../types").RovoAgentCardClientResult>; getRovoAgentPermissions(id: string, fireAnalytics?: FireEventType): Promise<import("../types").AgentPermissions>; deleteAgent(id: string, analytics?: FireEventType): Promise<void>; setFavouriteAgent(id: string, isFavourite: boolean, analytics?: FireEventType): Promise<void>; } export default ProfileCardClient;