@checkfirst/nestjs-outlook 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +224 -0
- package/assets/checkfirst-logo.png +0 -0
- package/dist/constants.d.ts +1 -0
- package/dist/constants.js +5 -0
- package/dist/constants.js.map +1 -0
- package/dist/controllers/microsoft-auth.controller.d.ts +7 -0
- package/dist/controllers/microsoft-auth.controller.js +101 -0
- package/dist/controllers/microsoft-auth.controller.js.map +1 -0
- package/dist/controllers/outlook.controller.d.ts +8 -0
- package/dist/controllers/outlook.controller.js +117 -0
- package/dist/controllers/outlook.controller.js.map +1 -0
- package/dist/dto/outlook-webhook-notification.dto.d.ts +19 -0
- package/dist/dto/outlook-webhook-notification.dto.js +149 -0
- package/dist/dto/outlook-webhook-notification.dto.js.map +1 -0
- package/dist/entities/csrf-token.entity.d.ts +7 -0
- package/dist/entities/csrf-token.entity.js +48 -0
- package/dist/entities/csrf-token.entity.js.map +1 -0
- package/dist/entities/outlook-webhook-subscription.entity.d.ts +15 -0
- package/dist/entities/outlook-webhook-subscription.entity.js +87 -0
- package/dist/entities/outlook-webhook-subscription.entity.js.map +1 -0
- package/dist/event-types.enum.d.ts +7 -0
- package/dist/event-types.enum.js +12 -0
- package/dist/event-types.enum.js.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +28 -0
- package/dist/index.js.map +1 -0
- package/dist/interfaces/config/outlook-config.interface.d.ts +7 -0
- package/dist/interfaces/config/outlook-config.interface.js +3 -0
- package/dist/interfaces/config/outlook-config.interface.js.map +1 -0
- package/dist/interfaces/microsoft-auth/microsoft-token-api-response.interface.d.ts +9 -0
- package/dist/interfaces/microsoft-auth/microsoft-token-api-response.interface.js +3 -0
- package/dist/interfaces/microsoft-auth/microsoft-token-api-response.interface.js.map +1 -0
- package/dist/interfaces/microsoft-auth/state-object.interface.d.ts +5 -0
- package/dist/interfaces/microsoft-auth/state-object.interface.js +3 -0
- package/dist/interfaces/microsoft-auth/state-object.interface.js.map +1 -0
- package/dist/interfaces/outlook/token-response.interface.d.ts +5 -0
- package/dist/interfaces/outlook/token-response.interface.js +3 -0
- package/dist/interfaces/outlook/token-response.interface.js.map +1 -0
- package/dist/microsoft-outlook.module.d.ts +4 -0
- package/dist/microsoft-outlook.module.js +50 -0
- package/dist/microsoft-outlook.module.js.map +1 -0
- package/dist/migrations/1697025846000-CreateOutlookTables.d.ts +5 -0
- package/dist/migrations/1697025846000-CreateOutlookTables.js +40 -0
- package/dist/migrations/1697025846000-CreateOutlookTables.js.map +1 -0
- package/dist/repositories/microsoft-csrf-token.repository.d.ts +9 -0
- package/dist/repositories/microsoft-csrf-token.repository.js +60 -0
- package/dist/repositories/microsoft-csrf-token.repository.js.map +1 -0
- package/dist/repositories/outlook-webhook-subscription.repository.d.ts +12 -0
- package/dist/repositories/outlook-webhook-subscription.repository.js +70 -0
- package/dist/repositories/outlook-webhook-subscription.repository.js.map +1 -0
- package/dist/services/microsoft-auth.service.d.ts +32 -0
- package/dist/services/microsoft-auth.service.js +254 -0
- package/dist/services/microsoft-auth.service.js.map +1 -0
- package/dist/services/outlook.service.d.ts +28 -0
- package/dist/services/outlook.service.js +265 -0
- package/dist/services/outlook.service.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +103 -0
package/package.json
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@checkfirst/nestjs-outlook",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "An opinionated NestJS module for Microsoft Outlook integration that provides easy access to Microsoft Graph API for emails, calendars, and more.",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "rimraf dist && tsc",
|
|
9
|
+
"format": "prettier --write \"src/**/*.ts\"",
|
|
10
|
+
"lint": "eslint \"src/**/*.ts\" --fix",
|
|
11
|
+
"test": "jest",
|
|
12
|
+
"test:watch": "jest --watch",
|
|
13
|
+
"test:cov": "jest --coverage",
|
|
14
|
+
"prepublishOnly": "npm run build"
|
|
15
|
+
},
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "git+https://github.com/checkfirst-ltd/nestjs-outlook.git"
|
|
19
|
+
},
|
|
20
|
+
"keywords": [
|
|
21
|
+
"nestjs",
|
|
22
|
+
"outlook",
|
|
23
|
+
"microsoft",
|
|
24
|
+
"microsoft365",
|
|
25
|
+
"email",
|
|
26
|
+
"calendar",
|
|
27
|
+
"microsoft-graph",
|
|
28
|
+
"oauth",
|
|
29
|
+
"webhooks",
|
|
30
|
+
"checkfirst"
|
|
31
|
+
],
|
|
32
|
+
"author": {
|
|
33
|
+
"name": "Checkfirst",
|
|
34
|
+
"email": "dev@checkfirst.ai",
|
|
35
|
+
"url": "https://checkfirst.ai"
|
|
36
|
+
},
|
|
37
|
+
"contributors": [
|
|
38
|
+
{
|
|
39
|
+
"name": "Checkfirst Team",
|
|
40
|
+
"url": "https://github.com/checkfirst-ltd"
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"license": "MIT",
|
|
44
|
+
"bugs": {
|
|
45
|
+
"url": "https://github.com/checkfirst-ltd/nestjs-outlook/issues"
|
|
46
|
+
},
|
|
47
|
+
"homepage": "https://github.com/checkfirst-ltd/nestjs-outlook#readme",
|
|
48
|
+
"funding": {
|
|
49
|
+
"type": "github",
|
|
50
|
+
"url": "https://github.com/sponsors/checkfirst-ltd"
|
|
51
|
+
},
|
|
52
|
+
"dependencies": {
|
|
53
|
+
"@microsoft/microsoft-graph-client": "^3.0.7",
|
|
54
|
+
"axios": "^1.6.0",
|
|
55
|
+
"class-validator": "^0.14.0"
|
|
56
|
+
},
|
|
57
|
+
"peerDependencies": {
|
|
58
|
+
"@nestjs/common": "^8.0.0 || ^9.0.0 || ^10.0.0",
|
|
59
|
+
"@nestjs/core": "^8.0.0 || ^9.0.0 || ^10.0.0",
|
|
60
|
+
"@nestjs/event-emitter": "^2.0.0",
|
|
61
|
+
"@nestjs/schedule": "^2.0.0 || ^3.0.0 || ^4.0.0",
|
|
62
|
+
"@nestjs/typeorm": "^8.0.0 || ^9.0.0 || ^10.0.0",
|
|
63
|
+
"reflect-metadata": "^0.1.13 || ^0.2.0",
|
|
64
|
+
"rxjs": "^7.0.0",
|
|
65
|
+
"typeorm": "^0.3.0"
|
|
66
|
+
},
|
|
67
|
+
"devDependencies": {
|
|
68
|
+
"@eslint/js": "^9.26.0",
|
|
69
|
+
"@microsoft/microsoft-graph-types": "^2.40.0",
|
|
70
|
+
"@nestjs/common": "^10.0.0",
|
|
71
|
+
"@nestjs/core": "^10.0.0",
|
|
72
|
+
"@nestjs/event-emitter": "^2.0.3",
|
|
73
|
+
"@nestjs/schedule": "^4.0.0",
|
|
74
|
+
"@nestjs/swagger": "^7.3.0",
|
|
75
|
+
"@nestjs/testing": "^10.0.0",
|
|
76
|
+
"@nestjs/typeorm": "^10.0.0",
|
|
77
|
+
"@types/express": "^4.17.17",
|
|
78
|
+
"@types/jest": "^29.5.0",
|
|
79
|
+
"@types/node": "^20.0.0",
|
|
80
|
+
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
|
81
|
+
"@typescript-eslint/parser": "^6.0.0",
|
|
82
|
+
"eslint": "^8.57.1",
|
|
83
|
+
"eslint-config-prettier": "^9.0.0",
|
|
84
|
+
"eslint-plugin-prettier": "^5.0.0",
|
|
85
|
+
"express": "^4.18.2",
|
|
86
|
+
"globals": "^16.0.0",
|
|
87
|
+
"jest": "^29.5.0",
|
|
88
|
+
"prettier": "^3.0.0",
|
|
89
|
+
"reflect-metadata": "^0.2.0",
|
|
90
|
+
"rimraf": "^5.0.0",
|
|
91
|
+
"rxjs": "^7.8.1",
|
|
92
|
+
"ts-jest": "^29.1.0",
|
|
93
|
+
"typeorm": "^0.3.0",
|
|
94
|
+
"typescript": "^5.0.0",
|
|
95
|
+
"typescript-eslint": "^8.31.1"
|
|
96
|
+
},
|
|
97
|
+
"files": [
|
|
98
|
+
"dist/**/*",
|
|
99
|
+
"LICENSE",
|
|
100
|
+
"README.md",
|
|
101
|
+
"assets/**/*"
|
|
102
|
+
]
|
|
103
|
+
}
|