@pixelplex/mail-service 0.2.6 → 0.2.8
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/.gitlab-ci.yml +1 -1
- package/README.md +52 -51
- package/dist/constants/mail.constants.d.ts +2 -1
- package/dist/constants/mail.constants.js +1 -0
- package/dist/constants/mail.constants.js.map +1 -1
- package/dist/factories/gateway.factory.js +1 -0
- package/dist/factories/gateway.factory.js.map +1 -1
- package/dist/gateways/index.d.ts +1 -0
- package/dist/gateways/index.js +1 -0
- package/dist/gateways/index.js.map +1 -1
- package/dist/gateways/resend.gateway.d.ts +12 -0
- package/dist/gateways/resend.gateway.js +66 -0
- package/dist/gateways/resend.gateway.js.map +1 -0
- package/dist/gateways/smtp.gateway.js +2 -1
- package/dist/gateways/smtp.gateway.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +1 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/options.types.d.ts +4 -1
- package/dist/types/resend.types.d.ts +4 -0
- package/dist/types/resend.types.js +3 -0
- package/dist/types/resend.types.js.map +1 -0
- package/eslint.config.js +1 -1
- package/package.json +43 -40
package/dist/types/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export * from './mail.types';
|
|
|
2
2
|
export * from './decorators.types';
|
|
3
3
|
export * from './gateway.class';
|
|
4
4
|
export * from './options.types';
|
|
5
|
+
export * from './resend.types';
|
|
5
6
|
export * from './sendgrid.types';
|
|
6
7
|
export * from './slack.types';
|
|
7
8
|
export * from './smtp.types';
|
package/dist/types/index.js
CHANGED
|
@@ -18,6 +18,7 @@ __exportStar(require("./mail.types"), exports);
|
|
|
18
18
|
__exportStar(require("./decorators.types"), exports);
|
|
19
19
|
__exportStar(require("./gateway.class"), exports);
|
|
20
20
|
__exportStar(require("./options.types"), exports);
|
|
21
|
+
__exportStar(require("./resend.types"), exports);
|
|
21
22
|
__exportStar(require("./sendgrid.types"), exports);
|
|
22
23
|
__exportStar(require("./slack.types"), exports);
|
|
23
24
|
__exportStar(require("./smtp.types"), exports);
|
package/dist/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,qDAAmC;AACnC,kDAAgC;AAChC,kDAAgC;AAChC,mDAAiC;AACjC,gDAA8B;AAC9B,+CAA6B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,qDAAmC;AACnC,kDAAgC;AAChC,kDAAgC;AAChC,iDAA+B;AAC/B,mDAAiC;AACjC,gDAA8B;AAC9B,+CAA6B"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { ExtendsOrEmpty } from '../utils';
|
|
2
2
|
import { GatewayClass } from './gateway.class';
|
|
3
|
+
import { ResendOptions } from './resend.types';
|
|
3
4
|
import { SendgridOptions } from './sendgrid.types';
|
|
4
5
|
import { SlackOptions } from './slack.types';
|
|
5
6
|
import { SmtpOptions } from './smtp.types';
|
|
6
|
-
export type Gateway = 'smtp' | 'console' | 'slack' | 'sendgrid';
|
|
7
|
+
export type Gateway = 'smtp' | 'console' | 'slack' | 'sendgrid' | 'resend';
|
|
7
8
|
export type MailOptions<TGateway extends Gateway = Gateway> = {
|
|
8
9
|
readonly gateways: [TGateway, ...TGateway[]];
|
|
9
10
|
readonly customGateways?: [GatewayClass, ...GatewayClass[]];
|
|
@@ -13,4 +14,6 @@ export type MailOptions<TGateway extends Gateway = Gateway> = {
|
|
|
13
14
|
slack: SlackOptions;
|
|
14
15
|
}> & ExtendsOrEmpty<'sendgrid', TGateway, {
|
|
15
16
|
sendgrid: SendgridOptions;
|
|
17
|
+
}> & ExtendsOrEmpty<'resend', TGateway, {
|
|
18
|
+
resend: ResendOptions;
|
|
16
19
|
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resend.types.js","sourceRoot":"","sources":["../../src/types/resend.types.ts"],"names":[],"mappings":""}
|
package/eslint.config.js
CHANGED
|
@@ -2,7 +2,7 @@ const path = require('path');
|
|
|
2
2
|
const tsParser = require('@typescript-eslint/parser');
|
|
3
3
|
const tsPlugin = require('@typescript-eslint/eslint-plugin');
|
|
4
4
|
const prettierPlugin = require('eslint-plugin-prettier');
|
|
5
|
-
const stylisticTs = require('@stylistic/eslint-plugin
|
|
5
|
+
const stylisticTs = require('@stylistic/eslint-plugin');
|
|
6
6
|
const importPlugin = require('eslint-plugin-import');
|
|
7
7
|
const { defineFlatConfig } = require('eslint-define-config');
|
|
8
8
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pixelplex/mail-service",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.8",
|
|
4
4
|
"description": "Mail service",
|
|
5
5
|
"author": "dev@pixelplex.io",
|
|
6
6
|
"private": false,
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"prebuild": "rimraf dist",
|
|
11
11
|
"build": "nest build",
|
|
12
12
|
"format": "prettier --write \"src/**/*.ts\"",
|
|
13
|
-
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\"",
|
|
14
|
-
"lint:fix": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
|
|
13
|
+
"lint": "eslint --cache \"{src,apps,libs,test}/**/*.ts\"",
|
|
14
|
+
"lint:fix": "eslint --cache \"{src,apps,libs,test}/**/*.ts\" --fix",
|
|
15
15
|
"test": "jest",
|
|
16
16
|
"test:watch": "jest --watch",
|
|
17
17
|
"test:cov": "jest --coverage",
|
|
@@ -23,55 +23,58 @@
|
|
|
23
23
|
"commit": "git-cz"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@nestjs/common": "^
|
|
27
|
-
"@nestjs/core": "^
|
|
28
|
-
"@sendgrid/mail": "^8.1.
|
|
29
|
-
"axios": "^1.
|
|
30
|
-
"handlebars": "^4.7.
|
|
31
|
-
"nodemailer": "^
|
|
26
|
+
"@nestjs/common": "^11.1.18",
|
|
27
|
+
"@nestjs/core": "^11.1.18",
|
|
28
|
+
"@sendgrid/mail": "^8.1.6",
|
|
29
|
+
"axios": "^1.14.0",
|
|
30
|
+
"handlebars": "^4.7.9",
|
|
31
|
+
"nodemailer": "^8.0.5",
|
|
32
32
|
"reflect-metadata": "^0.2.2",
|
|
33
|
-
"
|
|
33
|
+
"resend": "^6.0.2",
|
|
34
|
+
"rimraf": "^6.1.3",
|
|
35
|
+
"rxjs": "^7.8.2"
|
|
34
36
|
},
|
|
35
37
|
"devDependencies": {
|
|
36
|
-
"@commitlint/cli": "^
|
|
37
|
-
"@commitlint/config-conventional": "^
|
|
38
|
-
"@commitlint/cz-commitlint": "^
|
|
39
|
-
"@nestjs/cli": "^
|
|
40
|
-
"@nestjs/schematics": "^
|
|
41
|
-
"@nestjs/testing": "^
|
|
42
|
-
"@
|
|
43
|
-
"@types/
|
|
44
|
-
"@types/
|
|
45
|
-
"@types/
|
|
46
|
-
"@
|
|
47
|
-
"@typescript-eslint/
|
|
48
|
-
"@
|
|
49
|
-
"@stylistic/eslint-plugin-ts": "^2.12.1",
|
|
38
|
+
"@commitlint/cli": "^20.5.0",
|
|
39
|
+
"@commitlint/config-conventional": "^20.5.0",
|
|
40
|
+
"@commitlint/cz-commitlint": "^20.5.1",
|
|
41
|
+
"@nestjs/cli": "^11.0.18",
|
|
42
|
+
"@nestjs/schematics": "^11.0.10",
|
|
43
|
+
"@nestjs/testing": "^11.1.18",
|
|
44
|
+
"@stylistic/eslint-plugin": "5.10.0",
|
|
45
|
+
"@types/jest": "^30.0.0",
|
|
46
|
+
"@types/node": "^25.5.2",
|
|
47
|
+
"@types/nodemailer": "^8.0.0",
|
|
48
|
+
"@types/supertest": "^7.2.0",
|
|
49
|
+
"@typescript-eslint/eslint-plugin": "^8.58.1",
|
|
50
|
+
"@typescript-eslint/parser": "^8.58.1",
|
|
50
51
|
"audit-ci": "^7.1.0",
|
|
51
52
|
"commitizen": "^4.3.1",
|
|
52
|
-
"eslint": "^9.
|
|
53
|
-
"eslint-config-prettier": "^
|
|
53
|
+
"eslint": "^9.39.4",
|
|
54
|
+
"eslint-config-prettier": "^10.1.8",
|
|
54
55
|
"eslint-define-config": "^2.1.0",
|
|
55
|
-
"eslint-import-resolver-typescript": "^
|
|
56
|
-
"eslint-plugin-import": "^2.
|
|
57
|
-
"eslint-plugin-prettier": "^5.
|
|
56
|
+
"eslint-import-resolver-typescript": "^4.4.4",
|
|
57
|
+
"eslint-plugin-import": "^2.32.0",
|
|
58
|
+
"eslint-plugin-prettier": "^5.5.5",
|
|
58
59
|
"husky": "^9.1.7",
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"ts-
|
|
60
|
+
"inquirer": "^13.4.1",
|
|
61
|
+
"jest": "^30.3.0",
|
|
62
|
+
"lint-staged": "^16.4.0",
|
|
63
|
+
"prettier": "^3.8.1",
|
|
64
|
+
"pretty-quick": "^4.2.2",
|
|
65
|
+
"supertest": "^7.2.2",
|
|
66
|
+
"ts-jest": "^29.4.9",
|
|
67
|
+
"ts-loader": "^9.5.7",
|
|
66
68
|
"ts-node": "^10.9.2",
|
|
67
69
|
"tsconfig-paths": "^4.2.0",
|
|
68
70
|
"tslint": "^6.1.3",
|
|
69
|
-
"typescript": "^5.
|
|
71
|
+
"typescript": "^5.9.3",
|
|
72
|
+
"webpack": "^5.105.4"
|
|
70
73
|
},
|
|
71
74
|
"resolutions": {
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
+
"tmp": ">=0.2.4",
|
|
76
|
+
"picomatch": ">=2.3.2",
|
|
77
|
+
"lodash": ">=4.18.0"
|
|
75
78
|
},
|
|
76
79
|
"jest": {
|
|
77
80
|
"moduleFileExtensions": [
|