UNPKG

@checkfirst/nestjs-outlook

Version:

An opinionated NestJS module for Microsoft Outlook integration that provides easy access to Microsoft Graph API for emails, calendars, and more.

14 lines (13 loc) 613 B
import { Logger } from '@nestjs/common'; import { OutlookWebhookNotificationItemDto } from '../dto/outlook-webhook-notification.dto'; export declare enum WebhookResourceType { CALENDAR = "calendar", EMAIL = "email" } export interface WebhookValidationResult { isValid: boolean; shouldSkip: boolean; reason?: string; } export declare function validateNotificationItem(item: OutlookWebhookNotificationItemDto, resourceType: WebhookResourceType, logger: Logger): WebhookValidationResult; export declare function validateChangeType(changeType: string, logger: Logger, logPrefix: string): boolean;