UNPKG

@microsoft/msgraph-beta-sdk-users

Version:
88 lines 4.9 kB
import { type ItemInsights } from '@microsoft/msgraph-beta-sdk/models/index.js'; import { type SharedRequestBuilder } from './shared/index.js'; import { type TrendingRequestBuilder } from './trending/index.js'; import { type UsedRequestBuilder } from './used/index.js'; import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions'; /** * Provides operations to manage the insights property of the microsoft.graph.user entity. */ export interface InsightsRequestBuilder extends BaseRequestBuilder<InsightsRequestBuilder> { /** * Provides operations to manage the shared property of the microsoft.graph.officeGraphInsights entity. */ get shared(): SharedRequestBuilder; /** * Provides operations to manage the trending property of the microsoft.graph.officeGraphInsights entity. */ get trending(): TrendingRequestBuilder; /** * Provides operations to manage the used property of the microsoft.graph.officeGraphInsights entity. */ get used(): UsedRequestBuilder; /** * Delete navigation property insights 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>; /** * Represents relationships between a user and items such as OneDrive for work or school documents, calculated using advanced analytics and machine learning techniques. Read-only. Nullable. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<ItemInsights>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ get(requestConfiguration?: RequestConfiguration<InsightsRequestBuilderGetQueryParameters> | undefined): Promise<ItemInsights | undefined>; /** * Update the navigation property insights in users * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<ItemInsights>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ patch(body: ItemInsights, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<ItemInsights | undefined>; /** * Delete navigation property insights for users * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; /** * Represents relationships between a user and items such as OneDrive for work or school documents, calculated using advanced analytics and machine learning techniques. Read-only. Nullable. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration<InsightsRequestBuilderGetQueryParameters> | undefined): RequestInformation; /** * Update the navigation property insights 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: ItemInsights, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; } /** * Represents relationships between a user and items such as OneDrive for work or school documents, calculated using advanced analytics and machine learning techniques. Read-only. Nullable. */ export interface InsightsRequestBuilderGetQueryParameters { /** * Expand related entities */ expand?: string[]; /** * Select properties to be returned */ select?: string[]; } /** * Uri template for the request builder. */ export declare const InsightsRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/insights{?%24expand,%24select}"; /** * Metadata for all the navigation properties in the request builder. */ export declare const InsightsRequestBuilderNavigationMetadata: Record<Exclude<keyof InsightsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>; /** * Metadata for all the requests in the request builder. */ export declare const InsightsRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map