import { _GraphInstance, _GraphCollection } from "../graphqueryable.js"; import { IUpdateable, IGetById, IDeleteable } from "../decorators.js"; import { Team as ITeamType, TeamsAsyncOperation as ITeamsAsyncOperation, TeamsTab as ITeamsTabType, TeamsAppInstallation as ITeamsAppInstallation, ChatMessage as IChatMessage, Channel as IChannelType } from "@microsoft/microsoft-graph-types"; /** * Represents a Microsoft Team */ export declare class _Team extends _GraphInstance { get primaryChannel(): IChannel; get channels(): IChannels; get installedApps(): IInstalledApps; /** * Archives this Team * * @param shouldSetSpoSiteReadOnlyForMembers Should members have Read-only in associated Team Site */ archive(shouldSetSpoSiteReadOnlyForMembers?: boolean): Promise; /** * Unarchives this Team */ unarchive(): Promise; /** * Clones this Team * @param name The name of the new Group * @param description Optional description of the group * @param partsToClone Parts to clone ex: apps,tabs,settings,channels,members * @param visibility Set visibility to public or private */ cloneTeam(name: string, description?: string, partsToClone?: string, visibility?: "public" | "private"): Promise; getOperationById(id: string): Promise; } export interface ITeam extends _Team, IUpdateable { } export declare const Team: import("../graphqueryable.js").IGraphInvokableFactory; /** * Teams */ export declare class _Teams extends _GraphCollection { create(team: ITeamType): Promise; } export interface ITeams extends _Teams, IGetById { } export declare const Teams: import("../graphqueryable.js").IGraphInvokableFactory; /** * Channel */ export declare class _Channel extends _GraphInstance { get tabs(): ITabs; get messages(): IMessages; } export interface IChannel extends _Channel { } export declare const Channel: import("../graphqueryable.js").IGraphInvokableFactory; /** * Channels */ export declare class _Channels extends _GraphCollection { /** * Creates a new Channel in the Team * @param displayName The display name of the new channel * @param description Optional description of the channel * */ add(displayName: string, description?: string): Promise; } export interface IChannels extends _Channels, IGetById { } export declare const Channels: import("../graphqueryable.js").IGraphInvokableFactory; /** * Message */ export declare class _Message extends _GraphInstance { } export interface IMessage extends _Message { } export declare const Message: import("../graphqueryable.js").IGraphInvokableFactory; /** * Messages */ export declare class _Messages extends _GraphCollection { /** * Adds a message * @param message ChatMessage object that defines the message * */ add(message: IChatMessage): Promise; } export interface IMessages extends _Messages, IGetById { } export declare const Messages: import("../graphqueryable.js").IGraphInvokableFactory; /** * Tab */ export declare class _Tab extends _GraphInstance { } export interface ITab extends _Tab, IUpdateable, IDeleteable { } export declare const Tab: import("../graphqueryable.js").IGraphInvokableFactory; /** * Tabs */ export declare class _Tabs extends _GraphCollection { /** * Adds a tab to the channel * @param name The name of the new Tab * @param appUrl The url to an app ex: https://graph.microsoft.com/beta/appCatalogs/teamsApps/12345678-9abc-def0-123456789a * @param tabsConfiguration visit https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/teamstab_add for reference */ add(name: string, appUrl: string, properties: ITeamsTabType): Promise; } export interface ITabs extends _Tabs, IGetById { } export declare const Tabs: import("../graphqueryable.js").IGraphInvokableFactory; export interface ITeamUpdateResult { data: any; team: ITeam; } export interface IChannelCreateResult { data: any; channel: IChannel; } export interface IMessageCreateResult { data: any; message: IMessage; } export interface ITabCreateResult { data: any; tab: ITab; } export interface ITabUpdateResult { data: any; tab: ITab; } export interface ITeamCreateResultAsync { teamId: string; operationId: string; } export interface ITeamCreateResult { data: any; team: ITeam; } /** * InstalledApp */ export declare class _InstalledApp extends _GraphInstance { upgrade(): Promise; } export interface IInstalledApp extends _InstalledApp, IDeleteable { } export declare const InstalledApp: import("../graphqueryable.js").IGraphInvokableFactory; /** * InstalledApps */ export declare class _InstalledApps extends _GraphCollection { /** * Adds an installed app to the collection * @param teamsAppId The id of the app to add. */ add(teamsAppId: string): Promise; } export interface IInstalledApps extends _InstalledApps, IGetById { } export declare const InstalledApps: import("../graphqueryable.js").IGraphInvokableFactory; export interface IAppAddResult { data: any; app: IInstalledApp; } //# sourceMappingURL=types.d.ts.map