@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.
Files changed (59) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +224 -0
  3. package/assets/checkfirst-logo.png +0 -0
  4. package/dist/constants.d.ts +1 -0
  5. package/dist/constants.js +5 -0
  6. package/dist/constants.js.map +1 -0
  7. package/dist/controllers/microsoft-auth.controller.d.ts +7 -0
  8. package/dist/controllers/microsoft-auth.controller.js +101 -0
  9. package/dist/controllers/microsoft-auth.controller.js.map +1 -0
  10. package/dist/controllers/outlook.controller.d.ts +8 -0
  11. package/dist/controllers/outlook.controller.js +117 -0
  12. package/dist/controllers/outlook.controller.js.map +1 -0
  13. package/dist/dto/outlook-webhook-notification.dto.d.ts +19 -0
  14. package/dist/dto/outlook-webhook-notification.dto.js +149 -0
  15. package/dist/dto/outlook-webhook-notification.dto.js.map +1 -0
  16. package/dist/entities/csrf-token.entity.d.ts +7 -0
  17. package/dist/entities/csrf-token.entity.js +48 -0
  18. package/dist/entities/csrf-token.entity.js.map +1 -0
  19. package/dist/entities/outlook-webhook-subscription.entity.d.ts +15 -0
  20. package/dist/entities/outlook-webhook-subscription.entity.js +87 -0
  21. package/dist/entities/outlook-webhook-subscription.entity.js.map +1 -0
  22. package/dist/event-types.enum.d.ts +7 -0
  23. package/dist/event-types.enum.js +12 -0
  24. package/dist/event-types.enum.js.map +1 -0
  25. package/dist/index.d.ts +11 -0
  26. package/dist/index.js +28 -0
  27. package/dist/index.js.map +1 -0
  28. package/dist/interfaces/config/outlook-config.interface.d.ts +7 -0
  29. package/dist/interfaces/config/outlook-config.interface.js +3 -0
  30. package/dist/interfaces/config/outlook-config.interface.js.map +1 -0
  31. package/dist/interfaces/microsoft-auth/microsoft-token-api-response.interface.d.ts +9 -0
  32. package/dist/interfaces/microsoft-auth/microsoft-token-api-response.interface.js +3 -0
  33. package/dist/interfaces/microsoft-auth/microsoft-token-api-response.interface.js.map +1 -0
  34. package/dist/interfaces/microsoft-auth/state-object.interface.d.ts +5 -0
  35. package/dist/interfaces/microsoft-auth/state-object.interface.js +3 -0
  36. package/dist/interfaces/microsoft-auth/state-object.interface.js.map +1 -0
  37. package/dist/interfaces/outlook/token-response.interface.d.ts +5 -0
  38. package/dist/interfaces/outlook/token-response.interface.js +3 -0
  39. package/dist/interfaces/outlook/token-response.interface.js.map +1 -0
  40. package/dist/microsoft-outlook.module.d.ts +4 -0
  41. package/dist/microsoft-outlook.module.js +50 -0
  42. package/dist/microsoft-outlook.module.js.map +1 -0
  43. package/dist/migrations/1697025846000-CreateOutlookTables.d.ts +5 -0
  44. package/dist/migrations/1697025846000-CreateOutlookTables.js +40 -0
  45. package/dist/migrations/1697025846000-CreateOutlookTables.js.map +1 -0
  46. package/dist/repositories/microsoft-csrf-token.repository.d.ts +9 -0
  47. package/dist/repositories/microsoft-csrf-token.repository.js +60 -0
  48. package/dist/repositories/microsoft-csrf-token.repository.js.map +1 -0
  49. package/dist/repositories/outlook-webhook-subscription.repository.d.ts +12 -0
  50. package/dist/repositories/outlook-webhook-subscription.repository.js +70 -0
  51. package/dist/repositories/outlook-webhook-subscription.repository.js.map +1 -0
  52. package/dist/services/microsoft-auth.service.d.ts +32 -0
  53. package/dist/services/microsoft-auth.service.js +254 -0
  54. package/dist/services/microsoft-auth.service.js.map +1 -0
  55. package/dist/services/outlook.service.d.ts +28 -0
  56. package/dist/services/outlook.service.js +265 -0
  57. package/dist/services/outlook.service.js.map +1 -0
  58. package/dist/tsconfig.tsbuildinfo +1 -0
  59. 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
+ }