@venturialstd/workflow 0.0.1
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 -0
- package/dist/constants/workflow.constant.d.ts +23 -0
- package/dist/constants/workflow.constant.d.ts.map +1 -0
- package/dist/constants/workflow.constant.js +30 -0
- package/dist/constants/workflow.constant.js.map +1 -0
- package/dist/dtos/create-workflow-edge.dto.d.ts +10 -0
- package/dist/dtos/create-workflow-edge.dto.d.ts.map +1 -0
- package/dist/dtos/create-workflow-edge.dto.js +58 -0
- package/dist/dtos/create-workflow-edge.dto.js.map +1 -0
- package/dist/dtos/create-workflow-execution.dto.d.ts +11 -0
- package/dist/dtos/create-workflow-execution.dto.d.ts.map +1 -0
- package/dist/dtos/create-workflow-execution.dto.js +58 -0
- package/dist/dtos/create-workflow-execution.dto.js.map +1 -0
- package/dist/dtos/create-workflow-module-credential.dto.d.ts +15 -0
- package/dist/dtos/create-workflow-module-credential.dto.d.ts.map +1 -0
- package/dist/dtos/create-workflow-module-credential.dto.js +75 -0
- package/dist/dtos/create-workflow-module-credential.dto.js.map +1 -0
- package/dist/dtos/create-workflow-module.dto.d.ts +10 -0
- package/dist/dtos/create-workflow-module.dto.d.ts.map +1 -0
- package/dist/dtos/create-workflow-module.dto.js +55 -0
- package/dist/dtos/create-workflow-module.dto.js.map +1 -0
- package/dist/dtos/create-workflow-node.dto.d.ts +15 -0
- package/dist/dtos/create-workflow-node.dto.d.ts.map +1 -0
- package/dist/dtos/create-workflow-node.dto.js +62 -0
- package/dist/dtos/create-workflow-node.dto.js.map +1 -0
- package/dist/dtos/create-workflow-session.dto.d.ts +13 -0
- package/dist/dtos/create-workflow-session.dto.d.ts.map +1 -0
- package/dist/dtos/create-workflow-session.dto.js +51 -0
- package/dist/dtos/create-workflow-session.dto.js.map +1 -0
- package/dist/dtos/create-workflow.dto.d.ts +12 -0
- package/dist/dtos/create-workflow.dto.d.ts.map +1 -0
- package/dist/dtos/create-workflow.dto.js +65 -0
- package/dist/dtos/create-workflow.dto.js.map +1 -0
- package/dist/dtos/index.d.ts +8 -0
- package/dist/dtos/index.d.ts.map +1 -0
- package/dist/dtos/index.js +24 -0
- package/dist/dtos/index.js.map +1 -0
- package/dist/entities/workflow-edge.entity.d.ts +15 -0
- package/dist/entities/workflow-edge.entity.d.ts.map +1 -0
- package/dist/entities/workflow-edge.entity.js +99 -0
- package/dist/entities/workflow-edge.entity.js.map +1 -0
- package/dist/entities/workflow-execution.entity.d.ts +20 -0
- package/dist/entities/workflow-execution.entity.d.ts.map +1 -0
- package/dist/entities/workflow-execution.entity.js +123 -0
- package/dist/entities/workflow-execution.entity.js.map +1 -0
- package/dist/entities/workflow-module-credential.entity.d.ts +13 -0
- package/dist/entities/workflow-module-credential.entity.d.ts.map +1 -0
- package/dist/entities/workflow-module-credential.entity.js +89 -0
- package/dist/entities/workflow-module-credential.entity.js.map +1 -0
- package/dist/entities/workflow-module.entity.d.ts +17 -0
- package/dist/entities/workflow-module.entity.d.ts.map +1 -0
- package/dist/entities/workflow-module.entity.js +113 -0
- package/dist/entities/workflow-module.entity.js.map +1 -0
- package/dist/entities/workflow-node.entity.d.ts +20 -0
- package/dist/entities/workflow-node.entity.d.ts.map +1 -0
- package/dist/entities/workflow-node.entity.js +105 -0
- package/dist/entities/workflow-node.entity.js.map +1 -0
- package/dist/entities/workflow-session.entity.d.ts +20 -0
- package/dist/entities/workflow-session.entity.d.ts.map +1 -0
- package/dist/entities/workflow-session.entity.js +100 -0
- package/dist/entities/workflow-session.entity.js.map +1 -0
- package/dist/entities/workflow.entity.d.ts +23 -0
- package/dist/entities/workflow.entity.d.ts.map +1 -0
- package/dist/entities/workflow.entity.js +130 -0
- package/dist/entities/workflow.entity.js.map +1 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +37 -0
- package/dist/index.js.map +1 -0
- package/dist/modules/ai/actions/analyze-sentiment.action.d.ts +3 -0
- package/dist/modules/ai/actions/analyze-sentiment.action.d.ts.map +1 -0
- package/dist/modules/ai/actions/analyze-sentiment.action.js +59 -0
- package/dist/modules/ai/actions/analyze-sentiment.action.js.map +1 -0
- package/dist/modules/ai/actions/generate-text.action.d.ts +3 -0
- package/dist/modules/ai/actions/generate-text.action.d.ts.map +1 -0
- package/dist/modules/ai/actions/generate-text.action.js +89 -0
- package/dist/modules/ai/actions/generate-text.action.js.map +1 -0
- package/dist/modules/ai/actions/index.d.ts +4 -0
- package/dist/modules/ai/actions/index.d.ts.map +1 -0
- package/dist/modules/ai/actions/index.js +20 -0
- package/dist/modules/ai/actions/index.js.map +1 -0
- package/dist/modules/ai/actions/summarize.action.d.ts +3 -0
- package/dist/modules/ai/actions/summarize.action.d.ts.map +1 -0
- package/dist/modules/ai/actions/summarize.action.js +60 -0
- package/dist/modules/ai/actions/summarize.action.js.map +1 -0
- package/dist/modules/ai/ai.module.d.ts +3 -0
- package/dist/modules/ai/ai.module.d.ts.map +1 -0
- package/dist/modules/ai/ai.module.js +19 -0
- package/dist/modules/ai/ai.module.js.map +1 -0
- package/dist/modules/ai/auth/ai-auth.service.d.ts +5 -0
- package/dist/modules/ai/auth/ai-auth.service.d.ts.map +1 -0
- package/dist/modules/ai/auth/ai-auth.service.js +41 -0
- package/dist/modules/ai/auth/ai-auth.service.js.map +1 -0
- package/dist/modules/ai/auth/index.d.ts +2 -0
- package/dist/modules/ai/auth/index.d.ts.map +1 -0
- package/dist/modules/ai/auth/index.js +18 -0
- package/dist/modules/ai/auth/index.js.map +1 -0
- package/dist/modules/ai/credentials.d.ts +3 -0
- package/dist/modules/ai/credentials.d.ts.map +1 -0
- package/dist/modules/ai/credentials.js +32 -0
- package/dist/modules/ai/credentials.js.map +1 -0
- package/dist/modules/ai/services/analyze-sentiment.service.d.ts +5 -0
- package/dist/modules/ai/services/analyze-sentiment.service.d.ts.map +1 -0
- package/dist/modules/ai/services/analyze-sentiment.service.js +27 -0
- package/dist/modules/ai/services/analyze-sentiment.service.js.map +1 -0
- package/dist/modules/ai/services/generate-text.service.d.ts +5 -0
- package/dist/modules/ai/services/generate-text.service.d.ts.map +1 -0
- package/dist/modules/ai/services/generate-text.service.js +29 -0
- package/dist/modules/ai/services/generate-text.service.js.map +1 -0
- package/dist/modules/ai/services/index.d.ts +4 -0
- package/dist/modules/ai/services/index.d.ts.map +1 -0
- package/dist/modules/ai/services/index.js +20 -0
- package/dist/modules/ai/services/index.js.map +1 -0
- package/dist/modules/ai/services/summarize.service.d.ts +5 -0
- package/dist/modules/ai/services/summarize.service.d.ts.map +1 -0
- package/dist/modules/ai/services/summarize.service.js +28 -0
- package/dist/modules/ai/services/summarize.service.js.map +1 -0
- package/dist/modules/ai/triggers/index.d.ts +3 -0
- package/dist/modules/ai/triggers/index.d.ts.map +1 -0
- package/dist/modules/ai/triggers/index.js +5 -0
- package/dist/modules/ai/triggers/index.js.map +1 -0
- package/dist/modules/chatbot/actions/ask-question.action.d.ts +3 -0
- package/dist/modules/chatbot/actions/ask-question.action.d.ts.map +1 -0
- package/dist/modules/chatbot/actions/ask-question.action.js +42 -0
- package/dist/modules/chatbot/actions/ask-question.action.js.map +1 -0
- package/dist/modules/chatbot/actions/index.d.ts +4 -0
- package/dist/modules/chatbot/actions/index.d.ts.map +1 -0
- package/dist/modules/chatbot/actions/index.js +20 -0
- package/dist/modules/chatbot/actions/index.js.map +1 -0
- package/dist/modules/chatbot/actions/send-buttons.action.d.ts +3 -0
- package/dist/modules/chatbot/actions/send-buttons.action.d.ts.map +1 -0
- package/dist/modules/chatbot/actions/send-buttons.action.js +67 -0
- package/dist/modules/chatbot/actions/send-buttons.action.js.map +1 -0
- package/dist/modules/chatbot/actions/send-message.action.d.ts +3 -0
- package/dist/modules/chatbot/actions/send-message.action.d.ts.map +1 -0
- package/dist/modules/chatbot/actions/send-message.action.js +52 -0
- package/dist/modules/chatbot/actions/send-message.action.js.map +1 -0
- package/dist/modules/chatbot/chatbot.module.d.ts +3 -0
- package/dist/modules/chatbot/chatbot.module.d.ts.map +1 -0
- package/dist/modules/chatbot/chatbot.module.js +17 -0
- package/dist/modules/chatbot/chatbot.module.js.map +1 -0
- package/dist/modules/chatbot/credentials.d.ts +3 -0
- package/dist/modules/chatbot/credentials.d.ts.map +1 -0
- package/dist/modules/chatbot/credentials.js +5 -0
- package/dist/modules/chatbot/credentials.js.map +1 -0
- package/dist/modules/chatbot/services/ask-question.service.d.ts +5 -0
- package/dist/modules/chatbot/services/ask-question.service.d.ts.map +1 -0
- package/dist/modules/chatbot/services/ask-question.service.js +25 -0
- package/dist/modules/chatbot/services/ask-question.service.js.map +1 -0
- package/dist/modules/chatbot/services/index.d.ts +5 -0
- package/dist/modules/chatbot/services/index.d.ts.map +1 -0
- package/dist/modules/chatbot/services/index.js +21 -0
- package/dist/modules/chatbot/services/index.js.map +1 -0
- package/dist/modules/chatbot/services/send-buttons.service.d.ts +5 -0
- package/dist/modules/chatbot/services/send-buttons.service.d.ts.map +1 -0
- package/dist/modules/chatbot/services/send-buttons.service.js +25 -0
- package/dist/modules/chatbot/services/send-buttons.service.js.map +1 -0
- package/dist/modules/chatbot/services/send-message.service.d.ts +5 -0
- package/dist/modules/chatbot/services/send-message.service.d.ts.map +1 -0
- package/dist/modules/chatbot/services/send-message.service.js +27 -0
- package/dist/modules/chatbot/services/send-message.service.js.map +1 -0
- package/dist/modules/chatbot/services/user-responded.service.d.ts +5 -0
- package/dist/modules/chatbot/services/user-responded.service.d.ts.map +1 -0
- package/dist/modules/chatbot/services/user-responded.service.js +25 -0
- package/dist/modules/chatbot/services/user-responded.service.js.map +1 -0
- package/dist/modules/chatbot/triggers/index.d.ts +2 -0
- package/dist/modules/chatbot/triggers/index.d.ts.map +1 -0
- package/dist/modules/chatbot/triggers/index.js +18 -0
- package/dist/modules/chatbot/triggers/index.js.map +1 -0
- package/dist/modules/chatbot/triggers/user-responded.trigger.d.ts +3 -0
- package/dist/modules/chatbot/triggers/user-responded.trigger.d.ts.map +1 -0
- package/dist/modules/chatbot/triggers/user-responded.trigger.js +45 -0
- package/dist/modules/chatbot/triggers/user-responded.trigger.js.map +1 -0
- package/dist/modules/conditional/actions/evaluate-condition.action.d.ts +3 -0
- package/dist/modules/conditional/actions/evaluate-condition.action.d.ts.map +1 -0
- package/dist/modules/conditional/actions/evaluate-condition.action.js +75 -0
- package/dist/modules/conditional/actions/evaluate-condition.action.js.map +1 -0
- package/dist/modules/conditional/actions/index.d.ts +2 -0
- package/dist/modules/conditional/actions/index.d.ts.map +1 -0
- package/dist/modules/conditional/actions/index.js +18 -0
- package/dist/modules/conditional/actions/index.js.map +1 -0
- package/dist/modules/conditional/conditional.module.d.ts +3 -0
- package/dist/modules/conditional/conditional.module.d.ts.map +1 -0
- package/dist/modules/conditional/conditional.module.js +17 -0
- package/dist/modules/conditional/conditional.module.js.map +1 -0
- package/dist/modules/conditional/credentials.d.ts +3 -0
- package/dist/modules/conditional/credentials.d.ts.map +1 -0
- package/dist/modules/conditional/credentials.js +5 -0
- package/dist/modules/conditional/credentials.js.map +1 -0
- package/dist/modules/conditional/services/condition-met.service.d.ts +5 -0
- package/dist/modules/conditional/services/condition-met.service.d.ts.map +1 -0
- package/dist/modules/conditional/services/condition-met.service.js +24 -0
- package/dist/modules/conditional/services/condition-met.service.js.map +1 -0
- package/dist/modules/conditional/services/condition-not-met.service.d.ts +5 -0
- package/dist/modules/conditional/services/condition-not-met.service.d.ts.map +1 -0
- package/dist/modules/conditional/services/condition-not-met.service.js +24 -0
- package/dist/modules/conditional/services/condition-not-met.service.js.map +1 -0
- package/dist/modules/conditional/services/evaluate-condition.service.d.ts +5 -0
- package/dist/modules/conditional/services/evaluate-condition.service.d.ts.map +1 -0
- package/dist/modules/conditional/services/evaluate-condition.service.js +56 -0
- package/dist/modules/conditional/services/evaluate-condition.service.js.map +1 -0
- package/dist/modules/conditional/services/index.d.ts +4 -0
- package/dist/modules/conditional/services/index.d.ts.map +1 -0
- package/dist/modules/conditional/services/index.js +20 -0
- package/dist/modules/conditional/services/index.js.map +1 -0
- package/dist/modules/conditional/triggers/condition-met.trigger.d.ts +3 -0
- package/dist/modules/conditional/triggers/condition-met.trigger.d.ts.map +1 -0
- package/dist/modules/conditional/triggers/condition-met.trigger.js +39 -0
- package/dist/modules/conditional/triggers/condition-met.trigger.js.map +1 -0
- package/dist/modules/conditional/triggers/condition-not-met.trigger.d.ts +3 -0
- package/dist/modules/conditional/triggers/condition-not-met.trigger.d.ts.map +1 -0
- package/dist/modules/conditional/triggers/condition-not-met.trigger.js +39 -0
- package/dist/modules/conditional/triggers/condition-not-met.trigger.js.map +1 -0
- package/dist/modules/conditional/triggers/index.d.ts +3 -0
- package/dist/modules/conditional/triggers/index.d.ts.map +1 -0
- package/dist/modules/conditional/triggers/index.js +19 -0
- package/dist/modules/conditional/triggers/index.js.map +1 -0
- package/dist/modules/index.d.ts +6 -0
- package/dist/modules/index.d.ts.map +1 -0
- package/dist/modules/index.js +110 -0
- package/dist/modules/index.js.map +1 -0
- package/dist/modules/twilio/actions/index.d.ts +2 -0
- package/dist/modules/twilio/actions/index.d.ts.map +1 -0
- package/dist/modules/twilio/actions/index.js +18 -0
- package/dist/modules/twilio/actions/index.js.map +1 -0
- package/dist/modules/twilio/actions/send-sms.action.d.ts +3 -0
- package/dist/modules/twilio/actions/send-sms.action.d.ts.map +1 -0
- package/dist/modules/twilio/actions/send-sms.action.js +59 -0
- package/dist/modules/twilio/actions/send-sms.action.js.map +1 -0
- package/dist/modules/twilio/auth/index.d.ts +2 -0
- package/dist/modules/twilio/auth/index.d.ts.map +1 -0
- package/dist/modules/twilio/auth/index.js +18 -0
- package/dist/modules/twilio/auth/index.js.map +1 -0
- package/dist/modules/twilio/auth/twilio-auth.service.d.ts +5 -0
- package/dist/modules/twilio/auth/twilio-auth.service.d.ts.map +1 -0
- package/dist/modules/twilio/auth/twilio-auth.service.js +62 -0
- package/dist/modules/twilio/auth/twilio-auth.service.js.map +1 -0
- package/dist/modules/twilio/credentials.d.ts +3 -0
- package/dist/modules/twilio/credentials.d.ts.map +1 -0
- package/dist/modules/twilio/credentials.js +48 -0
- package/dist/modules/twilio/credentials.js.map +1 -0
- package/dist/modules/twilio/services/index.d.ts +3 -0
- package/dist/modules/twilio/services/index.d.ts.map +1 -0
- package/dist/modules/twilio/services/index.js +19 -0
- package/dist/modules/twilio/services/index.js.map +1 -0
- package/dist/modules/twilio/services/message-received.service.d.ts +5 -0
- package/dist/modules/twilio/services/message-received.service.d.ts.map +1 -0
- package/dist/modules/twilio/services/message-received.service.js +28 -0
- package/dist/modules/twilio/services/message-received.service.js.map +1 -0
- package/dist/modules/twilio/services/send-sms.service.d.ts +5 -0
- package/dist/modules/twilio/services/send-sms.service.d.ts.map +1 -0
- package/dist/modules/twilio/services/send-sms.service.js +29 -0
- package/dist/modules/twilio/services/send-sms.service.js.map +1 -0
- package/dist/modules/twilio/triggers/index.d.ts +2 -0
- package/dist/modules/twilio/triggers/index.d.ts.map +1 -0
- package/dist/modules/twilio/triggers/index.js +18 -0
- package/dist/modules/twilio/triggers/index.js.map +1 -0
- package/dist/modules/twilio/triggers/message-received.trigger.d.ts +3 -0
- package/dist/modules/twilio/triggers/message-received.trigger.d.ts.map +1 -0
- package/dist/modules/twilio/triggers/message-received.trigger.js +69 -0
- package/dist/modules/twilio/triggers/message-received.trigger.js.map +1 -0
- package/dist/modules/twilio/twilio.module.d.ts +3 -0
- package/dist/modules/twilio/twilio.module.d.ts.map +1 -0
- package/dist/modules/twilio/twilio.module.js +19 -0
- package/dist/modules/twilio/twilio.module.js.map +1 -0
- package/dist/modules/types.d.ts +103 -0
- package/dist/modules/types.d.ts.map +1 -0
- package/dist/modules/types.js +50 -0
- package/dist/modules/types.js.map +1 -0
- package/dist/services/workflow-edge.service.d.ts +12 -0
- package/dist/services/workflow-edge.service.d.ts.map +1 -0
- package/dist/services/workflow-edge.service.js +52 -0
- package/dist/services/workflow-edge.service.js.map +1 -0
- package/dist/services/workflow-execution.service.d.ts +15 -0
- package/dist/services/workflow-execution.service.d.ts.map +1 -0
- package/dist/services/workflow-execution.service.js +96 -0
- package/dist/services/workflow-execution.service.js.map +1 -0
- package/dist/services/workflow-module-credential.service.d.ts +14 -0
- package/dist/services/workflow-module-credential.service.d.ts.map +1 -0
- package/dist/services/workflow-module-credential.service.js +85 -0
- package/dist/services/workflow-module-credential.service.js.map +1 -0
- package/dist/services/workflow-module.service.d.ts +15 -0
- package/dist/services/workflow-module.service.d.ts.map +1 -0
- package/dist/services/workflow-module.service.js +96 -0
- package/dist/services/workflow-module.service.js.map +1 -0
- package/dist/services/workflow-node.service.d.ts +15 -0
- package/dist/services/workflow-node.service.d.ts.map +1 -0
- package/dist/services/workflow-node.service.js +62 -0
- package/dist/services/workflow-node.service.js.map +1 -0
- package/dist/services/workflow-session.service.d.ts +15 -0
- package/dist/services/workflow-session.service.d.ts.map +1 -0
- package/dist/services/workflow-session.service.js +91 -0
- package/dist/services/workflow-session.service.js.map +1 -0
- package/dist/services/workflow.service.d.ts +13 -0
- package/dist/services/workflow.service.d.ts.map +1 -0
- package/dist/services/workflow.service.js +73 -0
- package/dist/services/workflow.service.js.map +1 -0
- package/dist/workflow.module.d.ts +3 -0
- package/dist/workflow.module.d.ts.map +1 -0
- package/dist/workflow.module.js +98 -0
- package/dist/workflow.module.js.map +1 -0
- package/package.json +93 -0
|
@@ -0,0 +1,110 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.twilioModule = exports.conditionalModule = exports.chatbotModule = exports.aiModule = void 0;
|
|
40
|
+
const fs = __importStar(require("fs"));
|
|
41
|
+
const path = __importStar(require("path"));
|
|
42
|
+
const types_1 = require("./types");
|
|
43
|
+
async function registerModules() {
|
|
44
|
+
const modulesDir = __dirname;
|
|
45
|
+
if (!fs.existsSync(modulesDir)) {
|
|
46
|
+
console.warn(`Modules directory not found: ${modulesDir}`);
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
const entries = fs.readdirSync(modulesDir, { withFileTypes: true });
|
|
50
|
+
for (const entry of entries) {
|
|
51
|
+
if (!entry.isDirectory() ||
|
|
52
|
+
entry.name === 'node_modules' ||
|
|
53
|
+
entry.name.startsWith('.') ||
|
|
54
|
+
entry.name === 'index.ts' ||
|
|
55
|
+
entry.name === 'index.js' ||
|
|
56
|
+
entry.name === 'types.ts' ||
|
|
57
|
+
entry.name === 'types.js' ||
|
|
58
|
+
entry.name === 'README.md') {
|
|
59
|
+
continue;
|
|
60
|
+
}
|
|
61
|
+
const moduleDir = path.join(modulesDir, entry.name);
|
|
62
|
+
const moduleName = entry.name;
|
|
63
|
+
const moduleFileTs = path.join(moduleDir, `${moduleName}.module.ts`);
|
|
64
|
+
const moduleFileJs = path.join(moduleDir, `${moduleName}.module.js`);
|
|
65
|
+
let moduleFile = null;
|
|
66
|
+
if (fs.existsSync(moduleFileTs)) {
|
|
67
|
+
moduleFile = moduleFileTs;
|
|
68
|
+
}
|
|
69
|
+
else if (fs.existsSync(moduleFileJs)) {
|
|
70
|
+
moduleFile = moduleFileJs;
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
continue;
|
|
74
|
+
}
|
|
75
|
+
try {
|
|
76
|
+
const relativePath = path.relative(__dirname, moduleFile).replace(/\\/g, '/');
|
|
77
|
+
const modulePath = relativePath.startsWith('.') ? relativePath : `./${relativePath}`;
|
|
78
|
+
const moduleExport = await Promise.resolve(`${modulePath}`).then(s => __importStar(require(s)));
|
|
79
|
+
const moduleExportName = `${moduleName.charAt(0).toUpperCase() + moduleName.slice(1)}Module`;
|
|
80
|
+
const module = moduleExport[`${moduleName}Module`] ||
|
|
81
|
+
moduleExport[moduleExportName] ||
|
|
82
|
+
moduleExport.default;
|
|
83
|
+
if (module && typeof module === 'object' && 'id' in module) {
|
|
84
|
+
const workflowModule = module;
|
|
85
|
+
types_1.workflowModuleRegistry.register(workflowModule);
|
|
86
|
+
console.log(`✓ Registered workflow module: ${workflowModule.name} (${workflowModule.id})`);
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
console.warn(`âš Module file found but no valid module definition exported: ${moduleFile}`);
|
|
90
|
+
console.warn(` Expected export: ${moduleName}Module or ${moduleExportName}`);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
catch (error) {
|
|
94
|
+
console.error(`✗ Error loading module from ${moduleFile}:`, error);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
registerModules().catch((error) => {
|
|
99
|
+
console.error('Failed to register workflow modules:', error);
|
|
100
|
+
});
|
|
101
|
+
__exportStar(require("./types"), exports);
|
|
102
|
+
var ai_module_1 = require("./ai/ai.module");
|
|
103
|
+
Object.defineProperty(exports, "aiModule", { enumerable: true, get: function () { return ai_module_1.aiModule; } });
|
|
104
|
+
var chatbot_module_1 = require("./chatbot/chatbot.module");
|
|
105
|
+
Object.defineProperty(exports, "chatbotModule", { enumerable: true, get: function () { return chatbot_module_1.chatbotModule; } });
|
|
106
|
+
var conditional_module_1 = require("./conditional/conditional.module");
|
|
107
|
+
Object.defineProperty(exports, "conditionalModule", { enumerable: true, get: function () { return conditional_module_1.conditionalModule; } });
|
|
108
|
+
var twilio_module_1 = require("./twilio/twilio.module");
|
|
109
|
+
Object.defineProperty(exports, "twilioModule", { enumerable: true, get: function () { return twilio_module_1.twilioModule; } });
|
|
110
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/modules/index.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/twilio/actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./send-sms.action"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/twilio/actions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"send-sms.action.d.ts","sourceRoot":"","sources":["../../../../src/modules/twilio/actions/send-sms.action.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAG/E,eAAO,MAAM,aAAa,EAAE,qBAoD3B,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sendSmsAction = void 0;
|
|
4
|
+
const types_1 = require("../../types");
|
|
5
|
+
const send_sms_service_1 = require("../services/send-sms.service");
|
|
6
|
+
exports.sendSmsAction = {
|
|
7
|
+
id: 'send-sms',
|
|
8
|
+
name: 'Send SMS',
|
|
9
|
+
description: 'Send an SMS message to a phone number',
|
|
10
|
+
category: types_1.NODE_CATEGORY.ACTION,
|
|
11
|
+
icon: '📤',
|
|
12
|
+
serviceClass: send_sms_service_1.SendSmsService,
|
|
13
|
+
inputs: [
|
|
14
|
+
{
|
|
15
|
+
id: 'phoneNumber',
|
|
16
|
+
name: 'Phone Number',
|
|
17
|
+
description: 'Recipient phone number (E.164 format)',
|
|
18
|
+
type: types_1.FIELD_TYPE.PHONE,
|
|
19
|
+
validation: {
|
|
20
|
+
required: true,
|
|
21
|
+
pattern: '^\\+[1-9]\\d{1,14}$',
|
|
22
|
+
},
|
|
23
|
+
placeholder: '+1234567890',
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
id: 'messageBody',
|
|
27
|
+
name: 'Message Body',
|
|
28
|
+
description: 'The SMS message content',
|
|
29
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
30
|
+
validation: {
|
|
31
|
+
required: true,
|
|
32
|
+
minLength: 1,
|
|
33
|
+
maxLength: 1600,
|
|
34
|
+
},
|
|
35
|
+
placeholder: 'Enter your SMS message...',
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
outputs: [
|
|
39
|
+
{
|
|
40
|
+
id: 'messageSid',
|
|
41
|
+
name: 'Message SID',
|
|
42
|
+
description: 'Twilio message SID',
|
|
43
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
id: 'status',
|
|
47
|
+
name: 'Status',
|
|
48
|
+
description: 'Message delivery status',
|
|
49
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
id: 'sentAt',
|
|
53
|
+
name: 'Sent At',
|
|
54
|
+
description: 'Timestamp when message was sent',
|
|
55
|
+
type: types_1.FIELD_TYPE.DATE,
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
};
|
|
59
|
+
//# sourceMappingURL=send-sms.action.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"send-sms.action.js","sourceRoot":"","sources":["../../../../src/modules/twilio/actions/send-sms.action.ts"],"names":[],"mappings":";;;AAAA,uCAA+E;AAC/E,mEAA8D;AAEjD,QAAA,aAAa,GAA0B;IAClD,EAAE,EAAE,UAAU;IACd,IAAI,EAAE,UAAU;IAChB,WAAW,EAAE,uCAAuC;IACpD,QAAQ,EAAE,qBAAa,CAAC,MAAM;IAC9B,IAAI,EAAE,IAAI;IACV,YAAY,EAAE,iCAAc;IAC5B,MAAM,EAAE;QACN;YACE,EAAE,EAAE,aAAa;YACjB,IAAI,EAAE,cAAc;YACpB,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,kBAAU,CAAC,KAAK;YACtB,UAAU,EAAE;gBACV,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,qBAAqB;aAC/B;YACD,WAAW,EAAE,aAAa;SAC3B;QACD;YACE,EAAE,EAAE,aAAa;YACjB,IAAI,EAAE,cAAc;YACpB,WAAW,EAAE,yBAAyB;YACtC,IAAI,EAAE,kBAAU,CAAC,MAAM;YACvB,UAAU,EAAE;gBACV,QAAQ,EAAE,IAAI;gBACd,SAAS,EAAE,CAAC;gBACZ,SAAS,EAAE,IAAI;aAChB;YACD,WAAW,EAAE,2BAA2B;SACzC;KACF;IACD,OAAO,EAAE;QACP;YACE,EAAE,EAAE,YAAY;YAChB,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,oBAAoB;YACjC,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;QACD;YACE,EAAE,EAAE,QAAQ;YACZ,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,yBAAyB;YACtC,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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/twilio/auth/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./twilio-auth.service"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/twilio/auth/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CredentialAuthResult, IWorkflowCredentialAuthService } from '../../types';
|
|
2
|
+
export declare class TwilioAuthService implements IWorkflowCredentialAuthService {
|
|
3
|
+
authenticate(credentials: Record<string, unknown>): Promise<CredentialAuthResult>;
|
|
4
|
+
}
|
|
5
|
+
//# sourceMappingURL=twilio-auth.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"twilio-auth.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/twilio/auth/twilio-auth.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,8BAA8B,EAAE,MAAM,aAAa,CAAC;AAEnF,qBACa,iBAAkB,YAAW,8BAA8B;IAChE,YAAY,CAAC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAwExF"}
|
|
@@ -0,0 +1,62 @@
|
|
|
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.TwilioAuthService = void 0;
|
|
10
|
+
const common_1 = require("@nestjs/common");
|
|
11
|
+
let TwilioAuthService = class TwilioAuthService {
|
|
12
|
+
async authenticate(credentials) {
|
|
13
|
+
try {
|
|
14
|
+
const accountSid = credentials.accountSid;
|
|
15
|
+
const authToken = credentials.authToken;
|
|
16
|
+
if (!accountSid || accountSid.trim().length === 0) {
|
|
17
|
+
return {
|
|
18
|
+
success: false,
|
|
19
|
+
message: 'Account SID is required',
|
|
20
|
+
error: 'MISSING_ACCOUNT_SID',
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
if (!authToken || authToken.trim().length === 0) {
|
|
24
|
+
return {
|
|
25
|
+
success: false,
|
|
26
|
+
message: 'Auth token is required',
|
|
27
|
+
error: 'MISSING_AUTH_TOKEN',
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
if (accountSid.length !== 34 || !accountSid.startsWith('AC')) {
|
|
31
|
+
return {
|
|
32
|
+
success: false,
|
|
33
|
+
message: 'Invalid Account SID format',
|
|
34
|
+
error: 'INVALID_ACCOUNT_SID_FORMAT',
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
if (authToken.length !== 32) {
|
|
38
|
+
return {
|
|
39
|
+
success: false,
|
|
40
|
+
message: 'Invalid Auth Token format',
|
|
41
|
+
error: 'INVALID_AUTH_TOKEN_FORMAT',
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
success: true,
|
|
46
|
+
message: 'Credentials validated successfully',
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
catch (error) {
|
|
50
|
+
return {
|
|
51
|
+
success: false,
|
|
52
|
+
message: error instanceof Error ? error.message : 'Unknown error occurred',
|
|
53
|
+
error: 'AUTH_ERROR',
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
exports.TwilioAuthService = TwilioAuthService;
|
|
59
|
+
exports.TwilioAuthService = TwilioAuthService = __decorate([
|
|
60
|
+
(0, common_1.Injectable)()
|
|
61
|
+
], TwilioAuthService);
|
|
62
|
+
//# sourceMappingURL=twilio-auth.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"twilio-auth.service.js","sourceRoot":"","sources":["../../../../src/modules/twilio/auth/twilio-auth.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAKrC,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAC5B,KAAK,CAAC,YAAY,CAAC,WAAoC;QACrD,IAAI,CAAC;YACH,MAAM,UAAU,GAAG,WAAW,CAAC,UAAoB,CAAC;YACpD,MAAM,SAAS,GAAG,WAAW,CAAC,SAAmB,CAAC;YAElD,IAAI,CAAC,UAAU,IAAI,UAAU,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBAClD,OAAO;oBACL,OAAO,EAAE,KAAK;oBACd,OAAO,EAAE,yBAAyB;oBAClC,KAAK,EAAE,qBAAqB;iBAC7B,CAAC;YACJ,CAAC;YAED,IAAI,CAAC,SAAS,IAAI,SAAS,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBAChD,OAAO;oBACL,OAAO,EAAE,KAAK;oBACd,OAAO,EAAE,wBAAwB;oBACjC,KAAK,EAAE,oBAAoB;iBAC5B,CAAC;YACJ,CAAC;YAED,IAAI,UAAU,CAAC,MAAM,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;gBAC7D,OAAO;oBACL,OAAO,EAAE,KAAK;oBACd,OAAO,EAAE,4BAA4B;oBACrC,KAAK,EAAE,4BAA4B;iBACpC,CAAC;YACJ,CAAC;YAED,IAAI,SAAS,CAAC,MAAM,KAAK,EAAE,EAAE,CAAC;gBAC5B,OAAO;oBACL,OAAO,EAAE,KAAK;oBACd,OAAO,EAAE,2BAA2B;oBACpC,KAAK,EAAE,2BAA2B;iBACnC,CAAC;YACJ,CAAC;YAyBD,OAAO;gBACL,OAAO,EAAE,IAAI;gBACb,OAAO,EAAE,oCAAoC;aAC9C,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,KAAK;gBACd,OAAO,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,wBAAwB;gBAC1E,KAAK,EAAE,YAAY;aACpB,CAAC;QACJ,CAAC;IACH,CAAC;CACF,CAAA;AAzEY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,mBAAU,GAAE;GACA,iBAAiB,CAyE7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../../../src/modules/twilio/credentials.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAc,MAAM,UAAU,CAAC;AAEjE,eAAO,MAAM,iBAAiB,EAAE,yBAAyB,EA0CxD,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.twilioCredentials = void 0;
|
|
4
|
+
const types_1 = require("../types");
|
|
5
|
+
exports.twilioCredentials = [
|
|
6
|
+
{
|
|
7
|
+
id: 'accountSid',
|
|
8
|
+
name: 'Account SID',
|
|
9
|
+
description: 'Your Twilio Account SID',
|
|
10
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
11
|
+
validation: {
|
|
12
|
+
required: true,
|
|
13
|
+
minLength: 34,
|
|
14
|
+
maxLength: 34,
|
|
15
|
+
},
|
|
16
|
+
placeholder: 'ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
|
|
17
|
+
sensitive: true,
|
|
18
|
+
required: true,
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
id: 'authToken',
|
|
22
|
+
name: 'Auth Token',
|
|
23
|
+
description: 'Your Twilio Auth Token',
|
|
24
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
25
|
+
validation: {
|
|
26
|
+
required: true,
|
|
27
|
+
minLength: 32,
|
|
28
|
+
maxLength: 32,
|
|
29
|
+
},
|
|
30
|
+
placeholder: 'Your auth token',
|
|
31
|
+
sensitive: true,
|
|
32
|
+
required: true,
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
id: 'fromNumber',
|
|
36
|
+
name: 'From Phone Number',
|
|
37
|
+
description: 'Default phone number to send messages from (optional)',
|
|
38
|
+
type: types_1.FIELD_TYPE.PHONE,
|
|
39
|
+
validation: {
|
|
40
|
+
required: false,
|
|
41
|
+
pattern: '^\\+[1-9]\\d{1,14}$',
|
|
42
|
+
},
|
|
43
|
+
placeholder: '+1234567890',
|
|
44
|
+
sensitive: false,
|
|
45
|
+
required: false,
|
|
46
|
+
},
|
|
47
|
+
];
|
|
48
|
+
//# sourceMappingURL=credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credentials.js","sourceRoot":"","sources":["../../../src/modules/twilio/credentials.ts"],"names":[],"mappings":";;;AAAA,oCAAiE;AAEpD,QAAA,iBAAiB,GAAgC;IAC5D;QACE,EAAE,EAAE,YAAY;QAChB,IAAI,EAAE,aAAa;QACnB,WAAW,EAAE,yBAAyB;QACtC,IAAI,EAAE,kBAAU,CAAC,MAAM;QACvB,UAAU,EAAE;YACV,QAAQ,EAAE,IAAI;YACd,SAAS,EAAE,EAAE;YACb,SAAS,EAAE,EAAE;SACd;QACD,WAAW,EAAE,oCAAoC;QACjD,SAAS,EAAE,IAAI;QACf,QAAQ,EAAE,IAAI;KACf;IACD;QACE,EAAE,EAAE,WAAW;QACf,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,wBAAwB;QACrC,IAAI,EAAE,kBAAU,CAAC,MAAM;QACvB,UAAU,EAAE;YACV,QAAQ,EAAE,IAAI;YACd,SAAS,EAAE,EAAE;YACb,SAAS,EAAE,EAAE;SACd;QACD,WAAW,EAAE,iBAAiB;QAC9B,SAAS,EAAE,IAAI;QACf,QAAQ,EAAE,IAAI;KACf;IACD;QACE,EAAE,EAAE,YAAY;QAChB,IAAI,EAAE,mBAAmB;QACzB,WAAW,EAAE,uDAAuD;QACpE,IAAI,EAAE,kBAAU,CAAC,KAAK;QACtB,UAAU,EAAE;YACV,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE,qBAAqB;SAC/B;QACD,WAAW,EAAE,aAAa;QAC1B,SAAS,EAAE,KAAK;QAChB,QAAQ,EAAE,KAAK;KAChB;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/twilio/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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("./message-received.service"), exports);
|
|
18
|
+
__exportStar(require("./send-sms.service"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/twilio/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,qDAAmC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IWorkflowActionService, WorkflowActionContext } from '../../types';
|
|
2
|
+
export declare class MessageReceivedService implements IWorkflowActionService {
|
|
3
|
+
perform(inputs: Record<string, unknown>, _context: WorkflowActionContext): Promise<Record<string, unknown>>;
|
|
4
|
+
}
|
|
5
|
+
//# sourceMappingURL=message-received.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message-received.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/twilio/services/message-received.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAE5E,qBACa,sBAAuB,YAAW,sBAAsB;IAC7D,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;CAepC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
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.MessageReceivedService = void 0;
|
|
10
|
+
const common_1 = require("@nestjs/common");
|
|
11
|
+
let MessageReceivedService = class MessageReceivedService {
|
|
12
|
+
async perform(inputs, _context) {
|
|
13
|
+
const phoneNumber = inputs.phoneNumber;
|
|
14
|
+
const _webhookUrl = inputs.webhookUrl;
|
|
15
|
+
return {
|
|
16
|
+
messageBody: '',
|
|
17
|
+
fromNumber: '',
|
|
18
|
+
toNumber: phoneNumber,
|
|
19
|
+
messageSid: '',
|
|
20
|
+
receivedAt: new Date().toISOString(),
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
exports.MessageReceivedService = MessageReceivedService;
|
|
25
|
+
exports.MessageReceivedService = MessageReceivedService = __decorate([
|
|
26
|
+
(0, common_1.Injectable)()
|
|
27
|
+
], MessageReceivedService);
|
|
28
|
+
//# sourceMappingURL=message-received.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message-received.service.js","sourceRoot":"","sources":["../../../../src/modules/twilio/services/message-received.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAKrC,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IACjC,KAAK,CAAC,OAAO,CACX,MAA+B,EAC/B,QAA+B;QAI/B,MAAM,WAAW,GAAG,MAAM,CAAC,WAAqB,CAAC;QACjD,MAAM,WAAW,GAAG,MAAM,CAAC,UAAoB,CAAC;QAGhD,OAAO;YACL,WAAW,EAAE,EAAE;YACf,UAAU,EAAE,EAAE;YACd,QAAQ,EAAE,WAAW;YACrB,UAAU,EAAE,EAAE;YACd,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;SACrC,CAAC;IACJ,CAAC;CACF,CAAA;AAnBY,wDAAsB;iCAAtB,sBAAsB;IADlC,IAAA,mBAAU,GAAE;GACA,sBAAsB,CAmBlC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IWorkflowActionService, WorkflowActionContext } from '../../types';
|
|
2
|
+
export declare class SendSmsService implements IWorkflowActionService {
|
|
3
|
+
perform(inputs: Record<string, unknown>, context: WorkflowActionContext): Promise<Record<string, unknown>>;
|
|
4
|
+
}
|
|
5
|
+
//# sourceMappingURL=send-sms.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"send-sms.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/twilio/services/send-sms.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAE5E,qBACa,cAAe,YAAW,sBAAsB;IACrD,OAAO,CACX,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,OAAO,EAAE,qBAAqB,GAC7B,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAwBpC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
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.SendSmsService = void 0;
|
|
10
|
+
const common_1 = require("@nestjs/common");
|
|
11
|
+
let SendSmsService = class SendSmsService {
|
|
12
|
+
async perform(inputs, context) {
|
|
13
|
+
const _phoneNumber = inputs.phoneNumber;
|
|
14
|
+
const _messageBody = inputs.messageBody;
|
|
15
|
+
const _accountSid = context.credentials?.accountSid;
|
|
16
|
+
const _authToken = context.credentials?.authToken;
|
|
17
|
+
const _fromNumber = context.credentials?.fromNumber || _phoneNumber;
|
|
18
|
+
return {
|
|
19
|
+
messageSid: `SM${Date.now()}`,
|
|
20
|
+
status: 'queued',
|
|
21
|
+
sentAt: new Date().toISOString(),
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
exports.SendSmsService = SendSmsService;
|
|
26
|
+
exports.SendSmsService = SendSmsService = __decorate([
|
|
27
|
+
(0, common_1.Injectable)()
|
|
28
|
+
], SendSmsService);
|
|
29
|
+
//# sourceMappingURL=send-sms.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"send-sms.service.js","sourceRoot":"","sources":["../../../../src/modules/twilio/services/send-sms.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAKrC,IAAM,cAAc,GAApB,MAAM,cAAc;IACzB,KAAK,CAAC,OAAO,CACX,MAA+B,EAC/B,OAA8B;QAI9B,MAAM,YAAY,GAAG,MAAM,CAAC,WAAqB,CAAC;QAClD,MAAM,YAAY,GAAG,MAAM,CAAC,WAAqB,CAAC;QAClD,MAAM,WAAW,GAAG,OAAO,CAAC,WAAW,EAAE,UAAoB,CAAC;QAC9D,MAAM,UAAU,GAAG,OAAO,CAAC,WAAW,EAAE,SAAmB,CAAC;QAC5D,MAAM,WAAW,GAAI,OAAO,CAAC,WAAW,EAAE,UAAqB,IAAI,YAAY,CAAC;QAWhF,OAAO;YACL,UAAU,EAAE,KAAK,IAAI,CAAC,GAAG,EAAE,EAAE;YAC7B,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;SACjC,CAAC;IACJ,CAAC;CACF,CAAA;AA5BY,wCAAc;yBAAd,cAAc;IAD1B,IAAA,mBAAU,GAAE;GACA,cAAc,CA4B1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/twilio/triggers/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./message-received.trigger"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/twilio/triggers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message-received.trigger.d.ts","sourceRoot":"","sources":["../../../../src/modules/twilio/triggers/message-received.trigger.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAG/E,eAAO,MAAM,sBAAsB,EAAE,qBA8DpC,CAAC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.messageReceivedTrigger = void 0;
|
|
4
|
+
const types_1 = require("../../types");
|
|
5
|
+
const message_received_service_1 = require("../services/message-received.service");
|
|
6
|
+
exports.messageReceivedTrigger = {
|
|
7
|
+
id: 'message-received',
|
|
8
|
+
name: 'Message Received',
|
|
9
|
+
description: 'Triggered when an SMS message is received',
|
|
10
|
+
category: types_1.NODE_CATEGORY.TRIGGER,
|
|
11
|
+
icon: '📥',
|
|
12
|
+
serviceClass: message_received_service_1.MessageReceivedService,
|
|
13
|
+
inputs: [
|
|
14
|
+
{
|
|
15
|
+
id: 'phoneNumber',
|
|
16
|
+
name: 'Phone Number',
|
|
17
|
+
description: 'The phone number to monitor for incoming messages',
|
|
18
|
+
type: types_1.FIELD_TYPE.PHONE,
|
|
19
|
+
validation: {
|
|
20
|
+
required: true,
|
|
21
|
+
pattern: '^\\+[1-9]\\d{1,14}$',
|
|
22
|
+
},
|
|
23
|
+
placeholder: '+1234567890',
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
id: 'webhookUrl',
|
|
27
|
+
name: 'Webhook URL',
|
|
28
|
+
description: 'URL to configure in Twilio console for receiving messages',
|
|
29
|
+
type: types_1.FIELD_TYPE.URL,
|
|
30
|
+
validation: {
|
|
31
|
+
required: true,
|
|
32
|
+
},
|
|
33
|
+
placeholder: 'https://your-domain.com/webhook',
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
outputs: [
|
|
37
|
+
{
|
|
38
|
+
id: 'messageBody',
|
|
39
|
+
name: 'Message Body',
|
|
40
|
+
description: 'Content of the received message',
|
|
41
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
id: 'fromNumber',
|
|
45
|
+
name: 'From Number',
|
|
46
|
+
description: 'Phone number that sent the message',
|
|
47
|
+
type: types_1.FIELD_TYPE.PHONE,
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
id: 'toNumber',
|
|
51
|
+
name: 'To Number',
|
|
52
|
+
description: 'Phone number that received the message',
|
|
53
|
+
type: types_1.FIELD_TYPE.PHONE,
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
id: 'messageSid',
|
|
57
|
+
name: 'Message SID',
|
|
58
|
+
description: 'Twilio message SID',
|
|
59
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
id: 'receivedAt',
|
|
63
|
+
name: 'Received At',
|
|
64
|
+
description: 'Timestamp when message was received',
|
|
65
|
+
type: types_1.FIELD_TYPE.DATE,
|
|
66
|
+
},
|
|
67
|
+
],
|
|
68
|
+
};
|
|
69
|
+
//# sourceMappingURL=message-received.trigger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message-received.trigger.js","sourceRoot":"","sources":["../../../../src/modules/twilio/triggers/message-received.trigger.ts"],"names":[],"mappings":";;;AAAA,uCAA+E;AAC/E,mFAA8E;AAEjE,QAAA,sBAAsB,GAA0B;IAC3D,EAAE,EAAE,kBAAkB;IACtB,IAAI,EAAE,kBAAkB;IACxB,WAAW,EAAE,2CAA2C;IACxD,QAAQ,EAAE,qBAAa,CAAC,OAAO;IAC/B,IAAI,EAAE,IAAI;IACV,YAAY,EAAE,iDAAsB;IACpC,MAAM,EAAE;QACN;YACE,EAAE,EAAE,aAAa;YACjB,IAAI,EAAE,cAAc;YACpB,WAAW,EAAE,mDAAmD;YAChE,IAAI,EAAE,kBAAU,CAAC,KAAK;YACtB,UAAU,EAAE;gBACV,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,qBAAqB;aAC/B;YACD,WAAW,EAAE,aAAa;SAC3B;QACD;YACE,EAAE,EAAE,YAAY;YAChB,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,2DAA2D;YACxE,IAAI,EAAE,kBAAU,CAAC,GAAG;YACpB,UAAU,EAAE;gBACV,QAAQ,EAAE,IAAI;aACf;YACD,WAAW,EAAE,iCAAiC;SAC/C;KACF;IACD,OAAO,EAAE;QACP;YACE,EAAE,EAAE,aAAa;YACjB,IAAI,EAAE,cAAc;YACpB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;QACD;YACE,EAAE,EAAE,YAAY;YAChB,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,oCAAoC;YACjD,IAAI,EAAE,kBAAU,CAAC,KAAK;SACvB;QACD;YACE,EAAE,EAAE,UAAU;YACd,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,wCAAwC;YACrD,IAAI,EAAE,kBAAU,CAAC,KAAK;SACvB;QACD;YACE,EAAE,EAAE,YAAY;YAChB,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,oBAAoB;YACjC,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;QACD;YACE,EAAE,EAAE,YAAY;YAChB,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE,kBAAU,CAAC,IAAI;SACtB;KACF;CACF,CAAC"}
|