@arkstack/notifications 0.7.4 → 0.7.6

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/dist/index.d.ts CHANGED
@@ -163,7 +163,7 @@ declare class Notification<D extends keyof DriverMap = keyof DriverMap> {
163
163
  static email(options?: MailDriverOptions): MailNotification;
164
164
  static sms(options?: SmsDriverOptions): SmsNotification;
165
165
  static db(): DbNotification;
166
- static channel(channel?: NotificationChannel | 'email', options?: MailDriverOptions | SmsDriverOptions): DbNotification | MailNotification | SmsNotification;
166
+ static channel(channel?: NotificationChannel | 'email', options?: MailDriverOptions | SmsDriverOptions): MailNotification | SmsNotification | DbNotification;
167
167
  prepare(recipient?: null | MailRecipient | NotificationRecipient | NotificationUser, data?: NotificationData): DriverMap[D];
168
168
  private static createDriver;
169
169
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arkstack/notifications",
3
- "version": "0.7.4",
3
+ "version": "0.7.6",
4
4
  "type": "module",
5
5
  "description": "Framework-agnostic notification module for Arkstack and Nodejs, providing support for multi-channel notification delivery.",
6
6
  "homepage": "https://arkstack.toneflix.net/guide/notifications",
@@ -20,7 +20,8 @@
20
20
  "arkstack"
21
21
  ],
22
22
  "files": [
23
- "dist"
23
+ "dist",
24
+ "resources"
24
25
  ],
25
26
  "publishConfig": {
26
27
  "access": "public"
@@ -33,10 +34,10 @@
33
34
  "africastalking": "^0.8.0",
34
35
  "nodemailer": "^8.0.7",
35
36
  "twilio": "^6.0.0",
36
- "@arkstack/common": "^0.7.4"
37
+ "@arkstack/common": "^0.7.6"
37
38
  },
38
39
  "peerDependencies": {
39
- "@arkstack/database": "^0.7.4"
40
+ "@arkstack/database": "^0.7.6"
40
41
  },
41
42
  "devDependencies": {
42
43
  "@types/nodemailer": "^7.0.11"
@@ -0,0 +1,10 @@
1
+ <!doctype html>
2
+ <html>
3
+
4
+ <body style="font-family:Arial,sans-serif;line-height:1.5;color:#111827">
5
+ <h2>{{{ subject }}}</h2>
6
+ <div>{{{ message }}}</div>
7
+ <p style="color:#6b7280;font-size:12px">&copy; {{ year }} {{ app_name }}</p>
8
+ </body>
9
+
10
+ </html>