@stacksjs/sms 0.52.10 → 0.56.3
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/drivers/gupshup.d.ts +1 -2
- package/dist/drivers/gupshup.mjs +1 -1
- package/dist/drivers/nexmo.d.ts +1 -2
- package/dist/drivers/nexmo.mjs +3 -2
- package/dist/drivers/plivo.d.ts +1 -2
- package/dist/drivers/plivo.mjs +3 -2
- package/dist/drivers/sms77.d.ts +1 -2
- package/dist/drivers/sms77.mjs +3 -2
- package/dist/drivers/sns.d.ts +1 -2
- package/dist/drivers/sns.mjs +1 -1
- package/dist/drivers/telnyx.d.ts +1 -2
- package/dist/drivers/telnyx.mjs +3 -2
- package/dist/drivers/termii.d.ts +1 -2
- package/dist/drivers/termii.mjs +3 -2
- package/dist/drivers/twilio.d.ts +1 -2
- package/dist/drivers/twilio.mjs +3 -2
- package/package.json +18 -18
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import type { SmsOptions } from '@stacksjs/types';
|
|
2
|
-
|
|
3
|
-
declare function send(options: SmsOptions): ResultAsync<import("@stacksjs/types").SendMessageSuccessResponse, Error>;
|
|
2
|
+
declare function send(options: SmsOptions): any;
|
|
4
3
|
export { send as Send, send };
|
package/dist/drivers/gupshup.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { GupshupSmsProvider } from "@novu/gupshup";
|
|
|
2
2
|
import { italic } from "@stacksjs/cli";
|
|
3
3
|
import { ResultAsync } from "@stacksjs/error-handling";
|
|
4
4
|
import { notification } from "@stacksjs/config";
|
|
5
|
-
const env = notification.sms?.gupshup;
|
|
5
|
+
const env = notification.sms?.drivers.gupshup;
|
|
6
6
|
const provider = new GupshupSmsProvider({
|
|
7
7
|
userId: env?.user || "",
|
|
8
8
|
password: env?.password || ""
|
package/dist/drivers/nexmo.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import type { SmsOptions } from '@stacksjs/types';
|
|
2
|
-
|
|
3
|
-
declare function send(options: SmsOptions): ResultAsync<import("@stacksjs/types").SendMessageSuccessResponse, Error>;
|
|
2
|
+
declare function send(options: SmsOptions): any;
|
|
4
3
|
export { send as Send, send };
|
package/dist/drivers/nexmo.mjs
CHANGED
|
@@ -2,11 +2,12 @@ import { NexmoSmsProvider } from "@novu/nexmo";
|
|
|
2
2
|
import { italic } from "@stacksjs/cli";
|
|
3
3
|
import { ResultAsync } from "@stacksjs/error-handling";
|
|
4
4
|
import { notification } from "@stacksjs/config";
|
|
5
|
-
const
|
|
5
|
+
const from = notification.sms?.from;
|
|
6
|
+
const env = notification.sms?.drivers.nexmo;
|
|
6
7
|
const provider = new NexmoSmsProvider({
|
|
7
8
|
apiKey: env?.key || "",
|
|
8
9
|
apiSecret: env?.secret || "",
|
|
9
|
-
from:
|
|
10
|
+
from: from || ""
|
|
10
11
|
});
|
|
11
12
|
function send(options) {
|
|
12
13
|
return ResultAsync.fromPromise(
|
package/dist/drivers/plivo.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import type { SmsOptions } from '@stacksjs/types';
|
|
2
|
-
|
|
3
|
-
declare function send(options: SmsOptions): ResultAsync<import("@stacksjs/types").SendMessageSuccessResponse, Error>;
|
|
2
|
+
declare function send(options: SmsOptions): any;
|
|
4
3
|
export { send as Send, send };
|
package/dist/drivers/plivo.mjs
CHANGED
|
@@ -2,11 +2,12 @@ import { PlivoSmsProvider } from "@novu/plivo";
|
|
|
2
2
|
import { italic } from "@stacksjs/cli";
|
|
3
3
|
import { ResultAsync } from "@stacksjs/error-handling";
|
|
4
4
|
import { notification } from "@stacksjs/config";
|
|
5
|
-
const
|
|
5
|
+
const from = notification.sms?.from;
|
|
6
|
+
const env = notification.sms?.drivers.plivo;
|
|
6
7
|
const provider = new PlivoSmsProvider({
|
|
7
8
|
accountSid: env?.sid,
|
|
8
9
|
authToken: env?.authToken,
|
|
9
|
-
from:
|
|
10
|
+
from: from || ""
|
|
10
11
|
});
|
|
11
12
|
function send(options) {
|
|
12
13
|
return ResultAsync.fromPromise(
|
package/dist/drivers/sms77.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import type { SmsOptions } from '@stacksjs/types';
|
|
2
|
-
|
|
3
|
-
declare function send(options: SmsOptions): ResultAsync<import("@stacksjs/types").SendMessageSuccessResponse, Error>;
|
|
2
|
+
declare function send(options: SmsOptions): any;
|
|
4
3
|
export { send as Send, send };
|
package/dist/drivers/sms77.mjs
CHANGED
|
@@ -2,10 +2,11 @@ import { Sms77SmsProvider } from "@novu/sms77";
|
|
|
2
2
|
import { italic } from "@stacksjs/cli";
|
|
3
3
|
import { ResultAsync } from "@stacksjs/error-handling";
|
|
4
4
|
import { notification } from "@stacksjs/config";
|
|
5
|
-
const
|
|
5
|
+
const from = notification.sms?.from;
|
|
6
|
+
const env = notification.sms?.drivers.sms77;
|
|
6
7
|
const provider = new Sms77SmsProvider({
|
|
7
8
|
apiKey: env?.key,
|
|
8
|
-
from
|
|
9
|
+
from
|
|
9
10
|
});
|
|
10
11
|
function send(options) {
|
|
11
12
|
return ResultAsync.fromPromise(
|
package/dist/drivers/sns.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import type { SmsOptions } from '@stacksjs/types';
|
|
2
|
-
|
|
3
|
-
declare function send(options: SmsOptions): ResultAsync<import("@stacksjs/types").SendMessageSuccessResponse, Error>;
|
|
2
|
+
declare function send(options: SmsOptions): any;
|
|
4
3
|
export { send as Send, send };
|
package/dist/drivers/sns.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { SNSSmsProvider } from "@novu/sns";
|
|
|
2
2
|
import { italic } from "@stacksjs/cli";
|
|
3
3
|
import { ResultAsync } from "@stacksjs/error-handling";
|
|
4
4
|
import { notification } from "@stacksjs/config";
|
|
5
|
-
const env = notification.sms?.sns;
|
|
5
|
+
const env = notification.sms?.drivers.sns;
|
|
6
6
|
const provider = new SNSSmsProvider({
|
|
7
7
|
region: env?.region,
|
|
8
8
|
accessKeyId: env?.key,
|
package/dist/drivers/telnyx.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import type { SmsOptions } from '@stacksjs/types';
|
|
2
|
-
|
|
3
|
-
declare function send(options: SmsOptions): ResultAsync<import("@stacksjs/types").SendMessageSuccessResponse, Error>;
|
|
2
|
+
declare function send(options: SmsOptions): any;
|
|
4
3
|
export { send as Send, send };
|
package/dist/drivers/telnyx.mjs
CHANGED
|
@@ -2,11 +2,12 @@ import { TelnyxSmsProvider } from "@novu/telnyx";
|
|
|
2
2
|
import { italic } from "@stacksjs/cli";
|
|
3
3
|
import { ResultAsync } from "@stacksjs/error-handling";
|
|
4
4
|
import { notification } from "@stacksjs/config";
|
|
5
|
-
const
|
|
5
|
+
const from = notification.sms?.from;
|
|
6
|
+
const env = notification.sms?.drivers.telnyx;
|
|
6
7
|
const provider = new TelnyxSmsProvider({
|
|
7
8
|
apiKey: env?.key,
|
|
8
9
|
messageProfileId: env?.messageProfileId,
|
|
9
|
-
from:
|
|
10
|
+
from: from || ""
|
|
10
11
|
});
|
|
11
12
|
function send(options) {
|
|
12
13
|
return ResultAsync.fromPromise(
|
package/dist/drivers/termii.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import type { SmsOptions } from '@stacksjs/types';
|
|
2
|
-
|
|
3
|
-
declare function send(options: SmsOptions): ResultAsync<import("@stacksjs/types").SendMessageSuccessResponse, Error>;
|
|
2
|
+
declare function send(options: SmsOptions): any;
|
|
4
3
|
export { send as Send, send };
|
package/dist/drivers/termii.mjs
CHANGED
|
@@ -2,10 +2,11 @@ import { TermiiSmsProvider } from "@novu/termii";
|
|
|
2
2
|
import { italic } from "@stacksjs/cli";
|
|
3
3
|
import { ResultAsync } from "@stacksjs/error-handling";
|
|
4
4
|
import { notification } from "@stacksjs/config";
|
|
5
|
-
const
|
|
5
|
+
const from = notification.sms?.from;
|
|
6
|
+
const env = notification.sms?.drivers.termii;
|
|
6
7
|
const provider = new TermiiSmsProvider({
|
|
7
8
|
apiKey: env?.key,
|
|
8
|
-
from:
|
|
9
|
+
from: from || ""
|
|
9
10
|
});
|
|
10
11
|
function send(options) {
|
|
11
12
|
return ResultAsync.fromPromise(
|
package/dist/drivers/twilio.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import type { SmsOptions } from '@stacksjs/types';
|
|
2
|
-
|
|
3
|
-
declare function send(options: SmsOptions): ResultAsync<import("@stacksjs/types").SendMessageSuccessResponse, Error>;
|
|
2
|
+
declare function send(options: SmsOptions): any;
|
|
4
3
|
export { send as Send, send };
|
package/dist/drivers/twilio.mjs
CHANGED
|
@@ -2,11 +2,12 @@ import { TwilioSmsProvider } from "@novu/twilio";
|
|
|
2
2
|
import { italic } from "@stacksjs/cli";
|
|
3
3
|
import { ResultAsync } from "@stacksjs/error-handling";
|
|
4
4
|
import { notification } from "@stacksjs/config";
|
|
5
|
-
const
|
|
5
|
+
const from = notification.sms?.from;
|
|
6
|
+
const env = notification.sms?.drivers.twilio;
|
|
6
7
|
const provider = new TwilioSmsProvider({
|
|
7
8
|
accountSid: env?.sid,
|
|
8
9
|
authToken: env?.authToken,
|
|
9
|
-
from:
|
|
10
|
+
from: from || ""
|
|
10
11
|
});
|
|
11
12
|
function send(options) {
|
|
12
13
|
return ResultAsync.fromPromise(
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/sms",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
5
|
-
"packageManager": "pnpm@8.5
|
|
4
|
+
"version": "0.56.3",
|
|
5
|
+
"packageManager": "pnpm@8.6.5",
|
|
6
6
|
"description": "The Stacks SMS integration. Painlessly create & manage your inboxes, templates, and send sms.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"license": "MIT",
|
|
@@ -44,24 +44,24 @@
|
|
|
44
44
|
"README.md"
|
|
45
45
|
],
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"@novu/gupshup": "^0.
|
|
48
|
-
"@novu/nexmo": "^0.
|
|
49
|
-
"@novu/node": "^0.
|
|
50
|
-
"@novu/plivo": "^0.
|
|
51
|
-
"@novu/sms77": "^0.
|
|
52
|
-
"@novu/sns": "^0.
|
|
53
|
-
"@novu/stateless": "^0.
|
|
54
|
-
"@novu/telnyx": "^0.
|
|
55
|
-
"@novu/termii": "^0.
|
|
56
|
-
"@novu/twilio": "^0.
|
|
57
|
-
"@stacksjs/cli": "0.
|
|
58
|
-
"@stacksjs/
|
|
59
|
-
"@stacksjs/
|
|
60
|
-
"@stacksjs/types": "0.
|
|
47
|
+
"@novu/gupshup": "^0.16.1",
|
|
48
|
+
"@novu/nexmo": "^0.16.1",
|
|
49
|
+
"@novu/node": "^0.16.1",
|
|
50
|
+
"@novu/plivo": "^0.16.1",
|
|
51
|
+
"@novu/sms77": "^0.16.1",
|
|
52
|
+
"@novu/sns": "^0.16.1",
|
|
53
|
+
"@novu/stateless": "^0.16.1",
|
|
54
|
+
"@novu/telnyx": "^0.16.1",
|
|
55
|
+
"@novu/termii": "^0.16.1",
|
|
56
|
+
"@novu/twilio": "^0.16.1",
|
|
57
|
+
"@stacksjs/cli": "0.56.3",
|
|
58
|
+
"@stacksjs/error-handling": "0.56.3",
|
|
59
|
+
"@stacksjs/config": "0.56.3",
|
|
60
|
+
"@stacksjs/types": "0.56.3"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@stacksjs/config": "0.
|
|
64
|
-
"@stacksjs/development": "0.
|
|
63
|
+
"@stacksjs/config": "0.56.3",
|
|
64
|
+
"@stacksjs/development": "0.56.3"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
67
|
"build": "unbuild",
|