UNPKG

@microsoft/msgraph-beta-sdk-users

Version:
75 lines 4.69 kB
import { type Notification } 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 notifications property of the microsoft.graph.user entity. */ export interface NotificationItemRequestBuilder extends BaseRequestBuilder<NotificationItemRequestBuilder> { /** * Delete navigation property notifications 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 * @deprecated The Graph Notification API is deprecated and will stop returning data on March 20, 2023. as of 2023-03/Notification_Deprecation on 2023-03-09 and will be removed 2023-03-20 */ delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>; /** * Get notifications from users * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<Notification>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code * @deprecated The Graph Notification API is deprecated and will stop returning data on March 20, 2023. as of 2023-03/Notification_Deprecation on 2023-03-09 and will be removed 2023-03-20 */ get(requestConfiguration?: RequestConfiguration<NotificationItemRequestBuilderGetQueryParameters> | undefined): Promise<Notification | undefined>; /** * Update the navigation property notifications in users * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<Notification>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code * @deprecated The Graph Notification API is deprecated and will stop returning data on March 20, 2023. as of 2023-03/Notification_Deprecation on 2023-03-09 and will be removed 2023-03-20 */ patch(body: Notification, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<Notification | undefined>; /** * Delete navigation property notifications for users * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} * @deprecated The Graph Notification API is deprecated and will stop returning data on March 20, 2023. as of 2023-03/Notification_Deprecation on 2023-03-09 and will be removed 2023-03-20 */ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; /** * Get notifications from users * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} * @deprecated The Graph Notification API is deprecated and will stop returning data on March 20, 2023. as of 2023-03/Notification_Deprecation on 2023-03-09 and will be removed 2023-03-20 */ toGetRequestInformation(requestConfiguration?: RequestConfiguration<NotificationItemRequestBuilderGetQueryParameters> | undefined): RequestInformation; /** * Update the navigation property notifications in users * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} * @deprecated The Graph Notification API is deprecated and will stop returning data on March 20, 2023. as of 2023-03/Notification_Deprecation on 2023-03-09 and will be removed 2023-03-20 */ toPatchRequestInformation(body: Notification, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; } /** * Get notifications from users */ export interface NotificationItemRequestBuilderGetQueryParameters { /** * Expand related entities */ expand?: string[]; /** * Select properties to be returned */ select?: string[]; } /** * Uri template for the request builder. */ export declare const NotificationItemRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/notifications/{notification%2Did}{?%24expand,%24select}"; /** * Metadata for all the requests in the request builder. */ export declare const NotificationItemRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map