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.

76 lines 3.6 kB
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.OutlookWebhookSubscription = void 0; const typeorm_1 = require("typeorm"); let OutlookWebhookSubscription = class OutlookWebhookSubscription { constructor() { this.subscriptionId = ''; this.userId = 0; this.resource = ''; this.changeType = ''; this.clientState = ''; this.notificationUrl = ''; this.expirationDateTime = new Date(); this.isActive = true; this.createdAt = new Date(); this.updatedAt = new Date(); } }; exports.OutlookWebhookSubscription = OutlookWebhookSubscription; __decorate([ (0, typeorm_1.PrimaryGeneratedColumn)('increment'), __metadata("design:type", Number) ], OutlookWebhookSubscription.prototype, "id", void 0); __decorate([ (0, typeorm_1.Column)({ name: 'subscription_id', length: 255, unique: true }), __metadata("design:type", String) ], OutlookWebhookSubscription.prototype, "subscriptionId", void 0); __decorate([ (0, typeorm_1.Column)({ name: 'user_id' }), __metadata("design:type", Number) ], OutlookWebhookSubscription.prototype, "userId", void 0); __decorate([ (0, typeorm_1.Column)({ length: 255 }), __metadata("design:type", String) ], OutlookWebhookSubscription.prototype, "resource", void 0); __decorate([ (0, typeorm_1.Column)({ name: 'change_type', length: 255 }), __metadata("design:type", String) ], OutlookWebhookSubscription.prototype, "changeType", void 0); __decorate([ (0, typeorm_1.Column)({ name: 'client_state', length: 255 }), __metadata("design:type", String) ], OutlookWebhookSubscription.prototype, "clientState", void 0); __decorate([ (0, typeorm_1.Column)({ name: 'notification_url', length: 255 }), __metadata("design:type", String) ], OutlookWebhookSubscription.prototype, "notificationUrl", void 0); __decorate([ (0, typeorm_1.Column)({ name: 'expiration_date_time', type: 'datetime' }), __metadata("design:type", Date) ], OutlookWebhookSubscription.prototype, "expirationDateTime", void 0); __decorate([ (0, typeorm_1.Column)({ name: 'is_active', default: true }), __metadata("design:type", Boolean) ], OutlookWebhookSubscription.prototype, "isActive", void 0); __decorate([ (0, typeorm_1.CreateDateColumn)({ name: 'created_at' }), __metadata("design:type", Date) ], OutlookWebhookSubscription.prototype, "createdAt", void 0); __decorate([ (0, typeorm_1.UpdateDateColumn)({ name: 'updated_at' }), __metadata("design:type", Date) ], OutlookWebhookSubscription.prototype, "updatedAt", void 0); exports.OutlookWebhookSubscription = OutlookWebhookSubscription = __decorate([ (0, typeorm_1.Entity)('outlook_webhook_subscriptions') ], OutlookWebhookSubscription); //# sourceMappingURL=outlook-webhook-subscription.entity.js.map