@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,15 @@
|
|
|
1
|
+
import { TypeOrmCrudService } from '@dataui/crud-typeorm';
|
|
2
|
+
import { Repository } from 'typeorm';
|
|
3
|
+
import { WorkflowNode } from '../entities/workflow-node.entity';
|
|
4
|
+
export declare class WorkflowNodeService extends TypeOrmCrudService<WorkflowNode> {
|
|
5
|
+
readonly repo: Repository<WorkflowNode>;
|
|
6
|
+
constructor(repo: Repository<WorkflowNode>);
|
|
7
|
+
getNodesByWorkflowId(workflowId: string): Promise<WorkflowNode[]>;
|
|
8
|
+
getNodeByNodeId(workflowId: string, nodeId: string): Promise<WorkflowNode>;
|
|
9
|
+
updateNodeProperties(id: string, properties: Record<string, unknown>): Promise<WorkflowNode>;
|
|
10
|
+
updateNodePosition(id: string, position: {
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
}): Promise<WorkflowNode>;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=workflow-node.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-node.service.d.ts","sourceRoot":"","sources":["../../src/services/workflow-node.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAG1D,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAEhE,qBACa,mBAAoB,SAAQ,kBAAkB,CAAC,YAAY,CAAC;aAGrD,IAAI,EAAE,UAAU,CAAC,YAAY,CAAC;gBAA9B,IAAI,EAAE,UAAU,CAAC,YAAY,CAAC;IAK1C,oBAAoB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC;IAIjE,eAAe,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAU1E,oBAAoB,CACxB,EAAE,EAAE,MAAM,EACV,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAClC,OAAO,CAAC,YAAY,CAAC;IAUlB,kBAAkB,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,YAAY,CAAC;CAShG"}
|
|
@@ -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
|
+
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.WorkflowNodeService = 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_node_entity_1 = require("../entities/workflow-node.entity");
|
|
21
|
+
let WorkflowNodeService = class WorkflowNodeService extends crud_typeorm_1.TypeOrmCrudService {
|
|
22
|
+
repo;
|
|
23
|
+
constructor(repo) {
|
|
24
|
+
super(repo);
|
|
25
|
+
this.repo = repo;
|
|
26
|
+
}
|
|
27
|
+
async getNodesByWorkflowId(workflowId) {
|
|
28
|
+
return this.repo.find({ where: { workflowId } });
|
|
29
|
+
}
|
|
30
|
+
async getNodeByNodeId(workflowId, nodeId) {
|
|
31
|
+
const node = await this.repo.findOne({
|
|
32
|
+
where: { workflowId, nodeId },
|
|
33
|
+
});
|
|
34
|
+
if (!node) {
|
|
35
|
+
throw new common_1.NotFoundException(`Node with id "${nodeId}" not found in workflow "${workflowId}"`);
|
|
36
|
+
}
|
|
37
|
+
return node;
|
|
38
|
+
}
|
|
39
|
+
async updateNodeProperties(id, properties) {
|
|
40
|
+
const node = await this.repo.findOne({ where: { id } });
|
|
41
|
+
if (!node) {
|
|
42
|
+
throw new common_1.NotFoundException(`Node with id "${id}" not found`);
|
|
43
|
+
}
|
|
44
|
+
node.properties = { ...node.properties, ...properties };
|
|
45
|
+
return this.repo.save(node);
|
|
46
|
+
}
|
|
47
|
+
async updateNodePosition(id, position) {
|
|
48
|
+
const node = await this.repo.findOne({ where: { id } });
|
|
49
|
+
if (!node) {
|
|
50
|
+
throw new common_1.NotFoundException(`Node with id "${id}" not found`);
|
|
51
|
+
}
|
|
52
|
+
node.position = position;
|
|
53
|
+
return this.repo.save(node);
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
exports.WorkflowNodeService = WorkflowNodeService;
|
|
57
|
+
exports.WorkflowNodeService = WorkflowNodeService = __decorate([
|
|
58
|
+
(0, common_1.Injectable)(),
|
|
59
|
+
__param(0, (0, typeorm_1.InjectRepository)(workflow_node_entity_1.WorkflowNode)),
|
|
60
|
+
__metadata("design:paramtypes", [typeorm_2.Repository])
|
|
61
|
+
], WorkflowNodeService);
|
|
62
|
+
//# sourceMappingURL=workflow-node.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-node.service.js","sourceRoot":"","sources":["../../src/services/workflow-node.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,uDAA0D;AAC1D,2CAA+D;AAC/D,6CAAmD;AACnD,qCAAqC;AAErC,2EAAgE;AAGzD,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,iCAAgC;IAGrD;IAFlB,YAEkB,IAA8B;QAE9C,KAAK,CAAC,IAAI,CAAC,CAAC;QAFI,SAAI,GAAJ,IAAI,CAA0B;IAGhD,CAAC;IAED,KAAK,CAAC,oBAAoB,CAAC,UAAkB;QAC3C,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,EAAE,CAAC,CAAC;IAC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;8BAAnB,mBAAmB;IAD/B,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,0BAAgB,EAAC,mCAAY,CAAC,CAAA;qCACT,oBAAU;GAHvB,mBAAmB,CA4C/B"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { TypeOrmCrudService } from '@dataui/crud-typeorm';
|
|
2
|
+
import { Repository } from 'typeorm';
|
|
3
|
+
import { WorkflowSession } from '../entities/workflow-session.entity';
|
|
4
|
+
export declare class WorkflowSessionService extends TypeOrmCrudService<WorkflowSession> {
|
|
5
|
+
readonly repo: Repository<WorkflowSession>;
|
|
6
|
+
constructor(repo: Repository<WorkflowSession>);
|
|
7
|
+
getSessionsByWorkflowId(workflowId: string): Promise<WorkflowSession[]>;
|
|
8
|
+
getActiveSessions(workflowId?: string): Promise<WorkflowSession[]>;
|
|
9
|
+
getSessionByExternalId(workflowId: string, externalId: string): Promise<WorkflowSession | null>;
|
|
10
|
+
getSessionByUserId(workflowId: string, userId: string): Promise<WorkflowSession | null>;
|
|
11
|
+
updateSessionContext(sessionId: string, context: Record<string, unknown>): Promise<WorkflowSession>;
|
|
12
|
+
addToSessionHistory(sessionId: string, nodeId: string, data?: Record<string, unknown>): Promise<WorkflowSession>;
|
|
13
|
+
deactivateSession(sessionId: string): Promise<WorkflowSession>;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=workflow-session.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-session.service.d.ts","sourceRoot":"","sources":["../../src/services/workflow-session.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAG1D,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAEtE,qBACa,sBAAuB,SAAQ,kBAAkB,CAAC,eAAe,CAAC;aAG3D,IAAI,EAAE,UAAU,CAAC,eAAe,CAAC;gBAAjC,IAAI,EAAE,UAAU,CAAC,eAAe,CAAC;IAK7C,uBAAuB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;IAOvE,iBAAiB,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;IAQlE,sBAAsB,CAC1B,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC;IAM5B,kBAAkB,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC;IAMvF,oBAAoB,CACxB,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC/B,OAAO,CAAC,eAAe,CAAC;IAWrB,mBAAmB,CACvB,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,EACd,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC7B,OAAO,CAAC,eAAe,CAAC;IAqBrB,iBAAiB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC;CASrE"}
|
|
@@ -0,0 +1,91 @@
|
|
|
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.WorkflowSessionService = 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_session_entity_1 = require("../entities/workflow-session.entity");
|
|
21
|
+
let WorkflowSessionService = class WorkflowSessionService extends crud_typeorm_1.TypeOrmCrudService {
|
|
22
|
+
repo;
|
|
23
|
+
constructor(repo) {
|
|
24
|
+
super(repo);
|
|
25
|
+
this.repo = repo;
|
|
26
|
+
}
|
|
27
|
+
async getSessionsByWorkflowId(workflowId) {
|
|
28
|
+
return this.repo.find({
|
|
29
|
+
where: { workflowId },
|
|
30
|
+
order: { lastActivityAt: 'DESC' },
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
async getActiveSessions(workflowId) {
|
|
34
|
+
const where = { isActive: true };
|
|
35
|
+
if (workflowId) {
|
|
36
|
+
where.workflowId = workflowId;
|
|
37
|
+
}
|
|
38
|
+
return this.repo.find({ where });
|
|
39
|
+
}
|
|
40
|
+
async getSessionByExternalId(workflowId, externalId) {
|
|
41
|
+
return this.repo.findOne({
|
|
42
|
+
where: { workflowId, externalId, isActive: true },
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
async getSessionByUserId(workflowId, userId) {
|
|
46
|
+
return this.repo.findOne({
|
|
47
|
+
where: { workflowId, userId, isActive: true },
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
async updateSessionContext(sessionId, context) {
|
|
51
|
+
const session = await this.repo.findOne({ where: { id: sessionId } });
|
|
52
|
+
if (!session) {
|
|
53
|
+
throw new common_1.NotFoundException(`Session with id "${sessionId}" not found`);
|
|
54
|
+
}
|
|
55
|
+
session.context = { ...session.context, ...context };
|
|
56
|
+
session.lastActivityAt = new Date();
|
|
57
|
+
return this.repo.save(session);
|
|
58
|
+
}
|
|
59
|
+
async addToSessionHistory(sessionId, nodeId, data) {
|
|
60
|
+
const session = await this.repo.findOne({ where: { id: sessionId } });
|
|
61
|
+
if (!session) {
|
|
62
|
+
throw new common_1.NotFoundException(`Session with id "${sessionId}" not found`);
|
|
63
|
+
}
|
|
64
|
+
if (!session.history) {
|
|
65
|
+
session.history = [];
|
|
66
|
+
}
|
|
67
|
+
session.history.push({
|
|
68
|
+
nodeId,
|
|
69
|
+
timestamp: new Date(),
|
|
70
|
+
data,
|
|
71
|
+
});
|
|
72
|
+
session.currentNodeId = nodeId;
|
|
73
|
+
session.lastActivityAt = new Date();
|
|
74
|
+
return this.repo.save(session);
|
|
75
|
+
}
|
|
76
|
+
async deactivateSession(sessionId) {
|
|
77
|
+
const session = await this.repo.findOne({ where: { id: sessionId } });
|
|
78
|
+
if (!session) {
|
|
79
|
+
throw new common_1.NotFoundException(`Session with id "${sessionId}" not found`);
|
|
80
|
+
}
|
|
81
|
+
session.isActive = false;
|
|
82
|
+
return this.repo.save(session);
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
exports.WorkflowSessionService = WorkflowSessionService;
|
|
86
|
+
exports.WorkflowSessionService = WorkflowSessionService = __decorate([
|
|
87
|
+
(0, common_1.Injectable)(),
|
|
88
|
+
__param(0, (0, typeorm_1.InjectRepository)(workflow_session_entity_1.WorkflowSession)),
|
|
89
|
+
__metadata("design:paramtypes", [typeorm_2.Repository])
|
|
90
|
+
], WorkflowSessionService);
|
|
91
|
+
//# sourceMappingURL=workflow-session.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-session.service.js","sourceRoot":"","sources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,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,CAAC,CAAC;QACtE,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,MAAM,IAAI,0BAAiB,CAAC,oBAAoB,SAAS,aAAa,CAAC,CAAC;QAC1E,CAAC;QAED,OAAO,CAAC,QAAQ,GAAG,KAAK,CAAC;QACzB,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACjC,CAAC;CACF,CAAA;AAtFY,wDAAsB;iCAAtB,sBAAsB;IADlC,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,0BAAgB,EAAC,yCAAe,CAAC,CAAA;qCACZ,oBAAU;GAHvB,sBAAsB,CAsFlC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TypeOrmCrudService } from '@dataui/crud-typeorm';
|
|
2
|
+
import { Repository } from 'typeorm';
|
|
3
|
+
import { Workflow } from '../entities/workflow.entity';
|
|
4
|
+
export declare class WorkflowService extends TypeOrmCrudService<Workflow> {
|
|
5
|
+
readonly repo: Repository<Workflow>;
|
|
6
|
+
constructor(repo: Repository<Workflow>);
|
|
7
|
+
getWorkflowsByOrganization(organizationId: string): Promise<Workflow[]>;
|
|
8
|
+
getActiveWorkflows(organizationId?: string): Promise<Workflow[]>;
|
|
9
|
+
activateWorkflow(workflowId: string): Promise<Workflow>;
|
|
10
|
+
deactivateWorkflow(workflowId: string): Promise<Workflow>;
|
|
11
|
+
getWorkflowWithNodesAndEdges(workflowId: string): Promise<Workflow>;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=workflow.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow.service.d.ts","sourceRoot":"","sources":["../../src/services/workflow.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAG1D,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAGrC,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAEvD,qBACa,eAAgB,SAAQ,kBAAkB,CAAC,QAAQ,CAAC;aAG7C,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC;gBAA1B,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC;IAKtC,0BAA0B,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;IAIvE,kBAAkB,CAAC,cAAc,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;IAQhE,gBAAgB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC;IAWvD,kBAAkB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC;IAWzD,4BAA4B,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC;CAU1E"}
|
|
@@ -0,0 +1,73 @@
|
|
|
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.WorkflowService = 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_constant_1 = require("../constants/workflow.constant");
|
|
21
|
+
const workflow_entity_1 = require("../entities/workflow.entity");
|
|
22
|
+
let WorkflowService = class WorkflowService extends crud_typeorm_1.TypeOrmCrudService {
|
|
23
|
+
repo;
|
|
24
|
+
constructor(repo) {
|
|
25
|
+
super(repo);
|
|
26
|
+
this.repo = repo;
|
|
27
|
+
}
|
|
28
|
+
async getWorkflowsByOrganization(organizationId) {
|
|
29
|
+
return this.repo.find({ where: { organizationId } });
|
|
30
|
+
}
|
|
31
|
+
async getActiveWorkflows(organizationId) {
|
|
32
|
+
const where = { active: true, status: workflow_constant_1.WORKFLOW_STATUS.ACTIVE };
|
|
33
|
+
if (organizationId) {
|
|
34
|
+
where.organizationId = organizationId;
|
|
35
|
+
}
|
|
36
|
+
return this.repo.find({ where });
|
|
37
|
+
}
|
|
38
|
+
async activateWorkflow(workflowId) {
|
|
39
|
+
const workflow = await this.repo.findOne({ where: { id: workflowId } });
|
|
40
|
+
if (!workflow) {
|
|
41
|
+
throw new common_1.NotFoundException(`Workflow with id "${workflowId}" not found`);
|
|
42
|
+
}
|
|
43
|
+
workflow.active = true;
|
|
44
|
+
workflow.status = workflow_constant_1.WORKFLOW_STATUS.ACTIVE;
|
|
45
|
+
return this.repo.save(workflow);
|
|
46
|
+
}
|
|
47
|
+
async deactivateWorkflow(workflowId) {
|
|
48
|
+
const workflow = await this.repo.findOne({ where: { id: workflowId } });
|
|
49
|
+
if (!workflow) {
|
|
50
|
+
throw new common_1.NotFoundException(`Workflow with id "${workflowId}" not found`);
|
|
51
|
+
}
|
|
52
|
+
workflow.active = false;
|
|
53
|
+
workflow.status = workflow_constant_1.WORKFLOW_STATUS.INACTIVE;
|
|
54
|
+
return this.repo.save(workflow);
|
|
55
|
+
}
|
|
56
|
+
async getWorkflowWithNodesAndEdges(workflowId) {
|
|
57
|
+
const workflow = await this.repo.findOne({
|
|
58
|
+
where: { id: workflowId },
|
|
59
|
+
relations: ['nodes', 'edges'],
|
|
60
|
+
});
|
|
61
|
+
if (!workflow) {
|
|
62
|
+
throw new common_1.NotFoundException(`Workflow with id "${workflowId}" not found`);
|
|
63
|
+
}
|
|
64
|
+
return workflow;
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
exports.WorkflowService = WorkflowService;
|
|
68
|
+
exports.WorkflowService = WorkflowService = __decorate([
|
|
69
|
+
(0, common_1.Injectable)(),
|
|
70
|
+
__param(0, (0, typeorm_1.InjectRepository)(workflow_entity_1.Workflow)),
|
|
71
|
+
__metadata("design:paramtypes", [typeorm_2.Repository])
|
|
72
|
+
], WorkflowService);
|
|
73
|
+
//# sourceMappingURL=workflow.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow.service.js","sourceRoot":"","sources":["../../src/services/workflow.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,uDAA0D;AAC1D,2CAA+D;AAC/D,6CAAmD;AACnD,qCAAqC;AAErC,sEAAiE;AACjE,iEAAuD;AAGhD,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,iCAA4B;IAG7C;IAFlB,YAEkB,IAA0B;QAE1C,KAAK,CAAC,IAAI,CAAC,CAAC;QAFI,SAAI,GAAJ,IAAI,CAAsB;IAG5C,CAAC;IAED,KAAK,CAAC,0BAA0B,CAAC,cAAsB;QACrD,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,EAAE,cAAc,EAAE,EAAE,CAAC,CAAC;IACvD,CAAC;IAED,KAAK,CAAC,kBAAkB,CAAC,cAAu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CAAC,UAAkB;QACnD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC;YACvC,KAAK,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE;YACzB,SAAS,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;SAC9B,CAAC,CAAC;QACH,IAAI,CAAC,QAAQ,EAAE,CAAC;YACd,MAAM,IAAI,0BAAiB,CAAC,qBAAqB,UAAU,aAAa,CAAC,CAAC;QAC5E,CAAC;QACD,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF,CAAA;AApDY,0CAAe;0BAAf,eAAe;IAD3B,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,0BAAgB,EAAC,0BAAQ,CAAC,CAAA;qCACL,oBAAU;GAHvB,eAAe,CAoD3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow.module.d.ts","sourceRoot":"","sources":["../src/workflow.module.ts"],"names":[],"mappings":"AA0CA,qBAsEa,cAAc;CAAG"}
|
|
@@ -0,0 +1,98 @@
|
|
|
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.WorkflowModule = void 0;
|
|
10
|
+
const common_1 = require("@nestjs/common");
|
|
11
|
+
const typeorm_1 = require("@nestjs/typeorm");
|
|
12
|
+
const core_1 = require("@venturialstd/core");
|
|
13
|
+
const workflow_entity_1 = require("./entities/workflow.entity");
|
|
14
|
+
const workflow_edge_entity_1 = require("./entities/workflow-edge.entity");
|
|
15
|
+
const workflow_execution_entity_1 = require("./entities/workflow-execution.entity");
|
|
16
|
+
const workflow_module_entity_1 = require("./entities/workflow-module.entity");
|
|
17
|
+
const workflow_module_credential_entity_1 = require("./entities/workflow-module-credential.entity");
|
|
18
|
+
const workflow_node_entity_1 = require("./entities/workflow-node.entity");
|
|
19
|
+
const workflow_session_entity_1 = require("./entities/workflow-session.entity");
|
|
20
|
+
const auth_1 = require("./modules/ai/auth");
|
|
21
|
+
const services_1 = require("./modules/ai/services");
|
|
22
|
+
const services_2 = require("./modules/chatbot/services");
|
|
23
|
+
const services_3 = require("./modules/conditional/services");
|
|
24
|
+
const auth_2 = require("./modules/twilio/auth");
|
|
25
|
+
const services_4 = require("./modules/twilio/services");
|
|
26
|
+
const workflow_service_1 = require("./services/workflow.service");
|
|
27
|
+
const workflow_edge_service_1 = require("./services/workflow-edge.service");
|
|
28
|
+
const workflow_execution_service_1 = require("./services/workflow-execution.service");
|
|
29
|
+
const workflow_module_service_1 = require("./services/workflow-module.service");
|
|
30
|
+
const workflow_module_credential_service_1 = require("./services/workflow-module-credential.service");
|
|
31
|
+
const workflow_node_service_1 = require("./services/workflow-node.service");
|
|
32
|
+
const workflow_session_service_1 = require("./services/workflow-session.service");
|
|
33
|
+
let WorkflowModule = class WorkflowModule {
|
|
34
|
+
};
|
|
35
|
+
exports.WorkflowModule = WorkflowModule;
|
|
36
|
+
exports.WorkflowModule = WorkflowModule = __decorate([
|
|
37
|
+
(0, common_1.Module)({
|
|
38
|
+
imports: [
|
|
39
|
+
core_1.SharedModule.forRoot({}),
|
|
40
|
+
typeorm_1.TypeOrmModule.forFeature([
|
|
41
|
+
workflow_entity_1.Workflow,
|
|
42
|
+
workflow_node_entity_1.WorkflowNode,
|
|
43
|
+
workflow_edge_entity_1.WorkflowEdge,
|
|
44
|
+
workflow_execution_entity_1.WorkflowExecution,
|
|
45
|
+
workflow_session_entity_1.WorkflowSession,
|
|
46
|
+
workflow_module_credential_entity_1.WorkflowModuleCredential,
|
|
47
|
+
workflow_module_entity_1.WorkflowModule,
|
|
48
|
+
]),
|
|
49
|
+
],
|
|
50
|
+
providers: [
|
|
51
|
+
workflow_service_1.WorkflowService,
|
|
52
|
+
workflow_node_service_1.WorkflowNodeService,
|
|
53
|
+
workflow_edge_service_1.WorkflowEdgeService,
|
|
54
|
+
workflow_execution_service_1.WorkflowExecutionService,
|
|
55
|
+
workflow_session_service_1.WorkflowSessionService,
|
|
56
|
+
workflow_module_credential_service_1.WorkflowModuleCredentialService,
|
|
57
|
+
workflow_module_service_1.WorkflowModuleService,
|
|
58
|
+
services_2.SendMessageService,
|
|
59
|
+
services_2.AskQuestionService,
|
|
60
|
+
services_2.SendButtonsService,
|
|
61
|
+
services_2.UserRespondedService,
|
|
62
|
+
services_1.GenerateTextService,
|
|
63
|
+
services_1.AnalyzeSentimentService,
|
|
64
|
+
services_1.SummarizeService,
|
|
65
|
+
auth_1.AiAuthService,
|
|
66
|
+
services_3.EvaluateConditionService,
|
|
67
|
+
services_3.ConditionMetService,
|
|
68
|
+
services_3.ConditionNotMetService,
|
|
69
|
+
services_4.SendSmsService,
|
|
70
|
+
services_4.MessageReceivedService,
|
|
71
|
+
auth_2.TwilioAuthService,
|
|
72
|
+
],
|
|
73
|
+
exports: [
|
|
74
|
+
workflow_service_1.WorkflowService,
|
|
75
|
+
workflow_node_service_1.WorkflowNodeService,
|
|
76
|
+
workflow_edge_service_1.WorkflowEdgeService,
|
|
77
|
+
workflow_execution_service_1.WorkflowExecutionService,
|
|
78
|
+
workflow_session_service_1.WorkflowSessionService,
|
|
79
|
+
workflow_module_credential_service_1.WorkflowModuleCredentialService,
|
|
80
|
+
workflow_module_service_1.WorkflowModuleService,
|
|
81
|
+
services_2.SendMessageService,
|
|
82
|
+
services_2.AskQuestionService,
|
|
83
|
+
services_2.SendButtonsService,
|
|
84
|
+
services_2.UserRespondedService,
|
|
85
|
+
services_1.GenerateTextService,
|
|
86
|
+
services_1.AnalyzeSentimentService,
|
|
87
|
+
services_1.SummarizeService,
|
|
88
|
+
auth_1.AiAuthService,
|
|
89
|
+
services_3.EvaluateConditionService,
|
|
90
|
+
services_3.ConditionMetService,
|
|
91
|
+
services_3.ConditionNotMetService,
|
|
92
|
+
services_4.SendSmsService,
|
|
93
|
+
services_4.MessageReceivedService,
|
|
94
|
+
auth_2.TwilioAuthService,
|
|
95
|
+
],
|
|
96
|
+
})
|
|
97
|
+
], WorkflowModule);
|
|
98
|
+
//# sourceMappingURL=workflow.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow.module.js","sourceRoot":"","sources":["../src/workflow.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,6CAAgD;AAChD,6CAAkD;AAElD,gEAAsD;AACtD,0EAA+D;AAC/D,oFAAyE;AACzE,8EAA2F;AAC3F,oGAAwF;AACxF,0EAA+D;AAC/D,gFAAqE;AACrE,4CAAkD;AAElD,oDAI+B;AAE/B,yDAKoC;AAEpC,6DAIwC;AACxC,gDAA0D;AAE1D,wDAAmF;AACnF,kEAA8D;AAC9D,4EAAuE;AACvE,sFAAiF;AACjF,gFAA2E;AAC3E,sGAAgG;AAChG,4EAAuE;AACvE,kFAA6E;AAwEtE,IAAM,cAAc,GAApB,MAAM,cAAc;CAAG,CAAA;AAAjB,wCAAc;yBAAd,cAAc;IAtE1B,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,mBAAY,CAAC,OAAO,CAAC,EAAE,CAAC;YACxB,uBAAa,CAAC,UAAU,CAAC;gBACvB,0BAAQ;gBACR,mCAAY;gBACZ,mCAAY;gBACZ,6CAAiB;gBACjB,yCAAe;gBACf,4DAAwB;gBACxB,uCAAoB;aACrB,CAAC;SACH;QACD,SAAS,EAAE;YAET,kCAAe;YACf,2CAAmB;YACnB,2CAAmB;YACnB,qDAAwB;YACxB,iDAAsB;YACtB,oEAA+B;YAC/B,+CAAqB;YAErB,6BAAkB;YAClB,6BAAkB;YAClB,6BAAkB;YAClB,+BAAoB;YAEpB,8BAAmB;YACnB,kCAAuB;YACvB,2BAAgB;YAChB,oBAAa;YAEb,mCAAwB;YACxB,8BAAmB;YACnB,iCAAsB;YAEtB,yBAAc;YACd,iCAAsB;YACtB,wBAAiB;SAClB;QACD,OAAO,EAAE;YAEP,kCAAe;YACf,2CAAmB;YACnB,2CAAmB;YACnB,qDAAwB;YACxB,iDAAsB;YACtB,oEAA+B;YAC/B,+CAAqB;YAErB,6BAAkB;YAClB,6BAAkB;YAClB,6BAAkB;YAClB,+BAAoB;YAEpB,8BAAmB;YACnB,kCAAuB;YACvB,2BAAgB;YAChB,oBAAa;YAEb,mCAAwB;YACxB,8BAAmB;YACnB,iCAAsB;YAEtB,yBAAc;YACd,iCAAsB;YACtB,wBAAiB;SAClB;KACF,CAAC;GACW,cAAc,CAAG"}
|
package/package.json
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@venturialstd/workflow",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Workflow Module for Venturial",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"type": "commonjs",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"publishConfig": {
|
|
12
|
+
"access": "public"
|
|
13
|
+
},
|
|
14
|
+
"scripts": {
|
|
15
|
+
"build": "tsc -p tsconfig.json",
|
|
16
|
+
"postbuild": "if [ -L ../../../../ommacash/ommacash/ommacash-core/node_modules/@venturialstd/workflow ]; then rm -rf node_modules/@nestjs/core node_modules/@nestjs/typeorm && ln -s ../../../../ommacash/ommacash/ommacash-core/node_modules/@nestjs/core node_modules/@nestjs/core && ln -s ../../../../ommacash/ommacash/ommacash-core/node_modules/@nestjs/typeorm node_modules/@nestjs/typeorm 2>/dev/null || true; fi",
|
|
17
|
+
"prepublishOnly": "npm run build",
|
|
18
|
+
"release:patch": "npm run build && npm version patch --no-git-tag-version && npm publish",
|
|
19
|
+
"test:dev": "ts-node -r tsconfig-paths/register test/main.ts",
|
|
20
|
+
"test:watch": "nodemon --watch src --watch test --ext ts --exec npm run test:dev",
|
|
21
|
+
"migration:generate": "ts-node node_modules/.bin/typeorm migration:generate -d test/data-source.ts test/migrations/$npm_config_name",
|
|
22
|
+
"migration:run": "ts-node node_modules/.bin/typeorm migration:run -d test/data-source.ts",
|
|
23
|
+
"migration:revert": "ts-node node_modules/.bin/typeorm migration:revert -d test/data-source.ts"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@dataui/crud": "^5.3.4",
|
|
27
|
+
"@dataui/crud-request": "^5.3.4",
|
|
28
|
+
"@dataui/crud-typeorm": "^5.3.4",
|
|
29
|
+
"@keyv/redis": "^4.2.0",
|
|
30
|
+
"@nestjs/cache-manager": "^3.0.0",
|
|
31
|
+
"@nestjs/common": "^11.0.11",
|
|
32
|
+
"@nestjs/config": "^4.0.0",
|
|
33
|
+
"@nestjs/core": "^11.0.5",
|
|
34
|
+
"@nestjs/jwt": "^11.0.0",
|
|
35
|
+
"@nestjs/passport": "^11.0.5",
|
|
36
|
+
"@nestjs/platform-express": "^11.0.5",
|
|
37
|
+
"@nestjs/swagger": "^11.0.3",
|
|
38
|
+
"@nestjs/typeorm": "^11.0.0",
|
|
39
|
+
"@types/node": "^20.0.0",
|
|
40
|
+
"@venturialstd/core": "^1.0.16",
|
|
41
|
+
"bcrypt": "^5.1.1",
|
|
42
|
+
"cache-manager": "^6.4.0",
|
|
43
|
+
"class-transformer": "^0.5.1",
|
|
44
|
+
"class-validator": "^0.14.1",
|
|
45
|
+
"dotenv": "^17.2.3",
|
|
46
|
+
"express": "^5.2.1",
|
|
47
|
+
"glob": "^13.0.0",
|
|
48
|
+
"joi": "^17.13.3",
|
|
49
|
+
"jwks-rsa": "^3.1.0",
|
|
50
|
+
"lodash": "^4.17.21",
|
|
51
|
+
"nodemon": "^3.0.0",
|
|
52
|
+
"passport": "^0.7.0",
|
|
53
|
+
"passport-auth0": "^1.4.4",
|
|
54
|
+
"passport-jwt": "^4.0.1",
|
|
55
|
+
"passport-local": "^1.0.0",
|
|
56
|
+
"rxjs": "^7.8.1",
|
|
57
|
+
"ts-node": "^10.9.0",
|
|
58
|
+
"tsconfig-paths": "^4.2.0",
|
|
59
|
+
"typeorm": "^0.3.20",
|
|
60
|
+
"typescript": "^5.9.3",
|
|
61
|
+
"uuid": "^11.0.5",
|
|
62
|
+
"winston": "^3.17.0"
|
|
63
|
+
},
|
|
64
|
+
"peerDependencies": {
|
|
65
|
+
"@dataui/crud": "^5.3.4",
|
|
66
|
+
"@dataui/crud-request": "^5.3.4",
|
|
67
|
+
"@dataui/crud-typeorm": "^5.3.4",
|
|
68
|
+
"@nestjs/cache-manager": "^3.0.0",
|
|
69
|
+
"@nestjs/common": "^11.0.11",
|
|
70
|
+
"@nestjs/config": "^4.0.0",
|
|
71
|
+
"@nestjs/core": "^11.0.5",
|
|
72
|
+
"@nestjs/jwt": "^11.0.0",
|
|
73
|
+
"@nestjs/passport": "^11.0.5",
|
|
74
|
+
"@nestjs/swagger": "^11.0.3",
|
|
75
|
+
"@nestjs/typeorm": "^11.0.0",
|
|
76
|
+
"@venturialstd/core": "^1.0.16",
|
|
77
|
+
"bcrypt": "^5.1.1",
|
|
78
|
+
"cache-manager": "^6.4.0",
|
|
79
|
+
"class-transformer": "^0.5.1",
|
|
80
|
+
"class-validator": "^0.14.1",
|
|
81
|
+
"jwks-rsa": "^3.1.0",
|
|
82
|
+
"passport": "^0.7.0",
|
|
83
|
+
"passport-auth0": "^1.4.0",
|
|
84
|
+
"passport-jwt": "^4.0.1",
|
|
85
|
+
"passport-local": "^1.0.0",
|
|
86
|
+
"rxjs": "^7.8.1",
|
|
87
|
+
"typeorm": "^0.3.20",
|
|
88
|
+
"uuid": "^11.0.5"
|
|
89
|
+
},
|
|
90
|
+
"dependencies": {
|
|
91
|
+
"pg": "^8.16.3"
|
|
92
|
+
}
|
|
93
|
+
}
|