@stacksjs/sms 0.64.6 → 0.67.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.
File without changes
@@ -0,0 +1,8 @@
1
+ export * as gupshup from "./gupshup";
2
+ export * as nexmo from "./nexmo";
3
+ export * as plivo from "./plivo";
4
+ export * as sms77 from "./sms77";
5
+ export * as sns from "./sns";
6
+ export * as telnyx from "./telnyx";
7
+ export * as termii from "./termii";
8
+ export * as twilio from "./twilio";
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1 @@
1
+ export * from "./drivers";
package/dist/index.js CHANGED
@@ -1,5 +1,2 @@
1
1
  // @bun
2
- var s={};var o={};var r={};var i={};var e={};var n={};var t={};var m={};export{s as twilio,m as termii,t as telnyx,e as sns,i as sms77,o as plivo,r as nexmo,n as gupshup};
3
-
4
- //# debugId=F4F69A8CEBC43B8A64756E2164756E21
5
- //# sourceMappingURL=index.js.map
2
+ var s={};var o={};var r={};var i={};var e={};var n={};var t={};var m={};export{m as twilio,t as termii,n as telnyx,e as sns,i as sms77,r as plivo,o as nexmo,s as gupshup};
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@stacksjs/sms",
3
3
  "type": "module",
4
- "version": "0.64.6",
4
+ "version": "0.67.0",
5
5
  "description": "The Stacks SMS integration. Painlessly create & manage your inboxes, templates, and send sms.",
6
6
  "author": "Chris Breuer",
7
+ "contributors": ["Chris Breuer <chris@stacksjs.org>"],
7
8
  "license": "MIT",
8
9
  "funding": "https://github.com/sponsors/chrisbbreuer",
9
10
  "homepage": "https://github.com/stacksjs/stacks/tree/main/storage/framework/core/sms#readme",
@@ -29,37 +30,28 @@
29
30
  ],
30
31
  "exports": {
31
32
  ".": {
32
- "bun": "./src/index.ts",
33
33
  "import": "./dist/index.js"
34
34
  },
35
35
  "./*": {
36
- "bun": "./src/*",
37
36
  "import": "./dist/*"
38
37
  }
39
38
  },
40
39
  "module": "dist/index.js",
41
40
  "types": "dist/index.d.ts",
42
- "contributors": [
43
- "Chris Breuer <chris@stacksjs.org>"
44
- ],
45
- "files": [
46
- "README.md",
47
- "dist",
48
- "src"
49
- ],
41
+ "files": ["README.md", "dist"],
50
42
  "scripts": {
51
- "build": "bun --bun build.ts",
52
- "typecheck": "bun --bun tsc --noEmit",
43
+ "build": "bun build.ts",
44
+ "typecheck": "bun tsc --noEmit",
53
45
  "prepublishOnly": "bun run build"
54
46
  },
55
47
  "dependencies": {
56
- "@stacksjs/cli": "latest",
57
- "@stacksjs/config": "latest",
58
- "@stacksjs/error-handling": "latest",
59
- "@stacksjs/types": "latest"
48
+ "@stacksjs/cli": "0.67.0",
49
+ "@stacksjs/config": "0.67.0",
50
+ "@stacksjs/error-handling": "0.67.0",
51
+ "@stacksjs/types": "0.67.0"
60
52
  },
61
53
  "devDependencies": {
62
- "@stacksjs/config": "latest",
63
- "@stacksjs/development": "latest"
54
+ "@stacksjs/config": "0.67.0",
55
+ "@stacksjs/development": "0.67.0"
64
56
  }
65
57
  }
