@microsoft/msgraph-beta-sdk-users
Version:
Users fluent API for Microsoft Graph
89 lines • 4.94 kB
TypeScript
import { type UserTeamwork } from '@microsoft/msgraph-beta-sdk/models/index.js';
import { type AssociatedTeamsRequestBuilder } from './associatedTeams/index.js';
import { type InstalledAppsRequestBuilder } from './installedApps/index.js';
import { type SendActivityNotificationRequestBuilder } from './sendActivityNotification/index.js';
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
/**
* Provides operations to manage the teamwork property of the microsoft.graph.user entity.
*/
export interface TeamworkRequestBuilder extends BaseRequestBuilder<TeamworkRequestBuilder> {
/**
* Provides operations to manage the associatedTeams property of the microsoft.graph.userTeamwork entity.
*/
get associatedTeams(): AssociatedTeamsRequestBuilder;
/**
* Provides operations to manage the installedApps property of the microsoft.graph.userTeamwork entity.
*/
get installedApps(): InstalledAppsRequestBuilder;
/**
* Provides operations to call the sendActivityNotification method.
*/
get sendActivityNotification(): SendActivityNotificationRequestBuilder;
/**
* Delete navigation property teamwork for users
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
*/
delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
/**
* Get the userTeamwork settings for a specified user, which includes the Microsoft Teams region and the locale chosen by the user.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<UserTeamwork>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @see {@link https://learn.microsoft.com/graph/api/userteamwork-get?view=graph-rest-beta|Find more info here}
*/
get(requestConfiguration?: RequestConfiguration<TeamworkRequestBuilderGetQueryParameters> | undefined): Promise<UserTeamwork | undefined>;
/**
* Update the navigation property teamwork in users
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<UserTeamwork>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
*/
patch(body: UserTeamwork, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<UserTeamwork | undefined>;
/**
* Delete navigation property teamwork for users
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
/**
* Get the userTeamwork settings for a specified user, which includes the Microsoft Teams region and the locale chosen by the user.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toGetRequestInformation(requestConfiguration?: RequestConfiguration<TeamworkRequestBuilderGetQueryParameters> | undefined): RequestInformation;
/**
* Update the navigation property teamwork in users
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toPatchRequestInformation(body: UserTeamwork, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
}
/**
* Get the userTeamwork settings for a specified user, which includes the Microsoft Teams region and the locale chosen by the user.
*/
export interface TeamworkRequestBuilderGetQueryParameters {
/**
* Expand related entities
*/
expand?: string[];
/**
* Select properties to be returned
*/
select?: string[];
}
/**
* Uri template for the request builder.
*/
export declare const TeamworkRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/teamwork{?%24expand,%24select}";
/**
* Metadata for all the navigation properties in the request builder.
*/
export declare const TeamworkRequestBuilderNavigationMetadata: Record<Exclude<keyof TeamworkRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
/**
* Metadata for all the requests in the request builder.
*/
export declare const TeamworkRequestBuilderRequestsMetadata: RequestsMetadata;
//# sourceMappingURL=index.d.ts.map