@stacksjs/chat 0.65.0 → 0.68.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/dist/index.d.ts +3 -3
- package/dist/index.js +0 -3
- package/dist/slack.d.ts +1 -0
- package/dist/teams.d.ts +1 -0
- package/package.json +7 -9
- package/dist/drivers/discord.d.ts +0 -0
- package/dist/drivers/slack.d.ts +0 -1
- package/dist/drivers/teams.d.ts +0 -1
- package/dist/index.js.map +0 -9
- package/src/drivers/discord.ts +0 -15
- package/src/drivers/slack.ts +0 -24
- package/src/drivers/teams.ts +0 -24
- package/src/index.ts +0 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * as discord from
|
|
2
|
-
export * as slack from
|
|
3
|
-
export * as teams from
|
|
1
|
+
export * as discord from './drivers/discord'
|
|
2
|
+
export * as slack from './drivers/slack'
|
|
3
|
+
export * as teams from './drivers/teams'
|
package/dist/index.js
CHANGED
package/dist/slack.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type {};
|
package/dist/teams.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/chat",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.68.0",
|
|
5
5
|
"description": "Easily interact with chat APIs.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"contributors": ["Chris Breuer <chris@stacksjs.org>"],
|
|
@@ -19,29 +19,27 @@
|
|
|
19
19
|
"keywords": ["chat", "stacks", "discord", "microsoft teams", "slack"],
|
|
20
20
|
"exports": {
|
|
21
21
|
".": {
|
|
22
|
-
"bun": "./src/index.ts",
|
|
23
22
|
"import": "./dist/index.js"
|
|
24
23
|
},
|
|
25
24
|
"./*": {
|
|
26
|
-
"bun": "./src/*",
|
|
27
25
|
"import": "./dist/*"
|
|
28
26
|
}
|
|
29
27
|
},
|
|
30
28
|
"module": "dist/index.js",
|
|
31
29
|
"types": "dist/index.d.ts",
|
|
32
|
-
"files": ["README.md", "dist"
|
|
30
|
+
"files": ["README.md", "dist"],
|
|
33
31
|
"scripts": {
|
|
34
32
|
"build": "bun build.ts",
|
|
35
33
|
"typecheck": "bun tsc --noEmit",
|
|
36
34
|
"prepublishOnly": "bun run build"
|
|
37
35
|
},
|
|
38
36
|
"dependencies": {
|
|
39
|
-
"@stacksjs/cli": "0.
|
|
40
|
-
"@stacksjs/config": "0.
|
|
41
|
-
"@stacksjs/error-handling": "0.
|
|
42
|
-
"@stacksjs/types": "0.
|
|
37
|
+
"@stacksjs/cli": "0.67.0",
|
|
38
|
+
"@stacksjs/config": "0.67.0",
|
|
39
|
+
"@stacksjs/error-handling": "0.67.0",
|
|
40
|
+
"@stacksjs/types": "0.67.0"
|
|
43
41
|
},
|
|
44
42
|
"devDependencies": {
|
|
45
|
-
"@stacksjs/development": "0.
|
|
43
|
+
"@stacksjs/development": "0.67.0"
|
|
46
44
|
}
|
|
47
45
|
}
|
|
File without changes
|
package/dist/drivers/slack.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type {};
|
package/dist/drivers/teams.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type {};
|
package/dist/index.js.map
DELETED
package/src/drivers/discord.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// import { DiscordProvider } from '@novu/discord'
|
|
2
|
-
// import { italic } from '@stacksjs/cli'
|
|
3
|
-
// import type { ChatOptions } from '@stacksjs/types'
|
|
4
|
-
// import { ResultAsync } from '@stacksjs/error-handling'
|
|
5
|
-
|
|
6
|
-
// const provider = new DiscordProvider({})
|
|
7
|
-
|
|
8
|
-
// function send(options: ChatOptions) {
|
|
9
|
-
// return ResultAsync.fromPromise(
|
|
10
|
-
// provider.sendMessage(options),
|
|
11
|
-
// () => new Error(`Failed to send message using provider: ${italic('Discord')}`),
|
|
12
|
-
// )
|
|
13
|
-
// }
|
|
14
|
-
|
|
15
|
-
// export { send as Send, send }
|
package/src/drivers/slack.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
// import { SlackProvider } from '@novu/slack'
|
|
2
|
-
// import { italic } from '@stacksjs/cli'
|
|
3
|
-
// import type { ChatOptions } from '@stacksjs/types'
|
|
4
|
-
// import { ResultAsync } from '@stacksjs/error-handling'
|
|
5
|
-
// import { notification } from '@stacksjs/config'
|
|
6
|
-
|
|
7
|
-
// const env = notification.chat.slack
|
|
8
|
-
|
|
9
|
-
// const provider = new SlackProvider({
|
|
10
|
-
// applicationId: env.appId,
|
|
11
|
-
// clientId: env.clientId,
|
|
12
|
-
// secretKey: env.secret,
|
|
13
|
-
// })
|
|
14
|
-
|
|
15
|
-
// function send(options: ChatOptions) {
|
|
16
|
-
// return ResultAsync.fromPromise(
|
|
17
|
-
// provider.sendMessage(options),
|
|
18
|
-
// () => new Error(`Failed to send message using provider: ${italic('Slack')}`),
|
|
19
|
-
// )
|
|
20
|
-
// }
|
|
21
|
-
|
|
22
|
-
// export { send as Send, send }
|
|
23
|
-
|
|
24
|
-
export type {}
|
package/src/drivers/teams.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
// import { MsTeamsProvider } from '@novu/ms-teams'
|
|
2
|
-
// import { italic } from '@stacksjs/cli'
|
|
3
|
-
// import type { ChatOptions } from '@stacksjs/types'
|
|
4
|
-
// import { ResultAsync } from '@stacksjs/error-handling'
|
|
5
|
-
// import { notification } from '@stacksjs/config'
|
|
6
|
-
|
|
7
|
-
// const env = notification.chat.msTeams
|
|
8
|
-
|
|
9
|
-
// const provider = new MsTeamsProvider({
|
|
10
|
-
// applicationId: env.appId,
|
|
11
|
-
// clientId: env.clientId,
|
|
12
|
-
// secretKey: env.secret,
|
|
13
|
-
// })
|
|
14
|
-
|
|
15
|
-
// function send(options: ChatOptions) {
|
|
16
|
-
// return ResultAsync.fromPromise(
|
|
17
|
-
// provider.sendMessage(options),
|
|
18
|
-
// () => new Error(`Failed to send message using provider: ${italic('MsTeams')}`),
|
|
19
|
-
// )
|
|
20
|
-
// }
|
|
21
|
-
|
|
22
|
-
// export { send as Send, send }
|
|
23
|
-
|
|
24
|
-
export type {}
|
package/src/index.ts
DELETED