package/dist/index.js.map DELETED
@@ -1,9 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": [],
4
- "sourcesContent": [
5
- ],
6
- "mappings": "",
7
- "debugId": "F4F69A8CEBC43B8A64756E2164756E21",
8
- "names": []
9
- }
@@ -1,21 +0,0 @@
1
- // import { GupshupSmsProvider } from '@novu/gupshup'
2
- // import { italic } from '@stacksjs/cli'
3
- // import type { SmsOptions } from '@stacksjs/types'
4
- // import { ResultAsync } from '@stacksjs/error-handling'
5
- // import { notification } from '@stacksjs/config'
6
-
7
- // const env = notification.sms?.drivers.gupshup
8
-
9
- // const provider = new GupshupSmsProvider({
10
- // userId: env?.user || '',
11
- // password: env?.password || '',
12
- // })
13
-
14
- // function send(options: SmsOptions) {
15
- // return ResultAsync.fromPromise(
16
- // provider.sendMessage(options),
17
- // () => new Error(`Failed to send message using provider: ${italic('Gupshup')}`),
18
- // )
19
- // }
20
-
21
- // export { send as Send, send }
@@ -1,8 +0,0 @@
1
- export * as twilio from './twilio'
2
- export * as plivo from './plivo'
3
- export * as nexmo from './nexmo'
4
- export * as sms77 from './sms77'
5
- export * as sns from './sns'
6
- export * as gupshup from './gupshup'
7
- export * as telnyx from './telnyx'
8
- export * as termii from './termii'
@@ -1,23 +0,0 @@
1
- // import { NexmoSmsProvider } from '@novu/nexmo'
2
- // import { italic } from '@stacksjs/cli'
3
- // import type { SmsOptions } from '@stacksjs/types'
4
- // import { ResultAsync } from '@stacksjs/error-handling'
5
- // import { notification } from '@stacksjs/config'
6
-
7
- // const from = notification.sms?.from
8
- // const env = notification.sms?.drivers.nexmo
9
-
10
- // const provider = new NexmoSmsProvider({
11
- // apiKey: env?.key || '',
12
- // apiSecret: env?.secret || '',
13
- // from: from || '',
14
- // })
15
-
16
- // function send(options: SmsOptions) {
17
- // return ResultAsync.fromPromise(
18
- // provider.sendMessage(options),
19
- // () => new Error(`Failed to send message using provider: ${italic('Nexmo')}`),
20
- // )
21
- // }
22
-
23
- // export { send as Send, send }
@@ -1,23 +0,0 @@
1
- // import { PlivoSmsProvider } from '@novu/plivo'
2
- // import { italic } from '@stacksjs/cli'
3
- // import type { SmsOptions } from '@stacksjs/types'
4
- // import { ResultAsync } from '@stacksjs/error-handling'
5
- // import { notification } from '@stacksjs/config'
6
-
7
- // const from = notification.sms?.from
8
- // const env = notification.sms?.drivers.plivo
9
-
10
- // const provider = new PlivoSmsProvider({
11
- // accountSid: env?.sid,
12
- // authToken: env?.authToken,
13
- // from: from || '',
14
- // })
15
-
16
- // function send(options: SmsOptions) {
17
- // return ResultAsync.fromPromise(
18
- // provider.sendMessage(options),
19
- // () => new Error(`Failed to send message using provider: ${italic('Plivo')}`),
20
- // )
21
- // }
22
-
23
- // export { send as Send, send }
@@ -1,22 +0,0 @@
1
- // import { Sms77SmsProvider } from '@novu/sms77'
2
- // import { italic } from '@stacksjs/cli'
3
- // import type { SmsOptions } from '@stacksjs/types'
4
- // import { ResultAsync } from '@stacksjs/error-handling'
5
- // import { notification } from '@stacksjs/config'
6
-
7
- // const from = notification.sms?.from
8
- // const env = notification.sms?.drivers.sms77
9
-
10
- // const provider = new Sms77SmsProvider({
11
- // apiKey: env?.key,
12
- // from,
13
- // })
14
-
15
- // function send(options: SmsOptions) {
16
- // return ResultAsync.fromPromise(
17
- // provider.sendMessage(options),
18
- // () => new Error(`Failed to send message using provider: ${italic('Sms77')}`),
19
- // )
20
- // }
21
-
22
- // export { send as Send, send }
@@ -1,22 +0,0 @@
1
- // import { SNSSmsProvider } from '@novu/sns'
2
- // import { italic } from '@stacksjs/cli'
3
- // import type { SmsOptions } from '@stacksjs/types'
4
- // import { ResultAsync } from '@stacksjs/error-handling'
5
- // import { notification } from '@stacksjs/config'
6
-
7
- // const env = notification.sms?.drivers.sns
8
-
9
- // const provider = new SNSSmsProvider({
10
- // region: env?.region,
11
- // accessKeyId: env?.key,
12
- // secretAccessKey: env?.secret,
13
- // })
14
-
15
- // function send(options: SmsOptions) {
16
- // return ResultAsync.fromPromise(
17
- // provider.sendMessage(options),
18
- // () => new Error(`Failed to send message using provider: ${italic('SNS')}`),
19
- // )
20
- // }
21
-
22
- // export { send as Send, send }
@@ -1,23 +0,0 @@
1
- // import { TelnyxSmsProvider } from '@novu/telnyx'
2
- // import { italic } from '@stacksjs/cli'
3
- // import type { SmsOptions } from '@stacksjs/types'
4
- // import { ResultAsync } from '@stacksjs/error-handling'
5
- // import { notification } from '@stacksjs/config'
6
-
7
- // const from = notification.sms?.from
8
- // const env = notification.sms?.drivers.telnyx
9
-
10
- // const provider = new TelnyxSmsProvider({
11
- // apiKey: env?.key,
12
- // messageProfileId: env?.messageProfileId,
13
- // from: from || '',
14
- // })
15
-
16
- // function send(options: SmsOptions) {
17
- // return ResultAsync.fromPromise(
18
- // provider.sendMessage(options),
19
- // () => new Error(`Failed to send message using provider: ${italic('Telnyx')}`),
20
- // )
21
- // }
22
-
23
- // export { send as Send, send }
@@ -1,22 +0,0 @@
1
- // import { TermiiSmsProvider } from '@novu/termii'
2
- // import { italic } from '@stacksjs/cli'
3
- // import type { SmsOptions } from '@stacksjs/types'
4
- // import { ResultAsync } from '@stacksjs/error-handling'
5
- // import { notification } from '@stacksjs/config'
6
-
7
- // const from = notification.sms?.from
8
- // const env = notification.sms?.drivers.termii
9
-
10
- // const provider = new TermiiSmsProvider({
11
- // apiKey: env?.key,
12
- // from: from || '',
13
- // })
14
-
15
- // function send(options: SmsOptions) {
16
- // return ResultAsync.fromPromise(
17
- // provider.sendMessage(options),
18
- // () => new Error(`Failed to send message using provider: ${italic('Termii')}`),
19
- // )
20
- // }
21
-
22
- // export { send as Send, send }
@@ -1,23 +0,0 @@
1
- // import { TwilioSmsProvider } from '@novu/twilio'
2
- // import { italic } from '@stacksjs/cli'
3
- // import type { SmsOptions } from '@stacksjs/types'
4
- // import { ResultAsync } from '@stacksjs/error-handling'
5
- // import { notification } from '@stacksjs/config'
6
-
7
- // const from = notification.sms?.from
8
- // const env = notification.sms?.drivers.twilio
9
-
10
- // const provider = new TwilioSmsProvider({
11
- // accountSid: env?.sid,
12
- // authToken: env?.authToken,
13
- // from: from || '',
14
- // })
15
-
16
- // function send(options: SmsOptions) {
17
- // return ResultAsync.fromPromise(
18
- // provider.sendMessage(options),
19
- // () => new Error(`Failed to send message using provider: ${italic('Twilio')}`),
20
- // )
21
- // }
22
-
23
- // export { send as Send, send }
package/src/index.ts DELETED
@@ -1 +0,0 @@
1
- export * from './drivers'