@nathapp/nestjs-notification 1.0.0-rc.5 → 1.0.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 (102) hide show
  1. package/README.md +3 -3
  2. package/dist/email/constant.js +1 -0
  3. package/dist/email/constant.js.map +1 -0
  4. package/dist/email/email-provider.factory.js +1 -0
  5. package/dist/email/email-provider.factory.js.map +1 -0
  6. package/dist/email/email.interface.js +1 -0
  7. package/dist/email/email.interface.js.map +1 -0
  8. package/dist/email/email.module.d.ts +3 -0
  9. package/dist/email/email.module.js +20 -5
  10. package/dist/email/email.module.js.map +1 -0
  11. package/dist/email/email.provider.d.ts +2 -0
  12. package/dist/email/email.provider.js +12 -0
  13. package/dist/email/email.provider.js.map +1 -0
  14. package/dist/email/email.service.d.ts +1 -1
  15. package/dist/email/email.service.js +3 -2
  16. package/dist/email/email.service.js.map +1 -0
  17. package/dist/email/index.d.ts +2 -2
  18. package/dist/email/index.js +3 -1
  19. package/dist/email/index.js.map +1 -0
  20. package/dist/index.d.ts +1 -0
  21. package/dist/index.js +2 -0
  22. package/dist/index.js.map +1 -0
  23. package/dist/interface/index.d.ts +4 -2
  24. package/dist/interface/index.js +1 -0
  25. package/dist/interface/index.js.map +1 -0
  26. package/dist/interface/message.interface.d.ts +13 -0
  27. package/dist/interface/message.interface.js +1 -0
  28. package/dist/interface/message.interface.js.map +1 -0
  29. package/dist/interface/payload.inteface.d.ts +22 -0
  30. package/dist/interface/payload.inteface.js +3 -0
  31. package/dist/interface/payload.inteface.js.map +1 -0
  32. package/dist/interface/result.interface.d.ts +5 -0
  33. package/dist/interface/result.interface.js +1 -0
  34. package/dist/interface/result.interface.js.map +1 -0
  35. package/dist/notification/constant.js +1 -0
  36. package/dist/notification/constant.js.map +1 -0
  37. package/dist/notification/index.d.ts +2 -2
  38. package/dist/notification/index.js +1 -0
  39. package/dist/notification/index.js.map +1 -0
  40. package/dist/notification/notification.module.d.ts +28 -5
  41. package/dist/notification/notification.module.js +149 -10
  42. package/dist/notification/notification.module.js.map +1 -0
  43. package/dist/notification/notification.service.d.ts +14 -3
  44. package/dist/notification/notification.service.js +135 -10
  45. package/dist/notification/notification.service.js.map +1 -0
  46. package/dist/push-notification/constant.d.ts +1 -0
  47. package/dist/push-notification/constant.js +5 -0
  48. package/dist/push-notification/constant.js.map +1 -0
  49. package/dist/push-notification/fcm-push-notification.provider.d.ts +13 -0
  50. package/dist/push-notification/fcm-push-notification.provider.js +78 -0
  51. package/dist/push-notification/fcm-push-notification.provider.js.map +1 -0
  52. package/dist/push-notification/firebase.interface.d.ts +144 -0
  53. package/dist/push-notification/firebase.interface.js +3 -0
  54. package/dist/push-notification/firebase.interface.js.map +1 -0
  55. package/dist/push-notification/index.d.ts +11 -0
  56. package/dist/push-notification/index.js +24 -0
  57. package/dist/push-notification/index.js.map +1 -0
  58. package/dist/push-notification/push-notification-module.interface.d.ts +33 -0
  59. package/dist/push-notification/push-notification-module.interface.js +4 -0
  60. package/dist/push-notification/push-notification-module.interface.js.map +1 -0
  61. package/dist/push-notification/push-notification-provider-module.factory.d.ts +5 -0
  62. package/dist/push-notification/push-notification-provider-module.factory.js +13 -0
  63. package/dist/push-notification/push-notification-provider-module.factory.js.map +1 -0
  64. package/dist/push-notification/push-notification-provider.factory.d.ts +5 -0
  65. package/dist/push-notification/push-notification-provider.factory.js +16 -0
  66. package/dist/push-notification/push-notification-provider.factory.js.map +1 -0
  67. package/dist/push-notification/push-notification-provider.manager.d.ts +13 -0
  68. package/dist/push-notification/push-notification-provider.manager.js +38 -0
  69. package/dist/push-notification/push-notification-provider.manager.js.map +1 -0
  70. package/dist/push-notification/push-notification.interface.d.ts +16 -0
  71. package/dist/push-notification/push-notification.interface.js +11 -0
  72. package/dist/push-notification/push-notification.interface.js.map +1 -0
  73. package/dist/push-notification/push-notification.module.d.ts +15 -0
  74. package/dist/push-notification/push-notification.module.js +189 -0
  75. package/dist/push-notification/push-notification.module.js.map +1 -0
  76. package/dist/push-notification/push-notification.provider.d.ts +12 -0
  77. package/dist/push-notification/push-notification.provider.js +7 -0
  78. package/dist/push-notification/push-notification.provider.js.map +1 -0
  79. package/dist/push-notification/push-notification.service.d.ts +15 -0
  80. package/dist/push-notification/push-notification.service.js +66 -0
  81. package/dist/push-notification/push-notification.service.js.map +1 -0
  82. package/dist/push-notification/user-token.store.d.ts +19 -0
  83. package/dist/push-notification/user-token.store.js +44 -0
  84. package/dist/push-notification/user-token.store.js.map +1 -0
  85. package/dist/sms/index.js +1 -0
  86. package/dist/sms/index.js.map +1 -0
  87. package/dist/sms/sms.service.js +1 -0
  88. package/dist/sms/sms.service.js.map +1 -0
  89. package/dist/template/constant.js +1 -0
  90. package/dist/template/constant.js.map +1 -0
  91. package/dist/template/fake-template.loader.d.ts +3 -0
  92. package/dist/template/fake-template.loader.js +15 -1
  93. package/dist/template/fake-template.loader.js.map +1 -0
  94. package/dist/template/index.d.ts +2 -2
  95. package/dist/template/index.js +3 -1
  96. package/dist/template/index.js.map +1 -0
  97. package/dist/template/template.loader.js +3 -2
  98. package/dist/template/template.loader.js.map +1 -0
  99. package/dist/template/template.service.js +3 -2
  100. package/dist/template/template.service.js.map +1 -0
  101. package/package.json +15 -21
  102. package/.eslintrc.js +0 -24
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "@nathapp/nestjs-notification",
3
- "version": "1.0.0-rc.5",
3
+ "version": "1.0.0",
4
4
  "description": "Notification Module",
