UNPKG

@microsoft/msgraph-beta-sdk-users

Version:
70 lines 4.33 kB
import { type UserInsightsSettings } from '@microsoft/msgraph-beta-sdk/models/index.js'; import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions'; /** * Provides operations to manage the itemInsights property of the microsoft.graph.userSettings entity. */ export interface ItemInsightsRequestBuilder extends BaseRequestBuilder<ItemInsightsRequestBuilder> { /** * Delete navigation property itemInsights 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>; /** * The user's settings for the visibility of meeting hour insights, and insights derived between a user and other items in Microsoft 365, such as documents or sites. Get userInsightsSettings through this navigation property. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<UserInsightsSettings>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ get(requestConfiguration?: RequestConfiguration<ItemInsightsRequestBuilderGetQueryParameters> | undefined): Promise<UserInsightsSettings | undefined>; /** * Update the privacy settings for itemInsights and meeting hours insights of a user. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<UserInsightsSettings>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code * @see {@link https://learn.microsoft.com/graph/api/userinsightssettings-update?view=graph-rest-beta|Find more info here} */ patch(body: UserInsightsSettings, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<UserInsightsSettings | undefined>; /** * Delete navigation property itemInsights for users * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; /** * The user's settings for the visibility of meeting hour insights, and insights derived between a user and other items in Microsoft 365, such as documents or sites. Get userInsightsSettings through this navigation property. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration<ItemInsightsRequestBuilderGetQueryParameters> | undefined): RequestInformation; /** * Update the privacy settings for itemInsights and meeting hours insights of a user. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPatchRequestInformation(body: UserInsightsSettings, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; } /** * The user's settings for the visibility of meeting hour insights, and insights derived between a user and other items in Microsoft 365, such as documents or sites. Get userInsightsSettings through this navigation property. */ export interface ItemInsightsRequestBuilderGetQueryParameters { /** * Expand related entities */ expand?: string[]; /** * Select properties to be returned */ select?: string[]; } /** * Uri template for the request builder. */ export declare const ItemInsightsRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/settings/itemInsights{?%24expand,%24select}"; /** * Metadata for all the requests in the request builder. */ export declare const ItemInsightsRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map