@venturialstd/workflow 0.1.161 → 0.1.162
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 +238 -238
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/modules/chatgpt/actions/chat-completion.action.d.ts +0 -16
- package/dist/modules/chatgpt/actions/chat-completion.action.d.ts.map +1 -1
- package/dist/modules/chatgpt/actions/chat-completion.action.js +87 -59
- package/dist/modules/chatgpt/actions/chat-completion.action.js.map +1 -1
- package/dist/modules/chatgpt/actions/create-embedding.action.d.ts.map +1 -1
- package/dist/modules/chatgpt/actions/create-embedding.action.js +16 -10
- package/dist/modules/chatgpt/actions/create-embedding.action.js.map +1 -1
- package/dist/modules/chatgpt/actions/generate-image.action.d.ts.map +1 -1
- package/dist/modules/chatgpt/actions/generate-image.action.js +35 -19
- package/dist/modules/chatgpt/actions/generate-image.action.js.map +1 -1
- package/dist/modules/chatgpt/actions/speech-to-text.action.d.ts.map +1 -1
- package/dist/modules/chatgpt/actions/speech-to-text.action.js +31 -18
- package/dist/modules/chatgpt/actions/speech-to-text.action.js.map +1 -1
- package/dist/modules/chatgpt/actions/text-to-speech.action.d.ts.map +1 -1
- package/dist/modules/chatgpt/actions/text-to-speech.action.js +32 -15
- package/dist/modules/chatgpt/actions/text-to-speech.action.js.map +1 -1
- package/dist/modules/chatgpt/auth/chatgpt-auth.service.d.ts +0 -3
- package/dist/modules/chatgpt/auth/chatgpt-auth.service.d.ts.map +1 -1
- package/dist/modules/chatgpt/auth/chatgpt-auth.service.js +36 -33
- package/dist/modules/chatgpt/auth/chatgpt-auth.service.js.map +1 -1
- package/dist/modules/chatgpt/chatgpt-nest.module.d.ts.map +1 -1
- package/dist/modules/chatgpt/chatgpt-nest.module.js +6 -7
- package/dist/modules/chatgpt/chatgpt-nest.module.js.map +1 -1
- package/dist/modules/chatgpt/chatgpt.module.d.ts.map +1 -1
- package/dist/modules/chatgpt/chatgpt.module.js +2 -2
- package/dist/modules/chatgpt/chatgpt.module.js.map +1 -1
- package/dist/modules/chatgpt/constants/chatgpt-completion.constants.d.ts +4 -0
- package/dist/modules/chatgpt/constants/chatgpt-completion.constants.d.ts.map +1 -0
- package/dist/modules/chatgpt/constants/chatgpt-completion.constants.js +32 -0
- package/dist/modules/chatgpt/constants/chatgpt-completion.constants.js.map +1 -0
- package/dist/modules/chatgpt/services/chat-completion.service.d.ts +4 -2
- package/dist/modules/chatgpt/services/chat-completion.service.d.ts.map +1 -1
- package/dist/modules/chatgpt/services/chat-completion.service.js +92 -41
- package/dist/modules/chatgpt/services/chat-completion.service.js.map +1 -1
- package/dist/modules/index.d.ts +0 -1
- package/dist/modules/index.d.ts.map +1 -1
- package/dist/modules/index.js +1 -5
- package/dist/modules/index.js.map +1 -1
- package/dist/workflow.module.d.ts.map +1 -1
- package/dist/workflow.module.js +0 -3
- package/dist/workflow.module.js.map +1 -1
- package/package.json +118 -118
- package/dist/modules/chatbot/actions/ask-question.action.d.ts +0 -3
- package/dist/modules/chatbot/actions/ask-question.action.d.ts.map +0 -1
- package/dist/modules/chatbot/actions/ask-question.action.js +0 -42
- package/dist/modules/chatbot/actions/ask-question.action.js.map +0 -1
- package/dist/modules/chatbot/actions/index.d.ts +0 -4
- package/dist/modules/chatbot/actions/index.d.ts.map +0 -1
- package/dist/modules/chatbot/actions/index.js +0 -20
- package/dist/modules/chatbot/actions/index.js.map +0 -1
- package/dist/modules/chatbot/actions/send-buttons.action.d.ts +0 -3
- package/dist/modules/chatbot/actions/send-buttons.action.d.ts.map +0 -1
- package/dist/modules/chatbot/actions/send-buttons.action.js +0 -67
- package/dist/modules/chatbot/actions/send-buttons.action.js.map +0 -1
- package/dist/modules/chatbot/actions/send-message.action.d.ts +0 -3
- package/dist/modules/chatbot/actions/send-message.action.d.ts.map +0 -1
- package/dist/modules/chatbot/actions/send-message.action.js +0 -52
- package/dist/modules/chatbot/actions/send-message.action.js.map +0 -1
- package/dist/modules/chatbot/chatbot-nest.module.d.ts +0 -3
- package/dist/modules/chatbot/chatbot-nest.module.d.ts.map +0 -1
- package/dist/modules/chatbot/chatbot-nest.module.js +0 -21
- package/dist/modules/chatbot/chatbot-nest.module.js.map +0 -1
- package/dist/modules/chatbot/chatbot.module.d.ts +0 -3
- package/dist/modules/chatbot/chatbot.module.d.ts.map +0 -1
- package/dist/modules/chatbot/chatbot.module.js +0 -17
- package/dist/modules/chatbot/chatbot.module.js.map +0 -1
- package/dist/modules/chatbot/credentials.d.ts +0 -3
- package/dist/modules/chatbot/credentials.d.ts.map +0 -1
- package/dist/modules/chatbot/credentials.js +0 -5
- package/dist/modules/chatbot/credentials.js.map +0 -1
- package/dist/modules/chatbot/services/ask-question.service.d.ts +0 -5
- package/dist/modules/chatbot/services/ask-question.service.d.ts.map +0 -1
- package/dist/modules/chatbot/services/ask-question.service.js +0 -25
- package/dist/modules/chatbot/services/ask-question.service.js.map +0 -1
- package/dist/modules/chatbot/services/index.d.ts +0 -5
- package/dist/modules/chatbot/services/index.d.ts.map +0 -1
- package/dist/modules/chatbot/services/index.js +0 -21
- package/dist/modules/chatbot/services/index.js.map +0 -1
- package/dist/modules/chatbot/services/send-buttons.service.d.ts +0 -5
- package/dist/modules/chatbot/services/send-buttons.service.d.ts.map +0 -1
- package/dist/modules/chatbot/services/send-buttons.service.js +0 -25
- package/dist/modules/chatbot/services/send-buttons.service.js.map +0 -1
- package/dist/modules/chatbot/services/send-message.service.d.ts +0 -5
- package/dist/modules/chatbot/services/send-message.service.d.ts.map +0 -1
- package/dist/modules/chatbot/services/send-message.service.js +0 -27
- package/dist/modules/chatbot/services/send-message.service.js.map +0 -1
- package/dist/modules/chatbot/services/user-responded.service.d.ts +0 -5
- package/dist/modules/chatbot/services/user-responded.service.d.ts.map +0 -1
- package/dist/modules/chatbot/services/user-responded.service.js +0 -25
- package/dist/modules/chatbot/services/user-responded.service.js.map +0 -1
- package/dist/modules/chatbot/triggers/index.d.ts +0 -2
- package/dist/modules/chatbot/triggers/index.d.ts.map +0 -1
- package/dist/modules/chatbot/triggers/index.js +0 -18
- package/dist/modules/chatbot/triggers/index.js.map +0 -1
- package/dist/modules/chatbot/triggers/user-responded.trigger.d.ts +0 -3
- package/dist/modules/chatbot/triggers/user-responded.trigger.d.ts.map +0 -1
- package/dist/modules/chatbot/triggers/user-responded.trigger.js +0 -45
- package/dist/modules/chatbot/triggers/user-responded.trigger.js.map +0 -1
- package/dist/modules/chatgpt/auth/index.d.ts +0 -2
- package/dist/modules/chatgpt/auth/index.d.ts.map +0 -1
- package/dist/modules/chatgpt/auth/index.js +0 -6
- package/dist/modules/chatgpt/auth/index.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,118 +1,118 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@venturialstd/workflow",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Workflow Module for Venturial",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"type": "commonjs",
|
|
8
|
-
"files": [
|
|
9
|
-
"dist"
|
|
10
|
-
],
|
|
11
|
-
"publishConfig": {
|
|
12
|
-
"access": "public"
|
|
13
|
-
},
|
|
14
|
-
"scripts": {
|
|
15
|
-
"prebuild": "rimraf dist",
|
|
16
|
-
"build": "tsc -p tsconfig.json",
|
|
17
|
-
"prepublishOnly": "npm run build",
|
|
18
|
-
"release:patch": "npm run build && npm version patch --no-git-tag-version && npm publish",
|
|
19
|
-
"test:dev": "ts-node -r tsconfig-paths/register test/main.ts",
|
|
20
|
-
"test:watch": "nodemon --watch src --watch test --ext ts --exec npm run test:dev",
|
|
21
|
-
"migration:generate": "ts-node node_modules/.bin/typeorm migration:generate -d test/data-source.ts test/migrations/$npm_config_name",
|
|
22
|
-
"migration:run": "ts-node node_modules/.bin/typeorm migration:run -d test/data-source.ts",
|
|
23
|
-
"migration:revert": "ts-node node_modules/.bin/typeorm migration:revert -d test/data-source.ts"
|
|
24
|
-
},
|
|
25
|
-
"devDependencies": {
|
|
26
|
-
"@dataui/crud": "^5.3.4",
|
|
27
|
-
"@dataui/crud-request": "^5.3.4",
|
|
28
|
-
"@dataui/crud-typeorm": "^5.3.4",
|
|
29
|
-
"@keyv/redis": "^4.2.0",
|
|
30
|
-
"@nestjs/cache-manager": "^3.0.0",
|
|
31
|
-
"@nestjs/common": "^11.0.11",
|
|
32
|
-
"@nestjs/config": "^4.0.0",
|
|
33
|
-
"@nestjs/core": "^11.0.5",
|
|
34
|
-
"@nestjs/jwt": "^11.0.0",
|
|
35
|
-
"@nestjs/passport": "^11.0.5",
|
|
36
|
-
"@nestjs/platform-express": "^11.0.5",
|
|
37
|
-
"@nestjs/platform-socket.io": "^11.0.0",
|
|
38
|
-
"@nestjs/websockets": "^11.0.0",
|
|
39
|
-
"socket.io": "^4.8.0",
|
|
40
|
-
"@nestjs/swagger": "^11.0.3",
|
|
41
|
-
"@nestjs/typeorm": "^11.0.0",
|
|
42
|
-
"@types/express": "^4.17.25",
|
|
43
|
-
"@types/node": "^20.0.0",
|
|
44
|
-
"@venturialstd/core": "^1.0.16",
|
|
45
|
-
"bcrypt": "^5.1.1",
|
|
46
|
-
"cache-manager": "^6.4.0",
|
|
47
|
-
"class-transformer": "^0.5.1",
|
|
48
|
-
"class-validator": "^0.14.1",
|
|
49
|
-
"dotenv": "^17.2.3",
|
|
50
|
-
"express": "^5.2.1",
|
|
51
|
-
"glob": "^13.0.0",
|
|
52
|
-
"joi": "^17.13.3",
|
|
53
|
-
"jwks-rsa": "^3.1.0",
|
|
54
|
-
"lodash": "^4.17.21",
|
|
55
|
-
"nodemon": "^3.0.0",
|
|
56
|
-
"passport": "^0.7.0",
|
|
57
|
-
"passport-auth0": "^1.4.4",
|
|
58
|
-
"passport-jwt": "^4.0.1",
|
|
59
|
-
"passport-local": "^1.0.0",
|
|
60
|
-
"rxjs": "^7.8.1",
|
|
61
|
-
"ts-node": "^10.9.0",
|
|
62
|
-
"tsconfig-paths": "^4.2.0",
|
|
63
|
-
"typeorm": "^0.3.20",
|
|
64
|
-
"typescript": "^5.9.3",
|
|
65
|
-
"uuid": "^11.0.5",
|
|
66
|
-
"winston": "^3.17.0"
|
|
67
|
-
},
|
|
68
|
-
"peerDependencies": {
|
|
69
|
-
"@dataui/crud": "^5.3.4",
|
|
70
|
-
"@dataui/crud-request": "^5.3.4",
|
|
71
|
-
"@dataui/crud-typeorm": "^5.3.4",
|
|
72
|
-
"@nestjs/cache-manager": "^3.0.0",
|
|
73
|
-
"@nestjs/common": "^11.0.11",
|
|
74
|
-
"@nestjs/config": "^4.0.0",
|
|
75
|
-
"@nestjs/core": "^11.0.5",
|
|
76
|
-
"@nestjs/event-emitter": "^3.0.1",
|
|
77
|
-
"@nestjs/jwt": "^11.0.0",
|
|
78
|
-
"@nestjs/passport": "^11.0.5",
|
|
79
|
-
"@nestjs/swagger": "^11.0.3",
|
|
80
|
-
"@nestjs/typeorm": "^11.0.0",
|
|
81
|
-
"@nestjs/platform-socket.io": "^11.0.0",
|
|
82
|
-
"@nestjs/websockets": "^11.0.0",
|
|
83
|
-
"socket.io": "^4.8.0",
|
|
84
|
-
"@venturialstd/capa": "^0.0.6",
|
|
85
|
-
"@venturialstd/chatgpt": "^0.0.6",
|
|
86
|
-
"@venturialstd/circle": "^0.0.7",
|
|
87
|
-
"@venturialstd/core": "^1.0.16",
|
|
88
|
-
"@venturialstd/email": "^0.0.2",
|
|
89
|
-
"@venturialstd/fintech": "^0.0.16",
|
|
90
|
-
"@venturialstd/inbestgo": "^0.0.4",
|
|
91
|
-
"@venturialstd/jira": "^0.1.35",
|
|
92
|
-
"@venturialstd/kira": "^0.0.1",
|
|
93
|
-
"@venturialstd/kyc": "^0.0.6",
|
|
94
|
-
"@venturialstd/slack": "^0.1.31",
|
|
95
|
-
"@venturialstd/user": "^0.0.3",
|
|
96
|
-
"@venturialstd/toolbox": "^0.0.1",
|
|
97
|
-
"@venturialstd/twilio": "^0.0.4",
|
|
98
|
-
"bcrypt": "^5.1.1",
|
|
99
|
-
"cache-manager": "^6.4.0",
|
|
100
|
-
"class-transformer": "^0.5.1",
|
|
101
|
-
"class-validator": "^0.14.1",
|
|
102
|
-
"jwks-rsa": "^3.1.0",
|
|
103
|
-
"passport": "^0.7.0",
|
|
104
|
-
"passport-auth0": "^1.4.0",
|
|
105
|
-
"passport-jwt": "^4.0.1",
|
|
106
|
-
"passport-local": "^1.0.0",
|
|
107
|
-
"rxjs": "^7.8.1",
|
|
108
|
-
"typeorm": "^0.3.20",
|
|
109
|
-
"uuid": "^11.0.5"
|
|
110
|
-
},
|
|
111
|
-
"dependencies": {
|
|
112
|
-
"bullmq": "^5.67.2",
|
|
113
|
-
"cron-parser": "^4.9.0",
|
|
114
|
-
"ioredis": "^5.9.2",
|
|
115
|
-
"libphonenumber-js": "^1.12.34",
|
|
116
|
-
"pg": "^8.16.3"
|
|
117
|
-
}
|
|
118
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@venturialstd/workflow",
|
|
3
|
+
"version": "0.1.162",
|
|
4
|
+
"description": "Workflow Module for Venturial",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"type": "commonjs",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"publishConfig": {
|
|
12
|
+
"access": "public"
|
|
13
|
+
},
|
|
14
|
+
"scripts": {
|
|
15
|
+
"prebuild": "rimraf dist",
|
|
16
|
+
"build": "tsc -p tsconfig.json",
|
|
17
|
+
"prepublishOnly": "npm run build",
|
|
18
|
+
"release:patch": "npm run build && npm version patch --no-git-tag-version && npm publish",
|
|
19
|
+
"test:dev": "ts-node -r tsconfig-paths/register test/main.ts",
|
|
20
|
+
"test:watch": "nodemon --watch src --watch test --ext ts --exec npm run test:dev",
|
|
21
|
+
"migration:generate": "ts-node node_modules/.bin/typeorm migration:generate -d test/data-source.ts test/migrations/$npm_config_name",
|
|
22
|
+
"migration:run": "ts-node node_modules/.bin/typeorm migration:run -d test/data-source.ts",
|
|
23
|
+
"migration:revert": "ts-node node_modules/.bin/typeorm migration:revert -d test/data-source.ts"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@dataui/crud": "^5.3.4",
|
|
27
|
+
"@dataui/crud-request": "^5.3.4",
|
|
28
|
+
"@dataui/crud-typeorm": "^5.3.4",
|
|
29
|
+
"@keyv/redis": "^4.2.0",
|
|
30
|
+
"@nestjs/cache-manager": "^3.0.0",
|
|
31
|
+
"@nestjs/common": "^11.0.11",
|
|
32
|
+
"@nestjs/config": "^4.0.0",
|
|
33
|
+
"@nestjs/core": "^11.0.5",
|
|
34
|
+
"@nestjs/jwt": "^11.0.0",
|
|
35
|
+
"@nestjs/passport": "^11.0.5",
|
|
36
|
+
"@nestjs/platform-express": "^11.0.5",
|
|
37
|
+
"@nestjs/platform-socket.io": "^11.0.0",
|
|
38
|
+
"@nestjs/websockets": "^11.0.0",
|
|
39
|
+
"socket.io": "^4.8.0",
|
|
40
|
+
"@nestjs/swagger": "^11.0.3",
|
|
41
|
+
"@nestjs/typeorm": "^11.0.0",
|
|
42
|
+
"@types/express": "^4.17.25",
|
|
43
|
+
"@types/node": "^20.0.0",
|
|
44
|
+
"@venturialstd/core": "^1.0.16",
|
|
45
|
+
"bcrypt": "^5.1.1",
|
|
46
|
+
"cache-manager": "^6.4.0",
|
|
47
|
+
"class-transformer": "^0.5.1",
|
|
48
|
+
"class-validator": "^0.14.1",
|
|
49
|
+
"dotenv": "^17.2.3",
|
|
50
|
+
"express": "^5.2.1",
|
|
51
|
+
"glob": "^13.0.0",
|
|
52
|
+
"joi": "^17.13.3",
|
|
53
|
+
"jwks-rsa": "^3.1.0",
|
|
54
|
+
"lodash": "^4.17.21",
|
|
55
|
+
"nodemon": "^3.0.0",
|
|
56
|
+
"passport": "^0.7.0",
|
|
57
|
+
"passport-auth0": "^1.4.4",
|
|
58
|
+
"passport-jwt": "^4.0.1",
|
|
59
|
+
"passport-local": "^1.0.0",
|
|
60
|
+
"rxjs": "^7.8.1",
|
|
61
|
+
"ts-node": "^10.9.0",
|
|
62
|
+
"tsconfig-paths": "^4.2.0",
|
|
63
|
+
"typeorm": "^0.3.20",
|
|
64
|
+
"typescript": "^5.9.3",
|
|
65
|
+
"uuid": "^11.0.5",
|
|
66
|
+
"winston": "^3.17.0"
|
|
67
|
+
},
|
|
68
|
+
"peerDependencies": {
|
|
69
|
+
"@dataui/crud": "^5.3.4",
|
|
70
|
+
"@dataui/crud-request": "^5.3.4",
|
|
71
|
+
"@dataui/crud-typeorm": "^5.3.4",
|
|
72
|
+
"@nestjs/cache-manager": "^3.0.0",
|
|
73
|
+
"@nestjs/common": "^11.0.11",
|
|
74
|
+
"@nestjs/config": "^4.0.0",
|
|
75
|
+
"@nestjs/core": "^11.0.5",
|
|
76
|
+
"@nestjs/event-emitter": "^3.0.1",
|
|
77
|
+
"@nestjs/jwt": "^11.0.0",
|
|
78
|
+
"@nestjs/passport": "^11.0.5",
|
|
79
|
+
"@nestjs/swagger": "^11.0.3",
|
|
80
|
+
"@nestjs/typeorm": "^11.0.0",
|
|
81
|
+
"@nestjs/platform-socket.io": "^11.0.0",
|
|
82
|
+
"@nestjs/websockets": "^11.0.0",
|
|
83
|
+
"socket.io": "^4.8.0",
|
|
84
|
+
"@venturialstd/capa": "^0.0.6",
|
|
85
|
+
"@venturialstd/chatgpt": "^0.0.6",
|
|
86
|
+
"@venturialstd/circle": "^0.0.7",
|
|
87
|
+
"@venturialstd/core": "^1.0.16",
|
|
88
|
+
"@venturialstd/email": "^0.0.2",
|
|
89
|
+
"@venturialstd/fintech": "^0.0.16",
|
|
90
|
+
"@venturialstd/inbestgo": "^0.0.4",
|
|
91
|
+
"@venturialstd/jira": "^0.1.35",
|
|
92
|
+
"@venturialstd/kira": "^0.0.1",
|
|
93
|
+
"@venturialstd/kyc": "^0.0.6",
|
|
94
|
+
"@venturialstd/slack": "^0.1.31",
|
|
95
|
+
"@venturialstd/user": "^0.0.3",
|
|
96
|
+
"@venturialstd/toolbox": "^0.0.1",
|
|
97
|
+
"@venturialstd/twilio": "^0.0.4",
|
|
98
|
+
"bcrypt": "^5.1.1",
|
|
99
|
+
"cache-manager": "^6.4.0",
|
|
100
|
+
"class-transformer": "^0.5.1",
|
|
101
|
+
"class-validator": "^0.14.1",
|
|
102
|
+
"jwks-rsa": "^3.1.0",
|
|
103
|
+
"passport": "^0.7.0",
|
|
104
|
+
"passport-auth0": "^1.4.0",
|
|
105
|
+
"passport-jwt": "^4.0.1",
|
|
106
|
+
"passport-local": "^1.0.0",
|
|
107
|
+
"rxjs": "^7.8.1",
|
|
108
|
+
"typeorm": "^0.3.20",
|
|
109
|
+
"uuid": "^11.0.5"
|
|
110
|
+
},
|
|
111
|
+
"dependencies": {
|
|
112
|
+
"bullmq": "^5.67.2",
|
|
113
|
+
"cron-parser": "^4.9.0",
|
|
114
|
+
"ioredis": "^5.9.2",
|
|
115
|
+
"libphonenumber-js": "^1.12.34",
|
|
116
|
+
"pg": "^8.16.3"
|
|
117
|
+
}
|
|
118
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ask-question.action.d.ts","sourceRoot":"","sources":["../../../../src/modules/chatbot/actions/ask-question.action.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAG/E,eAAO,MAAM,iBAAiB,EAAE,qBAmC/B,CAAC"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.askQuestionAction = void 0;
|
|
4
|
-
const types_1 = require("../../types");
|
|
5
|
-
const ask_question_service_1 = require("../services/ask-question.service");
|
|
6
|
-
exports.askQuestionAction = {
|
|
7
|
-
key: 'ask-question',
|
|
8
|
-
name: 'Ask Question',
|
|
9
|
-
description: 'Send a message and wait for user response',
|
|
10
|
-
category: types_1.NODE_CATEGORY.ACTION,
|
|
11
|
-
icon: '❓',
|
|
12
|
-
serviceClass: ask_question_service_1.AskQuestionService,
|
|
13
|
-
inputs: [
|
|
14
|
-
{
|
|
15
|
-
id: 'message',
|
|
16
|
-
name: 'Question',
|
|
17
|
-
description: 'The question to ask the user',
|
|
18
|
-
type: types_1.FIELD_TYPE.STRING,
|
|
19
|
-
validation: {
|
|
20
|
-
required: true,
|
|
21
|
-
minLength: 1,
|
|
22
|
-
maxLength: 5000,
|
|
23
|
-
},
|
|
24
|
-
placeholder: 'What would you like to do?',
|
|
25
|
-
},
|
|
26
|
-
],
|
|
27
|
-
outputs: [
|
|
28
|
-
{
|
|
29
|
-
id: 'userResponse',
|
|
30
|
-
name: 'User Response',
|
|
31
|
-
description: 'The response received from the user',
|
|
32
|
-
type: types_1.FIELD_TYPE.STRING,
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
id: 'responseTime',
|
|
36
|
-
name: 'Response Time',
|
|
37
|
-
description: 'Time taken for user to respond (ms)',
|
|
38
|
-
type: types_1.FIELD_TYPE.NUMBER,
|
|
39
|
-
},
|
|
40
|
-
],
|
|
41
|
-
};
|
|
42
|
-
//# sourceMappingURL=ask-question.action.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ask-question.action.js","sourceRoot":"","sources":["../../../../src/modules/chatbot/actions/ask-question.action.ts"],"names":[],"mappings":";;;AAAA,uCAA+E;AAC/E,2EAAsE;AAEzD,QAAA,iBAAiB,GAA0B;IACtD,GAAG,EAAE,cAAc;IACnB,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,2CAA2C;IACxD,QAAQ,EAAE,qBAAa,CAAC,MAAM;IAC9B,IAAI,EAAE,GAAG;IACT,YAAY,EAAE,yCAAkB;IAChC,MAAM,EAAE;QACN;YACE,EAAE,EAAE,SAAS;YACb,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,8BAA8B;YAC3C,IAAI,EAAE,kBAAU,CAAC,MAAM;YACvB,UAAU,EAAE;gBACV,QAAQ,EAAE,IAAI;gBACd,SAAS,EAAE,CAAC;gBACZ,SAAS,EAAE,IAAI;aAChB;YACD,WAAW,EAAE,4BAA4B;SAC1C;KACF;IACD,OAAO,EAAE;QACP;YACE,EAAE,EAAE,cAAc;YAClB,IAAI,EAAE,eAAe;YACrB,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;QACD;YACE,EAAE,EAAE,cAAc;YAClB,IAAI,EAAE,eAAe;YACrB,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;KACF;CACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/chatbot/actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./ask-question.action"), exports);
|
|
18
|
-
__exportStar(require("./send-buttons.action"), exports);
|
|
19
|
-
__exportStar(require("./send-message.action"), exports);
|
|
20
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/chatbot/actions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,wDAAsC;AACtC,wDAAsC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"send-buttons.action.d.ts","sourceRoot":"","sources":["../../../../src/modules/chatbot/actions/send-buttons.action.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAG/E,eAAO,MAAM,iBAAiB,EAAE,qBA4D/B,CAAC"}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.sendButtonsAction = void 0;
|
|
4
|
-
const types_1 = require("../../types");
|
|
5
|
-
const send_buttons_service_1 = require("../services/send-buttons.service");
|
|
6
|
-
exports.sendButtonsAction = {
|
|
7
|
-
key: 'send-buttons',
|
|
8
|
-
name: 'Send with Buttons',
|
|
9
|
-
description: 'Send a message with interactive buttons',
|
|
10
|
-
category: types_1.NODE_CATEGORY.ACTION,
|
|
11
|
-
icon: '🔘',
|
|
12
|
-
serviceClass: send_buttons_service_1.SendButtonsService,
|
|
13
|
-
inputs: [
|
|
14
|
-
{
|
|
15
|
-
id: 'message',
|
|
16
|
-
name: 'Message',
|
|
17
|
-
description: 'The message text to send',
|
|
18
|
-
type: types_1.FIELD_TYPE.STRING,
|
|
19
|
-
validation: {
|
|
20
|
-
required: true,
|
|
21
|
-
minLength: 1,
|
|
22
|
-
maxLength: 5000,
|
|
23
|
-
},
|
|
24
|
-
placeholder: 'Please choose an option:',
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
id: 'buttons',
|
|
28
|
-
name: 'Buttons',
|
|
29
|
-
description: 'Array of button options',
|
|
30
|
-
type: types_1.FIELD_TYPE.ARRAY,
|
|
31
|
-
validation: {
|
|
32
|
-
required: true,
|
|
33
|
-
min: 1,
|
|
34
|
-
max: 10,
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
id: 'buttonLabel',
|
|
39
|
-
name: 'Button Label',
|
|
40
|
-
description: 'Label for each button',
|
|
41
|
-
type: types_1.FIELD_TYPE.STRING,
|
|
42
|
-
dependsOn: ['buttons'],
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
id: 'buttonValue',
|
|
46
|
-
name: 'Button Value',
|
|
47
|
-
description: 'Value returned when button is clicked',
|
|
48
|
-
type: types_1.FIELD_TYPE.STRING,
|
|
49
|
-
dependsOn: ['buttons'],
|
|
50
|
-
},
|
|
51
|
-
],
|
|
52
|
-
outputs: [
|
|
53
|
-
{
|
|
54
|
-
id: 'selectedButton',
|
|
55
|
-
name: 'Selected Button',
|
|
56
|
-
description: 'The button value that was selected',
|
|
57
|
-
type: types_1.FIELD_TYPE.STRING,
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
id: 'selectedButtonLabel',
|
|
61
|
-
name: 'Selected Button Label',
|
|
62
|
-
description: 'The label of the selected button',
|
|
63
|
-
type: types_1.FIELD_TYPE.STRING,
|
|
64
|
-
},
|
|
65
|
-
],
|
|
66
|
-
};
|
|
67
|
-
//# sourceMappingURL=send-buttons.action.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"send-buttons.action.js","sourceRoot":"","sources":["../../../../src/modules/chatbot/actions/send-buttons.action.ts"],"names":[],"mappings":";;;AAAA,uCAA+E;AAC/E,2EAAsE;AAEzD,QAAA,iBAAiB,GAA0B;IACtD,GAAG,EAAE,cAAc;IACnB,IAAI,EAAE,mBAAmB;IACzB,WAAW,EAAE,yCAAyC;IACtD,QAAQ,EAAE,qBAAa,CAAC,MAAM;IAC9B,IAAI,EAAE,IAAI;IACV,YAAY,EAAE,yCAAkB;IAChC,MAAM,EAAE;QACN;YACE,EAAE,EAAE,SAAS;YACb,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,0BAA0B;YACvC,IAAI,EAAE,kBAAU,CAAC,MAAM;YACvB,UAAU,EAAE;gBACV,QAAQ,EAAE,IAAI;gBACd,SAAS,EAAE,CAAC;gBACZ,SAAS,EAAE,IAAI;aAChB;YACD,WAAW,EAAE,0BAA0B;SACxC;QACD;YACE,EAAE,EAAE,SAAS;YACb,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,yBAAyB;YACtC,IAAI,EAAE,kBAAU,CAAC,KAAK;YACtB,UAAU,EAAE;gBACV,QAAQ,EAAE,IAAI;gBACd,GAAG,EAAE,CAAC;gBACN,GAAG,EAAE,EAAE;aACR;SACF;QACD;YACE,EAAE,EAAE,aAAa;YACjB,IAAI,EAAE,cAAc;YACpB,WAAW,EAAE,uBAAuB;YACpC,IAAI,EAAE,kBAAU,CAAC,MAAM;YACvB,SAAS,EAAE,CAAC,SAAS,CAAC;SACvB;QACD;YACE,EAAE,EAAE,aAAa;YACjB,IAAI,EAAE,cAAc;YACpB,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,kBAAU,CAAC,MAAM;YACvB,SAAS,EAAE,CAAC,SAAS,CAAC;SACvB;KACF;IACD,OAAO,EAAE;QACP;YACE,EAAE,EAAE,gBAAgB;YACpB,IAAI,EAAE,iBAAiB;YACvB,WAAW,EAAE,oCAAoC;YACjD,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;QACD;YACE,EAAE,EAAE,qBAAqB;YACzB,IAAI,EAAE,uBAAuB;YAC7B,WAAW,EAAE,kCAAkC;YAC/C,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;KACF;CACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"send-message.action.d.ts","sourceRoot":"","sources":["../../../../src/modules/chatbot/actions/send-message.action.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAG/E,eAAO,MAAM,iBAAiB,EAAE,qBA6C/B,CAAC"}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.sendMessageAction = void 0;
|
|
4
|
-
const types_1 = require("../../types");
|
|
5
|
-
const send_message_service_1 = require("../services/send-message.service");
|
|
6
|
-
exports.sendMessageAction = {
|
|
7
|
-
key: 'send-message',
|
|
8
|
-
name: 'Send Message',
|
|
9
|
-
description: 'Send a simple message to the user',
|
|
10
|
-
category: types_1.NODE_CATEGORY.ACTION,
|
|
11
|
-
icon: '📤',
|
|
12
|
-
serviceClass: send_message_service_1.SendMessageService,
|
|
13
|
-
inputs: [
|
|
14
|
-
{
|
|
15
|
-
id: 'message',
|
|
16
|
-
name: 'Message',
|
|
17
|
-
description: 'The message text to send',
|
|
18
|
-
type: types_1.FIELD_TYPE.STRING,
|
|
19
|
-
validation: {
|
|
20
|
-
required: true,
|
|
21
|
-
minLength: 1,
|
|
22
|
-
maxLength: 5000,
|
|
23
|
-
},
|
|
24
|
-
placeholder: 'Enter your message...',
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
id: 'waitForResponse',
|
|
28
|
-
name: 'Wait for Response',
|
|
29
|
-
description: 'Whether to wait for user response after sending',
|
|
30
|
-
type: types_1.FIELD_TYPE.BOOLEAN,
|
|
31
|
-
validation: {
|
|
32
|
-
required: false,
|
|
33
|
-
},
|
|
34
|
-
defaultValue: false,
|
|
35
|
-
},
|
|
36
|
-
],
|
|
37
|
-
outputs: [
|
|
38
|
-
{
|
|
39
|
-
id: 'messageId',
|
|
40
|
-
name: 'Message ID',
|
|
41
|
-
description: 'Unique identifier for the sent message',
|
|
42
|
-
type: types_1.FIELD_TYPE.STRING,
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
id: 'sentAt',
|
|
46
|
-
name: 'Sent At',
|
|
47
|
-
description: 'Timestamp when message was sent',
|
|
48
|
-
type: types_1.FIELD_TYPE.DATE,
|
|
49
|
-
},
|
|
50
|
-
],
|
|
51
|
-
};
|
|
52
|
-
//# sourceMappingURL=send-message.action.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"send-message.action.js","sourceRoot":"","sources":["../../../../src/modules/chatbot/actions/send-message.action.ts"],"names":[],"mappings":";;;AAAA,uCAA+E;AAC/E,2EAAsE;AAEzD,QAAA,iBAAiB,GAA0B;IACtD,GAAG,EAAE,cAAc;IACnB,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,mCAAmC;IAChD,QAAQ,EAAE,qBAAa,CAAC,MAAM;IAC9B,IAAI,EAAE,IAAI;IACV,YAAY,EAAE,yCAAkB;IAChC,MAAM,EAAE;QACN;YACE,EAAE,EAAE,SAAS;YACb,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,0BAA0B;YACvC,IAAI,EAAE,kBAAU,CAAC,MAAM;YACvB,UAAU,EAAE;gBACV,QAAQ,EAAE,IAAI;gBACd,SAAS,EAAE,CAAC;gBACZ,SAAS,EAAE,IAAI;aAChB;YACD,WAAW,EAAE,uBAAuB;SACrC;QACD;YACE,EAAE,EAAE,iBAAiB;YACrB,IAAI,EAAE,mBAAmB;YACzB,WAAW,EAAE,iDAAiD;YAC9D,IAAI,EAAE,kBAAU,CAAC,OAAO;YACxB,UAAU,EAAE;gBACV,QAAQ,EAAE,KAAK;aAChB;YACD,YAAY,EAAE,KAAK;SACpB;KACF;IACD,OAAO,EAAE;QACP;YACE,EAAE,EAAE,WAAW;YACf,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,wCAAwC;YACrD,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;QACD;YACE,EAAE,EAAE,QAAQ;YACZ,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,kBAAU,CAAC,IAAI;SACtB;KACF;CACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chatbot-nest.module.d.ts","sourceRoot":"","sources":["../../../src/modules/chatbot/chatbot-nest.module.ts"],"names":[],"mappings":"AASA,qBAIa,iBAAiB;CAAG"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.ChatbotNestModule = void 0;
|
|
10
|
-
const common_1 = require("@nestjs/common");
|
|
11
|
-
const services_1 = require("./services");
|
|
12
|
-
let ChatbotNestModule = class ChatbotNestModule {
|
|
13
|
-
};
|
|
14
|
-
exports.ChatbotNestModule = ChatbotNestModule;
|
|
15
|
-
exports.ChatbotNestModule = ChatbotNestModule = __decorate([
|
|
16
|
-
(0, common_1.Module)({
|
|
17
|
-
providers: [services_1.SendMessageService, services_1.AskQuestionService, services_1.SendButtonsService, services_1.UserRespondedService],
|
|
18
|
-
exports: [services_1.SendMessageService, services_1.AskQuestionService, services_1.SendButtonsService, services_1.UserRespondedService],
|
|
19
|
-
})
|
|
20
|
-
], ChatbotNestModule);
|
|
21
|
-
//# sourceMappingURL=chatbot-nest.module.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chatbot-nest.module.js","sourceRoot":"","sources":["../../../src/modules/chatbot/chatbot-nest.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AAExC,yCAKoB;AAMb,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;CAAG,CAAA;AAApB,8CAAiB;4BAAjB,iBAAiB;IAJ7B,IAAA,eAAM,EAAC;QACN,SAAS,EAAE,CAAC,6BAAkB,EAAE,6BAAkB,EAAE,6BAAkB,EAAE,+BAAoB,CAAC;QAC7F,OAAO,EAAE,CAAC,6BAAkB,EAAE,6BAAkB,EAAE,6BAAkB,EAAE,+BAAoB,CAAC;KAC5F,CAAC;GACW,iBAAiB,CAAG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chatbot.module.d.ts","sourceRoot":"","sources":["../../../src/modules/chatbot/chatbot.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAKpD,eAAO,MAAM,aAAa,EAAE,wBAS3B,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.chatbotModule = void 0;
|
|
4
|
-
const actions_1 = require("./actions");
|
|
5
|
-
const credentials_1 = require("./credentials");
|
|
6
|
-
const triggers_1 = require("./triggers");
|
|
7
|
-
exports.chatbotModule = {
|
|
8
|
-
key: 'chatbot',
|
|
9
|
-
name: 'Chatbot',
|
|
10
|
-
description: 'Interact with users through messages',
|
|
11
|
-
icon: '💬',
|
|
12
|
-
version: '1.0.0',
|
|
13
|
-
credentialFields: credentials_1.chatbotCredentials,
|
|
14
|
-
actions: [actions_1.sendMessageAction, actions_1.askQuestionAction, actions_1.sendButtonsAction],
|
|
15
|
-
triggers: [triggers_1.userRespondedTrigger],
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=chatbot.module.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chatbot.module.js","sourceRoot":"","sources":["../../../src/modules/chatbot/chatbot.module.ts"],"names":[],"mappings":";;;AACA,uCAAoF;AACpF,+CAAmD;AACnD,yCAAkD;AAErC,QAAA,aAAa,GAA6B;IACrD,GAAG,EAAE,SAAS;IACd,IAAI,EAAE,SAAS;IACf,WAAW,EAAE,sCAAsC;IACnD,IAAI,EAAE,IAAI;IACV,OAAO,EAAE,OAAO;IAChB,gBAAgB,EAAE,gCAAkB;IACpC,OAAO,EAAE,CAAC,2BAAiB,EAAE,2BAAiB,EAAE,2BAAiB,CAAC;IAClE,QAAQ,EAAE,CAAC,+BAAoB,CAAC;CACjC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../../../src/modules/chatbot/credentials.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC;AAErD,eAAO,MAAM,kBAAkB,EAAE,yBAAyB,EAGzD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"credentials.js","sourceRoot":"","sources":["../../../src/modules/chatbot/credentials.ts"],"names":[],"mappings":";;;AAEa,QAAA,kBAAkB,GAAgC,EAG9D,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { IWorkflowActionService, WorkflowActionContext } from '../../types';
|
|
2
|
-
export declare class AskQuestionService implements IWorkflowActionService {
|
|
3
|
-
perform(inputs: Record<string, unknown>, _context: WorkflowActionContext): Promise<Record<string, unknown>>;
|
|
4
|
-
}
|
|
5
|
-
//# sourceMappingURL=ask-question.service.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ask-question.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/chatbot/services/ask-question.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAE5E,qBACa,kBAAmB,YAAW,sBAAsB;IACzD,OAAO,CACX,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,QAAQ,EAAE,qBAAqB,GAC9B,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAapC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.AskQuestionService = void 0;
|
|
10
|
-
const common_1 = require("@nestjs/common");
|
|
11
|
-
let AskQuestionService = class AskQuestionService {
|
|
12
|
-
async perform(inputs, _context) {
|
|
13
|
-
const _message = inputs.message;
|
|
14
|
-
const _startTime = Date.now();
|
|
15
|
-
return {
|
|
16
|
-
userResponse: '',
|
|
17
|
-
responseTime: 0,
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
exports.AskQuestionService = AskQuestionService;
|
|
22
|
-
exports.AskQuestionService = AskQuestionService = __decorate([
|
|
23
|
-
(0, common_1.Injectable)()
|
|
24
|
-
], AskQuestionService);
|
|
25
|
-
//# sourceMappingURL=ask-question.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ask-question.service.js","sourceRoot":"","sources":["../../../../src/modules/chatbot/services/ask-question.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAKrC,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAC7B,KAAK,CAAC,OAAO,CACX,MAA+B,EAC/B,QAA+B;QAI/B,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAiB,CAAC;QAC1C,MAAM,UAAU,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QAI9B,OAAO;YACL,YAAY,EAAE,EAAE;YAChB,YAAY,EAAE,CAAC;SAChB,CAAC;IACJ,CAAC;CACF,CAAA;AAjBY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,mBAAU,GAAE;GACA,kBAAkB,CAiB9B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/chatbot/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC"}
|