5
5
  "scripts": {
6
+ "clean": "rimraf dist/ .turbo/",
6
7
  "build": "rimraf dist && tsc -p tsconfig.json",
7
8
  "precommit": "lint-staged",
8
9
  "test": "jest --config ./test/jest-test.json",
@@ -10,30 +11,19 @@
10
11
  "test:watch": "jest --config ./test/jest-test.json --watch",
11
12
  "lint": "eslint -c .eslintrc.js"
12
13
  },
14
+ "exports": {
15
+ ".": "./dist/index.js"
16
+ },
13
17
  "author": "William Khoo",
14
18
  "license": "ISC",
15
19
  "engines": {
16
20
  "node": ">=16"
17
21
  },
18
22
  "devDependencies": {
19
- "@golevelup/ts-jest": "^0.3.7",
20
- "@nestjs/platform-express": "^10.0.0",
21
- "@nestjs/testing": "^10.0.0",
22
- "@types/jest": "^29.5.2",
23
- "@types/node": "^17.0.22",
24
23
  "@types/nodemailer": "^6.4.11",
25
24
  "@types/string-format": "^2.0.1",
26
- "@types/supertest": "^2.0.12",
27
- "@typescript-eslint/eslint-plugin": "^4",
28
- "@typescript-eslint/parser": "^4",
29
- "eslint": "*",
30
- "eslint-config-prettier": "^6",
31
- "eslint-plugin-prettier": "^3",
32
- "jest": "^29.5.0",
33
- "prettier": "^2",
34
- "supertest": "^6.3.3",
35
- "ts-jest": "^29.1.0",
36
- "typescript": "^4"
25
+ "eslint": "^8.57.0",
26
+ "typescript": "^5"
37
27
  },
38
28
  "types": "./index.d.ts",
39
29
  "main": "index.js",
@@ -45,12 +35,16 @@
45
35
  "string-format": "^2.0.0"
46
36
  },
47
37
  "peerDependencies": {
38
+ "@nathapp/common": "^0.1.13",
48
39
  "@nestjs/cache-manager": "^2.1.0",
49
40
  "@nestjs/common": "^8.0.0 || ^9.0.0 || ^10.0.0",
50
41
  "@nestjs/core": "^8.0.0 || ^9.0.0 || ^10.0.0",
51
- "cache-manager": "^5.0.0",
52
- "class-transformer": "*",
53
- "class-validator": "*",
54
- "rxjs": "*"
42
+ "cache-manager": "^5.4.0",
43
+ "firebase-admin": "^12.1.0"
44
+ },
45
+ "peerDependenciesMeta": {
46
+ "@grpc/grpc-js": {
47
+ "firebase-admin": true
48
+ }
55
49
  }
56
50
  }
package/.eslintrc.js DELETED
@@ -1,24 +0,0 @@
1
- module.exports = {
2
- parser: '@typescript-eslint/parser',
3
- parserOptions: {
4
- project: 'tsconfig.json',
5
- sourceType: 'module',
6
- },
7
- plugins: ['@typescript-eslint/eslint-plugin'],
8
- extends: [
9
- 'plugin:@typescript-eslint/recommended',
10
- 'plugin:prettier/recommended',
11
- ],
12
- root: true,
13
- env: {
14
- node: true,
15
- jest: true,
16
- },
17
- ignorePatterns: ['.eslintrc.js'],
18
- rules: {
19
- '@typescript-eslint/interface-name-prefix': 'off',
20
- '@typescript-eslint/explicit-function-return-type': 'off',
21
- '@typescript-eslint/explicit-module-boundary-types': 'off',
22
- '@typescript-eslint/no-explicit-any': 'off',
23
- },
24
- };