@stacksjs/notifications 0.49.2 → 0.50.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 CHANGED
@@ -41,11 +41,13 @@ There are different option types for Chat, Email, and SMS drivers. To use any dr
41
41
 
42
42
  ```ts
43
43
  interface ChatOptions {
44
+ providerName?: 'discord' | 'slack'
44
45
  webhookUrl: string
45
46
  content: string
46
47
  }
47
48
 
48
49
  interface EmailOptions {
50
+ providerName?: 'sendgrid' | 'emailjs' | 'mailjet' | 'mandrill' | 'netcore' | 'nodemailer' | 'postmark' | 'ses'
49
51
  to: string | string[]
50
52
  subject: string
51
53
  html: string
@@ -56,6 +58,7 @@ interface EmailOptions {
56
58
  }
57
59
 
58
60
  interface SMSOptions {
61
+ providerName?: 'gupshup' | 'nexmo' | 'plivo' | 'sms77' | 'sns' | 'telnyx' | 'termii' | 'twilio'
59
62
  to: string
60
63
  content: string
61
64
  from?: string
package/dist/index.d.ts CHANGED
@@ -6,8 +6,8 @@ import * as sms from '@stacksjs/sms';
6
6
  export { sms };
7
7
 
8
8
  declare const useChat: (driver?: string) => typeof chat.slack | typeof chat.discord;
9
- declare const useEmail: (driver?: string) => typeof email.sendgrid | typeof email.mailgun | typeof email.mailjet | typeof email.mandrill | typeof email.netcore | typeof email.nodemailer | typeof email.postmark | typeof email.ses | typeof email.emailjs;
10
- declare const useSMS: (driver?: string) => typeof sms.twilio | typeof sms.plivo | typeof sms.nexmo | typeof sms.sms77 | typeof sms.sns | typeof sms.gupshup | typeof sms.telnyx | typeof sms.termii;
9
+ declare const useEmail: (driver?: string) => typeof email.sendgrid | typeof email.emailjs | typeof email.mailjet | typeof email.mandrill | typeof email.netcore | typeof email.nodemailer | typeof email.postmark | typeof email.ses | typeof email.mailgun;
10
+ declare const useSMS: (driver?: string) => typeof sms.twilio | typeof sms.nexmo | typeof sms.gupshup | typeof sms.plivo | typeof sms.sms77 | typeof sms.sns | typeof sms.telnyx | typeof sms.termii;
11
11
  declare function useNotification(typeParam?: string, driverParam?: string): any;
12
12
  declare function notification(): any;
13
13
 
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/notifications",
3
3
  "type": "module",
4
- "version": "0.49.2",
5
- "packageManager": "pnpm@7.25.0",
4
+ "version": "0.50.0",
5
+ "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks notifications integration.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -28,7 +28,6 @@
28
28
  "discord",
29
29
  "webhooks",
30
30
  "stacks",
31
- "Maizzle",
32
31
  "maizzle"
33
32
  ],
34
33
  "main": "dist/index.mjs",
@@ -43,10 +42,9 @@
43
42
  ],
44
43
  "engines": {
45
44
  "node": ">=v18.13.0",
46
- "pnpm": ">=7.25.0"
45
+ "pnpm": ">=7.25.1"
47
46
  },
48
47
  "peerDependencies": {
49
- "@maizzle/framework": "^4.3.1",
50
48
  "@novu/discord": "^0.10.2",
51
49
  "@novu/emailjs": "^0.10.2",
52
50
  "@novu/gupshup": "^0.10.2",
@@ -68,20 +66,23 @@
68
66
  "@novu/telnyx": "^0.10.2",
69
67
  "@novu/termii": "^0.10.2",
70
68
  "@novu/twilio": "^0.10.2",
71
- "@stacksjs/chat": "0.49.2",
72
- "@stacksjs/cli": "0.49.2",
73
- "@stacksjs/config": "0.49.2",
74
- "@stacksjs/email": "0.49.2",
75
- "@stacksjs/error-handling": "0.49.2",
76
- "@stacksjs/push": "0.49.2",
77
- "@stacksjs/sms": "0.49.2",
78
- "@stacksjs/types": "0.49.2"
69
+ "@stacksjs/chat": "0.50.0",
70
+ "@stacksjs/cli": "0.50.0",
71
+ "@stacksjs/config": "0.50.0",
72
+ "@stacksjs/email": "0.50.0",
73
+ "@stacksjs/error-handling": "0.50.0",
74
+ "@stacksjs/push": "0.50.0",
75
+ "@stacksjs/sms": "0.50.0",
76
+ "@stacksjs/types": "0.50.0"
77
+ },
78
+ "dependencies": {
79
+ "@maizzle/framework": "^4.3.1"
79
80
  },
80
81
  "devDependencies": {
81
82
  "mkdist": "^1.1.0",
82
83
  "typescript": "^4.9.4",
83
84
  "unbuild": "^1.1.1",
84
- "@stacksjs/testing": "0.49.2"
85
+ "@stacksjs/testing": "0.50.0"
85
86
  },
86
87
  "scripts": {
87
88
  "build": "unbuild",