UNPKG

@microsoft/msgraph-sdk-sites

Version:
69 lines 3.58 kB
import { type ItemAnalytics } from '@microsoft/msgraph-sdk/models/index.js'; import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions'; /** * Provides operations to manage the analytics property of the microsoft.graph.site entity. */ export interface AnalyticsRequestBuilder extends BaseRequestBuilder<AnalyticsRequestBuilder> { /** * Delete navigation property analytics for sites * @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>; /** * Analytics about the view activities that took place on this site. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<ItemAnalytics>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ get(requestConfiguration?: RequestConfiguration<AnalyticsRequestBuilderGetQueryParameters> | undefined): Promise<ItemAnalytics | undefined>; /** * Update the navigation property analytics in sites * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<ItemAnalytics>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ patch(body: ItemAnalytics, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<ItemAnalytics | undefined>; /** * Delete navigation property analytics for sites * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; /** * Analytics about the view activities that took place on this site. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration<AnalyticsRequestBuilderGetQueryParameters> | undefined): RequestInformation; /** * Update the navigation property analytics in sites * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPatchRequestInformation(body: ItemAnalytics, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; } /** * Analytics about the view activities that took place on this site. */ export interface AnalyticsRequestBuilderGetQueryParameters { /** * Expand related entities */ expand?: string[]; /** * Select properties to be returned */ select?: string[]; } /** * Uri template for the request builder. */ export declare const AnalyticsRequestBuilderUriTemplate = "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/analytics{?%24expand,%24select}"; /** * Metadata for all the requests in the request builder. */ export declare const AnalyticsRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map