@venturialstd/workflow 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/constants/workflow.constant.d.ts +2 -1
- package/dist/constants/workflow.constant.d.ts.map +1 -1
- package/dist/constants/workflow.constant.js +1 -0
- package/dist/constants/workflow.constant.js.map +1 -1
- package/dist/dtos/create-workflow-webhook.dto.d.ts +9 -0
- package/dist/dtos/create-workflow-webhook.dto.d.ts.map +1 -0
- package/dist/dtos/create-workflow-webhook.dto.js +48 -0
- package/dist/dtos/create-workflow-webhook.dto.js.map +1 -0
- package/dist/dtos/index.d.ts +1 -0
- package/dist/dtos/index.d.ts.map +1 -1
- package/dist/dtos/index.js +1 -0
- package/dist/dtos/index.js.map +1 -1
- package/dist/entities/workflow-webhook.entity.d.ts +22 -0
- package/dist/entities/workflow-webhook.entity.d.ts.map +1 -0
- package/dist/entities/workflow-webhook.entity.js +103 -0
- package/dist/entities/workflow-webhook.entity.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/modules/conditional/services/evaluate-condition.service.d.ts.map +1 -1
- package/dist/modules/conditional/services/evaluate-condition.service.js +39 -23
- package/dist/modules/conditional/services/evaluate-condition.service.js.map +1 -1
- package/dist/modules/index.d.ts +1 -0
- package/dist/modules/index.d.ts.map +1 -1
- package/dist/modules/index.js +5 -1
- package/dist/modules/index.js.map +1 -1
- package/dist/modules/twilio/actions/cancel-verification.action.d.ts +3 -0
- package/dist/modules/twilio/actions/cancel-verification.action.d.ts.map +1 -0
- package/dist/modules/twilio/actions/cancel-verification.action.js +56 -0
- package/dist/modules/twilio/actions/cancel-verification.action.js.map +1 -0
- package/dist/modules/twilio/actions/create-conversation.action.d.ts +3 -0
- package/dist/modules/twilio/actions/create-conversation.action.d.ts.map +1 -0
- package/dist/modules/twilio/actions/create-conversation.action.js +79 -0
- package/dist/modules/twilio/actions/create-conversation.action.js.map +1 -0
- package/dist/modules/twilio/actions/create-video-room.action.d.ts +3 -0
- package/dist/modules/twilio/actions/create-video-room.action.d.ts.map +1 -0
- package/dist/modules/twilio/actions/create-video-room.action.js +89 -0
- package/dist/modules/twilio/actions/create-video-room.action.js.map +1 -0
- package/dist/modules/twilio/actions/delete-call.action.d.ts +3 -0
- package/dist/modules/twilio/actions/delete-call.action.d.ts.map +1 -0
- package/dist/modules/twilio/actions/delete-call.action.js +40 -0
- package/dist/modules/twilio/actions/delete-call.action.js.map +1 -0
- package/dist/modules/twilio/actions/delete-message.action.d.ts +3 -0
- package/dist/modules/twilio/actions/delete-message.action.d.ts.map +1 -0
- package/dist/modules/twilio/actions/delete-message.action.js +40 -0
- package/dist/modules/twilio/actions/delete-message.action.js.map +1 -0
- package/dist/modules/twilio/actions/fetch-call-recordings.action.d.ts +3 -0
- package/dist/modules/twilio/actions/fetch-call-recordings.action.d.ts.map +1 -0
- package/dist/modules/twilio/actions/fetch-call-recordings.action.js +46 -0
- package/dist/modules/twilio/actions/fetch-call-recordings.action.js.map +1 -0
- package/dist/modules/twilio/actions/fetch-call.action.d.ts +3 -0
- package/dist/modules/twilio/actions/fetch-call.action.d.ts.map +1 -0
- package/dist/modules/twilio/actions/fetch-call.action.js +52 -0
- package/dist/modules/twilio/actions/fetch-call.action.js.map +1 -0
- package/dist/modules/twilio/actions/fetch-message.action.d.ts +3 -0
- package/dist/modules/twilio/actions/fetch-message.action.d.ts.map +1 -0
- package/dist/modules/twilio/actions/fetch-message.action.js +58 -0
- package/dist/modules/twilio/actions/fetch-message.action.js.map +1 -0
- package/dist/modules/twilio/actions/fetch-verification.action.d.ts +3 -0
- package/dist/modules/twilio/actions/fetch-verification.action.d.ts.map +1 -0
- package/dist/modules/twilio/actions/fetch-verification.action.js +62 -0
- package/dist/modules/twilio/actions/fetch-verification.action.js.map +1 -0
- package/dist/modules/twilio/actions/generate-twiml-dial.action.d.ts +3 -0
- package/dist/modules/twilio/actions/generate-twiml-dial.action.d.ts.map +1 -0
- package/dist/modules/twilio/actions/generate-twiml-dial.action.js +72 -0
- package/dist/modules/twilio/actions/generate-twiml-dial.action.js.map +1 -0
- package/dist/modules/twilio/actions/generate-twiml-say.action.d.ts +3 -0
- package/dist/modules/twilio/actions/generate-twiml-say.action.d.ts.map +1 -0
- package/dist/modules/twilio/actions/generate-twiml-say.action.js +68 -0
- package/dist/modules/twilio/actions/generate-twiml-say.action.js.map +1 -0
- package/dist/modules/twilio/actions/index.d.ts +20 -0
- package/dist/modules/twilio/actions/index.d.ts.map +1 -1
- package/dist/modules/twilio/actions/index.js +20 -0
- package/dist/modules/twilio/actions/index.js.map +1 -1
- package/dist/modules/twilio/actions/list-calls.action.d.ts +3 -0
- package/dist/modules/twilio/actions/list-calls.action.d.ts.map +1 -0
- package/dist/modules/twilio/actions/list-calls.action.js +80 -0
- package/dist/modules/twilio/actions/list-calls.action.js.map +1 -0
- package/dist/modules/twilio/actions/list-messages.action.d.ts +3 -0
- package/dist/modules/twilio/actions/list-messages.action.d.ts.map +1 -0
- package/dist/modules/twilio/actions/list-messages.action.js +89 -0
- package/dist/modules/twilio/actions/list-messages.action.js.map +1 -0
- package/dist/modules/twilio/actions/lookup-phone-number.action.d.ts +3 -0
- package/dist/modules/twilio/actions/lookup-phone-number.action.d.ts.map +1 -0
- package/dist/modules/twilio/actions/lookup-phone-number.action.js +79 -0
- package/dist/modules/twilio/actions/lookup-phone-number.action.js.map +1 -0
- package/dist/modules/twilio/actions/make-call.action.d.ts +3 -0
- package/dist/modules/twilio/actions/make-call.action.d.ts.map +1 -0
- package/dist/modules/twilio/actions/make-call.action.js +109 -0
- package/dist/modules/twilio/actions/make-call.action.js.map +1 -0
- package/dist/modules/twilio/actions/send-conversation-message.action.d.ts +3 -0
- package/dist/modules/twilio/actions/send-conversation-message.action.d.ts.map +1 -0
- package/dist/modules/twilio/actions/send-conversation-message.action.js +72 -0
- package/dist/modules/twilio/actions/send-conversation-message.action.js.map +1 -0
- package/dist/modules/twilio/actions/send-sms.action.d.ts.map +1 -1
- package/dist/modules/twilio/actions/send-sms.action.js.map +1 -1
- package/dist/modules/twilio/actions/send-verification.action.d.ts +3 -0
- package/dist/modules/twilio/actions/send-verification.action.d.ts.map +1 -0
- package/dist/modules/twilio/actions/send-verification.action.js +99 -0
- package/dist/modules/twilio/actions/send-verification.action.js.map +1 -0
- package/dist/modules/twilio/actions/update-call.action.d.ts +3 -0
- package/dist/modules/twilio/actions/update-call.action.d.ts.map +1 -0
- package/dist/modules/twilio/actions/update-call.action.js +72 -0
- package/dist/modules/twilio/actions/update-call.action.js.map +1 -0
- package/dist/modules/twilio/actions/update-message.action.d.ts +3 -0
- package/dist/modules/twilio/actions/update-message.action.d.ts.map +1 -0
- package/dist/modules/twilio/actions/update-message.action.js +57 -0
- package/dist/modules/twilio/actions/update-message.action.js.map +1 -0
- package/dist/modules/twilio/actions/verify-code.action.d.ts +3 -0
- package/dist/modules/twilio/actions/verify-code.action.d.ts.map +1 -0
- package/dist/modules/twilio/actions/verify-code.action.js +72 -0
- package/dist/modules/twilio/actions/verify-code.action.js.map +1 -0
- package/dist/modules/twilio/services/cancel-verification.service.d.ts +8 -0
- package/dist/modules/twilio/services/cancel-verification.service.d.ts.map +1 -0
- package/dist/modules/twilio/services/cancel-verification.service.js +53 -0
- package/dist/modules/twilio/services/cancel-verification.service.js.map +1 -0
- package/dist/modules/twilio/services/create-conversation.service.d.ts +8 -0
- package/dist/modules/twilio/services/create-conversation.service.d.ts.map +1 -0
- package/dist/modules/twilio/services/create-conversation.service.js +56 -0
- package/dist/modules/twilio/services/create-conversation.service.js.map +1 -0
- package/dist/modules/twilio/services/create-video-room.service.d.ts +8 -0
- package/dist/modules/twilio/services/create-video-room.service.d.ts.map +1 -0
- package/dist/modules/twilio/services/create-video-room.service.js +57 -0
- package/dist/modules/twilio/services/create-video-room.service.js.map +1 -0
- package/dist/modules/twilio/services/delete-call.service.d.ts +8 -0
- package/dist/modules/twilio/services/delete-call.service.d.ts.map +1 -0
- package/dist/modules/twilio/services/delete-call.service.js +48 -0
- package/dist/modules/twilio/services/delete-call.service.js.map +1 -0
- package/dist/modules/twilio/services/delete-message.service.d.ts +8 -0
- package/dist/modules/twilio/services/delete-message.service.d.ts.map +1 -0
- package/dist/modules/twilio/services/delete-message.service.js +43 -0
- package/dist/modules/twilio/services/delete-message.service.js.map +1 -0
- package/dist/modules/twilio/services/fetch-call-recordings.service.d.ts +8 -0
- package/dist/modules/twilio/services/fetch-call-recordings.service.d.ts.map +1 -0
- package/dist/modules/twilio/services/fetch-call-recordings.service.js +56 -0
- package/dist/modules/twilio/services/fetch-call-recordings.service.js.map +1 -0
- package/dist/modules/twilio/services/fetch-call.service.d.ts +8 -0
- package/dist/modules/twilio/services/fetch-call.service.d.ts.map +1 -0
- package/dist/modules/twilio/services/fetch-call.service.js +52 -0
- package/dist/modules/twilio/services/fetch-call.service.js.map +1 -0
- package/dist/modules/twilio/services/fetch-message.service.d.ts +8 -0
- package/dist/modules/twilio/services/fetch-message.service.d.ts.map +1 -0
- package/dist/modules/twilio/services/fetch-message.service.js +60 -0
- package/dist/modules/twilio/services/fetch-message.service.js.map +1 -0
- package/dist/modules/twilio/services/fetch-verification.service.d.ts +8 -0
- package/dist/modules/twilio/services/fetch-verification.service.d.ts.map +1 -0
- package/dist/modules/twilio/services/fetch-verification.service.js +58 -0
- package/dist/modules/twilio/services/fetch-verification.service.js.map +1 -0
- package/dist/modules/twilio/services/generate-twiml-dial.service.d.ts +8 -0
- package/dist/modules/twilio/services/generate-twiml-dial.service.d.ts.map +1 -0
- package/dist/modules/twilio/services/generate-twiml-dial.service.js +43 -0
- package/dist/modules/twilio/services/generate-twiml-dial.service.js.map +1 -0
- package/dist/modules/twilio/services/generate-twiml-say.service.d.ts +8 -0
- package/dist/modules/twilio/services/generate-twiml-say.service.d.ts.map +1 -0
- package/dist/modules/twilio/services/generate-twiml-say.service.js +41 -0
- package/dist/modules/twilio/services/generate-twiml-say.service.js.map +1 -0
- package/dist/modules/twilio/services/index.d.ts +20 -0
- package/dist/modules/twilio/services/index.d.ts.map +1 -1
- package/dist/modules/twilio/services/index.js +20 -0
- package/dist/modules/twilio/services/index.js.map +1 -1
- package/dist/modules/twilio/services/list-calls.service.d.ts +8 -0
- package/dist/modules/twilio/services/list-calls.service.d.ts.map +1 -0
- package/dist/modules/twilio/services/list-calls.service.js +62 -0
- package/dist/modules/twilio/services/list-calls.service.js.map +1 -0
- package/dist/modules/twilio/services/list-messages.service.d.ts +8 -0
- package/dist/modules/twilio/services/list-messages.service.d.ts.map +1 -0
- package/dist/modules/twilio/services/list-messages.service.js +65 -0
- package/dist/modules/twilio/services/list-messages.service.js.map +1 -0
- package/dist/modules/twilio/services/lookup-phone-number.service.d.ts +8 -0
- package/dist/modules/twilio/services/lookup-phone-number.service.d.ts.map +1 -0
- package/dist/modules/twilio/services/lookup-phone-number.service.js +61 -0
- package/dist/modules/twilio/services/lookup-phone-number.service.js.map +1 -0
- package/dist/modules/twilio/services/make-call.service.d.ts +8 -0
- package/dist/modules/twilio/services/make-call.service.d.ts.map +1 -0
- package/dist/modules/twilio/services/make-call.service.js +80 -0
- package/dist/modules/twilio/services/make-call.service.js.map +1 -0
- package/dist/modules/twilio/services/send-conversation-message.service.d.ts +8 -0
- package/dist/modules/twilio/services/send-conversation-message.service.d.ts.map +1 -0
- package/dist/modules/twilio/services/send-conversation-message.service.js +61 -0
- package/dist/modules/twilio/services/send-conversation-message.service.js.map +1 -0
- package/dist/modules/twilio/services/send-sms.service.d.ts.map +1 -1
- package/dist/modules/twilio/services/send-verification.service.d.ts +8 -0
- package/dist/modules/twilio/services/send-verification.service.d.ts.map +1 -0
- package/dist/modules/twilio/services/send-verification.service.js +64 -0
- package/dist/modules/twilio/services/send-verification.service.js.map +1 -0
- package/dist/modules/twilio/services/update-call.service.d.ts +8 -0
- package/dist/modules/twilio/services/update-call.service.d.ts.map +1 -0
- package/dist/modules/twilio/services/update-call.service.js +62 -0
- package/dist/modules/twilio/services/update-call.service.js.map +1 -0
- package/dist/modules/twilio/services/update-message.service.d.ts +8 -0
- package/dist/modules/twilio/services/update-message.service.d.ts.map +1 -0
- package/dist/modules/twilio/services/update-message.service.js +54 -0
- package/dist/modules/twilio/services/update-message.service.js.map +1 -0
- package/dist/modules/twilio/services/verify-code.service.d.ts +8 -0
- package/dist/modules/twilio/services/verify-code.service.d.ts.map +1 -0
- package/dist/modules/twilio/services/verify-code.service.js +62 -0
- package/dist/modules/twilio/services/verify-code.service.js.map +1 -0
- package/dist/modules/twilio/twilio-nest.module.d.ts.map +1 -1
- package/dist/modules/twilio/twilio-nest.module.js +51 -3
- package/dist/modules/twilio/twilio-nest.module.js.map +1 -1
- package/dist/modules/twilio/twilio.module.d.ts.map +1 -1
- package/dist/modules/twilio/twilio.module.js +24 -2
- package/dist/modules/twilio/twilio.module.js.map +1 -1
- package/dist/modules/types.d.ts +3 -1
- package/dist/modules/types.d.ts.map +1 -1
- package/dist/modules/types.js.map +1 -1
- package/dist/modules/webhook/controllers/index.d.ts +2 -0
- package/dist/modules/webhook/controllers/index.d.ts.map +1 -0
- package/dist/modules/webhook/controllers/index.js +18 -0
- package/dist/modules/webhook/controllers/index.js.map +1 -0
- package/dist/modules/webhook/controllers/webhook-receiver.controller.d.ts +12 -0
- package/dist/modules/webhook/controllers/webhook-receiver.controller.d.ts.map +1 -0
- package/dist/modules/webhook/controllers/webhook-receiver.controller.js +122 -0
- package/dist/modules/webhook/controllers/webhook-receiver.controller.js.map +1 -0
- package/dist/modules/webhook/credentials.d.ts +3 -0
- package/dist/modules/webhook/credentials.d.ts.map +1 -0
- package/dist/modules/webhook/credentials.js +5 -0
- package/dist/modules/webhook/credentials.js.map +1 -0
- package/dist/modules/webhook/services/index.d.ts +2 -0
- package/dist/modules/webhook/services/index.d.ts.map +1 -0
- package/dist/modules/webhook/services/index.js +18 -0
- package/dist/modules/webhook/services/index.js.map +1 -0
- package/dist/modules/webhook/services/webhook-received.service.d.ts +10 -0
- package/dist/modules/webhook/services/webhook-received.service.d.ts.map +1 -0
- package/dist/modules/webhook/services/webhook-received.service.js +94 -0
- package/dist/modules/webhook/services/webhook-received.service.js.map +1 -0
- package/dist/modules/webhook/triggers/index.d.ts +2 -0
- package/dist/modules/webhook/triggers/index.d.ts.map +1 -0
- package/dist/modules/webhook/triggers/index.js +18 -0
- package/dist/modules/webhook/triggers/index.js.map +1 -0
- package/dist/modules/webhook/triggers/webhook-received.trigger.d.ts +3 -0
- package/dist/modules/webhook/triggers/webhook-received.trigger.d.ts.map +1 -0
- package/dist/modules/webhook/triggers/webhook-received.trigger.js +78 -0
- package/dist/modules/webhook/triggers/webhook-received.trigger.js.map +1 -0
- package/dist/modules/webhook/webhook-nest.module.d.ts +3 -0
- package/dist/modules/webhook/webhook-nest.module.d.ts.map +1 -0
- package/dist/modules/webhook/webhook-nest.module.js +32 -0
- package/dist/modules/webhook/webhook-nest.module.js.map +1 -0
- package/dist/modules/webhook/webhook.module.d.ts +3 -0
- package/dist/modules/webhook/webhook.module.d.ts.map +1 -0
- package/dist/modules/webhook/webhook.module.js +16 -0
- package/dist/modules/webhook/webhook.module.js.map +1 -0
- package/dist/services/workflow-execution.service.d.ts +14 -1
- package/dist/services/workflow-execution.service.d.ts.map +1 -1
- package/dist/services/workflow-execution.service.js +319 -2
- package/dist/services/workflow-execution.service.js.map +1 -1
- package/dist/services/workflow-webhook.service.d.ts +13 -0
- package/dist/services/workflow-webhook.service.d.ts.map +1 -0
- package/dist/services/workflow-webhook.service.js +72 -0
- package/dist/services/workflow-webhook.service.js.map +1 -0
- package/dist/workflow-core.module.d.ts.map +1 -1
- package/dist/workflow-core.module.js +5 -0
- package/dist/workflow-core.module.js.map +1 -1
- package/dist/workflow.module.d.ts.map +1 -1
- package/dist/workflow.module.js +3 -0
- package/dist/workflow.module.js.map +1 -1
- package/package.json +2 -2
|
@@ -15,15 +15,34 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
15
15
|
exports.WorkflowExecutionService = void 0;
|
|
16
16
|
const crud_typeorm_1 = require("@dataui/crud-typeorm");
|
|
17
17
|
const common_1 = require("@nestjs/common");
|
|
18
|
+
const core_1 = require("@nestjs/core");
|
|
18
19
|
const typeorm_1 = require("@nestjs/typeorm");
|
|
19
20
|
const typeorm_2 = require("typeorm");
|
|
20
21
|
const workflow_constant_1 = require("../constants/workflow.constant");
|
|
21
22
|
const workflow_execution_entity_1 = require("../entities/workflow-execution.entity");
|
|
23
|
+
const types_1 = require("../modules/types");
|
|
24
|
+
const workflow_edge_service_1 = require("./workflow-edge.service");
|
|
25
|
+
const workflow_module_credential_service_1 = require("./workflow-module-credential.service");
|
|
26
|
+
const workflow_module_service_1 = require("./workflow-module.service");
|
|
27
|
+
const workflow_node_service_1 = require("./workflow-node.service");
|
|
28
|
+
const workflow_session_service_1 = require("./workflow-session.service");
|
|
22
29
|
let WorkflowExecutionService = class WorkflowExecutionService extends crud_typeorm_1.TypeOrmCrudService {
|
|
23
30
|
repo;
|
|
24
|
-
|
|
31
|
+
workflowNodeService;
|
|
32
|
+
workflowEdgeService;
|
|
33
|
+
workflowModuleService;
|
|
34
|
+
workflowModuleCredentialService;
|
|
35
|
+
workflowSessionService;
|
|
36
|
+
moduleRef;
|
|
37
|
+
constructor(repo, workflowNodeService, workflowEdgeService, workflowModuleService, workflowModuleCredentialService, workflowSessionService, moduleRef) {
|
|
25
38
|
super(repo);
|
|
26
39
|
this.repo = repo;
|
|
40
|
+
this.workflowNodeService = workflowNodeService;
|
|
41
|
+
this.workflowEdgeService = workflowEdgeService;
|
|
42
|
+
this.workflowModuleService = workflowModuleService;
|
|
43
|
+
this.workflowModuleCredentialService = workflowModuleCredentialService;
|
|
44
|
+
this.workflowSessionService = workflowSessionService;
|
|
45
|
+
this.moduleRef = moduleRef;
|
|
27
46
|
}
|
|
28
47
|
async getExecutionsByWorkflowId(workflowId) {
|
|
29
48
|
return this.repo.find({
|
|
@@ -86,11 +105,309 @@ let WorkflowExecutionService = class WorkflowExecutionService extends crud_typeo
|
|
|
86
105
|
execution.currentNodeId = currentNodeId;
|
|
87
106
|
return this.repo.save(execution);
|
|
88
107
|
}
|
|
108
|
+
async executeNextNode(executionId, maxIterations = 1000) {
|
|
109
|
+
let iterations = 0;
|
|
110
|
+
while (iterations < maxIterations) {
|
|
111
|
+
iterations++;
|
|
112
|
+
const execution = await this.repo.findOne({ where: { id: executionId } });
|
|
113
|
+
if (!execution) {
|
|
114
|
+
throw new common_1.NotFoundException(`Execution with id "${executionId}" not found`);
|
|
115
|
+
}
|
|
116
|
+
if (execution.status !== workflow_constant_1.EXECUTION_STATUS.RUNNING) {
|
|
117
|
+
return execution;
|
|
118
|
+
}
|
|
119
|
+
let currentNode = null;
|
|
120
|
+
if (execution.currentNodeId) {
|
|
121
|
+
currentNode = await this.workflowNodeService.repo.findOne({
|
|
122
|
+
where: { workflowId: execution.workflowId, nodeId: execution.currentNodeId },
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
if (!currentNode) {
|
|
126
|
+
const allNodes = await this.workflowNodeService.getNodesByWorkflowId(execution.workflowId);
|
|
127
|
+
const triggerNodes = allNodes.filter((node) => {
|
|
128
|
+
const moduleDefinition = types_1.workflowModuleRegistry.get(node.type);
|
|
129
|
+
if (!moduleDefinition)
|
|
130
|
+
return false;
|
|
131
|
+
const trigger = [...moduleDefinition.actions, ...moduleDefinition.triggers].find((t) => t.key === node.actionType);
|
|
132
|
+
return trigger?.category === types_1.NODE_CATEGORY.TRIGGER;
|
|
133
|
+
});
|
|
134
|
+
if (triggerNodes.length === 0) {
|
|
135
|
+
throw new common_1.BadRequestException('No trigger node found in workflow');
|
|
136
|
+
}
|
|
137
|
+
currentNode = triggerNodes[0];
|
|
138
|
+
execution.currentNodeId = currentNode.nodeId;
|
|
139
|
+
await this.repo.save(execution);
|
|
140
|
+
}
|
|
141
|
+
let edges = await this.workflowEdgeService.getEdgesBySourceNode(execution.workflowId, currentNode.nodeId);
|
|
142
|
+
if (edges.length === 0) {
|
|
143
|
+
return this.completeExecution(executionId, execution.outputData);
|
|
144
|
+
}
|
|
145
|
+
const isConditionalNode = currentNode.type === 'conditional' && currentNode.actionType === 'evaluate-condition';
|
|
146
|
+
let conditionalResult = null;
|
|
147
|
+
let selectedEdge = null;
|
|
148
|
+
if (isConditionalNode) {
|
|
149
|
+
const moduleDefinition = types_1.workflowModuleRegistry.get(currentNode.type);
|
|
150
|
+
if (moduleDefinition) {
|
|
151
|
+
const actionOrTrigger = [...moduleDefinition.actions, ...moduleDefinition.triggers].find((item) => item.key === currentNode.actionType);
|
|
152
|
+
if (actionOrTrigger?.serviceClass) {
|
|
153
|
+
try {
|
|
154
|
+
let credentials;
|
|
155
|
+
const credentialId = currentNode.properties?.credentialId;
|
|
156
|
+
if (credentialId) {
|
|
157
|
+
const credential = await this.workflowModuleCredentialService.findOne({
|
|
158
|
+
where: { id: credentialId },
|
|
159
|
+
});
|
|
160
|
+
if (credential) {
|
|
161
|
+
credentials = credential.credentials;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
let sessionContext = {};
|
|
165
|
+
let sessionData = {};
|
|
166
|
+
let session = null;
|
|
167
|
+
if (execution.sessionId) {
|
|
168
|
+
session = await this.workflowSessionService.findOne({
|
|
169
|
+
where: { id: execution.sessionId },
|
|
170
|
+
});
|
|
171
|
+
if (session) {
|
|
172
|
+
sessionContext = session.context || {};
|
|
173
|
+
sessionData = {
|
|
174
|
+
userId: session.userId,
|
|
175
|
+
externalId: session.externalId,
|
|
176
|
+
currentNodeId: session.currentNodeId,
|
|
177
|
+
history: session.history,
|
|
178
|
+
isActive: session.isActive,
|
|
179
|
+
lastActivityAt: session.lastActivityAt,
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
const inputs = {};
|
|
184
|
+
if (actionOrTrigger.inputs) {
|
|
185
|
+
for (const input of actionOrTrigger.inputs) {
|
|
186
|
+
const value = currentNode.properties[input.id];
|
|
187
|
+
if (value !== undefined) {
|
|
188
|
+
inputs[input.id] = value;
|
|
189
|
+
}
|
|
190
|
+
else if (input.defaultValue !== undefined) {
|
|
191
|
+
inputs[input.id] = input.defaultValue;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
if (isConditionalNode && currentNode.properties.routes) {
|
|
196
|
+
inputs.routes = currentNode.properties.routes;
|
|
197
|
+
}
|
|
198
|
+
const context = {
|
|
199
|
+
workflowId: execution.workflowId,
|
|
200
|
+
executionId: execution.id,
|
|
201
|
+
sessionId: execution.sessionId,
|
|
202
|
+
credentials,
|
|
203
|
+
context: {
|
|
204
|
+
...(execution.inputData || {}),
|
|
205
|
+
...sessionContext,
|
|
206
|
+
session: sessionData,
|
|
207
|
+
},
|
|
208
|
+
previousOutputs: execution.outputData || {},
|
|
209
|
+
};
|
|
210
|
+
let actionService;
|
|
211
|
+
try {
|
|
212
|
+
actionService = this.moduleRef.get(actionOrTrigger.serviceClass, { strict: false });
|
|
213
|
+
}
|
|
214
|
+
catch {
|
|
215
|
+
actionService = new actionOrTrigger.serviceClass();
|
|
216
|
+
}
|
|
217
|
+
conditionalResult = await actionService.perform(inputs, context);
|
|
218
|
+
execution.outputData = {
|
|
219
|
+
...execution.outputData,
|
|
220
|
+
[currentNode.nodeId]: conditionalResult,
|
|
221
|
+
};
|
|
222
|
+
if (execution.sessionId && session) {
|
|
223
|
+
await this.workflowSessionService.addToSessionHistory(execution.sessionId, currentNode.nodeId, conditionalResult);
|
|
224
|
+
if (conditionalResult._context && typeof conditionalResult._context === 'object') {
|
|
225
|
+
await this.workflowSessionService.updateSessionContext(execution.sessionId, conditionalResult._context);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
const routeId = conditionalResult.routeId;
|
|
229
|
+
const result = conditionalResult.result;
|
|
230
|
+
if (routeId) {
|
|
231
|
+
selectedEdge =
|
|
232
|
+
edges.find((e) => e.sourceHandle === routeId) ||
|
|
233
|
+
edges.find((e) => e.sourceHandle === `route_${routeId}`) ||
|
|
234
|
+
edges.find((e) => e.data?.routeId === routeId) ||
|
|
235
|
+
null;
|
|
236
|
+
}
|
|
237
|
+
if (!selectedEdge && (result === false || !routeId)) {
|
|
238
|
+
selectedEdge =
|
|
239
|
+
edges.find((e) => e.sourceHandle === 'default') ||
|
|
240
|
+
edges.find((e) => e.data?.isDefault === true) ||
|
|
241
|
+
null;
|
|
242
|
+
}
|
|
243
|
+
if (!selectedEdge) {
|
|
244
|
+
selectedEdge = edges[0];
|
|
245
|
+
}
|
|
246
|
+
edges = selectedEdge ? [selectedEdge] : [];
|
|
247
|
+
if (selectedEdge) {
|
|
248
|
+
execution.currentNodeId = selectedEdge.target;
|
|
249
|
+
await this.repo.save(execution);
|
|
250
|
+
if (execution.sessionId && session) {
|
|
251
|
+
session.currentNodeId = selectedEdge.target;
|
|
252
|
+
session.lastActivityAt = new Date();
|
|
253
|
+
await this.workflowSessionService.repo.save(session);
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
catch (error) {
|
|
258
|
+
return this.failExecution(executionId, error instanceof Error ? error.message : 'Unknown error occurred', {
|
|
259
|
+
nodeId: currentNode.nodeId,
|
|
260
|
+
nodeType: currentNode.type,
|
|
261
|
+
actionType: currentNode.actionType,
|
|
262
|
+
error: error instanceof Error ? error.stack : undefined,
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
let hasExecutedAction = false;
|
|
269
|
+
for (const edge of edges) {
|
|
270
|
+
const nextNode = await this.workflowNodeService.repo.findOne({
|
|
271
|
+
where: { workflowId: execution.workflowId, nodeId: edge.target },
|
|
272
|
+
});
|
|
273
|
+
if (!nextNode) {
|
|
274
|
+
continue;
|
|
275
|
+
}
|
|
276
|
+
const moduleDefinition = types_1.workflowModuleRegistry.get(nextNode.type);
|
|
277
|
+
if (!moduleDefinition) {
|
|
278
|
+
continue;
|
|
279
|
+
}
|
|
280
|
+
const actionOrTrigger = [...moduleDefinition.actions, ...moduleDefinition.triggers].find((item) => item.key === nextNode.actionType);
|
|
281
|
+
if (!actionOrTrigger) {
|
|
282
|
+
continue;
|
|
283
|
+
}
|
|
284
|
+
if (actionOrTrigger.category !== types_1.NODE_CATEGORY.ACTION) {
|
|
285
|
+
execution.currentNodeId = nextNode.nodeId;
|
|
286
|
+
await this.repo.save(execution);
|
|
287
|
+
hasExecutedAction = true;
|
|
288
|
+
break;
|
|
289
|
+
}
|
|
290
|
+
if (!actionOrTrigger.serviceClass) {
|
|
291
|
+
throw new common_1.BadRequestException(`Action "${nextNode.actionType}" does not have a service class and cannot be executed`);
|
|
292
|
+
}
|
|
293
|
+
let credentials;
|
|
294
|
+
const credentialId = nextNode.properties?.credentialId;
|
|
295
|
+
if (credentialId) {
|
|
296
|
+
const credential = await this.workflowModuleCredentialService.findOne({
|
|
297
|
+
where: { id: credentialId },
|
|
298
|
+
});
|
|
299
|
+
if (credential) {
|
|
300
|
+
credentials = credential.credentials;
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
try {
|
|
304
|
+
let actionService;
|
|
305
|
+
try {
|
|
306
|
+
actionService = this.moduleRef.get(actionOrTrigger.serviceClass, { strict: false });
|
|
307
|
+
}
|
|
308
|
+
catch {
|
|
309
|
+
actionService = new actionOrTrigger.serviceClass();
|
|
310
|
+
}
|
|
311
|
+
const inputs = {};
|
|
312
|
+
if (actionOrTrigger.inputs) {
|
|
313
|
+
for (const input of actionOrTrigger.inputs) {
|
|
314
|
+
const value = nextNode.properties[input.id];
|
|
315
|
+
if (value !== undefined) {
|
|
316
|
+
inputs[input.id] = value;
|
|
317
|
+
}
|
|
318
|
+
else if (input.defaultValue !== undefined) {
|
|
319
|
+
inputs[input.id] = input.defaultValue;
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
let sessionContext = {};
|
|
324
|
+
let sessionData = {};
|
|
325
|
+
let session = null;
|
|
326
|
+
if (execution.sessionId) {
|
|
327
|
+
session = await this.workflowSessionService.findOne({
|
|
328
|
+
where: { id: execution.sessionId },
|
|
329
|
+
});
|
|
330
|
+
if (session) {
|
|
331
|
+
sessionContext = session.context || {};
|
|
332
|
+
sessionData = {
|
|
333
|
+
userId: session.userId,
|
|
334
|
+
externalId: session.externalId,
|
|
335
|
+
currentNodeId: session.currentNodeId,
|
|
336
|
+
history: session.history,
|
|
337
|
+
isActive: session.isActive,
|
|
338
|
+
lastActivityAt: session.lastActivityAt,
|
|
339
|
+
};
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
const context = {
|
|
343
|
+
workflowId: execution.workflowId,
|
|
344
|
+
executionId: execution.id,
|
|
345
|
+
sessionId: execution.sessionId,
|
|
346
|
+
credentials,
|
|
347
|
+
context: {
|
|
348
|
+
...(execution.inputData || {}),
|
|
349
|
+
...sessionContext,
|
|
350
|
+
session: sessionData,
|
|
351
|
+
},
|
|
352
|
+
previousOutputs: execution.outputData || {},
|
|
353
|
+
};
|
|
354
|
+
const result = await actionService.perform(inputs, context);
|
|
355
|
+
execution.outputData = {
|
|
356
|
+
...execution.outputData,
|
|
357
|
+
[nextNode.nodeId]: result,
|
|
358
|
+
};
|
|
359
|
+
if (execution.sessionId && session) {
|
|
360
|
+
await this.workflowSessionService.addToSessionHistory(execution.sessionId, nextNode.nodeId, result);
|
|
361
|
+
if (result._context && typeof result._context === 'object') {
|
|
362
|
+
await this.workflowSessionService.updateSessionContext(execution.sessionId, result._context);
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
execution.currentNodeId = nextNode.nodeId;
|
|
366
|
+
await this.repo.save(execution);
|
|
367
|
+
if (execution.sessionId && session) {
|
|
368
|
+
session.currentNodeId = nextNode.nodeId;
|
|
369
|
+
session.lastActivityAt = new Date();
|
|
370
|
+
await this.workflowSessionService.repo.save(session);
|
|
371
|
+
}
|
|
372
|
+
hasExecutedAction = true;
|
|
373
|
+
break;
|
|
374
|
+
}
|
|
375
|
+
catch (error) {
|
|
376
|
+
return this.failExecution(executionId, error instanceof Error ? error.message : 'Unknown error occurred', {
|
|
377
|
+
nodeId: nextNode.nodeId,
|
|
378
|
+
nodeType: nextNode.type,
|
|
379
|
+
actionType: nextNode.actionType,
|
|
380
|
+
error: error instanceof Error ? error.stack : undefined,
|
|
381
|
+
});
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
if (!hasExecutedAction) {
|
|
385
|
+
return this.completeExecution(executionId, execution.outputData);
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
if (iterations >= maxIterations) {
|
|
389
|
+
return this.failExecution(executionId, `Workflow execution exceeded maximum iterations (${maxIterations}). Possible infinite loop detected.`, {
|
|
390
|
+
iterations,
|
|
391
|
+
maxIterations,
|
|
392
|
+
});
|
|
393
|
+
}
|
|
394
|
+
const finalExecution = await this.repo.findOne({ where: { id: executionId } });
|
|
395
|
+
if (!finalExecution) {
|
|
396
|
+
throw new common_1.NotFoundException(`Execution with id "${executionId}" not found`);
|
|
397
|
+
}
|
|
398
|
+
return finalExecution;
|
|
399
|
+
}
|
|
89
400
|
};
|
|
90
401
|
exports.WorkflowExecutionService = WorkflowExecutionService;
|
|
91
402
|
exports.WorkflowExecutionService = WorkflowExecutionService = __decorate([
|
|
92
403
|
(0, common_1.Injectable)(),
|
|
93
404
|
__param(0, (0, typeorm_1.InjectRepository)(workflow_execution_entity_1.WorkflowExecution)),
|
|
94
|
-
__metadata("design:paramtypes", [typeorm_2.Repository
|
|
405
|
+
__metadata("design:paramtypes", [typeorm_2.Repository,
|
|
406
|
+
workflow_node_service_1.WorkflowNodeService,
|
|
407
|
+
workflow_edge_service_1.WorkflowEdgeService,
|
|
408
|
+
workflow_module_service_1.WorkflowModuleService,
|
|
409
|
+
workflow_module_credential_service_1.WorkflowModuleCredentialService,
|
|
410
|
+
workflow_session_service_1.WorkflowSessionService,
|
|
411
|
+
core_1.ModuleRef])
|
|
95
412
|
], WorkflowExecutionService);
|
|
96
413
|
//# sourceMappingURL=workflow-execution.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-execution.service.js","sourceRoot":"","sources":["../../src/services/workflow-execution.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,uDAA0D;AAC1D,2CAA+D;AAC/D,6CAAmD;AACnD,qCAAqC;AAErC,sEAAkE;AAClE,qFAA0E;AAGnE,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,iCAAqC;IAG/D;IAFlB,YAEkB,IAAmC;QAEnD,KAAK,CAAC,IAAI,CAAC,CAAC;QAFI,SAAI,GAAJ,IAAI,CAA+B;IAGrD,CAAC;IAED,KAAK,CAAC,yBAAyB,CAAC,UAAkB;QAChD,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;YACpB,KAAK,EAAE,EAAE,UAAU,EAAE;YACrB,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE;SAC7B,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,wBAAwB,CAAC,SAAiB;QAC9C,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;YACpB,KAAK,EAAE,EAAE,SAAS,EAAE;YACpB,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE;SAC7B,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,mBAAmB,CAAC,UAAmB;QAC3C,MAAM,KAAK,GAA+B,EAAE,MAAM,EAAE,oCAAgB,CAAC,OAAO,EAAE,CAAC;QAC/E,IAAI,UAAU,EAAE,CAAC;YACf,KAAK,CAAC,UAAU,GAAG,UAAU,CAAC;QAChC,CAAC;QACD,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;IACnC,CAAC;IAED,KAAK,CAAC,cAAc,CAAC,WAAmB;QACtC,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,E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AS,CAAC,MAAM,GAAG,oCAAgB,CAAC,MAAM,CAAC;QAC3C,SAAS,CAAC,WAAW,GAAG,IAAI,IAAI,EAAE,CAAC;QACnC,SAAS,CAAC,YAAY,GAAG,YAAY,CAAC;QACtC,IAAI,SAAS,EAAE,CAAC;YACd,SAAS,CAAC,SAAS,GAAG,SAAS,CAAC;QAClC,CAAC;QACD,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACnC,CAAC;IAED,KAAK,CAAC,iBAAiB,CAAC,WAAmB,EAAE,aAAqB;QAChE,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,WAAW,EAAE,EAAE,CAAC,CAAC;QAC1E,IAAI,CAAC,SAAS,EAAE,CAAC;YACf,MAAM,IAAI,0BAAiB,CAAC,sBAAsB,WAAW,aAAa,CAAC,CAAC;QAC9E,CAAC;QAED,SAAS,CAAC,aAAa,GAAG,aAAa,CAAC;QACxC,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACnC,CAAC;CACF,CAAA;AAtFY,4DAAwB;mCAAxB,wBAAwB;IADpC,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,0BAAgB,EAAC,6CAAiB,CAAC,CAAA;qCACd,oBAAU;GAHvB,wBAAwB,CAsFpC"}
|
|
1
|
+
{"version":3,"file":"workflow-execution.service.js","sourceRoot":"","sources":["../../src/services/workflow-execution.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,uDAA0D;AAC1D,2CAAoF;AACpF,uCAAyC;AACzC,6CAAmD;AACnD,qCAAqC;AAErC,sEAAkE;AAClE,qFAA0E;AAG1E,4CAK0B;AAC1B,mEAA8D;AAC9D,6FAAuF;AACvF,uEAAkE;AAClE,mEAA8D;AAC9D,yEAAoE;AAG7D,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ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YACpB,MAAM,IAAI,0BAAiB,CAAC,sBAAsB,WAAW,aAAa,CAAC,CAAC;QAC9E,CAAC;QACD,OAAO,cAAc,CAAC;IACxB,CAAC;CACF,CAAA;AA5hBY,4DAAwB;mCAAxB,wBAAwB;IADpC,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,0BAAgB,EAAC,6CAAiB,CAAC,CAAA;qCACd,oBAAU;QACM,2CAAmB;QACnB,2CAAmB;QACjB,+CAAqB;QACX,oEAA+B;QACxC,iDAAsB;QACnC,gBAAS;GAT5B,wBAAwB,CA4hBpC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TypeOrmCrudService } from '@dataui/crud-typeorm';
|
|
2
|
+
import { Repository } from 'typeorm';
|
|
3
|
+
import { HTTP_METHOD, WorkflowWebhook } from '../entities/workflow-webhook.entity';
|
|
4
|
+
export declare class WorkflowWebhookService extends TypeOrmCrudService<WorkflowWebhook> {
|
|
5
|
+
readonly repo: Repository<WorkflowWebhook>;
|
|
6
|
+
constructor(repo: Repository<WorkflowWebhook>);
|
|
7
|
+
findByPathAndMethod(webhookPath: string, httpMethod: HTTP_METHOD): Promise<WorkflowWebhook | null>;
|
|
8
|
+
findByWorkflowId(workflowId: string): Promise<WorkflowWebhook[]>;
|
|
9
|
+
findByNodeId(nodeId: string): Promise<WorkflowWebhook | null>;
|
|
10
|
+
activate(id: string): Promise<WorkflowWebhook>;
|
|
11
|
+
deactivate(id: string): Promise<WorkflowWebhook>;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=workflow-webhook.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-webhook.service.d.ts","sourceRoot":"","sources":["../../src/services/workflow-webhook.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAG1D,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAEnF,qBACa,sBAAuB,SAAQ,kBAAkB,CAAC,eAAe,CAAC;aAG3D,IAAI,EAAE,UAAU,CAAC,eAAe,CAAC;gBAAjC,IAAI,EAAE,UAAU,CAAC,eAAe,CAAC;IAK7C,mBAAmB,CACvB,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,WAAW,GACtB,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC;IAW5B,gBAAgB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;IAOhE,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC;IAO7D,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC;IAS9C,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC;CAQvD"}
|
|
@@ -0,0 +1,72 @@
|
|
|
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
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.WorkflowWebhookService = void 0;
|
|
16
|
+
const crud_typeorm_1 = require("@dataui/crud-typeorm");
|
|
17
|
+
const common_1 = require("@nestjs/common");
|
|
18
|
+
const typeorm_1 = require("@nestjs/typeorm");
|
|
19
|
+
const typeorm_2 = require("typeorm");
|
|
20
|
+
const workflow_webhook_entity_1 = require("../entities/workflow-webhook.entity");
|
|
21
|
+
let WorkflowWebhookService = class WorkflowWebhookService extends crud_typeorm_1.TypeOrmCrudService {
|
|
22
|
+
repo;
|
|
23
|
+
constructor(repo) {
|
|
24
|
+
super(repo);
|
|
25
|
+
this.repo = repo;
|
|
26
|
+
}
|
|
27
|
+
async findByPathAndMethod(webhookPath, httpMethod) {
|
|
28
|
+
return this.repo.findOne({
|
|
29
|
+
where: {
|
|
30
|
+
webhookPath,
|
|
31
|
+
httpMethod,
|
|
32
|
+
isActive: true,
|
|
33
|
+
},
|
|
34
|
+
relations: ['node', 'workflow'],
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
async findByWorkflowId(workflowId) {
|
|
38
|
+
return this.repo.find({
|
|
39
|
+
where: { workflowId },
|
|
40
|
+
relations: ['node'],
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
async findByNodeId(nodeId) {
|
|
44
|
+
return this.repo.findOne({
|
|
45
|
+
where: { nodeId },
|
|
46
|
+
relations: ['node', 'workflow'],
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
async activate(id) {
|
|
50
|
+
const webhook = await this.repo.findOne({ where: { id } });
|
|
51
|
+
if (!webhook) {
|
|
52
|
+
throw new common_1.NotFoundException(`Webhook with id "${id}" not found`);
|
|
53
|
+
}
|
|
54
|
+
webhook.isActive = true;
|
|
55
|
+
return this.repo.save(webhook);
|
|
56
|
+
}
|
|
57
|
+
async deactivate(id) {
|
|
58
|
+
const webhook = await this.repo.findOne({ where: { id } });
|
|
59
|
+
if (!webhook) {
|
|
60
|
+
throw new common_1.NotFoundException(`Webhook with id "${id}" not found`);
|
|
61
|
+
}
|
|
62
|
+
webhook.isActive = false;
|
|
63
|
+
return this.repo.save(webhook);
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
exports.WorkflowWebhookService = WorkflowWebhookService;
|
|
67
|
+
exports.WorkflowWebhookService = WorkflowWebhookService = __decorate([
|
|
68
|
+
(0, common_1.Injectable)(),
|
|
69
|
+
__param(0, (0, typeorm_1.InjectRepository)(workflow_webhook_entity_1.WorkflowWebhook)),
|
|
70
|
+
__metadata("design:paramtypes", [typeorm_2.Repository])
|
|
71
|
+
], WorkflowWebhookService);
|
|
72
|
+
//# sourceMappingURL=workflow-webhook.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-webhook.service.js","sourceRoot":"","sources":["../../src/services/workflow-webhook.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,uDAA0D;AAC1D,2CAA+D;AAC/D,6CAAmD;AACnD,qCAAqC;AAErC,iFAAmF;AAG5E,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,iCAAmC;IAG3D;IAFlB,YAEkB,IAAiC;QAEjD,KAAK,CAAC,IAAI,CAAC,CAAC;QAFI,SAAI,GAAJ,IAAI,CAA6B;IAGnD,CAAC;IAED,KAAK,CAAC,mBAAmB,CACvB,WAAmB,EACnB,UAAuB;QAEvB,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC;YACvB,KAAK,EAAE;gBACL,WAAW;gBACX,UAAU;gBACV,QAAQ,EAAE,IAAI;aACf;YACD,SAAS,EAAE,CAAC,MAAM,EAAE,UAAU,CAAC;SAChC,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,gBAAgB,CAAC,UAAkB;QACvC,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;YACpB,KAAK,EAAE,EAAE,UAAU,EAAE;YACrB,SAAS,EAAE,CAAC,MAAM,CAAC;SACpB,CAA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../src/workflow-core.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"workflow-core.module.d.ts","sourceRoot":"","sources":["../src/workflow-core.module.ts"],"names":[],"mappings":"AAoBA,qBAkCa,kBAAkB;CAAG"}
|
|
@@ -16,6 +16,7 @@ const workflow_module_entity_1 = require("./entities/workflow-module.entity");
|
|
|
16
16
|
const workflow_module_credential_entity_1 = require("./entities/workflow-module-credential.entity");
|
|
17
17
|
const workflow_node_entity_1 = require("./entities/workflow-node.entity");
|
|
18
18
|
const workflow_session_entity_1 = require("./entities/workflow-session.entity");
|
|
19
|
+
const workflow_webhook_entity_1 = require("./entities/workflow-webhook.entity");
|
|
19
20
|
const workflow_service_1 = require("./services/workflow.service");
|
|
20
21
|
const workflow_edge_service_1 = require("./services/workflow-edge.service");
|
|
21
22
|
const workflow_execution_service_1 = require("./services/workflow-execution.service");
|
|
@@ -23,6 +24,7 @@ const workflow_module_service_1 = require("./services/workflow-module.service");
|
|
|
23
24
|
const workflow_module_credential_service_1 = require("./services/workflow-module-credential.service");
|
|
24
25
|
const workflow_node_service_1 = require("./services/workflow-node.service");
|
|
25
26
|
const workflow_session_service_1 = require("./services/workflow-session.service");
|
|
27
|
+
const workflow_webhook_service_1 = require("./services/workflow-webhook.service");
|
|
26
28
|
let WorkflowCoreModule = class WorkflowCoreModule {
|
|
27
29
|
};
|
|
28
30
|
exports.WorkflowCoreModule = WorkflowCoreModule;
|
|
@@ -37,6 +39,7 @@ exports.WorkflowCoreModule = WorkflowCoreModule = __decorate([
|
|
|
37
39
|
workflow_session_entity_1.WorkflowSession,
|
|
38
40
|
workflow_module_credential_entity_1.WorkflowModuleCredential,
|
|
39
41
|
workflow_module_entity_1.WorkflowModule,
|
|
42
|
+
workflow_webhook_entity_1.WorkflowWebhook,
|
|
40
43
|
]),
|
|
41
44
|
],
|
|
42
45
|
providers: [
|
|
@@ -47,6 +50,7 @@ exports.WorkflowCoreModule = WorkflowCoreModule = __decorate([
|
|
|
47
50
|
workflow_session_service_1.WorkflowSessionService,
|
|
48
51
|
workflow_module_credential_service_1.WorkflowModuleCredentialService,
|
|
49
52
|
workflow_module_service_1.WorkflowModuleService,
|
|
53
|
+
workflow_webhook_service_1.WorkflowWebhookService,
|
|
50
54
|
],
|
|
51
55
|
exports: [
|
|
52
56
|
workflow_service_1.WorkflowService,
|
|
@@ -56,6 +60,7 @@ exports.WorkflowCoreModule = WorkflowCoreModule = __decorate([
|
|
|
56
60
|
workflow_session_service_1.WorkflowSessionService,
|
|
57
61
|
workflow_module_credential_service_1.WorkflowModuleCredentialService,
|
|
58
62
|
workflow_module_service_1.WorkflowModuleService,
|
|
63
|
+
workflow_webhook_service_1.WorkflowWebhookService,
|
|
59
64
|
],
|
|
60
65
|
})
|
|
61
66
|
], WorkflowCoreModule);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-core.module.js","sourceRoot":"","sources":["../src/workflow-core.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,6CAAgD;AAEhD,gEAAsD;AACtD,0EAA+D;AAC/D,oFAAyE;AACzE,8EAA2F;AAC3F,oGAAwF;AACxF,0EAA+D;AAC/D,gFAAqE;AACrE,kEAA8D;AAC9D,4EAAuE;AACvE,sFAAiF;AACjF,gFAA2E;AAC3E,sGAAgG;AAChG,4EAAuE;AACvE,kFAA6E;
|
|
1
|
+
{"version":3,"file":"workflow-core.module.js","sourceRoot":"","sources":["../src/workflow-core.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,6CAAgD;AAEhD,gEAAsD;AACtD,0EAA+D;AAC/D,oFAAyE;AACzE,8EAA2F;AAC3F,oGAAwF;AACxF,0EAA+D;AAC/D,gFAAqE;AACrE,gFAAqE;AACrE,kEAA8D;AAC9D,4EAAuE;AACvE,sFAAiF;AACjF,gFAA2E;AAC3E,sGAAgG;AAChG,4EAAuE;AACvE,kFAA6E;AAC7E,kFAA6E;AAoCtE,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAAG,CAAA;AAArB,gDAAkB;6BAAlB,kBAAkB;IAlC9B,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,uBAAa,CAAC,UAAU,CAAC;gBACvB,0BAAQ;gBACR,mCAAY;gBACZ,mCAAY;gBACZ,6CAAiB;gBACjB,yCAAe;gBACf,4DAAwB;gBACxB,uCAAoB;gBACpB,yCAAe;aAChB,CAAC;SACH;QACD,SAAS,EAAE;YACT,kCAAe;YACf,2CAAmB;YACnB,2CAAmB;YACnB,qDAAwB;YACxB,iDAAsB;YACtB,oEAA+B;YAC/B,+CAAqB;YACrB,iDAAsB;SACvB;QACD,OAAO,EAAE;YACP,kCAAe;YACf,2CAAmB;YACnB,2CAAmB;YACnB,qDAAwB;YACxB,iDAAsB;YACtB,oEAA+B;YAC/B,+CAAqB;YACrB,iDAAsB;SACvB;KACF,CAAC;GACW,kBAAkB,CAAG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.module.d.ts","sourceRoot":"","sources":["../src/workflow.module.ts"],"names":[],"mappings":"AACA,OAAO,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"workflow.module.d.ts","sourceRoot":"","sources":["../src/workflow.module.ts"],"names":[],"mappings":"AACA,OAAO,WAAW,CAAC;AAYnB,qBAmBa,cAAc;CAAG"}
|
package/dist/workflow.module.js
CHANGED
|
@@ -14,6 +14,7 @@ const ai_nest_module_1 = require("./modules/ai/ai-nest.module");
|
|
|
14
14
|
const chatbot_nest_module_1 = require("./modules/chatbot/chatbot-nest.module");
|
|
15
15
|
const conditional_nest_module_1 = require("./modules/conditional/conditional-nest.module");
|
|
16
16
|
const twilio_nest_module_1 = require("./modules/twilio/twilio-nest.module");
|
|
17
|
+
const webhook_nest_module_1 = require("./modules/webhook/webhook-nest.module");
|
|
17
18
|
const workflow_core_module_1 = require("./workflow-core.module");
|
|
18
19
|
let WorkflowModule = class WorkflowModule {
|
|
19
20
|
};
|
|
@@ -27,6 +28,7 @@ exports.WorkflowModule = WorkflowModule = __decorate([
|
|
|
27
28
|
chatbot_nest_module_1.ChatbotNestModule,
|
|
28
29
|
conditional_nest_module_1.ConditionalNestModule,
|
|
29
30
|
twilio_nest_module_1.TwilioNestModule,
|
|
31
|
+
webhook_nest_module_1.WebhookNestModule,
|
|
30
32
|
],
|
|
31
33
|
exports: [
|
|
32
34
|
workflow_core_module_1.WorkflowCoreModule,
|
|
@@ -34,6 +36,7 @@ exports.WorkflowModule = WorkflowModule = __decorate([
|
|
|
34
36
|
chatbot_nest_module_1.ChatbotNestModule,
|
|
35
37
|
conditional_nest_module_1.ConditionalNestModule,
|
|
36
38
|
twilio_nest_module_1.TwilioNestModule,
|
|
39
|
+
webhook_nest_module_1.WebhookNestModule,
|
|
37
40
|
],
|
|
38
41
|
})
|
|
39
42
|
], WorkflowModule);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.module.js","sourceRoot":"","sources":["../src/workflow.module.ts"],"names":[],"mappings":";;;;;;;;;AACA,qBAAmB;AAEnB,2CAAwC;AACxC,6CAAkD;AAElD,gEAA2D;AAC3D,+EAA0E;AAC1E,2FAAsF;AACtF,4EAAuE;AACvE,iEAA4D;
|
|
1
|
+
{"version":3,"file":"workflow.module.js","sourceRoot":"","sources":["../src/workflow.module.ts"],"names":[],"mappings":";;;;;;;;;AACA,qBAAmB;AAEnB,2CAAwC;AACxC,6CAAkD;AAElD,gEAA2D;AAC3D,+EAA0E;AAC1E,2FAAsF;AACtF,4EAAuE;AACvE,+EAA0E;AAC1E,iEAA4D;AAqBrD,IAAM,cAAc,GAApB,MAAM,cAAc;CAAG,CAAA;AAAjB,wCAAc;yBAAd,cAAc;IAnB1B,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,mBAAY,CAAC,OAAO,CAAC,EAAE,CAAC;YACxB,yCAAkB;YAClB,6BAAY;YACZ,uCAAiB;YACjB,+CAAqB;YACrB,qCAAgB;YAChB,uCAAiB;SAClB;QACD,OAAO,EAAE;YACP,yCAAkB;YAClB,6BAAY;YACZ,uCAAiB;YACjB,+CAAqB;YACrB,qCAAgB;YAChB,uCAAiB;SAClB;KACF,CAAC;GACW,cAAc,CAAG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@venturialstd/workflow",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Workflow Module for Venturial",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"@nestjs/swagger": "^11.0.3",
|
|
75
75
|
"@nestjs/typeorm": "^11.0.0",
|
|
76
76
|
"@venturialstd/core": "^1.0.16",
|
|
77
|
-
"@venturialstd/twilio": "^0.0.
|
|
77
|
+
"@venturialstd/twilio": "^0.0.3",
|
|
78
78
|
"bcrypt": "^5.1.1",
|
|
79
79
|
"cache-manager": "^6.4.0",
|
|
80
80
|
"class-transformer": "^0.5.1",
|