@moreapp/common-nodejs 0.13.3 → 0.13.4

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.
@@ -31,7 +31,7 @@ class MailService {
31
31
  recipients: [recipient],
32
32
  customerId,
33
33
  content: {
34
- type: "TEMPLATE",
34
+ type: "template",
35
35
  template,
36
36
  variables: variables ?? {},
37
37
  language,
@@ -44,7 +44,7 @@ class MailService {
44
44
  recipients,
45
45
  customerId,
46
46
  content: {
47
- type: "HTML",
47
+ type: "html",
48
48
  subject,
49
49
  html: body,
50
50
  attachments,
@@ -79,7 +79,7 @@ const newService = () => new MailService_1.MailService("some-service-name", base
79
79
  replyTo: "reply@example.com",
80
80
  recipients,
81
81
  content: {
82
- type: "HTML",
82
+ type: "html",
83
83
  html: "<p>Body</p>",
84
84
  subject: "Hello",
85
85
  attachments,
@@ -108,7 +108,7 @@ const newService = () => new MailService_1.MailService("some-service-name", base
108
108
  customerId: 42,
109
109
  recipients: [{ type: "to", email: "someone@example.com" }],
110
110
  content: {
111
- type: "TEMPLATE",
111
+ type: "template",
112
112
  template: "welcome",
113
113
  language: "en",
114
114
  variables: { firstName: "Someone" },
@@ -132,7 +132,7 @@ const newService = () => new MailService_1.MailService("some-service-name", base
132
132
  (0, vitest_1.expect)(result).toEqual({ id: "mail-000" });
133
133
  (0, vitest_1.expect)(requestBody).toMatchObject({
134
134
  content: {
135
- type: "TEMPLATE",
135
+ type: "template",
136
136
  template: "welcome",
137
137
  language: "en",
138
138
  variables: {},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moreapp/common-nodejs",
3
- "version": "0.13.3",
3
+ "version": "0.13.4",
4
4
  "license": "UNLICENSED",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -57,8 +57,8 @@
57
57
  "@types/node": "24.13.3",
58
58
  "@typescript-eslint/eslint-plugin": "8.67.0",
59
59
  "@typescript-eslint/parser": "8.67.0",
60
- "@vitest/coverage-v8": "4.1.10",
61
- "@vitest/ui": "4.1.10",
60
+ "@vitest/coverage-v8": "4.1.11",
61
+ "@vitest/ui": "4.1.11",
62
62
  "eslint": "9.39.5",
63
63
  "eslint-config-prettier": "10.1.8",
64
64
  "eslint-plugin-prettier": "5.5.6",
@@ -69,7 +69,7 @@
69
69
  "ts-node": "10.9.2",
70
70
  "typescript": "6.0.3",
71
71
  "typescript-eslint": "8.67.0",
72
- "vitest": "4.1.10",
72
+ "vitest": "4.1.11",
73
73
  "vitest-mock-extended": "5.1.1"
74
74
  },
75
75
  "prettier": {