@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.
- package/README.md +3 -3
- package/dist/email/constant.js +1 -0
- package/dist/email/constant.js.map +1 -0
- package/dist/email/email-provider.factory.js +1 -0
- package/dist/email/email-provider.factory.js.map +1 -0
- package/dist/email/email.interface.js +1 -0
- package/dist/email/email.interface.js.map +1 -0
- package/dist/email/email.module.d.ts +3 -0
- package/dist/email/email.module.js +20 -5
- package/dist/email/email.module.js.map +1 -0
- package/dist/email/email.provider.d.ts +2 -0
- package/dist/email/email.provider.js +12 -0
- package/dist/email/email.provider.js.map +1 -0
- package/dist/email/email.service.d.ts +1 -1
- package/dist/email/email.service.js +3 -2
- package/dist/email/email.service.js.map +1 -0
- package/dist/email/index.d.ts +2 -2
- package/dist/email/index.js +3 -1
- package/dist/email/index.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/interface/index.d.ts +4 -2
- package/dist/interface/index.js +1 -0
- package/dist/interface/index.js.map +1 -0
- package/dist/interface/message.interface.d.ts +13 -0
- package/dist/interface/message.interface.js +1 -0
- package/dist/interface/message.interface.js.map +1 -0
- package/dist/interface/payload.inteface.d.ts +22 -0
- package/dist/interface/payload.inteface.js +3 -0
- package/dist/interface/payload.inteface.js.map +1 -0
- package/dist/interface/result.interface.d.ts +5 -0
- package/dist/interface/result.interface.js +1 -0
- package/dist/interface/result.interface.js.map +1 -0
- package/dist/notification/constant.js +1 -0
- package/dist/notification/constant.js.map +1 -0
- package/dist/notification/index.d.ts +2 -2
- package/dist/notification/index.js +1 -0
- package/dist/notification/index.js.map +1 -0
- package/dist/notification/notification.module.d.ts +28 -5
- package/dist/notification/notification.module.js +149 -10
- package/dist/notification/notification.module.js.map +1 -0
- package/dist/notification/notification.service.d.ts +14 -3
- package/dist/notification/notification.service.js +135 -10
- package/dist/notification/notification.service.js.map +1 -0
- package/dist/push-notification/constant.d.ts +1 -0
- package/dist/push-notification/constant.js +5 -0
- package/dist/push-notification/constant.js.map +1 -0
- package/dist/push-notification/fcm-push-notification.provider.d.ts +13 -0
- package/dist/push-notification/fcm-push-notification.provider.js +78 -0
- package/dist/push-notification/fcm-push-notification.provider.js.map +1 -0
- package/dist/push-notification/firebase.interface.d.ts +144 -0
- package/dist/push-notification/firebase.interface.js +3 -0
- package/dist/push-notification/firebase.interface.js.map +1 -0
- package/dist/push-notification/index.d.ts +11 -0
- package/dist/push-notification/index.js +24 -0
- package/dist/push-notification/index.js.map +1 -0
- package/dist/push-notification/push-notification-module.interface.d.ts +33 -0
- package/dist/push-notification/push-notification-module.interface.js +4 -0
- package/dist/push-notification/push-notification-module.interface.js.map +1 -0
- package/dist/push-notification/push-notification-provider-module.factory.d.ts +5 -0
- package/dist/push-notification/push-notification-provider-module.factory.js +13 -0
- package/dist/push-notification/push-notification-provider-module.factory.js.map +1 -0
- package/dist/push-notification/push-notification-provider.factory.d.ts +5 -0
- package/dist/push-notification/push-notification-provider.factory.js +16 -0
- package/dist/push-notification/push-notification-provider.factory.js.map +1 -0
- package/dist/push-notification/push-notification-provider.manager.d.ts +13 -0
- package/dist/push-notification/push-notification-provider.manager.js +38 -0
- package/dist/push-notification/push-notification-provider.manager.js.map +1 -0
- package/dist/push-notification/push-notification.interface.d.ts +16 -0
- package/dist/push-notification/push-notification.interface.js +11 -0
- package/dist/push-notification/push-notification.interface.js.map +1 -0
- package/dist/push-notification/push-notification.module.d.ts +15 -0
- package/dist/push-notification/push-notification.module.js +189 -0
- package/dist/push-notification/push-notification.module.js.map +1 -0
- package/dist/push-notification/push-notification.provider.d.ts +12 -0
- package/dist/push-notification/push-notification.provider.js +7 -0
- package/dist/push-notification/push-notification.provider.js.map +1 -0
- package/dist/push-notification/push-notification.service.d.ts +15 -0
- package/dist/push-notification/push-notification.service.js +66 -0
- package/dist/push-notification/push-notification.service.js.map +1 -0
- package/dist/push-notification/user-token.store.d.ts +19 -0
- package/dist/push-notification/user-token.store.js +44 -0
- package/dist/push-notification/user-token.store.js.map +1 -0
- package/dist/sms/index.js +1 -0
- package/dist/sms/index.js.map +1 -0
- package/dist/sms/sms.service.js +1 -0
- package/dist/sms/sms.service.js.map +1 -0
- package/dist/template/constant.js +1 -0
- package/dist/template/constant.js.map +1 -0
- package/dist/template/fake-template.loader.d.ts +3 -0
- package/dist/template/fake-template.loader.js +15 -1
- package/dist/template/fake-template.loader.js.map +1 -0
- package/dist/template/index.d.ts +2 -2
- package/dist/template/index.js +3 -1
- package/dist/template/index.js.map +1 -0
- package/dist/template/template.loader.js +3 -2
- package/dist/template/template.loader.js.map +1 -0
- package/dist/template/template.service.js +3 -2
- package/dist/template/template.service.js.map +1 -0
- package/package.json +15 -21
- 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
|
|
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
|
-
"
|
|
27
|
-
"
|
|
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.
|
|
52
|
-
"
|
|
53
|
-
|
|
54
|
-
|
|
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
|
-
};
|