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.

21 lines (20 loc) 1.09 kB
import { EventEmitter2 } from '@nestjs/event-emitter'; import { OutlookWebhookSubscriptionRepository } from '../../repositories/outlook-webhook-subscription.repository'; import { CalendarService } from './calendar.service'; import { OutlookWebhookNotificationItemDto } from '../../dto/outlook-webhook-notification.dto'; import { UserIdConverterService } from '../shared/user-id-converter.service'; export declare class LifecycleEventHandlerService { private readonly calendarService; private readonly subscriptionRepository; private readonly eventEmitter; private readonly userIdConverter; private readonly logger; constructor(calendarService: CalendarService, subscriptionRepository: OutlookWebhookSubscriptionRepository, eventEmitter: EventEmitter2, userIdConverter: UserIdConverterService); handleLifecycleEvent(notificationItem: OutlookWebhookNotificationItemDto): Promise<{ success: boolean; message: string; }>; private handleReauthorizationRequired; private handleSubscriptionRemoved; private handleMissedNotifications; }