UNPKG

@microsoft/msgraph-beta-sdk-users

Version:
103 lines 5.37 kB
import { type Notification, type NotificationCollectionResponse } from '@microsoft/msgraph-beta-sdk/models/index.js'; import { type CountRequestBuilder } from './count/index.js'; import { type NotificationItemRequestBuilder } from './item/index.js'; import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, 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 NotificationsRequestBuilder extends BaseRequestBuilder<NotificationsRequestBuilder> { /** * Provides operations to count the resources in the collection. * @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 count(): CountRequestBuilder; /** * Provides operations to manage the notifications property of the microsoft.graph.user entity. * @param notificationId The unique identifier of notification * @returns {NotificationItemRequestBuilder} * @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 */ byNotificationId(notificationId: string): NotificationItemRequestBuilder; /** * Get notifications from users * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<NotificationCollectionResponse>} * @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<NotificationsRequestBuilderGetQueryParameters> | undefined): Promise<NotificationCollectionResponse | undefined>; /** * Create new navigation property to notifications for 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 */ post(body: Notification, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<Notification | undefined>; /** * 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<NotificationsRequestBuilderGetQueryParameters> | undefined): RequestInformation; /** * Create new navigation property to notifications for 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 */ toPostRequestInformation(body: Notification, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; } /** * Get notifications from users */ export interface NotificationsRequestBuilderGetQueryParameters { /** * Include count of items */ count?: boolean; /** * Expand related entities */ expand?: string[]; /** * Filter items by property values */ filter?: string; /** * Order items by property values */ orderby?: string[]; /** * Search items by search phrases */ search?: string; /** * Select properties to be returned */ select?: string[]; /** * Skip the first n items */ skip?: number; /** * Show only the first n items */ top?: number; } /** * Uri template for the request builder. */ export declare const NotificationsRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/notifications{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}"; /** * Metadata for all the navigation properties in the request builder. */ export declare const NotificationsRequestBuilderNavigationMetadata: Record<Exclude<keyof NotificationsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>; /** * Metadata for all the requests in the request builder. */ export declare const NotificationsRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map